/*! For license information please see main.58a44dca.js.LICENSE.txt */
(()=>{var e={6983:(e,t,n)=>{"use strict";n.r(t),n.d(t,{blue:()=>A,cyan:()=>k,geekblue:()=>I,generate:()=>y,gold:()=>_,gray:()=>R,green:()=>M,grey:()=>L,lime:()=>P,magenta:()=>j,orange:()=>C,presetDarkPalettes:()=>w,presetPalettes:()=>x,presetPrimaryColors:()=>b,purple:()=>T,red:()=>S,volcano:()=>O,yellow:()=>E});var r=n(5445),o=n(3143),i=2,a=.16,l=.05,c=.05,s=.15,u=5,d=4,f=[{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 p(e){var t=e.r,n=e.g,o=e.b,i=(0,r.wE)(t,n,o);return{h:360*i.h,s:i.s,v:i.v}}function h(e){var t=e.r,n=e.g,o=e.b;return"#".concat((0,r.Ob)(t,n,o,!1))}function g(e,t,n){var r;return(r=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-i*t:Math.round(e.h)+i*t:n?Math.round(e.h)+i*t:Math.round(e.h)-i*t)<0?r+=360:r>=360&&(r-=360),r}function v(e,t,n){return 0===e.h&&0===e.s?e.s:((r=n?e.s-a*t:t===d?e.s+a:e.s+l*t)>1&&(r=1),n&&t===u&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)));var r}function m(e,t,n){var r;return(r=n?e.v+c*t:e.v-s*t)>1&&(r=1),Number(r.toFixed(2))}function y(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=(0,o.RO)(e),i=u;i>0;i-=1){var a=p(r),l=h((0,o.RO)({h:g(a,i,!0),s:v(a,i,!0),v:m(a,i,!0)}));n.push(l)}n.push(h(r));for(var c=1;c<=d;c+=1){var s=p(r),y=h((0,o.RO)({h:g(s,c),s:v(s,c),v:m(s,c)}));n.push(y)}return"dark"===t.theme?f.map((function(e){var r=e.index,i=e.opacity;return h(function(e,t,n){var r=n/100;return{r:(t.r-e.r)*r+e.r,g:(t.g-e.g)*r+e.g,b:(t.b-e.b)*r+e.b}}((0,o.RO)(t.backgroundColor||"#141414"),(0,o.RO)(n[r]),100*i))})):n}var b={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"},x={},w={};Object.keys(b).forEach((function(e){x[e]=y(b[e]),x[e].primary=x[e][5],w[e]=y(b[e],{theme:"dark",backgroundColor:"#141414"}),w[e].primary=w[e][5]}));var S=x.red,O=x.volcano,_=x.gold,C=x.orange,E=x.yellow,P=x.lime,M=x.green,k=x.cyan,A=x.blue,I=x.geekblue,T=x.purple,j=x.magenta,L=x.grey,R=x.grey},7971:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"}},7530:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M869 487.8L491.2 159.9c-2.9-2.5-6.6-3.9-10.5-3.9h-88.5c-7.4 0-10.8 9.2-5.2 14l350.2 304H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h585.1L386.9 854c-5.6 4.9-2.2 14 5.2 14h91.5c1.9 0 3.8-.7 5.2-2L869 536.2a32.07 32.07 0 000-48.4z"}}]},name:"arrow-right",theme:"outlined"}},7664:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r;const o=(r=n(1737))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},7931:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r;const o=(r=n(7312))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},3433:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return b}});var r=h(n(5043)),o=f(n(8139)),i=n(6983),a=f(n(6824)),l=f(n(2955)),c=n(5776),s=n(1779);function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e){return e&&e.__esModule?e:{default:e}}function p(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(p=function(e){return e?n:t})(e)}function h(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var n=p(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function g(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(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}(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})),e}function v(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function m(e,t){return function(e){if(Array.isArray(e))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=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(c){l=!0,o=c}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(0,c.setTwoToneColor)(i.blue.primary);var y=r.forwardRef((function(e,t){var n,i=e.className,c=e.icon,u=e.spin,f=e.rotate,p=e.tabIndex,h=e.onClick,y=e.twoToneColor,b=v(e,["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"]),x=r.useContext(a.default),w=x.prefixCls,S=void 0===w?"anticon":w,O=x.rootClassName,_=(0,o.default)(O,S,(d(n={},"".concat(S,"-").concat(c.name),!!c.name),d(n,"".concat(S,"-spin"),!!u||"loading"===c.name),n),i),C=p;void 0===C&&h&&(C=-1);var E=f?{msTransform:"rotate(".concat(f,"deg)"),transform:"rotate(".concat(f,"deg)")}:void 0,P=m((0,s.normalizeTwoToneColors)(y),2),M=P[0],k=P[1];return r.createElement("span",g(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){d(e,t,n[t])}))}return e}({role:"img","aria-label":c.name},b),{ref:t,tabIndex:C,onClick:h,className:_}),r.createElement(l.default,{icon:c,primaryColor:M,secondaryColor:k,style:E}))}));y.displayName="AntdIcon",y.getTwoToneColor=c.getTwoToneColor,y.setTwoToneColor=c.setTwoToneColor;var b=y},6824:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}});var r=(0,n(5043).createContext)({})},2955:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return p}});var r=l(n(5043)),o=n(1779);function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}function l(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=o?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(r,i,l):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){i(e,t,n[t])}))}return e}function s(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(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}(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})),e}function u(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var d={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var f=function(e){var t=e.icon,n=e.className,i=e.onClick,a=e.style,l=e.primaryColor,f=e.secondaryColor,p=u(e,["icon","className","onClick","style","primaryColor","secondaryColor"]),h=r.useRef(),g=d;if(l&&(g={primaryColor:l,secondaryColor:f||(0,o.getSecondaryColor)(l)}),(0,o.useInsertStyles)(h),(0,o.warning)((0,o.isIconDefinition)(t),"icon should be icon definiton, but got ".concat(t)),!(0,o.isIconDefinition)(t))return null;var v=t;return v&&"function"===typeof v.icon&&(v=s(c({},v),{icon:v.icon(g.primaryColor,g.secondaryColor)})),(0,o.generate)(v.icon,"svg-".concat(v.name),s(c({className:n,onClick:i,style:a,"data-icon":v.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},p),{ref:h}))};f.displayName="IconReact",f.getTwoToneColors=function(){return c({},d)},f.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;d.primaryColor=t,d.secondaryColor=n||(0,o.getSecondaryColor)(t),d.calculated=!!n};var p=f},5776:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{getTwoToneColor:function(){return s},setTwoToneColor:function(){return c}});var r=a(n(2955)),o=n(1779);function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function a(e){return e&&e.__esModule?e:{default:e}}function l(e,t){return function(e){if(Array.isArray(e))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=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(c){l=!0,o=c}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}(e,t)||function(){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 c(e){var t=l((0,o.normalizeTwoToneColors)(e),2),n=t[0],i=t[1];return r.default.setTwoToneColors({primaryColor:n,secondaryColor:i})}function s(){var e=r.default.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}},1737:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return f}});var r=s(n(5043)),o=l(n(7971)),i=l(n(3433));function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e){return e&&e.__esModule?e:{default:e}}function c(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(c=function(e){return e?n:t})(e)}function s(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var n=c(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function u(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(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}(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})),e}var d=function(e,t){return r.createElement(i.default,u(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){a(e,t,n[t])}))}return e}({},e),{ref:t,icon:o.default}))};var f=r.forwardRef(d)},7312:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return f}});var r=s(n(5043)),o=l(n(7530)),i=l(n(3433));function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e){return e&&e.__esModule?e:{default:e}}function c(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(c=function(e){return e?n:t})(e)}function s(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var n=c(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function u(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(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}(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})),e}var d=function(e,t){return r.createElement(i.default,u(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){a(e,t,n[t])}))}return e}({},e),{ref:t,icon:o.default}))};var f=r.forwardRef(d)},1779:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{generate:function(){return m},getSecondaryColor:function(){return y},iconStyles:function(){return w},isIconDefinition:function(){return g},normalizeAttrs:function(){return v},normalizeTwoToneColors:function(){return b},svgBaseProps:function(){return x},useInsertStyles:function(){return S},warning:function(){return h}});var r=n(6983),o=n(557),i=n(245),a=u(n(8158)),l=f(n(5043)),c=u(n(6824));function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e){return e&&e.__esModule?e:{default:e}}function d(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(d=function(e){return e?n:t})(e)}function f(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var n=d(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){s(e,t,n[t])}))}return e}function h(e,t){(0,a.default)(e,"[@ant-design/icons] ".concat(t))}function g(e){return"object"===typeof e&&"string"===typeof e.name&&"string"===typeof e.theme&&("object"===typeof e.icon||"function"===typeof e.icon)}function v(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,n){var r,o=e[n];if("class"===n)t.className=o,delete t.class;else delete t[n],t[(r=n,r.replace(/-(.)/g,(function(e,t){return t.toUpperCase()})))]=o;return t}),{})}function m(e,t,n){return n?l.default.createElement(e.tag,p({key:t},v(e.attrs),n),(e.children||[]).map((function(n,r){return m(n,"".concat(t,"-").concat(e.tag,"-").concat(r))}))):l.default.createElement(e.tag,p({key:t},v(e.attrs)),(e.children||[]).map((function(n,r){return m(n,"".concat(t,"-").concat(e.tag,"-").concat(r))})))}function y(e){return(0,r.generate)(e)[0]}function b(e){return e?Array.isArray(e)?e:[e]:[]}var x={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},w="\n.anticon {\n  display: inline-block;\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",S=function(e){var t=(0,l.useContext)(c.default),n=t.csp,r=t.prefixCls,a=w;r&&(a=a.replace(/anticon/g,r)),(0,l.useEffect)((function(){var t=e.current,r=(0,i.getShadowRoot)(t);(0,o.updateCSS)(a,"@ant-design-icons",{prepend:!0,csp:n,attachTo:r})}),[])}},4114:function(e){e.exports=function(){"use strict";var e=1e3,t=6e4,n=36e5,r="millisecond",o="second",i="minute",a="hour",l="day",c="week",s="month",u="quarter",d="year",f="date",p="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,v={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},m=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},y={s:m,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),o=n%60;return(t<=0?"+":"-")+m(r,2,"0")+":"+m(o,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),o=t.clone().add(r,s),i=n-o<0,a=t.clone().add(r+(i?-1:1),s);return+(-(r+(n-o)/(i?o-a:a-o))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:s,y:d,w:c,d:l,D:f,h:a,m:i,s:o,ms:r,Q:u}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},b="en",x={};x[b]=v;var w="$isDayjsObject",S=function(e){return e instanceof E||!(!e||!e[w])},O=function e(t,n,r){var o;if(!t)return b;if("string"==typeof t){var i=t.toLowerCase();x[i]&&(o=i),n&&(x[i]=n,o=i);var a=t.split("-");if(!o&&a.length>1)return e(a[0])}else{var l=t.name;x[l]=t,o=l}return!r&&o&&(b=o),o||!r&&b},_=function(e,t){if(S(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new E(n)},C=y;C.l=O,C.i=S,C.w=function(e,t){return _(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function v(e){this.$L=O(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[w]=!0}var m=v.prototype;return m.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(C.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(h);if(r){var o=r[2]-1||0,i=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)):new Date(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)}}return new Date(t)}(e),this.init()},m.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},m.$utils=function(){return C},m.isValid=function(){return!(this.$d.toString()===p)},m.isSame=function(e,t){var n=_(e);return this.startOf(t)<=n&&n<=this.endOf(t)},m.isAfter=function(e,t){return _(e)<this.startOf(t)},m.isBefore=function(e,t){return this.endOf(t)<_(e)},m.$g=function(e,t,n){return C.u(e)?this[t]:this.set(n,e)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(e,t){var n=this,r=!!C.u(t)||t,u=C.p(e),p=function(e,t){var o=C.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?o:o.endOf(l)},h=function(e,t){return C.w(n.toDate()[e].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},g=this.$W,v=this.$M,m=this.$D,y="set"+(this.$u?"UTC":"");switch(u){case d:return r?p(1,0):p(31,11);case s:return r?p(1,v):p(0,v+1);case c:var b=this.$locale().weekStart||0,x=(g<b?g+7:g)-b;return p(r?m-x:m+(6-x),v);case l:case f:return h(y+"Hours",0);case a:return h(y+"Minutes",1);case i:return h(y+"Seconds",2);case o:return h(y+"Milliseconds",3);default:return this.clone()}},m.endOf=function(e){return this.startOf(e,!1)},m.$set=function(e,t){var n,c=C.p(e),u="set"+(this.$u?"UTC":""),p=(n={},n[l]=u+"Date",n[f]=u+"Date",n[s]=u+"Month",n[d]=u+"FullYear",n[a]=u+"Hours",n[i]=u+"Minutes",n[o]=u+"Seconds",n[r]=u+"Milliseconds",n)[c],h=c===l?this.$D+(t-this.$W):t;if(c===s||c===d){var g=this.clone().set(f,1);g.$d[p](h),g.init(),this.$d=g.set(f,Math.min(this.$D,g.daysInMonth())).$d}else p&&this.$d[p](h);return this.init(),this},m.set=function(e,t){return this.clone().$set(e,t)},m.get=function(e){return this[C.p(e)]()},m.add=function(r,u){var f,p=this;r=Number(r);var h=C.p(u),g=function(e){var t=_(p);return C.w(t.date(t.date()+Math.round(e*r)),p)};if(h===s)return this.set(s,this.$M+r);if(h===d)return this.set(d,this.$y+r);if(h===l)return g(1);if(h===c)return g(7);var v=(f={},f[i]=t,f[a]=n,f[o]=e,f)[h]||1,m=this.$d.getTime()+r*v;return C.w(m,this)},m.subtract=function(e,t){return this.add(-1*e,t)},m.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||"YYYY-MM-DDTHH:mm:ssZ",o=C.z(this),i=this.$H,a=this.$m,l=this.$M,c=n.weekdays,s=n.months,u=n.meridiem,d=function(e,n,o,i){return e&&(e[n]||e(t,r))||o[n].slice(0,i)},f=function(e){return C.s(i%12||12,e,"0")},h=u||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(g,(function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return C.s(t.$y,4,"0");case"M":return l+1;case"MM":return C.s(l+1,2,"0");case"MMM":return d(n.monthsShort,l,s,3);case"MMMM":return d(s,l);case"D":return t.$D;case"DD":return C.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return d(n.weekdaysMin,t.$W,c,2);case"ddd":return d(n.weekdaysShort,t.$W,c,3);case"dddd":return c[t.$W];case"H":return String(i);case"HH":return C.s(i,2,"0");case"h":return f(1);case"hh":return f(2);case"a":return h(i,a,!0);case"A":return h(i,a,!1);case"m":return String(a);case"mm":return C.s(a,2,"0");case"s":return String(t.$s);case"ss":return C.s(t.$s,2,"0");case"SSS":return C.s(t.$ms,3,"0");case"Z":return o}return null}(e)||o.replace(":","")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(r,f,p){var h,g=this,v=C.p(f),m=_(r),y=(m.utcOffset()-this.utcOffset())*t,b=this-m,x=function(){return C.m(g,m)};switch(v){case d:h=x()/12;break;case s:h=x();break;case u:h=x()/3;break;case c:h=(b-y)/6048e5;break;case l:h=(b-y)/864e5;break;case a:h=b/n;break;case i:h=b/t;break;case o:h=b/e;break;default:h=b}return p?h:C.a(h)},m.daysInMonth=function(){return this.endOf(s).$D},m.$locale=function(){return x[this.$L]},m.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=O(e,t,!0);return r&&(n.$L=r),n},m.clone=function(){return C.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},v}(),P=E.prototype;return _.prototype=P,[["$ms",r],["$s",o],["$m",i],["$H",a],["$W",l],["$M",s],["$y",d],["$D",f]].forEach((function(e){P[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),_.extend=function(e,t){return e.$i||(e(t,E,_),e.$i=!0),_},_.locale=O,_.isDayjs=S,_.unix=function(e){return _(1e3*e)},_.en=x[b],_.Ls=x,_.p={},_}()},8936:function(e,t,n){e.exports=function(e){"use strict";function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=t(e),r={name:"zh-cn",weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u5468\u65e5_\u5468\u4e00_\u5468\u4e8c_\u5468\u4e09_\u5468\u56db_\u5468\u4e94_\u5468\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),ordinal:function(e,t){return"W"===t?e+"\u5468":e+"\u65e5"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5Ah\u70b9mm\u5206",LLLL:"YYYY\u5e74M\u6708D\u65e5ddddAh\u70b9mm\u5206",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},relativeTime:{future:"%s\u5185",past:"%s\u524d",s:"\u51e0\u79d2",m:"1 \u5206\u949f",mm:"%d \u5206\u949f",h:"1 \u5c0f\u65f6",hh:"%d \u5c0f\u65f6",d:"1 \u5929",dd:"%d \u5929",M:"1 \u4e2a\u6708",MM:"%d \u4e2a\u6708",y:"1 \u5e74",yy:"%d \u5e74"},meridiem:function(e,t){var n=100*e+t;return n<600?"\u51cc\u6668":n<900?"\u65e9\u4e0a":n<1100?"\u4e0a\u5348":n<1300?"\u4e2d\u5348":n<1800?"\u4e0b\u5348":"\u665a\u4e0a"}};return n.default.locale(r,null,!0),r}(n(4114))},5445:(e,t,n)=>{"use strict";n.d(t,{H:()=>d,K6:()=>i,Me:()=>s,Ob:()=>u,YL:()=>l,_:()=>o,g8:()=>h,n6:()=>p,oS:()=>g,wE:()=>c});var r=n(5433);function o(e,t,n){return{r:255*(0,r.Cg)(e,255),g:255*(0,r.Cg)(t,255),b:255*(0,r.Cg)(n,255)}}function i(e,t,n){e=(0,r.Cg)(e,255),t=(0,r.Cg)(t,255),n=(0,r.Cg)(n,255);var o=Math.max(e,t,n),i=Math.min(e,t,n),a=0,l=0,c=(o+i)/2;if(o===i)l=0,a=0;else{var s=o-i;switch(l=c>.5?s/(2-o-i):s/(o+i),o){case e:a=(t-n)/s+(t<n?6:0);break;case t:a=(n-e)/s+2;break;case n:a=(e-t)/s+4}a/=6}return{h:a,s:l,l:c}}function a(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 l(e,t,n){var o,i,l;if(e=(0,r.Cg)(e,360),t=(0,r.Cg)(t,100),n=(0,r.Cg)(n,100),0===t)i=n,l=n,o=n;else{var c=n<.5?n*(1+t):n+t-n*t,s=2*n-c;o=a(s,c,e+1/3),i=a(s,c,e),l=a(s,c,e-1/3)}return{r:255*o,g:255*i,b:255*l}}function c(e,t,n){e=(0,r.Cg)(e,255),t=(0,r.Cg)(t,255),n=(0,r.Cg)(n,255);var o=Math.max(e,t,n),i=Math.min(e,t,n),a=0,l=o,c=o-i,s=0===o?0:c/o;if(o===i)a=0;else{switch(o){case e:a=(t-n)/c+(t<n?6:0);break;case t:a=(n-e)/c+2;break;case n:a=(e-t)/c+4}a/=6}return{h:a,s:s,v:l}}function s(e,t,n){e=6*(0,r.Cg)(e,360),t=(0,r.Cg)(t,100),n=(0,r.Cg)(n,100);var o=Math.floor(e),i=e-o,a=n*(1-t),l=n*(1-i*t),c=n*(1-(1-i)*t),s=o%6;return{r:255*[n,l,a,a,c,n][s],g:255*[c,n,n,l,a,a][s],b:255*[a,a,c,n,n,l][s]}}function u(e,t,n,o){var i=[(0,r.wl)(Math.round(e).toString(16)),(0,r.wl)(Math.round(t).toString(16)),(0,r.wl)(Math.round(n).toString(16))];return o&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function d(e,t,n,o,i){var a=[(0,r.wl)(Math.round(e).toString(16)),(0,r.wl)(Math.round(t).toString(16)),(0,r.wl)(Math.round(n).toString(16)),(0,r.wl)(f(o))];return i&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))&&a[3].startsWith(a[3].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}function f(e){return Math.round(255*parseFloat(e)).toString(16)}function p(e){return h(e)/255}function h(e){return parseInt(e,16)}function g(e){return{r:e>>16,g:(65280&e)>>8,b:255&e}}},2345:(e,t,n)=>{"use strict";n.d(t,{D:()=>r});var r={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"}},3143:(e,t,n)=>{"use strict";n.d(t,{RO:()=>a});var r=n(5445),o=n(2345),i=n(5433);function a(e){var t={r:0,g:0,b:0},n=1,a=null,l=null,c=null,s=!1,f=!1;return"string"===typeof e&&(e=function(e){if(e=e.trim().toLowerCase(),0===e.length)return!1;var t=!1;if(o.D[e])e=o.D[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=u.rgb.exec(e);if(n)return{r:n[1],g:n[2],b:n[3]};if(n=u.rgba.exec(e),n)return{r:n[1],g:n[2],b:n[3],a:n[4]};if(n=u.hsl.exec(e),n)return{h:n[1],s:n[2],l:n[3]};if(n=u.hsla.exec(e),n)return{h:n[1],s:n[2],l:n[3],a:n[4]};if(n=u.hsv.exec(e),n)return{h:n[1],s:n[2],v:n[3]};if(n=u.hsva.exec(e),n)return{h:n[1],s:n[2],v:n[3],a:n[4]};if(n=u.hex8.exec(e),n)return{r:(0,r.g8)(n[1]),g:(0,r.g8)(n[2]),b:(0,r.g8)(n[3]),a:(0,r.n6)(n[4]),format:t?"name":"hex8"};if(n=u.hex6.exec(e),n)return{r:(0,r.g8)(n[1]),g:(0,r.g8)(n[2]),b:(0,r.g8)(n[3]),format:t?"name":"hex"};if(n=u.hex4.exec(e),n)return{r:(0,r.g8)(n[1]+n[1]),g:(0,r.g8)(n[2]+n[2]),b:(0,r.g8)(n[3]+n[3]),a:(0,r.n6)(n[4]+n[4]),format:t?"name":"hex8"};if(n=u.hex3.exec(e),n)return{r:(0,r.g8)(n[1]+n[1]),g:(0,r.g8)(n[2]+n[2]),b:(0,r.g8)(n[3]+n[3]),format:t?"name":"hex"};return!1}(e)),"object"===typeof e&&(d(e.r)&&d(e.g)&&d(e.b)?(t=(0,r._)(e.r,e.g,e.b),s=!0,f="%"===String(e.r).substr(-1)?"prgb":"rgb"):d(e.h)&&d(e.s)&&d(e.v)?(a=(0,i.Px)(e.s),l=(0,i.Px)(e.v),t=(0,r.Me)(e.h,a,l),s=!0,f="hsv"):d(e.h)&&d(e.s)&&d(e.l)&&(a=(0,i.Px)(e.s),c=(0,i.Px)(e.l),t=(0,r.YL)(e.h,a,c),s=!0,f="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=(0,i.TV)(n),{ok:s,format:e.format||f,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 l="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),c="[\\s|\\(]+(".concat(l,")[,|\\s]+(").concat(l,")[,|\\s]+(").concat(l,")\\s*\\)?"),s="[\\s|\\(]+(".concat(l,")[,|\\s]+(").concat(l,")[,|\\s]+(").concat(l,")[,|\\s]+(").concat(l,")\\s*\\)?"),u={CSS_UNIT:new RegExp(l),rgb:new RegExp("rgb"+c),rgba:new RegExp("rgba"+s),hsl:new RegExp("hsl"+c),hsla:new RegExp("hsla"+s),hsv:new RegExp("hsv"+c),hsva:new RegExp("hsva"+s),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 d(e){return Boolean(u.CSS_UNIT.exec(String(e)))}},5433:(e,t,n)=>{"use strict";function r(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 o(e){return Math.min(1,Math.max(0,e))}function i(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function a(e){return e<=1?"".concat(100*Number(e),"%"):e}function l(e){return 1===e.length?"0"+e:String(e)}n.d(t,{Cg:()=>r,J$:()=>o,Px:()=>a,TV:()=>i,wl:()=>l})},627:function(e){e.exports=function(){"use strict";var e=1e3,t=6e4,n=36e5,r="millisecond",o="second",i="minute",a="hour",l="day",c="week",s="month",u="quarter",d="year",f="date",p="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,v={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},m=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},y={s:m,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),o=n%60;return(t<=0?"+":"-")+m(r,2,"0")+":"+m(o,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),o=t.clone().add(r,s),i=n-o<0,a=t.clone().add(r+(i?-1:1),s);return+(-(r+(n-o)/(i?o-a:a-o))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:s,y:d,w:c,d:l,D:f,h:a,m:i,s:o,ms:r,Q:u}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},b="en",x={};x[b]=v;var w="$isDayjsObject",S=function(e){return e instanceof E||!(!e||!e[w])},O=function e(t,n,r){var o;if(!t)return b;if("string"==typeof t){var i=t.toLowerCase();x[i]&&(o=i),n&&(x[i]=n,o=i);var a=t.split("-");if(!o&&a.length>1)return e(a[0])}else{var l=t.name;x[l]=t,o=l}return!r&&o&&(b=o),o||!r&&b},_=function(e,t){if(S(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new E(n)},C=y;C.l=O,C.i=S,C.w=function(e,t){return _(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function v(e){this.$L=O(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[w]=!0}var m=v.prototype;return m.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(C.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(h);if(r){var o=r[2]-1||0,i=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)):new Date(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)}}return new Date(t)}(e),this.init()},m.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},m.$utils=function(){return C},m.isValid=function(){return!(this.$d.toString()===p)},m.isSame=function(e,t){var n=_(e);return this.startOf(t)<=n&&n<=this.endOf(t)},m.isAfter=function(e,t){return _(e)<this.startOf(t)},m.isBefore=function(e,t){return this.endOf(t)<_(e)},m.$g=function(e,t,n){return C.u(e)?this[t]:this.set(n,e)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(e,t){var n=this,r=!!C.u(t)||t,u=C.p(e),p=function(e,t){var o=C.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?o:o.endOf(l)},h=function(e,t){return C.w(n.toDate()[e].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},g=this.$W,v=this.$M,m=this.$D,y="set"+(this.$u?"UTC":"");switch(u){case d:return r?p(1,0):p(31,11);case s:return r?p(1,v):p(0,v+1);case c:var b=this.$locale().weekStart||0,x=(g<b?g+7:g)-b;return p(r?m-x:m+(6-x),v);case l:case f:return h(y+"Hours",0);case a:return h(y+"Minutes",1);case i:return h(y+"Seconds",2);case o:return h(y+"Milliseconds",3);default:return this.clone()}},m.endOf=function(e){return this.startOf(e,!1)},m.$set=function(e,t){var n,c=C.p(e),u="set"+(this.$u?"UTC":""),p=(n={},n[l]=u+"Date",n[f]=u+"Date",n[s]=u+"Month",n[d]=u+"FullYear",n[a]=u+"Hours",n[i]=u+"Minutes",n[o]=u+"Seconds",n[r]=u+"Milliseconds",n)[c],h=c===l?this.$D+(t-this.$W):t;if(c===s||c===d){var g=this.clone().set(f,1);g.$d[p](h),g.init(),this.$d=g.set(f,Math.min(this.$D,g.daysInMonth())).$d}else p&&this.$d[p](h);return this.init(),this},m.set=function(e,t){return this.clone().$set(e,t)},m.get=function(e){return this[C.p(e)]()},m.add=function(r,u){var f,p=this;r=Number(r);var h=C.p(u),g=function(e){var t=_(p);return C.w(t.date(t.date()+Math.round(e*r)),p)};if(h===s)return this.set(s,this.$M+r);if(h===d)return this.set(d,this.$y+r);if(h===l)return g(1);if(h===c)return g(7);var v=(f={},f[i]=t,f[a]=n,f[o]=e,f)[h]||1,m=this.$d.getTime()+r*v;return C.w(m,this)},m.subtract=function(e,t){return this.add(-1*e,t)},m.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||"YYYY-MM-DDTHH:mm:ssZ",o=C.z(this),i=this.$H,a=this.$m,l=this.$M,c=n.weekdays,s=n.months,u=n.meridiem,d=function(e,n,o,i){return e&&(e[n]||e(t,r))||o[n].slice(0,i)},f=function(e){return C.s(i%12||12,e,"0")},h=u||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(g,(function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return C.s(t.$y,4,"0");case"M":return l+1;case"MM":return C.s(l+1,2,"0");case"MMM":return d(n.monthsShort,l,s,3);case"MMMM":return d(s,l);case"D":return t.$D;case"DD":return C.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return d(n.weekdaysMin,t.$W,c,2);case"ddd":return d(n.weekdaysShort,t.$W,c,3);case"dddd":return c[t.$W];case"H":return String(i);case"HH":return C.s(i,2,"0");case"h":return f(1);case"hh":return f(2);case"a":return h(i,a,!0);case"A":return h(i,a,!1);case"m":return String(a);case"mm":return C.s(a,2,"0");case"s":return String(t.$s);case"ss":return C.s(t.$s,2,"0");case"SSS":return C.s(t.$ms,3,"0");case"Z":return o}return null}(e)||o.replace(":","")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(r,f,p){var h,g=this,v=C.p(f),m=_(r),y=(m.utcOffset()-this.utcOffset())*t,b=this-m,x=function(){return C.m(g,m)};switch(v){case d:h=x()/12;break;case s:h=x();break;case u:h=x()/3;break;case c:h=(b-y)/6048e5;break;case l:h=(b-y)/864e5;break;case a:h=b/n;break;case i:h=b/t;break;case o:h=b/e;break;default:h=b}return p?h:C.a(h)},m.daysInMonth=function(){return this.endOf(s).$D},m.$locale=function(){return x[this.$L]},m.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=O(e,t,!0);return r&&(n.$L=r),n},m.clone=function(){return C.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},v}(),P=E.prototype;return _.prototype=P,[["$ms",r],["$s",o],["$m",i],["$H",a],["$W",l],["$M",s],["$y",d],["$D",f]].forEach((function(e){P[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),_.extend=function(e,t){return e.$i||(e(t,E,_),e.$i=!0),_},_.locale=O,_.isDayjs=S,_.unix=function(e){return _(1e3*e)},_.en=x[b],_.Ls=x,_.p={},_}()},7301:function(e){e.exports=function(){"use strict";return function(e,t){var n=t.prototype,r=n.format;n.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return r.bind(this)(e);var o=this.$utils(),i=(e||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(e){switch(e){case"Q":return Math.ceil((t.$M+1)/3);case"Do":return n.ordinal(t.$D);case"gggg":return t.weekYear();case"GGGG":return t.isoWeekYear();case"wo":return n.ordinal(t.week(),"W");case"w":case"ww":return o.s(t.week(),"w"===e?1:2,"0");case"W":case"WW":return o.s(t.isoWeek(),"W"===e?1:2,"0");case"k":case"kk":return o.s(String(0===t.$H?24:t.$H),"k"===e?1:2,"0");case"X":return Math.floor(t.$d.getTime()/1e3);case"x":return t.$d.getTime();case"z":return"["+t.offsetName()+"]";case"zzz":return"["+t.offsetName("long")+"]";default:return e}}));return r.bind(this)(i)}}}()},7879:function(e){e.exports=function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d\d/,r=/\d\d?/,o=/\d*[^-_:/,()\s\d]+/,i={},a=function(e){return(e=+e)+(e>68?1900:2e3)},l=function(e){return function(t){this[e]=+t}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e)}],s=function(e){var t=i[e];return t&&(t.indexOf?t:t.s.concat(t.f))},u=function(e,t){var n,r=i.meridiem;if(r){for(var o=1;o<=24;o+=1)if(e.indexOf(r(o,0,t))>-1){n=o>12;break}}else n=e===(t?"pm":"PM");return n},d={A:[o,function(e){this.afternoon=u(e,!1)}],a:[o,function(e){this.afternoon=u(e,!0)}],S:[/\d/,function(e){this.milliseconds=100*+e}],SS:[n,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[r,l("seconds")],ss:[r,l("seconds")],m:[r,l("minutes")],mm:[r,l("minutes")],H:[r,l("hours")],h:[r,l("hours")],HH:[r,l("hours")],hh:[r,l("hours")],D:[r,l("day")],DD:[n,l("day")],Do:[o,function(e){var t=i.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,"")===e&&(this.day=r)}],M:[r,l("month")],MM:[n,l("month")],MMM:[o,function(e){var t=s("months"),n=(s("monthsShort")||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[o,function(e){var t=s("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,l("year")],YY:[n,function(e){this.year=a(e)}],YYYY:[/\d{4}/,l("year")],Z:c,ZZ:c};function f(n){var r,o;r=n,o=i&&i.formats;for(var a=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var i=r&&r.toUpperCase();return n||o[r]||e[r]||o[i].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),l=a.length,c=0;c<l;c+=1){var s=a[c],u=d[s],f=u&&u[0],p=u&&u[1];a[c]=p?{regex:f,parser:p}:s.replace(/^\[|\]$/g,"")}return function(e){for(var t={},n=0,r=0;n<l;n+=1){var o=a[n];if("string"==typeof o)r+=o.length;else{var i=o.regex,c=o.parser,s=e.slice(r),u=i.exec(s)[0];c.call(t,u),e=e.replace(u,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var n=e.hours;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(a=e.parseTwoDigitYear);var r=t.prototype,o=r.parse;r.parse=function(e){var t=e.date,r=e.utc,a=e.args;this.$u=r;var l=a[1];if("string"==typeof l){var c=!0===a[2],s=!0===a[3],u=c||s,d=a[2];s&&(d=a[2]),i=this.$locale(),!c&&d&&(i=n.Ls[d]),this.$d=function(e,t,n){try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);var r=f(t)(e),o=r.year,i=r.month,a=r.day,l=r.hours,c=r.minutes,s=r.seconds,u=r.milliseconds,d=r.zone,p=new Date,h=a||(o||i?1:p.getDate()),g=o||p.getFullYear(),v=0;o&&!i||(v=i>0?i-1:p.getMonth());var m=l||0,y=c||0,b=s||0,x=u||0;return d?new Date(Date.UTC(g,v,h,m,y,b,x+60*d.offset*1e3)):n?new Date(Date.UTC(g,v,h,m,y,b,x)):new Date(g,v,h,m,y,b,x)}catch(e){return new Date("")}}(t,l,r),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(l)&&(this.$d=new Date("")),i={}}else if(l instanceof Array)for(var p=l.length,h=1;h<=p;h+=1){a[1]=l[h-1];var g=n.apply(this,a);if(g.isValid()){this.$d=g.$d,this.$L=g.$L,this.init();break}h===p&&(this.$d=new Date(""))}else o.call(this,e)}}}()},7366:function(e){e.exports=function(){"use strict";return function(e,t,n){var r=t.prototype,o=function(e){return e&&(e.indexOf?e:e.s)},i=function(e,t,n,r,i){var a=e.name?e:e.$locale(),l=o(a[t]),c=o(a[n]),s=l||c.map((function(e){return e.slice(0,r)}));if(!i)return s;var u=a.weekStart;return s.map((function(e,t){return s[(t+(u||0))%7]}))},a=function(){return n.Ls[n.locale()]},l=function(e,t){return e.formats[t]||function(e){return e.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}(e.formats[t.toUpperCase()])},c=function(){var e=this;return{months:function(t){return t?t.format("MMMM"):i(e,"months")},monthsShort:function(t){return t?t.format("MMM"):i(e,"monthsShort","months",3)},firstDayOfWeek:function(){return e.$locale().weekStart||0},weekdays:function(t){return t?t.format("dddd"):i(e,"weekdays")},weekdaysMin:function(t){return t?t.format("dd"):i(e,"weekdaysMin","weekdays",2)},weekdaysShort:function(t){return t?t.format("ddd"):i(e,"weekdaysShort","weekdays",3)},longDateFormat:function(t){return l(e.$locale(),t)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return c.bind(this)()},n.localeData=function(){var e=a();return{firstDayOfWeek:function(){return e.weekStart||0},weekdays:function(){return n.weekdays()},weekdaysShort:function(){return n.weekdaysShort()},weekdaysMin:function(){return n.weekdaysMin()},months:function(){return n.months()},monthsShort:function(){return n.monthsShort()},longDateFormat:function(t){return l(e,t)},meridiem:e.meridiem,ordinal:e.ordinal}},n.months=function(){return i(a(),"months")},n.monthsShort=function(){return i(a(),"monthsShort","months",3)},n.weekdays=function(e){return i(a(),"weekdays",null,null,e)},n.weekdaysShort=function(e){return i(a(),"weekdaysShort","weekdays",3,e)},n.weekdaysMin=function(e){return i(a(),"weekdaysMin","weekdays",2,e)}}}()},8e3:function(e){e.exports=function(){"use strict";var e="week",t="year";return function(n,r,o){var i=r.prototype;i.week=function(n){if(void 0===n&&(n=null),null!==n)return this.add(7*(n-this.week()),"day");var r=this.$locale().yearStart||1;if(11===this.month()&&this.date()>25){var i=o(this).startOf(t).add(1,t).date(r),a=o(this).endOf(e);if(i.isBefore(a))return 1}var l=o(this).startOf(t).date(r).startOf(e).subtract(1,"millisecond"),c=this.diff(l,e,!0);return c<0?o(this).startOf("week").week():Math.ceil(c)},i.weeks=function(e){return void 0===e&&(e=null),this.week(e)}}}()},2849:function(e){e.exports=function(){"use strict";return function(e,t){t.prototype.weekYear=function(){var e=this.month(),t=this.week(),n=this.year();return 1===t&&11===e?n+1:0===e&&t>=52?n-1:n}}}()},8836:function(e){e.exports=function(){"use strict";return function(e,t){t.prototype.weekday=function(e){var t=this.$locale().weekStart||0,n=this.$W,r=(n<t?n+7:n)-t;return this.$utils().u(e)?r:this.subtract(r,"day").add(e,"day")}}}()},4917:(e,t,n)=>{var r;window,r=function(e,t){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=648)}([function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Cache",{enumerable:!0,get:function(){return it.default}}),Object.defineProperty(t,"assign",{enumerable:!0,get:function(){return Ye.default}}),Object.defineProperty(t,"augment",{enumerable:!0,get:function(){return Te.default}}),Object.defineProperty(t,"clamp",{enumerable:!0,get:function(){return L.default}}),Object.defineProperty(t,"clearAnimationFrame",{enumerable:!0,get:function(){return Ie.default}}),Object.defineProperty(t,"clone",{enumerable:!0,get:function(){return je.default}}),Object.defineProperty(t,"contains",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"debounce",{enumerable:!0,get:function(){return Le.default}}),Object.defineProperty(t,"deepMix",{enumerable:!0,get:function(){return De.default}}),Object.defineProperty(t,"difference",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"each",{enumerable:!0,get:function(){return Ne.default}}),Object.defineProperty(t,"endsWith",{enumerable:!0,get:function(){return O.default}}),Object.defineProperty(t,"every",{enumerable:!0,get:function(){return C.default}}),Object.defineProperty(t,"extend",{enumerable:!0,get:function(){return Fe.default}}),Object.defineProperty(t,"filter",{enumerable:!0,get:function(){return _.default}}),Object.defineProperty(t,"find",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"findIndex",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"firstValue",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"fixedBase",{enumerable:!0,get:function(){return R.default}}),Object.defineProperty(t,"flatten",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"flattenDeep",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"forIn",{enumerable:!0,get:function(){return Q.default}}),Object.defineProperty(t,"get",{enumerable:!0,get:function(){return Ue.default}}),Object.defineProperty(t,"getEllipsisText",{enumerable:!0,get:function(){return ot.default}}),Object.defineProperty(t,"getRange",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"getType",{enumerable:!0,get:function(){return se.default}}),Object.defineProperty(t,"getWrapBehavior",{enumerable:!0,get:function(){return A.default}}),Object.defineProperty(t,"group",{enumerable:!0,get:function(){return P.default}}),Object.defineProperty(t,"groupBy",{enumerable:!0,get:function(){return M.default}}),Object.defineProperty(t,"groupToMap",{enumerable:!0,get:function(){return k.default}}),Object.defineProperty(t,"has",{enumerable:!0,get:function(){return Z.default}}),Object.defineProperty(t,"hasKey",{enumerable:!0,get:function(){return J.default}}),Object.defineProperty(t,"hasValue",{enumerable:!0,get:function(){return ee.default}}),Object.defineProperty(t,"head",{enumerable:!0,get:function(){return x.default}}),Object.defineProperty(t,"identity",{enumerable:!0,get:function(){return tt.default}}),Object.defineProperty(t,"includes",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"indexOf",{enumerable:!0,get:function(){return Be.default}}),Object.defineProperty(t,"isArguments",{enumerable:!0,get:function(){return ue.default}}),Object.defineProperty(t,"isArray",{enumerable:!0,get:function(){return de.default}}),Object.defineProperty(t,"isArrayLike",{enumerable:!0,get:function(){return fe.default}}),Object.defineProperty(t,"isBoolean",{enumerable:!0,get:function(){return pe.default}}),Object.defineProperty(t,"isDate",{enumerable:!0,get:function(){return he.default}}),Object.defineProperty(t,"isDecimal",{enumerable:!0,get:function(){return D.default}}),Object.defineProperty(t,"isElement",{enumerable:!0,get:function(){return ke.default}}),Object.defineProperty(t,"isEmpty",{enumerable:!0,get:function(){return ze.default}}),Object.defineProperty(t,"isEqual",{enumerable:!0,get:function(){return He.default}}),Object.defineProperty(t,"isEqualWith",{enumerable:!0,get:function(){return We.default}}),Object.defineProperty(t,"isError",{enumerable:!0,get:function(){return ge.default}}),Object.defineProperty(t,"isEven",{enumerable:!0,get:function(){return N.default}}),Object.defineProperty(t,"isFinite",{enumerable:!0,get:function(){return me.default}}),Object.defineProperty(t,"isFunction",{enumerable:!0,get:function(){return ve.default}}),Object.defineProperty(t,"isInteger",{enumerable:!0,get:function(){return F.default}}),Object.defineProperty(t,"isMatch",{enumerable:!0,get:function(){return ne.default}}),Object.defineProperty(t,"isNegative",{enumerable:!0,get:function(){return B.default}}),Object.defineProperty(t,"isNil",{enumerable:!0,get:function(){return ye.default}}),Object.defineProperty(t,"isNull",{enumerable:!0,get:function(){return be.default}}),Object.defineProperty(t,"isNumber",{enumerable:!0,get:function(){return xe.default}}),Object.defineProperty(t,"isNumberEqual",{enumerable:!0,get:function(){return z.default}}),Object.defineProperty(t,"isObject",{enumerable:!0,get:function(){return we.default}}),Object.defineProperty(t,"isObjectLike",{enumerable:!0,get:function(){return Se.default}}),Object.defineProperty(t,"isOdd",{enumerable:!0,get:function(){return H.default}}),Object.defineProperty(t,"isPlainObject",{enumerable:!0,get:function(){return Oe.default}}),Object.defineProperty(t,"isPositive",{enumerable:!0,get:function(){return W.default}}),Object.defineProperty(t,"isPrototype",{enumerable:!0,get:function(){return _e.default}}),Object.defineProperty(t,"isRegExp",{enumerable:!0,get:function(){return Ce.default}}),Object.defineProperty(t,"isString",{enumerable:!0,get:function(){return Ee.default}}),Object.defineProperty(t,"isType",{enumerable:!0,get:function(){return Pe.default}}),Object.defineProperty(t,"isUndefined",{enumerable:!0,get:function(){return Me.default}}),Object.defineProperty(t,"keys",{enumerable:!0,get:function(){return te.default}}),Object.defineProperty(t,"last",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(t,"lowerCase",{enumerable:!0,get:function(){return oe.default}}),Object.defineProperty(t,"lowerFirst",{enumerable:!0,get:function(){return ie.default}}),Object.defineProperty(t,"map",{enumerable:!0,get:function(){return Ve.default}}),Object.defineProperty(t,"mapValues",{enumerable:!0,get:function(){return Ge.default}}),Object.defineProperty(t,"max",{enumerable:!0,get:function(){return V.default}}),Object.defineProperty(t,"maxBy",{enumerable:!0,get:function(){return G.default}}),Object.defineProperty(t,"measureTextWidth",{enumerable:!0,get:function(){return rt.default}}),Object.defineProperty(t,"memoize",{enumerable:!0,get:function(){return Re.default}}),Object.defineProperty(t,"min",{enumerable:!0,get:function(){return Y.default}}),Object.defineProperty(t,"minBy",{enumerable:!0,get:function(){return U.default}}),Object.defineProperty(t,"mix",{enumerable:!0,get:function(){return Ye.default}}),Object.defineProperty(t,"mod",{enumerable:!0,get:function(){return X.default}}),Object.defineProperty(t,"noop",{enumerable:!0,get:function(){return et.default}}),Object.defineProperty(t,"number2color",{enumerable:!0,get:function(){return T.default}}),Object.defineProperty(t,"omit",{enumerable:!0,get:function(){return Ke.default}}),Object.defineProperty(t,"parseRadius",{enumerable:!0,get:function(){return j.default}}),Object.defineProperty(t,"pick",{enumerable:!0,get:function(){return qe.default}}),Object.defineProperty(t,"pull",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(t,"pullAt",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(t,"reduce",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(t,"remove",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(t,"requestAnimationFrame",{enumerable:!0,get:function(){return Ae.default}}),Object.defineProperty(t,"set",{enumerable:!0,get:function(){return Xe.default}}),Object.defineProperty(t,"size",{enumerable:!0,get:function(){return nt.default}}),Object.defineProperty(t,"some",{enumerable:!0,get:function(){return E.default}}),Object.defineProperty(t,"sortBy",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(t,"startsWith",{enumerable:!0,get:function(){return S.default}}),Object.defineProperty(t,"substitute",{enumerable:!0,get:function(){return ae.default}}),Object.defineProperty(t,"throttle",{enumerable:!0,get:function(){return $e.default}}),Object.defineProperty(t,"toArray",{enumerable:!0,get:function(){return Qe.default}}),Object.defineProperty(t,"toDegree",{enumerable:!0,get:function(){return q.default}}),Object.defineProperty(t,"toInteger",{enumerable:!0,get:function(){return K.default}}),Object.defineProperty(t,"toRadian",{enumerable:!0,get:function(){return $.default}}),Object.defineProperty(t,"toString",{enumerable:!0,get:function(){return Ze.default}}),Object.defineProperty(t,"union",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(t,"uniq",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(t,"uniqueId",{enumerable:!0,get:function(){return Je.default}}),Object.defineProperty(t,"upperCase",{enumerable:!0,get:function(){return le.default}}),Object.defineProperty(t,"upperFirst",{enumerable:!0,get:function(){return ce.default}}),Object.defineProperty(t,"values",{enumerable:!0,get:function(){return re.default}}),Object.defineProperty(t,"valuesOfKey",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(t,"wrapBehavior",{enumerable:!0,get:function(){return I.default}});var o=r(n(237)),i=r(n(659)),a=r(n(660)),l=r(n(661)),c=r(n(662)),s=r(n(663)),u=r(n(664)),d=r(n(665)),f=r(n(666)),p=r(n(378)),h=r(n(379)),g=r(n(667)),v=r(n(668)),m=r(n(669)),y=r(n(380)),b=r(n(670)),x=r(n(671)),w=r(n(672)),S=r(n(673)),O=r(n(674)),_=r(n(373)),C=r(n(675)),E=r(n(676)),P=r(n(677)),M=r(n(382)),k=r(n(381)),A=r(n(678)),I=r(n(679)),T=r(n(680)),j=r(n(681)),L=r(n(682)),R=r(n(683)),D=r(n(684)),N=r(n(685)),F=r(n(686)),B=r(n(687)),z=r(n(688)),H=r(n(689)),W=r(n(690)),V=r(n(376)),G=r(n(691)),Y=r(n(377)),U=r(n(692)),X=r(n(693)),q=r(n(694)),K=r(n(695)),$=r(n(696)),Q=r(n(697)),Z=r(n(383)),J=r(n(698)),ee=r(n(699)),te=r(n(375)),ne=r(n(374)),re=r(n(239)),oe=r(n(700)),ie=r(n(701)),ae=r(n(702)),le=r(n(703)),ce=r(n(704)),se=r(n(384)),ue=r(n(705)),de=r(n(36)),fe=r(n(56)),pe=r(n(706)),he=r(n(707)),ge=r(n(708)),ve=r(n(57)),me=r(n(709)),ye=r(n(94)),be=r(n(710)),xe=r(n(86)),we=r(n(169)),Se=r(n(238)),Oe=r(n(138)),_e=r(n(385)),Ce=r(n(711)),Ee=r(n(85)),Pe=r(n(68)),Me=r(n(712)),ke=r(n(713)),Ae=r(n(714)),Ie=r(n(715)),Te=r(n(716)),je=r(n(717)),Le=r(n(718)),Re=r(n(386)),De=r(n(719)),Ne=r(n(106)),Fe=r(n(720)),Be=r(n(721)),ze=r(n(722)),He=r(n(387)),We=r(n(723)),Ve=r(n(724)),Ge=r(n(725)),Ye=r(n(240)),Ue=r(n(726)),Xe=r(n(727)),qe=r(n(728)),Ke=r(n(729)),$e=r(n(730)),Qe=r(n(731)),Ze=r(n(107)),Je=r(n(732)),et=r(n(733)),tt=r(n(734)),nt=r(n(735)),rt=r(n(388)),ot=r(n(736)),it=r(n(737))},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.__addDisposableResource=T,t.__assign=void 0,t.__asyncDelegator=O,t.__asyncGenerator=S,t.__asyncValues=_,t.__await=w,t.__awaiter=f,t.__classPrivateFieldGet=k,t.__classPrivateFieldIn=I,t.__classPrivateFieldSet=A,t.__createBinding=void 0,t.__decorate=s,t.__disposeResources=L,t.__esDecorate=function(e,t,n,r,i,a){function l(e){if(void 0!==e&&"function"!==typeof e)throw new TypeError("Function expected");return e}for(var c,s=r.kind,u="getter"===s?"get":"setter"===s?"set":"value",d=!t&&e?r.static?e:e.prototype:null,f=t||(d?Object.getOwnPropertyDescriptor(d,r.name):{}),p=!1,h=n.length-1;h>=0;h--){var g={};for(var v in r)g[v]="access"===v?{}:r[v];for(var v in r.access)g.access[v]=r.access[v];g.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");a.push(l(e||null))};var m=(0,n[h])("accessor"===s?{get:f.get,set:f.set}:f[u],g);if("accessor"===s){if(void 0===m)continue;if(null===m||"object"!==(0,o.default)(m))throw new TypeError("Object expected");(c=l(m.get))&&(f.get=c),(c=l(m.set))&&(f.set=c),(c=l(m.init))&&i.unshift(c)}else(c=l(m))&&("field"===s?i.unshift(c):f[u]=c)}d&&Object.defineProperty(d,r.name,f),p=!0},t.__exportStar=g,t.__extends=a,t.__generator=p,t.__importDefault=M,t.__importStar=P,t.__makeTemplateObject=C,t.__metadata=d,t.__param=u,t.__propKey=function(e){return"symbol"===(0,o.default)(e)?e:"".concat(e)},t.__read=m,t.__rest=c,t.__runInitializers=function(e,t,n){for(var r=arguments.length>2,o=0;o<t.length;o++)n=r?t[o].call(e,n):t[o].call(e);return r?n:void 0},t.__setFunctionName=function(e,t,n){return"symbol"===(0,o.default)(t)&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:n?"".concat(n," ",t):t})},t.__spread=y,t.__spreadArray=x,t.__spreadArrays=b,t.__values=v,t.default=void 0;var o=r(n(6)),i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},i(e,t)};function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var l=t.__assign=function(){return t.__assign=l=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},l.apply(this,arguments)};function c(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}function s(e,t,n,r){var i,a=arguments.length,l=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"===typeof Reflect?"undefined":(0,o.default)(Reflect))&&"function"===typeof Reflect.decorate)l=Reflect.decorate(e,t,n,r);else for(var c=e.length-1;c>=0;c--)(i=e[c])&&(l=(a<3?i(l):a>3?i(t,n,l):i(t,n))||l);return a>3&&l&&Object.defineProperty(t,n,l),l}function u(e,t){return function(n,r){t(n,r,e)}}function d(e,t){if("object"===("undefined"===typeof Reflect?"undefined":(0,o.default)(Reflect))&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)}function f(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(t){i(t)}}function l(e){try{c(r.throw(e))}catch(t){i(t)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}c((r=r.apply(e,t||[])).next())}))}function p(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(l){return function(c){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,l[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&l[0]?r.return:l[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,l[1])).done)return o;switch(r=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return a.label++,{value:l[1],done:!1};case 5:a.label++,r=l[1],l=[0];continue;case 7:l=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===l[0]||2===l[0])){a=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]<o[3])){a.label=l[1];break}if(6===l[0]&&a.label<o[1]){a.label=o[1],o=l;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(l);break}o[2]&&a.ops.pop(),a.trys.pop();continue}l=t.call(e,a)}catch(c){l=[6,c],r=0}finally{n=o=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,c])}}}var h=t.__createBinding=Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]};function g(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||h(t,e,n)}function v(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(l){o={error:l}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function y(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(m(arguments[t]));return e}function b(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,l=i.length;a<l;a++,o++)r[o]=i[a];return r}function x(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}function w(e){return this instanceof w?(this.v=e,this):new w(e)}function S(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){o[e]&&(r[e]=function(t){return new Promise((function(n,r){i.push([e,t,n,r])>1||l(e,t)}))})}function l(e,t){try{(n=o[e](t)).value instanceof w?Promise.resolve(n.value.v).then(c,s):u(i[0][2],n)}catch(r){u(i[0][3],r)}var n}function c(e){l("next",e)}function s(e){l("throw",e)}function u(e,t){e(t),i.shift(),i.length&&l(i[0][0],i[0][1])}}function O(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,o){t[r]=e[r]?function(t){return(n=!n)?{value:w(e[r](t)),done:!1}:o?o(t):t}:o}}function _(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=v(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,o,(t=e[n](t)).done,t.value)}))}}}function C(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var E=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function P(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&h(t,e,n);return E(t,e),t}function M(e){return e&&e.__esModule?e:{default:e}}function k(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"===typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function A(e,t,n,r,o){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"===typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?o.call(e,n):o?o.value=n:t.set(e,n),n}function I(e,t){if(null===t||"object"!==(0,o.default)(t)&&"function"!==typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"===typeof e?t===e:e.has(t)}function T(e,t,n){if(null!==t&&void 0!==t){if("object"!==(0,o.default)(t)&&"function"!==typeof t)throw new TypeError("Object expected.");var r;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=t[Symbol.asyncDispose]}if(void 0===r){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=t[Symbol.dispose]}if("function"!==typeof r)throw new TypeError("Object not disposable.");e.stack.push({value:t,dispose:r,async:n})}else n&&e.stack.push({async:!0});return t}var j="function"===typeof SuppressedError?SuppressedError:function(e,t,n){var r=new Error(n);return r.name="SuppressedError",r.error=e,r.suppressed=t,r};function L(e){function t(t){e.error=e.hasError?new j(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}return function n(){for(;e.stack.length;){var r=e.stack.pop();try{var o=r.dispose&&r.dispose.call(r.value);if(r.async)return Promise.resolve(o).then(n,(function(e){return t(e),n()}))}catch(i){t(i)}}if(e.hasError)throw e.error}()}t.default={__extends:a,__assign:l,__rest:c,__decorate:s,__param:u,__metadata:d,__awaiter:f,__generator:p,__createBinding:h,__exportStar:g,__values:v,__read:m,__spread:y,__spreadArrays:b,__spreadArray:x,__await:w,__asyncGenerator:S,__asyncDelegator:O,__asyncValues:_,__makeTemplateObject:C,__importStar:P,__importDefault:M,__classPrivateFieldGet:k,__classPrivateFieldSet:A,__classPrivateFieldIn:I,__addDisposableResource:T,__disposeResources:L}},function(e,t,n){"use strict";e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},function(t,n){t.exports=e},function(e,t,n){"use strict";var r=n(364),o=n(370),i=n(371),a=n(372),l=n(658),c=o.apply(a()),s=function(e,t){return c(Object,arguments)};r(s,{getPolyfill:a,implementation:i,shim:l}),e.exports=s},function(e,t,n){"use strict";function r(t){return e.exports=r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,r(t)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";function r(t){return e.exports=r="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},e.exports.__esModule=!0,e.exports.default=e.exports,r(t)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={flow:!0,pick:!0,template:!0,log:!0,invariant:!0,LEVEL:!0,getContainerSize:!0,findViewById:!0,getViews:!0,getSiblingViews:!0,transformLabel:!0,getSplinePath:!0,deepAssign:!0,kebabCase:!0,renderStatistic:!0,renderGaugeStatistic:!0,measureTextWidth:!0,isBetween:!0,isRealNumber:!0};Object.defineProperty(t,"LEVEL",{enumerable:!0,get:function(){return l.LEVEL}}),Object.defineProperty(t,"deepAssign",{enumerable:!0,get:function(){return p.deepAssign}}),Object.defineProperty(t,"findViewById",{enumerable:!0,get:function(){return u.findViewById}}),Object.defineProperty(t,"flow",{enumerable:!0,get:function(){return o.flow}}),Object.defineProperty(t,"getContainerSize",{enumerable:!0,get:function(){return c.getContainerSize}}),Object.defineProperty(t,"getSiblingViews",{enumerable:!0,get:function(){return u.getSiblingViews}}),Object.defineProperty(t,"getSplinePath",{enumerable:!0,get:function(){return f.getSplinePath}}),Object.defineProperty(t,"getViews",{enumerable:!0,get:function(){return u.getViews}}),Object.defineProperty(t,"invariant",{enumerable:!0,get:function(){return l.invariant}}),Object.defineProperty(t,"isBetween",{enumerable:!0,get:function(){return m.isBetween}}),Object.defineProperty(t,"isRealNumber",{enumerable:!0,get:function(){return m.isRealNumber}}),Object.defineProperty(t,"kebabCase",{enumerable:!0,get:function(){return h.kebabCase}}),Object.defineProperty(t,"log",{enumerable:!0,get:function(){return l.log}}),Object.defineProperty(t,"measureTextWidth",{enumerable:!0,get:function(){return v.measureTextWidth}}),Object.defineProperty(t,"pick",{enumerable:!0,get:function(){return i.pick}}),Object.defineProperty(t,"renderGaugeStatistic",{enumerable:!0,get:function(){return g.renderGaugeStatistic}}),Object.defineProperty(t,"renderStatistic",{enumerable:!0,get:function(){return g.renderStatistic}}),Object.defineProperty(t,"template",{enumerable:!0,get:function(){return a.template}}),Object.defineProperty(t,"transformLabel",{enumerable:!0,get:function(){return d.transformLabel}});var o=n(1165),i=n(540),a=n(1166),l=n(541),c=n(1167),s=n(1168);Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===s[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}}))}));var u=n(542),d=n(1169),f=n(1170),p=n(543),h=n(1171),g=n(544),v=n(1172),m=n(302),y=n(198);Object.keys(y).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===y[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return y[e]}}))}));var b=n(120);Object.keys(b).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===b[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return b[e]}}))}))},function(e,t,n){"use strict";n.r(t),n.d(t,"VERSION",(function(){return d}));var r=n(236),o=n(621),i=n(25),a=n(66);n.d(t,"registerScale",(function(){return a.registerScale})),n.d(t,"getScale",(function(){return a.getScale})),n.d(t,"registerTickMethod",(function(){return a.registerTickMethod}));var l=n(188);n.d(t,"setGlobal",(function(){return l.setGlobal})),n.d(t,"GLOBAL",(function(){return l.GLOBAL})),n(1323),n(955);var c=n(462);for(var s in n.d(t,"createThemeByStyleSheet",(function(){return c.c})),n.d(t,"antvLight",(function(){return c.b})),n.d(t,"antvDark",(function(){return c.a})),i)["default","registerScale","getScale","registerTickMethod","setGlobal","GLOBAL","VERSION","setDefaultErrorFallback","createThemeByStyleSheet","antvLight","antvDark"].indexOf(s)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(s);var u=n(67);n.d(t,"setDefaultErrorFallback",(function(){return u.c})),Object(i.registerEngine)("canvas",r),Object(i.registerEngine)("svg",o);var d="4.1.22",f=r.Canvas.prototype.getPointByClient;r.Canvas.prototype.getPointByClient=function(e,t){var n=f.call(this,e,t),r=this.get("el").getBoundingClientRect(),o=this.get("width"),i=this.get("height"),a=r.width,l=r.height;return{x:n.x/(a/o),y:n.y/(l/i)}}},function(e,t,n){"use strict";e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=n(389);function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,r(o.key),o)}}e.exports=function(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=n(132),o=n.n(r),i=n(4),a=n.n(i),l=n(45),c=n.n(l),s=n(9),u=n.n(s),d=n(10),f=n.n(d),p=n(12),h=n.n(p),g=n(13),v=n.n(g),m=n(5),y=n.n(m),b=n(3),x=n.n(b),w=n(92),S=n.n(w),O=n(28),_=n.n(O),C=n(131),E=n(67),P=n(76),M=n(47),k=n(165),A=n(82),I=n(78),T=n(75),j=n(93),L=n(232),R=n(0);function D(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{width:Object(R.isNumber)(t.width)?t.width:e.clientWidth,height:Object(R.isNumber)(t.height)?t.height:e.clientHeight}}var N=n(16),F=function e(t,n){if(Object(R.isObject)(t)&&Object(R.isObject)(n)){var r=Object.keys(t),o=Object.keys(n);if(r.length!==o.length)return!1;for(var i=!0,a=0;a<r.length&&(i=e(t[r[a]],n[r[a]]));a++);return i}if(Object(R.isArray)(t)&&Object(R.isArray)(n)){if(t.length!==n.length)return!1;for(var l=!0,c=0;c<t.length&&(l=e(t[c],n[c]));c++);return l}return t===n},B=n(17),z=n.n(B),H=n(130),W=n(629),V=n(630);function G(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return v()(this,n)}}var Y=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};Object(H.registerLocale)("en-US",W.EN_US_LOCALE),Object(H.registerLocale)("zh-CN",V.ZH_CN_LOCALE);var U=x.a.createElement("div",{style:{position:"absolute",top:"48%",left:"50%",color:"#aaa",textAlign:"center"}},"\u6682\u65e0\u6570\u636e"),X={padding:"8px 24px 10px 10px",fontFamily:"PingFang SC",fontSize:12,color:"grey",textAlign:"left",lineHeight:"16px"},q={padding:"10px 0 0 10px",fontFamily:"PingFang SC",fontSize:18,color:"black",textAlign:"left",lineHeight:"20px"},K=function(e){h()(n,e);var t=G(n);function n(){var e;return u()(this,n),(e=t.apply(this,arguments))._context={chart:null},e}return f()(n,[{key:"componentDidMount",value:function(){this.props.children&&this.g2Instance.chart&&this.g2Instance.chart.render(),Object(N.b)(this.g2Instance,{},this.props),this.g2Instance.data=this.props.data,this.preConfig=Object(T.a)(Object(I.a)(this.props,[].concat(c()(j.a),["container","PlotClass","onGetG2Instance","data"])))}},{key:"componentDidUpdate",value:function(e){this.props.children&&this.g2Instance.chart&&this.g2Instance.chart.render(),Object(N.b)(this.g2Instance,e,this.props)}},{key:"componentWillUnmount",value:function(){var e=this;this.g2Instance&&setTimeout((function(){e.g2Instance.destroy(),e.g2Instance=null,e._context.chart=null}),0)}},{key:"getG2Instance",value:function(){return this.g2Instance}},{key:"getChartView",value:function(){return this.g2Instance.chart}},{key:"checkInstanceReady",value:function(){var e=Object(I.a)(this.props,[].concat(c()(j.a),["container","PlotClass","onGetG2Instance","data"]));this.g2Instance?this.shouldReCreate()?(this.g2Instance.destroy(),this.initInstance(),this.g2Instance.render()):this.diffConfig()?this.g2Instance.update(a()(a()({},e),{data:this.props.data})):this.diffData()&&this.g2Instance.changeData(this.props.data):(this.initInstance(),this.g2Instance.render()),this.preConfig=Object(T.a)(e),this.g2Instance.data=this.props.data}},{key:"initInstance",value:function(){var e=this.props,t=e.container,n=e.PlotClass,r=e.onGetG2Instance,o=(e.children,Y(e,["container","PlotClass","onGetG2Instance","children"]));this.g2Instance=new n(t,o),this._context.chart=this.g2Instance,_()(r)&&r(this.g2Instance)}},{key:"diffConfig",value:function(){var e=this.preConfig||{},t=Object(I.a)(this.props,[].concat(c()(j.a),["container","PlotClass","onGetG2Instance","data"]));return!F(e,t)}},{key:"diffData",value:function(){var e=this.g2Instance.data,t=this.props.data;if(!Object(R.isArray)(e)||!Object(R.isArray)(t))return!e===t;if(e.length!==t.length)return!0;var n=!0;return e.forEach((function(e,r){Object(A.a)(e,t[r])||(n=!1)})),!n}},{key:"shouldReCreate",value:function(){return!!this.props.forceUpdate}},{key:"render",value:function(){this.checkInstanceReady();var e=this.getChartView();return x.a.createElement(P.a.Provider,{value:this._context},x.a.createElement(M.a.Provider,{value:e},x.a.createElement("div",{key:S()("plot-chart")},this.props.children)))}}]),n}(x.a.Component),$=Object(C.a)(K);t.a=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e){return e},r=x.a.forwardRef((function(t,r){var i=t.title,l=t.description,c=t.autoFit,s=void 0===c||c,u=t.forceFit,d=t.errorContent,f=void 0===d?E.a:d,p=t.containerStyle,h=t.containerProps,g=t.placeholder,v=t.ErrorBoundaryProps,m=t.isMaterial,y=Y(t,["title","description","autoFit","forceFit","errorContent","containerStyle","containerProps","placeholder","ErrorBoundaryProps","isMaterial"]),w=n(y),S=Object(b.useRef)(),O=Object(b.useRef)(),_=Object(b.useRef)(),C=Object(b.useState)(0),P=o()(C,2),M=P[0],A=P[1],I=Object(b.useRef)(),T=Object(b.useCallback)((function(){if(S.current){var e=D(S.current,t),n=O.current?D(O.current):{width:0,height:0},r=_.current?D(_.current):{width:0,height:0},o=e.height-n.height-r.height;0===o&&(o=350),o<20&&(o=20),Math.abs(M-o)>1&&A(o)}}),[S.current,O.current,M,_.current]),j=Object(b.useCallback)(Object(R.debounce)(T,500),[T]),F=x.a.isValidElement(f)?function(){return f}:f;if(g&&!w.data){var B=!0===g?U:g;return x.a.createElement(E.b,a()({FallbackComponent:F},v),x.a.createElement("div",{style:{width:t.width||"100%",height:t.height||400,textAlign:"center",position:"relative"}},B))}var H=Object(k.a)(i,!1),W=Object(k.a)(l,!1),V=a()(a()({},q),H.style),G=a()(a()(a()({},X),W.style),{top:V.height}),K=void 0!==u?u:s;return Object(R.isNil)(u)||z()(!1,"\u8bf7\u4f7f\u7528autoFit\u66ff\u4ee3forceFit"),Object(b.useEffect)((function(){return K?S.current?(T(),I.current=new L.ResizeObserver(j),I.current.observe(S.current)):A(0):S.current&&(T(),I.current&&I.current.unobserve(S.current)),function(){I.current&&S.current&&I.current.unobserve(S.current)}}),[S.current,K]),x.a.createElement(E.b,a()({FallbackComponent:F},v),x.a.createElement("div",a()({ref:function(e){S.current=e,m&&(Object(R.isFunction)(r)?r(e):r&&(r.current=e))},className:"bizcharts-plot"},h,{style:{position:"relative",height:t.height||"100%",width:t.width||"100%"}}),H.visible&&x.a.createElement("div",a()({ref:O},Object(N.d)(w),{className:"bizcharts-plot-title",style:V}),H.text),W.visible&&x.a.createElement("div",a()({ref:_},Object(N.a)(w),{className:"bizcharts-plot-description",style:G}),W.text),!!M&&x.a.createElement($,a()({appendPadding:[10,5,10,10],autoFit:K,ref:m?void 0:r},w,{PlotClass:e,containerStyle:a()(a()({},p),{height:M})}))))}));return r.displayName=t||e.name,r}},function(e,t,n){"use strict";var r=n(739);e.exports=function(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&&r(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=n(6).default,o=n(740);e.exports=function(e,t){if(t&&("object"===r(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return o(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ELEMENT_RANGE_HIGHLIGHT_EVENTS=t.BRUSH_FILTER_EVENTS=t.VIEW_LIFE_CIRCLE=void 0;var r=n(1),o=n(25),i=n(207),a=n(105);(0,o.registerTheme)("dark",(0,a.createThemeByStyleSheet)(i.antvDark));var l=(0,r.__importStar)(n(206)),c=(0,r.__importStar)(n(324)),s=n(25);(0,s.registerEngine)("canvas",l),(0,s.registerEngine)("svg",c);var u=n(25),d=(0,r.__importDefault)(n(325)),f=(0,r.__importDefault)(n(326)),p=(0,r.__importDefault)(n(327)),h=(0,r.__importDefault)(n(328)),g=(0,r.__importDefault)(n(329)),v=(0,r.__importDefault)(n(158)),m=(0,r.__importDefault)(n(330)),y=(0,r.__importDefault)(n(331)),b=(0,r.__importDefault)(n(332)),x=(0,r.__importDefault)(n(994));(0,u.registerGeometry)("Polygon",y.default),(0,u.registerGeometry)("Interval",h.default),(0,u.registerGeometry)("Schema",b.default),(0,u.registerGeometry)("Path",v.default),(0,u.registerGeometry)("Point",m.default),(0,u.registerGeometry)("Line",g.default),(0,u.registerGeometry)("Area",d.default),(0,u.registerGeometry)("Edge",f.default),(0,u.registerGeometry)("Heatmap",p.default),(0,u.registerGeometry)("Violin",x.default),n(996),n(997),n(998),n(999),n(1e3),n(1001),n(468),n(469),n(470),n(471),n(472),n(280),n(473),n(474),n(475),n(476),n(477),n(478),n(1002),n(1003);var w=n(25),S=(0,r.__importDefault)(n(99)),O=(0,r.__importDefault)(n(163)),_=(0,r.__importDefault)(n(164)),C=(0,r.__importDefault)(n(215));(0,w.registerGeometryLabel)("base",S.default),(0,w.registerGeometryLabel)("interval",O.default),(0,w.registerGeometryLabel)("pie",_.default),(0,w.registerGeometryLabel)("polar",C.default);var E=n(25),P=n(333),M=n(1004),k=n(1005),A=n(334),I=n(335),T=n(226),j=n(1006),L=n(1008),R=n(1010),D=n(1011),N=n(1012),F=n(1013),B=n(1014);(0,E.registerGeometryLabelLayout)("overlap",T.overlap),(0,E.registerGeometryLabelLayout)("distribute",P.distribute),(0,E.registerGeometryLabelLayout)("fixed-overlap",T.fixedOverlap),(0,E.registerGeometryLabelLayout)("hide-overlap",j.hideOverlap),(0,E.registerGeometryLabelLayout)("limit-in-shape",I.limitInShape),(0,E.registerGeometryLabelLayout)("limit-in-canvas",A.limitInCanvas),(0,E.registerGeometryLabelLayout)("limit-in-plot",B.limitInPlot),(0,E.registerGeometryLabelLayout)("pie-outer",M.pieOuterLabelLayout),(0,E.registerGeometryLabelLayout)("adjust-color",L.adjustColor),(0,E.registerGeometryLabelLayout)("interval-adjust-position",R.intervalAdjustPosition),(0,E.registerGeometryLabelLayout)("interval-hide-overlap",D.intervalHideOverlap),(0,E.registerGeometryLabelLayout)("point-adjust-position",N.pointAdjustPosition),(0,E.registerGeometryLabelLayout)("pie-spider",k.pieSpiderLabelLayout),(0,E.registerGeometryLabelLayout)("path-adjust-position",F.pathAdjustPosition);var z=n(223),H=n(167),W=n(162),V=n(320),G=n(224),Y=n(321),U=n(322),X=n(225),q=n(25);(0,q.registerAnimation)("fade-in",z.fadeIn),(0,q.registerAnimation)("fade-out",z.fadeOut),(0,q.registerAnimation)("grow-in-x",H.growInX),(0,q.registerAnimation)("grow-in-xy",H.growInXY),(0,q.registerAnimation)("grow-in-y",H.growInY),(0,q.registerAnimation)("scale-in-x",G.scaleInX),(0,q.registerAnimation)("scale-in-y",G.scaleInY),(0,q.registerAnimation)("wave-in",U.waveIn),(0,q.registerAnimation)("zoom-in",X.zoomIn),(0,q.registerAnimation)("zoom-out",X.zoomOut),(0,q.registerAnimation)("position-update",V.positionUpdate),(0,q.registerAnimation)("sector-path-update",Y.sectorPathUpdate),(0,q.registerAnimation)("path-in",W.pathIn);var K=n(25),$=(0,r.__importDefault)(n(336)),Q=(0,r.__importDefault)(n(337)),Z=(0,r.__importDefault)(n(338)),J=(0,r.__importDefault)(n(339)),ee=(0,r.__importDefault)(n(340)),te=(0,r.__importDefault)(n(341));(0,K.registerFacet)("rect",ee.default),(0,K.registerFacet)("mirror",J.default),(0,K.registerFacet)("list",Q.default),(0,K.registerFacet)("matrix",Z.default),(0,K.registerFacet)("circle",$.default),(0,K.registerFacet)("tree",te.default);var ne=n(25),re=(0,r.__importDefault)(n(319)),oe=(0,r.__importDefault)(n(342)),ie=(0,r.__importDefault)(n(343)),ae=(0,r.__importDefault)(n(344)),le=(0,r.__importDefault)(n(205)),ce=(0,r.__importDefault)(n(1018));(0,ne.registerComponentController)("axis",oe.default),(0,ne.registerComponentController)("legend",ie.default),(0,ne.registerComponentController)("tooltip",le.default),(0,ne.registerComponentController)("annotation",re.default),(0,ne.registerComponentController)("slider",ae.default),(0,ne.registerComponentController)("scrollbar",ce.default);var se=n(25),ue=(0,r.__importDefault)(n(345)),de=(0,r.__importDefault)(n(346)),fe=(0,r.__importDefault)(n(126)),pe=(0,r.__importDefault)(n(347)),he=(0,r.__importDefault)(n(348)),ge=(0,r.__importDefault)(n(349)),ve=(0,r.__importDefault)(n(350)),me=(0,r.__importDefault)(n(351)),ye=(0,r.__importDefault)(n(159)),be=(0,r.__importDefault)(n(352)),xe=(0,r.__importDefault)(n(353)),we=(0,r.__importStar)(n(227));Object.defineProperty(t,"ELEMENT_RANGE_HIGHLIGHT_EVENTS",{enumerable:!0,get:function(){return we.ELEMENT_RANGE_HIGHLIGHT_EVENTS}});var Se=(0,r.__importDefault)(n(354)),Oe=(0,r.__importDefault)(n(355)),_e=(0,r.__importDefault)(n(356)),Ce=(0,r.__importDefault)(n(357)),Ee=(0,r.__importDefault)(n(358)),Pe=(0,r.__importDefault)(n(228)),Me=(0,r.__importDefault)(n(359)),ke=(0,r.__importDefault)(n(360)),Ae=(0,r.__importDefault)(n(1020)),Ie=(0,r.__importDefault)(n(1021)),Te=(0,r.__importDefault)(n(1022)),je=(0,r.__importDefault)(n(481)),Le=(0,r.__importDefault)(n(480)),Re=(0,r.__importDefault)(n(1023)),De=(0,r.__importDefault)(n(361)),Ne=(0,r.__importDefault)(n(362)),Fe=(0,r.__importStar)(n(482));Object.defineProperty(t,"BRUSH_FILTER_EVENTS",{enumerable:!0,get:function(){return Fe.BRUSH_FILTER_EVENTS}});var Be=(0,r.__importDefault)(n(1024)),ze=(0,r.__importDefault)(n(1025)),He=(0,r.__importDefault)(n(1026)),We=(0,r.__importDefault)(n(1027)),Ve=(0,r.__importDefault)(n(1028)),Ge=(0,r.__importDefault)(n(1029)),Ye=(0,r.__importDefault)(n(1030)),Ue=(0,r.__importDefault)(n(1031)),Xe=(0,r.__importDefault)(n(1032));(0,se.registerAction)("tooltip",fe.default),(0,se.registerAction)("sibling-tooltip",de.default),(0,se.registerAction)("ellipsis-text",pe.default),(0,se.registerAction)("element-active",he.default),(0,se.registerAction)("element-single-active",me.default),(0,se.registerAction)("element-range-active",ve.default),(0,se.registerAction)("element-highlight",ye.default),(0,se.registerAction)("element-highlight-by-x",xe.default),(0,se.registerAction)("element-highlight-by-color",be.default),(0,se.registerAction)("element-single-highlight",Se.default),(0,se.registerAction)("element-range-highlight",we.default),(0,se.registerAction)("element-sibling-highlight",we.default,{effectSiblings:!0,effectByRecord:!0}),(0,se.registerAction)("element-selected",_e.default),(0,se.registerAction)("element-single-selected",Ce.default),(0,se.registerAction)("element-range-selected",Oe.default),(0,se.registerAction)("element-link-by-color",ge.default),(0,se.registerAction)("active-region",ue.default),(0,se.registerAction)("list-active",Ee.default),(0,se.registerAction)("list-selected",Me.default),(0,se.registerAction)("list-highlight",Pe.default),(0,se.registerAction)("list-unchecked",ke.default),(0,se.registerAction)("list-checked",Ae.default),(0,se.registerAction)("legend-item-highlight",Pe.default,{componentNames:["legend"]}),(0,se.registerAction)("axis-label-highlight",Pe.default,{componentNames:["axis"]}),(0,se.registerAction)("rect-mask",Le.default),(0,se.registerAction)("x-rect-mask",Te.default,{dim:"x"}),(0,se.registerAction)("y-rect-mask",Te.default,{dim:"y"}),(0,se.registerAction)("circle-mask",Ie.default),(0,se.registerAction)("path-mask",je.default),(0,se.registerAction)("smooth-path-mask",Re.default),(0,se.registerAction)("cursor",De.default),(0,se.registerAction)("data-filter",Ne.default),(0,se.registerAction)("brush",Fe.default),(0,se.registerAction)("brush-x",Fe.default,{dims:["x"]}),(0,se.registerAction)("brush-y",Fe.default,{dims:["y"]}),(0,se.registerAction)("sibling-filter",Be.default),(0,se.registerAction)("sibling-x-filter",Be.default),(0,se.registerAction)("sibling-y-filter",Be.default),(0,se.registerAction)("element-filter",ze.default),(0,se.registerAction)("element-sibling-filter",He.default),(0,se.registerAction)("element-sibling-filter-record",He.default,{byRecord:!0}),(0,se.registerAction)("view-drag",Ve.default),(0,se.registerAction)("view-move",Ge.default),(0,se.registerAction)("scale-translate",Ye.default),(0,se.registerAction)("scale-zoom",Ue.default),(0,se.registerAction)("reset-button",We.default,{name:"reset-button",text:"reset"}),(0,se.registerAction)("mousewheel-scroll",Xe.default);var qe=n(25);function Ke(e){return e.isInPlot()}function $e(e){return e.gEvent.preventDefault(),e.gEvent.originalEvent.deltaY>0}(0,qe.registerInteraction)("tooltip",{start:[{trigger:"plot:mousemove",action:"tooltip:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"plot:touchmove",action:"tooltip:show",throttle:{wait:50,leading:!0,trailing:!1}}],end:[{trigger:"plot:mouseleave",action:"tooltip:hide"},{trigger:"plot:leave",action:"tooltip:hide"},{trigger:"plot:touchend",action:"tooltip:hide"}]}),(0,qe.registerInteraction)("ellipsis-text",{start:[{trigger:"legend-item-name:mousemove",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"legend-item-name:touchstart",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"axis-label:mousemove",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"axis-label:touchstart",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}}],end:[{trigger:"legend-item-name:mouseleave",action:"ellipsis-text:hide"},{trigger:"legend-item-name:touchend",action:"ellipsis-text:hide"},{trigger:"axis-label:mouseleave",action:"ellipsis-text:hide"},{trigger:"axis-label:touchend",action:"ellipsis-text:hide"}]}),(0,qe.registerInteraction)("element-active",{start:[{trigger:"element:mouseenter",action:"element-active:active"}],end:[{trigger:"element:mouseleave",action:"element-active:reset"}]}),(0,qe.registerInteraction)("element-selected",{start:[{trigger:"element:click",action:"element-selected:toggle"}]}),(0,qe.registerInteraction)("element-highlight",{start:[{trigger:"element:mouseenter",action:"element-highlight:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight:reset"}]}),(0,qe.registerInteraction)("element-highlight-by-x",{start:[{trigger:"element:mouseenter",action:"element-highlight-by-x:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight-by-x:reset"}]}),(0,qe.registerInteraction)("element-highlight-by-color",{start:[{trigger:"element:mouseenter",action:"element-highlight-by-color:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight-by-color:reset"}]}),(0,qe.registerInteraction)("legend-active",{start:[{trigger:"legend-item:mouseenter",action:["list-active:active","element-active:active"]}],end:[{trigger:"legend-item:mouseleave",action:["list-active:reset","element-active:reset"]}]}),(0,qe.registerInteraction)("legend-highlight",{start:[{trigger:"legend-item:mouseenter",action:["legend-item-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"legend-item:mouseleave",action:["legend-item-highlight:reset","element-highlight:reset"]}]}),(0,qe.registerInteraction)("axis-label-highlight",{start:[{trigger:"axis-label:mouseenter",action:["axis-label-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"axis-label:mouseleave",action:["axis-label-highlight:reset","element-highlight:reset"]}]}),(0,qe.registerInteraction)("element-list-highlight",{start:[{trigger:"element:mouseenter",action:["list-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"element:mouseleave",action:["list-highlight:reset","element-highlight:reset"]}]}),(0,qe.registerInteraction)("element-range-highlight",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"mask:mouseenter",action:"cursor:move"},{trigger:"plot:mouseleave",action:"cursor:default"},{trigger:"mask:mouseleave",action:"cursor:crosshair"}],start:[{trigger:"plot:mousedown",isEnable:function(e){return!e.isInShape("mask")},action:["rect-mask:start","rect-mask:show"]},{trigger:"mask:dragstart",action:["rect-mask:moveStart"]}],processing:[{trigger:"plot:mousemove",action:["rect-mask:resize"]},{trigger:"mask:drag",action:["rect-mask:move"]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:["rect-mask:end"]},{trigger:"mask:dragend",action:["rect-mask:moveEnd"]},{trigger:"document:mouseup",isEnable:function(e){return!e.isInPlot()},action:["element-range-highlight:clear","rect-mask:end","rect-mask:hide"]}],rollback:[{trigger:"dblclick",action:["element-range-highlight:clear","rect-mask:hide"]}]}),(0,qe.registerInteraction)("brush",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:Ke,action:["brush:start","rect-mask:start","rect-mask:show"]}],processing:[{trigger:"mousemove",isEnable:Ke,action:["rect-mask:resize"]}],end:[{trigger:"mouseup",isEnable:Ke,action:["brush:filter","brush:end","rect-mask:end","rect-mask:hide","reset-button:show"]}],rollback:[{trigger:"reset-button:click",action:["brush:reset","reset-button:hide","cursor:crosshair"]}]}),(0,qe.registerInteraction)("brush-visible",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"plot:mousedown",action:["rect-mask:start","rect-mask:show"]}],processing:[{trigger:"plot:mousemove",action:["rect-mask:resize"]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:["rect-mask:end","rect-mask:hide","element-filter:filter","element-range-highlight:clear"]}],rollback:[{trigger:"dblclick",action:["element-filter:clear"]}]}),(0,qe.registerInteraction)("brush-x",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:Ke,action:["brush-x:start","x-rect-mask:start","x-rect-mask:show"]}],processing:[{trigger:"mousemove",isEnable:Ke,action:["x-rect-mask:resize"]}],end:[{trigger:"mouseup",isEnable:Ke,action:["brush-x:filter","brush-x:end","x-rect-mask:end","x-rect-mask:hide"]}],rollback:[{trigger:"dblclick",action:["brush-x:reset"]}]}),(0,qe.registerInteraction)("element-path-highlight",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:Ke,action:"path-mask:start"},{trigger:"mousedown",isEnable:Ke,action:"path-mask:show"}],processing:[{trigger:"mousemove",action:"path-mask:addPoint"}],end:[{trigger:"mouseup",action:"path-mask:end"}],rollback:[{trigger:"dblclick",action:"path-mask:hide"}]}),(0,qe.registerInteraction)("element-single-selected",{start:[{trigger:"element:click",action:"element-single-selected:toggle"}]}),(0,qe.registerInteraction)("legend-filter",{showEnable:[{trigger:"legend-item:mouseenter",action:"cursor:pointer"},{trigger:"legend-item:mouseleave",action:"cursor:default"}],start:[{trigger:"legend-item:click",action:["list-unchecked:toggle","data-filter:filter"]}]}),(0,qe.registerInteraction)("continuous-filter",{start:[{trigger:"legend:valuechanged",action:"data-filter:filter"}]}),(0,qe.registerInteraction)("continuous-visible-filter",{start:[{trigger:"legend:valuechanged",action:"element-filter:filter"}]}),(0,qe.registerInteraction)("legend-visible-filter",{showEnable:[{trigger:"legend-item:mouseenter",action:"cursor:pointer"},{trigger:"legend-item:mouseleave",action:"cursor:default"}],start:[{trigger:"legend-item:click",action:["list-unchecked:toggle","element-filter:filter"]}]}),(0,qe.registerInteraction)("active-region",{start:[{trigger:"plot:mousemove",action:"active-region:show"}],end:[{trigger:"plot:mouseleave",action:"active-region:hide"}]}),(0,qe.registerInteraction)("view-zoom",{start:[{trigger:"plot:mousewheel",isEnable:function(e){return $e(e.event)},action:"scale-zoom:zoomOut",throttle:{wait:100,leading:!0,trailing:!1}},{trigger:"plot:mousewheel",isEnable:function(e){return!$e(e.event)},action:"scale-zoom:zoomIn",throttle:{wait:100,leading:!0,trailing:!1}}]}),(0,qe.registerInteraction)("sibling-tooltip",{start:[{trigger:"plot:mousemove",action:"sibling-tooltip:show"}],end:[{trigger:"plot:mouseleave",action:"sibling-tooltip:hide"}]}),(0,qe.registerInteraction)("plot-mousewheel-scroll",{start:[{trigger:"plot:mousewheel",action:"mousewheel-scroll:scroll"}]});var Qe=n(21);Object.defineProperty(t,"VIEW_LIFE_CIRCLE",{enumerable:!0,get:function(){return Qe.VIEW_LIFE_CIRCLE}}),(0,r.__exportStar)(n(25),t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(1061);Object.defineProperty(t,"flow",{enumerable:!0,get:function(){return o.flow}});var i=n(502);Object.defineProperty(t,"pick",{enumerable:!0,get:function(){return i.pick}});var a=n(1062);Object.defineProperty(t,"template",{enumerable:!0,get:function(){return a.template}});var l=n(503);Object.defineProperty(t,"log",{enumerable:!0,get:function(){return l.log}}),Object.defineProperty(t,"invariant",{enumerable:!0,get:function(){return l.invariant}}),Object.defineProperty(t,"LEVEL",{enumerable:!0,get:function(){return l.LEVEL}});var c=n(1063);Object.defineProperty(t,"getContainerSize",{enumerable:!0,get:function(){return c.getContainerSize}}),r.__exportStar(n(1064),t);var s=n(504);Object.defineProperty(t,"findViewById",{enumerable:!0,get:function(){return s.findViewById}}),Object.defineProperty(t,"getViews",{enumerable:!0,get:function(){return s.getViews}}),Object.defineProperty(t,"getSiblingViews",{enumerable:!0,get:function(){return s.getSiblingViews}});var u=n(1065);Object.defineProperty(t,"transformLabel",{enumerable:!0,get:function(){return u.transformLabel}});var d=n(1066);Object.defineProperty(t,"getSplinePath",{enumerable:!0,get:function(){return d.getSplinePath}});var f=n(505);Object.defineProperty(t,"deepAssign",{enumerable:!0,get:function(){return f.deepAssign}});var p=n(1067);Object.defineProperty(t,"kebabCase",{enumerable:!0,get:function(){return p.kebabCase}});var h=n(506);Object.defineProperty(t,"renderStatistic",{enumerable:!0,get:function(){return h.renderStatistic}}),Object.defineProperty(t,"renderGaugeStatistic",{enumerable:!0,get:function(){return h.renderGaugeStatistic}});var g=n(1068);Object.defineProperty(t,"measureTextWidth",{enumerable:!0,get:function(){return g.measureTextWidth}});var v=n(290);Object.defineProperty(t,"isBetween",{enumerable:!0,get:function(){return v.isBetween}}),Object.defineProperty(t,"isRealNumber",{enumerable:!0,get:function(){return v.isRealNumber}}),r.__exportStar(n(291),t),r.__exportStar(n(292),t)},function(e,t,n){"use strict";n.d(t,"f",(function(){return u})),n.d(t,"e",(function(){return f})),n.d(t,"c",(function(){return p})),n.d(t,"b",(function(){return h})),n.d(t,"d",(function(){return g})),n.d(t,"a",(function(){return v}));var r=n(4),o=n.n(r),i=n(17),a=n.n(i),l=n(0),c=n(231),s=n(136),u=function(e,t){e.forEach((function(e){var n=e.sourceKey,r=e.targetKey,o=e.notice,i=Object(l.get)(t,n);i&&(a()(!1,o),Object(l.set)(t,r,i))}))},d=function(e,t){var n=Object(l.get)(e,t);if(!1!==n&&null!==n){if(void 0!==n)if(!0!==n)if(Object(l.isObject)(n)){f(n,"line",null),f(n,"grid",null),f(n,"label",null),f(n,"tickLine",null),f(n,"title",null);var r=Object(l.get)(n,"label");if(r&&Object(l.isObject)(r)){var i=r.suffix;i&&Object(l.set)(r,"formatter",(function(e){return"".concat(e).concat(i)}));var c=r.offsetX,s=r.offsetY,u=r.offset;!Object(l.isNil)(u)||Object(l.isNil)(c)&&Object(l.isNil)(s)||("xAxis"===t&&Object(l.set)(r,"offset",Object(l.isNil)(c)?s:c),"yAxis"===t&&Object(l.set)(r,"offset",Object(l.isNil)(s)?c:s))}e[t]=o()(o()({},n),{label:r})}else a()(!0,"".concat(t," \u914d\u7f6e\u53c2\u6570\u4e0d\u6b63\u786e"));else e[t]={}}else e[t]=null},f=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=Object(l.get)(e,"".concat(t,".visible"));return!1!==r&&null!==r||Object(l.set)(e,t,n),r},p=function(e){var t=o()({},e);if(f(t,"tooltip"),f(t,"legend")){f(t,"legend.title");var n=Object(l.get)(t,"legend.position");n&&Object(l.set)(t,"legend.position",{"top-center":"top","right-center":"right","left-center":"left","bottom-center":"bottom"}[n]||n)}var r=Object(l.get)(t,"legend.formatter");if(r){var i=Object(l.get)(t,"legend.itemName",{});Object(l.set)(t,"legend.itemName",o()(o()({},i),{formatter:r}))}var a=Object(l.get)(t,"legend.text");a&&Object(l.set)(t,"legend.itemName",a),f(t,"label"),d(t,"xAxis"),d(t,"yAxis");var s=Object(l.get)(t,"guideLine",[]),u=Object(l.get)(t,"data",[]),p=Object(l.get)(t,"yField","y");s.forEach((function(e){if(u.length>0){var n="median";switch(e.type){case"max":n=Object(l.maxBy)(u,(function(e){return e[p]}))[p];break;case"mean":n=Object(c.a)(u.map((function(e){return e[p]})))/u.length;break;default:n=Object(l.minBy)(u,(function(e){return e[p]}))[p]}var r=o()(o()({start:["min",n],end:["max",n],style:e.lineStyle,text:{content:n}},e),{type:"line"});Object(l.get)(t,"annotations")||Object(l.set)(t,"annotations",[]),t.annotations.push(r),Object(l.set)(t,"point",!1)}}));var h=Object(l.get)(t,"interactions",[]).find((function(e){return"slider"===e.type}));return h&&Object(l.isNil)(t.slider)&&(t.slider=h.cfg),t},h=function(e,t,n){var r=Object(s.a)(Object(l.get)(t,"events",[])),o=Object(s.a)(Object(l.get)(n,"events",[]));r.forEach((function(n){e.off(n[1],t.events[n[0]])})),o.forEach((function(t){e.on(t[1],n.events[t[0]])}))},g=function(e){var t=Object(l.get)(e,"events",{}),n={};return["onTitleClick","onTitleDblClick","onTitleMouseleave","onTitleMousemove","onTitleMousedown","onTitleMouseup","onTitleMouseenter"].forEach((function(e){t[e]&&(n[e.replace("Title","")]=t[e])})),n},v=function(e){var t=Object(l.get)(e,"events",{}),n={};return["onDescriptionClick","onDescriptionDblClick","onDescriptionMouseleave","onDescriptionMousemove","onDescriptionMousedown","onDescriptionMouseup","onDescriptionMouseenter"].forEach((function(e){t[e]&&(n[e.replace("Description","")]=t[e])})),n}},function(e,t,n){"use strict";var r=function(){};e.exports=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(50);t.default=function(e,t,n){for(var o=0,i=r.default(t)?t.split("."):t;e&&o<i.length;)e=e[i[o++]];return void 0===e||o<i.length?n:e}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.Plot=t.PLOT_CONTAINER_OPTIONS=void 0;var o=n(1),i=n(14),a=n(0),l=r(n(125)),c=n(508),s=n(7),u="data-chart-source-type",d=t.PLOT_CONTAINER_OPTIONS=["padding","appendPadding","renderer","pixelRatio","syncViewPadding","supportCSSTransform","limitInPlot"];t.Plot=function(e){function t(t,n){var r=e.call(this)||this;return r.container="string"===typeof t?document.getElementById(t):t,r.options=(0,s.deepAssign)({},r.getDefaultOptions(),n),r.createG2(),r.bindEvents(),r}return(0,o.__extends)(t,e),t.getDefaultOptions=function(){return{renderer:"canvas",xAxis:{nice:!0,label:{autoRotate:!1,autoHide:{type:"equidistance",cfg:{minGap:6}}}},yAxis:{nice:!0,label:{autoHide:!0,autoRotate:!1}},animation:!0}},t.prototype.createG2=function(){var e=this.options,t=e.width,n=e.height,r=e.defaultInteractions;this.chart=new i.Chart((0,o.__assign)((0,o.__assign)((0,o.__assign)((0,o.__assign)({container:this.container,autoFit:!1},this.getChartSize(t,n)),{localRefresh:!1}),(0,s.pick)(this.options,d)),{defaultInteractions:r})),this.container.setAttribute(u,"G2Plot")},t.prototype.getChartSize=function(e,t){var n=(0,s.getContainerSize)(this.container);return{width:e||n.width||400,height:t||n.height||400}},t.prototype.bindEvents=function(){var e=this;this.chart&&this.chart.on("*",(function(t){(null===t||void 0===t?void 0:t.type)&&e.emit(t.type,t)}))},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.render=function(){this.chart.clear(),this.chart.options={data:[],animate:!0},this.chart.views=[],this.execAdaptor(),this.chart.render(),this.bindSizeSensor()},t.prototype.update=function(e){this.updateOption(e),this.render()},t.prototype.updateOption=function(e){this.options=(0,s.deepAssign)({},this.options,e)},t.prototype.setState=function(e,t,n){void 0===n&&(n=!0);var r=(0,s.getAllElementsRecursively)(this.chart);(0,a.each)(r,(function(r){t(r.getData())&&r.setState(e,n)}))},t.prototype.getStates=function(){var e=(0,s.getAllElementsRecursively)(this.chart),t=[];return(0,a.each)(e,(function(e){var n=e.getData(),r=e.getStates();(0,a.each)(r,(function(r){t.push({data:n,state:r,geometry:e.geometry,element:e})}))})),t},t.prototype.changeData=function(e){this.update({data:e})},t.prototype.changeSize=function(e,t){this.chart.changeSize(e,t)},t.prototype.addAnnotations=function(e){var t=(0,o.__spreadArrays)(e),n=this.chart.getController("annotation"),r=n.getComponents().map((function(e){return e.extra}));n.clear(!0);for(var i=function(e){var o=r[e],i=t.findIndex((function(e){return e.id&&e.id===o.id}));-1!==i&&(o=(0,s.deepAssign)({},o,t[i]),t.splice(i,1)),n.annotation(o)},a=0;a<r.length;a++)i(a);t.forEach((function(e){return n.annotation(e)})),this.chart.render(!0)},t.prototype.removeAnnotations=function(e){var t=this.chart.getController("annotation"),n=t.getComponents().map((function(e){return e.extra}));t.clear(!0);for(var r=function(r){var o=n[r];e.find((function(e){return e.id&&e.id===o.id}))||t.annotation(o)},o=0;o<n.length;o++)r(o);this.chart.render(!0)},t.prototype.destroy=function(){this.unbindSizeSensor(),this.chart.destroy(),this.off(),this.container.removeAttribute(u)},t.prototype.execAdaptor=function(){var e=this.getSchemaAdaptor(),t=this.options,n=t.padding,r=t.appendPadding;this.chart.padding=n,this.chart.appendPadding=r,e({chart:this.chart,options:this.options})},t.prototype.triggerResize=function(){this.chart.forceFit()},t.prototype.bindSizeSensor=function(){var e=this;if(!this.unbind){var t=this.options.autoFit;(void 0===t||t)&&(this.unbind=(0,c.bind)(this.container,(function(){var t=(0,s.getContainerSize)(e.container),n=t.width,r=t.height;n===e.chart.width&&r===e.chart.height||e.triggerResize()})))}},t.prototype.unbindSizeSensor=function(){this.unbind&&(this.unbind(),this.unbind=void 0)},t}(l.default)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(61),o=n(50),i=n(1060);t.default=function(e,t,n){var a=e,l=o.default(t)?t.split("."):t;return l.forEach((function(e,t){t<l.length-1?(r.default(a[e])||(a[e]=i.default(l[t+1])?[]:{}),a=a[e]):a[e]=n})),e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.COMPONENT_MAX_VIEW_PERCENTAGE=t.MIN_CHART_HEIGHT=t.MIN_CHART_WIDTH=t.FIELD_ORIGIN=t.GROUP_ATTRS=t.ELEMENT_STATE=t.PLOT_EVENTS=t.GEOMETRY_LIFE_CIRCLE=t.VIEW_LIFE_CIRCLE=t.GROUP_Z_INDEX=t.COMPONENT_TYPE=t.DIRECTION=t.LAYER=void 0,function(e){e.FORE="fore",e.MID="mid",e.BG="bg"}(t.LAYER||(t.LAYER={})),function(e){e.TOP="top",e.TOP_LEFT="top-left",e.TOP_RIGHT="top-right",e.RIGHT="right",e.RIGHT_TOP="right-top",e.RIGHT_BOTTOM="right-bottom",e.LEFT="left",e.LEFT_TOP="left-top",e.LEFT_BOTTOM="left-bottom",e.BOTTOM="bottom",e.BOTTOM_LEFT="bottom-left",e.BOTTOM_RIGHT="bottom-right",e.RADIUS="radius",e.CIRCLE="circle",e.NONE="none"}(t.DIRECTION||(t.DIRECTION={})),function(e){e.AXIS="axis",e.GRID="grid",e.LEGEND="legend",e.TOOLTIP="tooltip",e.ANNOTATION="annotation",e.SLIDER="slider",e.SCROLLBAR="scrollbar",e.OTHER="other"}(t.COMPONENT_TYPE||(t.COMPONENT_TYPE={})),t.GROUP_Z_INDEX={FORE:3,MID:2,BG:1},function(e){e.BEFORE_RENDER="beforerender",e.AFTER_RENDER="afterrender",e.BEFORE_PAINT="beforepaint",e.AFTER_PAINT="afterpaint",e.BEFORE_CHANGE_DATA="beforechangedata",e.AFTER_CHANGE_DATA="afterchangedata",e.BEFORE_CLEAR="beforeclear",e.AFTER_CLEAR="afterclear",e.BEFORE_DESTROY="beforedestroy",e.BEFORE_CHANGE_SIZE="beforechangesize",e.AFTER_CHANGE_SIZE="afterchangesize"}(t.VIEW_LIFE_CIRCLE||(t.VIEW_LIFE_CIRCLE={})),function(e){e.BEFORE_DRAW_ANIMATE="beforeanimate",e.AFTER_DRAW_ANIMATE="afteranimate"}(t.GEOMETRY_LIFE_CIRCLE||(t.GEOMETRY_LIFE_CIRCLE={})),function(e){e.MOUSE_ENTER="plot:mouseenter",e.MOUSE_DOWN="plot:mousedown",e.MOUSE_MOVE="plot:mousemove",e.MOUSE_UP="plot:mouseup",e.MOUSE_LEAVE="plot:mouseleave",e.TOUCH_START="plot:touchstart",e.TOUCH_MOVE="plot:touchmove",e.TOUCH_END="plot:touchend",e.TOUCH_CANCEL="plot:touchcancel",e.CLICK="plot:click",e.DBLCLICK="plot:dblclick",e.CONTEXTMENU="plot:contextmenu",e.LEAVE="plot:leave",e.ENTER="plot:enter"}(t.PLOT_EVENTS||(t.PLOT_EVENTS={})),function(e){e.ACTIVE="active",e.INACTIVE="inactive",e.SELECTED="selected",e.DEFAULT="default"}(t.ELEMENT_STATE||(t.ELEMENT_STATE={})),t.GROUP_ATTRS=["color","shape","size"],t.FIELD_ORIGIN="_origin",t.MIN_CHART_WIDTH=1,t.MIN_CHART_HEIGHT=1,t.COMPONENT_MAX_VIEW_PERCENTAGE=.25},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.animation=function(e){var t=e.chart,n=e.options.animation;return"boolean"===typeof n?t.animate(n):t.animate(!0),(0,o.each)(t.geometries,(function(e){e.animate(n)})),e},t.annotation=function(e){return function(t){var n=t.chart,i=t.options,a=n.getController("annotation");return(0,o.each)((0,r.__spreadArrays)(i.annotations||[],e||[]),(function(e){a.annotation(e)})),t}},t.interaction=function(e){var t=e.chart,n=e.options.interactions;return(0,o.each)(n,(function(e){!1===e.enable?t.removeInteraction(e.type):t.interaction(e.type,e.cfg||{})})),e},t.legend=function(e){var t=e.chart,n=e.options,r=n.legend,o=n.colorField,i=n.seriesField;return!1===r?t.legend(!1):(o||i)&&t.legend(o||i,r),e},t.limitInPlot=function(e){var t=e.chart,n=e.options,r=n.yAxis,i=n.limitInPlot,l=i;return(0,o.isObject)(r)&&(0,o.isNil)(i)&&(l=!!Object.values((0,a.pick)(r,["min","max","minLimit","maxLimit"])).some((function(e){return!(0,o.isNil)(e)}))),t.limitInPlot=l,e},Object.defineProperty(t,"pattern",{enumerable:!0,get:function(){return l.pattern}}),t.scale=function(e,t){return function(n){var r=n.chart,l=n.options,c={};return(0,o.each)(e,(function(e,t){c[t]=(0,a.pick)(e,i.AXIS_META_CONFIG_KEYS)})),c=(0,a.deepAssign)({},t,l.meta,c),r.scale(c),n}},t.scrollbar=function(e){var t=e.chart,n=e.options.scrollbar;return t.option("scrollbar",n),e},t.slider=function(e){var t=e.chart,n=e.options.slider;return t.option("slider",n),e},t.state=function(e){var t=e.chart,n=e.options.state;return n&&(0,o.each)(t.geometries,(function(e){e.state(n)})),e},t.theme=function(e){var t=e.chart,n=e.options.theme;return n&&t.theme(n),e},t.tooltip=function(e){var t=e.chart,n=e.options.tooltip;return void 0!==n&&t.tooltip(n),e};var r=n(1),o=n(0),i=n(98),a=n(7),l=n(121)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(116);t.default=function(e){return Array.isArray?Array.isArray(e):r.default(e,"Array")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Plot=t.PLOT_CONTAINER_OPTIONS=void 0;var r=n(1),o=n(14),i=n(0),a=r.__importDefault(n(125)),l=n(508),c=n(15),s="data-chart-source-type";t.PLOT_CONTAINER_OPTIONS=["padding","appendPadding","renderer","pixelRatio","syncViewPadding","supportCSSTransform","limitInPlot"];var u=function(e){function n(t,n){var r=e.call(this)||this;return r.container="string"===typeof t?document.getElementById(t):t,r.options=c.deepAssign({},r.getDefaultOptions(),n),r.createG2(),r.bindEvents(),r}return r.__extends(n,e),n.getDefaultOptions=function(){return{renderer:"canvas",xAxis:{nice:!0,label:{autoRotate:!1,autoHide:{type:"equidistance",cfg:{minGap:6}}}},yAxis:{nice:!0,label:{autoHide:!0,autoRotate:!1}},animation:!0}},n.prototype.createG2=function(){var e=this.options,n=e.width,i=e.height,a=e.defaultInteractions;this.chart=new o.Chart(r.__assign(r.__assign(r.__assign(r.__assign({container:this.container,autoFit:!1},this.getChartSize(n,i)),{localRefresh:!1}),c.pick(this.options,t.PLOT_CONTAINER_OPTIONS)),{defaultInteractions:a})),this.container.setAttribute(s,"G2Plot")},n.prototype.getChartSize=function(e,t){var n=c.getContainerSize(this.container);return{width:e||n.width||400,height:t||n.height||400}},n.prototype.bindEvents=function(){var e=this;this.chart&&this.chart.on("*",(function(t){(null===t||void 0===t?void 0:t.type)&&e.emit(t.type,t)}))},n.prototype.getDefaultOptions=function(){return n.getDefaultOptions()},n.prototype.render=function(){this.chart.clear(),this.chart.options={data:[],animate:!0},this.chart.views=[],this.execAdaptor(),this.chart.render(),this.bindSizeSensor()},n.prototype.update=function(e){this.updateOption(e),this.render()},n.prototype.updateOption=function(e){this.options=c.deepAssign({},this.options,e)},n.prototype.setState=function(e,t,n){void 0===n&&(n=!0);var r=c.getAllElementsRecursively(this.chart);i.each(r,(function(r){t(r.getData())&&r.setState(e,n)}))},n.prototype.getStates=function(){var e=c.getAllElementsRecursively(this.chart),t=[];return i.each(e,(function(e){var n=e.getData(),r=e.getStates();i.each(r,(function(r){t.push({data:n,state:r,geometry:e.geometry,element:e})}))})),t},n.prototype.changeData=function(e){this.update({data:e})},n.prototype.changeSize=function(e,t){this.chart.changeSize(e,t)},n.prototype.addAnnotations=function(e){var t=r.__spreadArrays(e),n=this.chart.getController("annotation"),o=n.getComponents().map((function(e){return e.extra}));n.clear(!0);for(var i=function(e){var r=o[e],i=t.findIndex((function(e){return e.id&&e.id===r.id}));-1!==i&&(r=c.deepAssign({},r,t[i]),t.splice(i,1)),n.annotation(r)},a=0;a<o.length;a++)i(a);t.forEach((function(e){return n.annotation(e)})),this.chart.render(!0)},n.prototype.removeAnnotations=function(e){var t=this.chart.getController("annotation"),n=t.getComponents().map((function(e){return e.extra}));t.clear(!0);for(var r=function(r){var o=n[r];e.find((function(e){return e.id&&e.id===o.id}))||t.annotation(o)},o=0;o<n.length;o++)r(o);this.chart.render(!0)},n.prototype.destroy=function(){this.unbindSizeSensor(),this.chart.destroy(),this.off(),this.container.removeAttribute(s)},n.prototype.execAdaptor=function(){var e=this.getSchemaAdaptor(),t=this.options,n=t.padding,r=t.appendPadding;this.chart.padding=n,this.chart.appendPadding=r,e({chart:this.chart,options:this.options})},n.prototype.triggerResize=function(){this.chart.forceFit()},n.prototype.bindSizeSensor=function(){var e=this;if(!this.unbind){var t=this.options.autoFit;(void 0===t||t)&&(this.unbind=l.bind(this.container,(function(){var t=c.getContainerSize(e.container),n=t.width,r=t.height;n===e.chart.width&&r===e.chart.height||e.triggerResize()})))}},n.prototype.unbindSizeSensor=function(){this.unbind&&(this.unbind(),this.unbind=void 0)},n}(a.default);t.Plot=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Util=t.Scale=t.Coordinate=t.DIRECTION=t.LAYER=t.getAnimation=t.registerAnimation=t.getEngine=t.registerEngine=t.registerTheme=t.getTheme=t.registerFacet=t.getFacet=t.getActionClass=t.registerAction=t.registerInteraction=t.getInteraction=t.getGeometryLabelLayout=t.getGeometryLabel=t.registerGeometryLabelLayout=t.registerGeometryLabel=t.getShapeFactory=t.registerShapeFactory=t.registerShape=t.registerGeometry=t.registerComponentController=t.InteractionAction=t.Facet=t.Action=t.Interaction=t.GeometryLabel=t.Element=t.Geometry=t.TooltipController=t.ComponentController=t.Event=t.View=t.Chart=t.VERSION=void 0;var r=n(1);t.VERSION="4.1.32";var o=n(97);Object.defineProperty(t,"Chart",{enumerable:!0,get:function(){return o.Chart}}),Object.defineProperty(t,"View",{enumerable:!0,get:function(){return o.View}}),Object.defineProperty(t,"Event",{enumerable:!0,get:function(){return o.Event}});var i=n(103);Object.defineProperty(t,"ComponentController",{enumerable:!0,get:function(){return i.Controller}});var a=n(205);Object.defineProperty(t,"TooltipController",{enumerable:!0,get:function(){return(0,r.__importDefault)(a).default}});var l=n(90);Object.defineProperty(t,"Geometry",{enumerable:!0,get:function(){return(0,r.__importDefault)(l).default}});var c=n(268);Object.defineProperty(t,"Element",{enumerable:!0,get:function(){return(0,r.__importDefault)(c).default}});var s=n(99);Object.defineProperty(t,"GeometryLabel",{enumerable:!0,get:function(){return(0,r.__importDefault)(s).default}});var u=n(265);Object.defineProperty(t,"Interaction",{enumerable:!0,get:function(){return u.Interaction}}),Object.defineProperty(t,"Action",{enumerable:!0,get:function(){return u.Action}});var d=n(263);Object.defineProperty(t,"Facet",{enumerable:!0,get:function(){return d.Facet}});var f=n(44);Object.defineProperty(t,"InteractionAction",{enumerable:!0,get:function(){return(0,r.__importDefault)(f).default}});var p=n(97);Object.defineProperty(t,"registerComponentController",{enumerable:!0,get:function(){return p.registerComponentController}});var h=n(97);Object.defineProperty(t,"registerGeometry",{enumerable:!0,get:function(){return h.registerGeometry}});var g=n(27);Object.defineProperty(t,"registerShape",{enumerable:!0,get:function(){return g.registerShape}}),Object.defineProperty(t,"registerShapeFactory",{enumerable:!0,get:function(){return g.registerShapeFactory}}),Object.defineProperty(t,"getShapeFactory",{enumerable:!0,get:function(){return g.getShapeFactory}});var v=n(270);Object.defineProperty(t,"registerGeometryLabel",{enumerable:!0,get:function(){return v.registerGeometryLabel}}),Object.defineProperty(t,"registerGeometryLabelLayout",{enumerable:!0,get:function(){return v.registerGeometryLabelLayout}}),Object.defineProperty(t,"getGeometryLabel",{enumerable:!0,get:function(){return v.getGeometryLabel}}),Object.defineProperty(t,"getGeometryLabelLayout",{enumerable:!0,get:function(){return v.getGeometryLabelLayout}});var m=n(265);Object.defineProperty(t,"getInteraction",{enumerable:!0,get:function(){return m.getInteraction}}),Object.defineProperty(t,"registerInteraction",{enumerable:!0,get:function(){return m.registerInteraction}}),Object.defineProperty(t,"registerAction",{enumerable:!0,get:function(){return m.registerAction}}),Object.defineProperty(t,"getActionClass",{enumerable:!0,get:function(){return m.getActionClass}});var y=n(263);Object.defineProperty(t,"getFacet",{enumerable:!0,get:function(){return y.getFacet}}),Object.defineProperty(t,"registerFacet",{enumerable:!0,get:function(){return y.registerFacet}});var b=n(91);Object.defineProperty(t,"getTheme",{enumerable:!0,get:function(){return b.getTheme}}),Object.defineProperty(t,"registerTheme",{enumerable:!0,get:function(){return b.registerTheme}});var x=n(446);Object.defineProperty(t,"registerEngine",{enumerable:!0,get:function(){return x.registerEngine}}),Object.defineProperty(t,"getEngine",{enumerable:!0,get:function(){return x.getEngine}});var w=n(439);Object.defineProperty(t,"registerAnimation",{enumerable:!0,get:function(){return w.registerAnimation}}),Object.defineProperty(t,"getAnimation",{enumerable:!0,get:function(){return w.getAnimation}});var S=n(21);Object.defineProperty(t,"LAYER",{enumerable:!0,get:function(){return S.LAYER}}),Object.defineProperty(t,"DIRECTION",{enumerable:!0,get:function(){return S.DIRECTION}}),(0,r.__importStar)(n(271));var O=n(69);Object.defineProperty(t,"Coordinate",{enumerable:!0,get:function(){return O.Coordinate}}),Object.defineProperty(t,"Scale",{enumerable:!0,get:function(){return O.Scale}});var _=n(454),C=n(455),E=n(46),P=n(113),M=n(187),k=n(31);t.Util={getLegendItems:C.getLegendItems,translate:P.translate,rotate:P.rotate,zoom:P.zoom,transform:P.transform,getAngle:E.getAngle,getSectorPath:E.getSectorPath,polarToCartesian:E.polarToCartesian,getDelegationObject:k.getDelegationObject,getTooltipItems:M.getTooltipItems,getMappingValue:_.getMappingValue}},function(e,t,n){"use strict";var r=n(2),o=n(6);Object.defineProperty(t,"__esModule",{value:!0});var i={version:!0,PathUtil:!0,Event:!0,Base:!0,AbstractCanvas:!0,AbstractGroup:!0,AbstractShape:!0,getBBoxMethod:!0,registerBBox:!0,getTextHeight:!0,assembleFont:!0,isAllowCapture:!0,multiplyVec2:!0,invert:!0,getOffScreenContext:!0,registerEasing:!0};Object.defineProperty(t,"AbstractCanvas",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"AbstractGroup",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(t,"AbstractShape",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(t,"Base",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"Event",{enumerable:!0,get:function(){return s.default}}),t.PathUtil=void 0,Object.defineProperty(t,"assembleFont",{enumerable:!0,get:function(){return g.assembleFont}}),Object.defineProperty(t,"getBBoxMethod",{enumerable:!0,get:function(){return h.getBBoxMethod}}),Object.defineProperty(t,"getOffScreenContext",{enumerable:!0,get:function(){return y.getOffScreenContext}}),Object.defineProperty(t,"getTextHeight",{enumerable:!0,get:function(){return g.getTextHeight}}),Object.defineProperty(t,"invert",{enumerable:!0,get:function(){return m.invert}}),Object.defineProperty(t,"isAllowCapture",{enumerable:!0,get:function(){return v.isAllowCapture}}),Object.defineProperty(t,"multiplyVec2",{enumerable:!0,get:function(){return m.multiplyVec2}}),Object.defineProperty(t,"registerBBox",{enumerable:!0,get:function(){return h.registerBBox}}),Object.defineProperty(t,"registerEasing",{enumerable:!0,get:function(){return b.registerEasing}}),t.version=void 0;var a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!==typeof e)return{default:e};var n=x(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(r,a,l):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}(n(392));t.PathUtil=a;var l=n(749);Object.keys(l).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(i,e)||e in t&&t[e]===l[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}}))}));var c=n(750);Object.keys(c).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(i,e)||e in t&&t[e]===c[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return c[e]}}))}));var s=r(n(393)),u=r(n(394)),d=r(n(751)),f=r(n(790)),p=r(n(791)),h=n(792),g=n(415),v=n(101),m=n(242),y=n(416),b=n(410);function x(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(x=function(e){return e?n:t})(e)}t.version="0.5.11"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getShapeFactory=t.registerShape=t.registerShapeFactory=void 0;var r=n(1),o=n(88),i=n(0),a=n(111),l={coordinate:null,defaultShapeType:null,theme:null,getShapePoints:function(e,t){var n=this.getShape(e);return n.getPoints?n.getPoints(t):this.getDefaultPoints(t)},getShape:function(e){var t=this[e]||this[this.defaultShapeType];return t.coordinate=this.coordinate,t},getDefaultPoints:function(){return[]},getDefaultStyle:function(e){return(0,i.get)(e,[this.defaultShapeType,"default","style"],{})},getMarker:function(e,t){var n=this.getShape(e);if(!n.getMarker){var r=this.defaultShapeType;n=this.getShape(r)}var o=this.theme,a=(0,i.get)(o,[e,"default"],{}),l=n.getMarker(t);return(0,i.deepMix)({},a,l)},drawShape:function(e,t,n){return this.getShape(e).draw(t,n)}},c={coordinate:null,parsePath:function(e){var t=this.coordinate,n=(0,o.parsePathString)(e);return n=t.isPolar?(0,a.convertPolarPath)(t,n):(0,a.convertNormalPath)(t,n)},parsePoint:function(e){return this.coordinate.convert(e)},parsePoints:function(e){var t=this.coordinate;return e.map((function(e){return t.convert(e)}))},draw:function(e,t){}},s={};t.registerShapeFactory=function(e,t){var n=(0,i.upperFirst)(e),o=(0,r.__assign)((0,r.__assign)((0,r.__assign)({},l),t),{geometryType:e});return s[n]=o,o},t.registerShape=function(e,t,n){var o=(0,i.upperFirst)(e),a=s[o],l=(0,r.__assign)((0,r.__assign)({},c),n);return a[t]=l,l},t.getShapeFactory=function(e){var t=(0,i.upperFirst)(e);return s[t]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(116);t.default=function(e){return r.default(e,"Function")}},function(e,t,n){"use strict";n.d(t,"b",(function(){return c}));var r=n(4),o=n.n(r),i=n(3),a=n.n(i),l=a.a.createContext(null);function c(e){var t=a.a.forwardRef((function(t,n){return a.a.createElement(l.Consumer,null,(function(r){return a.a.createElement(e,o()({ref:n,group:r},t))}))}));return t.displayName=e.name,t}l.displayName="GroupContext",t.a=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"area",{enumerable:!0,get:function(){return r.area}}),Object.defineProperty(t,"edge",{enumerable:!0,get:function(){return c.edge}}),Object.defineProperty(t,"interval",{enumerable:!0,get:function(){return a.interval}}),Object.defineProperty(t,"line",{enumerable:!0,get:function(){return o.line}}),Object.defineProperty(t,"point",{enumerable:!0,get:function(){return i.point}}),Object.defineProperty(t,"polygon",{enumerable:!0,get:function(){return l.polygon}}),Object.defineProperty(t,"schema",{enumerable:!0,get:function(){return s.schema}}),Object.defineProperty(t,"violin",{enumerable:!0,get:function(){return u.violin}});var r=n(1191),o=n(1192),i=n(548),a=n(1193),l=n(549),c=n(1194),s=n(1195),u=n(1196)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getScaleByField=t.isInRecords=t.getSiblingPoint=t.getSilbings=t.isInBox=t.getSpline=t.distance=t.getComponents=t.getElementsByPath=t.getIntersectElements=t.intersectRect=t.getElementValue=t.getElementsByState=t.getElementsByField=t.getElements=t.getSiblingMaskElements=t.getMaskedElements=t.isMask=t.isSlider=t.isList=t.isElementChange=t.getDelegationObject=t.getCurrentElement=void 0;var r=n(0),o=n(111),i=n(80),a=n(88);function l(e,t){var n=e.event.target.getCanvasBBox();return n.width>=t||n.height>=t?n:null}function c(e){var t=e.geometries,n=[];return(0,r.each)(t,(function(e){var t=e.elements;n=n.concat(t)})),e.views&&e.views.length&&(0,r.each)(e.views,(function(e){n=n.concat(c(e))})),n}function s(e,t){var n=e.getModel().data;return(0,r.isArray)(n)?n[0][t]:n[t]}function u(e,t){return!(t.minX>e.maxX||t.maxX<e.minX||t.minY>e.maxY||t.maxY<e.minY)}function d(e,t){var n=c(e),o=[];return(0,r.each)(n,(function(e){var n=e.shape.getCanvasBBox();u(t,n)&&o.push(e)})),o}function f(e){var t=[];return(0,r.each)(e,(function(e){if("A"!==e[0])for(var n=1;n<e.length;n+=2)t.push([e[n],e[n+1]]);else{var r=e.length;t.push([e[r-2],e[r-1]])}})),t}function p(e,t){var n=c(e),r=f(t);return n.filter((function(e){var t,n=e.shape;if("path"===n.get("type"))t=f(n.attr("path"));else{var o=n.getCanvasBBox();t=(0,i.toPoints)(o)}return(0,a.isPolygonsIntersect)(r,t)}))}function h(e,t,n){var r=function(e,t){return e.getCoordinate().invert(t)}(e,n);return t.getCoordinate().convert(r)}t.getCurrentElement=function(e){var t,n=e.event.target;return n&&(t=n.get("element")),t},t.getDelegationObject=function(e){var t,n=e.event.target;return n&&(t=n.get("delegateObject")),t},t.isElementChange=function(e){var t=e.event.gEvent;return!(t&&t.fromShape&&t.toShape&&t.fromShape.get("element")===t.toShape.get("element"))},t.isList=function(e){return e&&e.component&&e.component.isList()},t.isSlider=function(e){return e&&e.component&&e.component.isSlider()},t.isMask=function(e){var t=e.event.target;return t&&"mask"===t.get("name")},t.getMaskedElements=function(e,t){if("path"===e.event.target.get("type")){var n=function(e,t){var n=e.event.target,r=n.getCanvasBBox();return r.width>=t||r.height>=t?n.attr("path"):null}(e,t);if(!n)return;return p(e.view,n)}var r=l(e,t);return r?d(e.view,r):null},t.getSiblingMaskElements=function(e,t,n){var r=l(e,n);if(!r)return null;var o=e.view,i=h(o,t,{x:r.x,y:r.y}),a=h(o,t,{x:r.maxX,y:r.maxY});return d(t,{minX:i.x,minY:i.y,maxX:a.x,maxY:a.y})},t.getElements=c,t.getElementsByField=function(e,t,n){return c(e).filter((function(e){return s(e,t)===n}))},t.getElementsByState=function(e,t){var n=e.geometries,o=[];return(0,r.each)(n,(function(e){var n=e.getElementsBy((function(e){return e.hasState(t)}));o=o.concat(n)})),o},t.getElementValue=s,t.intersectRect=u,t.getIntersectElements=d,t.getElementsByPath=p,t.getComponents=function(e){return e.getComponents().map((function(e){return e.component}))},t.distance=function(e,t){var n=t.x-e.x,r=t.y-e.y;return Math.sqrt(n*n+r*r)},t.getSpline=function(e,t){if(e.length<=2)return(0,o.getLinePath)(e,!1);var n=e[0],i=[];(0,r.each)(e,(function(e){i.push(e.x),i.push(e.y)}));var a=(0,o.catmullRom2bezier)(i,t,null);return a.unshift(["M",n.x,n.y]),a},t.isInBox=function(e,t){return e.x<=t.x&&e.maxX>=t.x&&e.y<=t.y&&e.maxY>t.y},t.getSilbings=function(e){var t=e.parent,n=null;return t&&(n=t.views.filter((function(t){return t!==e}))),n},t.getSiblingPoint=h,t.isInRecords=function(e,t,n,o){var i=!1;return(0,r.each)(e,(function(e){if(e[n]===t[n]&&e[o]===t[o])return i=!0,!1})),i},t.getScaleByField=function e(t,n){var o=t.getScaleByField(n);return!o&&t.views&&(0,r.each)(t.views,(function(t){if(o=e(t,n))return!1})),o}},function(e,t,n){"use strict";var r=n(6);Object.defineProperty(t,"__esModule",{value:!0}),t.ext=void 0,Object.defineProperty(t,"mat3",{enumerable:!0,get:function(){return o.mat3}}),Object.defineProperty(t,"vec2",{enumerable:!0,get:function(){return o.vec2}}),Object.defineProperty(t,"vec3",{enumerable:!0,get:function(){return o.vec3}});var o=n(170),i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&Object.prototype.hasOwnProperty.call(e,l)){var c=i?Object.getOwnPropertyDescriptor(e,l):null;c&&(c.get||c.set)?Object.defineProperty(o,l,c):o[l]=e[l]}return o.default=e,n&&n.set(e,o),o}(n(756));function a(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}t.ext=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getBackgroundRectStyle=t.getStyle=void 0;var r=n(1),o=n(0);t.getStyle=function(e,t,n,i){void 0===i&&(i="");var a=e.style,l=void 0===a?{}:a,c=e.defaultStyle,s=e.color,u=e.size,d=(0,r.__assign)((0,r.__assign)({},c),l);return s&&(t&&(l.stroke||(d.stroke=s)),n&&(l.fill||(d.fill=s))),i&&(0,o.isNil)(l[i])&&!(0,o.isNil)(u)&&(d[i]=u),d},t.getBackgroundRectStyle=function(e){return(0,o.deepMix)({},{fill:"#CCD6EC",fillOpacity:.3},(0,o.get)(e,["background","style"]))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.limitInPlot=t.annotation=t.scale=t.scrollbar=t.slider=t.state=t.theme=t.animation=t.interaction=t.tooltip=t.legend=void 0;var r=n(1),o=n(0),i=n(511),a=n(15);t.legend=function(e){var t=e.chart,n=e.options,r=n.legend,o=n.colorField,i=n.seriesField;return!1===r?t.legend(!1):(o||i)&&t.legend(o||i,r),e},t.tooltip=function(e){var t=e.chart,n=e.options.tooltip;return void 0!==n&&t.tooltip(n),e},t.interaction=function(e){var t=e.chart,n=e.options.interactions;return o.each(n,(function(e){!1===e.enable?t.removeInteraction(e.type):t.interaction(e.type,e.cfg||{})})),e},t.animation=function(e){var t=e.chart,n=e.options.animation;return"boolean"===typeof n?t.animate(n):t.animate(!0),o.each(t.geometries,(function(e){e.animate(n)})),e},t.theme=function(e){var t=e.chart,n=e.options.theme;return n&&t.theme(n),e},t.state=function(e){var t=e.chart,n=e.options.state;return n&&o.each(t.geometries,(function(e){e.state(n)})),e},t.slider=function(e){var t=e.chart,n=e.options.slider;return t.option("slider",n),e},t.scrollbar=function(e){var t=e.chart,n=e.options.scrollbar;return t.option("scrollbar",n),e},t.scale=function(e,t){return function(n){var r=n.chart,l=n.options,c={};return o.each(e,(function(e,t){c[t]=a.pick(e,i.AXIS_META_CONFIG_KEYS)})),c=a.deepAssign({},t,l.meta,c),r.scale(c),n}},t.annotation=function(e){return function(t){var n=t.chart,i=t.options,a=n.getController("annotation");return o.each(r.__spreadArrays(i.annotations||[],e||[]),(function(e){a.annotation(e)})),t}},t.limitInPlot=function(e){var t=e.chart,n=e.options,r=n.yAxis,i=n.limitInPlot,l=i;return o.isObject(r)&&o.isNil(i)&&(l=!!Object.values(a.pick(r,["min","max","minLimit","maxLimit"])).some((function(e){return!o.isNil(e)}))),t.limitInPlot=l,e};var l=n(153);Object.defineProperty(t,"pattern",{enumerable:!0,get:function(){return l.pattern}})},function(e,t,n){"use strict";var r=n(4),o=n.n(r),i=n(9),a=n.n(i),l=n(10),c=n.n(l),s=n(12),u=n.n(s),d=n(13),f=n.n(d),p=n(5),h=n.n(p),g=n(3),v=n.n(g),m=n(620),y=n.n(m),b=n(203),x=n(222),w=n.n(x),S=n(0),O=n(160);y.a.prototype.render=function(){if(this.get("isReactElement")){var e=this.getContainer(),t=this.get("content"),n=this.get("refreshDeps"),r=v.a.isValidElement(t)?t:t(e);void 0!==this.preRefreshDeps&&Object(S.isEqual)(this.preRefreshDeps,n)||(w.a.render(r,e),this.preRefreshDeps=n)}else{var o=this.getContainer(),i=this.get("html");Object(b.clearDom)(o);var a=Object(S.isFunction)(i)?i(o):i;Object(S.isElement)(a)?o.appendChild(a):Object(S.isString)(a)&&o.appendChild(Object(O.createDom)(a))}this.resetPosition()};var _=n(319),C=n.n(_),E=n(47),P=n(8);function M(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=h()(e);if(t){var o=h()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f()(this,n)}}Object(P.registerComponentController)("annotation",C.a);var k=function(e){u()(n,e);var t=M(n);function n(){var e;return a()(this,n),(e=t.apply(this,arguments)).annotationType="line",e}return c()(n,[{key:"componentDidMount",value:function(){var e=this.getChartIns();this.id=S.uniqueId("annotation"),this.annotation=e.annotation(),"ReactElement"===this.annotationType?this.annotation.annotation(o()({type:"html",isReactElement:!0},this.props)):this.annotation.annotation(o()({type:this.annotationType},this.props)),this.annotation.option[this.annotation.option.length-1].__id=this.id}},{key:"componentDidUpdate",value:function(){var e=this,t=null;this.annotation.option.forEach((function(n,r){n.__id===e.id&&(t=r)})),"ReactElement"===this.annotationType?this.annotation.option[t]=o()(o()({type:"html",isReactElement:!0},this.props),{__id:this.id}):this.annotation.option[t]=o()(o()({type:this.annotationType},this.props),{__id:this.id})}},{key:"componentWillUnmount",value:function(){var e=this,t=null;this.annotation&&(this.annotation.option.forEach((function(n,r){n.__id===e.id&&(t=r)})),null!==t&&this.annotation.option.splice(t,1),this.annotation=null)}},{key:"getChartIns",value:function(){return this.context}},{key:"render",value:function(){return v.a.createElement(v.a.Fragment,null)}}]),n}(v.a.Component);k.contextType=E.a,t.a=k},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(68));t.default=function(e){return Array.isArray?Array.isArray(e):(0,o.default)(e,"Array")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return null===e||void 0===e}},function(e,t,n){"use strict";var r=n(2),o=n(6);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Arc",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"Cubic",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"Line",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"Polygon",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"Polyline",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"Quad",{enumerable:!0,get:function(){return i.default}}),t.Util=void 0;var i=r(n(797)),a=r(n(798)),l=r(n(799)),c=r(n(174)),s=r(n(801)),u=r(n(414)),d=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!==typeof e)return{default:e};var n=f(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(r,a,l):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}(n(87));function f(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(f=function(e){return e?n:t})(e)}t.Util=d},function(e,t,n){"use strict";var r=n(12),o=n.n(r),i=n(13),a=n.n(i),l=n(5),c=n.n(l),s=n(45),u=n.n(s),d=n(9),f=n.n(d),p=n(10),h=n.n(p),g=n(3),v=n.n(g),m=n(50),y=n.n(m),b=n(28),x=n.n(b),w=n(99),S=n.n(w),O=(n(494),n(47)),_=n(8),C=n(55),E=n.n(C),P=n(23),M=n.n(P),k=n(82),A=function(e,t,n,r){var o,i;null!==e?E()(n,(function(n){o=e[n],i=t[n],Object(k.a)(i,o)||(M()(i)||(i=[i]),r(i,n))})):E()(n,(function(e){var n=t[e];void 0!==n&&(M()(n)||(n=[n]),r(n,e))}))},I=n(17),T=n.n(I),j=(n(289),n(348)),L=n.n(j),R=n(349),D=n.n(R),N=n(350),F=n.n(N),B=n(351),z=n.n(B),H=n(159),W=n.n(H),V=n(353),G=n.n(V),Y=n(352),U=n.n(Y),X=n(354),q=n.n(X),K=n(227),$=n.n(K),Q=n(356),Z=n.n(Q),J=n(357),ee=n.n(J),te=n(355),ne=n.n(te),re=n(361),oe=n.n(re);Object(_.registerAction)("cursor",oe.a),Object(_.registerAction)("element-active",L.a),Object(_.registerAction)("element-single-active",z.a),Object(_.registerAction)("element-range-active",F.a),Object(_.registerAction)("element-highlight",W.a),Object(_.registerAction)("element-highlight-by-x",G.a),Object(_.registerAction)("element-highlight-by-color",U.a),Object(_.registerAction)("element-single-highlight",q.a),Object(_.registerAction)("element-range-highlight",$.a),Object(_.registerAction)("element-sibling-highlight",$.a,{effectSiblings:!0,effectByRecord:!0}),Object(_.registerAction)("element-selected",Z.a),Object(_.registerAction)("element-single-selected",ee.a),Object(_.registerAction)("element-range-selected",ne.a),Object(_.registerAction)("element-link-by-color",D.a),Object(_.registerInteraction)("element-active",{start:[{trigger:"element:mouseenter",action:"element-active:active"}],end:[{trigger:"element:mouseleave",action:"element-active:reset"}]}),Object(_.registerInteraction)("element-selected",{start:[{trigger:"element:click",action:"element-selected:toggle"}]}),Object(_.registerInteraction)("element-highlight",{start:[{trigger:"element:mouseenter",action:"element-highlight:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight:reset"}]}),Object(_.registerInteraction)("element-highlight-by-x",{start:[{trigger:"element:mouseenter",action:"element-highlight-by-x:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight-by-x:reset"}]}),Object(_.registerInteraction)("element-highlight-by-color",{start:[{trigger:"element:mouseenter",action:"element-highlight-by-color:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight-by-color:reset"}]});var ie=n(75);function ae(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=c()(e);if(t){var o=c()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return a()(this,n)}}Object(_.registerGeometryLabel)("base",S.a);var le=["line","area"],ce=function(){function e(){f()(this,e),this.config={}}return h()(e,[{key:"setView",value:function(e){this.view=e,this.rootChart=e.rootChart||e}},{key:"createGeomInstance",value:function(e,t){this.geom=this.view[e](t);var n=t.sortable;this.geom.__beforeMapping=this.geom.beforeMapping,this.geom.beforeMapping=function(t){var r=this.getXScale();return!1!==n&&t&&t[0]&&le.includes(e)&&["time","timeCat"].includes(r.type)&&this.sort(t),this.__beforeMapping(t)},this.GemoBaseClassName=e}},{key:"update",value:function(e,t){var n=this;this.geom||(this.setView(t.context),this.createGeomInstance(t.GemoBaseClassName,e),this.interactionTypes=t.interactionTypes),A(this.config,e,["position","shape","color","label","style","tooltip","size","animate","state","customInfo"],(function(e,t){var r;T()(!("label"===t&&!0===e[0]),"label \u503c\u7c7b\u578b\u9519\u8bef\uff0c\u5e94\u4e3afalse | LabelOption | FieldString"),(r=n.geom)[t].apply(r,u()(e))})),A(this.config,e,["adjust"],(function(e,t){y()(e[0])?n.geom[t](e[0]):n.geom[t](e)})),this.geom.state(e.state||{}),this.rootChart.on("processElemens",(function(){x()(e.setElements)&&e.setElements(n.geom.elements)})),A(this.config,e,this.interactionTypes,(function(e,t){e[0]?n.rootChart.interaction(t):n.rootChart.removeInteraction(t)})),this.config=Object(ie.a)(e)}},{key:"destroy",value:function(){this.geom&&(this.geom.destroy(),this.geom=null),this.config={}}}]),e}(),se=function(e){o()(n,e);var t=ae(n);function n(e){var r;return f()(this,n),(r=t.call(this,e)).interactionTypes=[],r.geomHelper=new ce,r}return h()(n,[{key:"componentWillUnmount",value:function(){this.geomHelper.destroy()}},{key:"render",value:function(){var e=this;return this.geomHelper.update(this.props,this),v.a.createElement(v.a.Fragment,null,v.a.Children.map(this.props.children,(function(t){return v.a.isValidElement(t)?v.a.cloneElement(t,{parentInstance:e.geomHelper.geom}):v.a.createElement(v.a.Fragment,null)})))}}]),n}(v.a.Component);se.contextType=O.a,t.a=se},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(3),o=n.n(r),i=n(47);function a(){return o.a.useContext(i.a)}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(1),i=n(0),a=n(435),l=n(89),c=n(42),s=r(n(253)),u="update_status",d=["visible","tip","delegateObject"],f=["container","group","shapesMap","isRegister","isUpdating","destroyed"],p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,o.__extends)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,o.__assign)((0,o.__assign)({},t),{container:null,shapesMap:{},group:null,capture:!0,isRegister:!1,isUpdating:!1,isInit:!0})},t.prototype.remove=function(){this.clear(),this.get("group").remove()},t.prototype.clear=function(){this.get("group").clear(),this.set("shapesMap",{}),this.clearOffScreenCache(),this.set("isInit",!0)},t.prototype.getChildComponentById=function(e){var t=this.getElementById(e);return t&&t.get("component")},t.prototype.getElementById=function(e){return this.get("shapesMap")[e]},t.prototype.getElementByLocalId=function(e){var t=this.getElementId(e);return this.getElementById(t)},t.prototype.getElementsByName=function(e){var t=[];return(0,i.each)(this.get("shapesMap"),(function(n){n.get("name")===e&&t.push(n)})),t},t.prototype.getContainer=function(){return this.get("container")},t.prototype.updateInner=function(e){this.offScreenRender(),this.get("updateAutoRender")&&this.render()},t.prototype.render=function(){var e=this.get("offScreenGroup");e||(e=this.offScreenRender());var t=this.get("group");this.updateElements(e,t),this.deleteElements(),this.applyOffset(),this.get("eventInitted")||(this.initEvent(),this.set("eventInitted",!0)),this.set("isInit",!1)},t.prototype.show=function(){this.get("group").show(),this.set("visible",!0)},t.prototype.hide=function(){this.get("group").hide(),this.set("visible",!1)},t.prototype.setCapture=function(e){this.get("group").set("capture",e),this.set("capture",e)},t.prototype.destroy=function(){this.removeEvent(),this.remove(),e.prototype.destroy.call(this)},t.prototype.getBBox=function(){return this.get("group").getCanvasBBox()},t.prototype.getLayoutBBox=function(){var e=this.get("group"),t=this.getInnerLayoutBBox(),n=e.getTotalMatrix();return n&&(t=(0,l.applyMatrix2BBox)(n,t)),t},t.prototype.on=function(e,t,n){return this.get("group").on(e,t,n),this},t.prototype.off=function(e,t){var n=this.get("group");return n&&n.off(e,t),this},t.prototype.emit=function(e,t){this.get("group").emit(e,t)},t.prototype.init=function(){e.prototype.init.call(this),this.get("group")||this.initGroup(),this.offScreenRender()},t.prototype.getInnerLayoutBBox=function(){return this.get("offScreenBBox")||this.get("group").getBBox()},t.prototype.delegateEmit=function(e,t){var n=this.get("group");t.target=n,n.emit(e,t),(0,a.propagationDelegate)(n,e,t)},t.prototype.createOffScreenGroup=function(){return new(this.get("group").getGroupBase())({delegateObject:this.getDelegateObject()})},t.prototype.applyOffset=function(){var e=this.get("offsetX"),t=this.get("offsetY");this.moveElementTo(this.get("group"),{x:e,y:t})},t.prototype.initGroup=function(){var e=this.get("container");this.set("group",e.addGroup({id:this.get("id"),name:this.get("name"),capture:this.get("capture"),visible:this.get("visible"),isComponent:!0,component:this,delegateObject:this.getDelegateObject()}))},t.prototype.offScreenRender=function(){this.clearOffScreenCache();var e=this.createOffScreenGroup();return this.renderInner(e),this.set("offScreenGroup",e),this.set("offScreenBBox",(0,c.getBBoxWithClip)(e)),e},t.prototype.addGroup=function(e,t){this.appendDelegateObject(e,t);var n=e.addGroup(t);return this.get("isRegister")&&this.registerElement(n),n},t.prototype.addShape=function(e,t){this.appendDelegateObject(e,t);var n=e.addShape(t);return this.get("isRegister")&&this.registerElement(n),n},t.prototype.addComponent=function(e,t){var n=t.id,r=t.component,i=(0,o.__rest)(t,["id","component"]),a=new r((0,o.__assign)((0,o.__assign)({},i),{id:n,container:e,updateAutoRender:this.get("updateAutoRender")}));return a.init(),a.render(),this.get("isRegister")&&this.registerElement(a.get("group")),a},t.prototype.initEvent=function(){},t.prototype.removeEvent=function(){this.get("group").off()},t.prototype.getElementId=function(e){return this.get("id")+"-"+this.get("name")+"-"+e},t.prototype.registerElement=function(e){var t=e.get("id");this.get("shapesMap")[t]=e},t.prototype.unregisterElement=function(e){var t=e.get("id");delete this.get("shapesMap")[t]},t.prototype.moveElementTo=function(e,t){var n=(0,l.getMatrixByTranslate)(t);e.attr("matrix",n)},t.prototype.addAnimation=function(e,t,n){var r=t.attr("opacity");(0,i.isNil)(r)&&(r=1),t.attr("opacity",0),t.animate({opacity:r},n)},t.prototype.removeAnimation=function(e,t,n){t.animate({opacity:0},n)},t.prototype.updateAnimation=function(e,t,n,r){t.animate(n,r)},t.prototype.updateElements=function(e,t){var n,r=this,o=this.get("animate"),a=this.get("animateOption"),l=e.getChildren().slice(0);(0,i.each)(l,(function(e){var l=e.get("id"),s=r.getElementById(l),p=e.get("name");if(s)if(e.get("isComponent")){var h=e.get("component"),g=s.get("component"),v=(0,i.pick)(h.cfg,(0,i.difference)((0,i.keys)(h.cfg),f));g.update(v),s.set(u,"update")}else{var m=r.getReplaceAttrs(s,e);o&&a.update?r.updateAnimation(p,s,m,a.update):s.attr(m),e.isGroup()&&r.updateElements(e,s),(0,i.each)(d,(function(t){s.set(t,e.get(t))})),(0,c.updateClip)(s,e),n=s,s.set(u,"update")}else{t.add(e);var y=t.getChildren();if(y.splice(y.length-1,1),n){var b=y.indexOf(n);y.splice(b+1,0,e)}else y.unshift(e);if(r.registerElement(e),e.set(u,"add"),e.get("isComponent")?(h=e.get("component")).set("container",t):e.isGroup()&&r.registerNewGroup(e),n=e,o){var x=r.get("isInit")?a.appear:a.enter;x&&r.addAnimation(p,e,x)}}}))},t.prototype.clearUpdateStatus=function(e){var t=e.getChildren();(0,i.each)(t,(function(e){e.set(u,null)}))},t.prototype.clearOffScreenCache=function(){var e=this.get("offScreenGroup");e&&e.destroy(),this.set("offScreenGroup",null),this.set("offScreenBBox",null)},t.prototype.getDelegateObject=function(){var e;return(e={})[this.get("name")]=this,e.component=this,e},t.prototype.appendDelegateObject=function(e,t){var n=e.get("delegateObject");t.delegateObject||(t.delegateObject={}),(0,i.mix)(t.delegateObject,n)},t.prototype.getReplaceAttrs=function(e,t){var n=e.attr(),r=t.attr();return(0,i.each)(n,(function(e,t){void 0===r[t]&&(r[t]=void 0)})),r},t.prototype.registerNewGroup=function(e){var t=this,n=e.getChildren();(0,i.each)(n,(function(e){t.registerElement(e),e.set(u,"add"),e.isGroup()&&t.registerNewGroup(e)}))},t.prototype.deleteElements=function(){var e=this,t=this.get("shapesMap"),n=[];(0,i.each)(t,(function(e,t){!e.get(u)||e.destroyed?n.push([t,e]):e.set(u,null)}));var r=this.get("animate"),o=this.get("animateOption");(0,i.each)(n,(function(n){var a=n[0],l=n[1];if(!l.destroyed){var c=l.get("name");if(r&&o.leave){var s=(0,i.mix)({callback:function(){e.removeElement(l)}},o.leave);e.removeAnimation(c,l,s)}else e.removeElement(l)}delete t[a]}))},t.prototype.removeElement=function(e){if(e.get("isGroup")){var t=e.get("component");t&&t.destroy()}e.remove()},t}(s.default);t.default=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.clearDom=function(e){for(var t=e.childNodes,n=t.length-1;n>=0;n--)e.removeChild(t[n])},t.createBBox=o,t.distance=a,t.formatPadding=function(e){var t=0,n=0,o=0,i=0;return(0,r.isNumber)(e)?t=n=o=i=e:(0,r.isArray)(e)&&(t=e[0],o=(0,r.isNil)(e[1])?e[0]:e[1],i=(0,r.isNil)(e[2])?e[0]:e[2],n=(0,r.isNil)(e[3])?o:e[3]),[t,o,i,n]},t.getBBoxWithClip=function e(t){var n,i=t.getClip(),a=i&&i.getBBox();if(t.isGroup()){var c=1/0,s=-1/0,u=1/0,d=-1/0,f=t.getChildren();f.length>0?(0,r.each)(f,(function(t){if(t.get("visible")){if(t.isGroup()&&0===t.get("children").length)return!0;var n=e(t),r=t.applyToMatrix([n.minX,n.minY,1]),o=t.applyToMatrix([n.minX,n.maxY,1]),i=t.applyToMatrix([n.maxX,n.minY,1]),a=t.applyToMatrix([n.maxX,n.maxY,1]),l=Math.min(r[0],o[0],i[0],a[0]),f=Math.max(r[0],o[0],i[0],a[0]),p=Math.min(r[1],o[1],i[1],a[1]),h=Math.max(r[1],o[1],i[1],a[1]);l<c&&(c=l),f>s&&(s=f),p<u&&(u=p),h>d&&(d=h)}})):(c=0,s=0,u=0,d=0),n=o(c,u,s-c,d-u)}else n=t.getBBox();return a?l(n,a):n},t.getCirclePoint=function(e,t,n){return{x:e.x+Math.cos(n)*t,y:e.y+Math.sin(n)*t}},t.getTextPoint=function(e,t,n,r){var o=a(e,t),l=r/o,c=0;return"start"===n?c=0-l:"end"===n&&(c=1+l),{x:i(e.x,t.x,c),y:i(e.y,t.y,c)}},t.getValueByPercent=i,t.hasClass=function(e,t){return!!e.className.match(new RegExp("(\\s|^)"+t+"(\\s|$)"))},t.intersectBBox=l,t.mergeBBox=function(e,t){var n=Math.min(e.minX,t.minX),r=Math.min(e.minY,t.minY),i=Math.max(e.maxX,t.maxX),a=Math.max(e.maxY,t.maxY);return o(n,r,i-n,a-r)},t.near=void 0,t.pointsToBBox=function(e){var t=e.map((function(e){return e.x})),n=e.map((function(e){return e.y})),r=Math.min.apply(Math,t),o=Math.min.apply(Math,n),i=Math.max.apply(Math,t),a=Math.max.apply(Math,n);return{x:r,y:o,minX:r,minY:o,maxX:i,maxY:a,width:i-r,height:a-o}},t.regionToBBox=function(e){var t=e.start,n=e.end,r=Math.min(t.x,n.x),o=Math.min(t.y,n.y),i=Math.max(t.x,n.x),a=Math.max(t.y,n.y);return{x:r,y:o,minX:r,minY:o,maxX:i,maxY:a,width:i-r,height:a-o}},t.toPx=function(e){return e+"px"},t.updateClip=function(e,t){if(e.getClip()||t.getClip()){var n=t.getClip();if(n){var r={type:n.get("type"),attrs:n.attr()};e.setClip(r)}else e.setClip(null)}},t.wait=void 0;var r=n(0);function o(e,t,n,r){var o=e+n,i=t+r;return{x:e,y:t,width:n,height:r,minX:e,minY:t,maxX:isNaN(o)?0:o,maxY:isNaN(i)?0:i}}function i(e,t,n){return(1-n)*e+t*n}function a(e,t){var n=t.x-e.x,r=t.y-e.y;return Math.sqrt(n*n+r*r)}function l(e,t){var n=Math.max(e.minX,t.minX),r=Math.max(e.minY,t.minY);return o(n,r,Math.min(e.maxX,t.maxX)-n,Math.min(e.maxY,t.maxY)-r)}t.wait=function(e){return new Promise((function(t){setTimeout(t,e)}))},t.near=function(e,t,n){return void 0===n&&(n=Math.pow(Number.EPSILON,.5)),[e,t].includes(1/0)?Math.abs(e)===Math.abs(t):Math.abs(e-t)<n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1079);Object.defineProperty(t,"area",{enumerable:!0,get:function(){return r.area}});var o=n(1080);Object.defineProperty(t,"line",{enumerable:!0,get:function(){return o.line}});var i=n(1081);Object.defineProperty(t,"point",{enumerable:!0,get:function(){return i.point}});var a=n(1082);Object.defineProperty(t,"interval",{enumerable:!0,get:function(){return a.interval}});var l=n(512);Object.defineProperty(t,"polygon",{enumerable:!0,get:function(){return l.polygon}});var c=n(1083);Object.defineProperty(t,"edge",{enumerable:!0,get:function(){return c.edge}});var s=n(1084);Object.defineProperty(t,"schema",{enumerable:!0,get:function(){return s.schema}});var u=n(1085);Object.defineProperty(t,"violin",{enumerable:!0,get:function(){return u.violin}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=function(){function e(e,t){this.context=e,this.cfg=t,e.addAction(this)}return e.prototype.applyCfg=function(e){(0,r.assign)(this,e)},e.prototype.init=function(){this.applyCfg(this.cfg)},e.prototype.destroy=function(){this.context.removeAction(this),this.context=null},e}();t.default=o},function(e,t,n){"use strict";var r=n(1041),o=n(1042),i=n(484),a=n(1043);e.exports=function(e){return r(e)||o(e)||i(e)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getReplaceAttrs=t.getPolygonCentroid=t.getAngle=t.getArcPath=t.getSectorPath=t.polarToCartesian=void 0;var r=n(0);function o(e){return 1===Array.from(new Set(e)).length}function i(e){return((0,r.min)(e)+(0,r.max)(e))/2}function a(e,t,n,r){return{x:e+n*Math.cos(r),y:t+n*Math.sin(r)}}t.polarToCartesian=a,t.getSectorPath=function(e,t,n,r,o,i){void 0===i&&(i=0);var l=a(e,t,n,r),c=a(e,t,n,o),s=a(e,t,i,r),u=a(e,t,i,o);if(o-r===2*Math.PI){var d=a(e,t,n,r+Math.PI),f=a(e,t,i,r+Math.PI),p=[["M",l.x,l.y],["A",n,n,0,1,1,d.x,d.y],["A",n,n,0,1,1,c.x,c.y],["M",s.x,s.y]];return i&&(p.push(["A",i,i,0,1,0,f.x,f.y]),p.push(["A",i,i,0,1,0,u.x,u.y])),p.push(["M",l.x,l.y]),p.push(["Z"]),p}var h=o-r<=Math.PI?0:1,g=[["M",l.x,l.y],["A",n,n,0,h,1,c.x,c.y],["L",u.x,u.y]];return i&&g.push(["A",i,i,0,h,0,s.x,s.y]),g.push(["L",l.x,l.y]),g.push(["Z"]),g},t.getArcPath=function(e,t,n,o,i){var l=a(e,t,n,o),c=a(e,t,n,i);if((0,r.isNumberEqual)(i-o,2*Math.PI)){var s=a(e,t,n,o+Math.PI);return[["M",l.x,l.y],["A",n,n,0,1,1,s.x,s.y],["A",n,n,0,1,1,l.x,l.y],["A",n,n,0,1,0,s.x,s.y],["A",n,n,0,1,0,l.x,l.y],["Z"]]}var u=i-o<=Math.PI?0:1;return[["M",l.x,l.y],["A",n,n,0,u,1,c.x,c.y]]},t.getAngle=function(e,t){var n,o,i=function(e){if((0,r.isEmpty)(e))return null;var t=e[0].x,n=e[0].x,o=e[0].y,i=e[0].y;return(0,r.each)(e,(function(e){t=t>e.x?e.x:t,n=n<e.x?e.x:n,o=o>e.y?e.y:o,i=i<e.y?e.y:i})),{minX:t,maxX:n,minY:o,maxY:i,centerX:(t+n)/2,centerY:(o+i)/2}}(e.points),a=t.startAngle,l=t.endAngle-a;return t.isTransposed?(n=i.maxY*l,o=i.minY*l):(n=i.maxX*l,o=i.minX*l),{startAngle:o+=a,endAngle:n+=a}},t.getPolygonCentroid=function(e,t){if((0,r.isNumber)(e)&&(0,r.isNumber)(t))return[e,t];if(o(e)||o(t))return[i(e),i(t)];for(var n,a,l=-1,c=0,s=0,u=e.length-1,d=0;++l<e.length;)n=u,u=l,d+=a=e[n]*t[u]-e[u]*t[n],c+=(e[n]+e[u])*a,s+=(t[n]+t[u])*a;return[c/(d*=3),s/d]},t.getReplaceAttrs=function(e,t){var n=e.attr(),o=t.attr();return(0,r.each)(n,(function(e,t){void 0===o[t]&&(o[t]=void 0)})),o}},function(e,t,n){"use strict";n.d(t,"b",(function(){return s}));var r=n(4),o=n.n(r),i=n(3),a=n.n(i),l=a.a.createContext(null);l.displayName="ChartViewContext";var c=l.Consumer;function s(e){return function(t){return a.a.createElement(c,null,(function(n){return a.a.createElement(e,o()({chartView:n},t))}))}}t.a=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getCoordinateBBox=t.getCoordinateClipCfg=t.getAngleByPoint=t.isPointInCoordinate=t.getDistanceToCenter=t.isFullCircle=t.getXDimensionLength=void 0;var r=n(46),o=n(70),i=n(80);t.getXDimensionLength=function(e){if(e.isPolar&&!e.isTransposed)return(e.endAngle-e.startAngle)*e.getRadius();var t=e.convert({x:0,y:0}),n=e.convert({x:1,y:0});return Math.sqrt(Math.pow(n.x-t.x,2)+Math.pow(n.y-t.y,2))},t.isFullCircle=function(e){if(e.isPolar){var t=e.startAngle;return e.endAngle-t===2*Math.PI}return!1},t.getDistanceToCenter=function(e,t){var n=e.getCenter();return Math.sqrt(Math.pow(t.x-n.x,2)+Math.pow(t.y-n.y,2))},t.isPointInCoordinate=function(e,t){var n=!1;if(e)if("theta"===e.type){var r=e.start,i=e.end;n=(0,o.isBetween)(t.x,r.x,i.x)&&(0,o.isBetween)(t.y,r.y,i.y)}else{var a=e.invert(t);n=(0,o.isBetween)(a.x,0,1)&&(0,o.isBetween)(a.y,0,1)}return n},t.getAngleByPoint=function(e,t){var n=e.getCenter();return Math.atan2(t.y-n.y,t.x-n.x)},t.getCoordinateClipCfg=function(e,t){void 0===t&&(t=0);var n,o=e.start,i=e.end,a=e.getWidth(),l=e.getHeight();if(e.isPolar){var c=e.startAngle,s=e.endAngle,u=e.getCenter(),d=e.getRadius();return{type:"path",startState:{path:(0,r.getSectorPath)(u.x,u.y,d+t,c,c)},endState:function(e){var n=(s-c)*e+c;return{path:(0,r.getSectorPath)(u.x,u.y,d+t,c,n)}},attrs:{path:(0,r.getSectorPath)(u.x,u.y,d+t,c,s)}}}return n=e.isTransposed?{height:l+2*t}:{width:a+2*t},{type:"rect",startState:{x:o.x-t,y:i.y-t,width:e.isTransposed?a+2*t:0,height:e.isTransposed?0:l+2*t},endState:n,attrs:{x:o.x-t,y:i.y-t,width:a+2*t,height:l+2*t}}},t.getCoordinateBBox=function(e,t){void 0===t&&(t=0);var n=e.start,r=e.end,o=e.getWidth(),a=e.getHeight(),l=Math.min(n.x,r.x),c=Math.min(n.y,r.y);return i.BBox.fromRange(l-t,c-t,l+o+t,c+a+t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.geometry=function(e){var t=e.chart,n=e.options,c=n.type,s=n.args,u=n.mapping,d=n.xField,f=n.yField,p=n.colorField,h=n.shapeField,g=n.sizeField,v=n.tooltipFields,m=n.label,y=n.state,b=n.customInfo;if(!u)return e;var x=u.color,w=u.shape,S=u.size,O=u.style,_=u.tooltip,C=t[c](s).position(d+"*"+f);if((0,o.isString)(x))p?C.color(p,x):C.color(x);else if((0,o.isFunction)(x)){var E=a(n,"color"),P=E.mappingFields,M=E.tileMappingField;C.color(M,l(P,x))}else p&&C.color(p,x);if((0,o.isString)(w))h?C.shape(h,[w]):C.shape(w);else if((0,o.isFunction)(w)){var k=a(n,"shape");P=k.mappingFields,M=k.tileMappingField,C.shape(M,l(P,w))}else h&&C.shape(h,w);if((0,o.isNumber)(S))g?C.size(g,S):C.size(S);else if((0,o.isFunction)(S)){var A=a(n,"size");P=A.mappingFields,M=A.tileMappingField,C.size(M,l(P,S))}else g&&C.size(g,S);if((0,o.isFunction)(O)){var I=a(n,"style");P=I.mappingFields,M=I.tileMappingField,C.style(M,l(P,O))}else(0,o.isObject)(O)&&C.style(O);if(!1===v?C.tooltip(!1):(0,o.isEmpty)(v)||C.tooltip(v.join("*"),l(v,_)),!1===m)C.label(!1);else if(m){var T=m.callback,j=m.fields,L=(0,r.__rest)(m,["callback","fields"]);C.label({fields:j||[f],callback:T,cfg:(0,i.transformLabel)(L)})}return y&&C.state(y),b&&C.customInfo(b),[d,f].filter((function(e){return e!==p})).forEach((function(e){t.legend(e,!1)})),(0,r.__assign)((0,r.__assign)({},e),{ext:{geometry:C}})},t.getMappingField=a,t.getMappingFunction=l;var r=n(1),o=n(0),i=n(7);function a(e,t){var n=e.type,i=e.xField,a=e.yField,l=e.colorField,c=e.shapeField,s=e.sizeField,u=e.styleField,d=e.rawFields,f=void 0===d?[]:d,p=[];if("color"===t)p=(0,r.__spreadArrays)([l||i],f);else if("shape"===t)p=(0,r.__spreadArrays)([c||i],f);else if("size"===t)p=(0,r.__spreadArrays)([s||i],f);else{p=(0,r.__spreadArrays)([i,a,l,c,s,u],f);var h=["x","y","color","shape","size","style"].indexOf(t),g=p[h];p.splice(h,1),p.unshift(g)}var v=(0,o.uniq)(p.filter((function(e){return!!e}))),m="line"===n&&[i,a].includes(v.join("*"))?"":v.join("*");return{mappingFields:v,tileMappingField:m}}function l(e,t){if(t)return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o={};return e.forEach((function(e,t){o[e]=n[t]})),delete o[void 0],t(o)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(116);t.default=function(e){return r.default(e,"String")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isSamePoint=t.mergeRegion=t.intersectRect=t.inBox=t.distance=t.getPixelRatio=void 0,t.getPixelRatio=function(){return window?window.devicePixelRatio:1},t.distance=function(e,t,n,r){var o=e-n,i=t-r;return Math.sqrt(o*o+i*i)},t.inBox=function(e,t,n,r,o,i){return o>=e&&o<=e+n&&i>=t&&i<=t+r},t.intersectRect=function(e,t){return!(t.minX>e.maxX||t.maxX<e.minX||t.minY>e.maxY||t.maxY<e.minY)},t.mergeRegion=function(e,t){return e&&t?{minX:Math.min(e.minX,t.minX),minY:Math.min(e.minY,t.minY),maxX:Math.max(e.maxX,t.maxX),maxY:Math.max(e.maxY,t.maxY)}:e||t},t.isSamePoint=function(e,t){return e[0]===t[0]&&e[1]===t[1]};var r=n(0);Object.defineProperty(t,"isNil",{enumerable:!0,get:function(){return r.isNil}}),Object.defineProperty(t,"isString",{enumerable:!0,get:function(){return r.isString}}),Object.defineProperty(t,"isFunction",{enumerable:!0,get:function(){return r.isFunction}}),Object.defineProperty(t,"isArray",{enumerable:!0,get:function(){return r.isArray}}),Object.defineProperty(t,"each",{enumerable:!0,get:function(){return r.each}}),Object.defineProperty(t,"toRadian",{enumerable:!0,get:function(){return r.toRadian}}),Object.defineProperty(t,"mod",{enumerable:!0,get:function(){return r.mod}}),Object.defineProperty(t,"isNumberEqual",{enumerable:!0,get:function(){return r.isNumberEqual}}),Object.defineProperty(t,"requestAnimationFrame",{enumerable:!0,get:function(){return r.requestAnimationFrame}}),Object.defineProperty(t,"clearAnimationFrame",{enumerable:!0,get:function(){return r.clearAnimationFrame}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EVENTS=t.SVG_ATTR_MAP=t.SHAPE_TO_TAGS=void 0,t.SHAPE_TO_TAGS={rect:"path",circle:"circle",line:"line",path:"path",marker:"path",text:"text",polyline:"polyline",polygon:"polygon",image:"image",ellipse:"ellipse",dom:"foreignObject"},t.SVG_ATTR_MAP={opacity:"opacity",fillStyle:"fill",fill:"fill",fillOpacity:"fill-opacity",strokeStyle:"stroke",strokeOpacity:"stroke-opacity",stroke:"stroke",x:"x",y:"y",r:"r",rx:"rx",ry:"ry",width:"width",height:"height",x1:"x1",x2:"x2",y1:"y1",y2:"y2",lineCap:"stroke-linecap",lineJoin:"stroke-linejoin",lineWidth:"stroke-width",lineDash:"stroke-dasharray",lineDashOffset:"stroke-dashoffset",miterLimit:"stroke-miterlimit",font:"font",fontSize:"font-size",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",fontFamily:"font-family",startArrow:"marker-start",endArrow:"marker-end",path:"d",class:"class",id:"id",style:"style",preserveAspectRatio:"preserveAspectRatio"},t.EVENTS=["click","mousedown","mouseup","dblclick","contextmenu","mouseenter","mouseleave","mouseover","mouseout","mousemove","wheel"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"clearAnimationFrame",{enumerable:!0,get:function(){return r.clearAnimationFrame}}),t.distance=function(e,t,n,r){var o=e-n,i=t-r;return Math.sqrt(o*o+i*i)},Object.defineProperty(t,"each",{enumerable:!0,get:function(){return r.each}}),t.getPixelRatio=function(){return window?window.devicePixelRatio:1},t.inBox=function(e,t,n,r,o,i){return o>=e&&o<=e+n&&i>=t&&i<=t+r},t.intersectRect=function(e,t){return!(t.minX>e.maxX||t.maxX<e.minX||t.minY>e.maxY||t.maxY<e.minY)},Object.defineProperty(t,"isArray",{enumerable:!0,get:function(){return r.isArray}}),Object.defineProperty(t,"isFunction",{enumerable:!0,get:function(){return r.isFunction}}),Object.defineProperty(t,"isNil",{enumerable:!0,get:function(){return r.isNil}}),Object.defineProperty(t,"isNumberEqual",{enumerable:!0,get:function(){return r.isNumberEqual}}),t.isSamePoint=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Object.defineProperty(t,"isString",{enumerable:!0,get:function(){return r.isString}}),t.mergeRegion=function(e,t){return e&&t?{minX:Math.min(e.minX,t.minX),minY:Math.min(e.minY,t.minY),maxX:Math.max(e.maxX,t.maxX),maxY:Math.max(e.maxY,t.maxY)}:e||t},Object.defineProperty(t,"mod",{enumerable:!0,get:function(){return r.mod}}),Object.defineProperty(t,"requestAnimationFrame",{enumerable:!0,get:function(){return r.requestAnimationFrame}}),Object.defineProperty(t,"toRadian",{enumerable:!0,get:function(){return r.toRadian}});var r=n(0)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SVG_ATTR_MAP=t.SHAPE_TO_TAGS=t.EVENTS=void 0,t.SHAPE_TO_TAGS={rect:"path",circle:"circle",line:"line",path:"path",marker:"path",text:"text",polyline:"polyline",polygon:"polygon",image:"image",ellipse:"ellipse",dom:"foreignObject"},t.SVG_ATTR_MAP={opacity:"opacity",fillStyle:"fill",fill:"fill",fillOpacity:"fill-opacity",strokeStyle:"stroke",strokeOpacity:"stroke-opacity",stroke:"stroke",x:"x",y:"y",r:"r",rx:"rx",ry:"ry",width:"width",height:"height",x1:"x1",x2:"x2",y1:"y1",y2:"y2",lineCap:"stroke-linecap",lineJoin:"stroke-linejoin",lineWidth:"stroke-width",lineDash:"stroke-dasharray",lineDashOffset:"stroke-dashoffset",miterLimit:"stroke-miterlimit",font:"font",fontSize:"font-size",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",fontFamily:"font-family",startArrow:"marker-start",endArrow:"marker-end",path:"d",class:"class",id:"id",style:"style",preserveAspectRatio:"preserveAspectRatio"},t.EVENTS=["click","mousedown","mouseup","dblclick","contextmenu","mouseenter","mouseleave","mouseover","mouseout","mousemove","wheel"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(23),o=n(61);t.default=function(e,t){if(e)if(r.default(e))for(var n=0,i=e.length;n<i&&!1!==t(e[n],n);n++);else if(o.default(e))for(var a in e)if(e.hasOwnProperty(a)&&!1===t(e[a],a))break}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(e){return null!==e&&"function"!==typeof e&&isFinite(e.length)}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(68));t.default=function(e){return(0,o.default)(e,"Function")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={fontFamily:'\n  BlinkMacSystemFont, "Segoe UI", Roboto,"Helvetica Neue",\n  Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",\n  SimSun, "sans-serif"',textColor:"#2C3542",activeTextColor:"#333333",uncheckedColor:"#D8D8D8",lineColor:"#416180",regionColor:"#CCD7EB",verticalAxisRotate:-Math.PI/4,horizontalAxisRotate:Math.PI/4,descriptionIconStroke:"#fff",descriptionIconFill:"rgba(58, 73, 101, .25)"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.geometry=t.getMappingFunction=t.getMappingField=void 0;var r=n(1),o=n(0),i=n(15);function a(e,t){var n=e.type,i=e.xField,a=e.yField,l=e.colorField,c=e.shapeField,s=e.sizeField,u=e.styleField,d=e.rawFields,f=void 0===d?[]:d,p=[];if("color"===t)p=r.__spreadArrays([l||i],f);else if("shape"===t)p=r.__spreadArrays([c||i],f);else if("size"===t)p=r.__spreadArrays([s||i],f);else{p=r.__spreadArrays([i,a,l,c,s,u],f);var h=["x","y","color","shape","size","style"].indexOf(t),g=p[h];p.splice(h,1),p.unshift(g)}var v=o.uniq(p.filter((function(e){return!!e}))),m="line"===n&&[i,a].includes(v.join("*"))?"":v.join("*");return{mappingFields:v,tileMappingField:m}}function l(e,t){if(t)return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o={};return e.forEach((function(e,t){o[e]=n[t]})),delete o[void 0],t(o)}}t.getMappingField=a,t.getMappingFunction=l,t.geometry=function(e){var t=e.chart,n=e.options,c=n.type,s=n.args,u=n.mapping,d=n.xField,f=n.yField,p=n.colorField,h=n.shapeField,g=n.sizeField,v=n.tooltipFields,m=n.label,y=n.state,b=n.customInfo;if(!u)return e;var x=u.color,w=u.shape,S=u.size,O=u.style,_=u.tooltip,C=t[c](s).position(d+"*"+f);if(o.isString(x))p?C.color(p,x):C.color(x);else if(o.isFunction(x)){var E=a(n,"color"),P=E.mappingFields,M=E.tileMappingField;C.color(M,l(P,x))}else p&&C.color(p,x);if(o.isString(w))h?C.shape(h,[w]):C.shape(w);else if(o.isFunction(w)){var k=a(n,"shape");P=k.mappingFields,M=k.tileMappingField,C.shape(M,l(P,w))}else h&&C.shape(h,w);if(o.isNumber(S))g?C.size(g,S):C.size(S);else if(o.isFunction(S)){var A=a(n,"size");P=A.mappingFields,M=A.tileMappingField,C.size(M,l(P,S))}else g&&C.size(g,S);if(o.isFunction(O)){var I=a(n,"style");P=I.mappingFields,M=I.tileMappingField,C.style(M,l(P,O))}else o.isObject(O)&&C.style(O);if(!1===v?C.tooltip(!1):o.isEmpty(v)||C.tooltip(v.join("*"),l(v,_)),!1===m)C.label(!1);else if(m){var T=m.callback,j=m.fields,L=r.__rest(m,["callback","fields"]);C.label({fields:j||[f],callback:T,cfg:i.transformLabel(L)})}return y&&C.state(y),b&&C.customInfo(b),[d,f].filter((function(e){return e!==p})).forEach((function(e){t.legend(e,!1)})),r.__assign(r.__assign({},e),{ext:{geometry:C}})}},function(e,t,n){"use strict";var r=n(2),o=n(6);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"color",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"cubehelix",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"gray",{enumerable:!0,get:function(){return a.gray}}),Object.defineProperty(t,"hcl",{enumerable:!0,get:function(){return a.hcl}}),Object.defineProperty(t,"hsl",{enumerable:!0,get:function(){return i.hsl}}),Object.defineProperty(t,"lab",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"lch",{enumerable:!0,get:function(){return a.lch}}),Object.defineProperty(t,"rgb",{enumerable:!0,get:function(){return i.rgb}});var i=s(n(244)),a=s(n(762)),l=r(n(763));function c(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(c=function(e){return e?n:t})(e)}function s(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!==typeof e)return{default:e};var n=c(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(r,a,l):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}},function(e,t,n){"use strict";var r=n(2)(n(6));Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=(0,r.default)(e);return null!==e&&"object"===t||"function"===t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(26),i=n(145),a=n(72),l=n(260),c=n(52),s=n(185),u=n(261),d=n(26),f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="svg",t.canFill=!1,t.canStroke=!1,t}return r.__extends(t,e),t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return r.__assign(r.__assign({},t),{lineWidth:1,lineAppendWidth:0,strokeOpacity:1,fillOpacity:1})},t.prototype.afterAttrsChange=function(t){e.prototype.afterAttrsChange.call(this,t);var n=this.get("canvas");if(n&&n.get("autoDraw")){var r=n.get("context");this.draw(r,t)}},t.prototype.getShapeBase=function(){return s},t.prototype.getGroupBase=function(){return u.default},t.prototype.onCanvasChange=function(e){l.refreshElement(this,e)},t.prototype.calculateBBox=function(){var e=this.get("el"),t=null;if(e)t=e.getBBox();else{var n=d.getBBoxMethod(this.get("type"));n&&(t=n(this))}if(t){var r=t.x,o=t.y,i=t.width,a=t.height,l=this.getHitLineWidth(),c=l/2,s=r-c,u=o-c;return{x:s,y:u,minX:s,minY:u,maxX:r+i+c,maxY:o+a+c,width:i+l,height:a+l}}return{x:0,y:0,minX:0,minY:0,maxX:0,maxY:0,width:0,height:0}},t.prototype.isFill=function(){var e=this.attr(),t=e.fill,n=e.fillStyle;return(t||n||this.isClipShape())&&this.canFill},t.prototype.isStroke=function(){var e=this.attr(),t=e.stroke,n=e.strokeStyle;return(t||n)&&this.canStroke},t.prototype.draw=function(e,t){var n=this.get("el");this.get("destroyed")?n&&n.parentNode.removeChild(n):(n||a.createDom(this),i.setClip(this,e),this.createPath(e,t),this.shadow(e,t),this.strokeAndFill(e,t),this.transform(t))},t.prototype.createPath=function(e,t){},t.prototype.strokeAndFill=function(e,t){var n=t||this.attr(),r=n.fill,o=n.fillStyle,i=n.stroke,a=n.strokeStyle,l=n.fillOpacity,s=n.strokeOpacity,u=n.lineWidth,d=this.get("el");this.canFill&&(t?"fill"in n?this._setColor(e,"fill",r):"fillStyle"in n&&this._setColor(e,"fill",o):this._setColor(e,"fill",r||o),l&&d.setAttribute(c.SVG_ATTR_MAP.fillOpacity,l)),this.canStroke&&u>0&&(t?"stroke"in n?this._setColor(e,"stroke",i):"strokeStyle"in n&&this._setColor(e,"stroke",a):this._setColor(e,"stroke",i||a),s&&d.setAttribute(c.SVG_ATTR_MAP.strokeOpacity,s),u&&d.setAttribute(c.SVG_ATTR_MAP.lineWidth,u))},t.prototype._setColor=function(e,t,n){var r=this.get("el");if(n)if(n=n.trim(),/^[r,R,L,l]{1}[\s]*\(/.test(n))(o=e.find("gradient",n))||(o=e.addGradient(n)),r.setAttribute(c.SVG_ATTR_MAP[t],"url(#"+o+")");else if(/^[p,P]{1}[\s]*\(/.test(n)){var o;(o=e.find("pattern",n))||(o=e.addPattern(n)),r.setAttribute(c.SVG_ATTR_MAP[t],"url(#"+o+")")}else r.setAttribute(c.SVG_ATTR_MAP[t],n);else r.setAttribute(c.SVG_ATTR_MAP[t],"none")},t.prototype.shadow=function(e,t){var n=this.attr(),r=t||n,o=r.shadowOffsetX,a=r.shadowOffsetY,l=r.shadowBlur,c=r.shadowColor;(o||a||l||c)&&i.setShadow(this,e)},t.prototype.transform=function(e){var t=this.attr();(e||t).matrix&&i.setTransform(this)},t.prototype.isInShape=function(e,t){return this.isPointInPath(e,t)},t.prototype.isPointInPath=function(e,t){var n=this.get("el"),r=this.get("canvas").get("el").getBoundingClientRect(),o=e+r.left,i=t+r.top,a=document.elementFromPoint(o,i);return!(!a||!a.isEqualNode(n))},t.prototype.getHitLineWidth=function(){var e=this.attrs,t=e.lineWidth,n=e.lineAppendWidth;return this.isStroke()?t+n:0},t}(o.AbstractShape);t.default=f},function(e,t,n){"use strict";var r=n(2),o=n(6);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(1),a=n(26),l=n(149),c=n(74),s=n(273),u=n(54),d=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!==typeof e)return{default:e};var n=p(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(r,a,l):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}(n(191)),f=r(n(274));function p(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(p=function(e){return e?n:t})(e)}var h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="svg",t.canFill=!1,t.canStroke=!1,t}return(0,i.__extends)(t,e),t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},t),{lineWidth:1,lineAppendWidth:0,strokeOpacity:1,fillOpacity:1})},t.prototype.afterAttrsChange=function(t){e.prototype.afterAttrsChange.call(this,t);var n=this.get("canvas");if(n&&n.get("autoDraw")){var r=n.get("context");this.draw(r,t)}},t.prototype.getShapeBase=function(){return d},t.prototype.getGroupBase=function(){return f.default},t.prototype.onCanvasChange=function(e){(0,s.refreshElement)(this,e)},t.prototype.calculateBBox=function(){var e=this.get("el"),t=null;if(e)t=e.getBBox();else{var n=(0,a.getBBoxMethod)(this.get("type"));n&&(t=n(this))}if(t){var r=t.x,o=t.y,i=t.width,l=t.height,c=this.getHitLineWidth(),s=c/2,u=r-s,d=o-s;return{x:u,y:d,minX:u,minY:d,maxX:r+i+s,maxY:o+l+s,width:i+c,height:l+c}}return{x:0,y:0,minX:0,minY:0,maxX:0,maxY:0,width:0,height:0}},t.prototype.isFill=function(){var e=this.attr(),t=e.fill,n=e.fillStyle;return(t||n||this.isClipShape())&&this.canFill},t.prototype.isStroke=function(){var e=this.attr(),t=e.stroke,n=e.strokeStyle;return(t||n)&&this.canStroke},t.prototype.draw=function(e,t){var n=this.get("el");this.get("destroyed")?n&&n.parentNode.removeChild(n):(n||(0,c.createDom)(this),(0,l.setClip)(this,e),this.createPath(e,t),this.shadow(e,t),this.strokeAndFill(e,t),this.transform(t))},t.prototype.createPath=function(e,t){},t.prototype.strokeAndFill=function(e,t){var n=t||this.attr(),r=n.fill,o=n.fillStyle,i=n.stroke,a=n.strokeStyle,l=n.fillOpacity,c=n.strokeOpacity,s=n.lineWidth,d=this.get("el");this.canFill&&(t?"fill"in n?this._setColor(e,"fill",r):"fillStyle"in n&&this._setColor(e,"fill",o):this._setColor(e,"fill",r||o),l&&d.setAttribute(u.SVG_ATTR_MAP.fillOpacity,l)),this.canStroke&&s>0&&(t?"stroke"in n?this._setColor(e,"stroke",i):"strokeStyle"in n&&this._setColor(e,"stroke",a):this._setColor(e,"stroke",i||a),c&&d.setAttribute(u.SVG_ATTR_MAP.strokeOpacity,c),s&&d.setAttribute(u.SVG_ATTR_MAP.lineWidth,s))},t.prototype._setColor=function(e,t,n){var r=this.get("el");if(n)if(n=n.trim(),/^[r,R,L,l]{1}[\s]*\(/.test(n))(o=e.find("gradient",n))||(o=e.addGradient(n)),r.setAttribute(u.SVG_ATTR_MAP[t],"url(#"+o+")");else if(/^[p,P]{1}[\s]*\(/.test(n)){var o;(o=e.find("pattern",n))||(o=e.addPattern(n)),r.setAttribute(u.SVG_ATTR_MAP[t],"url(#"+o+")")}else r.setAttribute(u.SVG_ATTR_MAP[t],n);else r.setAttribute(u.SVG_ATTR_MAP[t],"none")},t.prototype.shadow=function(e,t){var n=this.attr(),r=t||n,o=r.shadowOffsetX,i=r.shadowOffsetY,a=r.shadowBlur,c=r.shadowColor;(o||i||a||c)&&(0,l.setShadow)(this,e)},t.prototype.transform=function(e){var t=this.attr();(e||t).matrix&&(0,l.setTransform)(this)},t.prototype.isInShape=function(e,t){return this.isPointInPath(e,t)},t.prototype.isPointInPath=function(e,t){var n=this.get("el"),r=this.get("canvas").get("el").getBoundingClientRect(),o=e+r.left,i=t+r.top,a=document.elementFromPoint(o,i);return!(!a||!a.isEqualNode(n))},t.prototype.getHitLineWidth=function(){var e=this.attrs,t=e.lineWidth,n=e.lineAppendWidth;return this.isStroke()?t+n:0},t}(a.AbstractShape);t.default=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTooltipMapping=void 0;var r=n(0);t.getTooltipMapping=function(e,t){if(!1===e)return{fields:!1};var n=r.get(e,"fields"),o=r.get(e,"formatter");return o&&!n&&(n=t),{fields:n,formatter:o}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTooltipMapping=function(e,t){if(!1===e)return{fields:!1};var n=(0,r.get)(e,"fields"),o=(0,r.get)(e,"formatter");return o&&!n&&(n=t),{fields:n,formatter:o}};var r=n(0)},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Category",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"Identity",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(t,"Linear",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"Log",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"Pow",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"Quantile",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(t,"Quantize",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"Scale",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"Time",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"TimeCat",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"getScale",{enumerable:!0,get:function(){return p.getScale}}),Object.defineProperty(t,"getTickMethod",{enumerable:!0,get:function(){return g.getTickMethod}}),Object.defineProperty(t,"registerScale",{enumerable:!0,get:function(){return p.registerScale}}),Object.defineProperty(t,"registerTickMethod",{enumerable:!0,get:function(){return g.registerTickMethod}});var o=r(n(141)),i=r(n(429)),a=r(n(832)),l=r(n(430)),c=r(n(835)),s=r(n(836)),u=r(n(837)),d=r(n(431)),f=r(n(838)),p=n(839),h=r(n(840)),g=n(841);(0,p.registerScale)("cat",i.default),(0,p.registerScale)("category",i.default),(0,p.registerScale)("identity",h.default),(0,p.registerScale)("linear",l.default),(0,p.registerScale)("log",c.default),(0,p.registerScale)("pow",s.default),(0,p.registerScale)("time",u.default),(0,p.registerScale)("timeCat",a.default),(0,p.registerScale)("quantize",d.default),(0,p.registerScale)("quantile",f.default)},function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"c",(function(){return c}));var r=n(3),o=n.n(r),i=n(622),a=function(e){var t=e.error;return o.a.createElement("div",{className:"bizcharts-error",role:"alert"},o.a.createElement("p",null,"BizCharts something went wrong:"),o.a.createElement("pre",null,t.message))};function l(e){return a(e)}var c=function(e){a=e};t.b=i.ErrorBoundary},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={}.toString;t.default=function(e,t){return r.call(e)==="[object "+t+"]"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Scrollbar=t.Slider=t.HtmlTooltip=t.ContinuousLegend=t.CategoryLegend=t.CircleGrid=t.LineGrid=t.CircleAxis=t.LineAxis=t.Annotation=t.Crosshair=t.Component=t.GroupComponent=t.HtmlComponent=t.Scale=t.registerScale=t.getScale=t.Coordinate=t.registerCoordinate=t.getCoordinate=t.Color=t.Attribute=t.getAttribute=t.Adjust=t.getAdjust=t.registerAdjust=t.AbstractShape=t.AbstractGroup=t.Event=void 0;var r=n(26);Object.defineProperty(t,"Event",{enumerable:!0,get:function(){return r.Event}}),Object.defineProperty(t,"AbstractGroup",{enumerable:!0,get:function(){return r.AbstractGroup}}),Object.defineProperty(t,"AbstractShape",{enumerable:!0,get:function(){return r.AbstractShape}});var o=n(425);Object.defineProperty(t,"registerAdjust",{enumerable:!0,get:function(){return o.registerAdjust}}),Object.defineProperty(t,"getAdjust",{enumerable:!0,get:function(){return o.getAdjust}}),Object.defineProperty(t,"Adjust",{enumerable:!0,get:function(){return o.Adjust}});var i=n(250);Object.defineProperty(t,"getAttribute",{enumerable:!0,get:function(){return i.getAttribute}}),Object.defineProperty(t,"Attribute",{enumerable:!0,get:function(){return i.Attribute}});var a=n(250);Object.defineProperty(t,"Color",{enumerable:!0,get:function(){return a.Color}});var l=n(853);Object.defineProperty(t,"getCoordinate",{enumerable:!0,get:function(){return l.getCoordinate}}),Object.defineProperty(t,"registerCoordinate",{enumerable:!0,get:function(){return l.registerCoordinate}}),Object.defineProperty(t,"Coordinate",{enumerable:!0,get:function(){return l.Coordinate}});var c=n(66);Object.defineProperty(t,"getScale",{enumerable:!0,get:function(){return c.getScale}}),Object.defineProperty(t,"registerScale",{enumerable:!0,get:function(){return c.registerScale}}),Object.defineProperty(t,"Scale",{enumerable:!0,get:function(){return c.Scale}});var s=n(180);Object.defineProperty(t,"Annotation",{enumerable:!0,get:function(){return s.Annotation}}),Object.defineProperty(t,"Component",{enumerable:!0,get:function(){return s.Component}}),Object.defineProperty(t,"Crosshair",{enumerable:!0,get:function(){return s.Crosshair}}),Object.defineProperty(t,"GroupComponent",{enumerable:!0,get:function(){return s.GroupComponent}}),Object.defineProperty(t,"HtmlComponent",{enumerable:!0,get:function(){return s.HtmlComponent}}),Object.defineProperty(t,"Slider",{enumerable:!0,get:function(){return s.Slider}}),Object.defineProperty(t,"Scrollbar",{enumerable:!0,get:function(){return s.Scrollbar}});var u=s.Axis.Line,d=s.Axis.Circle;t.LineAxis=u,t.CircleAxis=d;var f=s.Grid.Line,p=s.Grid.Circle;t.LineGrid=f,t.CircleGrid=p;var h=s.Legend.Category,g=s.Legend.Continuous;t.CategoryLegend=h,t.ContinuousLegend=g;var v=s.Tooltip.Html;t.HtmlTooltip=v},function(e,t,n){"use strict";var r=n(2)(n(6));Object.defineProperty(t,"__esModule",{value:!0}),t.uniq=t.omit=t.padEnd=t.isBetween=void 0;var o=n(0);t.isBetween=function(e,t,n){var r=Math.min(t,n),o=Math.max(t,n);return e>=r&&e<=o},t.padEnd=function(e,t,n){if((0,o.isString)(e))return e.padEnd(t,n);if((0,o.isArray)(e)){var r=e.length;if(r<t)for(var i=t-r,a=0;a<i;a++)e.push(n)}return e},t.omit=function(e,t){return"object"===(0,r.default)(e)&&t.forEach((function(t){delete e[t]})),e},t.uniq=function(e,t,n){void 0===t&&(t=[]),void 0===n&&(n=new Map);for(var r=0,o=e;r<o.length;r++){var i=o[r];n.has(i)||(t.push(i),n.set(i,!0))}return t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(26),i=n(51),a=n(144),l=n(26),c=n(143),s=n(259),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return r.__assign(r.__assign({},t),{lineWidth:1,lineAppendWidth:0,strokeOpacity:1,fillOpacity:1})},t.prototype.getShapeBase=function(){return c},t.prototype.getGroupBase=function(){return s.default},t.prototype.onCanvasChange=function(e){a.refreshElement(this,e)},t.prototype.calculateBBox=function(){var e=this.get("type"),t=this.getHitLineWidth(),n=l.getBBoxMethod(e)(this),r=t/2,o=n.x-r,i=n.y-r,a=n.x+n.width+r,c=n.y+n.height+r;return{x:o,minX:o,y:i,minY:i,width:n.width+t,height:n.height+t,maxX:a,maxY:c}},t.prototype.isFill=function(){return!!this.attrs.fill||this.isClipShape()},t.prototype.isStroke=function(){return!!this.attrs.stroke},t.prototype._applyClip=function(e,t){t&&(e.save(),a.applyAttrsToContext(e,t),t.createPath(e),e.restore(),e.clip(),t._afterDraw())},t.prototype.draw=function(e,t){var n=this.cfg.clipShape;if(t){if(!1===this.cfg.refresh)return void this.set("hasChanged",!1);var r=this.getCanvasBBox();if(!i.intersectRect(t,r))return this.set("hasChanged",!1),void(this.cfg.isInView&&this._afterDraw())}e.save(),a.applyAttrsToContext(e,this),this._applyClip(e,n),this.drawPath(e),e.restore(),this._afterDraw()},t.prototype.getCanvasViewBox=function(){var e=this.cfg.canvas;return e?e.getViewRange():null},t.prototype.cacheCanvasBBox=function(){var e=this.getCanvasViewBox();if(e){var t=this.getCanvasBBox(),n=i.intersectRect(t,e);this.set("isInView",n),n?this.set("cacheCanvasBBox",t):this.set("cacheCanvasBBox",null)}},t.prototype._afterDraw=function(){this.cacheCanvasBBox(),this.set("hasChanged",!1),this.set("refresh",null)},t.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("isInView",null),this.set("hasChanged",!1)},t.prototype.drawPath=function(e){this.createPath(e),this.strokeAndFill(e),this.afterDrawPath(e)},t.prototype.fill=function(e){e.fill()},t.prototype.stroke=function(e){e.stroke()},t.prototype.strokeAndFill=function(e){var t=this.attrs,n=t.lineWidth,r=t.opacity,o=t.strokeOpacity,a=t.fillOpacity;this.isFill()&&(i.isNil(a)||1===a?this.fill(e):(e.globalAlpha=a,this.fill(e),e.globalAlpha=r)),this.isStroke()&&n>0&&(i.isNil(o)||1===o||(e.globalAlpha=o),this.stroke(e)),this.afterDrawPath(e)},t.prototype.createPath=function(e){},t.prototype.afterDrawPath=function(e){},t.prototype.isInShape=function(e,t){var n=this.isStroke(),r=this.isFill(),o=this.getHitLineWidth();return this.isInStrokeOrPath(e,t,n,r,o)},t.prototype.isInStrokeOrPath=function(e,t,n,r,o){return!1},t.prototype.getHitLineWidth=function(){if(!this.isStroke())return 0;var e=this.attrs;return e.lineWidth+e.lineAppendWidth},t}(o.AbstractShape);t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.moveTo=t.sortDom=t.createDom=t.createSVGElement=void 0;var r=n(0),o=n(52);function i(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}t.createSVGElement=i,t.createDom=function(e){var t=o.SHAPE_TO_TAGS[e.type],n=e.getParent();if(!t)throw new Error("the type "+e.type+" is not supported by svg");var r=i(t);if(e.get("id")&&(r.id=e.get("id")),e.set("el",r),e.set("attrs",{}),n){var a=n.get("el");a||(a=n.createDom(),n.set("el",a)),a.appendChild(r)}return r},t.sortDom=function(e,t){var n=e.get("el"),o=r.toArray(n.children).sort(t),i=document.createDocumentFragment();o.forEach((function(e){i.appendChild(e)})),n.appendChild(i)},t.moveTo=function(e,t){var n=e.parentNode,r=Array.from(n.childNodes).filter((function(e){return 1===e.nodeType&&"defs"!==e.nodeName.toLowerCase()})),o=r[t],i=r.indexOf(e);if(o){if(i>t)n.insertBefore(e,o);else if(i<t){var a=r[t+1];a?n.insertBefore(e,a):n.appendChild(e)}}else n.appendChild(e)}},function(e,t,n){"use strict";var r=n(2),o=n(6);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(1),a=n(26),l=n(53),c=n(148),s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!==typeof e)return{default:e};var n=d(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(r,a,l):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}(n(147)),u=r(n(272));function d(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(d=function(e){return e?n:t})(e)}var f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,i.__extends)(t,e),t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},t),{lineWidth:1,lineAppendWidth:0,strokeOpacity:1,fillOpacity:1})},t.prototype.getShapeBase=function(){return s},t.prototype.getGroupBase=function(){return u.default},t.prototype.onCanvasChange=function(e){(0,c.refreshElement)(this,e)},t.prototype.calculateBBox=function(){var e=this.get("type"),t=this.getHitLineWidth(),n=(0,a.getBBoxMethod)(e)(this),r=t/2,o=n.x-r,i=n.y-r,l=n.x+n.width+r,c=n.y+n.height+r;return{x:o,minX:o,y:i,minY:i,width:n.width+t,height:n.height+t,maxX:l,maxY:c}},t.prototype.isFill=function(){return!!this.attrs.fill||this.isClipShape()},t.prototype.isStroke=function(){return!!this.attrs.stroke},t.prototype._applyClip=function(e,t){t&&(e.save(),(0,c.applyAttrsToContext)(e,t),t.createPath(e),e.restore(),e.clip(),t._afterDraw())},t.prototype.draw=function(e,t){var n=this.cfg.clipShape;if(t){if(!1===this.cfg.refresh)return void this.set("hasChanged",!1);var r=this.getCanvasBBox();if(!(0,l.intersectRect)(t,r))return this.set("hasChanged",!1),void(this.cfg.isInView&&this._afterDraw())}e.save(),(0,c.applyAttrsToContext)(e,this),this._applyClip(e,n),this.drawPath(e),e.restore(),this._afterDraw()},t.prototype.getCanvasViewBox=function(){var e=this.cfg.canvas;return e?e.getViewRange():null},t.prototype.cacheCanvasBBox=function(){var e=this.getCanvasViewBox();if(e){var t=this.getCanvasBBox(),n=(0,l.intersectRect)(t,e);this.set("isInView",n),n?this.set("cacheCanvasBBox",t):this.set("cacheCanvasBBox",null)}},t.prototype._afterDraw=function(){this.cacheCanvasBBox(),this.set("hasChanged",!1),this.set("refresh",null)},t.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("isInView",null),this.set("hasChanged",!1)},t.prototype.drawPath=function(e){this.createPath(e),this.strokeAndFill(e),this.afterDrawPath(e)},t.prototype.fill=function(e){e.fill()},t.prototype.stroke=function(e){e.stroke()},t.prototype.strokeAndFill=function(e){var t=this.attrs,n=t.lineWidth,r=t.opacity,o=t.strokeOpacity,i=t.fillOpacity;this.isFill()&&((0,l.isNil)(i)||1===i?this.fill(e):(e.globalAlpha=i,this.fill(e),e.globalAlpha=r)),this.isStroke()&&n>0&&((0,l.isNil)(o)||1===o||(e.globalAlpha=o),this.stroke(e)),this.afterDrawPath(e)},t.prototype.createPath=function(e){},t.prototype.afterDrawPath=function(e){},t.prototype.isInShape=function(e,t){var n=this.isStroke(),r=this.isFill(),o=this.getHitLineWidth();return this.isInStrokeOrPath(e,t,n,r,o)},t.prototype.isInStrokeOrPath=function(e,t,n,r,o){return!1},t.prototype.getHitLineWidth=function(){if(!this.isStroke())return 0;var e=this.attrs;return e.lineWidth+e.lineAppendWidth},t}(a.AbstractShape);t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createDom=function(e){var t=o.SHAPE_TO_TAGS[e.type],n=e.getParent();if(!t)throw new Error("the type "+e.type+" is not supported by svg");var r=i(t);if(e.get("id")&&(r.id=e.get("id")),e.set("el",r),e.set("attrs",{}),n){var a=n.get("el");a||(a=n.createDom(),n.set("el",a)),a.appendChild(r)}return r},t.createSVGElement=i,t.moveTo=function(e,t){var n=e.parentNode,r=Array.from(n.childNodes).filter((function(e){return 1===e.nodeType&&"defs"!==e.nodeName.toLowerCase()})),o=r[t],i=r.indexOf(e);if(o){if(i>t)n.insertBefore(e,o);else if(i<t){var a=r[t+1];a?n.insertBefore(e,a):n.appendChild(e)}}else n.appendChild(e)},t.sortDom=function(e,t){var n=e.get("el"),o=(0,r.toArray)(n.children).sort(t),i=document.createDocumentFragment();o.forEach((function(e){i.appendChild(e)})),n.appendChild(i)};var r=n(0),o=n(54);function i(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}},function(e,t,n){"use strict";var r=n(6),o=n.n(r),i=n(23),a=n.n(i),l=n(77),c=n.n(l);t.a=function(e){var t=[];return function e(n){if(t.push(n),t.includes(n))return n;if("object"!==o()(n)||null===n)return n;var r;if(a()(n)){r=[];for(var i=0,l=n.length;i<l;i++)"object"===o()(n[i])&&null!=n[i]?r[i]=e(n[i]):r[i]=n[i]}else r={},c()(n,(function(t,n){"object"===o()(t)&&null!=t?r[n]=e(t):r[n]=t}));return r}(e)}},function(e,t,n){"use strict";n.d(t,"b",(function(){return c}));var r=n(4),o=n.n(r),i=n(3),a=n.n(i),l=a.a.createContext(null);function c(e){var t=a.a.forwardRef((function(t,n){return a.a.createElement(l.Consumer,null,(function(r){return a.a.createElement(e,o()({ref:n},r,t))}))}));return t.displayName=e.name,t}l.displayName="RootChartContext",t.a=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(55);t.default=r.default},function(e,t,n){"use strict";var r=n(55),o=n.n(r),i=n(50),a=n.n(i);t.a=function(e,t){var n={};return o()(e,(function(e,r){var o=!1;t.forEach((function(e){(a()(e)&&e===r||e instanceof RegExp&&r.match(e))&&(o=!0)})),o||(n[r]=e)})),n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RANDOM=t.EPSILON=t.ARRAY_TYPE=void 0,t.equals=function(e,t){return Math.abs(e-t)<=r*Math.max(1,Math.abs(e),Math.abs(t))},t.setMatrixArrayType=function(e){t.ARRAY_TYPE=e},t.toRadian=function(e){return e*o};var r=t.EPSILON=1e-6;t.ARRAY_TYPE="undefined"!==typeof Float32Array?Float32Array:Array,t.RANDOM=Math.random;var o=Math.PI/180;Math.hypot||(Math.hypot=function(){for(var e=0,t=arguments.length;t--;)e+=arguments[t]*arguments[t];return Math.sqrt(e)})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toPoints=t.getRegionBBox=t.BBox=void 0;var r=n(0),o=n(21),i=function(){function e(e,t,n,r){void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=0),void 0===r&&(r=0),this.x=e,this.y=t,this.height=r,this.width=n}return e.fromRange=function(t,n,r,o){return new e(t,n,r-t,o-n)},e.fromObject=function(t){return new e(t.minX,t.minY,t.width,t.height)},Object.defineProperty(e.prototype,"minX",{get:function(){return this.x},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxX",{get:function(){return this.x+this.width},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"minY",{get:function(){return this.y},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxY",{get:function(){return this.y+this.height},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tl",{get:function(){return{x:this.x,y:this.y}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tr",{get:function(){return{x:this.maxX,y:this.y}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"bl",{get:function(){return{x:this.x,y:this.maxY}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"br",{get:function(){return{x:this.maxX,y:this.maxY}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"top",{get:function(){return{x:this.x+this.width/2,y:this.minY}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"right",{get:function(){return{x:this.maxX,y:this.y+this.height/2}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"bottom",{get:function(){return{x:this.x+this.width/2,y:this.maxY}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"left",{get:function(){return{x:this.minX,y:this.y+this.height/2}},enumerable:!1,configurable:!0}),e.prototype.isEqual=function(e){return this.x===e.x&&this.y===e.y&&this.width===e.width&&this.height===e.height},e.prototype.contains=function(e){return e.minX>=this.minX&&e.maxX<=this.maxX&&e.minY>=this.minY&&e.maxY<=this.maxY},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.add=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=this.clone();return(0,r.each)(e,(function(e){n.x=Math.min(e.x,n.x),n.y=Math.min(e.y,n.y),n.width=Math.max(e.maxX,n.maxX)-n.x,n.height=Math.max(e.maxY,n.maxY)-n.y})),n},e.prototype.merge=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=this.clone();return(0,r.each)(e,(function(e){n.x=Math.max(e.x,n.x),n.y=Math.max(e.y,n.y),n.width=Math.min(e.maxX,n.maxX)-n.x,n.height=Math.min(e.maxY,n.maxY)-n.y})),n},e.prototype.cut=function(t,n){var r=t.width,i=t.height;switch(n){case o.DIRECTION.TOP:case o.DIRECTION.TOP_LEFT:case o.DIRECTION.TOP_RIGHT:return e.fromRange(this.minX,this.minY+i,this.maxX,this.maxY);case o.DIRECTION.RIGHT:case o.DIRECTION.RIGHT_TOP:case o.DIRECTION.RIGHT_BOTTOM:return e.fromRange(this.minX,this.minY,this.maxX-r,this.maxY);case o.DIRECTION.BOTTOM:case o.DIRECTION.BOTTOM_LEFT:case o.DIRECTION.BOTTOM_RIGHT:return e.fromRange(this.minX,this.minY,this.maxX,this.maxY-i);case o.DIRECTION.LEFT:case o.DIRECTION.LEFT_TOP:case o.DIRECTION.LEFT_BOTTOM:return e.fromRange(this.minX+r,this.minY,this.maxX,this.maxY);default:return this}},e.prototype.shrink=function(t){var n=t[0],r=t[1],o=t[2],i=t[3];return new e(this.x+i,this.y+n,this.width-i-r,this.height-n-o)},e.prototype.expand=function(t){var n=t[0],r=t[1],o=t[2],i=t[3];return new e(this.x-i,this.y-n,this.width+i+r,this.height+n+o)},e.prototype.exceed=function(e){return[Math.max(-this.minY+e.minY,0),Math.max(this.maxX-e.maxX,0),Math.max(this.maxY-e.maxY,0),Math.max(-this.minX+e.minX,0)]},e.prototype.collide=function(e){return this.minX<e.maxX&&this.maxX>e.minX&&this.minY<e.maxY&&this.maxY>e.minY},e.prototype.size=function(){return this.width*this.height},e.prototype.isPointIn=function(e){return e.x>=this.minX&&e.x<=this.maxX&&e.y>=this.minY&&e.y<=this.maxY},e}();t.BBox=i,t.getRegionBBox=function(e,t){var n=t.start,r=t.end;return new i(e.x+e.width*n.x,e.y+e.height*n.y,e.width*Math.abs(r.x-n.x),e.height*Math.abs(r.y-n.y))},t.toPoints=function(e){return[[e.minX,e.minY],[e.maxX,e.minY],[e.maxX,e.maxY],[e.minX,e.maxY]]}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(3),o=n.n(r),i=n(76);function a(){return o.a.useContext(i.a).chart}},function(e,t,n){"use strict";var r=n(6),o=n.n(r),i=n(55),a=n.n(i),l=n(23),c=n.n(l),s=n(61),u=n.n(s);function d(e,t){return e===t?0!==e||0!==t||1/e===1/t:e!==e&&t!==t}function f(e){return c()(e)?e.length:u()(e)?Object.keys(e).length:0}t.a=function(e,t){if(d(e,t))return!0;if("object"!==o()(e)||null===e||"object"!==o()(t)||null===t)return!1;if(c()(e)!==c()(t))return!1;if(f(e)!==f(t))return!1;var n=!0;return a()(e,(function(e,r){return!!d(e,t[r])||(n=!1)})),n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Bar=void 0;var r=n(1),o=n(24),i=n(118),a=n(1125),l=n(1129),c=n(526),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="bar",t}return r.__extends(t,e),t.getDefaultOptions=function(){return l.DEFAULT_OPTIONS},t.prototype.changeData=function(e){this.updateOption({data:e});var t=this.chart,n=this.options,o=n.xField,l=n.yField,s=n.isPercent,u=r.__assign(r.__assign({},n),{xField:l,yField:o});a.meta({chart:t,options:u}),t.changeData(i.getDataWhetherPecentage(c.transformBarData(e),o,l,o,s))},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return a.adaptor},t}(o.Plot);t.Bar=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Column=void 0;var r=n(1),o=n(24),i=n(118),a=n(196),l=n(1132),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="column",t}return r.__extends(t,e),t.getDefaultOptions=function(){return l.DEFAULT_OPTIONS},t.prototype.changeData=function(e){this.updateOption({data:e});var t=this.options,n=t.yField,r=t.xField,o=t.isPercent,l=this.chart,c=this.options;a.meta({chart:l,options:c}),this.chart.changeData(i.getDataWhetherPecentage(e,n,r,n,o))},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return a.adaptor},t}(o.Plot);t.Column=c},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(68));t.default=function(e){return(0,o.default)(e,"String")}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(68));t.default=function(e){return(0,o.default)(e,"Number")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.distance=function(e,t,n,r){var o=e-n,i=t-r;return Math.sqrt(o*o+i*i)},t.getBBoxByArray=function(e,t){var n=(0,r.min)(e),o=(0,r.min)(t),i=(0,r.max)(e),a=(0,r.max)(t);return{x:n,y:o,width:i-n,height:a-o}},t.getBBoxRange=function(e,t,n,o){return{minX:(0,r.min)([e,n]),maxX:(0,r.max)([e,n]),minY:(0,r.min)([t,o]),maxY:(0,r.max)([t,o])}},t.isNumberEqual=function(e,t){return Math.abs(e-t)<.001},t.piMod=function(e){return(e+2*Math.PI)%(2*Math.PI)};var r=n(0)},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"catmullRom2Bezier",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"fillPath",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"fillPathByDiff",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"formatPath",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"getArcParams",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(t,"getLineIntersect",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(t,"isPointInPolygon",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(t,"isPolygonsIntersect",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(t,"parsePath",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"parsePathArray",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"parsePathString",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"path2Absolute",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(t,"path2Curve",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(t,"path2Segments",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(t,"pathIntersection",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"reactPath",{enumerable:!0,get:function(){return h.default}});var o=r(n(417)),i=r(n(805)),a=r(n(808)),l=r(n(809)),c=r(n(810)),s=r(n(811)),u=r(n(816)),d=r(n(421)),f=r(n(419)),p=r(n(420)),h=r(n(418)),g=r(n(422)),v=r(n(817)),m=r(n(423)),y=r(n(818)),b=r(n(424))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.applyMatrix2BBox=function(e,t){var n=l(e,[t.minX,t.minY]),r=l(e,[t.maxX,t.minY]),o=l(e,[t.minX,t.maxY]),i=l(e,[t.maxX,t.maxY]),a=Math.min(n[0],r[0],o[0],i[0]),c=Math.max(n[0],r[0],o[0],i[0]),s=Math.min(n[1],r[1],o[1],i[1]),u=Math.max(n[1],r[1],o[1],i[1]);return{x:a,y:s,minX:a,minY:s,maxX:c,maxY:u,width:c-a,height:u-s}},t.applyRotate=function(e,t,n,r){if(t){var o=i({x:n,y:r},t,e.getMatrix());e.setMatrix(o)}},t.applyTranslate=function(e,t,n){var r=a({x:t,y:n});e.attr("matrix",r)},t.getAngleByMatrix=function(e){var t=[0,0,0];return r.vec3.transformMat3(t,[1,0,0],e),Math.atan2(t[1],t[0])},t.getMatrixByAngle=i,t.getMatrixByTranslate=a;var r=n(32),o=[1,0,0,0,1,0,0,0,1];function i(e,t,n){return void 0===n&&(n=o),t?r.ext.transform(n,[["t",-e.x,-e.y],["r",t],["t",e.x,e.y]]):null}function a(e,t){return e.x||e.y?r.ext.transform(t||o,[["t",e.x,e.y]]):null}function l(e,t){var n=[0,0];return r.vec2.transformMat3(n,t,e),n}},function(e,t,n){"use strict";var r=n(2)(n(6));Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(425),a=n(250),l=n(0),c=n(96),s=(0,o.__importDefault)(n(262)),u=n(21),d=n(70),f=(0,o.__importDefault)(n(268)),p=n(270),h=n(27),g=n(950),v=n(452),m=n(951),y=n(453),b=n(48),x=function(e){function t(t){var n=e.call(this,t)||this;n.type="base",n.attributes={},n.elements=[],n.elementsMap={},n.animateOption=!0,n.attributeOption={},n.lastElementsMap={},n.generatePoints=!1,n.beforeMappingData=null,n.adjusts={},n.idFields=[],n.hasSorted=!1,n.isCoordinateChanged=!1;var r=t.container,o=t.labelsContainer,i=t.coordinate,a=t.data,l=t.sortable,c=void 0!==l&&l,s=t.visible,u=void 0===s||s,d=t.theme,f=t.scales,p=void 0===f?{}:f,h=t.scaleDefs,g=void 0===h?{}:h,v=t.intervalPadding,m=t.dodgePadding,y=t.maxColumnWidth,b=t.minColumnWidth,x=t.columnWidthRatio,w=t.roseWidthRatio,S=t.multiplePieWidthRatio,O=t.zIndexReversed;return n.container=r,n.labelsContainer=o,n.coordinate=i,n.data=a,n.sortable=c,n.visible=u,n.userTheme=d,n.scales=p,n.scaleDefs=g,n.intervalPadding=v,n.dodgePadding=m,n.maxColumnWidth=y,n.minColumnWidth=b,n.columnWidthRatio=x,n.roseWidthRatio=w,n.multiplePieWidthRatio=S,n.zIndexReversed=O,n}return(0,o.__extends)(t,e),t.prototype.position=function(e){var t=e;(0,l.isPlainObject)(e)||(t={fields:(0,m.parseFields)(e)});var n=(0,l.get)(t,"fields");return 1===n.length&&(n.unshift("1"),(0,l.set)(t,"fields",n)),(0,l.set)(this.attributeOption,"position",t),this},t.prototype.color=function(e,t){return this.createAttrOption("color",e,t),this},t.prototype.shape=function(e,t){return this.createAttrOption("shape",e,t),this},t.prototype.size=function(e,t){return this.createAttrOption("size",e,t),this},t.prototype.adjust=function(e){var t=e;return((0,l.isString)(e)||(0,l.isPlainObject)(e))&&(t=[e]),(0,l.each)(t,(function(e,n){(0,l.isObject)(e)||(t[n]={type:e})})),this.adjustOption=t,this},t.prototype.style=function(e,t){if((0,l.isString)(e)){var n=(0,m.parseFields)(e);this.styleOption={fields:n,callback:t}}else{var r=e,o=(n=r.fields,r.callback),i=r.cfg;this.styleOption=n||o||i?e:{cfg:e}}return this},t.prototype.tooltip=function(e,t){if((0,l.isString)(e)){var n=(0,m.parseFields)(e);this.tooltipOption={fields:n,callback:t}}else this.tooltipOption=e;return this},t.prototype.animate=function(e){return this.animateOption=e,this},t.prototype.label=function(e,t,n){if((0,l.isString)(e)){var r={},o=(0,m.parseFields)(e);r.fields=o,(0,l.isFunction)(t)?r.callback=t:(0,l.isPlainObject)(t)&&(r.cfg=t),n&&(r.cfg=n),this.labelOption=r}else this.labelOption=e;return this},t.prototype.state=function(e){return this.stateOption=e,this},t.prototype.customInfo=function(e){return this.customOption=e,this},t.prototype.init=function(e){void 0===e&&(e={}),this.setCfg(e),this.initAttributes(),this.processData(this.data),this.adjustScale()},t.prototype.update=function(e){void 0===e&&(e={});var t=e.data,n=e.isDataChanged,r=e.isCoordinateChanged,o=this.attributeOption,i=this.lastAttributeOption;(0,l.isEqual)(o,i)?!t||!n&&(0,l.isEqual)(t,this.data)?this.setCfg(e):(this.setCfg(e),this.initAttributes(),this.processData(t)):this.init(e),this.adjustScale(),this.isCoordinateChanged=r},t.prototype.paint=function(e){void 0===e&&(e=!1),this.animateOption&&(this.animateOption=(0,l.deepMix)({},(0,c.getDefaultAnimateCfg)(this.type,this.coordinate),this.animateOption)),this.defaultSize=void 0,this.elementsMap={},this.elements=[],this.getOffscreenGroup().clear();var t=this.beforeMappingData,n=this.beforeMapping(t);this.dataArray=new Array(n.length);for(var r=0;r<n.length;r++){var i=n[r];this.dataArray[r]=this.mapping(i)}if(this.updateElements(this.dataArray,e),this.lastElementsMap=this.elementsMap,this.canDoGroupAnimation(e)){var a=this.container,s=this.type,u=this.coordinate,d=(0,l.get)(this.animateOption,"appear"),f=this.getYScale(),p=u.convert({x:0,y:f.scale(this.getYMinValue())});(0,c.doGroupAppearAnimate)(a,d,s,u,p)}this.labelOption&&this.renderLabels((0,l.flatten)(this.dataArray),e),this.lastAttributeOption=(0,o.__assign)({},this.attributeOption),!1===this.visible&&this.changeVisible(!1)},t.prototype.clear=function(){var e=this,t=e.container,n=e.geometryLabel,r=e.offscreenGroup;t&&t.clear(),n&&n.clear(),r&&r.clear(),this.scaleDefs=void 0,this.attributes={},this.scales={},this.elementsMap={},this.lastElementsMap={},this.elements=[],this.adjusts={},this.dataArray=null,this.beforeMappingData=null,this.lastAttributeOption=void 0,this.defaultSize=void 0,this.idFields=[],this.groupScales=void 0,this.hasSorted=!1,this.isCoordinateChanged=!1},t.prototype.destroy=function(){this.clear(),this.container.remove(!0),this.offscreenGroup&&(this.offscreenGroup.remove(!0),this.offscreenGroup=null),this.geometryLabel&&(this.geometryLabel.destroy(),this.geometryLabel=null),this.theme=void 0,this.shapeFactory=void 0,e.prototype.destroy.call(this)},t.prototype.getGroupScales=function(){return this.groupScales},t.prototype.getAttribute=function(e){return this.attributes[e]},t.prototype.getXScale=function(){return this.getAttribute("position").scales[0]},t.prototype.getYScale=function(){return this.getAttribute("position").scales[1]},t.prototype.getGroupAttributes=function(){var e=[];return(0,l.each)(this.attributes,(function(t){u.GROUP_ATTRS.includes(t.type)&&e.push(t)})),e},t.prototype.getDefaultValue=function(e){var t,n=this.getAttribute(e);return n&&(0,l.isEmpty)(n.scales)&&(t=n.values[0]),t},t.prototype.getAttributeValues=function(e,t){for(var n=[],r=e.scales,o=0,i=r.length;o<i;o++){var a=r[o],l=a.field;a.isIdentity?n.push(a.values):n.push(t[l])}return e.mapping.apply(e,n)},t.prototype.getAdjust=function(e){return this.adjusts[e]},t.prototype.getCoordinate=function(){return this.coordinate},t.prototype.getData=function(){return this.data},t.prototype.getShapeMarker=function(e,t){return this.getShapeFactory().getMarker(e,t)},t.prototype.getElementsBy=function(e){return this.elements.filter((function(t){return e(t)}))},t.prototype.getElements=function(){return this.elements},t.prototype.getElementId=function(e){var t=(e=(0,l.isArray)(e)?e[0]:e)[u.FIELD_ORIGIN];if(this.idFields.length){for(var n=t[this.idFields[0]],r=1;r<this.idFields.length;r++)n+="-"+t[this.idFields[r]];return n}var o,i,a=this.type,c=this.getXScale(),s=this.getYScale(),d=c.field||"x",f=t[s.field||"y"];o="identity"===c.type?c.values[0]:t[d],i="interval"===a||"schema"===a?""+o:"line"===a||"area"===a||"path"===a?a:o+"-"+f;var p=this.groupScales;(0,l.isEmpty)(p)&&(p=(0,l.get)(this.getAttribute("color"),"scales",[])),r=0;for(var h=p.length;r<h;r++)i=i+"-"+t[p[r].field];var g=this.getAdjust("dodge");if(g){var v=g.dodgeBy;v&&(i=i+"-"+t[v])}return this.getAdjust("jitter")&&(i=i+"-"+e.x+"-"+e.y),i},t.prototype.getScaleFields=function(){var e=[],t=new Map,n=this,r=n.attributeOption,o=n.labelOption,i=n.tooltipOption;for(var a in r)if(r.hasOwnProperty(a)){var c=r[a];c.fields?(0,d.uniq)(c.fields,e,t):c.values&&(0,d.uniq)(c.values,e,t)}return o&&o.fields&&(0,d.uniq)(o.fields,e,t),(0,l.isObject)(i)&&i.fields&&(0,d.uniq)(i.fields,e,t),e},t.prototype.changeVisible=function(t){e.prototype.changeVisible.call(this,t);for(var n=this.elements,r=0,o=n.length;r<o;r++)n[r].changeVisible(t);t?(this.container&&this.container.show(),this.labelsContainer&&this.labelsContainer.show()):(this.container&&this.container.hide(),this.labelsContainer&&this.labelsContainer.hide())},t.prototype.getFields=function(){var e=new Map,t=[];return Object.values(this.attributeOption).forEach((function(n){((null===n||void 0===n?void 0:n.fields)||[]).forEach((function(n){e.has(n)||t.push(n),e.set(n,!0)}))}),[]),t},t.prototype.getGroupFields=function(){for(var e=[],t=new Map,n=0,r=u.GROUP_ATTRS.length;n<r;n++){var o=u.GROUP_ATTRS[n],i=this.attributeOption[o];i&&i.fields&&(0,d.uniq)(i.fields,e,t)}return e},t.prototype.getXYFields=function(){var e=this.attributeOption.position.fields;return[e[0],e[1]]},t.prototype.getXField=function(){return(0,l.get)(this.getXYFields(),[0])},t.prototype.getYField=function(){return(0,l.get)(this.getXYFields(),[1])},t.prototype.getShapes=function(){return this.elements.map((function(e){return e.shape}))},t.prototype.getOffscreenGroup=function(){if(!this.offscreenGroup){var e=this.container.getGroupBase();this.offscreenGroup=new e({})}return this.offscreenGroup},t.prototype.sort=function(e){if(!this.hasSorted)for(var t=this.getXScale(),n=t.field,r=0;r<e.length;r++)e[r].sort((function(e,r){return t.translate(e[u.FIELD_ORIGIN][n])-t.translate(r[u.FIELD_ORIGIN][n])}));this.hasSorted=!0},t.prototype.adjustScale=function(){var e=this.getYScale();e&&this.getAdjust("stack")&&this.updateStackRange(e,this.beforeMappingData)},t.prototype.getShapeFactory=function(){var e=this.shapeType;if((0,h.getShapeFactory)(e))return this.shapeFactory||(this.shapeFactory=(0,l.clone)((0,h.getShapeFactory)(e))),this.shapeFactory.coordinate=this.coordinate,this.shapeFactory.theme=this.theme.geometries[e]||{},this.shapeFactory},t.prototype.createShapePointsCfg=function(e){var t=this.getXScale(),n=this.getYScale();return{x:this.normalizeValues(e[t.field],t),y:n?this.normalizeValues(e[n.field],n):e.y?e.y:.1,y0:n?n.scale(this.getYMinValue()):void 0}},t.prototype.createElement=function(e,t,n){void 0===n&&(n=!1);var r=this.container,o=this.getDrawCfg(e),i=this.getShapeFactory(),a=new f.default({shapeFactory:i,container:r,offscreenGroup:this.getOffscreenGroup(),elementIndex:t});return a.animate=this.animateOption,a.geometry=this,a.draw(o,n),a},t.prototype.getDrawCfg=function(e){var t=e[u.FIELD_ORIGIN],n={mappingData:e,data:t,x:e.x,y:e.y,color:e.color,size:e.size,isInCircle:this.coordinate.isPolar,customInfo:this.customOption},r=e.shape;!r&&this.getShapeFactory()&&(r=this.getShapeFactory().defaultShapeType),n.shape=r;var o=this.theme.geometries[this.shapeType];n.defaultStyle=(0,l.get)(o,[r,"default"],{}).style,!n.defaultStyle&&this.getShapeFactory()&&(n.defaultStyle=this.getShapeFactory().getDefaultStyle(o));var i=this.styleOption;return i&&(n.style=this.getStyleCfg(i,t)),this.generatePoints&&(n.points=e.points,n.nextPoints=e.nextPoints),n},t.prototype.updateElements=function(e,t){void 0===t&&(t=!1);for(var n=new Map,r=[],o=new Map,i=0,a=0;a<e.length;a++)for(var l=e[a],c=0;c<l.length;c++){var s=l[c],u=this.getElementId(s),d=n.has(u)?u+"-"+a+"-"+c:u;r.push(d),n.set(d,s),o.set(d,i),i++}this.elements=new Array(i);for(var f=(0,y.diff)(this.lastElementsMap,r),p=f.added,h=f.updated,g=f.removed,m=0,b=p;m<b.length;m++){u=b[m],s=n.get(u),a=o.get(u);var x=this.createElement(s,a,t);this.elements[a]=x,this.elementsMap[u]=x,x.shape&&x.shape.setZIndex(this.zIndexReversed?this.elements.length-a:a)}for(var w=0,S=h;w<S.length;w++){u=S[w],x=this.lastElementsMap[u],s=n.get(u);var O=this.getDrawCfg(s),_=x.getModel();a=o.get(u),(this.isCoordinateChanged||(0,v.isModelChange)(O,_))&&(x.animate=this.animateOption,x.update(O)),this.elements[a]=x,this.elementsMap[u]=x,x.shape&&x.shape.setZIndex(this.zIndexReversed?this.elements.length-a:a)}for(var C=0,E=g;C<E.length;C++)u=E[C],(x=this.lastElementsMap[u]).animate=this.animateOption,x.destroy()},t.prototype.getLabelType=function(){var e=this,t=e.labelOption,n=e.coordinate,r=e.type,o=n.type,i=n.isTransposed,a=(0,l.get)(t,["cfg","type"]);return a||(a="polar"===o?i?"pie":"polar":"theta"===o?"pie":"interval"===r||"polygon"===r?"interval":"base"),a},t.prototype.getYMinValue=function(){var e=this.getYScale(),t=e.min,n=e.max;return t>=0?t:n<=0?n:0},t.prototype.createAttrOption=function(e,t,n){if((0,l.isNil)(t)||(0,l.isObject)(t))(0,l.isObject)(t)&&(0,l.isEqual)(Object.keys(t),["values"])?(0,l.set)(this.attributeOption,e,{fields:t.values}):(0,l.set)(this.attributeOption,e,t);else{var r={};(0,l.isNumber)(t)?r.values=[t]:r.fields=(0,m.parseFields)(t),n&&((0,l.isFunction)(n)?r.callback=n:r.values=n),(0,l.set)(this.attributeOption,e,r)}},t.prototype.initAttributes=function(){var e=this,t=this,n=t.attributes,i=t.attributeOption,l=t.theme,c=t.shapeType;this.groupScales=[];var s={},d=function(t){if(i.hasOwnProperty(t)){var r=i[t];if(!r)return{value:void 0};var d=(0,o.__assign)({},r),f=d.callback,p=d.values,h=d.fields,g=(void 0===h?[]:h).map((function(n){var r=e.scales[n];return r.isCategory&&!s[n]&&u.GROUP_ATTRS.includes(t)&&(e.groupScales.push(r),s[n]=!0),r}));d.scales=g,"position"!==t&&1===g.length&&"identity"===g[0].type?d.values=g[0].values:f||p||("size"===t?d.values=l.sizes:"shape"===t?d.values=l.shapes[c]||[]:"color"===t&&(g.length?d.values=g[0].values.length<=10?l.colors10:l.colors20:d.values=l.colors10));var v=(0,a.getAttribute)(t);n[t]=new v(d)}};for(var f in i){var p=d(f);if("object"===(0,r.default)(p))return p.value}},t.prototype.processData=function(e){this.hasSorted=!1;for(var t=this.getAttribute("position").scales.filter((function(e){return e.isCategory})),n=this.groupData(e),r=[],o=0,i=n.length;o<i;o++){for(var a=n[o],l=[],c=0,s=a.length;c<s;c++){var d=a[c],f={};for(var p in d)f[p]=d[p];f[u.FIELD_ORIGIN]=d;for(var h=0,g=t;h<g.length;h++){var v=g[h],m=v.field;f[m]=v.translate(f[m])}l.push(f)}r.push(l)}var y=this.adjustData(r);return this.beforeMappingData=y,y},t.prototype.adjustData=function(e){var t=this.adjustOption,n=this,r=n.intervalPadding,a=n.dodgePadding,c=n.theme,s=this.maxColumnWidth||c.maxColumnWidth,u=this.minColumnWidth||c.minColumnWidth,d=this.columnWidthRatio||c.columnWidthRatio,f=e;if(t){var p=this.getXScale(),h=this.getYScale(),g=p.field,v=h?h.field:null,m=(0,b.getXDimensionLength)(this.coordinate),y=p.values.length,x=this.getAttribute("size"),w=void 0;x&&(w=x.values[0]);for(var S=0,O=t.length;S<O;S++){var _=t[S],C=(0,o.__assign)({xField:g,yField:v,intervalPadding:r,dodgePadding:a,xDimensionLength:m,groupNum:y,defaultSize:w,maxColumnWidth:s,minColumnWidth:u,columnWidthRatio:d},_),E=_.type;if("dodge"===E){var P=[];if(p.isCategory||"identity"===p.type)P.push("x");else{if(h)throw new Error("dodge is not support linear attribute, please use category attribute!");P.push("y")}C.adjustNames=P,C.dodgeRatio=d}else if("stack"===E){var M=this.coordinate;if(!h){C.height=M.getHeight();var k=this.getDefaultValue("size")||3;C.size=k}!M.isTransposed&&(0,l.isNil)(C.reverseOrder)&&(C.reverseOrder=!0)}var A=new((0,i.getAdjust)(E))(C);f=A.process(f),this.adjusts[E]=A}}return f},t.prototype.groupData=function(e){for(var t=this.getGroupScales(),n=this.scaleDefs,r={},o=[],i=0;i<t.length;i++){var a=t[i].field;o.push(a),(0,l.get)(n,[a,"values"])&&(r[a]=n[a].values)}return(0,g.group)(e,o,r)},t.prototype.updateStackRange=function(e,t){for(var n=(0,l.flatten)(t),r=e.field,o=e.min,i=e.max,a=0;a<n.length;a++){var c=n[a],s=Math.min.apply(null,c[r]),u=Math.max.apply(null,c[r]);s<o&&(o=s),u>i&&(i=u)}var d=this.scaleDefs,f={};o<e.min&&!(0,l.get)(d,[r,"min"])&&(f.min=o),i>e.max&&!(0,l.get)(d,[r,"max"])&&(f.max=i),e.change(f)},t.prototype.beforeMapping=function(e){var t=e;if(this.sortable&&this.sort(t),this.generatePoints)for(var n=0,r=t.length;n<r;n++){var o=t[n];this.generateShapePoints(o);var i=t[n+1];i&&(this.generateShapePoints(i),o[0].nextPoints=i[0].points)}return t},t.prototype.generateShapePoints=function(e){for(var t=this.getShapeFactory(),n=this.getAttribute("shape"),r=0;r<e.length;r++){var o=e[r],i=this.createShapePointsCfg(o),a=n?this.getAttributeValues(n,o):null,l=t.getShapePoints(a,i);o.points=l}},t.prototype.normalizeValues=function(e,t){var n=[];if((0,l.isArray)(e))for(var r=0;r<e.length;r++){var o=e[r];n.push(t.scale(o))}else n=t.scale(e);return n},t.prototype.mapping=function(e){for(var t=this.attributes,n=[],r=0;r<e.length;r++){var o=e[r],i={_origin:o[u.FIELD_ORIGIN],points:o.points,nextPoints:o.nextPoints};for(var a in t)if(t.hasOwnProperty(a)){var c=t[a],s=c.names,d=this.getAttributeValues(c,o);if(s.length>1)for(var f=0;f<d.length;f+=1){var p=d[f];i[s[f]]=(0,l.isArray)(p)&&1===p.length?p[0]:p}else i[s[0]]=1===d.length?d[0]:d}this.convertPoint(i),n.push(i)}return n},t.prototype.convertPoint=function(e){var t,n,r,o=e.x,i=e.y,a=this.coordinate;if((0,l.isArray)(o)&&(0,l.isArray)(i)){t=[],n=[];for(var c=0,s=0,u=o.length,d=i.length;c<u&&s<d;c+=1,s+=1)r=a.convert({x:o[c],y:i[s]}),t.push(r.x),n.push(r.y)}else if((0,l.isArray)(i)){n=[];for(var f=0;f<i.length;f++){var p=i[f];r=a.convert({x:o,y:p}),t&&t!==r.x?((0,l.isArray)(t)||(t=[t]),t.push(r.x)):t=r.x,n.push(r.y)}}else if((0,l.isArray)(o))for(t=[],f=0;f<o.length;f++){var h=o[f];r=a.convert({x:h,y:i}),n&&n!==r.y?((0,l.isArray)(n)||(n=[n]),n.push(r.y)):n=r.y,t.push(r.x)}else{var g=a.convert({x:o,y:i});t=g.x,n=g.y}e.x=t,e.y=n},t.prototype.getStyleCfg=function(e,t){var n=e.fields,r=void 0===n?[]:n,o=e.callback,i=e.cfg;if(i)return i;var a=r.map((function(e){return t[e]}));return o.apply(void 0,a)},t.prototype.setCfg=function(e){var t=this,n=e.coordinate,r=e.data,o=e.theme,i=e.scaleDefs;n&&(this.coordinate=n),r&&(this.data=r),i&&(this.scaleDefs=i,this.idFields=[],(0,l.each)(i,(function(e,n){e&&e.key&&t.idFields.push(n)}))),o&&(this.theme=this.userTheme?(0,l.deepMix)({},o,this.userTheme):o)},t.prototype.renderLabels=function(e,t){void 0===t&&(t=!1);var n=this.geometryLabel;if(!n){var r=this.getLabelType();n=new((0,p.getGeometryLabel)(r))(this),this.geometryLabel=n}n.render(e,t);var o=n.labelsRenderer.shapesMap;(0,l.each)(this.elementsMap,(function(e,t){var n=function(e,t){var n=[];return(0,l.each)(t,(function(t,r){r.split(" ")[0]===e&&n.push(t)})),n}(t,o);if(n.length){e.labelShape=n;for(var r=0;r<n.length;r++)for(var i=n[r].getChildren(),a=0;a<i.length;a++){var c=i[a];c.cfg.name=["element","label"],c.cfg.element=e}}}))},t.prototype.canDoGroupAnimation=function(e){return!e&&this.animateOption&&(void 0===(0,l.get)(this.animateOption,"appear")||(0,l.get)(this.animateOption,"appear")&&void 0===(0,l.get)(this.animateOption,["appear","animation"]))},t}(s.default);t.default=x},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.registerTheme=t.getTheme=void 0;var r=n(0),o=n(449),i={default:(0,o.createTheme)({})};t.getTheme=function(e){return(0,r.get)(i,(0,r.lowerCase)(e),i.default)},t.registerTheme=function(e,t){i[(0,r.lowerCase)(e)]=(0,o.createTheme)(t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={};t.default=function(e){return r[e=e||"g"]?r[e]+=1:r[e]=1,e+r[e]}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=["children","hooks","ref"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(e){return null===e||void 0===e}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addEventListener",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"createDom",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"getHeight",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"getOuterHeight",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"getOuterWidth",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"getRatio",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"getStyle",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"getWidth",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"modifyCSS",{enumerable:!0,get:function(){return f.default}});var o=r(n(741)),i=r(n(742)),a=r(n(390)),l=r(n(743)),c=r(n(744)),s=r(n(745)),u=r(n(139)),d=r(n(391)),f=r(n(746))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.doGroupAppearAnimate=t.doAnimate=t.getDefaultAnimateCfg=t.DEFAULT_ANIMATE_CFG=void 0;var r=n(1),o=n(0),i=n(21),a=n(439);t.DEFAULT_ANIMATE_CFG={appear:{duration:450,easing:"easeQuadOut"},update:{duration:400,easing:"easeQuadInOut"},enter:{duration:400,easing:"easeQuadInOut"},leave:{duration:350,easing:"easeQuadIn"}};var l={interval:function(e){return{enter:{animation:e.isRect?e.isTransposed?"scale-in-x":"scale-in-y":"fade-in"},update:{animation:e.isPolar&&e.isTransposed?"sector-path-update":null},leave:{animation:"fade-out"}}},line:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},path:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},point:{appear:{animation:"zoom-in"},enter:{animation:"zoom-in"},leave:{animation:"zoom-out"}},area:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},polygon:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},schema:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},edge:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},label:{appear:{animation:"fade-in",delay:450},enter:{animation:"fade-in"},update:{animation:"position-update"},leave:{animation:"fade-out"}}},c={line:function(){return{animation:"wave-in"}},area:function(){return{animation:"wave-in"}},path:function(){return{animation:"fade-in"}},interval:function(e){var t;return e.isRect?t=e.isTransposed?"grow-in-x":"grow-in-y":(t="grow-in-xy",e.isPolar&&e.isTransposed&&(t="wave-in")),{animation:t}},schema:function(e){return{animation:e.isRect?e.isTransposed?"grow-in-x":"grow-in-y":"grow-in-xy"}},polygon:function(){return{animation:"fade-in",duration:500}},edge:function(){return{animation:"fade-in"}}};t.getDefaultAnimateCfg=function(e,n,r){var i=l[e];return i&&((0,o.isFunction)(i)&&(i=i(n)),i=(0,o.deepMix)({},t.DEFAULT_ANIMATE_CFG,i),r)?i[r]:i},t.doAnimate=function(e,t,n){var r=(0,o.get)(e.get("origin"),"data",i.FIELD_ORIGIN),l=t.animation,c=function(e,t){return{delay:(0,o.isFunction)(e.delay)?e.delay(t):e.delay,easing:(0,o.isFunction)(e.easing)?e.easing(t):e.easing,duration:(0,o.isFunction)(e.duration)?e.duration(t):e.duration,callback:e.callback,repeat:e.repeat}}(t,r);if(l){var s=(0,a.getAnimation)(l);s&&s(e,c,n)}else e.animate(n.toAttrs,c)},t.doGroupAppearAnimate=function(e,n,i,l,s){if(c[i]){var u=c[i](l),d=(0,a.getAnimation)((0,o.get)(u,"animation",""));if(d){var f=(0,r.__assign)((0,r.__assign)((0,r.__assign)({},t.DEFAULT_ANIMATE_CFG.appear),u),n);e.stopAnimate(),d(e,f,{coordinate:l,minYPoint:s,toAttrs:null})}}}},function(e,t,n){"use strict";var r=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.registerComponentController=t.Event=t.registerGeometry=t.View=t.Chart=void 0;var o=n(940);Object.defineProperty(t,"Chart",{enumerable:!0,get:function(){return r(o).default}});var i=n(447);Object.defineProperty(t,"View",{enumerable:!0,get:function(){return r(i).default}}),Object.defineProperty(t,"registerGeometry",{enumerable:!0,get:function(){return i.registerGeometry}});var a=n(267);Object.defineProperty(t,"Event",{enumerable:!0,get:function(){return r(a).default}});var l=n(450);Object.defineProperty(t,"registerComponentController",{enumerable:!0,get:function(){return l.registerComponentController}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AXIS_META_CONFIG_KEYS=void 0,t.AXIS_META_CONFIG_KEYS=["type","alias","tickCount","tickInterval","min","max","nice","minLimit","maxLimit","range","tickMethod","base","exponent","mask","sync"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(0),i=n(21),a=n(96),l=n(46),c=(0,r.__importDefault)(n(952));function s(e){var t=0;return(0,o.each)(e,(function(e){t+=e})),t/e.length}var u=function(){function e(e){this.geometry=e}return e.prototype.getLabelItems=function(e){var t=this,n=[],i=this.getLabelCfgs(e);return(0,o.each)(e,(function(e,a){var l=i[a];if(!l||(0,o.isNil)(e.x)||(0,o.isNil)(e.y))n.push(null);else{var c=(0,o.isArray)(l.content)?l.content:[l.content];l.content=c;var s=c.length;(0,o.each)(c,(function(i,a){if((0,o.isNil)(i)||""===i)n.push(null);else{var c=(0,r.__assign)((0,r.__assign)({},l),t.getLabelPoint(l,e,a));c.textAlign||(c.textAlign=t.getLabelAlign(c,a,s)),c.offset<=0&&(c.labelLine=null),n.push(c)}}))}})),n},e.prototype.render=function(e,t){void 0===t&&(t=!1);var n=this.getLabelItems(e),r=this.getLabelsRenderer(),o=this.getGeometryShapes();r.render(n,o,t)},e.prototype.clear=function(){var e=this.labelsRenderer;e&&e.clear()},e.prototype.destroy=function(){var e=this.labelsRenderer;e&&e.destroy(),this.labelsRenderer=null},e.prototype.getCoordinate=function(){return this.geometry.coordinate},e.prototype.getDefaultLabelCfg=function(e,t){var n=this.geometry,r=n.type,i=n.theme;return"polygon"===r||"interval"===r&&"middle"===t||e<0&&!["line","point","path"].includes(r)?(0,o.get)(i,"innerLabels",{}):(0,o.get)(i,"labels",{})},e.prototype.getThemedLabelCfg=function(e){var t=this.geometry,n=this.getDefaultLabelCfg(),r=t.type,i=t.theme;return"polygon"===r||e.offset<0&&!["line","point","path"].includes(r)?(0,o.deepMix)({},n,i.innerLabels,e):(0,o.deepMix)({},n,i.labels,e)},e.prototype.setLabelPosition=function(e,t,n,r){},e.prototype.getLabelOffset=function(e){var t=this.getCoordinate(),n=this.getOffsetVector(e);return t.isTransposed?n[0]:n[1]},e.prototype.getLabelOffsetPoint=function(e,t,n){var r=e.offset,o=this.getCoordinate().isTransposed,i=o?"x":"y",a=o?1:-1,l={x:0,y:0};return l[i]=t>0||1===n?r*a:r*a*-1,l},e.prototype.getLabelPoint=function(e,t,n){var r=this.getCoordinate(),i=e.content.length;function a(t,n,r){void 0===r&&(r=!1);var i=t;return(0,o.isArray)(i)&&(i=1===e.content.length?r?s(i):i.length<=2?i[t.length-1]:s(i):i[n]),i}var c={content:e.content[n],x:0,y:0,start:{x:0,y:0},color:"#fff"},u=(0,o.isArray)(t.shape)?t.shape[0]:t.shape,d="funnel"===u||"pyramid"===u;if("polygon"===this.geometry.type){var f=(0,l.getPolygonCentroid)(t.x,t.y);c.x=f[0],c.y=f[1]}else"interval"!==this.geometry.type||d?(c.x=a(t.x,n),c.y=a(t.y,n)):(c.x=a(t.x,n,!0),c.y=a(t.y,n));if(d){var p=(0,o.get)(t,"nextPoints"),h=(0,o.get)(t,"points");if(p){var g=r.convert(h[1]),v=r.convert(p[1]);c.x=(g.x+v.x)/2,c.y=(g.y+v.y)/2}else"pyramid"===u&&(g=r.convert(h[1]),v=r.convert(h[2]),c.x=(g.x+v.x)/2,c.y=(g.y+v.y)/2)}e.position&&this.setLabelPosition(c,t,n,e.position);var m=this.getLabelOffsetPoint(e,n,i);return c.start={x:c.x,y:c.y},c.x+=m.x,c.y+=m.y,c.color=t.color,c},e.prototype.getLabelAlign=function(e,t,n){var r="center";if(this.getCoordinate().isTransposed){var o=e.offset;r=o<0?"right":0===o?"center":"left",n>1&&0===t&&("right"===r?r="left":"left"===r&&(r="right"))}return r},e.prototype.getLabelId=function(e){var t=this.geometry,n=t.type,r=t.getXScale(),o=t.getYScale(),a=e[i.FIELD_ORIGIN],l=t.getElementId(e);return"line"===n||"area"===n?l+=" "+a[r.field]:"path"===n&&(l+=" "+a[r.field]+"-"+a[o.field]),l},e.prototype.getLabelsRenderer=function(){var e=this.geometry,t=e.labelsContainer,n=e.labelOption,r=e.canvasRegion,i=e.animateOption,l=this.geometry.coordinate,s=this.labelsRenderer;return s||(s=new c.default({container:t,layout:(0,o.get)(n,["cfg","layout"],{type:this.defaultLayout})}),this.labelsRenderer=s),s.region=r,s.animate=!!i&&(0,a.getDefaultAnimateCfg)("label",l),s},e.prototype.getLabelCfgs=function(e){var t=this,n=this.geometry,a=n.labelOption,l=n.scales,c=n.coordinate,s=a,u=s.fields,d=s.callback,f=s.cfg,p=u.map((function(e){return l[e]})),h=[];return(0,o.each)(e,(function(e,n){var a,l=e[i.FIELD_ORIGIN],s=t.getLabelText(l,p);if(d){var g=u.map((function(e){return l[e]}));if(a=d.apply(void 0,g),(0,o.isNil)(a))return void h.push(null)}var v=(0,r.__assign)((0,r.__assign)({id:t.getLabelId(e),elementId:t.geometry.getElementId(e),data:l,mappingData:e,coordinate:c},f),a);(0,o.isFunction)(v.position)&&(v.position=v.position(l,e,n));var m=t.getLabelOffset(v.offset||0),y=t.getDefaultLabelCfg(m,v.position);(v=(0,o.deepMix)({},y,v)).offset=t.getLabelOffset(v.offset||0);var b=v.content;(0,o.isFunction)(b)?v.content=b(l,e,n):(0,o.isUndefined)(b)&&(v.content=s[0]),h.push(v)})),h},e.prototype.getLabelText=function(e,t){var n=[];return(0,o.each)(t,(function(t){var r=e[t.field];r=(0,o.isArray)(r)?r.map((function(e){return t.getText(e)})):t.getText(r),(0,o.isNil)(r)||""===r?n.push(null):n.push(r)})),n},e.prototype.getOffsetVector=function(e){void 0===e&&(e=0);var t=this.getCoordinate(),n=0;return(0,o.isNumber)(e)&&(n=e),t.isTransposed?t.applyMatrix(n,0):t.applyMatrix(0,n)},e.prototype.getGeometryShapes=function(){var e=this.geometry,t={};return(0,o.each)(e.elementsMap,(function(e,n){t[n]=e.shape})),(0,o.each)(e.getOffscreenGroup().getChildren(),(function(n){var r=e.getElementId(n.get("origin").mappingData);t[r]=n})),t},e}();t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getConstraint=t.getShapeAttrs=void 0;var r=n(0),o=n(114),i=n(33),a=n(111);function l(e,t,n,o,i){var l=[];if(e.length){for(var c=[],s=[],u=0,d=e.length;u<d;u++){var f=e[u];c.push(f[1]),s.push(f[0])}s=s.reverse(),(0,r.each)([c,s],(function(e,r){var u=[],d=o.parsePoints(e),f=d[0];1===c.length&&1===s.length?u=0===r?[["M",f.x-.5,f.y],["L",f.x+.5,f.y]]:[["L",f.x+.5,f.y],["L",f.x-.5,f.y]]:(t&&d.push({x:f.x,y:f.y}),u=n?(0,a.getSplinePath)(d,!1,i):(0,a.getLinePath)(d,!1),r>0&&(u[0][0]="L")),l=l.concat(u)})),l.push(["Z"])}return l}t.getShapeAttrs=function(e,t,n,r,a){for(var c=(0,i.getStyle)(e,t,!t,"lineWidth"),s=e.connectNulls,u=e.isInCircle,d=e.points,f=e.showSinglePoint,p=(0,o.getPathPoints)(d,s,f),h=[],g=0,v=p.length;g<v;g++){var m=p[g];h=h.concat(l(m,u,n,r,a))}return c.path=h,c},t.getConstraint=function(e){var t=e.start,n=e.end;return[[t.x,n.y],[n.x,t.y]]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"each",{enumerable:!0,get:function(){return r.each}}),t.isAllowCapture=function(e){return e.cfg.visible&&e.cfg.capture},Object.defineProperty(t,"isArray",{enumerable:!0,get:function(){return r.isArray}}),t.isBrowser=void 0,Object.defineProperty(t,"isFunction",{enumerable:!0,get:function(){return r.isFunction}}),Object.defineProperty(t,"isNil",{enumerable:!0,get:function(){return r.isNil}}),Object.defineProperty(t,"isObject",{enumerable:!0,get:function(){return r.isObject}}),t.isParent=function(e,t){if(e.isCanvas())return!0;for(var n=t.getParent(),r=!1;n;){if(n===e){r=!0;break}n=n.getParent()}return r},Object.defineProperty(t,"isString",{enumerable:!0,get:function(){return r.isString}}),Object.defineProperty(t,"mix",{enumerable:!0,get:function(){return r.mix}}),t.removeFromArray=function(e,t){var n=e.indexOf(t);-1!==n&&e.splice(n,1)},Object.defineProperty(t,"upperFirst",{enumerable:!0,get:function(){return r.upperFirst}});var r=n(0);t.isBrowser="undefined"!==typeof window&&"undefined"!==typeof window.document},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(0),o=function(e,t){return(0,r.isString)(t)?t:e.invert(e.scale(t))},i=function(){function e(e){this.names=[],this.scales=[],this.linear=!1,this.values=[],this.callback=function(){return[]},this._parseCfg(e)}return e.prototype.mapping=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=t.map((function(t,n){return e._toOriginParam(t,e.scales[n])}));return this.callback.apply(this,r)},e.prototype.getLinearValue=function(e){var t=this.values.length-1,n=Math.floor(t*e),r=t*e-n,o=this.values[n];return o+((n===t?o:this.values[n+1])-o)*r},e.prototype.getNames=function(){for(var e=this.scales,t=this.names,n=Math.min(e.length,t.length),r=[],o=0;o<n;o+=1)r.push(t[o]);return r},e.prototype.getFields=function(){return this.scales.map((function(e){return e.field}))},e.prototype.getScale=function(e){return this.scales[this.names.indexOf(e)]},e.prototype.defaultCallback=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return 0===t.length?this.values:t.map((function(t,n){var r=e.scales[n];return"identity"===r.type?r.values[0]:e._getAttributeValue(r,t)}))},e.prototype._parseCfg=function(e){var t=this,n=e.type,o=void 0===n?"base":n,i=e.names,a=void 0===i?[]:i,l=e.scales,c=void 0===l?[]:l,s=e.values,u=void 0===s?[]:s,d=e.callback;this.type=o,this.scales=c,this.values=u,this.names=a,this.callback=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(d){var o=d.apply(void 0,e);if(!(0,r.isNil)(o))return[o]}return t.defaultCallback.apply(t,e)}},e.prototype._getAttributeValue=function(e,t){if(e.isCategory&&!this.linear){var n=e.translate(t);return this.values[n%this.values.length]}var r=e.scale(t);return this.getLinearValue(r)},e.prototype._toOriginParam=function(e,t){return t.isLinear?e:(0,r.isArray)(e)?e.map((function(e){return o(t,e)})):o(t,e)},e}();t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Controller=void 0;var r=n(0),o=function(){function e(e){this.visible=!0,this.components=[],this.view=e}return e.prototype.clear=function(e){(0,r.each)(this.components,(function(e){e.component.destroy()})),this.components=[]},e.prototype.destroy=function(){this.clear()},e.prototype.getComponents=function(){return this.components},e.prototype.changeVisible=function(e){this.visible!==e&&(this.components.forEach((function(t){e?t.component.show():t.component.hide()})),this.visible=e)},e}();t.Controller=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Facet=void 0;var r=n(0),o=n(21),i=n(264),a=function(){function e(e,t){this.destroyed=!1,this.facets=[],this.view=e,this.cfg=(0,r.deepMix)({},this.getDefaultCfg(),t)}return e.prototype.init=function(){this.container||(this.container=this.createContainer());var e=this.view.getData();this.facets=this.generateFacets(e)},e.prototype.render=function(){this.renderViews()},e.prototype.update=function(){},e.prototype.clear=function(){this.clearFacetViews()},e.prototype.destroy=function(){this.clear(),this.container&&(this.container.remove(!0),this.container=void 0),this.destroyed=!0,this.view=void 0,this.facets=[]},e.prototype.facetToView=function(e){var t=e.region,n=e.data,r=e.padding,o=void 0===r?this.cfg.padding:r,i=this.view.createView({region:t,padding:o});i.data(n||[]),e.view=i,this.beforeEachView(i,e);var a=this.cfg.eachView;return a&&a(i,e),this.afterEachView(i,e),i},e.prototype.createContainer=function(){return this.view.getLayer(o.LAYER.FORE).addGroup()},e.prototype.renderViews=function(){this.createFacetViews()},e.prototype.createFacetViews=function(){var e=this;return this.facets.map((function(t){return e.facetToView(t)}))},e.prototype.clearFacetViews=function(){var e=this;(0,r.each)(this.facets,(function(t){t.view&&(e.view.removeView(t.view),t.view=void 0)}))},e.prototype.parseSpacing=function(){var e=this.view.viewBBox,t=e.width,n=e.height;return this.cfg.spacing.map((function(e,o){return(0,r.isNumber)(e)?e/(0===o?t:n):parseFloat(e)/100}))},e.prototype.getFieldValues=function(e,t){var n=[],o={};return(0,r.each)(e,(function(e){var i=e[t];(0,r.isNil)(i)||o[i]||(n.push(i),o[i]=!0)})),n},e.prototype.getRegion=function(e,t,n,r){var o=this.parseSpacing(),i=o[0],a=o[1],l=(1+i)/(0===t?1:t)-i,c=(1+a)/(0===e?1:e)-a,s={x:(l+i)*n,y:(c+a)*r};return{start:s,end:{x:s.x+l,y:s.y+c}}},e.prototype.getDefaultCfg=function(){return{eachView:void 0,showTitle:!0,spacing:[0,0],padding:10,fields:[]}},e.prototype.getDefaultTitleCfg=function(){return{style:{fontSize:14,fill:"#666",fontFamily:this.view.getTheme().fontFamily}}},e.prototype.processAxis=function(e,t){var n=e.getOptions(),o=n.coordinate,a=e.geometries;if("rect"===(0,r.get)(o,"type","rect")&&a.length){(0,r.isNil)(n.axes)&&(n.axes={});var l=n.axes,c=a[0].getXYFields(),s=c[0],u=c[1],d=(0,i.getAxisOption)(l,s),f=(0,i.getAxisOption)(l,u);!1!==d&&(n.axes[s]=this.getXAxisOption(s,l,d,t)),!1!==f&&(n.axes[u]=this.getYAxisOption(u,l,f,t))}},e.prototype.getFacetDataFilter=function(e){return function(t){return(0,r.every)(e,(function(e){var n=e.field,o=e.value;return!(!(0,r.isNil)(o)&&n)||t[n]===o}))}},e}();t.Facet=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createThemeByStyleSheet=void 0;var r=n(1),o=n(180),i=n(32),a=n(0),l=n(46);t.createThemeByStyleSheet=function(e){var t,n={point:{default:{fill:e.pointFillColor,r:e.pointSize,stroke:e.pointBorderColor,lineWidth:e.pointBorder,fillOpacity:e.pointFillOpacity},active:{stroke:e.pointActiveBorderColor,lineWidth:e.pointActiveBorder},selected:{stroke:e.pointSelectedBorderColor,lineWidth:e.pointSelectedBorder},inactive:{fillOpacity:e.pointInactiveFillOpacity,strokeOpacity:e.pointInactiveBorderOpacity}},hollowPoint:{default:{fill:e.hollowPointFillColor,lineWidth:e.hollowPointBorder,stroke:e.hollowPointBorderColor,strokeOpacity:e.hollowPointBorderOpacity,r:e.hollowPointSize},active:{stroke:e.hollowPointActiveBorderColor,strokeOpacity:e.hollowPointActiveBorderOpacity},selected:{lineWidth:e.hollowPointSelectedBorder,stroke:e.hollowPointSelectedBorderColor,strokeOpacity:e.hollowPointSelectedBorderOpacity},inactive:{strokeOpacity:e.hollowPointInactiveBorderOpacity}},area:{default:{fill:e.areaFillColor,fillOpacity:e.areaFillOpacity,stroke:null},active:{fillOpacity:e.areaActiveFillOpacity},selected:{fillOpacity:e.areaSelectedFillOpacity},inactive:{fillOpacity:e.areaInactiveFillOpacity}},hollowArea:{default:{fill:null,stroke:e.hollowAreaBorderColor,lineWidth:e.hollowAreaBorder,strokeOpacity:e.hollowAreaBorderOpacity},active:{fill:null,lineWidth:e.hollowAreaActiveBorder},selected:{fill:null,lineWidth:e.hollowAreaSelectedBorder},inactive:{strokeOpacity:e.hollowAreaInactiveBorderOpacity}},interval:{default:{fill:e.intervalFillColor,fillOpacity:e.intervalFillOpacity},active:{stroke:e.intervalActiveBorderColor,lineWidth:e.intervalActiveBorder},selected:{stroke:e.intervalSelectedBorderColor,lineWidth:e.intervalSelectedBorder},inactive:{fillOpacity:e.intervalInactiveFillOpacity,strokeOpacity:e.intervalInactiveBorderOpacity}},hollowInterval:{default:{fill:e.hollowIntervalFillColor,stroke:e.hollowIntervalBorderColor,lineWidth:e.hollowIntervalBorder,strokeOpacity:e.hollowIntervalBorderOpacity},active:{stroke:e.hollowIntervalActiveBorderColor,lineWidth:e.hollowIntervalActiveBorder,strokeOpacity:e.hollowIntervalActiveBorderOpacity},selected:{stroke:e.hollowIntervalSelectedBorderColor,lineWidth:e.hollowIntervalSelectedBorder,strokeOpacity:e.hollowIntervalSelectedBorderOpacity},inactive:{stroke:e.hollowIntervalInactiveBorderColor,lineWidth:e.hollowIntervalInactiveBorder,strokeOpacity:e.hollowIntervalInactiveBorderOpacity}},line:{default:{stroke:e.lineBorderColor,lineWidth:e.lineBorder,strokeOpacity:e.lineBorderOpacity,fill:null,lineAppendWidth:10,lineCap:"round",lineJoin:"round"},active:{lineWidth:e.lineActiveBorder},selected:{lineWidth:e.lineSelectedBorder},inactive:{strokeOpacity:e.lineInactiveBorderOpacity}}},c=function(e){return{title:{autoRotate:!0,position:"center",spacing:e.axisTitleSpacing,style:{fill:e.axisTitleTextFillColor,fontSize:e.axisTitleTextFontSize,lineHeight:e.axisTitleTextLineHeight,textBaseline:"middle",fontFamily:e.fontFamily}},label:{autoRotate:!1,autoEllipsis:!1,autoHide:{type:"equidistance",cfg:{minGap:6}},offset:e.axisLabelOffset,style:{fill:e.axisLabelFillColor,fontSize:e.axisLabelFontSize,lineHeight:e.axisLabelLineHeight,fontFamily:e.fontFamily}},line:{style:{lineWidth:e.axisLineBorder,stroke:e.axisLineBorderColor}},grid:{line:{type:"line",style:{stroke:e.axisGridBorderColor,lineWidth:e.axisGridBorder,lineDash:e.axisGridLineDash}},alignTick:!0,animate:!0},tickLine:{style:{lineWidth:e.axisTickLineBorder,stroke:e.axisTickLineBorderColor},alignTick:!0,length:e.axisTickLineLength},subTickLine:null,animate:!0}}(e),s=function(e){return{title:null,marker:{symbol:"circle",spacing:e.legendMarkerSpacing,style:{r:e.legendCircleMarkerSize,fill:e.legendMarkerColor}},itemName:{spacing:5,style:{fill:e.legendItemNameFillColor,fontFamily:e.fontFamily,fontSize:e.legendItemNameFontSize,lineHeight:e.legendItemNameLineHeight,fontWeight:e.legendItemNameFontWeight,textAlign:"start",textBaseline:"middle"}},itemStates:{active:{nameStyle:{opacity:.8}},unchecked:{nameStyle:{fill:"#D8D8D8"},markerStyle:{fill:"#D8D8D8",stroke:"#D8D8D8"}},inactive:{nameStyle:{fill:"#D8D8D8"},markerStyle:{opacity:.2}}},flipPage:!0,pageNavigator:{marker:{style:{size:e.legendPageNavigatorMarkerSize,inactiveFill:e.legendPageNavigatorMarkerInactiveFillColor,inactiveOpacity:e.legendPageNavigatorMarkerInactiveFillOpacity,fill:e.legendPageNavigatorMarkerFillColor,opacity:e.legendPageNavigatorMarkerFillOpacity}},text:{style:{fill:e.legendPageNavigatorTextFillColor,fontSize:e.legendPageNavigatorTextFontSize}}},animate:!1,maxItemWidth:200,itemSpacing:e.legendItemSpacing,itemMarginBottom:e.legendItemMarginBottom,padding:e.legendPadding}}(e);return{background:e.backgroundColor,defaultColor:e.brandColor,subColor:e.subColor,semanticRed:e.paletteSemanticRed,semanticGreen:e.paletteSemanticGreen,padding:"auto",fontFamily:e.fontFamily,columnWidthRatio:.5,maxColumnWidth:null,minColumnWidth:null,roseWidthRatio:.9999999,multiplePieWidthRatio:1/1.3,colors10:e.paletteQualitative10,colors20:e.paletteQualitative20,sequenceColors:e.paletteSequence,shapes:{point:["hollow-circle","hollow-square","hollow-bowtie","hollow-diamond","hollow-hexagon","hollow-triangle","hollow-triangle-down","circle","square","bowtie","diamond","hexagon","triangle","triangle-down","cross","tick","plus","hyphen","line"],line:["line","dash","dot","smooth"],area:["area","smooth","line","smooth-line"],interval:["rect","hollow-rect","line","tick"]},sizes:[1,10],geometries:{interval:{rect:{default:{style:n.interval.default},active:{style:n.interval.active},inactive:{style:n.interval.inactive},selected:{style:function(e){var t=e.geometry.coordinate;if(t.isPolar&&t.isTransposed){var r=(0,l.getAngle)(e.getModel(),t),o=(r.startAngle+r.endAngle)/2,a=7.5*Math.cos(o),c=7.5*Math.sin(o);return{matrix:i.ext.transform(null,[["t",a,c]])}}return n.interval.selected}}},"hollow-rect":{default:{style:n.hollowInterval.default},active:{style:n.hollowInterval.active},inactive:{style:n.hollowInterval.inactive},selected:{style:n.hollowInterval.selected}},line:{default:{style:n.hollowInterval.default},active:{style:n.hollowInterval.active},inactive:{style:n.hollowInterval.inactive},selected:{style:n.hollowInterval.selected}},tick:{default:{style:n.hollowInterval.default},active:{style:n.hollowInterval.active},inactive:{style:n.hollowInterval.inactive},selected:{style:n.hollowInterval.selected}},funnel:{default:{style:n.interval.default},active:{style:n.interval.active},inactive:{style:n.interval.inactive},selected:{style:n.interval.selected}},pyramid:{default:{style:n.interval.default},active:{style:n.interval.active},inactive:{style:n.interval.inactive},selected:{style:n.interval.selected}}},line:{line:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},dot:{default:{style:(0,r.__assign)((0,r.__assign)({},n.line.default),{lineCap:null,lineDash:[1,1]})},active:{style:(0,r.__assign)((0,r.__assign)({},n.line.active),{lineCap:null,lineDash:[1,1]})},inactive:{style:(0,r.__assign)((0,r.__assign)({},n.line.inactive),{lineCap:null,lineDash:[1,1]})},selected:{style:(0,r.__assign)((0,r.__assign)({},n.line.selected),{lineCap:null,lineDash:[1,1]})}},dash:{default:{style:(0,r.__assign)((0,r.__assign)({},n.line.default),{lineCap:null,lineDash:[5.5,1]})},active:{style:(0,r.__assign)((0,r.__assign)({},n.line.active),{lineCap:null,lineDash:[5.5,1]})},inactive:{style:(0,r.__assign)((0,r.__assign)({},n.line.inactive),{lineCap:null,lineDash:[5.5,1]})},selected:{style:(0,r.__assign)((0,r.__assign)({},n.line.selected),{lineCap:null,lineDash:[5.5,1]})}},smooth:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},hv:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},vh:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},hvh:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},vhv:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}}},polygon:{polygon:{default:{style:n.interval.default},active:{style:n.interval.active},inactive:{style:n.interval.inactive},selected:{style:n.interval.selected}}},point:{circle:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},square:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},bowtie:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},diamond:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},hexagon:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},triangle:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},"triangle-down":{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},"hollow-circle":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-square":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-bowtie":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-diamond":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-hexagon":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-triangle":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-triangle-down":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},cross:{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},tick:{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},plus:{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},hyphen:{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},line:{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}}},area:{area:{default:{style:n.area.default},active:{style:n.area.active},inactive:{style:n.area.inactive},selected:{style:n.area.selected}},smooth:{default:{style:n.area.default},active:{style:n.area.active},inactive:{style:n.area.inactive},selected:{style:n.area.selected}},line:{default:{style:n.hollowArea.default},active:{style:n.hollowArea.active},inactive:{style:n.hollowArea.inactive},selected:{style:n.hollowArea.selected}},"smooth-line":{default:{style:n.hollowArea.default},active:{style:n.hollowArea.active},inactive:{style:n.hollowArea.inactive},selected:{style:n.hollowArea.selected}}},schema:{candle:{default:{style:n.hollowInterval.default},active:{style:n.hollowInterval.active},inactive:{style:n.hollowInterval.inactive},selected:{style:n.hollowInterval.selected}},box:{default:{style:n.hollowInterval.default},active:{style:n.hollowInterval.active},inactive:{style:n.hollowInterval.inactive},selected:{style:n.hollowInterval.selected}}},edge:{line:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},vhv:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},smooth:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},arc:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}}},violin:{violin:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},smooth:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},hollow:{default:{style:n.hollowArea.default},active:{style:n.hollowArea.active},inactive:{style:n.hollowArea.inactive},selected:{style:n.hollowArea.selected}},"hollow-smooth":{default:{style:n.hollowArea.default},active:{style:n.hollowArea.active},inactive:{style:n.hollowArea.inactive},selected:{style:n.hollowArea.selected}}}},components:{axis:{common:c,top:{position:"top",grid:null,title:null,verticalLimitLength:.5},bottom:{position:"bottom",grid:null,title:null,verticalLimitLength:.5},left:{position:"left",title:null,line:null,tickLine:null,verticalLimitLength:1/3},right:{position:"right",title:null,line:null,tickLine:null,verticalLimitLength:1/3},circle:{title:null,grid:(0,a.deepMix)({},c.grid,{line:{type:"line"}})},radius:{title:null,grid:(0,a.deepMix)({},c.grid,{line:{type:"circle"}})}},legend:{common:s,right:{layout:"vertical",padding:e.legendVerticalPadding},left:{layout:"vertical",padding:e.legendVerticalPadding},top:{layout:"horizontal",padding:e.legendHorizontalPadding},bottom:{layout:"horizontal",padding:e.legendHorizontalPadding},continuous:{title:null,background:null,track:{},rail:{type:"color",size:e.sliderRailHeight,defaultLength:e.sliderRailWidth,style:{fill:e.sliderRailFillColor,stroke:e.sliderRailBorderColor,lineWidth:e.sliderRailBorder}},label:{align:"rail",spacing:4,formatter:null,style:{fill:e.sliderLabelTextFillColor,fontSize:e.sliderLabelTextFontSize,lineHeight:e.sliderLabelTextLineHeight,textBaseline:"middle",fontFamily:e.fontFamily}},handler:{size:e.sliderHandlerWidth,style:{fill:e.sliderHandlerFillColor,stroke:e.sliderHandlerBorderColor}},slidable:!0,padding:s.padding}},tooltip:{showContent:!0,follow:!0,showCrosshairs:!1,showMarkers:!0,shared:!1,enterable:!1,position:"auto",marker:{symbol:"circle",stroke:"#fff",shadowBlur:10,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"rgba(0,0,0,0.09)",lineWidth:2,r:4},crosshairs:{line:{style:{stroke:e.tooltipCrosshairsBorderColor,lineWidth:e.tooltipCrosshairsBorder}},text:null,textBackground:{padding:2,style:{fill:"rgba(0, 0, 0, 0.25)",lineWidth:0,stroke:null}},follow:!1},domStyles:(t={},t[""+o.TOOLTIP_CSS_CONST.CONTAINER_CLASS]={position:"absolute",visibility:"hidden",zIndex:8,transition:"left 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s, top 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s",backgroundColor:e.tooltipContainerFillColor,opacity:e.tooltipContainerFillOpacity,boxShadow:e.tooltipContainerShadow,borderRadius:e.tooltipContainerBorderRadius+"px",color:e.tooltipTextFillColor,fontSize:e.tooltipTextFontSize+"px",fontFamily:e.fontFamily,lineHeight:e.tooltipTextLineHeight+"px",padding:"0 12px 0 12px"},t[""+o.TOOLTIP_CSS_CONST.TITLE_CLASS]={marginBottom:"12px",marginTop:"12px"},t[""+o.TOOLTIP_CSS_CONST.LIST_CLASS]={margin:0,listStyleType:"none",padding:0},t[""+o.TOOLTIP_CSS_CONST.LIST_ITEM_CLASS]={listStyleType:"none",padding:0,marginBottom:"12px",marginTop:"12px",marginLeft:0,marginRight:0},t[""+o.TOOLTIP_CSS_CONST.MARKER_CLASS]={width:"8px",height:"8px",borderRadius:"50%",display:"inline-block",marginRight:"8px"},t[""+o.TOOLTIP_CSS_CONST.VALUE_CLASS]={display:"inline-block",float:"right",marginLeft:"30px"},t)},annotation:{arc:{style:{stroke:e.annotationArcBorderColor,lineWidth:e.annotationArcBorder},animate:!0},line:{style:{stroke:e.annotationLineBorderColor,lineDash:e.annotationLineDash,lineWidth:e.annotationLineBorder},text:{position:"start",autoRotate:!0,style:{fill:e.annotationTextFillColor,stroke:e.annotationTextBorderColor,lineWidth:e.annotationTextBorder,fontSize:e.annotationTextFontSize,textAlign:"start",fontFamily:e.fontFamily,textBaseline:"bottom"}},animate:!0},text:{style:{fill:e.annotationTextFillColor,stroke:e.annotationTextBorderColor,lineWidth:e.annotationTextBorder,fontSize:e.annotationTextFontSize,textBaseline:"middle",textAlign:"start",fontFamily:e.fontFamily},animate:!0},region:{top:!1,style:{lineWidth:e.annotationRegionBorder,stroke:e.annotationRegionBorderColor,fill:e.annotationRegionFillColor,fillOpacity:e.annotationRegionFillOpacity},animate:!0},image:{top:!1,animate:!0},dataMarker:{top:!0,point:{style:{r:3,stroke:e.brandColor,lineWidth:2}},line:{style:{stroke:e.annotationLineBorderColor,lineWidth:e.annotationLineBorder},length:e.annotationDataMarkerLineLength},text:{style:{textAlign:"start",fill:e.annotationTextFillColor,stroke:e.annotationTextBorderColor,lineWidth:e.annotationTextBorder,fontSize:e.annotationTextFontSize,fontFamily:e.fontFamily}},direction:"upward",autoAdjust:!0,animate:!0},dataRegion:{style:{region:{fill:e.annotationRegionFillColor,fillOpacity:e.annotationRegionFillOpacity},text:{textAlign:"center",textBaseline:"bottom",fill:e.annotationTextFillColor,stroke:e.annotationTextBorderColor,lineWidth:e.annotationTextBorder,fontSize:e.annotationTextFontSize,fontFamily:e.fontFamily}},animate:!0}},slider:{common:{padding:[8,8,8,8],backgroundStyle:{fill:e.cSliderBackgroundFillColor,opacity:e.cSliderBackgroundFillOpacity},foregroundStyle:{fill:e.cSliderForegroundFillColor,opacity:e.cSliderForegroundFillOpacity},handlerStyle:{width:e.cSliderHandlerWidth,height:e.cSliderHandlerHeight,fill:e.cSliderHandlerFillColor,opacity:e.cSliderHandlerFillOpacity,stroke:e.cSliderHandlerBorderColor,lineWidth:e.cSliderHandlerBorder,radius:e.cSliderHandlerBorderRadius,highLightFill:e.cSliderHandlerHighlightFillColor},textStyle:{fill:e.cSliderTextFillColor,opacity:e.cSliderTextFillOpacity,fontSize:e.cSliderTextFontSize,lineHeight:e.cSliderTextLineHeight,fontWeight:e.cSliderTextFontWeight,stroke:e.cSliderTextBorderColor,lineWidth:e.cSliderTextBorder}}},scrollbar:{common:{padding:[8,8,8,8]},default:{style:{trackColor:e.scrollbarTrackFillColor,thumbColor:e.scrollbarThumbFillColor}},hover:{style:{thumbColor:e.scrollbarThumbHighlightFillColor}}}},labels:{offset:12,style:{fill:e.labelFillColor,fontSize:e.labelFontSize,fontFamily:e.fontFamily,stroke:e.labelBorderColor,lineWidth:e.labelBorder},fillColorDark:e.labelFillColorDark,fillColorLight:e.labelFillColorLight,autoRotate:!0},innerLabels:{style:{fill:e.innerLabelFillColor,fontSize:e.innerLabelFontSize,fontFamily:e.fontFamily,stroke:e.innerLabelBorderColor,lineWidth:e.innerLabelBorder},autoRotate:!0},overflowLabels:{style:{fill:e.overflowLabelFillColor,fontSize:e.overflowLabelFontSize,fontFamily:e.fontFamily,stroke:e.overflowLabelBorderColor,lineWidth:e.overflowLabelBorder}},pieLabels:{labelHeight:14,offset:10,labelLine:{style:{lineWidth:e.labelLineBorder}},autoRotate:!0}}}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(36)),i=r(n(169));t.default=function(e,t){if(e)if((0,o.default)(e))for(var n=0,r=e.length;n<r&&!1!==t(e[n],n);n++);else if((0,i.default)(e))for(var a in e)if(e.hasOwnProperty(a)&&!1===t(e[a],a))break}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(94));t.default=function(e){return(0,o.default)(e)?"":e.toString()}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=a,t.gamma=function(e){return 1===(e=+e)?a:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):(0,o.default)(isNaN(t)?n:t)}},t.hue=function(e,t){var n=t-e;return n?i(e,n>180||n<-180?n-360*Math.round(n/360):n):(0,o.default)(isNaN(e)?t:e)};var o=r(n(405));function i(e,t){return function(n){return e+n*t}}function a(e,t){var n=t-e;return n?i(e,n):(0,o.default)(isNaN(e)?t:e)}},function(e,t,n){"use strict";var r=n(6);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&Object.prototype.hasOwnProperty.call(e,l)){var c=i?Object.getOwnPropertyDescriptor(e,l):null;c&&(c.get||c.set)?Object.defineProperty(o,l,c):o[l]=e[l]}return o.default=e,n&&n.set(e,o),o}(n(0)),i=n(249);function a(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}var l=function(){function e(e){var t=e.xField,n=e.yField,r=e.adjustNames,o=void 0===r?["x","y"]:r,i=e.dimValuesMap;this.adjustNames=o,this.xField=t,this.yField=n,this.dimValuesMap=i}return e.prototype.isAdjust=function(e){return this.adjustNames.indexOf(e)>=0},e.prototype.getAdjustRange=function(e,t,n){var r,o,i=this.yField,a=n.indexOf(t),l=n.length;return!i&&this.isAdjust("y")?(r=0,o=1):l>1?(r=n[0===a?0:a-1],o=n[a===l-1?l-1:a+1],0!==a?r+=(t-r)/2:r-=(o-t)/2,a!==l-1?o-=(o-t)/2:o+=(t-n[l-2])/2):(r=0===t?0:t-.5,o=0===t?1:t+.5),{pre:r,next:o}},e.prototype.adjustData=function(e,t){var n=this,r=this.getDimValues(t);o.each(e,(function(e,t){o.each(r,(function(r,o){n.adjustDim(o,r,e,t)}))}))},e.prototype.groupData=function(e,t){return o.each(e,(function(e){void 0===e[t]&&(e[t]=i.DEFAULT_Y)})),o.groupBy(e,t)},e.prototype.adjustDim=function(e,t,n,r){},e.prototype.getDimValues=function(e){var t=this.xField,n=this.yField,r=o.assign({},this.dimValuesMap),a=[];return t&&this.isAdjust("x")&&a.push(t),n&&this.isAdjust("y")&&a.push(n),a.forEach((function(t){r&&r[t]||(r[t]=o.valuesOfKey(e,t).sort((function(e,t){return e-t})))})),!n&&this.isAdjust("y")&&(r.y=[i.DEFAULT_Y,1]),r},e}();t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getMaxScale=t.getDefaultCategoryScaleRange=t.getName=t.syncScale=t.createScaleByField=void 0;var r=n(1),o=n(0),i=n(69),a=n(48),l=/^(?:(?!0000)[0-9]{4}([-/.]+)(?:(?:0?[1-9]|1[0-2])\1(?:0?[1-9]|1[0-9]|2[0-8])|(?:0?[13-9]|1[0-2])\1(?:29|30)|(?:0?[13578]|1[02])\1(?:31))|(?:[0-9]{2}(?:0[48]|[2468][048]|[13579][26])|(?:0[48]|[2468][048]|[13579][26])00)([-/.]+)0?2\2(?:29))(\s+([01]|([01][0-9]|2[0-3])):([0-9]|[0-5][0-9]):([0-9]|[0-5][0-9]))?$/;t.createScaleByField=function(e,t,n){var a=t||[];if((0,o.isNumber)(e)||(0,o.isNil)((0,o.firstValue)(a,e))&&(0,o.isEmpty)(n))return new((0,i.getScale)("identity"))({field:e.toString(),values:[e]});var c=(0,o.valuesOfKey)(a,e),s=(0,o.get)(n,"type",function(e){var t="linear";return l.test(e)?t="timeCat":(0,o.isString)(e)&&(t="cat"),t}(c[0]));return new((0,i.getScale)(s))((0,r.__assign)({field:e,values:c},n))},t.syncScale=function(e,t){if("identity"!==e.type&&"identity"!==t.type){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);e.change(n)}},t.getName=function(e){return e.alias||e.field},t.getDefaultCategoryScaleRange=function(e,t,n){var r,i=e.values.length;if(1===i)r=[.5,1];else{var l=0;r=(0,a.isFullCircle)(t)?t.isTransposed?[(l=1/i*(0,o.get)(n,"widthRatio.multiplePie",1/1.3))/2,1-l/2]:[0,1-1/i]:[l=1/i/2,1-l]}return r},t.getMaxScale=function(e){var t=e.values.filter((function(e){return!(0,o.isNil)(e)&&!isNaN(e)}));return Math.max.apply(Math,(0,r.__spreadArray)((0,r.__spreadArray)([],t,!1),[(0,o.isNil)(e.max)?-1/0:e.max],!1))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.convertPolarPath=t.convertNormalPath=t.getSplinePath=t.getLinePath=t.catmullRom2bezier=t.smoothBezier=void 0;var r=n(32),o=n(0),i=n(48);function a(e,t){for(var n=[e[0]],r=1,o=e.length;r<o;r+=2){var i=t.convert({x:e[r],y:e[r+1]});n.push(i.x,i.y)}return n}function l(e,t){var n=t.isTransposed,r=e[1],o=e[6],i=e[7],a=t.convert({x:o,y:i});return["A",r,r,0,0,n?0:1,a.x,a.y]}function c(e,n,r){for(var o=!!n,i=[],a=0,l=e.length;a<l;a+=2)i.push([e[a],e[a+1]]);var c,s,u,d=(0,t.smoothBezier)(i,.4,o,r),f=i.length,p=[];for(a=0;a<f-1;a++)c=d[2*a],s=d[2*a+1],u=i[a+1],p.push(["C",c[0],c[1],s[0],s[1],u[0],u[1]]);return o&&(c=d[f],s=d[f+1],u=i[0],p.push(["C",c[0],c[1],s[0],s[1],u[0],u[1]])),p}function s(e,t){return function(e,t){var n=[];if(e.length){n.push(["M",e[0].x,e[0].y]);for(var r=1,o=e.length;r<o;r+=1){var i=e[r];n.push(["L",i.x,i.y])}t&&n.push(["Z"])}return n}(e,t)}t.smoothBezier=function(e,t,n,o){var i,a,l,c,s,u,d,f=[],p=!!o;if(p){l=o[0],c=o[1];for(var h=0,g=e.length;h<g;h++){var v=e[h];l=r.vec2.min([0,0],l,v),c=r.vec2.max([0,0],c,v)}}h=0;for(var m=e.length;h<m;h++)if(v=e[h],0!==h||n)if(h!==m-1||n){i=e[n?h?h-1:m-1:h-1],a=e[n?(h+1)%m:h+1];var y=[0,0];y=r.vec2.sub(y,a,i),y=r.vec2.scale(y,y,t);var b=r.vec2.distance(v,i),x=r.vec2.distance(v,a),w=b+x;0!==w&&(b/=w,x/=w);var S=r.vec2.scale([0,0],y,-b),O=r.vec2.scale([0,0],y,x);u=r.vec2.add([0,0],v,S),s=r.vec2.add([0,0],v,O),s=r.vec2.min([0,0],s,r.vec2.max([0,0],a,v)),s=r.vec2.max([0,0],s,r.vec2.min([0,0],a,v)),S=r.vec2.sub([0,0],s,v),S=r.vec2.scale([0,0],S,-b/x),u=r.vec2.add([0,0],v,S),u=r.vec2.min([0,0],u,r.vec2.max([0,0],i,v)),u=r.vec2.max([0,0],u,r.vec2.min([0,0],i,v)),O=r.vec2.sub([0,0],v,u),O=r.vec2.scale([0,0],O,x/b),s=r.vec2.add([0,0],v,O),p&&(u=r.vec2.max([0,0],u,l),u=r.vec2.min([0,0],u,c),s=r.vec2.max([0,0],s,l),s=r.vec2.min([0,0],s,c)),f.push(d),f.push(u),d=s}else u=v,f.push(d),f.push(u);else d=v;return n&&f.push(f.shift()),f},t.catmullRom2bezier=c,t.getLinePath=s,t.getSplinePath=function(e,t,n){var r=[],o=e[0],i=null;if(e.length<=2)return s(e,t);for(var a=0,l=e.length;a<l;a++){var u=e[a];i&&i.x===u.x&&i.y===u.y||(r.push(u.x),r.push(u.y),i=u)}var d=c(r,t,n||[[0,0],[1,1]]);return d.unshift(["M",o.x,o.y]),d},t.convertNormalPath=function(e,t){var n=[];return(0,o.each)(t,(function(t){switch(t[0].toLowerCase()){case"m":case"l":case"c":n.push(a(t,e));break;case"a":n.push(l(t,e));break;default:n.push(t)}})),n},t.convertPolarPath=function(e,t){var n,r,c=[];return(0,o.each)(t,(function(o,s){switch(o[0].toLowerCase()){case"m":case"c":case"q":c.push(a(o,e));break;case"l":n=t[s-1],r=o,(e.isTransposed?n[n.length-2]===r[1]:n[n.length-1]===r[2])?c=c.concat(function(e,t,n){var r=n.isTransposed,o=n.startAngle,a=n.endAngle,l="a"===e[0].toLowerCase()?{x:e[6],y:e[7]}:{x:e[1],y:e[2]},c={x:t[1],y:t[2]},s=[],u=r?"y":"x",d=Math.abs(c[u]-l[u])*(a-o),f=c[u]>=l[u]?1:0,p=d>Math.PI?1:0,h=n.convert(c),g=(0,i.getDistanceToCenter)(n,h);if(g>=.5)if(d===2*Math.PI){var v={x:(c.x+l.x)/2,y:(c.y+l.y)/2},m=n.convert(v);s.push(["A",g,g,0,p,f,m.x,m.y]),s.push(["A",g,g,0,p,f,h.x,h.y])}else s.push(["A",g,g,0,p,f,h.x,h.y]);return s}(n,r,e)):c.push(a(o,e));break;case"a":c.push(l(o,e));break;default:c.push(o)}})),function(e){(0,o.each)(e,(function(t,n){if("a"===t[0].toLowerCase()){var r=e[n-1],o=e[n+1];o&&"a"===o[0].toLowerCase()?r&&"l"===r[0].toLowerCase()&&(r[0]="M"):r&&"a"===r[0].toLowerCase()&&o&&"l"===o[0].toLowerCase()&&(o[0]="M")}}))}(c),c}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.checkShapeOverlap=t.getOverlapArea=t.getlLabelBackgroundInfo=t.findLabelTextShape=void 0;var r=n(0),o=n(113);function i(e,t,n){return void 0===n&&(n=0),Math.max(0,Math.min(e.x+e.width+n,t.x+t.width+n)-Math.max(e.x-n,t.x-n))*Math.max(0,Math.min(e.y+e.height+n,t.y+t.height+n)-Math.max(e.y-n,t.y-n))}t.findLabelTextShape=function(e){return e.find((function(e){return"text"===e.get("type")}))},t.getlLabelBackgroundInfo=function(e,t,n){void 0===n&&(n=[0,0,0,0]);var i=e.getChildren()[0];if(i){var a=i.clone();(null===t||void 0===t?void 0:t.rotate)&&(0,o.rotate)(a,-t.rotate);var l=a.getCanvasBBox(),c=l.x,s=l.y,u=l.width,d=l.height;a.destroy();var f=n;return(0,r.isNil)(f)?f=[2,2,2,2]:(0,r.isNumber)(f)&&(f=new Array(4).fill(f)),{x:c-f[3],y:s-f[0],width:u+f[1]+f[3],height:d+f[0]+f[2],rotation:(null===t||void 0===t?void 0:t.rotate)||0}}},t.getOverlapArea=i,t.checkShapeOverlap=function(e,t){var n=e.getBBox();return(0,r.some)(t,(function(e){var t=e.getBBox();return i(n,t,2)>0}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.zoom=t.getIdentityMatrix=t.rotate=t.getRotateMatrix=t.translate=t.transform=void 0;var r=n(32).ext.transform;function o(e,t){var n=e.attr(),o=n.x,i=n.y;return r(e.getMatrix(),[["t",-o,-i],["r",t],["t",o,i]])}t.transform=r,t.translate=function(e,t,n){var o=r(e.getMatrix(),[["t",t,n]]);e.setMatrix(o)},t.getRotateMatrix=o,t.rotate=function(e,t){var n=o(e,t);e.setMatrix(n)},t.getIdentityMatrix=function(){return[1,0,0,0,1,0,0,0,1]},t.zoom=function(e,t){var n=e.getBBox(),o=(n.minX+n.maxX)/2,i=(n.minY+n.maxY)/2;e.applyToMatrix([o,i,1]);var a=r(e.getMatrix(),[["t",-o,-i],["s",t,t],["t",o,i]]);e.setMatrix(a)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSmoothViolinPath=t.getViolinPath=t.getPathPoints=void 0;var r=n(0),o=n(111);function i(e){return!e&&(null===e||void 0===e||isNaN(e))}function a(e){if((0,r.isArray)(e))return i(e[1].y);var t=e.y;return(0,r.isArray)(t)?i(t[0]):i(t)}t.getPathPoints=function(e,t,n){if(void 0===t&&(t=!1),void 0===n&&(n=!0),!e.length||1===e.length&&!n)return[];if(t){for(var r=[],o=0,i=e.length;o<i;o++)a(s=e[o])||r.push(s);return[r]}var l=[],c=[];for(o=0,i=e.length;o<i;o++){var s;a(s=e[o])?c.length&&((1!==c.length||n)&&l.push(c),c=[]):c.push(s)}return c.length&&l.push(c),l},t.getViolinPath=function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];if(r){var o=0===n?"M":"L";t.push([o,r.x,r.y])}}var i=e[0];return i&&(t.push(["L",i.x,i.y]),t.push(["z"])),t},t.getSmoothViolinPath=function(e){for(var t=e.length/2,n=[],r=[],i=0;i<e.length;i++)i<t?n.push(e[i]):r.push(e[i]);var a=(0,o.getSplinePath)(n,!1),l=(0,o.getSplinePath)(r,!1);r.length&&a.push(["L",r[0].x,r[0].y]),l.shift();var c=a.concat(l);return n.length&&c.push(["L",n[0].x,n[0].y]),c.push(["z"]),c}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getAnglePoint=t.getFactTitleConfig=void 0;var r=n(21);t.getFactTitleConfig=function(e){return[r.DIRECTION.TOP,r.DIRECTION.BOTTOM].includes(e)?{offsetX:0,offsetY:e===r.DIRECTION.TOP?-8:8,style:{textAlign:"center",textBaseline:e===r.DIRECTION.TOP?"bottom":"top"}}:[r.DIRECTION.LEFT,r.DIRECTION.RIGHT].includes(e)?{offsetX:e===r.DIRECTION.LEFT?-8:8,offsetY:0,style:{textAlign:e===r.DIRECTION.LEFT?"right":"left",textBaseline:"middle",rotate:Math.PI/2}}:{}},t.getAnglePoint=function(e,t,n){return{x:e.x+t*Math.cos(n),y:e.y+t*Math.sin(n)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={}.toString;t.default=function(e,t){return r.call(e)==="[object "+t+"]"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTinyData=void 0;var r=n(0);t.getTinyData=function(e){return r.map(e||[],(function(e,t){return{x:""+t,y:e}}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getDataWhetherPecentage=t.getDeepPercent=t.percent=void 0;var r=n(1),o=n(0),i=n(290);function a(e,t,n,a){var l=o.reduce(e,(function(e,r){var o=r[n],a=e.has(o)?e.get(o):0,l=r[t];return a=i.isRealNumber(l)?a+l:a,e.set(o,a),e}),new Map);return o.map(e,(function(e){var o,c=e[t],s=e[n],u=i.isRealNumber(c)?c/l.get(s):0;return r.__assign(r.__assign({},e),((o={})[a]=u,o))}))}t.percent=a,t.getDeepPercent=function(e,t,n,a){var l=o.reduce(e,(function(e,r){var a=o.reduce(n,(function(e,t){return""+e+r[t]}),""),l=e.has(a)?e.get(a):0,c=r[t];return l=i.isRealNumber(c)?l+c:l,e.set(a,l),e}),new Map);return o.map(e,(function(e){var c,s=e[t],u=o.reduce(n,(function(t,n){return""+t+e[n]}),""),d=i.isRealNumber(s)?s/l.get(u):0;return r.__assign(r.__assign({},e),((c={})[a]=d,c))}))},t.getDataWhetherPecentage=function(e,t,n,r,o){return o?a(e,t,n,r):e}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_OPTIONS=t.PLOYGON_Y=t.PLOYGON_X=t.FUNNEL_TOTAL_PERCENT=t.FUNNEL_CONVERSATION=t.FUNNEL_MAPPING_VALUE=t.FUNNEL_PERCENT=void 0,t.FUNNEL_PERCENT="$$percentage$$",t.FUNNEL_MAPPING_VALUE="$$mappingValue$$",t.FUNNEL_CONVERSATION="$$conversion$$",t.FUNNEL_TOTAL_PERCENT="$$totalPercentage$$",t.PLOYGON_X="$$x$$",t.PLOYGON_Y="$$y$$",t.DEFAULT_OPTIONS={appendPadding:[0,80],minSize:0,maxSize:1,meta:(r={},r[t.FUNNEL_MAPPING_VALUE]={min:0,max:1,nice:!1},r),label:{style:{fill:"#fff",fontSize:12}},tooltip:{showTitle:!1,showMarkers:!1,shared:!1},conversionTag:{offsetX:10,offsetY:0,style:{fontSize:12,fill:"rgba(0,0,0,0.45)"}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getAdjustAppendPadding=function(e,t,n){void 0===t&&(t="bottom"),void 0===n&&(n=25);var r=o(e),i=[t.startsWith("top")?n:0,t.startsWith("right")?n:0,t.startsWith("bottom")?n:0,t.startsWith("left")?n:0];return[r[0]+i[0],r[1]+i[1],r[2]+i[2],r[3]+i[3]]},t.normalPadding=o,t.resolveAllPadding=function(e){var t=e.map((function(e){return o(e)})),n=[0,0,0,0];return t.length>0&&(n=n.map((function(e,n){return t.forEach((function(r,o){e+=t[o][n]})),e}))),n};var r=n(0);function o(e){if((0,r.isNumber)(e))return[e,e,e,e];if((0,r.isArray)(e)){var t=e.length;if(1===t)return[e[0],e[0],e[0],e[0]];if(2===t)return[e[0],e[1],e[0],e[1]];if(3===t)return[e[0],e[1],e[2],e[1]];if(4===t)return e}return[0,0,0,0]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pattern=function(e){var t=this;return function(n){var c,s=n.options,u=n.chart,d=s.pattern;return d?(0,l.deepAssign)({},n,{options:(c={},c[e]=function(n){for(var c,f,p,h=[],g=1;g<arguments.length;g++)h[g-1]=arguments[g];var v=u.getTheme().defaultColor,m=v,y=null===(f=null===(c=u.geometries)||void 0===c?void 0:c[0])||void 0===f?void 0:f.getAttribute("color");if(y){var b=y.getFields()[0],x=(0,i.get)(n,b);m=o.Util.getMappingValue(y,x,(null===(p=y.values)||void 0===p?void 0:p[0])||v)}var w=d;"function"===typeof d&&(w=d.call(t,n,m)),w instanceof CanvasPattern===!1&&(w=(0,a.getCanvasPattern)((0,l.deepAssign)({},{cfg:{backgroundColor:m}},w)));var S=s[e];return(0,r.__assign)((0,r.__assign)({},"function"===typeof S?S.call.apply(S,(0,r.__spreadArrays)([t,n],h)):S||{}),{fill:w||m})},c)}):n}};var r=n(1),o=n(14),i=n(0),a=n(547),l=n(7)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getDataWhetherPecentage=function(e,t,n,r,o){return o?a(e,t,n,r):e},t.getDeepPercent=function(e,t,n,a){var l=(0,o.reduce)(e,(function(e,r){var a=(0,o.reduce)(n,(function(e,t){return""+e+r[t]}),""),l=e.has(a)?e.get(a):0,c=r[t];return l=(0,i.isRealNumber)(c)?l+c:l,e.set(a,l),e}),new Map);return(0,o.map)(e,(function(e){var c,s=e[t],u=(0,o.reduce)(n,(function(t,n){return""+t+e[n]}),""),d=(0,i.isRealNumber)(s)?s/l.get(u):0;return(0,r.__assign)((0,r.__assign)({},e),((c={})[a]=d,c))}))},t.percent=a;var r=n(1),o=n(0),i=n(302);function a(e,t,n,a){var l=(0,o.reduce)(e,(function(e,r){var o=r[n],a=e.has(o)?e.get(o):0,l=r[t];return a=(0,i.isRealNumber)(l)?a+l:a,e.set(o,a),e}),new Map);return(0,o.map)(e,(function(e){var o,c=e[t],s=e[n],u=(0,i.isRealNumber)(c)?c/l.get(s):0;return(0,r.__assign)((0,r.__assign)({},e),((o={})[a]=u,o))}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTinyData=function(e){return(0,r.map)(e||[],(function(e,t){return{x:""+t,y:e}}))};var r=n(0)},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.PLOYGON_Y=t.PLOYGON_X=t.FUNNEL_TOTAL_PERCENT=t.FUNNEL_PERCENT=t.FUNNEL_MAPPING_VALUE=t.FUNNEL_CONVERSATION=t.DEFAULT_OPTIONS=void 0,t.FUNNEL_PERCENT="$$percentage$$";var o=t.FUNNEL_MAPPING_VALUE="$$mappingValue$$";t.FUNNEL_CONVERSATION="$$conversion$$",t.FUNNEL_TOTAL_PERCENT="$$totalPercentage$$",t.PLOYGON_X="$$x$$",t.PLOYGON_Y="$$y$$",t.DEFAULT_OPTIONS={appendPadding:[0,80],minSize:0,maxSize:1,meta:(r={},r[o]={min:0,max:1,nice:!1},r),label:{style:{fill:"#fff",fontSize:12}},tooltip:{showTitle:!1,showMarkers:!1,shared:!1},conversionTag:{offsetX:10,offsetY:0,style:{fontSize:12,fill:"rgba(0,0,0,0.45)"}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(){function e(){this._events={}}return e.prototype.on=function(e,t,n){return this._events[e]||(this._events[e]=[]),this._events[e].push({callback:t,once:!!n}),this},e.prototype.once=function(e,t){return this.on(e,t,!0)},e.prototype.emit=function(e){for(var t=this,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=this._events[e]||[],i=this._events["*"]||[],a=function(r){for(var o=r.length,i=0;i<o;i++)if(r[i]){var a=r[i],l=a.callback;a.once&&(r.splice(i,1),0===r.length&&delete t._events[e],o--,i--),l.apply(t,n)}};a(o),a(i)},e.prototype.off=function(e,t){if(e)if(t){for(var n=this._events[e]||[],r=n.length,o=0;o<r;o++)n[o].callback===t&&(n.splice(o,1),r--,o--);0===n.length&&delete this._events[e]}else delete this._events[e];else this._events={};return this},e.prototype.getEvents=function(){return this._events},e}();t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(0),i=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.timeStamp=0,t}return(0,r.__extends)(t,e),t.prototype.show=function(){var e=this.context,t=e.event,n=e.view;if(!n.isTooltipLocked()){var r=this.timeStamp,i=+new Date;if(i-r>(0,o.get)(e.view.getOptions(),"tooltip.showDelay",16)){var a=this.location,l={x:t.x,y:t.y};a&&(0,o.isEqual)(a,l)||this.showTooltip(n,l),this.timeStamp=i,this.location=l}}},t.prototype.hide=function(){var e=this.context.view,t=e.getController("tooltip"),n=this.context.event,r=n.clientX,o=n.clientY;t.isCursorEntered({x:r,y:o})||e.isTooltipLocked()||(this.hideTooltip(e),this.location=null)},t.prototype.showTooltip=function(e,t){e.showTooltip(t)},t.prototype.hideTooltip=function(e){e.hideTooltip()},t}((0,r.__importDefault)(n(44)).default);t.default=i},function(e,t,n){"use strict";n.d(t,"a",(function(){return y}));var r=n(10),o=n.n(r),i=n(9),a=n.n(i),l=n(12),c=n.n(l),s=n(13),u=n.n(s),d=n(5),f=n.n(d),p=n(325),h=n.n(p),g=n(39),v=n(8);function m(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f()(e);if(t){var o=f()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u()(this,n)}}n(277),Object(v.registerGeometry)("Area",h.a);var y=function(e){c()(n,e);var t=m(n);function n(){var e;return a()(this,n),(e=t.apply(this,arguments)).GemoBaseClassName="area",e}return o()(n)}(g.a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return y}));var r=n(10),o=n.n(r),i=n(9),a=n.n(i),l=n(12),c=n.n(l),s=n(13),u=n.n(s),d=n(5),f=n.n(d),p=n(329),h=n.n(p),g=(n(280),n(39)),v=n(8);function m(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f()(e);if(t){var o=f()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u()(this,n)}}Object(v.registerGeometry)("Line",h.a);var y=function(e){c()(n,e);var t=m(n);function n(){var e;return a()(this,n),(e=t.apply(this,arguments)).GemoBaseClassName="line",e}return o()(n)}(g.a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return y}));var r=n(10),o=n.n(r),i=n(9),a=n.n(i),l=n(12),c=n.n(l),s=n(13),u=n.n(s),d=n(5),f=n.n(d),p=n(330),h=n.n(p),g=n(39),v=n(8);function m(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f()(e);if(t){var o=f()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u()(this,n)}}n(473),n(474),n(475),Object(v.registerGeometry)("Point",h.a);var y=function(e){c()(n,e);var t=m(n);function n(){var e;return a()(this,n),(e=t.apply(this,arguments)).GemoBaseClassName="point",e}return o()(n)}(g.a)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getLocale=t.registerLocale=void 0;var r=n(0),o=n(15),i=n(188),a={};t.registerLocale=function(e,t){a[e]=t},t.getLocale=function(e){return{get:function(t,n){return o.template(r.get(a[e],t)||r.get(a[i.GLOBAL.locale],t)||r.get(a["en-US"],t)||t,n)}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(4),o=n.n(r),i=n(132),a=n.n(i),l=n(3),c=n.n(l),s=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(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};function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ChartContainer",n=c.a.forwardRef((function(t,n){var r=Object(l.useRef)(),i=Object(l.useState)(!1),u=a()(i,2),d=u[0],f=u[1],p=t,h=p.className,g=void 0===h?"bizcharts":h,v=p.containerStyle,m=s(p,["className","containerStyle"]);return Object(l.useEffect)((function(){f(!0)}),[]),c.a.createElement("div",{ref:r,className:g,style:o()({position:"relative",height:t.height||"100%",width:t.width||"100%"},v)},d?c.a.createElement(e,o()({ref:n,container:r.current},m)):c.a.createElement(c.a.Fragment,null))}));return n.displayName=t||e.name,n}},function(e,t,n){"use strict";var r=n(1038),o=n(1039),i=n(484),a=n(1040);e.exports=function(e,t){return r(e)||o(e,t)||i(e,t)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Area=void 0;var r=n(1),o=n(24),i=n(118),a=n(1130),l=n(1131),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="area",t}return r.__extends(t,e),t.getDefaultOptions=function(){return l.DEFAULT_OPTIONS},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.changeData=function(e){this.updateOption({data:e});var t=this.options,n=t.isPercent,r=t.xField,o=t.yField,l=this.chart,c=this.options;a.meta({chart:l,options:c}),this.chart.changeData(i.getDataWhetherPecentage(e,o,r,o,n))},t.prototype.getSchemaAdaptor=function(){return a.adaptor},t}(o.Plot);t.Area=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Heatmap=void 0;var r=n(1),o=n(24),i=n(1137),a=n(1138);n(1139),n(1140);var l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="heatmap",t}return r.__extends(t,e),t.getDefaultOptions=function(){return a.DEFAULT_OPTIONS},t.prototype.getSchemaAdaptor=function(){return i.adaptor},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t}(o.Plot);t.Heatmap=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Rose=void 0;var r=n(1),o=n(24),i=n(1144),a=n(1145),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="rose",t}return r.__extends(t,e),t.getDefaultOptions=function(){return a.DEFAULT_OPTIONS},t.prototype.changeData=function(e){this.updateOption({data:e}),this.chart.changeData(e)},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return i.adaptor},t}(o.Plot);t.Rose=l},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(77),o=n.n(r),i=new RegExp("^on(.*)(?=(".concat(["mousedown","mouseup","dblclick","mouseenter","mouseout","mouseover","mousemove","mouseleave","contextmenu","click","show","hide","change"].map((function(e){return e.replace(/^\S/,(function(e){return e.toUpperCase()}))})).join("|"),"))")),a=function(e){var t=[];return o()(e,(function(e,n){var r=n.match(/^on(.*)/);if(r){var o=n.match(i);if(o){var a=o[1].replace(/([A-Z])/g,"-$1").toLowerCase();(a=a.replace("column","interval"))?t.push([n,"".concat(a.replace("-",""),":").concat(o[2].toLowerCase())]):t.push([n,o[2].toLowerCase()])}else t.push([n,r[1].toLowerCase()])}})),t}},function(e,t,n){"use strict";var r,o=n(2)(n(6)),i=SyntaxError,a=Function,l=TypeError,c=function(e){try{return a('"use strict"; return ('+e+").constructor;")()}catch(t){}},s=Object.getOwnPropertyDescriptor;if(s)try{s({},"")}catch(I){s=null}var u=function(){throw new l},d=s?function(){try{return u}catch(e){try{return s(arguments,"callee").get}catch(t){return u}}}():u,f=n(652)(),p=n(653)(),h=Object.getPrototypeOf||(p?function(e){return e.__proto__}:null),g={},v="undefined"!==typeof Uint8Array&&h?h(Uint8Array):r,m={"%AggregateError%":"undefined"===typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"===typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":f&&h?h([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":g,"%AsyncGenerator%":g,"%AsyncGeneratorFunction%":g,"%AsyncIteratorPrototype%":g,"%Atomics%":"undefined"===typeof Atomics?r:Atomics,"%BigInt%":"undefined"===typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"===typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"===typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"===typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"===typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"===typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"===typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":a,"%GeneratorFunction%":g,"%Int8Array%":"undefined"===typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"===typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"===typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":f&&h?h(h([][Symbol.iterator]())):r,"%JSON%":"object"===("undefined"===typeof JSON?"undefined":(0,o.default)(JSON))?JSON:r,"%Map%":"undefined"===typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!==typeof Map&&f&&h?h((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"===typeof Promise?r:Promise,"%Proxy%":"undefined"===typeof Proxy?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"===typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"===typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!==typeof Set&&f&&h?h((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"===typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":f&&h?h(""[Symbol.iterator]()):r,"%Symbol%":f?Symbol:r,"%SyntaxError%":i,"%ThrowTypeError%":d,"%TypedArray%":v,"%TypeError%":l,"%Uint8Array%":"undefined"===typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"===typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"===typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"===typeof Uint32Array?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"===typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"===typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"===typeof WeakSet?r:WeakSet};if(h)try{null.error}catch(I){var y=h(h(I));m["%Error.prototype%"]=y}var b=function e(t){var n;if("%AsyncFunction%"===t)n=c("async function () {}");else if("%GeneratorFunction%"===t)n=c("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=c("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&h&&(n=h(o.prototype))}return m[t]=n,n},x={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},w=n(369),S=n(655),O=w.call(Function.call,Array.prototype.concat),_=w.call(Function.apply,Array.prototype.splice),C=w.call(Function.call,String.prototype.replace),E=w.call(Function.call,String.prototype.slice),P=w.call(Function.call,RegExp.prototype.exec),M=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,k=/\\(\\)?/g,A=function(e,t){var n,r=e;if(S(x,r)&&(r="%"+(n=x[r])[0]+"%"),S(m,r)){var o=m[r];if(o===g&&(o=b(r)),"undefined"===typeof o&&!t)throw new l("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:o}}throw new i("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!==typeof e||0===e.length)throw new l("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!==typeof t)throw new l('"allowMissing" argument must be a boolean');if(null===P(/^%?[^%]*%?$/,e))throw new i("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=E(e,0,1),n=E(e,-1);if("%"===t&&"%"!==n)throw new i("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new i("invalid intrinsic syntax, expected opening `%`");var r=[];return C(e,M,(function(e,t,n,o){r[r.length]=n?C(o,k,"$1"):t||e})),r}(e),r=n.length>0?n[0]:"",o=A("%"+r+"%",t),a=o.name,c=o.value,u=!1,d=o.alias;d&&(r=d[0],_(n,O([0,1],d)));for(var f=1,p=!0;f<n.length;f+=1){var h=n[f],g=E(h,0,1),v=E(h,-1);if(('"'===g||"'"===g||"`"===g||'"'===v||"'"===v||"`"===v)&&g!==v)throw new i("property names with quotes must have matching quotes");if("constructor"!==h&&p||(u=!0),S(m,a="%"+(r+="."+h)+"%"))c=m[a];else if(null!=c){if(!(h in c)){if(!t)throw new l("base intrinsic for "+e+" exists, but the property is not available.");return}if(s&&f+1>=n.length){var y=s(c,h);c=(p=!!y)&&"get"in y&&!("originalValue"in y.get)?y.get:c[h]}else p=S(c,h),c=c[h];p&&!u&&(m[a]=c)}}return c}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(238)),i=r(n(68));t.default=function(e){if(!(0,o.default)(e)||!(0,i.default)(e,"Object"))return!1;if(null===Object.getPrototypeOf(e))return!0;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var r;try{r=window.getComputedStyle?window.getComputedStyle(e,null)[t]:e.style[t]}catch(o){}finally{r=void 0===r?n:r}return r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(0),o=/rgba?\(([\s.,0-9]+)\)/,i=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,a=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,l=/[\d.]+:(#[^\s]+|[^\)]+\))/gi,c=function(e,t,n,r){return e[r]+(t[r]-e[r])*n};function s(e){return"#"+f(e[0])+f(e[1])+f(e[2])}var u,d=function(e){return[parseInt(e.substr(1,2),16),parseInt(e.substr(3,2),16),parseInt(e.substr(5,2),16)]},f=function(e){var t=Math.round(e).toString(16);return 1===t.length?"0"+t:t},p=function(e){if("#"===e[0]&&7===e.length)return e;u||(u=function(){var e=document.createElement("i");return e.title="Web Colour Picker",e.style.display="none",document.body.appendChild(e),e}()),u.style.color=e;var t=document.defaultView.getComputedStyle(u,"").getPropertyValue("color");return t=s(o.exec(t)[1].split(/\s*,\s*/).map((function(e){return Number(e)})))};t.default={rgb2arr:d,gradient:function(e){var t=(0,r.isString)(e)?e.split("-"):e,n=(0,r.map)(t,(function(e){return d(-1===e.indexOf("#")?p(e):e)}));return function(e){return function(e,t){var n=isNaN(Number(t))||t<0?0:t>1?1:Number(t),r=e.length-1,o=Math.floor(r*n),i=r*n-o,a=e[o],l=o===r?a:e[o+1];return s([c(a,l,i,0),c(a,l,i,1),c(a,l,i,2)])}(n,e)}},toRGB:(0,r.memoize)(p),toCSSGradient:function(e){if(/^[r,R,L,l]{1}[\s]*\(/.test(e)){var t,n=void 0;if("l"===e[0]){var o=+(c=i.exec(e))[1]+90;n=c[2],t="linear-gradient("+o+"deg, "}else if("r"===e[0]){var c;t="radial-gradient(",n=(c=a.exec(e))[4]}var s=n.match(l);return(0,r.each)(s,(function(e,n){var r=e.split(":");t+=r[1]+" "+100*r[0]+"%",n!==s.length-1&&(t+=", ")})),t+=")"}return e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(0),o=n(428),i=function(){function e(e){this.type="base",this.isCategory=!1,this.isLinear=!1,this.isContinuous=!1,this.isIdentity=!1,this.values=[],this.range=[0,1],this.ticks=[],this.__cfg__=e,this.initCfg(),this.init()}return e.prototype.translate=function(e){return e},e.prototype.change=function(e){(0,r.assign)(this.__cfg__,e),this.init()},e.prototype.clone=function(){return this.constructor(this.__cfg__)},e.prototype.getTicks=function(){var e=this;return(0,r.map)(this.ticks,(function(t,n){return(0,r.isObject)(t)?t:{text:e.getText(t,n),tickValue:t,value:e.scale(t)}}))},e.prototype.getText=function(e,t){var n=this.formatter,o=n?n(e,t):e;return(0,r.isNil)(o)||!(0,r.isFunction)(o.toString)?"":o.toString()},e.prototype.getConfig=function(e){return this.__cfg__[e]},e.prototype.init=function(){(0,r.assign)(this,this.__cfg__),this.setDomain(),(0,r.isEmpty)(this.getConfig("ticks"))&&(this.ticks=this.calculateTicks())},e.prototype.initCfg=function(){},e.prototype.setDomain=function(){},e.prototype.calculateTicks=function(){var e=this.tickMethod,t=[];if((0,r.isString)(e)){var n=(0,o.getTickMethod)(e);if(!n)throw new Error("There is no method to to calculate ticks!");t=n(this)}else(0,r.isFunction)(e)&&(t=e(this));return t},e.prototype.rangeMin=function(){return this.range[0]},e.prototype.rangeMax=function(){return this.range[1]},e.prototype.calcPercent=function(e,t,n){return(0,r.isNumber)(e)?(e-t)/(n-t):NaN},e.prototype.calcValue=function(e,t,n){return t+e*(n-t)},e}();t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ellipsisLabel=function(e,t,n,l){var s;void 0===l&&(l="tail");var u=null!==(s=t.attr("text"))&&void 0!==s?s:"";if("tail"===l){var d=(0,r.pick)(t.attr(),["fontSize","fontFamily","fontWeight","fontStyle","fontVariant"]),f=(0,r.getEllipsisText)(u,n,d,"\u2026");return u!==f?(t.attr("text",f),t.set("tip",u),!0):(t.set("tip",null),!1)}var p=c(e,t),h=(0,o.strLen)(u),g=!1;if(n<p){var v=Math.floor(n/p*h)-a,m=void 0;(m=v>=0?(0,o.ellipsisString)(u,v,l):i)&&(t.attr("text",m),g=!0)}return g?t.set("tip",u):t.set("tip",null),g},t.getLabelLength=c,t.getMaxLabelWidth=function(e){if(e.length>l)return function(e){for(var t=e.map((function(e){var t=e.attr("text");return(0,r.isNil)(t)?"":""+t})),n=0,o=0,i=0;i<t.length;i+=1){for(var a=0,l=0;l<=t[i].length;l+=1){var c=t[i].charCodeAt(l);a+=c>=19968&&c<=40869?2:1}a>n&&(n=a,o=i)}return e[o].getBBox().width}(e);var t=0;return(0,r.each)(e,(function(e){var n=e.getBBox().width;t<n&&(t=n)})),t},t.testLabel=function(e,t){return e.getBBox().width<t};var r=n(0),o=n(861),i="\u2026",a=2,l=400;function c(e,t){var n=t.getCanvasBBox();return e?n.width:n.height}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(71);Object.defineProperty(t,"Base",{enumerable:!0,get:function(){return r.default}});var o=n(905);Object.defineProperty(t,"Circle",{enumerable:!0,get:function(){return o.default}});var i=n(906);Object.defineProperty(t,"Ellipse",{enumerable:!0,get:function(){return i.default}});var a=n(907);Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return a.default}});var l=n(908);Object.defineProperty(t,"Line",{enumerable:!0,get:function(){return l.default}});var c=n(909);Object.defineProperty(t,"Marker",{enumerable:!0,get:function(){return c.default}});var s=n(910);Object.defineProperty(t,"Path",{enumerable:!0,get:function(){return s.default}});var u=n(912);Object.defineProperty(t,"Polygon",{enumerable:!0,get:function(){return u.default}});var d=n(913);Object.defineProperty(t,"Polyline",{enumerable:!0,get:function(){return d.default}});var f=n(914);Object.defineProperty(t,"Rect",{enumerable:!0,get:function(){return f.default}});var p=n(917);Object.defineProperty(t,"Text",{enumerable:!0,get:function(){return p.default}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeView=t.getMergedRegion=t.getRefreshRegion=t.refreshElement=t.drawPath=t.clearChanged=t.checkChildrenRefresh=t.checkRefresh=t.drawChildren=t.applyAttrsToContext=void 0;var r=n(0),o=n(440),i=n(441),a=n(51),l=n(183),c={fill:"fillStyle",stroke:"strokeStyle",opacity:"globalAlpha"};function s(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.cfg.visible)if(r.cfg.hasChanged)r.cfg.refresh=!0,r.isGroup()&&u(r.cfg.children,t);else if(r.cfg.refresh)r.isGroup()&&s(r.cfg.children,t);else{var o=d(r,t);r.cfg.refresh=o,o&&r.isGroup()&&s(r.cfg.children,t)}}}function u(e,t){for(var n=0;n<e.length;n++){var r=e[n];r.cfg.visible&&(r.cfg.refresh=!0,r.isGroup()&&u(r.get("children"),t))}}function d(e,t){var n=e.cfg.cacheCanvasBBox;return e.cfg.isInView&&n&&a.intersectRect(n,t)}function f(e){var t;if(e.destroyed)t=e._cacheCanvasBBox;else{var n=e.get("cacheCanvasBBox"),r=n&&!(!n.width||!n.height),o=e.getCanvasBBox(),i=o&&!(!o.width||!o.height);r&&i?t=a.mergeRegion(n,o):r?t=n:i&&(t=o)}return t}t.applyAttrsToContext=function(e,t){var n=t.attr();for(var i in n){var a=n[i],l=c[i]?c[i]:i;"matrix"===l&&a?e.transform(a[0],a[1],a[3],a[4],a[6],a[7]):"lineDash"===l&&e.setLineDash?r.isArray(a)&&e.setLineDash(a):("strokeStyle"===l||"fillStyle"===l?a=o.parseStyle(e,t,a):"globalAlpha"===l&&(a*=e.globalAlpha),e[l]=a)}},t.drawChildren=function(e,t,n){for(var r=0;r<t.length;r++){var o=t[r];o.cfg.visible?o.draw(e,n):o.skipDraw()}},t.checkRefresh=function(e,t,n){var o=e.get("refreshElements");r.each(o,(function(t){if(t!==e)for(var n=t.cfg.parent;n&&n!==e&&!n.cfg.refresh;)n.cfg.refresh=!0,n=n.cfg.parent})),o[0]===e?u(t,n):s(t,n)},t.checkChildrenRefresh=s,t.clearChanged=function e(t){for(var n=0;n<t.length;n++){var r=t[n];r.cfg.hasChanged=!1,r.isGroup()&&!r.destroyed&&e(r.cfg.children)}},t.drawPath=function(e,t,n,r){var o=n.path,a=n.startArrow,c=n.endArrow;if(o){var s=[0,0],u=[0,0],d={dx:0,dy:0};t.beginPath();for(var f=0;f<o.length;f++){var p=o[f],h=p[0];if(0===f&&a&&a.d){var g=e.getStartTangent();d=l.getShortenOffset(g[0][0],g[0][1],g[1][0],g[1][1],a.d)}else f===o.length-2&&"Z"===o[f+1][0]&&c&&c.d?"Z"===o[f+1][0]&&(g=e.getEndTangent(),d=l.getShortenOffset(g[0][0],g[0][1],g[1][0],g[1][1],c.d)):f===o.length-1&&c&&c.d&&"Z"!==o[0]&&(g=e.getEndTangent(),d=l.getShortenOffset(g[0][0],g[0][1],g[1][0],g[1][1],c.d));var v=d.dx,m=d.dy;switch(h){case"M":t.moveTo(p[1]-v,p[2]-m),u=[p[1],p[2]];break;case"L":t.lineTo(p[1]-v,p[2]-m);break;case"Q":t.quadraticCurveTo(p[1],p[2],p[3]-v,p[4]-m);break;case"C":t.bezierCurveTo(p[1],p[2],p[3],p[4],p[5]-v,p[6]-m);break;case"A":var y=void 0;r?(y=r[f])||(y=i.default(s,p),r[f]=y):y=i.default(s,p);var b=y.cx,x=y.cy,w=y.rx,S=y.ry,O=y.startAngle,_=y.endAngle,C=y.xRotation,E=y.sweepFlag;if(t.ellipse)t.ellipse(b,x,w,S,C,O,_,1-E);else{var P=w>S?w:S,M=w>S?1:w/S,k=w>S?S/w:1;t.translate(b,x),t.rotate(C),t.scale(M,k),t.arc(0,0,P,O,_,1-E),t.scale(1/M,1/k),t.rotate(-C),t.translate(-b,-x)}break;case"Z":t.closePath()}if("Z"===h)s=u;else{var A=p.length;s=[p[A-2],p[A-1]]}}}},t.refreshElement=function(e,t){var n=e.get("canvas");n&&("remove"===t&&(e._cacheCanvasBBox=e.get("cacheCanvasBBox")),e.get("hasChanged")||(e.set("hasChanged",!0),e.cfg.parent&&e.cfg.parent.get("hasChanged")||(n.refreshElement(e,t,n),n.get("autoDraw")&&n.draw())))},t.getRefreshRegion=f,t.getMergedRegion=function(e){if(!e.length)return null;var t=[],n=[],o=[],i=[];return r.each(e,(function(e){var r=f(e);r&&(t.push(r.minX),n.push(r.minY),o.push(r.maxX),i.push(r.maxY))})),{minX:r.min(t),minY:r.min(n),maxX:r.max(o),maxY:r.max(i)}},t.mergeView=function(e,t){return e&&t&&a.intersectRect(e,t)?{minX:Math.max(e.minX,t.minX),minY:Math.max(e.minY,t.minY),maxX:Math.min(e.maxX,t.maxX),maxY:Math.min(e.maxY,t.maxY)}:null}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setClip=t.setTransform=t.setShadow=void 0;var r=n(72);t.setShadow=function(e,t){var n=e.cfg.el,r=e.attr(),o={dx:r.shadowOffsetX,dy:r.shadowOffsetY,blur:r.shadowBlur,color:r.shadowColor};if(o.dx||o.dy||o.blur||o.color){var i=t.find("filter",o);i||(i=t.addShadow(o)),n.setAttribute("filter","url(#"+i+")")}else n.removeAttribute("filter")},t.setTransform=function(e){var t=e.attr().matrix;if(t){for(var n=e.cfg.el,r=[],o=0;o<9;o+=3)r.push(t[o]+","+t[o+1]);-1===(r=r.join(",")).indexOf("NaN")?n.setAttribute("transform","matrix("+r+")"):console.warn("invalid matrix:",t)}},t.setClip=function(e,t){var n=e.getClip(),o=e.get("el");if(n){if(n&&!o.hasAttribute("clip-path")){r.createDom(n),n.createPath(t);var i=t.addClip(n);o.setAttribute("clip-path","url(#"+i+")")}}else o.removeAttribute("clip-path")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MarkerSymbols=void 0,t.MarkerSymbols={hexagon:function(e,t,n){var r=n/2*Math.sqrt(3);return[["M",e,t-n],["L",e+r,t-n/2],["L",e+r,t+n/2],["L",e,t+n],["L",e-r,t+n/2],["L",e-r,t-n/2],["Z"]]},bowtie:function(e,t,n){var r=n-1.5;return[["M",e-n,t-r],["L",e+n,t+r],["L",e+n,t-r],["L",e-n,t+r],["Z"]]},cross:function(e,t,n){return[["M",e-n,t-n],["L",e+n,t+n],["M",e+n,t-n],["L",e-n,t+n]]},tick:function(e,t,n){return[["M",e-n/2,t-n],["L",e+n/2,t-n],["M",e,t-n],["L",e,t+n],["M",e-n/2,t+n],["L",e+n/2,t+n]]},plus:function(e,t,n){return[["M",e-n,t],["L",e+n,t],["M",e,t-n],["L",e,t+n]]},hyphen:function(e,t,n){return[["M",e-n,t],["L",e+n,t]]},line:function(e,t,n){return[["M",e,t-n],["L",e,t+n]]}}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Base",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"Circle",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"Ellipse",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"Line",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"Marker",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"Path",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"Polygon",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"Polyline",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(t,"Rect",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(t,"Text",{enumerable:!0,get:function(){return h.default}});var o=r(n(73)),i=r(n(957)),a=r(n(958)),l=r(n(959)),c=r(n(960)),s=r(n(961)),u=r(n(962)),d=r(n(964)),f=r(n(965)),p=r(n(966)),h=r(n(969))},function(e,t,n){"use strict";var r=n(2),o=n(6);Object.defineProperty(t,"__esModule",{value:!0}),t.applyAttrsToContext=function(e,t){var n=t.attr();for(var r in n){var o=n[r],l=d[r]?d[r]:r;"matrix"===l&&o?e.transform(o[0],o[1],o[3],o[4],o[6],o[7]):"lineDash"===l&&e.setLineDash?(0,i.isArray)(o)&&e.setLineDash(o):("strokeStyle"===l||"fillStyle"===l?o=(0,a.parseStyle)(e,t,o):"globalAlpha"===l&&(o*=e.globalAlpha),e[l]=o)}},t.checkChildrenRefresh=f,t.checkRefresh=function(e,t,n){var r=e.get("refreshElements");(0,i.each)(r,(function(t){if(t!==e)for(var n=t.cfg.parent;n&&n!==e&&!n.cfg.refresh;)n.cfg.refresh=!0,n=n.cfg.parent})),r[0]===e?p(t,n):f(t,n)},t.clearChanged=function e(t){for(var n=0;n<t.length;n++){var r=t[n];r.cfg.hasChanged=!1,r.isGroup()&&!r.destroyed&&e(r.cfg.children)}},t.drawChildren=function(e,t,n){for(var r=0;r<t.length;r++){var o=t[r];o.cfg.visible?o.draw(e,n):o.skipDraw()}},t.drawPath=function(e,t,n,r){var o=n.path,i=n.startArrow,a=n.endArrow;if(o){var c=[0,0],u=[0,0],d={dx:0,dy:0};t.beginPath();for(var f=0;f<o.length;f++){var p=o[f],h=p[0];if(0===f&&i&&i.d){var g=e.getStartTangent();d=s.getShortenOffset(g[0][0],g[0][1],g[1][0],g[1][1],i.d)}else f===o.length-2&&"Z"===o[f+1][0]&&a&&a.d?"Z"===o[f+1][0]&&(g=e.getEndTangent(),d=s.getShortenOffset(g[0][0],g[0][1],g[1][0],g[1][1],a.d)):f===o.length-1&&a&&a.d&&"Z"!==o[0]&&(g=e.getEndTangent(),d=s.getShortenOffset(g[0][0],g[0][1],g[1][0],g[1][1],a.d));var v=d.dx,m=d.dy;switch(h){case"M":t.moveTo(p[1]-v,p[2]-m),u=[p[1],p[2]];break;case"L":t.lineTo(p[1]-v,p[2]-m);break;case"Q":t.quadraticCurveTo(p[1],p[2],p[3]-v,p[4]-m);break;case"C":t.bezierCurveTo(p[1],p[2],p[3],p[4],p[5]-v,p[6]-m);break;case"A":var y=void 0;r?(y=r[f])||(y=(0,l.default)(c,p),r[f]=y):y=(0,l.default)(c,p);var b=y.cx,x=y.cy,w=y.rx,S=y.ry,O=y.startAngle,_=y.endAngle,C=y.xRotation,E=y.sweepFlag;if(t.ellipse)t.ellipse(b,x,w,S,C,O,_,1-E);else{var P=w>S?w:S,M=w>S?1:w/S,k=w>S?S/w:1;t.translate(b,x),t.rotate(C),t.scale(M,k),t.arc(0,0,P,O,_,1-E),t.scale(1/M,1/k),t.rotate(-C),t.translate(-b,-x)}break;case"Z":t.closePath()}if("Z"===h)c=u;else{var A=p.length;c=[p[A-2],p[A-1]]}}}},t.getMergedRegion=function(e){if(!e.length)return null;var t=[],n=[],r=[],o=[];return(0,i.each)(e,(function(e){var i=g(e);i&&(t.push(i.minX),n.push(i.minY),r.push(i.maxX),o.push(i.maxY))})),{minX:(0,i.min)(t),minY:(0,i.min)(n),maxX:(0,i.max)(r),maxY:(0,i.max)(o)}},t.getRefreshRegion=g,t.mergeView=function(e,t){return e&&t&&(0,c.intersectRect)(e,t)?{minX:Math.max(e.minX,t.minX),minY:Math.max(e.minY,t.minY),maxX:Math.min(e.maxX,t.maxX),maxY:Math.min(e.maxY,t.maxY)}:null},t.refreshElement=function(e,t){var n=e.get("canvas");n&&("remove"===t&&(e._cacheCanvasBBox=e.get("cacheCanvasBBox")),e.get("hasChanged")||(e.set("hasChanged",!0),e.cfg.parent&&e.cfg.parent.get("hasChanged")||(n.refreshElement(e,t,n),n.get("autoDraw")&&n.draw())))};var i=n(0),a=n(456),l=r(n(457)),c=n(53),s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!==typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(r,a,l):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}(n(189));function u(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}var d={fill:"fillStyle",stroke:"strokeStyle",opacity:"globalAlpha"};function f(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.cfg.visible)if(r.cfg.hasChanged)r.cfg.refresh=!0,r.isGroup()&&p(r.cfg.children,t);else if(r.cfg.refresh)r.isGroup()&&f(r.cfg.children,t);else{var o=h(r,t);r.cfg.refresh=o,o&&r.isGroup()&&f(r.cfg.children,t)}}}function p(e,t){for(var n=0;n<e.length;n++){var r=e[n];r.cfg.visible&&(r.cfg.refresh=!0,r.isGroup()&&p(r.get("children"),t))}}function h(e,t){var n=e.cfg.cacheCanvasBBox;return e.cfg.isInView&&n&&(0,c.intersectRect)(n,t)}function g(e){var t;if(e.destroyed)t=e._cacheCanvasBBox;else{var n=e.get("cacheCanvasBBox"),r=n&&!(!n.width||!n.height),o=e.getCanvasBBox(),i=o&&!(!o.width||!o.height);r&&i?t=(0,c.mergeRegion)(n,o):r?t=n:i&&(t=o)}return t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setClip=function(e,t){var n=e.getClip(),o=e.get("el");if(n){if(n&&!o.hasAttribute("clip-path")){(0,r.createDom)(n),n.createPath(t);var i=t.addClip(n);o.setAttribute("clip-path","url(#"+i+")")}}else o.removeAttribute("clip-path")},t.setShadow=function(e,t){var n=e.cfg.el,r=e.attr(),o={dx:r.shadowOffsetX,dy:r.shadowOffsetY,blur:r.shadowBlur,color:r.shadowColor};if(o.dx||o.dy||o.blur||o.color){var i=t.find("filter",o);i||(i=t.addShadow(o)),n.setAttribute("filter","url(#"+i+")")}else n.removeAttribute("filter")},t.setTransform=function(e){var t=e.attr().matrix;if(t){for(var n=e.cfg.el,r=[],o=0;o<9;o+=3)r.push(t[o]+","+t[o+1]);-1===(r=r.join(",")).indexOf("NaN")?n.setAttribute("transform","matrix("+r+")"):console.warn("invalid matrix:",t)}};var r=n(74)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getRectWithCornerRadius=t.getFunnelPath=t.getIntervalRectPath=t.getBackgroundRectPath=t.parseRadius=t.getRectPath=t.getRectPoints=void 0;var r=n(0),o=n(46);function i(e,t){void 0===t&&(t=!0);var n=[],r=e[0];n.push(["M",r.x,r.y]);for(var o=1,i=e.length;o<i;o++)n.push(["L",e[o].x,e[o].y]);return t&&(n.push(["L",r.x,r.y]),n.push(["z"])),n}function a(e,t){var n=0,o=0,i=0,a=0;return(0,r.isArray)(e)?1===e.length?n=o=i=a=e[0]:2===e.length?(n=i=e[0],o=a=e[1]):3===e.length?(n=e[0],o=a=e[1],i=e[2]):(n=e[0],o=e[1],i=e[2],a=e[3]):n=o=i=a=e,n+o>t&&(o=t-(n=n?t/(1+o/n):0)),i+a>t&&(a=t-(i=i?t/(1+a/i):0)),[n||0,o||0,i||0,a||0]}t.getRectPoints=function(e){var t,n,o,i,a=e.x,l=e.y,c=e.y0,s=e.size;(0,r.isArray)(l)?(t=l[0],n=l[1]):(t=c,n=l),(0,r.isArray)(a)?(o=a[0],i=a[1]):(o=a-s/2,i=a+s/2);var u=[{x:o,y:t},{x:o,y:n}];return u.push({x:i,y:n},{x:i,y:t}),u},t.getRectPath=i,t.parseRadius=a,t.getBackgroundRectPath=function(e,t,n){var i=[];if(n.isRect){var l=n.isTransposed?{x:n.start.x,y:t[0].y}:{x:t[0].x,y:n.start.y},c=n.isTransposed?{x:n.end.x,y:t[2].y}:{x:t[3].x,y:n.end.y},s=(0,r.get)(e,["background","style","radius"]);if(s){var u=n.isTransposed?Math.abs(t[0].y-t[2].y):t[2].x-t[1].x,d=n.isTransposed?n.getWidth():n.getHeight(),f=a(s,Math.min(u,d)),p=f[0],h=f[1],g=f[2],v=f[3];i.push(["M",l.x,c.y+p]),0!==p&&i.push(["A",p,p,0,0,1,l.x+p,c.y]),i.push(["L",c.x-h,c.y]),0!==h&&i.push(["A",h,h,0,0,1,c.x,c.y+h]),i.push(["L",c.x,l.y-g]),0!==g&&i.push(["A",g,g,0,0,1,c.x-g,l.y]),i.push(["L",l.x+v,l.y]),0!==v&&i.push(["A",v,v,0,0,1,l.x,l.y-v])}else i.push(["M",l.x,l.y]),i.push(["L",c.x,l.y]),i.push(["L",c.x,c.y]),i.push(["L",l.x,c.y]),i.push(["L",l.x,l.y]);i.push(["z"])}if(n.isPolar){var m=n.getCenter(),y=(0,o.getAngle)(e,n),b=y.startAngle,x=y.endAngle;if("theta"===n.type||n.isTransposed){var w=function(e){return Math.pow(e,2)};p=Math.sqrt(w(m.x-t[0].x)+w(m.y-t[0].y)),h=Math.sqrt(w(m.x-t[2].x)+w(m.y-t[2].y)),i=(0,o.getSectorPath)(m.x,m.y,p,n.startAngle,n.endAngle,h)}else i=(0,o.getSectorPath)(m.x,m.y,n.getRadius(),b,x)}return i},t.getIntervalRectPath=function(e,t,n){var r=n.getWidth(),o=n.getHeight(),a="rect"===n.type,l=[],c=(e[2].x-e[1].x)/2,s=n.isTransposed?c*o/r:c*r/o;return"round"===t?(a?(l.push(["M",e[0].x,e[0].y+s]),l.push(["L",e[1].x,e[1].y-s]),l.push(["A",c,c,0,0,1,e[2].x,e[2].y-s]),l.push(["L",e[3].x,e[3].y+s]),l.push(["A",c,c,0,0,1,e[0].x,e[0].y+s])):(l.push(["M",e[0].x,e[0].y]),l.push(["L",e[1].x,e[1].y]),l.push(["A",c,c,0,0,1,e[2].x,e[2].y]),l.push(["L",e[3].x,e[3].y]),l.push(["A",c,c,0,0,1,e[0].x,e[0].y])),l.push(["z"])):l=i(e),l},t.getFunnelPath=function(e,t,n){var o=[];return(0,r.isNil)(t)?n?o.push(["M",e[0].x,e[0].y],["L",e[1].x,e[1].y],["L",(e[2].x+e[3].x)/2,(e[2].y+e[3].y)/2],["Z"]):o.push(["M",e[0].x,e[0].y],["L",e[1].x,e[1].y],["L",e[2].x,e[2].y],["L",e[3].x,e[3].y],["Z"]):o.push(["M",e[0].x,e[0].y],["L",e[1].x,e[1].y],["L",t[1].x,t[1].y],["L",t[0].x,t[0].y],["Z"]),o},t.getRectWithCornerRadius=function(e,t,n){var r,o,i,l,c=e[0],s=e[1],u=e[2],d=e[3],f=[0,0,0,0],p=f[0],h=f[1],g=f[2],v=f[3];c.y<s.y?(s=e[0],c=e[1],d=e[2],u=e[3],v=(r=a(n,Math.min(d.x-c.x,c.y-s.y)))[0],g=r[1],h=r[2],p=r[3]):(p=(o=a(n,Math.min(d.x-c.x,c.y-s.y)))[0],h=o[1],g=o[2],v=o[3]),t.isTransposed&&(c=e[0],d=e[1],u=e[2],s=e[3],e[0].x>e[1].x?(d=e[0],c=e[1],s=e[2],u=e[3],p=(i=a(n,Math.min(d.x-c.x,c.y-s.y)))[0],v=i[1],g=i[2],h=i[3]):(h=(l=a(n,Math.min(d.x-c.x,c.y-s.y)))[0],g=l[1],v=l[2],p=l[3]));var m=[];return m.push(["M",s.x,s.y+p]),0!==p&&m.push(["A",p,p,0,0,1,s.x+p,s.y]),m.push(["L",u.x-h,u.y]),0!==h&&m.push(["A",h,h,0,0,1,u.x,u.y+h]),m.push(["L",d.x,d.y-g]),0!==g&&m.push(["A",g,g,0,0,1,d.x-g,d.y]),m.push(["L",c.x+v,c.y]),0!==v&&m.push(["A",v,v,0,0,1,c.x,c.y-v]),m.push(["L",s.x,s.y+p]),m.push(["z"]),m}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(0),i=(0,r.__importDefault)(n(44)),a=n(31),l=n(31),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.stateName="",t.ignoreItemStates=[],t}return(0,r.__extends)(t,e),t.prototype.getTriggerListInfo=function(){var e=(0,l.getDelegationObject)(this.context),t=null;return(0,l.isList)(e)&&(t={item:e.item,list:e.component}),t},t.prototype.getAllowComponents=function(){var e=this,t=this.context.view,n=(0,a.getComponents)(t),r=[];return(0,o.each)(n,(function(t){t.isList()&&e.allowSetStateByElement(t)&&r.push(t)})),r},t.prototype.hasState=function(e,t){return e.hasState(t,this.stateName)},t.prototype.clearAllComponentsState=function(){var e=this,t=this.getAllowComponents();(0,o.each)(t,(function(t){t.clearItemsState(e.stateName)}))},t.prototype.allowSetStateByElement=function(e){var t=e.get("field");if(!t)return!1;if(this.cfg&&this.cfg.componentNames){var n=e.get("name");if(-1===this.cfg.componentNames.indexOf(n))return!1}var r=this.context.view,o=(0,l.getScaleByField)(r,t);return o&&o.isCategory},t.prototype.allowSetStateByItem=function(e,t){var n=this.ignoreItemStates;return!n.length||0===n.filter((function(n){return t.hasState(e,n)})).length},t.prototype.setStateByElement=function(e,t,n){var r=e.get("field"),o=this.context.view,i=(0,l.getScaleByField)(o,r),a=(0,l.getElementValue)(t,r),c=i.getText(a);this.setItemsState(e,c,n)},t.prototype.setStateEnable=function(e){var t=this,n=(0,l.getCurrentElement)(this.context);if(n){var r=this.getAllowComponents();(0,o.each)(r,(function(r){t.setStateByElement(r,n,e)}))}else{var i=(0,l.getDelegationObject)(this.context);if((0,l.isList)(i)){var a=i.item,c=i.component;this.allowSetStateByElement(c)&&this.allowSetStateByItem(a,c)&&this.setItemState(c,a,e)}}},t.prototype.setItemsState=function(e,t,n){var r=this,i=e.getItems();(0,o.each)(i,(function(o){o.name===t&&r.setItemState(e,o,n)}))},t.prototype.setItemState=function(e,t,n){e.setItemState(t,this.stateName,n)},t.prototype.setState=function(){this.setStateEnable(!0)},t.prototype.reset=function(){this.setStateEnable(!1)},t.prototype.toggle=function(){var e=this.getTriggerListInfo();if(e&&e.item){var t=e.list,n=e.item,r=this.hasState(t,n);this.setItemState(t,n,!r)}},t.prototype.clear=function(){var e=this.getTriggerListInfo();e?e.list.clearItemsState(this.stateName):this.clearAllComponentsState()},t}(i.default);t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resizeObservers=void 0,t.resizeObservers=[]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pattern=void 0;var r=n(1),o=n(14),i=n(0),a=n(1075),l=n(15);t.pattern=function(e){var t=this;return function(n){var c,s=n.options,u=n.chart,d=s.pattern;return d?l.deepAssign({},n,{options:(c={},c[e]=function(n){for(var c,f,p,h=[],g=1;g<arguments.length;g++)h[g-1]=arguments[g];var v=u.getTheme().defaultColor,m=v,y=null===(f=null===(c=u.geometries)||void 0===c?void 0:c[0])||void 0===f?void 0:f.getAttribute("color");if(y){var b=y.getFields()[0],x=i.get(n,b);m=o.Util.getMappingValue(y,x,(null===(p=y.values)||void 0===p?void 0:p[0])||v)}var w=d;"function"===typeof d&&(w=d.call(t,n,m)),w instanceof CanvasPattern===!1&&(w=a.getCanvasPattern(l.deepAssign({},{cfg:{backgroundColor:m}},w)));var S=s[e];return r.__assign(r.__assign({},"function"===typeof S?S.call.apply(S,r.__spreadArrays([t,n],h)):S||{}),{fill:w||m})},c)}):n}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_OPTIONS=t.DEFAULT_TOOLTIP_OPTIONS=t.Y_FIELD=t.X_FIELD=void 0;var r=n(1),o=n(0);t.X_FIELD="x",t.Y_FIELD="y",t.DEFAULT_TOOLTIP_OPTIONS={showTitle:!1,shared:!0,showMarkers:!1,customContent:function(e,t){return""+o.get(t,[0,"data","y"],0)},containerTpl:'<div class="g2-tooltip"><div class="g2-tooltip-list"></div></div>',itemTpl:"<span>{value}</span>",domStyles:{"g2-tooltip":{padding:"2px 4px",fontSize:"10px"}},showCrosshairs:!0,crosshairs:{type:"x"}},t.DEFAULT_OPTIONS={appendPadding:2,tooltip:r.__assign({},t.DEFAULT_TOOLTIP_OPTIONS),animation:{}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,r,o){for(var i,a=e.children,l=-1,c=a.length,s=e.value&&(r-t)/e.value;++l<c;)(i=a[l]).y0=n,i.y1=o,i.x0=t,i.x1=t+=i.value*s}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Y_FIELD=t.X_FIELD=t.DEFAULT_TOOLTIP_OPTIONS=t.DEFAULT_OPTIONS=void 0;var r=n(1),o=n(0),i=(t.X_FIELD="x",t.Y_FIELD="y",t.DEFAULT_TOOLTIP_OPTIONS={showTitle:!1,shared:!0,showMarkers:!1,customContent:function(e,t){return""+(0,o.get)(t,[0,"data","y"],0)},containerTpl:'<div class="g2-tooltip"><div class="g2-tooltip-list"></div></div>',itemTpl:"<span>{value}</span>",domStyles:{"g2-tooltip":{padding:"2px 4px",fontSize:"10px"}},showCrosshairs:!0,crosshairs:{type:"x"}});t.DEFAULT_OPTIONS={appendPadding:2,tooltip:(0,r.__assign)({},i),animation:{}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NODE_INDEX_FIELD=t.NODE_ANCESTORS_FIELD=t.CHILD_NODE_COUNT=void 0,t.getAllNodes=function(e){var t,n,l=[];return e&&e.each?e.each((function(e){var c,s;e.parent!==t?(t=e.parent,n=0):n+=1;var u=(0,r.filter)(((null===(c=e.ancestors)||void 0===c?void 0:c.call(e))||[]).map((function(e){return l.find((function(t){return t.name===e.name}))||e})),(function(t){var n=t.depth;return n>0&&n<e.depth}));e[a]=u,e[i]=(null===(s=e.children)||void 0===s?void 0:s.length)||0,e[o]=n,l.push(e)})):e&&e.eachNode&&e.eachNode((function(e){l.push(e)})),l},t.getField=function(e,t){var n=e.field,o=e.fields;if((0,r.isString)(n))return n;if((0,r.isArray)(n))return console.warn(l),n[0];if(console.warn(l+" will try to get fields instead."),(0,r.isString)(o))return o;if((0,r.isArray)(o)&&o.length)return o[0];if(t)return t;throw new TypeError(l)};var r=n(0),o=t.NODE_INDEX_FIELD="nodeIndex",i=t.CHILD_NODE_COUNT="childNodeCount",a=t.NODE_ANCESTORS_FIELD="nodeAncestor",l="Invalid field: it must be a string!"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(21),i=(0,r.__importDefault)(n(90)),a=(0,r.__importDefault)(n(268));n(275);var l=n(452),c=n(453),s=function(e){function t(t){var n=e.call(this,t)||this;n.type="path",n.shapeType="line";var r=t.connectNulls,o=void 0!==r&&r,i=t.showSinglePoint,a=void 0===i||i;return n.connectNulls=o,n.showSinglePoint=a,n}return(0,r.__extends)(t,e),t.prototype.updateElements=function(e,t){void 0===t&&(t=!1);for(var n=new Map,r=new Map,o=[],i=0,s=0;s<e.length;s++){var u=e[s],d=this.getElementId(u);o.push(d),n.set(d,u),r.set(d,i),i++}this.elements=new Array(i);for(var f=(0,c.diff)(this.lastElementsMap,o),p=f.added,h=f.updated,g=f.removed,v=0,m=p;v<m.length;v++){d=m[v],u=n.get(d);var y=this.getShapeFactory(),b=this.getShapeInfo(u);s=r.get(d),(S=new a.default({shapeFactory:y,container:this.container,offscreenGroup:this.getOffscreenGroup(),elementIndex:s})).geometry=this,S.animate=this.animateOption,S.draw(b,t),this.elementsMap[d]=S,this.elements[s]=S}for(var x=0,w=h;x<w.length;x++){d=w[x],u=n.get(d);var S=this.lastElementsMap[d],O=(s=r.get(d),b=this.getShapeInfo(u),S.getModel());(this.isCoordinateChanged||(0,l.isModelChange)(O,b))&&(S.animate=this.animateOption,S.update(b)),this.elementsMap[d]=S,this.elements[s]=S}for(var _=0,C=g;_<C.length;_++)d=C[_],(S=this.lastElementsMap[d]).animate=this.animateOption,S.destroy()},t.prototype.getPointsAndData=function(e){for(var t=[],n=[],r=0,i=e.length;r<i;r++){var a=e[r];t.push({x:a.x,y:a.y}),n.push(a[o.FIELD_ORIGIN])}return{points:t,data:n}},t.prototype.getShapeInfo=function(e){var t=this.getDrawCfg(e[0]),n=this.getPointsAndData(e),r=n.points,o=n.data;return t.mappingData=e,t.data=o,t.isStack=!!this.getAdjust("stack"),t.points=r,t.connectNulls=this.connectNulls,t.showSinglePoint=this.showSinglePoint,t},t}(i.default);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.STATUS_ACTIVE=t.STATUS_UNACTIVE=void 0;var r=n(1),o=n(0),i=n(31),a=n(286),l=(0,r.__importDefault)(n(282)),c=n(21);t.STATUS_UNACTIVE=c.ELEMENT_STATE.INACTIVE,t.STATUS_ACTIVE=c.ELEMENT_STATE.ACTIVE;var s=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.stateName=t.STATUS_ACTIVE,n}return(0,r.__extends)(n,e),n.prototype.setElementsStateByItem=function(e,t,n,r){var o=this;this.setHighlightBy(e,(function(e){return o.isMathItem(e,t,n)}),r)},n.prototype.setElementHighlight=function(e,n){n(e)?(e.hasState(t.STATUS_UNACTIVE)&&e.setState(t.STATUS_UNACTIVE,!1),e.setState(t.STATUS_ACTIVE,!0)):e.hasState(t.STATUS_ACTIVE)||e.setState(t.STATUS_UNACTIVE,!0)},n.prototype.setHighlightBy=function(e,n,r){var a=this;if(r)(0,o.each)(e,(function(e){a.setElementHighlight(e,n)}));else{var l=(0,i.getElementsByState)(this.context.view,t.STATUS_ACTIVE),c=!0;(0,o.each)(l,(function(e){if(!n(e))return c=!1,!1})),c?this.clear():(0,o.each)(e,(function(e){n(e)&&(e.hasState(t.STATUS_ACTIVE)&&e.setState(t.STATUS_ACTIVE,!1),e.setState(t.STATUS_UNACTIVE,!0))}))}},n.prototype.setElementState=function(e,t){var n=this.context.view,r=(0,i.getElements)(n);this.setHighlightBy(r,(function(t){return e===t}),t)},n.prototype.highlight=function(){this.setState()},n.prototype.clear=function(){var e=this.context.view;(0,a.clearHighlight)(e)},n}(l.default);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.modifyCSS=t.createDom=t.removeDom=t.getChartSize=void 0;var r=n(21);function o(e){return"number"===typeof e&&!isNaN(e)}t.getChartSize=function(e,t,n,i){var a=n,l=i;if(t){var c=function(e){var t=getComputedStyle(e);return{width:(e.clientWidth||parseInt(t.width,10))-parseInt(t.paddingLeft,10)-parseInt(t.paddingRight,10),height:(e.clientHeight||parseInt(t.height,10))-parseInt(t.paddingTop,10)-parseInt(t.paddingBottom,10)}}(e);a=c.width?c.width:a,l=c.height?c.height:l}return{width:Math.max(o(a)?a:r.MIN_CHART_WIDTH,r.MIN_CHART_WIDTH),height:Math.max(o(l)?l:r.MIN_CHART_HEIGHT,r.MIN_CHART_HEIGHT)}},t.removeDom=function(e){var t=e.parentNode;t&&t.removeChild(e)};var i=n(95);Object.defineProperty(t,"createDom",{enumerable:!0,get:function(){return i.createDom}}),Object.defineProperty(t,"modifyCSS",{enumerable:!0,get:function(){return i.modifyCSS}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.antvLight=t.createLightStyleSheet=void 0;var r="#000",o="#595959",i="#8C8C8C",a="#BFBFBF",l="#D9D9D9",c="#F0F0F0",s="#FFFFFF",u=["#5B8FF9","#5AD8A6","#5D7092","#F6BD16","#6F5EF9","#6DC8EC","#945FB9","#FF9845","#1E9493","#FF99C3"],d=["#5B8FF9","#CDDDFD","#5AD8A6","#CDF3E4","#5D7092","#CED4DE","#F6BD16","#FCEBB9","#6F5EF9","#D3CEFD","#6DC8EC","#D3EEF9","#945FB9","#DECFEA","#FF9845","#FFE0C7","#1E9493","#BBDEDE","#FF99C3","#FFE0ED"],f=["#B8E1FF","#9AC5FF","#7DAAFF","#5B8FF9","#3D76DD","#085EC0","#0047A5","#00318A","#001D70"];t.createLightStyleSheet=function(e){void 0===e&&(e={});var t=e.backgroundColor,n=void 0===t?"transparent":t,p=e.subColor,h=void 0===p?"rgba(0,0,0,0.05)":p,g=e.paletteQualitative10,v=void 0===g?u:g,m=e.paletteQualitative20,y=void 0===m?d:m,b=e.paletteSemanticRed,x=void 0===b?"#F4664A":b,w=e.paletteSemanticGreen,S=void 0===w?"#30BF78":w,O=e.paletteSemanticYellow,_=void 0===O?"#FAAD14":O,C=e.paletteSequence,E=void 0===C?f:C,P=e.fontFamily,M=void 0===P?'"Segoe UI", Roboto, "Helvetica Neue", Arial,\n    "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",\n    "Noto Color Emoji"':P,k=e.brandColor,A=void 0===k?v[0]:k;return{backgroundColor:n,brandColor:A,subColor:h,paletteQualitative10:v,paletteQualitative20:y,paletteSemanticRed:x,paletteSemanticGreen:S,paletteSemanticYellow:_,paletteSequence:E,fontFamily:M,axisLineBorderColor:a,axisLineBorder:1,axisLineDash:null,axisTitleTextFillColor:o,axisTitleTextFontSize:12,axisTitleTextLineHeight:12,axisTitleTextFontWeight:"normal",axisTitleSpacing:12,axisTickLineBorderColor:a,axisTickLineLength:4,axisTickLineBorder:1,axisSubTickLineBorderColor:l,axisSubTickLineLength:2,axisSubTickLineBorder:1,axisLabelFillColor:i,axisLabelFontSize:12,axisLabelLineHeight:12,axisLabelFontWeight:"normal",axisLabelOffset:8,axisGridBorderColor:l,axisGridBorder:1,axisGridLineDash:null,legendTitleTextFillColor:i,legendTitleTextFontSize:12,legendTitleTextLineHeight:21,legendTitleTextFontWeight:"normal",legendMarkerColor:A,legendMarkerSpacing:8,legendMarkerSize:4,legendCircleMarkerSize:4,legendSquareMarkerSize:4,legendLineMarkerSize:5,legendItemNameFillColor:o,legendItemNameFontSize:12,legendItemNameLineHeight:12,legendItemNameFontWeight:"normal",legendItemSpacing:24,legendItemMarginBottom:12,legendPadding:[8,8,8,8],legendHorizontalPadding:[8,0,8,0],legendVerticalPadding:[0,8,0,8],legendPageNavigatorMarkerSize:12,legendPageNavigatorMarkerInactiveFillColor:r,legendPageNavigatorMarkerInactiveFillOpacity:.45,legendPageNavigatorMarkerFillColor:r,legendPageNavigatorMarkerFillOpacity:1,legendPageNavigatorTextFillColor:i,legendPageNavigatorTextFontSize:12,sliderRailFillColor:l,sliderRailBorder:0,sliderRailBorderColor:null,sliderRailWidth:100,sliderRailHeight:12,sliderLabelTextFillColor:i,sliderLabelTextFontSize:12,sliderLabelTextLineHeight:12,sliderLabelTextFontWeight:"normal",sliderHandlerFillColor:c,sliderHandlerWidth:10,sliderHandlerHeight:14,sliderHandlerBorder:1,sliderHandlerBorderColor:a,annotationArcBorderColor:l,annotationArcBorder:1,annotationLineBorderColor:a,annotationLineBorder:1,annotationLineDash:null,annotationTextFillColor:o,annotationTextFontSize:12,annotationTextLineHeight:12,annotationTextFontWeight:"normal",annotationTextBorderColor:null,annotationTextBorder:0,annotationRegionFillColor:r,annotationRegionFillOpacity:.06,annotationRegionBorder:0,annotationRegionBorderColor:null,annotationDataMarkerLineLength:16,tooltipCrosshairsBorderColor:a,tooltipCrosshairsBorder:1,tooltipCrosshairsLineDash:null,tooltipContainerFillColor:"rgb(255, 255, 255)",tooltipContainerFillOpacity:.95,tooltipContainerShadow:"0px 0px 10px #aeaeae",tooltipContainerBorderRadius:3,tooltipTextFillColor:o,tooltipTextFontSize:12,tooltipTextLineHeight:12,tooltipTextFontWeight:"bold",labelFillColor:o,labelFillColorDark:"#2c3542",labelFillColorLight:"#ffffff",labelFontSize:12,labelLineHeight:12,labelFontWeight:"normal",labelBorderColor:null,labelBorder:0,innerLabelFillColor:s,innerLabelFontSize:12,innerLabelLineHeight:12,innerLabelFontWeight:"normal",innerLabelBorderColor:null,innerLabelBorder:0,overflowLabelFillColor:o,overflowLabelFontSize:12,overflowLabelLineHeight:12,overflowLabelFontWeight:"normal",overflowLabelBorderColor:s,overflowLabelBorder:1,labelLineBorder:1,labelLineBorderColor:a,cSliderRailHieght:16,cSliderBackgroundFillColor:"#416180",cSliderBackgroundFillOpacity:.05,cSliderForegroundFillColor:"#5B8FF9",cSliderForegroundFillOpacity:.15,cSliderHandlerHeight:24,cSliderHandlerWidth:10,cSliderHandlerFillColor:"#F7F7F7",cSliderHandlerFillOpacity:1,cSliderHandlerHighlightFillColor:"#FFF",cSliderHandlerBorderColor:"#BFBFBF",cSliderHandlerBorder:1,cSliderHandlerBorderRadius:2,cSliderTextFillColor:"#000",cSliderTextFillOpacity:.45,cSliderTextFontSize:12,cSliderTextLineHeight:12,cSliderTextFontWeight:"normal",cSliderTextBorderColor:null,cSliderTextBorder:0,scrollbarTrackFillColor:"rgba(0,0,0,0)",scrollbarThumbFillColor:"rgba(0,0,0,0.15)",scrollbarThumbHighlightFillColor:"rgba(0,0,0,0.2)",pointFillColor:A,pointFillOpacity:.95,pointSize:4,pointBorder:1,pointBorderColor:s,pointBorderOpacity:1,pointActiveBorderColor:r,pointSelectedBorder:2,pointSelectedBorderColor:r,pointInactiveFillOpacity:.3,pointInactiveBorderOpacity:.3,hollowPointSize:4,hollowPointBorder:1,hollowPointBorderColor:A,hollowPointBorderOpacity:.95,hollowPointFillColor:s,hollowPointActiveBorder:1,hollowPointActiveBorderColor:r,hollowPointActiveBorderOpacity:1,hollowPointSelectedBorder:2,hollowPointSelectedBorderColor:r,hollowPointSelectedBorderOpacity:1,hollowPointInactiveBorderOpacity:.3,lineBorder:2,lineBorderColor:A,lineBorderOpacity:1,lineActiveBorder:3,lineSelectedBorder:3,lineInactiveBorderOpacity:.3,areaFillColor:A,areaFillOpacity:.25,areaActiveFillColor:A,areaActiveFillOpacity:.5,areaSelectedFillColor:A,areaSelectedFillOpacity:.5,areaInactiveFillOpacity:.3,hollowAreaBorderColor:A,hollowAreaBorder:2,hollowAreaBorderOpacity:1,hollowAreaActiveBorder:3,hollowAreaActiveBorderColor:r,hollowAreaSelectedBorder:3,hollowAreaSelectedBorderColor:r,hollowAreaInactiveBorderOpacity:.3,intervalFillColor:A,intervalFillOpacity:.95,intervalActiveBorder:1,intervalActiveBorderColor:r,intervalActiveBorderOpacity:1,intervalSelectedBorder:2,intervalSelectedBorderColor:r,intervalSelectedBorderOpacity:1,intervalInactiveBorderOpacity:.3,intervalInactiveFillOpacity:.3,hollowIntervalBorder:2,hollowIntervalBorderColor:A,hollowIntervalBorderOpacity:1,hollowIntervalFillColor:s,hollowIntervalActiveBorder:2,hollowIntervalActiveBorderColor:r,hollowIntervalSelectedBorder:3,hollowIntervalSelectedBorderColor:r,hollowIntervalSelectedBorderOpacity:1,hollowIntervalInactiveBorderOpacity:.3}},t.antvLight=(0,t.createLightStyleSheet)()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pathIn=void 0,t.pathIn=function(e,t,n){var r=e.getTotalLength();e.attr("lineDash",[r]),e.animate((function(e){return{lineDashOffset:(1-e)*r}}),t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(0),i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.__extends)(t,e),t.prototype.getLabelValueDir=function(e){var t=e.points;return t[0].y<=t[2].y?1:-1},t.prototype.getLabelOffsetPoint=function(t,n,o,i){var a,l=e.prototype.getLabelOffsetPoint.call(this,t,n,o),c=this.getCoordinate(),s=c.isTransposed?"x":"y",u=this.getLabelValueDir(t.mappingData);return l=(0,r.__assign)((0,r.__assign)({},l),((a={})[s]=l[s]*u,a)),c.isReflect("x")&&(l=(0,r.__assign)((0,r.__assign)({},l),{x:-1*l.x})),c.isReflect("y")&&(l=(0,r.__assign)((0,r.__assign)({},l),{y:-1*l.y})),l},t.prototype.getThemedLabelCfg=function(e){var t=this.geometry,n=this.getDefaultLabelCfg(),r=t.theme;return(0,o.deepMix)({},n,r.labels,"middle"===e.position?{offset:0}:{},e)},t.prototype.setLabelPosition=function(e,t,n,r){var i,a,l,c,s=this.getCoordinate(),u=s.isTransposed,d=t.points,f=s.convert(d[0]),p=s.convert(d[2]),h=this.getLabelValueDir(t),g=(0,o.isArray)(t.shape)?t.shape[0]:t.shape;if("funnel"===g||"pyramid"===g){var v=(0,o.get)(t,"nextPoints"),m=(0,o.get)(t,"points");if(v){var y=s.convert(m[0]),b=s.convert(m[1]),x=s.convert(v[0]),w=s.convert(v[1]);u?(i=Math.min(x.y,y.y),l=Math.max(x.y,y.y),a=(b.x+w.x)/2,c=(y.x+x.x)/2):(i=Math.min((b.y+w.y)/2,(y.y+x.y)/2),l=Math.max((b.y+w.y)/2,(y.y+x.y)/2),a=w.x,c=y.x)}else i=Math.min(p.y,f.y),l=Math.max(p.y,f.y),a=p.x,c=f.x}else i=Math.min(p.y,f.y),l=Math.max(p.y,f.y),a=p.x,c=f.x;switch(r){case"right":e.x=a,e.y=(i+l)/2,e.textAlign=(0,o.get)(e,"textAlign",h>0?"left":"right");break;case"left":e.x=c,e.y=(i+l)/2,e.textAlign=(0,o.get)(e,"textAlign",h>0?"left":"right");break;case"bottom":u&&(e.x=(a+c)/2),e.y=l,e.textAlign=(0,o.get)(e,"textAlign","center"),e.textBaseline=(0,o.get)(e,"textBaseline",h>0?"bottom":"top");break;case"middle":u&&(e.x=(a+c)/2),e.y=(i+l)/2,e.textAlign=(0,o.get)(e,"textAlign","center"),e.textBaseline=(0,o.get)(e,"textBaseline","middle");break;case"top":u&&(e.x=(a+c)/2),e.y=i,e.textAlign=(0,o.get)(e,"textAlign","center"),e.textBaseline=(0,o.get)(e,"textBaseline",h>0?"bottom":"top")}},t}((0,r.__importDefault)(n(99)).default);t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(0),i=n(48),a=n(46),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.defaultLayout="distribute",t}return(0,r.__extends)(t,e),t.prototype.getDefaultLabelCfg=function(t,n){var r=e.prototype.getDefaultLabelCfg.call(this,t,n);return(0,o.deepMix)({},r,(0,o.get)(this.geometry.theme,"pieLabels",{}))},t.prototype.getLabelOffset=function(t){return e.prototype.getLabelOffset.call(this,t)||0},t.prototype.getLabelRotate=function(e,t,n){var r;return t<0&&((r=e)>Math.PI/2&&(r-=Math.PI),r<-Math.PI/2&&(r+=Math.PI)),r},t.prototype.getLabelAlign=function(e){var t,n=this.getCoordinate().getCenter();return t=e.angle<=Math.PI/2&&e.x>=n.x?"left":"right",e.offset<=0&&(t="right"===t?"left":"right"),t},t.prototype.getArcPoint=function(e){return e},t.prototype.getPointAngle=function(e){var t,n=this.getCoordinate(),r={x:(0,o.isArray)(e.x)?e.x[0]:e.x,y:e.y[0]},a={x:(0,o.isArray)(e.x)?e.x[1]:e.x,y:e.y[1]},l=(0,i.getAngleByPoint)(n,r);if(e.points&&e.points[0].y===e.points[1].y)t=l;else{var c=(0,i.getAngleByPoint)(n,a);l>=c&&(c+=2*Math.PI),t=l+(c-l)/2}return t},t.prototype.getCirclePoint=function(e,t){var n=this.getCoordinate(),o=n.getCenter(),i=n.getRadius()+t;return(0,r.__assign)((0,r.__assign)({},(0,a.polarToCartesian)(o.x,o.y,i,e)),{angle:e,r:i})},t}((0,r.__importDefault)(n(215)).default);t.default=l},function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n(4),o=n.n(r),i=n(3),a=n.n(i),l=n(50),c=n.n(l),s=n(625),u=n.n(s),d=n(61),f=n.n(d),p=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return c()(e)||a.a.isValidElement(e)?{visible:!0,text:e}:u()(e)?{visible:e}:f()(e)?o()({visible:!0},e):{visible:t}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return S}));var r=n(12),o=n.n(r),i=n(13),a=n.n(i),l=n(5),c=n.n(l),s=n(9),u=n.n(s),d=n(10),f=n.n(d),p=n(204),h=n(126),g=n.n(h),v=n(0),m=n(8);function y(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=c()(e);if(t){var o=c()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return a()(this,n)}}var b={},x=function(){function e(t){u()(this,e),this.cfg={shared:!0},this.chartMap={},this.state={},this.id=Object(v.uniqueId)("bx-action"),this.type=t||"tooltip"}return f()(e,[{key:"connect",value:function(e,t,n){return this.chartMap[e]={chart:t,pointFinder:n},t.interaction("connect-".concat(this.type,"-").concat(this.id)),"tooltip"===this.type&&this.cfg.shared&&void 0===Object(v.get)(t,["options","tooltip","shared"])&&Object(v.set)(t,["options","tooltip","shared"],!0),this}},{key:"unConnect",value:function(e){this.chartMap[e].chart.removeInteraction("connect-".concat(this.type,"-").concat(this.id)),delete this.chartMap[e]}},{key:"destroy",value:function(){Object(p.unregisterAction)("connect-".concat(this.type,"-").concat(this.id))}}]),e}(),w=function(){var e=new x("tooltip");return Object(m.registerAction)("connect-tooltip-".concat(e.id),function(t){o()(r,t);var n=y(r);function r(){var t;return u()(this,r),(t=n.apply(this,arguments)).CM=e,t}return f()(r,[{key:"showTooltip",value:function(e,t){var n=e.getTooltipItems(t)||t;Object(v.forIn)(this.CM.chartMap,(function(e){var r=e.chart,o=e.pointFinder;if(!r.destroyed&&r.visible)if(o){var i=o(n,r);i&&r.showTooltip(i)}else r.showTooltip(t)}))}},{key:"hideTooltip",value:function(){Object(v.forIn)(this.CM.chartMap,(function(e){return e.chart.hideTooltip()}))}}]),r}(g.a)),Object(m.registerInteraction)("connect-tooltip-".concat(e.id),{start:[{trigger:"plot:mousemove",action:"connect-tooltip-".concat(e.id,":show")}],end:[{trigger:"plot:mouseleave",action:"connect-tooltip-".concat(e.id,":hide")}]}),e},S=function(e,t,n,r,o){var i=b[e];null===n&&i?i.unConnect(t):i?i.connect(t,n,o):(b[e]=w(),b[e].cfg.shared=!!r,b[e].connect(t,n,o))};t.a=w},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.growInXY=t.growInY=t.growInX=void 0;var r=n(956);t.growInX=function(e,t,n){var o=n.coordinate,i=n.minYPoint;(0,r.doScaleAnimate)(e,t,o,i,"x")},t.growInY=function(e,t,n){var o=n.coordinate,i=n.minYPoint;(0,r.doScaleAnimate)(e,t,o,i,"y")},t.growInXY=function(e,t,n){var o=n.coordinate,i=n.minYPoint;(0,r.doScaleAnimate)(e,t,o,i,"xy")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(23),o=n(1059);function i(e,t,n,a){for(var l in n=n||0,a=a||5,t)if(t.hasOwnProperty(l)){var c=t[l];null!==c&&o.default(c)?(o.default(e[l])||(e[l]={}),n<a?i(e[l],c,n+1,a):e[l]=t[l]):r.default(c)?(e[l]=[],e[l]=e[l].concat(c)):void 0!==c&&(e[l]=c)}}t.default=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0;r<t.length;r+=1)i(e,t[r]);return e}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(6));t.default=function(e){var t=(0,o.default)(e);return null!==e&&"object"===t||"function"===t}},function(e,t,n){"use strict";var r=n(6);Object.defineProperty(t,"__esModule",{value:!0}),t.vec4=t.vec3=t.vec2=t.quat2=t.quat=t.mat4=t.mat3=t.mat2d=t.mat2=t.glMatrix=void 0;var o=g(n(79));t.glMatrix=o;var i=g(n(753));t.mat2=i;var a=g(n(754));t.mat2d=a;var l=g(n(397));t.mat3=l;var c=g(n(398));t.mat4=c;var s=g(n(399));t.quat=s;var u=g(n(755));t.quat2=u;var d=g(n(401));t.vec2=d;var f=g(n(171));t.vec3=f;var p=g(n(400));function h(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(h=function(e){return e?n:t})(e)}function g(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var n=h(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(o,a,l):o[a]=e[a]}return o.default=e,n&&n.set(e,o),o}t.vec4=p},function(e,t,n){"use strict";var r=n(6);Object.defineProperty(t,"__esModule",{value:!0}),t.add=function(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e[2]=t[2]+n[2],e},t.angle=function(e,t){var n=e[0],r=e[1],o=e[2],i=t[0],a=t[1],l=t[2],c=Math.sqrt(n*n+r*r+o*o),s=Math.sqrt(i*i+a*a+l*l),u=c*s,d=u&&h(e,t)/u;return Math.acos(Math.min(Math.max(d,-1),1))},t.bezier=function(e,t,n,r,o,i){var a=1-i,l=a*a,c=i*i,s=l*a,u=3*i*l,d=3*c*a,f=c*i;return e[0]=t[0]*s+n[0]*u+r[0]*d+o[0]*f,e[1]=t[1]*s+n[1]*u+r[1]*d+o[1]*f,e[2]=t[2]*s+n[2]*u+r[2]*d+o[2]*f,e},t.ceil=function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e},t.clone=function(e){var t=new o.ARRAY_TYPE(3);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t},t.copy=function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e},t.create=a,t.cross=function(e,t,n){var r=t[0],o=t[1],i=t[2],a=n[0],l=n[1],c=n[2];return e[0]=o*c-i*l,e[1]=i*a-r*c,e[2]=r*l-o*a,e},t.dist=void 0,t.distance=d,t.div=void 0,t.divide=u,t.dot=h,t.equals=function(e,t){var n=e[0],r=e[1],i=e[2],a=t[0],l=t[1],c=t[2];return Math.abs(n-a)<=o.EPSILON*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(r-l)<=o.EPSILON*Math.max(1,Math.abs(r),Math.abs(l))&&Math.abs(i-c)<=o.EPSILON*Math.max(1,Math.abs(i),Math.abs(c))},t.exactEquals=function(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]},t.floor=function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e},t.forEach=void 0,t.fromValues=function(e,t,n){var r=new o.ARRAY_TYPE(3);return r[0]=e,r[1]=t,r[2]=n,r},t.hermite=function(e,t,n,r,o,i){var a=i*i,l=a*(2*i-3)+1,c=a*(i-2)+i,s=a*(i-1),u=a*(3-2*i);return e[0]=t[0]*l+n[0]*c+r[0]*s+o[0]*u,e[1]=t[1]*l+n[1]*c+r[1]*s+o[1]*u,e[2]=t[2]*l+n[2]*c+r[2]*s+o[2]*u,e},t.inverse=function(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e},t.len=void 0,t.length=l,t.lerp=function(e,t,n,r){var o=t[0],i=t[1],a=t[2];return e[0]=o+r*(n[0]-o),e[1]=i+r*(n[1]-i),e[2]=a+r*(n[2]-a),e},t.max=function(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e[2]=Math.max(t[2],n[2]),e},t.min=function(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e[2]=Math.min(t[2],n[2]),e},t.mul=void 0,t.multiply=s,t.negate=function(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e},t.normalize=function(e,t){var n=t[0],r=t[1],o=t[2],i=n*n+r*r+o*o;return i>0&&(i=1/Math.sqrt(i)),e[0]=t[0]*i,e[1]=t[1]*i,e[2]=t[2]*i,e},t.random=function(e,t){t=t||1;var n=2*o.RANDOM()*Math.PI,r=2*o.RANDOM()-1,i=Math.sqrt(1-r*r)*t;return e[0]=Math.cos(n)*i,e[1]=Math.sin(n)*i,e[2]=r*t,e},t.rotateX=function(e,t,n,r){var o=[],i=[];return o[0]=t[0]-n[0],o[1]=t[1]-n[1],o[2]=t[2]-n[2],i[0]=o[0],i[1]=o[1]*Math.cos(r)-o[2]*Math.sin(r),i[2]=o[1]*Math.sin(r)+o[2]*Math.cos(r),e[0]=i[0]+n[0],e[1]=i[1]+n[1],e[2]=i[2]+n[2],e},t.rotateY=function(e,t,n,r){var o=[],i=[];return o[0]=t[0]-n[0],o[1]=t[1]-n[1],o[2]=t[2]-n[2],i[0]=o[2]*Math.sin(r)+o[0]*Math.cos(r),i[1]=o[1],i[2]=o[2]*Math.cos(r)-o[0]*Math.sin(r),e[0]=i[0]+n[0],e[1]=i[1]+n[1],e[2]=i[2]+n[2],e},t.rotateZ=function(e,t,n,r){var o=[],i=[];return o[0]=t[0]-n[0],o[1]=t[1]-n[1],o[2]=t[2]-n[2],i[0]=o[0]*Math.cos(r)-o[1]*Math.sin(r),i[1]=o[0]*Math.sin(r)+o[1]*Math.cos(r),i[2]=o[2],e[0]=i[0]+n[0],e[1]=i[1]+n[1],e[2]=i[2]+n[2],e},t.round=function(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e},t.scale=function(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e},t.scaleAndAdd=function(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e[2]=t[2]+n[2]*r,e},t.set=function(e,t,n,r){return e[0]=t,e[1]=n,e[2]=r,e},t.sqrLen=t.sqrDist=void 0,t.squaredDistance=f,t.squaredLength=p,t.str=function(e){return"vec3("+e[0]+", "+e[1]+", "+e[2]+")"},t.sub=void 0,t.subtract=c,t.transformMat3=function(e,t,n){var r=t[0],o=t[1],i=t[2];return e[0]=r*n[0]+o*n[3]+i*n[6],e[1]=r*n[1]+o*n[4]+i*n[7],e[2]=r*n[2]+o*n[5]+i*n[8],e},t.transformMat4=function(e,t,n){var r=t[0],o=t[1],i=t[2],a=n[3]*r+n[7]*o+n[11]*i+n[15];return a=a||1,e[0]=(n[0]*r+n[4]*o+n[8]*i+n[12])/a,e[1]=(n[1]*r+n[5]*o+n[9]*i+n[13])/a,e[2]=(n[2]*r+n[6]*o+n[10]*i+n[14])/a,e},t.transformQuat=function(e,t,n){var r=n[0],o=n[1],i=n[2],a=n[3],l=t[0],c=t[1],s=t[2],u=o*s-i*c,d=i*l-r*s,f=r*c-o*l,p=o*f-i*d,h=i*u-r*f,g=r*d-o*u,v=2*a;return u*=v,d*=v,f*=v,p*=2,h*=2,g*=2,e[0]=l+u+p,e[1]=c+d+h,e[2]=s+f+g,e},t.zero=function(e){return e[0]=0,e[1]=0,e[2]=0,e};var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var n=i(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&Object.prototype.hasOwnProperty.call(e,l)){var c=a?Object.getOwnPropertyDescriptor(e,l):null;c&&(c.get||c.set)?Object.defineProperty(o,l,c):o[l]=e[l]}return o.default=e,n&&n.set(e,o),o}(n(79));function i(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(i=function(e){return e?n:t})(e)}function a(){var e=new o.ARRAY_TYPE(3);return o.ARRAY_TYPE!=Float32Array&&(e[0]=0,e[1]=0,e[2]=0),e}function l(e){var t=e[0],n=e[1],r=e[2];return Math.hypot(t,n,r)}function c(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e[2]=t[2]-n[2],e}function s(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e[2]=t[2]*n[2],e}function u(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e[2]=t[2]/n[2],e}function d(e,t){var n=t[0]-e[0],r=t[1]-e[1],o=t[2]-e[2];return Math.hypot(n,r,o)}function f(e,t){var n=t[0]-e[0],r=t[1]-e[1],o=t[2]-e[2];return n*n+r*r+o*o}function p(e){var t=e[0],n=e[1],r=e[2];return t*t+n*n+r*r}function h(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}t.sub=c,t.mul=s,t.div=u,t.dist=d,t.sqrDist=f,t.len=l,t.sqrLen=p,t.forEach=function(){var e=a();return function(t,n,r,o,i,a){var l,c;for(n||(n=3),r||(r=0),c=o?Math.min(o*n+r,t.length):t.length,l=r;l<c;l+=n)e[0]=t[l],e[1]=t[l+1],e[2]=t[l+2],i(e,e,a),t[l]=e[0],t[l+1]=e[1],t[l+2]=e[2];return t}}()},function(e,t,n){"use strict";var r=n(2),o=n(6);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n,r=(0,i.default)(t);return null==t||"boolean"===r?(0,p.default)(t):("number"===r?u.default:"string"===r?(n=(0,a.color)(t))?(t=n,l.default):f.default:t instanceof a.color?l.default:t instanceof Date?s.default:(0,h.isNumberArray)(t)?h.default:Array.isArray(t)?c.genericArray:"function"!==typeof t.valueOf&&"function"!==typeof t.toString||isNaN(t)?d.default:u.default)(e,t)};var i=r(n(6)),a=n(60),l=r(n(403)),c=n(406),s=r(n(407)),u=r(n(173)),d=r(n(408)),f=r(n(409)),p=r(n(405)),h=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!==typeof e)return{default:e};var n=g(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(r,a,l):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}(n(247));function g(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(g=function(e){return e?n:t})(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}},function(e,t,n){"use strict";var r=n(6);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(87),i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&Object.prototype.hasOwnProperty.call(e,l)){var c=i?Object.getOwnPropertyDescriptor(e,l):null;c&&(c.get||c.set)?Object.defineProperty(o,l,c):o[l]=e[l]}return o.default=e,n&&n.set(e,o),o}(n(401));function a(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}t.default={box:function(e,t,n,r){return(0,o.getBBoxByArray)([e,n],[t,r])},length:function(e,t,n,r){return(0,o.distance)(e,t,n,r)},pointAt:function(e,t,n,r,o){return{x:(1-o)*e+o*n,y:(1-o)*t+o*r}},pointDistance:function(e,t,n,r,i,a){var l=(n-e)*(i-e)+(r-t)*(a-t);return l<0?(0,o.distance)(e,t,i,a):l>(n-e)*(n-e)+(r-t)*(r-t)?(0,o.distance)(n,r,i,a):this.pointToLine(e,t,n,r,i,a)},pointToLine:function(e,t,n,r,o,a){var l=[n-e,r-t];if(i.exactEquals(l,[0,0]))return Math.sqrt((o-e)*(o-e)+(a-t)*(a-t));var c=[-l[1],l[0]];i.normalize(c,c);var s=[o-e,a-t];return Math.abs(i.dot(s,c))},tangentAngle:function(e,t,n,r){return Math.atan2(r-t,n-e)}}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.__assign=void 0,t.__asyncDelegator=function(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,o){t[r]=e[r]?function(t){return(n=!n)?{value:s(e[r](t)),done:"return"===r}:o?o(t):t}:o}},t.__asyncGenerator=function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){o[e]&&(r[e]=function(t){return new Promise((function(n,r){i.push([e,t,n,r])>1||l(e,t)}))})}function l(e,t){try{(n=o[e](t)).value instanceof s?Promise.resolve(n.value.v).then(c,u):d(i[0][2],n)}catch(r){d(i[0][3],r)}var n}function c(e){l("next",e)}function u(e){l("throw",e)}function d(e,t){e(t),i.shift(),i.length&&l(i[0][0],i[0][1])}},t.__asyncValues=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=l(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,o,(t=e[n](t)).done,t.value)}))}}},t.__await=s,t.__awaiter=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(t){i(t)}}function l(e){try{c(r.throw(e))}catch(t){i(t)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}c((r=r.apply(e,t||[])).next())}))},t.__classPrivateFieldGet=function(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)},t.__classPrivateFieldSet=function(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n},t.__createBinding=function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]},t.__decorate=function(e,t,n,r){var i,a=arguments.length,l=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"===typeof Reflect?"undefined":(0,o.default)(Reflect))&&"function"===typeof Reflect.decorate)l=Reflect.decorate(e,t,n,r);else for(var c=e.length-1;c>=0;c--)(i=e[c])&&(l=(a<3?i(l):a>3?i(t,n,l):i(t,n))||l);return a>3&&l&&Object.defineProperty(t,n,l),l},t.__exportStar=function(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||(t[n]=e[n])},t.__extends=function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},t.__generator=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(l){i=[6,l],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}},t.__importDefault=function(e){return e&&e.__esModule?e:{default:e}},t.__importStar=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},t.__makeTemplateObject=function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},t.__metadata=function(e,t){if("object"===("undefined"===typeof Reflect?"undefined":(0,o.default)(Reflect))&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},t.__param=function(e,t){return function(n,r){t(n,r,e)}},t.__read=c,t.__rest=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(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},t.__spread=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(c(arguments[t]));return e},t.__spreadArrays=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,l=i.length;a<l;a++,o++)r[o]=i[a];return r},t.__values=l;var o=r(n(6)),i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},i(e,t)},a=t.__assign=function(){return t.__assign=a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},a.apply(this,arguments)};function l(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function c(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(l){o={error:l}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function s(e){return this instanceof s?(this.v=e,this):new s(e)}},function(e,t,n){"use strict";var r=n(2),o=n(6);Object.defineProperty(t,"__esModule",{value:!0}),t.YEAR=t.SECOND=t.MONTH=t.MINUTE=t.HOUR=t.DAY=void 0,t.getTickInterval=function(e,t,n){var r=(t-e)/n,o=(0,c.default)((function(e){return e[1]}))(v,r)-1,a=v[o];return o<0?a=v[0]:o>=v.length&&(a=(0,i.last)(v)),a},t.timeFormat=function(e,t){return(l[u]||a.default[u])(e,t)},t.toTimeStamp=function(e){return(0,i.isString)(e)&&(e=e.indexOf("T")>0?new Date(e).getTime():new Date(e.replace(/-/gi,"/")).getTime()),(0,i.isDate)(e)&&(e=e.getTime()),e};var i=n(0),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!==typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(r,a,l):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}(n(833)),l=a,c=r(n(834));function s(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}var u="format",d=t.SECOND=1e3,f=t.MINUTE=60*d,p=t.HOUR=60*f,h=t.DAY=24*p,g=t.MONTH=31*h,v=(t.YEAR=365*h,[["HH:mm:ss",d],["HH:mm:ss",10*d],["HH:mm:ss",30*d],["HH:mm",f],["HH:mm",10*f],["HH:mm",30*f],["HH",p],["HH",6*p],["HH",12*p],["YYYY-MM-DD",h],["YYYY-MM-DD",4*h],["YYYY-WW",7*h],["YYYY-MM",g],["YYYY-MM",4*g],["YYYY-MM",6*g],["YYYY",380*h]])},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(1),i=n(0),a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isContinuous=!0,t}return(0,o.__extends)(t,e),t.prototype.scale=function(e){if((0,i.isNil)(e))return NaN;var t=this.rangeMin(),n=this.rangeMax();return this.max===this.min?t:t+this.getScalePercent(e)*(n-t)},t.prototype.init=function(){e.prototype.init.call(this);var t=this.ticks,n=(0,i.head)(t),r=(0,i.last)(t);n<this.min&&(this.min=n),r>this.max&&(this.max=r),(0,i.isNil)(this.minLimit)||(this.min=n),(0,i.isNil)(this.maxLimit)||(this.max=r)},t.prototype.setDomain=function(){var e=(0,i.getRange)(this.values),t=e.min,n=e.max;(0,i.isNil)(this.min)&&(this.min=t),(0,i.isNil)(this.max)&&(this.max=n),this.min>this.max&&(this.min=t,this.max=n)},t.prototype.calculateTicks=function(){var t=this,n=e.prototype.calculateTicks.call(this);return this.nice||(n=(0,i.filter)(n,(function(e){return e>=t.min&&e<=t.max}))),n},t.prototype.getScalePercent=function(e){var t=this.max,n=this.min;return(e-n)/(t-n)},t.prototype.getInvertPercent=function(e){return(e-this.rangeMin())/(this.rangeMax()-this.rangeMin())},t}(r(n(141)).default);t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.calBase=function(e,t){var n=Math.E;return t>=0?Math.pow(n,Math.log(t)/e):-1*Math.pow(n,Math.log(-t)/e)},t.getLogPositiveMin=function(e,t,n){(0,r.isNil)(n)&&(n=Math.max.apply(null,e));var o=n;return(0,r.each)(e,(function(e){e>0&&e<o&&(o=e)})),o===n&&(o=n/t),o>1&&(o=1),o},t.log=function(e,t){return 1===e?1:Math.log(t)/Math.log(e)},t.precisionAdd=function(e,t){var n=o(e),r=o(t),i=Math.pow(10,Math.max(n,r));return(e*i+t*i)/i};var r=n(0);function o(e){var t=e.toString().split(/[eE]/),n=(t[0].split(".")[1]||"").length-+(t[1]||0);return n>0?n:0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(1),o=n(32),i=n(0),a=function(){function e(e){this.type="coordinate",this.isRect=!1,this.isHelix=!1,this.isPolar=!1,this.isReflectX=!1,this.isReflectY=!1;var t=e.start,n=e.end,o=e.matrix,i=void 0===o?[1,0,0,0,1,0,0,0,1]:o,a=e.isTransposed,l=void 0!==a&&a;this.start=t,this.end=n,this.matrix=i,this.originalMatrix=(0,r.__spreadArray)([],i),this.isTransposed=l}return e.prototype.initial=function(){this.center={x:(this.start.x+this.end.x)/2,y:(this.start.y+this.end.y)/2},this.width=Math.abs(this.end.x-this.start.x),this.height=Math.abs(this.end.y-this.start.y)},e.prototype.update=function(e){(0,i.assign)(this,e),this.initial()},e.prototype.convertDim=function(e,t){var n,r=this[t],o=r.start,i=r.end;return this.isReflect(t)&&(o=(n=[i,o])[0],i=n[1]),o+e*(i-o)},e.prototype.invertDim=function(e,t){var n,r=this[t],o=r.start,i=r.end;return this.isReflect(t)&&(o=(n=[i,o])[0],i=n[1]),(e-o)/(i-o)},e.prototype.applyMatrix=function(e,t,n){void 0===n&&(n=0);var r=this.matrix,i=[e,t,n];return o.vec3.transformMat3(i,i,r),i},e.prototype.invertMatrix=function(e,t,n){void 0===n&&(n=0);var r=this.matrix,i=o.mat3.invert([0,0,0,0,0,0,0,0,0],r),a=[e,t,n];return i&&o.vec3.transformMat3(a,a,i),a},e.prototype.convert=function(e){var t=this.convertPoint(e),n=t.x,r=t.y,o=this.applyMatrix(n,r,1);return{x:o[0],y:o[1]}},e.prototype.invert=function(e){var t=this.invertMatrix(e.x,e.y,1);return this.invertPoint({x:t[0],y:t[1]})},e.prototype.rotate=function(e){var t=this.matrix,n=this.center;return o.ext.leftTranslate(t,t,[-n.x,-n.y]),o.ext.leftRotate(t,t,e),o.ext.leftTranslate(t,t,[n.x,n.y]),this},e.prototype.reflect=function(e){return"x"===e?this.isReflectX=!this.isReflectX:this.isReflectY=!this.isReflectY,this},e.prototype.scale=function(e,t){var n=this.matrix,r=this.center;return o.ext.leftTranslate(n,n,[-r.x,-r.y]),o.ext.leftScale(n,n,[e,t]),o.ext.leftTranslate(n,n,[r.x,r.y]),this},e.prototype.translate=function(e,t){var n=this.matrix;return o.ext.leftTranslate(n,n,[e,t]),this},e.prototype.transpose=function(){return this.isTransposed=!this.isTransposed,this},e.prototype.getCenter=function(){return this.center},e.prototype.getWidth=function(){return this.width},e.prototype.getHeight=function(){return this.height},e.prototype.getRadius=function(){return this.radius},e.prototype.isReflect=function(e){return"x"===e?this.isReflectX:this.isReflectY},e.prototype.resetMatrix=function(e){this.matrix=e||(0,r.__spreadArray)([],this.originalMatrix)},e}();t.default=a},function(e,t,n){"use strict";var r=n(2),o=n(6);Object.defineProperty(t,"__esModule",{value:!0});var i={Annotation:!0,Axis:!0,Crosshair:!0,Grid:!0,Legend:!0,Tooltip:!0,Component:!0,GroupComponent:!0,HtmlComponent:!0,Slider:!0,Scrollbar:!0,propagationDelegate:!0,TOOLTIP_CSS_CONST:!0};t.Axis=t.Annotation=void 0,Object.defineProperty(t,"Component",{enumerable:!0,get:function(){return f.default}}),t.Grid=t.Crosshair=void 0,Object.defineProperty(t,"GroupComponent",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(t,"HtmlComponent",{enumerable:!0,get:function(){return h.default}}),t.Legend=void 0,Object.defineProperty(t,"Scrollbar",{enumerable:!0,get:function(){return v.Scrollbar}}),Object.defineProperty(t,"Slider",{enumerable:!0,get:function(){return g.Slider}}),t.Tooltip=t.TOOLTIP_CSS_CONST=void 0,Object.defineProperty(t,"propagationDelegate",{enumerable:!0,get:function(){return b.propagationDelegate}});var a=S(n(859));t.Annotation=a;var l=S(n(871));t.Axis=l;var c=S(n(877));t.Crosshair=c;var s=S(n(882));t.Grid=s;var u=S(n(885));t.Legend=u;var d=S(n(888));t.Tooltip=d;var f=r(n(253)),p=r(n(41)),h=r(n(182)),g=n(892),v=n(899),m=n(901);Object.keys(m).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(i,e)||e in t&&t[e]===m[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return m[e]}}))}));var y=n(902);Object.keys(y).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(i,e)||e in t&&t[e]===y[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return y[e]}}))}));var b=n(435),x=S(n(258));function w(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(w=function(e){return e?n:t})(e)}function S(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!==typeof e)return{default:e};var n=w(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(r,a,l):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}t.TOOLTIP_CSS_CONST=x},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.renderTag=function(e,t){var n=t.x,c=t.y,s=t.content,u=t.style,d=t.id,f=t.name,p=t.rotate,h=t.maxLength,g=t.autoEllipsis,v=t.isVertical,m=t.ellipsisPosition,y=t.background,b=e.addGroup({id:d+"-group",name:f+"-group",attrs:{x:n,y:c}}),x=b.addShape({type:"text",id:d,name:f,attrs:(0,r.__assign)({x:0,y:0,text:s},u)}),w=(0,l.formatPadding)((0,o.get)(y,"padding",0));if(h&&g){var S=h-(w[1]+w[3]);(0,i.ellipsisLabel)(!v,x,S,m)}if(y){var O=(0,o.get)(y,"style",{}),_=x.getCanvasBBox(),C=_.minX,E=_.minY,P=_.width,M=_.height;b.addShape("rect",{id:d+"-bg",name:d+"-bg",attrs:(0,r.__assign)({x:C-w[3],y:E-w[0],width:P+w[1]+w[3],height:M+w[0]+w[2]},O)}).toBack()}(0,a.applyTranslate)(b,n,c),(0,a.applyRotate)(b,p,n,c)};var r=n(1),o=n(0),i=n(142),a=n(89),l=n(42)},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(1),i=n(95),a=n(0),l=n(42),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,o.__extends)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,o.__assign)((0,o.__assign)({},t),{container:null,containerTpl:"<div></div>",updateAutoRender:!0,containerClassName:"",parent:null})},t.prototype.getContainer=function(){return this.get("container")},t.prototype.show=function(){this.get("container").style.display="",this.set("visible",!0)},t.prototype.hide=function(){this.get("container").style.display="none",this.set("visible",!1)},t.prototype.setCapture=function(e){var t=e?"auto":"none";this.getContainer().style.pointerEvents=t,this.set("capture",e)},t.prototype.getBBox=function(){var e=this.getContainer(),t=parseFloat(e.style.left)||0,n=parseFloat(e.style.top)||0;return(0,l.createBBox)(t,n,e.clientWidth,e.clientHeight)},t.prototype.clear=function(){var e=this.get("container");(0,l.clearDom)(e)},t.prototype.destroy=function(){this.removeEvent(),this.removeDom(),e.prototype.destroy.call(this)},t.prototype.init=function(){e.prototype.init.call(this),this.initContainer(),this.initDom(),this.resetStyles(),this.applyStyles(),this.initEvent(),this.initCapture(),this.initVisible()},t.prototype.initCapture=function(){this.setCapture(this.get("capture"))},t.prototype.initVisible=function(){this.get("visible")?this.show():this.hide()},t.prototype.initDom=function(){},t.prototype.initContainer=function(){var e=this.get("container");if((0,a.isNil)(e)){e=this.createDom();var t=this.get("parent");(0,a.isString)(t)&&(t=document.getElementById(t),this.set("parent",t)),t.appendChild(e),this.get("containerId")&&e.setAttribute("id",this.get("containerId")),this.set("container",e)}else(0,a.isString)(e)&&(e=document.getElementById(e),this.set("container",e));this.get("parent")||this.set("parent",e.parentNode)},t.prototype.resetStyles=function(){var e=this.get("domStyles"),t=this.get("defaultStyles");e=e?(0,a.deepMix)({},t,e):t,this.set("domStyles",e)},t.prototype.applyStyles=function(){var e=this.get("domStyles");if(e){var t=this.getContainer();this.applyChildrenStyles(t,e);var n=this.get("containerClassName");if(n&&(0,l.hasClass)(t,n)){var r=e[n];(0,i.modifyCSS)(t,r)}}},t.prototype.applyChildrenStyles=function(e,t){(0,a.each)(t,(function(t,n){var r=e.getElementsByClassName(n);(0,a.each)(r,(function(e){(0,i.modifyCSS)(e,t)}))}))},t.prototype.applyStyle=function(e,t){var n=this.get("domStyles");(0,i.modifyCSS)(t,n[e])},t.prototype.createDom=function(){var e=this.get("containerTpl");return(0,i.createDom)(e)},t.prototype.initEvent=function(){},t.prototype.removeDom=function(){var e=this.get("container");e&&e.parentNode&&e.parentNode.removeChild(e)},t.prototype.removeEvent=function(){},t.prototype.updateInner=function(e){(0,a.hasKey)(e,"domStyles")&&(this.resetStyles(),this.applyStyles()),this.resetPosition()},t.prototype.resetPosition=function(){},t}(r(n(253)).default);t.default=c},function(e,t,n){"use strict";var r=n(2)(n(6));Object.defineProperty(t,"__esModule",{value:!0}),t.addEndArrow=t.addStartArrow=t.getShortenOffset=void 0;var o=n(1),i=n(143),a=Math.sin,l=Math.cos,c=Math.atan2,s=Math.PI;function u(e,t,n,r,o,u,d){var f=t.stroke,p=t.lineWidth,h=c(r-u,n-o),g=new i.Path({type:"path",canvas:e.get("canvas"),isArrowShape:!0,attrs:{path:"M"+10*l(s/6)+","+10*a(s/6)+" L0,0 L"+10*l(s/6)+",-"+10*a(s/6),stroke:f,lineWidth:p}});g.translate(o,u),g.rotateAtPoint(o,u,h),e.set(d?"startArrowShape":"endArrowShape",g)}function d(e,t,n,r,s,u,d){var f=t.startArrow,p=t.endArrow,h=t.stroke,g=t.lineWidth,v=d?f:p,m=v.d,y=v.fill,b=v.stroke,x=v.lineWidth,w=o.__rest(v,["d","fill","stroke","lineWidth"]),S=c(r-u,n-s);m&&(s-=l(S)*m,u-=a(S)*m);var O=new i.Path({type:"path",canvas:e.get("canvas"),isArrowShape:!0,attrs:o.__assign(o.__assign({},w),{stroke:b||h,lineWidth:x||g,fill:y})});O.translate(s,u),O.rotateAtPoint(s,u,S),e.set(d?"startArrowShape":"endArrowShape",O)}t.getShortenOffset=function(e,t,n,r,o){var i=c(r-t,n-e);return{dx:l(i)*o,dy:a(i)*o}},t.addStartArrow=function(e,t,n,o,i,a){"object"===(0,r.default)(t.startArrow)?d(e,t,n,o,i,a,!0):t.startArrow?u(e,t,n,o,i,a,!0):e.set("startArrowShape",null)},t.addEndArrow=function(e,t,n,o,i,a){"object"===(0,r.default)(t.endArrow)?d(e,t,n,o,i,a,!1):t.endArrow?u(e,t,n,o,i,a,!1):e.set("startArrowShape",null)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(38);t.default=function(e,t,n,o,i,a,l){var c=Math.min(e,n),s=Math.max(e,n),u=Math.min(t,o),d=Math.max(t,o),f=i/2;return a>=c-f&&a<=s+f&&l>=u-f&&l<=d+f&&r.Line.pointToLine(e,t,n,o,a,l)<=i/2}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(62);Object.defineProperty(t,"Base",{enumerable:!0,get:function(){return r.default}});var o=n(920);Object.defineProperty(t,"Circle",{enumerable:!0,get:function(){return o.default}});var i=n(921);Object.defineProperty(t,"Dom",{enumerable:!0,get:function(){return i.default}});var a=n(922);Object.defineProperty(t,"Ellipse",{enumerable:!0,get:function(){return a.default}});var l=n(923);Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return l.default}});var c=n(924);Object.defineProperty(t,"Line",{enumerable:!0,get:function(){return c.default}});var s=n(925);Object.defineProperty(t,"Marker",{enumerable:!0,get:function(){return s.default}});var u=n(927);Object.defineProperty(t,"Path",{enumerable:!0,get:function(){return u.default}});var d=n(928);Object.defineProperty(t,"Polygon",{enumerable:!0,get:function(){return d.default}});var f=n(929);Object.defineProperty(t,"Polyline",{enumerable:!0,get:function(){return f.default}});var p=n(930);Object.defineProperty(t,"Rect",{enumerable:!0,get:function(){return p.default}});var h=n(932);Object.defineProperty(t,"Text",{enumerable:!0,get:function(){return h.default}})},function(e,t,n){"use strict";var r=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getActionClass=t.registerAction=t.createAction=t.Action=void 0;var o=n(44);Object.defineProperty(t,"Action",{enumerable:!0,get:function(){return r(o).default}});var i=n(204);Object.defineProperty(t,"createAction",{enumerable:!0,get:function(){return i.createAction}}),Object.defineProperty(t,"registerAction",{enumerable:!0,get:function(){return i.registerAction}}),Object.defineProperty(t,"getActionClass",{enumerable:!0,get:function(){return i.getActionClass}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.findItemsFromViewRecurisive=t.findItemsFromView=t.getTooltipItems=t.findDataByPoint=void 0;var r=n(1),o=n(0),i=n(21),a=n(110);function l(e,t,n){var r=n.translate(e),i=n.translate(t);return(0,o.isNumberEqual)(r,i)}function c(e,t,n){var r=n.coordinate,a=n.getYScale(),l=a.field,c=r.invert(t),s=a.invert(c.y);return(0,o.find)(e,(function(e){var t=e[i.FIELD_ORIGIN];return t[l][0]<=s&&t[l][1]>=s}))||e[e.length-1]}var s=(0,o.memoize)((function(e){if(e.isCategory)return 1;for(var t=e.values,n=t.length,r=e.translate(t[0]),o=r,i=0;i<n;i++){var a=t[i],l=e.translate(a);l<r&&(r=l),l>o&&(o=l)}return(o-r)/(n-1)}));function u(e){for(var t,n=function(e){var t=(0,o.values)(e.attributes);return(0,o.filter)(t,(function(e){return(0,o.contains)(i.GROUP_ATTRS,e.type)}))}(e),r=0,a=n;r<a.length;r++){var l=a[r],c=l.getScale(l.type);if(c&&c.isLinear){t=c;break}}var s=e.getXScale(),u=e.getYScale();return t||u||s}function d(e,t,n){if(0===t.length)return null;var r=n.type,a=n.getXScale(),u=n.getYScale(),d=a.field,f=u.field,p=null;if("heatmap"===r||"point"===r){for(var h=n.coordinate.invert(e),g=a.invert(h.x),v=u.invert(h.y),m=1/0,y=0;y<t.length;y++){var b=t[y],x=b[i.FIELD_ORIGIN],w=Math.pow(x[d]-g,2)+Math.pow(x[f]-v,2);w<m&&(m=w,p=b)}return p}var S=t[0],O=t[t.length-1],_=function(e,t){var n=t.coordinate,r=t.getXScale(),o=r.range,i=o[o.length-1],a=o[0],l=n.invert(e).x;return n.isPolar&&l>(1+i)/2&&(l=a),r.translate(r.invert(l))}(e,n),C=S[i.FIELD_ORIGIN][d],E=S[i.FIELD_ORIGIN][f],P=O[i.FIELD_ORIGIN][d],M=u.isLinear&&(0,o.isArray)(E);if((0,o.isArray)(C)){for(y=0;y<t.length;y++)if(x=(L=t[y])[i.FIELD_ORIGIN],a.translate(x[d][0])<=_&&a.translate(x[d][1])>=_){if(!M){p=L;break}(0,o.isArray)(p)||(p=[]),p.push(L)}(0,o.isArray)(p)&&(p=c(p,e,n))}else{var k=void 0;if(a.isLinear||"timeCat"===a.type){if((_>a.translate(P)||_<a.translate(C))&&(_>a.max||_<a.min))return null;for(var A=0,I=t.length-1,T=void 0;A<=I;){var j=t[T=Math.floor((A+I)/2)][i.FIELD_ORIGIN][d];if(l(j,_,a))return t[T];a.translate(j)<=a.translate(_)?(A=T+1,O=t[T],k=t[T+1]):(0===I&&(O=t[0]),I=T-1)}}else{for(y=0;y<t.length;y++){var L;if(l((x=(L=t[y])[i.FIELD_ORIGIN])[d],_,a)){if(!M){p=L;break}(0,o.isArray)(p)||(p=[]),p.push(L)}else a.translate(x[d])<=_&&(O=L,k=t[y+1])}(0,o.isArray)(p)&&(p=c(p,e,n))}O&&k&&Math.abs(a.translate(O[i.FIELD_ORIGIN][d])-_)>Math.abs(a.translate(k[i.FIELD_ORIGIN][d])-_)&&(O=k)}var R=s(n.getXScale());return!p&&Math.abs(a.translate(O[i.FIELD_ORIGIN][d])-_)<=R/2&&(p=O),p}function f(e,t,n,l){void 0===n&&(n=""),void 0===l&&(l=!1);var c,s,d=e[i.FIELD_ORIGIN],f=function(e,t,n){var r=t.getAttribute("position").getFields(),i=t.scales,a=(0,o.isFunction)(n)||!n?r[0]:n,l=i[a],c=l?l.getText(e[a]):e[a]||a;return(0,o.isFunction)(n)?n(c,e):c}(d,t,n),p=t.tooltipOption,h=t.theme.defaultColor,g=[];function v(t,n){if(l||!(0,o.isNil)(n)&&""!==n){var r={title:f,data:d,mappingData:e,name:t,value:n,color:e.color||h,marker:!0};g.push(r)}}if((0,o.isObject)(p)){var m=p.fields,y=p.callback;if(y){var b=m.map((function(t){return e[i.FIELD_ORIGIN][t]})),x=y.apply(void 0,b),w=(0,r.__assign)({data:e[i.FIELD_ORIGIN],mappingData:e,title:f,color:e.color||h,marker:!0},x);g.push(w)}else for(var S=t.scales,O=0,_=m;O<_.length;O++){var C=_[O];if(!(0,o.isNil)(d[C])){var E=S[C];v(c=(0,a.getName)(E),s=E.getText(d[C]))}}}else{var P=u(t);s=function(e,t){var n=e[t.field];return(0,o.isArray)(n)?n.map((function(e){return t.getText(e)})).join("-"):t.getText(n)}(d,P),c=function(e,t){var n,r=t.getGroupScales();if(r.length&&(n=r[0]),n){var o=n.field;return n.getText(e[o])}var i=u(t);return(0,a.getName)(i)}(d,t),v(c,s)}return g}function p(e,t,n,r){var i=r.showNil,a=[],l=e.dataArray;if(!(0,o.isEmpty)(l)){e.sort(l);for(var c=0,s=l;c<s.length;c++){var u=d(t,s[c],e);if(u){var p=e.getElementId(u),h=e.elementsMap[p];if("heatmap"===e.type||h.visible){var g=f(u,e,n,i);g.length&&a.push(g)}}}}return a}function h(e,t,n,r){var o=r.showNil,i=[],a=e.container.getShape(t.x,t.y);if(a&&a.get("visible")&&a.get("origin")){var l=f(a.get("origin").mappingData,e,n,o);l.length&&i.push(l)}return i}function g(e,t,n){for(var r=[],o=e.geometries,i=n.shared,a=n.title,l=n.reversed,c=0,s=o;c<s.length;c++){var u=s[c];if(u.visible&&!1!==u.tooltipOption){var d=u.type,f=void 0;(f=["point","edge","polygon"].includes(d)?h(u,t,a,n):["area","line","path","heatmap"].includes(d)||!1!==i?p(u,t,a,n):h(u,t,a,n)).length&&(l&&f.reverse(),r.push(f))}}return r}t.findDataByPoint=d,t.getTooltipItems=f,t.findItemsFromView=g,t.findItemsFromViewRecurisive=function(e,t,n){for(var r=g(e,t,n),o=0,i=e.views;o<i.length;o++){var a=i[o];r=r.concat(g(a,t,n))}return r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setGlobal=t.GLOBAL=void 0;var r=n(0);t.GLOBAL={locale:"en-US"},t.setGlobal=function(e){r.each(e,(function(e,n){return t.GLOBAL[n]=e}))}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.addEndArrow=function(e,t,n,r,i,a){"object"===(0,o.default)(t.endArrow)?f(e,t,n,r,i,a,!1):t.endArrow?d(e,t,n,r,i,a,!1):e.set("startArrowShape",null)},t.addStartArrow=function(e,t,n,r,i,a){"object"===(0,o.default)(t.startArrow)?f(e,t,n,r,i,a,!0):t.startArrow?d(e,t,n,r,i,a,!0):e.set("startArrowShape",null)},t.getShortenOffset=function(e,t,n,r,o){var i=s(r-t,n-e);return{dx:c(i)*o,dy:l(i)*o}};var o=r(n(6)),i=n(1),a=n(147),l=Math.sin,c=Math.cos,s=Math.atan2,u=Math.PI;function d(e,t,n,r,o,i,d){var f=t.stroke,p=t.lineWidth,h=s(r-i,n-o),g=new a.Path({type:"path",canvas:e.get("canvas"),isArrowShape:!0,attrs:{path:"M"+10*c(u/6)+","+10*l(u/6)+" L0,0 L"+10*c(u/6)+",-"+10*l(u/6),stroke:f,lineWidth:p}});g.translate(o,i),g.rotateAtPoint(o,i,h),e.set(d?"startArrowShape":"endArrowShape",g)}function f(e,t,n,r,o,u,d){var f=t.startArrow,p=t.endArrow,h=t.stroke,g=t.lineWidth,v=d?f:p,m=v.d,y=v.fill,b=v.stroke,x=v.lineWidth,w=(0,i.__rest)(v,["d","fill","stroke","lineWidth"]),S=s(r-u,n-o);m&&(o-=c(S)*m,u-=l(S)*m);var O=new a.Path({type:"path",canvas:e.get("canvas"),isArrowShape:!0,attrs:(0,i.__assign)((0,i.__assign)({},w),{stroke:b||h,lineWidth:x||g,fill:y})});O.translate(o,u),O.rotateAtPoint(o,u,S),e.set(d?"startArrowShape":"endArrowShape",O)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,o,i,a,l){var c=Math.min(e,n),s=Math.max(e,n),u=Math.min(t,o),d=Math.max(t,o),f=i/2;return a>=c-f&&a<=s+f&&l>=u-f&&l<=d+f&&r.Line.pointToLine(e,t,n,o,a,l)<=i/2};var r=n(38)},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Base",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"Circle",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"Dom",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"Ellipse",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"Line",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"Marker",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"Path",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"Polygon",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(t,"Polyline",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(t,"Rect",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(t,"Text",{enumerable:!0,get:function(){return g.default}});var o=r(n(63)),i=r(n(972)),a=r(n(973)),l=r(n(974)),c=r(n(975)),s=r(n(976)),u=r(n(977)),d=r(n(979)),f=r(n(980)),p=r(n(981)),h=r(n(982)),g=r(n(984))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.freeze=void 0,t.freeze=function(e){return Object.freeze(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isSVG=t.isReplacedElement=t.isHidden=t.isElement=void 0;var r=t.isSVG=function(e){return e instanceof SVGElement&&"getBBox"in e};t.isHidden=function(e){if(r(e)){var t=e.getBBox(),n=t.width,o=t.height;return!n&&!o}var i=e,a=i.offsetWidth,l=i.offsetHeight;return!(a||l||e.getClientRects().length)},t.isElement=function(e){var t;if(e instanceof Element)return!0;var n=null===(t=null===e||void 0===e?void 0:e.ownerDocument)||void 0===t?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},t.isReplacedElement=function(e){switch(e.tagName){case"INPUT":if("image"!==e.type)break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"cluster",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"hierarchy",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"pack",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"packEnclose",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"packSiblings",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"partition",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"stratify",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"tree",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"treemap",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(t,"treemapBinary",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(t,"treemapDice",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(t,"treemapResquarify",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(t,"treemapSlice",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(t,"treemapSliceDice",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(t,"treemapSquarify",{enumerable:!0,get:function(){return m.default}});var o=r(n(1097)),i=r(n(297)),a=r(n(1113)),l=r(n(517)),c=r(n(519)),s=r(n(1114)),u=r(n(1115)),d=r(n(1116)),f=r(n(1117)),p=r(n(1118)),h=r(n(155)),g=r(n(195)),v=r(n(1119)),m=r(n(299)),y=r(n(1120))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,r,o){for(var i,a=e.children,l=-1,c=a.length,s=e.value&&(o-n)/e.value;++l<c;)(i=a[l]).x0=t,i.x1=r,i.y0=n,i.y1=n+=i.value*s}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.adaptor=t.legend=t.meta=void 0;var r=n(1),o=n(0),i=n(34),a=n(1126),l=n(1127),c=n(43),s=n(153),u=n(524),d=n(15),f=n(118);function p(e){var t=e.options,n=t.legend,o=t.seriesField,i=t.isStack;return o?!1!==n&&(n=r.__assign({position:i?"right-top":"top-left"},n)):n=!1,e.options.legend=n,e}function h(e){var t=e.chart,n=e.options,o=n.data,i=n.columnStyle,a=n.color,l=n.columnWidthRatio,s=n.isPercent,u=n.isGroup,p=n.isStack,h=n.xField,g=n.yField,v=n.seriesField,m=n.groupField,y=n.tooltip,b=n.shape,x=s&&u&&p?f.getDeepPercent(o,g,[h,m],g):f.getDataWhetherPecentage(o,g,h,g,s),w=[];p&&v&&!u?x.forEach((function(e){var t=w.find((function(t){return t[h]===e[h]&&t[v]===e[v]}));t?t[g]+=e[g]||0:w.push(r.__assign({},e))})):w=x,t.data(w);var S=s?r.__assign({formatter:function(e){return{name:u&&p?e[v]+" - "+e[m]:e[v]||e[h],value:(100*Number(e[g])).toFixed(2)+"%"}}},y):y,O=d.deepAssign({},e,{options:{data:w,widthRatio:l,tooltip:S,interval:{shape:b,style:i,color:a}}});return c.interval(O),O}function g(e){var t,n,o=e.options,a=o.xAxis,l=o.yAxis,c=o.xField,s=o.yField,u=o.data,f=o.isPercent?{max:1,min:0,minLimit:0,maxLimit:1}:{};return d.flow(i.scale(((t={})[c]=a,t[s]=l,t),((n={})[c]={type:"cat"},n[s]=r.__assign(r.__assign({},d.adjustYMetaByZero(u,s)),f),n)))(e)}function v(e){var t=e.chart,n=e.options,r=n.xAxis,o=n.yAxis,i=n.xField,a=n.yField;return!1===r?t.axis(i,!1):t.axis(i,r),!1===o?t.axis(a,!1):t.axis(a,o),e}function m(e){var t=e.chart,n=e.options,r=n.legend,o=n.seriesField;return r&&o?t.legend(o,r):!1===r&&t.legend(!1),e}function y(e){var t=e.chart,n=e.options,o=n.label,i=n.yField,a=n.isRange,l=d.findGeometry(t,"interval");if(o){var c=o.callback,s=r.__rest(o,["callback"]);l.label({fields:[i],callback:c,cfg:r.__assign({layout:(null===s||void 0===s?void 0:s.position)?void 0:[{type:"interval-adjust-position"},{type:"interval-hide-overlap"},{type:"adjust-color"},{type:"limit-in-plot",cfg:{action:"hide"}}]},d.transformLabel(a?r.__assign({content:function(e){var t;return null===(t=e[i])||void 0===t?void 0:t.join("-")}},s):s))})}else l.label(!1);return e}function b(e){var t=e.chart,n=e.options,i=n.tooltip,a=n.isGroup,l=n.isStack,c=n.groupField,s=n.data,u=n.xField,f=n.yField,p=n.seriesField;if(!1===i)t.tooltip(!1);else{var h=i;if(a&&l){var g=(null===h||void 0===h?void 0:h.formatter)||function(e){return{name:e[p]+" - "+e[c],value:e[f]}};h=r.__assign(r.__assign({},h),{customItems:function(e){var t=[];return o.each(e,(function(e){o.filter(s,(function(t){return o.isMatch(t,d.pick(e.data,[u,p]))})).forEach((function(n){t.push(r.__assign(r.__assign(r.__assign({},e),{value:n[f],data:n,mappingData:{_origin:n}}),g(n)))}))})),t}})}t.tooltip(h)}return e}t.meta=g,t.legend=m,t.adaptor=function(e,t){void 0===t&&(t=!1);var n=e.options,r=n.seriesField;return d.flow(p,i.theme,s.pattern("columnStyle"),i.state,h,g,v,m,b,i.slider,i.scrollbar,y,u.brushInteraction,i.interaction,i.animation,i.annotation(),a.conversionTag(n.yField,!t,!!r),l.connectedArea(!n.isStack),i.limitInPlot)(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getLocale=function(e){return{get:function(t,n){return(0,o.template)((0,r.get)(a[e],t)||(0,r.get)(a[i.GLOBAL.locale],t)||(0,r.get)(a["en-US"],t)||t,n)}}},t.registerLocale=function(e,t){a[e]=t};var r=n(0),o=n(7),i=n(545),a={}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.adjustYMetaByZero=function(e,t){var n=e.filter((function(e){var n=(0,o.get)(e,[t]);return(0,o.isNumber)(n)&&!isNaN(n)})),r=n.every((function(e){return(0,o.get)(e,[t])>=0})),i=n.every((function(e){return(0,o.get)(e,[t])<=0}));return r?{min:0}:i?{max:0}:{}},t.processIllegalData=function(e,t){var n=(0,o.filter)(e,(function(e){var n=e[t];return null===n||"number"===typeof n&&!isNaN(n)}));return(0,i.log)(i.LEVEL.WARN,n.length===e.length,"illegal data existed in chart data."),n},t.transformDataToNodeLinkData=function(e,t,n,o,i){if(void 0===i&&(i=[]),!Array.isArray(e))return{nodes:[],links:[]};var l=[],c={},s=-1;return e.forEach((function(e){var u=e[t],d=e[n],f=e[o],p=(0,a.pick)(e,i);c[u]||(c[u]=(0,r.__assign)({id:++s,name:u},p)),c[d]||(c[d]=(0,r.__assign)({id:++s,name:d},p)),l.push((0,r.__assign)({source:c[u].id,target:c[d].id,value:f},p))})),{nodes:Object.values(c).sort((function(e,t){return e.id-t.id})),links:l}};var r=n(1),o=n(0),i=n(541),a=n(540)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.adaptor=function(e,t){void 0===t&&(t=!1);var n=e.options,r=n.seriesField;return(0,d.flow)(p,i.theme,(0,s.pattern)("columnStyle"),i.state,h,g,v,m,b,i.slider,i.scrollbar,y,u.brushInteraction,i.interaction,i.animation,(0,i.annotation)(),(0,a.conversionTag)(n.yField,!t,!!r),(0,l.connectedArea)(!n.isStack),i.limitInPlot)(e)},t.legend=m,t.meta=g;var r=n(1),o=n(0),i=n(22),a=n(1201),l=n(1202),c=n(30),s=n(121),u=n(554),d=n(7),f=n(122);function p(e){var t=e.options,n=t.legend,o=t.seriesField,i=t.isStack;return o?!1!==n&&(n=(0,r.__assign)({position:i?"right-top":"top-left"},n)):n=!1,e.options.legend=n,e}function h(e){var t=e.chart,n=e.options,o=n.data,i=n.columnStyle,a=n.color,l=n.columnWidthRatio,s=n.isPercent,u=n.isGroup,p=n.isStack,h=n.xField,g=n.yField,v=n.seriesField,m=n.groupField,y=n.tooltip,b=n.shape,x=s&&u&&p?(0,f.getDeepPercent)(o,g,[h,m],g):(0,f.getDataWhetherPecentage)(o,g,h,g,s),w=[];p&&v&&!u?x.forEach((function(e){var t=w.find((function(t){return t[h]===e[h]&&t[v]===e[v]}));t?t[g]+=e[g]||0:w.push((0,r.__assign)({},e))})):w=x,t.data(w);var S=s?(0,r.__assign)({formatter:function(e){return{name:u&&p?e[v]+" - "+e[m]:e[v]||e[h],value:(100*Number(e[g])).toFixed(2)+"%"}}},y):y,O=(0,d.deepAssign)({},e,{options:{data:w,widthRatio:l,tooltip:S,interval:{shape:b,style:i,color:a}}});return(0,c.interval)(O),O}function g(e){var t,n,o=e.options,a=o.xAxis,l=o.yAxis,c=o.xField,s=o.yField,u=o.data,f=o.isPercent?{max:1,min:0,minLimit:0,maxLimit:1}:{};return(0,d.flow)((0,i.scale)(((t={})[c]=a,t[s]=l,t),((n={})[c]={type:"cat"},n[s]=(0,r.__assign)((0,r.__assign)({},(0,d.adjustYMetaByZero)(u,s)),f),n)))(e)}function v(e){var t=e.chart,n=e.options,r=n.xAxis,o=n.yAxis,i=n.xField,a=n.yField;return!1===r?t.axis(i,!1):t.axis(i,r),!1===o?t.axis(a,!1):t.axis(a,o),e}function m(e){var t=e.chart,n=e.options,r=n.legend,o=n.seriesField;return r&&o?t.legend(o,r):!1===r&&t.legend(!1),e}function y(e){var t=e.chart,n=e.options,o=n.label,i=n.yField,a=n.isRange,l=(0,d.findGeometry)(t,"interval");if(o){var c=o.callback,s=(0,r.__rest)(o,["callback"]);l.label({fields:[i],callback:c,cfg:(0,r.__assign)({layout:(null===s||void 0===s?void 0:s.position)?void 0:[{type:"interval-adjust-position"},{type:"interval-hide-overlap"},{type:"adjust-color"},{type:"limit-in-plot",cfg:{action:"hide"}}]},(0,d.transformLabel)(a?(0,r.__assign)({content:function(e){var t;return null===(t=e[i])||void 0===t?void 0:t.join("-")}},s):s))})}else l.label(!1);return e}function b(e){var t=e.chart,n=e.options,i=n.tooltip,a=n.isGroup,l=n.isStack,c=n.groupField,s=n.data,u=n.xField,f=n.yField,p=n.seriesField;if(!1===i)t.tooltip(!1);else{var h=i;if(a&&l){var g=(null===h||void 0===h?void 0:h.formatter)||function(e){return{name:e[p]+" - "+e[c],value:e[f]}};h=(0,r.__assign)((0,r.__assign)({},h),{customItems:function(e){var t=[];return(0,o.each)(e,(function(e){(0,o.filter)(s,(function(t){return(0,o.isMatch)(t,(0,d.pick)(e.data,[u,p]))})).forEach((function(n){t.push((0,r.__assign)((0,r.__assign)((0,r.__assign)({},e),{value:n[f],data:n,mappingData:{_origin:n}}),g(n)))}))})),t}})}t.tooltip(h)}return e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.adaptor=function(e){return(0,o.flow)((0,r.pattern)("areaStyle"),s,u,r.tooltip,r.theme,r.animation,(0,r.annotation)())(e)},t.meta=u;var r=n(22),o=n(7),i=n(30),a=n(156),l=n(123),c=n(198);function s(e){var t=e.chart,n=e.options,r=n.data,c=n.color,s=n.areaStyle,u=n.point,d=n.line,f=null===u||void 0===u?void 0:u.state,p=(0,l.getTinyData)(r);t.data(p);var h=(0,o.deepAssign)({},e,{options:{xField:a.X_FIELD,yField:a.Y_FIELD,area:{color:c,style:s},line:d,point:u}}),g=(0,o.deepAssign)({},h,{options:{tooltip:!1}}),v=(0,o.deepAssign)({},h,{options:{tooltip:!1,state:f}});return(0,i.area)(h),(0,i.line)(g),(0,i.point)(v),t.axis(!1),t.legend(!1),e}function u(e){var t,n,i=e.options,s=i.xAxis,u=i.yAxis,d=i.data,f=(0,l.getTinyData)(d);return(0,o.flow)((0,r.scale)(((t={})[a.X_FIELD]=s,t[a.Y_FIELD]=u,t),((n={})[a.X_FIELD]={type:"cat"},n[a.Y_FIELD]=(0,c.adjustYMetaByZero)(f,a.Y_FIELD),n)))(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PATH_FIELD=t.ID_FIELD=t.DEFAULT_OPTIONS=void 0,t.ID_FIELD="id",t.PATH_FIELD="path",t.DEFAULT_OPTIONS={appendPadding:[10,0,20,0],blendMode:"multiply",tooltip:{showTitle:!1,showMarkers:!1,fields:["id","size"],formatter:function(e){return{name:e.id,value:e.size}}},legend:{position:"top-left"},label:{style:{textAlign:"center",fill:"#fff"}},interactions:[{type:"legend-filter",enable:!1}],state:{active:{style:{stroke:"#000"}},selected:{style:{stroke:"#000",lineWidth:2}},inactive:{style:{fillOpacity:.3,strokeOpacity:.3}}},defaultInteractions:["tooltip","venn-legend-active"]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PADDING_TOP=t.HIERARCHY_DATA_TRANSFORM_PARAMS=t.DrillDownAction=t.DEFAULT_BREAD_CRUMB_CONFIG=t.BREAD_CRUMB_NAME=void 0;var r=n(1),o=n(14),i=n(0),a=n(543),l=t.PADDING_TOP=5,c=t.BREAD_CRUMB_NAME="drilldown-bread-crumb",s=t.DEFAULT_BREAD_CRUMB_CONFIG={position:"top-left",dividerText:"/",textStyle:{fontSize:12,fill:"rgba(0, 0, 0, 0.65)",cursor:"pointer"},activeTextStyle:{fill:"#87B5FF"}},u=t.HIERARCHY_DATA_TRANSFORM_PARAMS="hierarchy-data-transform-params";t.DrillDownAction=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.name="drill-down",t.historyCache=[],t.breadCrumbGroup=null,t.breadCrumbCfg=s,t}return(0,r.__extends)(t,e),t.prototype.click=function(){var e=(0,i.get)(this.context,["event","data","data"]);if(!e)return!1;this.drill(e),this.drawBreadCrumb()},t.prototype.resetPosition=function(){if(this.breadCrumbGroup){var e=this.context.view.getCoordinate(),t=this.breadCrumbGroup,n=t.getBBox(),r=this.getButtonCfg().position,i={x:e.start.x,y:e.end.y-(n.height+2*l)};e.isPolar&&(i={x:0,y:0}),"bottom-left"===r&&(i={x:e.start.x,y:e.start.y});var a=o.Util.transform(null,[["t",i.x+0,i.y+n.height+l]]);t.setMatrix(a)}},t.prototype.back=function(){(0,i.size)(this.historyCache)&&this.backTo(this.historyCache.slice(0,-1))},t.prototype.reset=function(){this.historyCache[0]&&this.backTo(this.historyCache.slice(0,1)),this.historyCache=[],this.hideCrumbGroup()},t.prototype.drill=function(e){var t=this.context.view,n=(0,i.get)(t,["interactions","drill-down","cfg","transformData"],(function(e){return e})),o=n((0,r.__assign)({data:e.data},e[u]));t.changeData(o);for(var a=[],l=e;l;){var c=l.data;a.unshift({id:c.name+"_"+l.height+"_"+l.depth,name:c.name,children:n((0,r.__assign)({data:c},e[u]))}),l=l.parent}this.historyCache=(this.historyCache||[]).slice(0,-1).concat(a)},t.prototype.backTo=function(e){if(e&&!(e.length<=0)){var t=this.context.view,n=(0,i.last)(e).children;t.changeData(n),e.length>1?(this.historyCache=e,this.drawBreadCrumb()):(this.historyCache=[],this.hideCrumbGroup())}},t.prototype.getButtonCfg=function(){var e=this.context.view,t=(0,i.get)(e,["interactions","drill-down","cfg","drillDownConfig"]);return(0,a.deepAssign)(this.breadCrumbCfg,null===t||void 0===t?void 0:t.breadCrumb,this.cfg)},t.prototype.drawBreadCrumb=function(){this.drawBreadCrumbGroup(),this.resetPosition(),this.breadCrumbGroup.show()},t.prototype.drawBreadCrumbGroup=function(){var e=this,t=this.getButtonCfg(),n=this.historyCache;this.breadCrumbGroup?this.breadCrumbGroup.clear():this.breadCrumbGroup=this.context.view.foregroundGroup.addGroup({name:c});var o=0;n.forEach((function(a,l){var s=e.breadCrumbGroup.addShape({type:"text",id:a.id,name:c+"_"+a.name+"_text",attrs:(0,r.__assign)((0,r.__assign)({text:0!==l||(0,i.isNil)(t.rootText)?a.name:t.rootText},t.textStyle),{x:o,y:0})}),u=s.getBBox();if(o+=u.width+4,s.on("click",(function(t){var r,o=t.target.get("id");if(o!==(null===(r=(0,i.last)(n))||void 0===r?void 0:r.id)){var a=n.slice(0,n.findIndex((function(e){return e.id===o}))+1);e.backTo(a)}})),s.on("mouseenter",(function(e){var r;e.target.get("id")!==(null===(r=(0,i.last)(n))||void 0===r?void 0:r.id)?s.attr(t.activeTextStyle):s.attr({cursor:"default"})})),s.on("mouseleave",(function(){s.attr(t.textStyle)})),l<n.length-1){var d=e.breadCrumbGroup.addShape({type:"text",name:t.name+"_"+a.name+"_divider",attrs:(0,r.__assign)((0,r.__assign)({text:t.dividerText},t.textStyle),{x:o,y:0})}).getBBox();o+=d.width+4}}))},t.prototype.hideCrumbGroup=function(){this.breadCrumbGroup&&this.breadCrumbGroup.hide()},t.prototype.destroy=function(){this.breadCrumbGroup&&this.breadCrumbGroup.remove(),e.prototype.destroy.call(this)},t}(o.Action)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTextPoint=t.toPx=t.updateClip=t.getBBoxWithClip=t.mergeBBox=t.intersectBBox=t.near=t.wait=t.distance=t.getCirclePoint=t.getValueByPercent=t.createBBox=t.pointsToBBox=t.regionToBBox=t.hasClass=t.clearDom=t.formatPadding=void 0;var r=n(0);function o(e,t,n,r){var o=e+n,i=t+r;return{x:e,y:t,width:n,height:r,minX:e,minY:t,maxX:isNaN(o)?0:o,maxY:isNaN(i)?0:i}}function i(e,t,n){return(1-n)*e+t*n}function a(e,t){var n=t.x-e.x,r=t.y-e.y;return Math.sqrt(n*n+r*r)}function l(e,t){var n=Math.max(e.minX,t.minX),r=Math.max(e.minY,t.minY);return o(n,r,Math.min(e.maxX,t.maxX)-n,Math.min(e.maxY,t.maxY)-r)}t.formatPadding=function(e){var t=0,n=0,o=0,i=0;return r.isNumber(e)?t=n=o=i=e:r.isArray(e)&&(t=e[0],o=r.isNil(e[1])?e[0]:e[1],i=r.isNil(e[2])?e[0]:e[2],n=r.isNil(e[3])?o:e[3]),[t,o,i,n]},t.clearDom=function(e){for(var t=e.childNodes,n=t.length-1;n>=0;n--)e.removeChild(t[n])},t.hasClass=function(e,t){return!!e.className.match(new RegExp("(\\s|^)"+t+"(\\s|$)"))},t.regionToBBox=function(e){var t=e.start,n=e.end,r=Math.min(t.x,n.x),o=Math.min(t.y,n.y),i=Math.max(t.x,n.x),a=Math.max(t.y,n.y);return{x:r,y:o,minX:r,minY:o,maxX:i,maxY:a,width:i-r,height:a-o}},t.pointsToBBox=function(e){var t=e.map((function(e){return e.x})),n=e.map((function(e){return e.y})),r=Math.min.apply(Math,t),o=Math.min.apply(Math,n),i=Math.max.apply(Math,t),a=Math.max.apply(Math,n);return{x:r,y:o,minX:r,minY:o,maxX:i,maxY:a,width:i-r,height:a-o}},t.createBBox=o,t.getValueByPercent=i,t.getCirclePoint=function(e,t,n){return{x:e.x+Math.cos(n)*t,y:e.y+Math.sin(n)*t}},t.distance=a,t.wait=function(e){return new Promise((function(t){setTimeout(t,e)}))},t.near=function(e,t,n){return void 0===n&&(n=Math.pow(Number.EPSILON,.5)),[e,t].includes(1/0)?Math.abs(e)===Math.abs(t):Math.abs(e-t)<n},t.intersectBBox=l,t.mergeBBox=function(e,t){var n=Math.min(e.minX,t.minX),r=Math.min(e.minY,t.minY);return o(n,r,Math.max(e.maxX,t.maxX)-n,Math.max(e.maxY,t.maxY)-r)},t.getBBoxWithClip=function e(t){var n,i=t.getClip(),a=i&&i.getBBox();if(t.isGroup()){var c=1/0,s=-1/0,u=1/0,d=-1/0,f=t.getChildren();f.length>0?r.each(f,(function(t){if(t.get("visible")){if(t.isGroup()&&0===t.get("children").length)return!0;var n=e(t),r=t.applyToMatrix([n.minX,n.minY,1]),o=t.applyToMatrix([n.minX,n.maxY,1]),i=t.applyToMatrix([n.maxX,n.minY,1]),a=t.applyToMatrix([n.maxX,n.maxY,1]),l=Math.min(r[0],o[0],i[0],a[0]),f=Math.max(r[0],o[0],i[0],a[0]),p=Math.min(r[1],o[1],i[1],a[1]),h=Math.max(r[1],o[1],i[1],a[1]);l<c&&(c=l),f>s&&(s=f),p<u&&(u=p),h>d&&(d=h)}})):(c=0,s=0,u=0,d=0),n=o(c,u,s-c,d-u)}else n=t.getBBox();return a?l(n,a):n},t.updateClip=function(e,t){if(e.getClip()||t.getClip()){var n=t.getClip();if(n){var r={type:n.get("type"),attrs:n.attr()};e.setClip(r)}else e.setClip(null)}},t.toPx=function(e){return e+"px"},t.getTextPoint=function(e,t,n,r){var o=r/a(e,t),l=0;return"start"===n?l=0-o:"end"===n&&(l=1+o),{x:i(e.x,t.x,l),y:i(e.y,t.y,l)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createCallbackAction=t.unregisterAction=t.registerAction=t.getActionClass=t.createAction=void 0;var r=(0,n(1).__importDefault)(n(942)),o=n(0),i={};t.createAction=function(e,t){var n=i[e],r=null;return n&&((r=new(0,n.ActionClass)(t,n.cfg)).name=e,r.init()),r},t.getActionClass=function(e){var t=i[e];return(0,o.get)(t,"ActionClass")},t.registerAction=function(e,t,n){i[e]={ActionClass:t,cfg:n}},t.unregisterAction=function(e){delete i[e]},t.createCallbackAction=function(e,t){var n=new r.default(t);return n.callback=e,n.name="callback",n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(0),i=n(69),a=n(48),l=n(46),c=n(187),s=n(80),u=n(103),d=(0,r.__importDefault)(n(267)),f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isLocked=!1,t}return(0,r.__extends)(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return"tooltip"},enumerable:!1,configurable:!0}),t.prototype.init=function(){},t.prototype.isVisible=function(){return!1!==this.view.getOptions().tooltip},t.prototype.render=function(){},t.prototype.showTooltip=function(e){if(this.point=e,this.isVisible()){var t=this.view,n=this.getTooltipItems(e);if(n.length){var i=this.getTitle(n),a={x:n[0].x,y:n[0].y};t.emit("tooltip:show",d.default.fromData(t,"tooltip:show",(0,r.__assign)({items:n,title:i},e)));var l=this.getTooltipCfg(),c=l.follow,s=l.showMarkers,u=l.showCrosshairs,f=l.showContent,p=l.marker,h=this.items,g=this.title;if((0,o.isEqual)(g,i)&&(0,o.isEqual)(h,n)?(this.tooltip&&c&&(this.tooltip.update(e),this.tooltip.show()),this.tooltipMarkersGroup&&this.tooltipMarkersGroup.show()):(t.emit("tooltip:change",d.default.fromData(t,"tooltip:change",(0,r.__assign)({items:n,title:i},e))),((0,o.isFunction)(f)?f(n):f)&&(this.tooltip||this.renderTooltip(),this.tooltip.update((0,o.mix)({},l,{items:this.getItemsAfterProcess(n),title:i},c?e:{})),this.tooltip.show()),s&&this.renderTooltipMarkers(n,p)),this.items=n,this.title=i,u){var v=(0,o.get)(l,["crosshairs","follow"],!1);this.renderCrosshairs(v?e:a,l)}}else this.hideTooltip()}},t.prototype.hideTooltip=function(){if(this.getTooltipCfg().follow){var e=this.tooltipMarkersGroup;e&&e.hide();var t=this.xCrosshair,n=this.yCrosshair;t&&t.hide(),n&&n.hide();var r=this.tooltip;r&&r.hide(),this.view.emit("tooltip:hide",d.default.fromData(this.view,"tooltip:hide",{})),this.point=null}else this.point=null},t.prototype.lockTooltip=function(){this.isLocked=!0,this.tooltip&&this.tooltip.setCapture(!0)},t.prototype.unlockTooltip=function(){this.isLocked=!1;var e=this.getTooltipCfg();this.tooltip&&this.tooltip.setCapture(e.capture)},t.prototype.isTooltipLocked=function(){return this.isLocked},t.prototype.clear=function(){var e=this,t=e.tooltip,n=e.xCrosshair,r=e.yCrosshair,o=e.tooltipMarkersGroup;t&&(t.hide(),t.clear()),n&&n.clear(),r&&r.clear(),o&&o.clear(),(null===t||void 0===t?void 0:t.get("customContent"))&&(this.tooltip.destroy(),this.tooltip=null),this.title=null,this.items=null},t.prototype.destroy=function(){this.tooltip&&this.tooltip.destroy(),this.xCrosshair&&this.xCrosshair.destroy(),this.yCrosshair&&this.yCrosshair.destroy(),this.guideGroup&&this.guideGroup.remove(!0),this.reset()},t.prototype.reset=function(){this.items=null,this.title=null,this.tooltipMarkersGroup=null,this.tooltipCrosshairsGroup=null,this.xCrosshair=null,this.yCrosshair=null,this.tooltip=null,this.guideGroup=null,this.isLocked=!1,this.point=null},t.prototype.changeVisible=function(e){if(this.visible!==e){var t=this,n=t.tooltip,r=t.tooltipMarkersGroup,o=t.xCrosshair,i=t.yCrosshair;e?(n&&n.show(),r&&r.show(),o&&o.show(),i&&i.show()):(n&&n.hide(),r&&r.hide(),o&&o.hide(),i&&i.hide()),this.visible=e}},t.prototype.getTooltipItems=function(e){var t=this.findItemsFromView(this.view,e);if(t.length){for(var n=0,r=t=(0,o.flatten)(t);n<r.length;n++)for(var i=0,a=r[n];i<a.length;i++){var l=a[i],c=l.mappingData,s=c.x,u=c.y;l.x=(0,o.isArray)(s)?s[s.length-1]:s,l.y=(0,o.isArray)(u)?u[u.length-1]:u}if(!1===this.getTooltipCfg().shared&&t.length>1){for(var d=t[0],f=Math.abs(e.y-d[0].y),p=0,h=t;p<h.length;p++){var g=h[p],v=Math.abs(e.y-g[0].y);v<=f&&(d=g,f=v)}t=[d]}return function(e){for(var t=[],n=function(n){var r=e[n];(0,o.find)(t,(function(e){return e.color===r.color&&e.name===r.name&&e.value===r.value&&e.title===r.title}))||t.push(r)},r=0;r<e.length;r++)n(r);return t}((0,o.flatten)(t))}return[]},t.prototype.layout=function(){},t.prototype.update=function(){if(this.point&&this.showTooltip(this.point),this.tooltip){var e=this.view.getCanvas();this.tooltip.set("region",{start:{x:0,y:0},end:{x:e.get("width"),y:e.get("height")}})}},t.prototype.isCursorEntered=function(e){if(this.tooltip){var t=this.tooltip.getContainer(),n=this.tooltip.get("capture");if(t&&n){var r=t.getBoundingClientRect(),o=r.x,i=r.y,a=r.width,l=r.height;return new s.BBox(o,i,a,l).isPointIn(e)}}return!1},t.prototype.getTooltipCfg=function(){var e=this.view,t=e.getOptions().tooltip,n=this.processCustomContent(t),r=e.getTheme(),i=(0,o.get)(r,["components","tooltip"],{}),a=(0,o.get)(n,"enterable",i.enterable);return(0,o.deepMix)({},i,n,{capture:!(!a&&!this.isLocked)})},t.prototype.processCustomContent=function(e){if((0,o.isBoolean)(e)||!(0,o.get)(e,"customContent"))return e;var t=e.customContent;return(0,r.__assign)((0,r.__assign)({},e),{customContent:function(e,n){var r=t(e,n)||"";return(0,o.isString)(r)?'<div class="g2-tooltip">'+r+"</div>":r}})},t.prototype.getTitle=function(e){var t=e[0].title||e[0].name;return this.title=t,t},t.prototype.renderTooltip=function(){var e=this.view.getCanvas(),t={start:{x:0,y:0},end:{x:e.get("width"),y:e.get("height")}},n=this.getTooltipCfg(),o=new i.HtmlTooltip((0,r.__assign)((0,r.__assign)({parent:e.get("el").parentNode,region:t},n),{visible:!1,crosshairs:null}));o.init(),this.tooltip=o},t.prototype.renderTooltipMarkers=function(e,t){for(var n=this.getTooltipMarkersGroup(),o=0,i=e;o<i.length;o++){var a=i[o],l=a.x,c=a.y,s=(0,r.__assign)((0,r.__assign)({fill:a.color,symbol:"circle",shadowColor:a.color},t),{x:l,y:c});n.addShape("marker",{attrs:s})}},t.prototype.renderCrosshairs=function(e,t){var n=(0,o.get)(t,["crosshairs","type"],"x");"x"===n?(this.yCrosshair&&this.yCrosshair.hide(),this.renderXCrosshairs(e,t)):"y"===n?(this.xCrosshair&&this.xCrosshair.hide(),this.renderYCrosshairs(e,t)):"xy"===n&&(this.renderXCrosshairs(e,t),this.renderYCrosshairs(e,t))},t.prototype.renderXCrosshairs=function(e,t){var n=this.getViewWithGeometry(this.view).getCoordinate();if((0,a.isPointInCoordinate)(n,e)){var r,c;if(n.isRect)n.isTransposed?(r={x:n.start.x,y:e.y},c={x:n.end.x,y:e.y}):(r={x:e.x,y:n.end.y},c={x:e.x,y:n.start.y});else{var s=(0,a.getAngleByPoint)(n,e),u=n.getCenter(),d=n.getRadius();c=(0,l.polarToCartesian)(u.x,u.y,d,s),r=u}var f=(0,o.deepMix)({start:r,end:c,container:this.getTooltipCrosshairsGroup()},(0,o.get)(t,"crosshairs",{}),this.getCrosshairsText("x",e,t));delete f.type;var p=this.xCrosshair;p?p.update(f):(p=new i.Crosshair.Line(f)).init(),p.render(),p.show(),this.xCrosshair=p}},t.prototype.renderYCrosshairs=function(e,t){var n=this.getViewWithGeometry(this.view).getCoordinate();if((0,a.isPointInCoordinate)(n,e)){var r,l;if(n.isRect){var c=void 0,s=void 0;n.isTransposed?(c={x:e.x,y:n.end.y},s={x:e.x,y:n.start.y}):(c={x:n.start.x,y:e.y},s={x:n.end.x,y:e.y}),r={start:c,end:s},l="Line"}else r={center:n.getCenter(),radius:(0,a.getDistanceToCenter)(n,e),startAngle:n.startAngle,endAngle:n.endAngle},l="Circle";delete(r=(0,o.deepMix)({container:this.getTooltipCrosshairsGroup()},r,(0,o.get)(t,"crosshairs",{}),this.getCrosshairsText("y",e,t))).type;var u=this.yCrosshair;u?n.isRect&&"circle"===u.get("type")||!n.isRect&&"line"===u.get("type")?(u=new i.Crosshair[l](r)).init():u.update(r):(u=new i.Crosshair[l](r)).init(),u.render(),u.show(),this.yCrosshair=u}},t.prototype.getCrosshairsText=function(e,t,n){var r=(0,o.get)(n,["crosshairs","text"]),i=(0,o.get)(n,["crosshairs","follow"]),a=this.items;if(r){var l=this.getViewWithGeometry(this.view),c=a[0],s=l.getXScale(),u=l.getYScales()[0],d=void 0,f=void 0;if(i){var p=this.view.getCoordinate().invert(t);d=s.invert(p.x),f=u.invert(p.y)}else d=c.data[s.field],f=c.data[u.field];var h="x"===e?d:f;return(0,o.isFunction)(r)?r=r(e,h,a,t):r.content=h,{text:r}}},t.prototype.getGuideGroup=function(){if(!this.guideGroup){var e=this.view.foregroundGroup;this.guideGroup=e.addGroup({name:"tooltipGuide",capture:!1})}return this.guideGroup},t.prototype.getTooltipMarkersGroup=function(){var e=this.tooltipMarkersGroup;return e&&!e.destroyed?(e.clear(),e.show()):((e=this.getGuideGroup().addGroup({name:"tooltipMarkersGroup"})).toFront(),this.tooltipMarkersGroup=e),e},t.prototype.getTooltipCrosshairsGroup=function(){var e=this.tooltipCrosshairsGroup;return e||((e=this.getGuideGroup().addGroup({name:"tooltipCrosshairsGroup",capture:!1})).toBack(),this.tooltipCrosshairsGroup=e),e},t.prototype.findItemsFromView=function(e,t){if(!1===e.getOptions().tooltip)return[];for(var n=this.getTooltipCfg(),r=(0,c.findItemsFromView)(e,t,n),o=0,i=e.views;o<i.length;o++){var a=i[o];r=r.concat(this.findItemsFromView(a,t))}return r},t.prototype.getViewWithGeometry=function(e){var t=this;return e.geometries.length?e:(0,o.find)(e.views,(function(e){return t.getViewWithGeometry(e)}))},t.prototype.getItemsAfterProcess=function(e){var t=this.getTooltipCfg().customItems;return(t||function(e){return e})(e)},t}(u.Controller);t.default=f},function(e,t,n){"use strict";var r=n(2),o=n(6);Object.defineProperty(t,"__esModule",{value:!0});var i={version:!0,Shape:!0,Canvas:!0,Group:!0,getArcParams:!0};Object.defineProperty(t,"Canvas",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"Group",{enumerable:!0,get:function(){return s.default}}),t.Shape=void 0,Object.defineProperty(t,"getArcParams",{enumerable:!0,get:function(){return u.default}}),t.version=void 0;var a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!==typeof e)return{default:e};var n=d(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(r,a,l):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}(n(147));t.Shape=a;var l=n(26);Object.keys(l).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(i,e)||e in t&&t[e]===l[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}}))}));var c=r(n(970)),s=r(n(272)),u=r(n(457));function d(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(d=function(e){return e?n:t})(e)}t.version="0.5.12"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.antvDark=t.createDarkStyleSheet=void 0;var r="#000",o="#BFBFBF",i="#F0F0F0",a="#FFFFFF",l="#A6A6A6",c="#737373",s="#404040",u="#262626",d=["#5B8FF9","#5AD8A6","#5D7092","#F6BD16","#E86452","#6DC8EC","#945FB9","#FF9845","#1E9493","#FF99C3"],f=["#5B8FF9","#CDDDFD","#5AD8A6","#CDF3E4","#5D7092","#CED4DE","#F6BD16","#FCEBB9","#E86452","#F8D0CB","#6DC8EC","#D3EEF9","#945FB9","#DECFEA","#FF9845","#FFE0C7","#1E9493","#BBDEDE","#FF99C3","#FFE0ED"],p=["#B8E1FF","#9AC5FF","#7DAAFF","#5B8FF9","#3D76DD","#085EC0","#0047A5","#00318A","#001D70"];t.createDarkStyleSheet=function(e){void 0===e&&(e={});var t=e.backgroundColor,n=void 0===t?"#141414":t,h=e.subColor,g=void 0===h?"rgba(255,255,255,0.05)":h,v=e.paletteQualitative10,m=void 0===v?d:v,y=e.paletteQualitative20,b=void 0===y?f:y,x=e.paletteSemanticRed,w=void 0===x?"#F4664A":x,S=e.paletteSemanticGreen,O=void 0===S?"#30BF78":S,_=e.paletteSemanticYellow,C=void 0===_?"#FAAD14":_,E=e.paletteSequence,P=void 0===E?p:E,M=e.fontFamily,k=void 0===M?'"Segoe UI", Roboto, "Helvetica Neue", Arial,\n    "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",\n    "Noto Color Emoji"':M,A=e.brandColor;return{backgroundColor:n,brandColor:void 0===A?m[0]:A,subColor:g,paletteQualitative10:m,paletteQualitative20:b,paletteSemanticRed:w,paletteSemanticGreen:O,paletteSemanticYellow:C,paletteSequence:P,fontFamily:k,axisLineBorderColor:s,axisLineBorder:1,axisLineDash:null,axisTitleTextFillColor:l,axisTitleTextFontSize:12,axisTitleTextLineHeight:12,axisTitleTextFontWeight:"normal",axisTitleSpacing:12,axisTickLineBorderColor:s,axisTickLineLength:4,axisTickLineBorder:1,axisSubTickLineBorderColor:u,axisSubTickLineLength:2,axisSubTickLineBorder:1,axisLabelFillColor:c,axisLabelFontSize:12,axisLabelLineHeight:12,axisLabelFontWeight:"normal",axisLabelOffset:8,axisGridBorderColor:u,axisGridBorder:1,axisGridLineDash:null,legendTitleTextFillColor:c,legendTitleTextFontSize:12,legendTitleTextLineHeight:21,legendTitleTextFontWeight:"normal",legendMarkerColor:d[0],legendMarkerSpacing:8,legendMarkerSize:4,legendCircleMarkerSize:4,legendSquareMarkerSize:4,legendLineMarkerSize:5,legendItemNameFillColor:l,legendItemNameFontSize:12,legendItemNameLineHeight:12,legendItemNameFontWeight:"normal",legendItemSpacing:24,legendItemMarginBottom:12,legendSpacing:16,legendPadding:[8,8,8,8],legendHorizontalPadding:[8,0,8,0],legendVerticalPadding:[0,8,0,8],legendPageNavigatorMarkerSize:12,legendPageNavigatorMarkerInactiveFillColor:c,legendPageNavigatorMarkerInactiveFillOpacity:.45,legendPageNavigatorMarkerFillColor:c,legendPageNavigatorMarkerFillOpacity:1,legendPageNavigatorTextFillColor:l,legendPageNavigatorTextFontSize:12,sliderRailFillColor:u,sliderRailBorder:0,sliderRailBorderColor:null,sliderRailWidth:100,sliderRailHeight:12,sliderLabelTextFillColor:c,sliderLabelTextFontSize:12,sliderLabelTextLineHeight:12,sliderLabelTextFontWeight:"normal",sliderHandlerFillColor:i,sliderHandlerWidth:10,sliderHandlerHeight:14,sliderHandlerBorder:1,sliderHandlerBorderColor:o,annotationArcBorderColor:u,annotationArcBorder:1,annotationLineBorderColor:s,annotationLineBorder:1,annotationLineDash:null,annotationTextFillColor:l,annotationTextFontSize:12,annotationTextLineHeight:12,annotationTextFontWeight:"normal",annotationTextBorderColor:null,annotationTextBorder:0,annotationRegionFillColor:a,annotationRegionFillOpacity:.06,annotationRegionBorder:0,annotationRegionBorderColor:null,annotationDataMarkerLineLength:16,tooltipCrosshairsBorderColor:s,tooltipCrosshairsBorder:1,tooltipCrosshairsLineDash:null,tooltipContainerFillColor:"#1f1f1f",tooltipContainerFillOpacity:.95,tooltipContainerShadow:"0px 2px 4px rgba(0,0,0,.5)",tooltipContainerBorderRadius:3,tooltipTextFillColor:l,tooltipTextFontSize:12,tooltipTextLineHeight:12,tooltipTextFontWeight:"bold",labelFillColor:l,labelFillColorDark:"#2c3542",labelFillColorLight:"#ffffff",labelFontSize:12,labelLineHeight:12,labelFontWeight:"normal",labelBorderColor:null,labelBorder:0,innerLabelFillColor:r,innerLabelFontSize:12,innerLabelLineHeight:12,innerLabelFontWeight:"normal",innerLabelBorderColor:null,innerLabelBorder:0,overflowLabelFillColor:l,overflowLabelFillColorDark:"#2c3542",overflowLabelFillColorLight:"#ffffff",overflowLabelFontSize:12,overflowLabelLineHeight:12,overflowLabelFontWeight:"normal",overflowLabelBorderColor:r,overflowLabelBorder:1,labelLineBorder:1,labelLineBorderColor:s,cSliderRailHieght:16,cSliderBackgroundFillColor:"#416180",cSliderBackgroundFillOpacity:.05,cSliderForegroundFillColor:"#5B8FF9",cSliderForegroundFillOpacity:.15,cSliderHandlerHeight:24,cSliderHandlerWidth:10,cSliderHandlerFillColor:"#F7F7F7",cSliderHandlerFillOpacity:1,cSliderHandlerHighlightFillColor:"#FFF",cSliderHandlerBorderColor:"#BFBFBF",cSliderHandlerBorder:1,cSliderHandlerBorderRadius:2,cSliderTextFillColor:"#fff",cSliderTextFillOpacity:.45,cSliderTextFontSize:12,cSliderTextLineHeight:12,cSliderTextFontWeight:"normal",cSliderTextBorderColor:null,cSliderTextBorder:0,scrollbarTrackFillColor:"rgba(255,255,255,0.65)",scrollbarThumbFillColor:"rgba(0,0,0,0.35)",scrollbarThumbHighlightFillColor:"rgba(0,0,0,0.45)",pointFillColor:d[0],pointFillOpacity:.95,pointSize:4,pointBorder:1,pointBorderColor:r,pointBorderOpacity:1,pointActiveBorderColor:a,pointSelectedBorder:2,pointSelectedBorderColor:a,pointInactiveFillOpacity:.3,pointInactiveBorderOpacity:.3,hollowPointSize:4,hollowPointBorder:1,hollowPointBorderColor:d[0],hollowPointBorderOpacity:.95,hollowPointFillColor:r,hollowPointActiveBorder:1,hollowPointActiveBorderColor:a,hollowPointActiveBorderOpacity:1,hollowPointSelectedBorder:2,hollowPointSelectedBorderColor:a,hollowPointSelectedBorderOpacity:1,hollowPointInactiveBorderOpacity:.3,lineBorder:2,lineBorderColor:d[0],lineBorderOpacity:1,lineActiveBorder:3,lineSelectedBorder:3,lineInactiveBorderOpacity:.3,areaFillColor:d[0],areaFillOpacity:.25,areaActiveFillColor:d[0],areaActiveFillOpacity:.5,areaSelectedFillColor:d[0],areaSelectedFillOpacity:.5,areaInactiveFillOpacity:.3,hollowAreaBorderColor:d[0],hollowAreaBorder:2,hollowAreaBorderOpacity:1,hollowAreaActiveBorder:3,hollowAreaActiveBorderColor:a,hollowAreaSelectedBorder:3,hollowAreaSelectedBorderColor:a,hollowAreaInactiveBorderOpacity:.3,intervalFillColor:d[0],intervalFillOpacity:.95,intervalActiveBorder:1,intervalActiveBorderColor:a,intervalActiveBorderOpacity:1,intervalSelectedBorder:2,intervalSelectedBorderColor:a,intervalSelectedBorderOpacity:1,intervalInactiveBorderOpacity:.3,intervalInactiveFillOpacity:.3,hollowIntervalBorder:2,hollowIntervalBorderColor:d[0],hollowIntervalBorderOpacity:1,hollowIntervalFillColor:r,hollowIntervalActiveBorder:2,hollowIntervalActiveBorderColor:a,hollowIntervalSelectedBorder:3,hollowIntervalSelectedBorderColor:a,hollowIntervalSelectedBorderOpacity:1,hollowIntervalInactiveBorderOpacity:.3}},t.antvDark=(0,t.createDarkStyleSheet)()},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n(10),o=n.n(r),i=n(9),a=n.n(i),l=n(12),c=n.n(l),s=n(13),u=n.n(s),d=n(5),f=n.n(d);function p(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f()(e);if(t){var o=f()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u()(this,n)}}var h=function(e){c()(n,e);var t=p(n);function n(){var e;return a()(this,n),(e=t.apply(this,arguments)).annotationType="arc",e}return o()(n)}(n(35).a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n(10),o=n.n(r),i=n(9),a=n.n(i),l=n(12),c=n.n(l),s=n(13),u=n.n(s),d=n(5),f=n.n(d);function p(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f()(e);if(t){var o=f()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u()(this,n)}}var h=function(e){c()(n,e);var t=p(n);function n(){var e;return a()(this,n),(e=t.apply(this,arguments)).annotationType="dataMarker",e}return o()(n)}(n(35).a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n(10),o=n.n(r),i=n(9),a=n.n(i),l=n(12),c=n.n(l),s=n(13),u=n.n(s),d=n(5),f=n.n(d);function p(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f()(e);if(t){var o=f()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u()(this,n)}}var h=function(e){c()(n,e);var t=p(n);function n(){var e;return a()(this,n),(e=t.apply(this,arguments)).annotationType="dataRegion",e}return o()(n)}(n(35).a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n(10),o=n.n(r),i=n(9),a=n.n(i),l=n(12),c=n.n(l),s=n(13),u=n.n(s),d=n(5),f=n.n(d);function p(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f()(e);if(t){var o=f()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u()(this,n)}}var h=function(e){c()(n,e);var t=p(n);function n(){var e;return a()(this,n),(e=t.apply(this,arguments)).annotationType="image",e}return o()(n)}(n(35).a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n(10),o=n.n(r),i=n(9),a=n.n(i),l=n(12),c=n.n(l),s=n(13),u=n.n(s),d=n(5),f=n.n(d);function p(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f()(e);if(t){var o=f()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u()(this,n)}}var h=function(e){c()(n,e);var t=p(n);function n(){var e;return a()(this,n),(e=t.apply(this,arguments)).annotationType="line",e}return o()(n)}(n(35).a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n(10),o=n.n(r),i=n(9),a=n.n(i),l=n(12),c=n.n(l),s=n(13),u=n.n(s),d=n(5),f=n.n(d);function p(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f()(e);if(t){var o=f()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u()(this,n)}}var h=function(e){c()(n,e);var t=p(n);function n(){var e;return a()(this,n),(e=t.apply(this,arguments)).annotationType="region",e}return o()(n)}(n(35).a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n(10),o=n.n(r),i=n(9),a=n.n(i),l=n(12),c=n.n(l),s=n(13),u=n.n(s),d=n(5),f=n.n(d);function p(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f()(e);if(t){var o=f()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u()(this,n)}}var h=function(e){c()(n,e);var t=p(n);function n(){var e;return a()(this,n),(e=t.apply(this,arguments)).annotationType="text",e}return o()(n)}(n(35).a)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(0),i=n(48),a=n(48),l=(0,r.__importDefault)(n(99)),c=Math.PI/2,s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.__extends)(t,e),t.prototype.getLabelOffset=function(e){var t=this.getCoordinate(),n=0;if((0,o.isNumber)(e))n=e;else if((0,o.isString)(e)&&-1!==e.indexOf("%")){var r=t.getRadius();t.innerRadius>0&&(r*=1-t.innerRadius),n=.01*parseFloat(e)*r}return n},t.prototype.getLabelItems=function(t){var n=e.prototype.getLabelItems.call(this,t),i=this.geometry.getYScale();return(0,o.map)(n,(function(e){if(e&&i){var t=i.scale((0,o.get)(e.data,i.field));return(0,r.__assign)((0,r.__assign)({},e),{percent:t})}return e}))},t.prototype.getLabelAlign=function(e){var t,n=this.getCoordinate();if(e.labelEmit)t=e.angle<=Math.PI/2&&e.angle>=-Math.PI/2?"left":"right";else if(n.isTransposed){var r=n.getCenter(),o=e.offset;t=Math.abs(e.x-r.x)<1?"center":e.angle>Math.PI||e.angle<=0?o>0?"left":"right":o>0?"right":"left"}else t="center";return t},t.prototype.getLabelPoint=function(e,t,n){var r,o=1,i=e.content[n];this.isToMiddle(t)?r=this.getMiddlePoint(t.points):(1===e.content.length&&0===n?n=1:0===n&&(o=-1),r=this.getArcPoint(t,n));var a=e.offset*o,l=this.getPointAngle(r),c=e.labelEmit,s=this.getCirclePoint(l,a,r,c);return 0===s.r?s.content="":(s.content=i,s.angle=l,s.color=t.color),s.rotate=e.autoRotate?this.getLabelRotate(l,a,c):e.rotate,s.start={x:r.x,y:r.y},s},t.prototype.getArcPoint=function(e,t){return void 0===t&&(t=0),(0,o.isArray)(e.x)||(0,o.isArray)(e.y)?{x:(0,o.isArray)(e.x)?e.x[t]:e.x,y:(0,o.isArray)(e.y)?e.y[t]:e.y}:{x:e.x,y:e.y}},t.prototype.getPointAngle=function(e){return(0,a.getAngleByPoint)(this.getCoordinate(),e)},t.prototype.getCirclePoint=function(e,t,n,o){var a=this.getCoordinate(),l=a.getCenter(),c=(0,i.getDistanceToCenter)(a,n);if(0===c)return(0,r.__assign)((0,r.__assign)({},l),{r:c});var s=e;return a.isTransposed&&c>t&&!o?s=e+2*Math.asin(t/(2*c)):c+=t,{x:l.x+c*Math.cos(s),y:l.y+c*Math.sin(s),r:c}},t.prototype.getLabelRotate=function(e,t,n){var r=e+c;return n&&(r-=c),r&&(r>c?r-=Math.PI:r<-c&&(r+=Math.PI)),r},t.prototype.getMiddlePoint=function(e){var t=this.getCoordinate(),n=e.length,r={x:0,y:0};return(0,o.each)(e,(function(e){r.x+=e.x,r.y+=e.y})),r.x/=n,r.y/=n,r=t.convert(r)},t.prototype.isToMiddle=function(e){return e.x.length>2},t}(l.default);t.default=s},function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n(45),o=n.n(r),i=n(4),a=n.n(i),l=n(37),c=n.n(l),s=n(28),u=n.n(s),d=n(40),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};function p(e){var t=e.type,n=e.transpose,r=e.rotate,i=e.scale,l=e.reflect,s=e.actions,p=f(e,["type","transpose","rotate","scale","reflect","actions"]),h=Object(d.a)(),g=h.coordinate();return g.update({}),t?h.coordinate(t,a()({},p)):h.coordinate("rect",a()({},p)),r&&g.rotate(r),i&&g.scale.apply(g,o()(i)),c()(l)||g.reflect(l),n&&g.transpose(),u()(s)&&s(g),null}},function(e,t,n){"use strict";n.d(t,"a",(function(){return y}));var r=n(10),o=n.n(r),i=n(9),a=n.n(i),l=n(12),c=n.n(l),s=n(13),u=n.n(s),d=n(5),f=n.n(d),p=n(326),h=n.n(p),g=n(39),v=n(8);function m(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f()(e);if(t){var o=f()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u()(this,n)}}n(464),Object(v.registerGeometry)("Edge",h.a);var y=function(e){c()(n,e);var t=m(n);function n(){var e;return a()(this,n),(e=t.apply(this,arguments)).GemoBaseClassName="edge",e}return o()(n)}(g.a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return y}));var r=n(10),o=n.n(r),i=n(9),a=n.n(i),l=n(12),c=n.n(l),s=n(13),u=n.n(s),d=n(5),f=n.n(d),p=n(327),h=n.n(p),g=n(39),v=n(8);function m(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f()(e);if(t){var o=f()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u()(this,n)}}Object(v.registerGeometry)("Heatmap",h.a);var y=function(e){c()(n,e);var t=m(n);function n(){var e;return a()(this,n),(e=t.apply(this,arguments)).GemoBaseClassName="heatmap",e}return o()(n)}(g.a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return S}));var r=n(10),o=n.n(r),i=n(9),a=n.n(i),l=n(12),c=n.n(l),s=n(13),u=n.n(s),d=n(5),f=n.n(d),p=n(328),h=n.n(p),g=n(163),v=n.n(g),m=n(164),y=n.n(m),b=n(39),x=n(8);function w(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f()(e);if(t){var o=f()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u()(this,n)}}n(468),n(469),n(470),n(471),n(472),Object(x.registerGeometry)("Interval",h.a),Object(x.registerGeometryLabel)("interval",v.a),Object(x.registerGeometryLabel)("pie",y.a),Object(x.registerInteraction)("active-region",{start:[{trigger:"plot:mousemove",action:"active-region:show"}],end:[{trigger:"plot:mouseleave",action:"active-region:hide"}]});var S=function(e){c()(n,e);var t=w(n);function n(){var e;return a()(this,n),(e=t.apply(this,arguments)).interactionTypes=["active-region","element-highlight"],e.GemoBaseClassName="interval",e}return o()(n)}(b.a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return y}));var r=n(10),o=n.n(r),i=n(9),a=n.n(i),l=n(12),c=n.n(l),s=n(13),u=n.n(s),d=n(5),f=n.n(d),p=n(331),h=n.n(p),g=n(39),v=n(8);function m(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f()(e);if(t){var o=f()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u()(this,n)}}n(465),n(478),Object(v.registerGeometry)("Polygon",h.a);var y=function(e){c()(n,e);var t=m(n);function n(){var e;return a()(this,n),(e=t.apply(this,arguments)).GemoBaseClassName="polygon",e}return o()(n)}(g.a)},function(e,t,n){"use strict";var r=n(4),o=n.n(r),i=n(3),a=n.n(i),l=n(100),c=(n(275),n(277),n(61)),s=n.n(c),u=n(168),d=n.n(u),f=n(18),p=n.n(f),h=n(20),g=n.n(h),v=n(8),m=n(60),y=n(40),b=n(81),x=n(128),w=n(129),S=n(127),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},_={default:{style:{fill:"#5B8FF9",fillOpacity:.25,stroke:null}},active:{style:{fillOpacity:.5}},inactive:{style:{fillOpacity:.4}},selected:{style:{fillOpacity:.5}}};Object(v.registerShape)("area","gradient",{draw:function(e,t){var n=Object(l.getShapeAttrs)(e,!1,!1,this),r=n.fill,o=m.color(r);return o&&(n.fill="l (90) 0:".concat(m.rgb(o.r,o.g,o.b,1).formatRgb()," 1:").concat(m.rgb(o.r,o.g,o.b,.1).formatRgb())),t.addShape({type:"path",attrs:n,name:"area"})}}),Object(v.registerShape)("area","gradient-smooth",{draw:function(e,t){var n=this.coordinate,r=Object(l.getShapeAttrs)(e,!1,!0,this,Object(l.getConstraint)(n)),o=r.fill,i=m.color(o);return i&&(r.fill="l (90) 0:".concat(m.rgb(i.r,i.g,i.b,1).formatRgb()," 1:").concat(m.rgb(i.r,i.g,i.b,.1).formatRgb())),t.addShape({type:"path",attrs:r,name:"area"})}}),t.a=function(e){var t=e.point,n=e.area,r=e.shape,i=O(e,["point","area","shape"]),l={shape:"circle"},c=Object(b.a)(),u=Object(y.a)(),f={shape:"smooth"===r?"gradient-smooth":"gradient"},h=u.getTheme();return h.geometries.area.gradient=_,h.geometries.area["gradient-smooth"]=_,!1!==p()(c,["options","tooltip"])&&(void 0===p()(u,["options","tooltip","shared"])&&g()(u,["options","tooltip","shared"],!0),void 0===p()(u,["options","tooltip","showCrosshairs"])&&g()(u,["options","tooltip","showCrosshairs"],!0),void 0===p()(u,["options","tooltip","showMarkers"])&&g()(u,["options","tooltip","showMarkers"],!0)),s()(l)&&d()(l,t),s()(f)&&d()(f,n),a.a.createElement(a.a.Fragment,null,a.a.createElement(x.a,o()({shape:r,state:{default:{style:{shadowColor:"#ddd",shadowBlur:3,shadowOffsetY:2}},active:{style:{shadowColor:"#ddd",shadowBlur:3,shadowOffsetY:5}}}},i)),!!n&&a.a.createElement(S.a,o()({},i,{tooltip:!1},f)),!!t&&a.a.createElement(w.a,o()({size:3},i,{state:{active:{style:{stroke:"#fff",lineWidth:1.5,strokeOpacity:.9}}},tooltip:!1},l)))}},function(e,n){e.exports=t},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fadeOut=t.fadeIn=void 0;var r=n(0);t.fadeIn=function(e,t,n){var o={fillOpacity:(0,r.isNil)(e.attr("fillOpacity"))?1:e.attr("fillOpacity"),strokeOpacity:(0,r.isNil)(e.attr("strokeOpacity"))?1:e.attr("strokeOpacity"),opacity:(0,r.isNil)(e.attr("opacity"))?1:e.attr("opacity")};e.attr({fillOpacity:0,strokeOpacity:0,opacity:0}),e.animate(o,t)},t.fadeOut=function(e,t,n){var r=t.easing,o=t.duration,i=t.delay;e.animate({fillOpacity:0,strokeOpacity:0,opacity:0},o,r,(function(){e.remove(!0)}),i)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scaleInY=t.scaleInX=void 0;var r=n(32);t.scaleInX=function(e,t,n){var o=e.getBBox(),i=e.get("origin").mappingData.points,a=i[0].y-i[1].y>0?o.maxX:o.minX,l=(o.minY+o.maxY)/2;e.applyToMatrix([a,l,1]);var c=r.ext.transform(e.getMatrix(),[["t",-a,-l],["s",.01,1],["t",a,l]]);e.setMatrix(c),e.animate({matrix:r.ext.transform(e.getMatrix(),[["t",-a,-l],["s",100,1],["t",a,l]])},t)},t.scaleInY=function(e,t,n){var o=e.getBBox(),i=e.get("origin").mappingData,a=(o.minX+o.maxX)/2,l=i.points,c=l[0].y-l[1].y<=0?o.maxY:o.minY;e.applyToMatrix([a,c,1]);var s=r.ext.transform(e.getMatrix(),[["t",-a,-c],["s",1,.01],["t",a,c]]);e.setMatrix(s),e.animate({matrix:r.ext.transform(e.getMatrix(),[["t",-a,-c],["s",1,100],["t",a,c]])},t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.zoomOut=t.zoomIn=void 0;var r=n(1),o=n(32),i=n(0);function a(e,t,n){if(e.isGroup())(0,i.each)(e.getChildren(),(function(e){a(e,t,n)}));else{var l=e.getBBox(),c=(l.minX+l.maxX)/2,s=(l.minY+l.maxY)/2;if(e.applyToMatrix([c,s,1]),"zoomIn"===n){var u=o.ext.transform(e.getMatrix(),[["t",-c,-s],["s",.01,.01],["t",c,s]]);e.setMatrix(u),e.animate({matrix:o.ext.transform(e.getMatrix(),[["t",-c,-s],["s",100,100],["t",c,s]])},t)}else e.animate({matrix:o.ext.transform(e.getMatrix(),[["t",-c,-s],["s",.01,.01],["t",c,s]])},(0,r.__assign)((0,r.__assign)({},t),{callback:function(){e.remove(!0)}}))}}t.zoomIn=function(e,t,n){a(e,t,"zoomIn")},t.zoomOut=function(e,t,n){a(e,t,"zoomOut")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.overlap=t.fixedOverlap=void 0;var r=n(0),o=100,i=function(){function e(e){void 0===e&&(e={}),this.bitmap={};var t=e.xGap,n=void 0===t?1:t,r=e.yGap,o=void 0===r?8:r;this.xGap=n,this.yGap=o}return e.prototype.hasGap=function(e){for(var t=!0,n=this.bitmap,r=Math.round(e.minX),o=Math.round(e.maxX),i=Math.round(e.minY),a=Math.round(e.maxY),l=r;l<=o;l+=1)if(n[l]){if(l===r||l===o){for(var c=i;c<=a;c++)if(n[l][c]){t=!1;break}}else if(n[l][i]||n[l][a]){t=!1;break}}else n[l]={};return t},e.prototype.fillGap=function(e){for(var t=this.bitmap,n=Math.round(e.minX),r=Math.round(e.maxX),o=Math.round(e.minY),i=Math.round(e.maxY),a=n;a<=r;a+=1)t[a]||(t[a]={});for(a=n;a<=r;a+=this.xGap){for(var l=o;l<=i;l+=this.yGap)t[a][l]=!0;t[a][i]=!0}if(1!==this.yGap)for(a=o;a<=i;a+=1)t[n][a]=!0,t[r][a]=!0;if(1!==this.xGap)for(a=n;a<=r;a+=1)t[a][o]=!0,t[a][i]=!0},e.prototype.destroy=function(){this.bitmap={}},e}();function a(e,t,n,r){var o=e.getCanvasBBox(),i=o.width,a=o.height,l={x:t,y:n,textAlign:"center"};switch(r){case 0:l.y-=a+1,l.x+=1,l.textAlign="left";break;case 1:l.y-=a+1,l.x-=1,l.textAlign="right";break;case 2:l.y+=a+1,l.x-=1,l.textAlign="right";break;case 3:l.y+=a+1,l.x+=1,l.textAlign="left";break;case 5:l.y-=2*a+2;break;case 6:l.y+=2*a+2;break;case 7:l.x+=i+1,l.textAlign="left";break;case 8:l.x-=i+1,l.textAlign="right"}return e.attr(l),e.getCanvasBBox()}t.fixedOverlap=function(e,t,n,a){var l=new i;(0,r.each)(t,(function(e){(function(e,t,n){void 0===n&&(n=o);var r,i=e.attr(),a=i.x,l=i.y,c=e.getCanvasBBox(),s=Math.sqrt(c.width*c.width+c.height*c.height),u=1,d=0,f=0,p=function(e){var t=.1*e;return[t*Math.cos(t),t*Math.sin(t)]};if(t.hasGap(c))return t.fillGap(c),!0;for(var h=!1,g=0,v={};Math.min(Math.abs(d),Math.abs(f))<s&&g<n;)if(d=~~(r=p(u+=-1))[0],f=~~r[1],(d||f)&&!v[d+"-"+f]&&(e.attr({x:a+d,y:l+f}),d+f<0&&e.attr("textAlign","right"),g++,t.hasGap(e.getCanvasBBox()))){t.fillGap(e.getCanvasBBox()),h=!0,v[d+"-"+f]=!0;break}return h})(e.find((function(e){return"text"===e.get("type")})),l)||e.remove(!0)})),l.destroy()},t.overlap=function(e,t,n,o){var l=new i;(0,r.each)(t,(function(e){for(var t=e.find((function(e){return"text"===e.get("type")})),n=t.attr(),r=n.x,o=n.y,i=!1,c=0;c<=8;c++){var s=a(t,r,o,c);if(l.hasGap(s)){l.fillGap(s),i=!0;break}}i||e.remove(!0)})),l.destroy()}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ELEMENT_RANGE_HIGHLIGHT_EVENTS=void 0;var r,o=n(1),i=n(97),a=n(286),l=(0,o.__importDefault)(n(284));!function(e){e.BEFORE_HIGHLIGHT="element-range-highlight:beforehighlight",e.AFTER_HIGHLIGHT="element-range-highlight:afterhighlight",e.BEFORE_CLEAR="element-range-highlight:beforeclear",e.AFTER_CLEAR="element-range-highlight:afterclear"}(r||(r={})),t.ELEMENT_RANGE_HIGHLIGHT_EVENTS=r;var c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.stateName="active",t}return(0,o.__extends)(t,e),t.prototype.clearViewState=function(e){(0,a.clearHighlight)(e)},t.prototype.highlight=function(){var e=this.context,t=e.view,n={view:t,event:e.event,highlightElements:this.getIntersectElements()};t.emit(r.BEFORE_HIGHLIGHT,i.Event.fromData(t,r.BEFORE_HIGHLIGHT,n)),this.setState(),t.emit(r.AFTER_HIGHLIGHT,i.Event.fromData(t,r.AFTER_HIGHLIGHT,n))},t.prototype.clear=function(){var t=this.context.view;t.emit(r.BEFORE_CLEAR,i.Event.fromData(t,r.BEFORE_CLEAR,{})),e.prototype.clear.call(this),t.emit(r.AFTER_CLEAR,i.Event.fromData(t,r.AFTER_CLEAR,{}))},t.prototype.setElementsState=function(e,t,n){(0,a.setHighlightBy)(n,(function(t){return e.indexOf(t)>=0}),t)},t}(l.default);t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(0),i=n(1019),a=(0,r.__importDefault)(n(151)),l="inactive",c="active",s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.stateName=c,t.ignoreItemStates=["unchecked"],t}return(0,r.__extends)(t,e),t.prototype.setItemsState=function(e,t,n){this.setHighlightBy(e,(function(e){return e.name===t}),n)},t.prototype.setItemState=function(e,t,n){e.getItems(),this.setHighlightBy(e,(function(e){return e===t}),n)},t.prototype.setHighlightBy=function(e,t,n){var r=e.getItems();if(n)(0,o.each)(r,(function(n){t(n)?(e.hasState(n,l)&&e.setItemState(n,l,!1),e.setItemState(n,c,!0)):e.hasState(n,c)||e.setItemState(n,l,!0)}));else{var i=e.getItemsByState(c),a=!0;(0,o.each)(i,(function(e){if(!t(e))return a=!1,!1})),a?this.clear():(0,o.each)(r,(function(n){t(n)&&(e.hasState(n,c)&&e.setItemState(n,c,!1),e.setItemState(n,l,!0))}))}},t.prototype.highlight=function(){this.setState()},t.prototype.clear=function(){var e=this.getTriggerListInfo();if(e)(0,i.clearList)(e.list);else{var t=this.getAllowComponents();(0,o.each)(t,(function(e){e.clearItemsState(c),e.clearItemsState(l)}))}},t}(a.default);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var r;return function(){var o=this,i=arguments,a=n&&!r;clearTimeout(r),r=setTimeout((function(){r=null,n||e.apply(o,i)}),t),a&&e.apply(o,i)}}},function(e,t,n){"use strict";var r=n(389);e.exports=function(e,t,n){return(t=r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";t.a=function(e){if(0===e.length)return 0;for(var t,n=e[0],r=0,o=1;o<e.length;o++)t=n+e[o],Math.abs(n)>=Math.abs(e[o])?r+=n-t+e[o]:r+=e[o]-t+n,n=t;return n+r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ResizeObserver",{enumerable:!0,get:function(){return r.ResizeObserver}}),Object.defineProperty(t,"ResizeObserverEntry",{enumerable:!0,get:function(){return o.ResizeObserverEntry}}),Object.defineProperty(t,"ResizeObserverSize",{enumerable:!0,get:function(){return i.ResizeObserverSize}});var r=n(1044),o=n(486),i=n(488)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Line=void 0;var r=n(1),o=n(24),i=n(514),a=n(1092);n(1093);var l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="line",t}return r.__extends(t,e),t.getDefaultOptions=function(){return a.DEFAULT_OPTIONS},t.prototype.changeData=function(e){this.updateOption({data:e});var t=this.chart,n=this.options;i.meta({chart:t,options:n}),this.chart.changeData(e)},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return i.adaptor},t}(o.Plot);t.Line=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Pie=void 0;var r=n(1),o=n(14),i=n(24),a=n(15),l=n(1133),c=n(527),s=n(528);n(529);var u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="pie",t}return r.__extends(t,e),t.getDefaultOptions=function(){return c.DEFAULT_OPTIONS},t.prototype.changeData=function(e){this.chart.emit(o.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA,o.Event.fromData(this.chart,o.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA,null));var t=this.options,n=this.options.angleField,r=a.processIllegalData(t.data,n),i=a.processIllegalData(e,n);s.isAllZero(r,n)||s.isAllZero(i,n)?this.update({data:e}):(this.updateOption({data:e}),this.chart.data(i),l.pieAnnotation({chart:this.chart,options:this.options}),this.chart.render(!0)),this.chart.emit(o.VIEW_LIFE_CIRCLE.AFTER_CHANGE_DATA,o.Event.fromData(this.chart,o.VIEW_LIFE_CIRCLE.AFTER_CHANGE_DATA,null))},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return l.adaptor},t}(i.Plot);t.Pie=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Scatter=void 0;var r=n(1),o=n(14),i=n(24),a=n(15),l=n(1159),c=n(1161);n(1162);var s=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i.type="scatter",i.on(o.VIEW_LIFE_CIRCLE.BEFORE_RENDER,(function(e){var t,n,a=i,c=a.options,s=a.chart;if((null===(t=e.data)||void 0===t?void 0:t.source)===o.BRUSH_FILTER_EVENTS.FILTER){var u=i.chart.filterData(i.chart.getData());l.meta({chart:s,options:r.__assign(r.__assign({},c),{data:u})})}(null===(n=e.data)||void 0===n?void 0:n.source)===o.BRUSH_FILTER_EVENTS.RESET&&l.meta({chart:s,options:c})})),i}return r.__extends(t,e),t.getDefaultOptions=function(){return c.DEFAULT_OPTIONS},t.prototype.changeData=function(e){this.updateOption(l.transformOptions(a.deepAssign({},this.options,{data:e})));var t=this.options,n=this.chart;l.meta({chart:n,options:t}),this.chart.changeData(e)},t.prototype.getSchemaAdaptor=function(){return l.adaptor},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t}(i.Plot);t.Scatter=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.version=t.Shape=void 0;var r=n(1),o=n(143);t.Shape=o,r.__exportStar(n(26),t);var i=n(918);Object.defineProperty(t,"Canvas",{enumerable:!0,get:function(){return i.default}});var a=n(259);Object.defineProperty(t,"Group",{enumerable:!0,get:function(){return a.default}});var l=n(441);Object.defineProperty(t,"getArcParams",{enumerable:!0,get:function(){return l.default}}),t.version="0.5.12"},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(56));t.default=function(e,t){return!!(0,o.default)(e)&&e.indexOf(t)>-1}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(6));t.default=function(e){return"object"===(0,o.default)(e)&&null!==e}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(106)),i=r(n(57)),a=Object.values?function(e){return Object.values(e)}:function(e){var t=[];return(0,o.default)(e,(function(n,r){(0,i.default)(e)&&"prototype"===r||t.push(n)})),t};t.default=a},function(e,t,n){"use strict";function r(e,t){for(var n in t)t.hasOwnProperty(n)&&"constructor"!==n&&void 0!==t[n]&&(e[n]=t[n])}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,o){return t&&r(e,t),n&&r(e,n),o&&r(e,o),e}},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.SearchBotDeviceInfo=t.ReactNativeInfo=t.NodeInfo=t.BrowserInfo=t.BotInfo=void 0,t.browserName=function(e){var t=f(e);return t?t[0]:null},t.detect=function(e){return e?p(e):"undefined"===typeof document&&"undefined"!==typeof navigator&&"ReactNative"===navigator.product?new l:"undefined"!==typeof navigator?p(navigator.userAgent):g()},t.detectOS=h,t.getNodeVersion=g,t.parseUserAgent=p;var n=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},r=t.BrowserInfo=function(e,t,n){this.name=e,this.version=t,this.os=n,this.type="browser"},o=t.NodeInfo=function(t){this.version=t,this.type="node",this.name="node",this.os=e.platform},i=t.SearchBotDeviceInfo=function(e,t,n,r){this.name=e,this.version=t,this.os=n,this.bot=r,this.type="bot-device"},a=t.BotInfo=function(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null},l=t.ReactNativeInfo=function(){this.type="react-native",this.name="react-native",this.version=null,this.os=null},c=/(nuhk|curl|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,s=3,u=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["pie",/^Microsoft Pocket Internet Explorer\/(\d+\.\d+)$/],["pie",/^Mozilla\/\d\.\d+\s\(compatible;\s(?:MSP?IE|MSInternet Explorer) (\d+\.\d+);.*Windows CE.*\)$/],["netfront",/^Mozilla\/\d\.\d+.*NetFront\/(\d.\d)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FB[AS]V\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["curl",/^curl\/([0-9\.]+)$/],["searchbot",/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/]],d=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Windows CE",/Windows CE|WinCE|Microsoft Pocket Internet Explorer/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function f(e){return""!==e&&u.reduce((function(t,n){var r=n[0],o=n[1];if(t)return t;var i=o.exec(e);return!!i&&[r,i]}),!1)}function p(e){var t=f(e);if(!t)return null;var o=t[0],l=t[1];if("searchbot"===o)return new a;var u=l[1]&&l[1].split(".").join("_").split("_").slice(0,3);u?u.length<s&&(u=n(n([],u,!0),function(e){for(var t=[],n=0;n<e;n++)t.push("0");return t}(s-u.length),!0)):u=[];var d=u.join("."),p=h(e),g=c.exec(e);return g&&g[1]?new i(o,d,p,g[1]):new r(o,d,p)}function h(e){for(var t=0,n=d.length;t<n;t++){var r=d[t],o=r[0];if(r[1].exec(e))return o}return null}function g(){return"undefined"!==typeof e&&e.version?new o(e.version.slice(1)):null}}).call(this,n(752))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.invert=function(e){var t=[],n=e[0],r=e[1],o=e[2],i=e[3],a=e[4],l=e[5],c=e[6],s=e[7],u=e[8],d=u*a-l*s,f=-u*i+l*c,p=s*i-a*c,h=n*d+r*f+o*p;return h?(h=1/h,t[0]=d*h,t[1]=(-u*r+o*s)*h,t[2]=(l*r-o*a)*h,t[3]=f*h,t[4]=(u*n-o*c)*h,t[5]=(-l*n+o*i)*h,t[6]=p*h,t[7]=(-s*n+r*c)*h,t[8]=(a*n-r*i)*h,t):null},t.multiplyMatrix=function(e,t){var n=[],r=e[0],o=e[1],i=e[2],a=e[3],l=e[4],c=e[5],s=e[6],u=e[7],d=e[8],f=t[0],p=t[1],h=t[2],g=t[3],v=t[4],m=t[5],y=t[6],b=t[7],x=t[8];return n[0]=f*r+p*a+h*s,n[1]=f*o+p*l+h*u,n[2]=f*i+p*c+h*d,n[3]=g*r+v*a+m*s,n[4]=g*o+v*l+m*u,n[5]=g*i+v*c+m*d,n[6]=y*r+b*a+x*s,n[7]=y*o+b*l+x*u,n[8]=y*i+b*c+x*d,n},t.multiplyVec2=function(e,t){var n=[],r=t[0],o=t[1];return n[0]=e[0]*r+e[3]*o+e[6],n[1]=e[1]*r+e[4]*o+e[7],n}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.Timer=y,t.now=v,t.timer=b,t.timerFlush=x;var o,i,a=r(n(6)),l=0,c=0,s=0,u=1e3,d=0,f=0,p=0,h="object"===("undefined"===typeof performance?"undefined":(0,a.default)(performance))&&performance.now?performance:Date,g="object"===("undefined"===typeof window?"undefined":(0,a.default)(window))&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function v(){return f||(g(m),f=h.now()+p)}function m(){f=0}function y(){this._call=this._time=this._next=null}function b(e,t,n){var r=new y;return r.restart(e,t,n),r}function x(){v(),++l;for(var e,t=o;t;)(e=f-t._time)>=0&&t._call.call(null,e),t=t._next;--l}function w(){f=(d=h.now())+p,l=c=0;try{x()}finally{l=0,function(){for(var e,t,n=o,r=1/0;n;)n._call?(r>n._time&&(r=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:o=t);i=e,O(r)}(),f=0}}function S(){var e=h.now(),t=e-d;t>u&&(p-=t,d=e)}function O(e){l||(c&&(c=clearTimeout(c)),e-f>24?(e<1/0&&(c=setTimeout(w,e-h.now()-p)),s&&(s=clearInterval(s))):(s||(d=h.now(),s=setInterval(S,u)),l=1,g(w)))}y.prototype=b.prototype={constructor:y,restart:function(e,t,n){if("function"!==typeof e)throw new TypeError("callback is not a function");n=(null==n?v():+n)+(null==t?0:+t),this._next||i===this||(i?i._next=this:o=this,i=this),this._call=e,this._time=n,O()},stop:function(){this._call&&(this._call=null,this._time=1/0,O())}}},function(e,t,n){"use strict";var r=n(6);Object.defineProperty(t,"__esModule",{value:!0}),t.Color=a,t.Rgb=P,t.darker=t.brighter=void 0,t.default=S,t.hsl=R,t.hslConvert=L,t.rgb=E,t.rgbConvert=C;var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var n=i(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&Object.prototype.hasOwnProperty.call(e,l)){var c=a?Object.getOwnPropertyDescriptor(e,l):null;c&&(c.get||c.set)?Object.defineProperty(o,l,c):o[l]=e[l]}return o.default=e,n&&n.set(e,o),o}(n(245));function i(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(i=function(e){return e?n:t})(e)}function a(){}var l=t.darker=.7,c=t.brighter=1/l,s="\\s*([+-]?\\d+)\\s*",u="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",d="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",f=/^#([0-9a-f]{3,8})$/,p=new RegExp("^rgb\\(".concat(s,",").concat(s,",").concat(s,"\\)$")),h=new RegExp("^rgb\\(".concat(d,",").concat(d,",").concat(d,"\\)$")),g=new RegExp("^rgba\\(".concat(s,",").concat(s,",").concat(s,",").concat(u,"\\)$")),v=new RegExp("^rgba\\(".concat(d,",").concat(d,",").concat(d,",").concat(u,"\\)$")),m=new RegExp("^hsl\\(".concat(u,",").concat(d,",").concat(d,"\\)$")),y=new RegExp("^hsla\\(".concat(u,",").concat(d,",").concat(d,",").concat(u,"\\)$")),b={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function x(){return this.rgb().formatHex()}function w(){return this.rgb().formatRgb()}function S(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=f.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?O(t):3===n?new P(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?_(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?_(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=p.exec(e))?new P(t[1],t[2],t[3],1):(t=h.exec(e))?new P(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=g.exec(e))?_(t[1],t[2],t[3],t[4]):(t=v.exec(e))?_(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=m.exec(e))?j(t[1],t[2]/100,t[3]/100,1):(t=y.exec(e))?j(t[1],t[2]/100,t[3]/100,t[4]):b.hasOwnProperty(e)?O(b[e]):"transparent"===e?new P(NaN,NaN,NaN,0):null}function O(e){return new P(e>>16&255,e>>8&255,255&e,1)}function _(e,t,n,r){return r<=0&&(e=t=n=NaN),new P(e,t,n,r)}function C(e){return e instanceof a||(e=S(e)),e?new P((e=e.rgb()).r,e.g,e.b,e.opacity):new P}function E(e,t,n,r){return 1===arguments.length?C(e):new P(e,t,n,null==r?1:r)}function P(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function M(){return"#".concat(T(this.r)).concat(T(this.g)).concat(T(this.b))}function k(){var e=A(this.opacity);return"".concat(1===e?"rgb(":"rgba(").concat(I(this.r),", ").concat(I(this.g),", ").concat(I(this.b)).concat(1===e?")":", ".concat(e,")"))}function A(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function I(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function T(e){return((e=I(e))<16?"0":"")+e.toString(16)}function j(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new D(e,t,n,r)}function L(e){if(e instanceof D)return new D(e.h,e.s,e.l,e.opacity);if(e instanceof a||(e=S(e)),!e)return new D;if(e instanceof D)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),l=NaN,c=i-o,s=(i+o)/2;return c?(l=t===i?(n-r)/c+6*(n<r):n===i?(r-t)/c+2:(t-n)/c+4,c/=s<.5?i+o:2-i-o,l*=60):c=s>0&&s<1?0:l,new D(l,c,s,e.opacity)}function R(e,t,n,r){return 1===arguments.length?L(e):new D(e,t,n,null==r?1:r)}function D(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function N(e){return(e=(e||0)%360)<0?e+360:e}function F(e){return Math.max(0,Math.min(1,e||0))}function B(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}(0,o.default)(a,S,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:x,formatHex:x,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return L(this).formatHsl()},formatRgb:w,toString:w}),(0,o.default)(P,E,(0,o.extend)(a,{brighter:function(e){return e=null==e?c:Math.pow(c,e),new P(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?l:Math.pow(l,e),new P(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},clamp:function(){return new P(I(this.r),I(this.g),I(this.b),A(this.opacity))},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:M,formatHex:M,formatHex8:function(){return"#".concat(T(this.r)).concat(T(this.g)).concat(T(this.b)).concat(T(255*(isNaN(this.opacity)?1:this.opacity)))},formatRgb:k,toString:k})),(0,o.default)(D,R,(0,o.extend)(a,{brighter:function(e){return e=null==e?c:Math.pow(c,e),new D(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?l:Math.pow(l,e),new D(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new P(B(e>=240?e-240:e+120,o,r),B(e,o,r),B(e<120?e+240:e-120,o,r),this.opacity)},clamp:function(){return new D(N(this.h),F(this.s),F(this.l),A(this.opacity))},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=A(this.opacity);return"".concat(1===e?"hsl(":"hsla(").concat(N(this.h),", ").concat(100*F(this.s),"%, ").concat(100*F(this.l),"%").concat(1===e?")":", ".concat(e,")"))}}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){e.prototype=t.prototype=n,n.constructor=e},t.extend=function(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}},function(e,t,n){"use strict";function r(e,t,n,r,o){var i=e*e,a=i*e;return((1-3*e+3*i-a)*t+(4-6*i+3*a)*n+(1+3*e+3*i-3*a)*r+a*o)/6}Object.defineProperty(t,"__esModule",{value:!0}),t.basis=r,t.default=function(e){var t=e.length-1;return function(n){var o=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),i=e[o],a=e[o+1],l=o>0?e[o-1]:2*i-a,c=o<t-1?e[o+2]:2*a-i;return r((n-o/t)*t,l,i,a,c)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){t||(t=[]);var n,r=e?Math.min(t.length,e.length):0,o=t.slice();return function(i){for(n=0;n<r;++n)o[n]=e[n]*(1-i)+t[n]*i;return o}},t.isNumberArray=function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}},function(e,t,n){"use strict";function r(e,t){return e&&t?{minX:Math.min(e.minX,t.minX),minY:Math.min(e.minY,t.minY),maxX:Math.max(e.maxX,t.maxX),maxY:Math.max(e.maxY,t.maxY)}:e||t}Object.defineProperty(t,"__esModule",{value:!0}),t.mergeArrowBBox=function(e,t){var n=e.get("startArrowShape"),o=e.get("endArrowShape");return n&&(t=r(t,n.getCanvasBBox())),o&&(t=r(t,o.getCanvasBBox())),t},t.mergeBBox=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MARGIN_RATIO=t.GAP=t.DODGE_RATIO=t.DEFAULT_Y=void 0,t.DEFAULT_Y=0,t.MARGIN_RATIO=.5,t.DODGE_RATIO=.5,t.GAP=.05},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0});var o={Attribute:!0,Color:!0,Opacity:!0,Position:!0,Shape:!0,Size:!0,getAttribute:!0,registerAttribute:!0};Object.defineProperty(t,"Attribute",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"Color",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"Opacity",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"Position",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"Shape",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"Size",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"getAttribute",{enumerable:!0,get:function(){return d.getAttribute}}),Object.defineProperty(t,"registerAttribute",{enumerable:!0,get:function(){return d.registerAttribute}});var i=r(n(102)),a=r(n(826)),l=r(n(827)),c=r(n(828)),s=r(n(829)),u=r(n(830)),d=n(831),f=n(427);Object.keys(f).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(o,e)||e in t&&t[e]===f[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return f[e]}}))})),(0,d.registerAttribute)("Color",a.default),(0,d.registerAttribute)("Opacity",l.default),(0,d.registerAttribute)("Position",c.default),(0,d.registerAttribute)("Shape",s.default),(0,d.registerAttribute)("Size",u.default)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var i=o(e,n,"floor"),a=o(t,n,"ceil");i=(0,r.fixedBase)(i,n),a=(0,r.fixedBase)(a,n);for(var l=[],c=Math.max((a-i)/(Math.pow(2,12)-1),n),s=i;s<=a;s+=c){var u=(0,r.fixedBase)(s,c);l.push(u)}return{min:i,max:a,ticks:l}};var r=n(0);function o(e,t,n){return("ceil"===n?Math.ceil(e/t):"floor"===n?Math.floor(e/t):Math.round(e/t))*t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var o,i=e.minLimit,a=e.maxLimit,l=e.min,c=e.max,s=e.tickCount,u=void 0===s?5:s,d=(0,r.isNil)(i)?(0,r.isNil)(t)?l:t:i,f=(0,r.isNil)(a)?(0,r.isNil)(n)?c:n:a;if(d>f&&(f=(o=[d,f])[0],d=o[1]),u<=2)return[d,f];for(var p=(f-d)/(u-1),h=[],g=0;g<u;g++)h.push(d+p*g);return h};var r=n(0)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(1),o=n(26),i=n(0),a={none:[],point:["x","y"],region:["start","end"],points:["points"],circle:["center","radius","startAngle","endAngle"]},l=function(e){function t(t){var n=e.call(this,t)||this;return n.initCfg(),n}return(0,r.__extends)(t,e),t.prototype.getDefaultCfg=function(){return{id:"",name:"",type:"",locationType:"none",offsetX:0,offsetY:0,animate:!1,capture:!0,updateAutoRender:!1,animateOption:{appear:null,update:{duration:400,easing:"easeQuadInOut"},enter:{duration:400,easing:"easeQuadInOut"},leave:{duration:350,easing:"easeQuadIn"}},events:null,defaultCfg:{},visible:!0}},t.prototype.clear=function(){},t.prototype.update=function(e){var t=this,n=this.get("defaultCfg")||{};(0,i.each)(e,(function(e,r){var o=e;t.get(r)!==e&&((0,i.isObject)(e)&&n[r]&&(o=(0,i.deepMix)({},n[r],e)),t.set(r,o))})),this.updateInner(e),this.afterUpdate(e)},t.prototype.updateInner=function(e){},t.prototype.afterUpdate=function(e){(0,i.hasKey)(e,"visible")&&(e.visible?this.show():this.hide()),(0,i.hasKey)(e,"capture")&&this.setCapture(e.capture)},t.prototype.getLayoutBBox=function(){return this.getBBox()},t.prototype.getLocationType=function(){return this.get("locationType")},t.prototype.getOffset=function(){return{offsetX:this.get("offsetX"),offsetY:this.get("offsetY")}},t.prototype.setOffset=function(e,t){this.update({offsetX:e,offsetY:t})},t.prototype.setLocation=function(e){var t=(0,r.__assign)({},e);this.update(t)},t.prototype.getLocation=function(){var e=this,t={},n=this.get("locationType"),r=a[n];return(0,i.each)(r,(function(n){t[n]=e.get(n)})),t},t.prototype.isList=function(){return!1},t.prototype.isSlider=function(){return!1},t.prototype.init=function(){},t.prototype.initCfg=function(){var e=this,t=this.get("defaultCfg");(0,i.each)(t,(function(t,n){var r=e.get(n);if((0,i.isObject)(r)){var o=(0,i.deepMix)({},t,r);e.set(n,o)}}))},t}(o.Base);t.default=l},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(1),i=n(32),a=n(0),l=r(n(41)),c=n(89),s=n(436),u=r(n(58)),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,o.__extends)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,o.__assign)((0,o.__assign)({},t),{name:"axis",ticks:[],line:{},tickLine:{},subTickLine:null,title:null,label:{},verticalFactor:1,verticalLimitLength:null,overlapOrder:["autoRotate","autoEllipsis","autoHide"],tickStates:{},optimize:{},defaultCfg:{line:{style:{lineWidth:1,stroke:u.default.lineColor}},tickLine:{style:{lineWidth:1,stroke:u.default.lineColor},alignTick:!0,length:5,displayWithLabel:!0},subTickLine:{style:{lineWidth:1,stroke:u.default.lineColor},count:4,length:2},label:{autoRotate:!0,autoHide:!1,autoEllipsis:!1,style:{fontSize:12,fill:u.default.textColor,fontFamily:u.default.fontFamily,fontWeight:"normal"},offset:10,offsetX:0,offsetY:0},title:{autoRotate:!0,spacing:5,position:"center",style:{fontSize:12,fill:u.default.textColor,textBaseline:"middle",fontFamily:u.default.fontFamily,textAlign:"center"},iconStyle:{fill:u.default.descriptionIconFill,stroke:u.default.descriptionIconStroke},description:""},tickStates:{active:{labelStyle:{fontWeight:500},tickLineStyle:{lineWidth:2}},inactive:{labelStyle:{fill:u.default.uncheckedColor}}},optimize:{enable:!0,threshold:400}},theme:{}})},t.prototype.renderInner=function(e){this.get("line")&&this.drawLine(e),this.drawTicks(e),this.get("title")&&this.drawTitle(e)},t.prototype.isList=function(){return!0},t.prototype.getItems=function(){return this.get("ticks")},t.prototype.setItems=function(e){this.update({ticks:e})},t.prototype.updateItem=function(e,t){(0,a.mix)(e,t),this.clear(),this.render()},t.prototype.clearItems=function(){var e=this.getElementByLocalId("label-group");e&&e.clear()},t.prototype.setItemState=function(e,t,n){e[t]=n,this.updateTickStates(e)},t.prototype.hasState=function(e,t){return!!e[t]},t.prototype.getItemStates=function(e){var t=this.get("tickStates"),n=[];return(0,a.each)(t,(function(t,r){e[r]&&n.push(r)})),n},t.prototype.clearItemsState=function(e){var t=this,n=this.getItemsByState(e);(0,a.each)(n,(function(n){t.setItemState(n,e,!1)}))},t.prototype.getItemsByState=function(e){var t=this,n=this.getItems();return(0,a.filter)(n,(function(n){return t.hasState(n,e)}))},t.prototype.getSidePoint=function(e,t){var n=this.getSideVector(t,e);return{x:e.x+n[0],y:e.y+n[1]}},t.prototype.getTextAnchor=function(e){var t;return(0,a.isNumberEqual)(e[0],0)?t="center":e[0]>0?t="start":e[0]<0&&(t="end"),t},t.prototype.getTextBaseline=function(e){var t;return(0,a.isNumberEqual)(e[1],0)?t="middle":e[1]>0?t="top":e[1]<0&&(t="bottom"),t},t.prototype.processOverlap=function(e){},t.prototype.drawLine=function(e){var t=this.getLinePath(),n=this.get("line");this.addShape(e,{type:"path",id:this.getElementId("line"),name:"axis-line",attrs:(0,a.mix)({path:t},n.style)})},t.prototype.getTickLineItems=function(e){var t=this,n=[],r=this.get("tickLine"),o=r.alignTick,i=r.length,l=1;return e.length>=2&&(l=e[1].value-e[0].value),(0,a.each)(e,(function(e){var r=e.point;o||(r=t.getTickPoint(e.value-l/2));var a=t.getSidePoint(r,i);n.push({startPoint:r,tickValue:e.value,endPoint:a,tickId:e.id,id:"tickline-"+e.id})})),n},t.prototype.getSubTickLineItems=function(e){var t=[],n=this.get("subTickLine"),r=n.count,o=e.length;if(o>=2)for(var i=0;i<o-1;i++)for(var a=e[i],l=e[i+1],c=0;c<r;c++){var s=(c+1)/(r+1),u=(1-s)*a.tickValue+s*l.tickValue,d=this.getTickPoint(u),f=this.getSidePoint(d,n.length);t.push({startPoint:d,endPoint:f,tickValue:u,id:"sub-"+a.id+"-"+c})}return t},t.prototype.getTickLineAttrs=function(e,t,n,r){var i=this.get(t).style,l={points:[e.startPoint,e.endPoint]},c=(0,a.get)(this.get("theme"),["tickLine","style"],{});i=(0,a.isFunction)(i)?(0,a.mix)({},c,i(l,n,r)):i;var s=e.startPoint,u=e.endPoint;return(0,o.__assign)({x1:s.x,y1:s.y,x2:u.x,y2:u.y},i)},t.prototype.drawTick=function(e,t,n,r,o){this.addShape(t,{type:"line",id:this.getElementId(e.id),name:"axis-"+n,attrs:this.getTickLineAttrs(e,n,r,o)})},t.prototype.drawTickLines=function(e){var t=this,n=this.get("ticks"),r=this.get("subTickLine"),o=this.getTickLineItems(n),i=this.addGroup(e,{name:"axis-tickline-group",id:this.getElementId("tickline-group")}),l=this.get("tickLine");if((0,a.each)(o,(function(n,r){if(l.displayWithLabel){var a=t.getElementId("label-"+n.tickId);e.findById(a)&&t.drawTick(n,i,"tickLine",r,o)}else t.drawTick(n,i,"tickLine",r,o)})),r){var c=this.getSubTickLineItems(o);(0,a.each)(c,(function(e,n){t.drawTick(e,i,"subTickLine",n,c)}))}},t.prototype.processTicks=function(){var e=this,t=this.get("ticks");(0,a.each)(t,(function(t){t.point=e.getTickPoint(t.value),(0,a.isNil)(t.id)&&(t.id=t.name)}))},t.prototype.drawTicks=function(e){var t=this;this.optimizeTicks(),this.processTicks(),this.get("label")&&this.drawLabels(e),this.get("tickLine")&&this.drawTickLines(e);var n=this.get("ticks");(0,a.each)(n,(function(n){t.applyTickStates(n,e)}))},t.prototype.optimizeTicks=function(){var e=this.get("optimize"),t=this.get("ticks");if(e&&e.enable&&e.threshold>0){var n=(0,a.size)(t);if(n>e.threshold){var r=Math.ceil(n/e.threshold),o=t.filter((function(e,t){return t%r===0}));this.set("ticks",o),this.set("originalTicks",t)}}},t.prototype.getLabelAttrs=function(e,t,n){var r=this.get("label"),o=r.offset,i=r.offsetX,l=r.offsetY,s=r.rotate,u=r.formatter,d=this.getSidePoint(e.point,o),f=this.getSideVector(o,d),p=u?u(e.name,e,t):e.name,h=r.style;h=(0,a.isFunction)(h)?(0,a.get)(this.get("theme"),["label","style"],{}):h;var g=(0,a.mix)({x:d.x+i,y:d.y+l,text:p,textAlign:this.getTextAnchor(f),textBaseline:this.getTextBaseline(f)},h);return s&&(g.matrix=(0,c.getMatrixByAngle)(d,s)),g},t.prototype.drawLabels=function(e){var t=this,n=this.get("ticks"),r=this.addGroup(e,{name:"axis-label-group",id:this.getElementId("label-group")});(0,a.each)(n,(function(e,o){t.addShape(r,{type:"text",name:"axis-label",id:t.getElementId("label-"+e.id),attrs:t.getLabelAttrs(e,o,n),delegateObject:{tick:e,item:e,index:o}})})),this.processOverlap(r);var o=r.getChildren(),i=(0,a.get)(this.get("theme"),["label","style"],{}),l=this.get("label"),c=l.style,s=l.formatter;if((0,a.isFunction)(c)){var u=o.map((function(e){return(0,a.get)(e.get("delegateObject"),"tick")}));(0,a.each)(o,(function(e,t){var n=e.get("delegateObject").tick,r=s?s(n.name,n,t):n.name,o=(0,a.mix)({},i,c(r,t,u));e.attr(o)}))}},t.prototype.getTitleAttrs=function(){var e=this.get("title"),t=e.style,n=e.position,r=e.offset,o=e.spacing,l=void 0===o?0:o,s=e.autoRotate,u=t.fontSize,d=.5;"start"===n?d=0:"end"===n&&(d=1);var f=this.getTickPoint(d),p=this.getSidePoint(f,r||l+u/2),h=(0,a.mix)({x:p.x,y:p.y,text:e.text},t),g=e.rotate,v=g;if((0,a.isNil)(g)&&s){var m=this.getAxisVector(f);v=i.ext.angleTo(m,[1,0],!0)}if(v){var y=(0,c.getMatrixByAngle)(p,v);h.matrix=y}return h},t.prototype.drawTitle=function(e){var t,n=this.getTitleAttrs(),r=this.addShape(e,{type:"text",id:this.getElementId("title"),name:"axis-title",attrs:n});(null===(t=this.get("title"))||void 0===t?void 0:t.description)&&this.drawDescriptionIcon(e,r,n.matrix)},t.prototype.drawDescriptionIcon=function(e,t,n){var r=this.addGroup(e,{name:"axis-description",id:this.getElementById("description")}),i=t.getBBox(),a=i.maxX,l=i.maxY,c=i.height,s=this.get("title").iconStyle,u=c/2,d=u/6,f=a+4,p=l-c/2,h=[f+u,p-u],g=h[0],v=h[1],m=[g+u,v+u],y=m[0],b=m[1],x=[g,b+u],w=x[0],S=x[1],O=[f,v+u],_=O[0],C=O[1],E=[f+u,p-c/4],P=E[0],M=E[1],k=[P,M+d],A=k[0],I=k[1],T=[A,I+d],j=T[0],L=T[1],R=[j,L+3*u/4],D=R[0],N=R[1];this.addShape(r,{type:"path",id:this.getElementId("title-description-icon"),name:"axis-title-description-icon",attrs:(0,o.__assign)({path:[["M",g,v],["A",u,u,0,0,1,y,b],["A",u,u,0,0,1,w,S],["A",u,u,0,0,1,_,C],["A",u,u,0,0,1,g,v],["M",P,M],["L",A,I],["M",j,L],["L",D,N]],lineWidth:d,matrix:n},s)}),this.addShape(r,{type:"rect",id:this.getElementId("title-description-rect"),name:"axis-title-description-rect",attrs:{x:f,y:p-c/2,width:c,height:c,stroke:"#000",fill:"#000",opacity:0,matrix:n,cursor:"pointer"}})},t.prototype.applyTickStates=function(e,t){if(this.getItemStates(e).length){var n=this.get("tickStates"),r=this.getElementId("label-"+e.id),o=t.findById(r);if(o){var i=(0,s.getStatesStyle)(e,"label",n);i&&o.attr(i)}var a=this.getElementId("tickline-"+e.id),l=t.findById(a);if(l){var c=(0,s.getStatesStyle)(e,"tickLine",n);c&&l.attr(c)}}},t.prototype.updateTickStates=function(e){var t=this.getItemStates(e),n=this.get("tickStates"),r=this.get("label"),o=this.getElementByLocalId("label-"+e.id),i=this.get("tickLine"),a=this.getElementByLocalId("tickline-"+e.id);if(t.length){if(o){var l=(0,s.getStatesStyle)(e,"label",n);l&&o.attr(l)}if(a){var c=(0,s.getStatesStyle)(e,"tickLine",n);c&&a.attr(c)}}else o&&o.attr(r.style),a&&a.attr(i.style)},t}(l.default);t.default=d},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(1),i=n(0),a=r(n(41)),l=n(89),c=r(n(58)),s=n(42),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,o.__extends)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,o.__assign)((0,o.__assign)({},t),{name:"crosshair",type:"base",line:{},text:null,textBackground:{},capture:!1,defaultCfg:{line:{style:{lineWidth:1,stroke:c.default.lineColor}},text:{position:"start",offset:10,autoRotate:!1,content:null,style:{fill:c.default.textColor,textAlign:"center",textBaseline:"middle",fontFamily:c.default.fontFamily}},textBackground:{padding:5,style:{stroke:c.default.lineColor}}}})},t.prototype.renderInner=function(e){this.get("line")&&this.renderLine(e),this.get("text")&&(this.renderText(e),this.renderBackground(e))},t.prototype.renderText=function(e){var t=this.get("text"),n=t.style,r=t.autoRotate,a=t.content;if(!(0,i.isNil)(a)){var c=this.getTextPoint(),s=null;if(r){var u=this.getRotateAngle();s=(0,l.getMatrixByAngle)(c,u)}this.addShape(e,{type:"text",name:"crosshair-text",id:this.getElementId("text"),attrs:(0,o.__assign)((0,o.__assign)((0,o.__assign)({},c),{text:a,matrix:s}),n)})}},t.prototype.renderLine=function(e){var t=this.getLinePath(),n=this.get("line").style;this.addShape(e,{type:"path",name:"crosshair-line",id:this.getElementId("line"),attrs:(0,o.__assign)({path:t},n)})},t.prototype.renderBackground=function(e){var t=this.getElementId("text"),n=e.findById(t),r=this.get("textBackground");if(r&&n){var i=n.getBBox(),a=(0,s.formatPadding)(r.padding),l=r.style;this.addShape(e,{type:"rect",name:"crosshair-text-background",id:this.getElementId("text-background"),attrs:(0,o.__assign)({x:i.x-a[3],y:i.y-a[0],width:i.width+a[1]+a[3],height:i.height+a[0]+a[2],matrix:n.attr("matrix")},l)}).toBack()}},t}(a.default);t.default=u},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(1),i=n(0),a=r(n(41)),l=r(n(58)),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,o.__extends)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,o.__assign)((0,o.__assign)({},t),{name:"grid",line:{},alternateColor:null,capture:!1,items:[],closed:!1,defaultCfg:{line:{type:"line",style:{lineWidth:1,stroke:l.default.lineColor}}}})},t.prototype.getLineType=function(){return(this.get("line")||this.get("defaultCfg").line).type},t.prototype.renderInner=function(e){this.drawGrid(e)},t.prototype.getAlternatePath=function(e,t){var n=this.getGridPath(e),r=t.slice(0).reverse(),o=this.getGridPath(r,!0);return this.get("closed")?n=n.concat(o):(o[0][0]="L",(n=n.concat(o)).push(["Z"])),n},t.prototype.getPathStyle=function(){return this.get("line").style},t.prototype.drawGrid=function(e){var t=this,n=this.get("line"),r=this.get("items"),o=this.get("alternateColor"),a=null;(0,i.each)(r,(function(l,c){var s=l.id||c;if(n){var u=t.getPathStyle();u=(0,i.isFunction)(u)?u(l,c,r):u;var d=t.getElementId("line-"+s),f=t.getGridPath(l.points);t.addShape(e,{type:"path",name:"grid-line",id:d,attrs:(0,i.mix)({path:f},u)})}if(o&&c>0){var p=t.getElementId("region-"+s),h=c%2===0;if((0,i.isString)(o))h&&t.drawAlternateRegion(p,e,a.points,l.points,o);else{var g=h?o[1]:o[0];t.drawAlternateRegion(p,e,a.points,l.points,g)}}a=l}))},t.prototype.drawAlternateRegion=function(e,t,n,r,o){var i=this.getAlternatePath(n,r);this.addShape(t,{type:"path",id:e,name:"grid-region",attrs:{path:i,fill:o}})},t}(a.default);t.default=c},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(1),i=r(n(41)),a=n(42),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,o.__extends)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,o.__assign)((0,o.__assign)({},t),{name:"legend",layout:"horizontal",locationType:"point",x:0,y:0,offsetX:0,offsetY:0,title:null,background:null})},t.prototype.getLayoutBBox=function(){var t=e.prototype.getLayoutBBox.call(this),n=this.get("maxWidth"),r=this.get("maxHeight"),o=t.width,i=t.height;return n&&(o=Math.min(o,n)),r&&(i=Math.min(i,r)),(0,a.createBBox)(t.minX,t.minY,o,i)},t.prototype.setLocation=function(e){this.set("x",e.x),this.set("y",e.y),this.resetLocation()},t.prototype.resetLocation=function(){var e=this.get("x"),t=this.get("y"),n=this.get("offsetX"),r=this.get("offsetY");this.moveElementTo(this.get("group"),{x:e+n,y:t+r})},t.prototype.applyOffset=function(){this.resetLocation()},t.prototype.getDrawPoint=function(){return this.get("currentPoint")},t.prototype.setDrawPoint=function(e){return this.set("currentPoint",e)},t.prototype.renderInner=function(e){this.resetDraw(),this.get("title")&&this.drawTitle(e),this.drawLegendContent(e),this.get("background")&&this.drawBackground(e)},t.prototype.drawBackground=function(e){var t=this.get("background"),n=e.getBBox(),r=(0,a.formatPadding)(t.padding),i=(0,o.__assign)({x:0,y:0,width:n.width+r[1]+r[3],height:n.height+r[0]+r[2]},t.style);this.addShape(e,{type:"rect",id:this.getElementId("background"),name:"legend-background",attrs:i}).toBack()},t.prototype.drawTitle=function(e){var t=this.get("currentPoint"),n=this.get("title"),r=n.spacing,i=n.style,a=n.text,l=this.addShape(e,{type:"text",id:this.getElementId("title"),name:"legend-title",attrs:(0,o.__assign)({text:a,x:t.x,y:t.y},i)}).getBBox();this.set("currentPoint",{x:t.x,y:l.maxY+r})},t.prototype.resetDraw=function(){var e=this.get("background"),t={x:0,y:0};if(e){var n=(0,a.formatPadding)(e.padding);t.x=n[3],t.y=n[0]}this.set("currentPoint",t)},t}(i.default);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VALUE_CLASS=t.TITLE_CLASS=t.NAME_CLASS=t.MARKER_CLASS=t.LIST_ITEM_CLASS=t.LIST_CLASS=t.CROSSHAIR_Y=t.CROSSHAIR_X=t.CONTAINER_CLASS=void 0,t.CONTAINER_CLASS="g2-tooltip",t.TITLE_CLASS="g2-tooltip-title",t.LIST_CLASS="g2-tooltip-list",t.LIST_ITEM_CLASS="g2-tooltip-list-item",t.MARKER_CLASS="g2-tooltip-marker",t.VALUE_CLASS="g2-tooltip-value",t.NAME_CLASS="g2-tooltip-name",t.CROSSHAIR_X="g2-tooltip-crosshair-x",t.CROSSHAIR_Y="g2-tooltip-crosshair-y"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(26),i=n(143),a=n(144),l=n(0),c=n(51),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.onCanvasChange=function(e){a.refreshElement(this,e)},t.prototype.getShapeBase=function(){return i},t.prototype.getGroupBase=function(){return t},t.prototype._applyClip=function(e,t){t&&(e.save(),a.applyAttrsToContext(e,t),t.createPath(e),e.restore(),e.clip(),t._afterDraw())},t.prototype.cacheCanvasBBox=function(){var e=this.cfg.children,t=[],n=[];l.each(e,(function(e){var r=e.cfg.cacheCanvasBBox;r&&e.cfg.isInView&&(t.push(r.minX,r.maxX),n.push(r.minY,r.maxY))}));var r=null;if(t.length){var o=l.min(t),i=l.max(t),a=l.min(n),s=l.max(n);r={minX:o,minY:a,x:o,y:a,maxX:i,maxY:s,width:i-o,height:s-a};var u=this.cfg.canvas;if(u){var d=u.getViewRange();this.set("isInView",c.intersectRect(r,d))}}else this.set("isInView",!1);this.set("cacheCanvasBBox",r)},t.prototype.draw=function(e,t){var n=this.cfg.children,r=!t||this.cfg.refresh;n.length&&r&&(e.save(),a.applyAttrsToContext(e,this),this._applyClip(e,this.getClip()),a.drawChildren(e,n,t),e.restore(),this.cacheCanvasBBox()),this.cfg.refresh=null,this.set("hasChanged",!1)},t.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("hasChanged",!1)},t}(o.AbstractGroup);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.refreshElement=t.drawChildren=void 0;var r=n(145),o=n(72);t.drawChildren=function(e,t){t.forEach((function(t){t.draw(e)}))},t.refreshElement=function(e,t){var n=e.get("canvas");if(n&&n.get("autoDraw")){var i=n.get("context"),a=e.getParent(),l=a?a.getChildren():[n],c=e.get("el");if("remove"===t)if(e.get("isClipShape")){var s=c&&c.parentNode,u=s&&s.parentNode;s&&u&&u.removeChild(s)}else c&&c.parentNode&&c.parentNode.removeChild(c);else if("show"===t)c.setAttribute("visibility","visible");else if("hide"===t)c.setAttribute("visibility","hidden");else if("zIndex"===t)o.moveTo(c,l.indexOf(e));else if("sort"===t){var d=e.get("children");d&&d.length&&o.sortDom(e,(function(e,t){return d.indexOf(e)-d.indexOf(t)?1:0}))}else"clear"===t?c&&(c.innerHTML=""):"matrix"===t?r.setTransform(e):"clip"===t?r.setClip(e,i):"attr"===t||"add"===t&&e.draw(i)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(26),i=n(0),a=n(185),l=n(260),c=n(145),s=n(52),u=n(72),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.isEntityGroup=function(){return!0},t.prototype.createDom=function(){var e=u.createSVGElement("g");this.set("el",e);var t=this.getParent();if(t){var n=t.get("el");n||(n=t.createDom(),t.set("el",n)),n.appendChild(e)}return e},t.prototype.afterAttrsChange=function(t){e.prototype.afterAttrsChange.call(this,t);var n=this.get("canvas");if(n&&n.get("autoDraw")){var r=n.get("context");this.createPath(r,t)}},t.prototype.onCanvasChange=function(e){l.refreshElement(this,e)},t.prototype.getShapeBase=function(){return a},t.prototype.getGroupBase=function(){return t},t.prototype.draw=function(e){var t=this.getChildren(),n=this.get("el");this.get("destroyed")?n&&n.parentNode.removeChild(n):(n||this.createDom(),c.setClip(this,e),this.createPath(e),t.length&&l.drawChildren(e,t))},t.prototype.createPath=function(e,t){var n=this.attr(),r=this.get("el");i.each(t||n,(function(e,t){s.SVG_ATTR_MAP[t]&&r.setAttribute(s.SVG_ATTR_MAP[t],e)})),c.setTransform(this)},t}(o.AbstractGroup);t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=function(e){function t(t){var n=e.call(this)||this;n.destroyed=!1;var r=t.visible,o=void 0===r||r;return n.visible=o,n}return(0,r.__extends)(t,e),t.prototype.show=function(){this.visible||this.changeVisible(!0)},t.prototype.hide=function(){this.visible&&this.changeVisible(!1)},t.prototype.destroy=function(){this.off(),this.destroyed=!0},t.prototype.changeVisible=function(e){this.visible!==e&&(this.visible=e)},t}((0,r.__importDefault)(n(125)).default);t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.registerFacet=t.getFacet=t.Facet=void 0;var r=n(0),o=n(104);Object.defineProperty(t,"Facet",{enumerable:!0,get:function(){return o.Facet}});var i={};t.getFacet=function(e){return i[(0,r.lowerCase)(e)]},t.registerFacet=function(e,t){i[(0,r.lowerCase)(e)]=t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getAxisTitleText=t.getAxisDirection=t.getAxisOption=t.getCircleAxisCenterRadius=t.getAxisTitleOptions=t.getAxisThemeCfg=t.getAxisFactorByRegion=t.isVertical=t.getAxisFactor=t.getAxisRegion=t.getCircleAxisRelativeRegion=t.getLineAxisRelativeRegion=void 0;var r=n(0),o=n(21),i=n(110),a=n(32);function l(e){var t,n;switch(e){case o.DIRECTION.TOP:t={x:0,y:1},n={x:1,y:1};break;case o.DIRECTION.RIGHT:t={x:1,y:0},n={x:1,y:1};break;case o.DIRECTION.BOTTOM:t={x:0,y:0},n={x:1,y:0};break;case o.DIRECTION.LEFT:t={x:0,y:0},n={x:0,y:1};break;default:t=n={x:0,y:0}}return{start:t,end:n}}function c(e){var t,n;return e.isTransposed?(t={x:0,y:0},n={x:1,y:0}):(t={x:0,y:0},n={x:0,y:1}),{start:t,end:n}}function s(e){var t=e.start,n=e.end;return t.x===n.x}t.getLineAxisRelativeRegion=l,t.getCircleAxisRelativeRegion=c,t.getAxisRegion=function(e,t){var n={start:{x:0,y:0},end:{x:0,y:0}};e.isRect?n=l(t):e.isPolar&&(n=c(e));var r=n.start,o=n.end;return{start:e.convert(r),end:e.convert(o)}},t.getAxisFactor=function(e,t){return e.isRect?e.isTransposed?[o.DIRECTION.RIGHT,o.DIRECTION.BOTTOM].includes(t)?1:-1:[o.DIRECTION.BOTTOM,o.DIRECTION.RIGHT].includes(t)?-1:1:e.isPolar&&e.x.start<0?-1:1},t.isVertical=s,t.getAxisFactorByRegion=function(e,t){var n=e.start,r=e.end;return s(e)?(n.y-r.y)*(t.x-n.x)>0?1:-1:(r.x-n.x)*(n.y-t.y)>0?-1:1},t.getAxisThemeCfg=function(e,t){var n=(0,r.get)(e,["components","axis"],{});return(0,r.deepMix)({},(0,r.get)(n,["common"],{}),(0,r.deepMix)({},(0,r.get)(n,[t],{})))},t.getAxisTitleOptions=function(e,t,n){var o=(0,r.get)(e,["components","axis"],{});return(0,r.deepMix)({},(0,r.get)(o,["common","title"],{}),(0,r.deepMix)({},(0,r.get)(o,[t,"title"],{})),n)},t.getCircleAxisCenterRadius=function(e){var t=e.x,n=e.y,r=e.circleCenter,o=n.start>n.end,i=e.isTransposed?e.convert({x:o?0:1,y:0}):e.convert({x:0,y:o?0:1}),l=[i.x-r.x,i.y-r.y],c=[1,0],s=i.y>r.y?a.vec2.angle(l,c):-1*a.vec2.angle(l,c),u=s+(t.end-t.start);return{center:r,radius:Math.sqrt(Math.pow(i.x-r.x,2)+Math.pow(i.y-r.y,2)),startAngle:s,endAngle:u}},t.getAxisOption=function(e,t){return(0,r.isBoolean)(e)?!1!==e&&{}:(0,r.get)(e,[t])},t.getAxisDirection=function(e,t){return(0,r.get)(e,"position",t)},t.getAxisTitleText=function(e,t){return(0,r.get)(t,["title","text"],(0,i.getName)(e))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getActionClass=t.registerAction=t.Action=t.Interaction=t.createInteraction=t.registerInteraction=t.getInteraction=void 0;var r=n(1),o=n(0),i=(0,r.__importDefault)(n(941)),a={};function l(e){return a[(0,o.lowerCase)(e)]}t.getInteraction=l,t.registerInteraction=function(e,t){a[(0,o.lowerCase)(e)]=t},t.createInteraction=function(e,t,n){var r=l(e);if(!r)return null;if((0,o.isPlainObject)(r)){var a=(0,o.mix)((0,o.clone)(r),n);return new i.default(t,a)}return new r(t,n)};var c=n(448);Object.defineProperty(t,"Interaction",{enumerable:!0,get:function(){return(0,r.__importDefault)(c).default}});var s=n(186);Object.defineProperty(t,"Action",{enumerable:!0,get:function(){return s.Action}}),Object.defineProperty(t,"registerAction",{enumerable:!0,get:function(){return s.registerAction}}),Object.defineProperty(t,"getActionClass",{enumerable:!0,get:function(){return s.getActionClass}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parsePadding=t.isAutoPadding=void 0;var r=n(1),o=n(0);t.isAutoPadding=function(e){return!(0,o.isNumber)(e)&&!(0,o.isArray)(e)},t.parsePadding=function(e){void 0===e&&(e=0);var t=(0,o.isArray)(e)?e:[e];switch(t.length){case 0:t=[0,0,0,0];break;case 1:t=new Array(4).fill(t[0]);break;case 2:t=(0,r.__spreadArray)((0,r.__spreadArray)([],t,!0),t,!0);break;case 3:t=(0,r.__spreadArray)((0,r.__spreadArray)([],t,!0),[t[1]],!1);break;default:t=t.slice(0,4)}return t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(69),o=function(){function e(e,t,n){this.view=e,this.gEvent=t,this.data=n,this.type=t.type}return e.fromData=function(t,n,o){return new e(t,new r.Event(n,{}),o)},Object.defineProperty(e.prototype,"target",{get:function(){return this.gEvent.target},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"event",{get:function(){return this.gEvent.originalEvent},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"x",{get:function(){return this.gEvent.x},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"y",{get:function(){return this.gEvent.y},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"clientX",{get:function(){return this.gEvent.clientX},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"clientY",{get:function(){return this.gEvent.clientY},enumerable:!1,configurable:!0}),e.prototype.toString=function(){return"[Event (type="+this.type+")]"},e.prototype.clone=function(){return new e(this.view,this.gEvent,this.data)},e}();t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(0),i=n(180),a=n(96),l=(0,r.__importDefault)(n(262)),c=n(46),s=n(21),u=n(269),d=function(e){function t(t){var n=e.call(this,t)||this;n.states=[];var r=t.shapeFactory,o=t.container,i=t.offscreenGroup,a=t.elementIndex,l=t.visible,c=void 0===l||l;return n.shapeFactory=r,n.container=o,n.offscreenGroup=i,n.visible=c,n.elementIndex=a,n}return(0,r.__extends)(t,e),t.prototype.draw=function(e,t){void 0===t&&(t=!1),this.model=e,this.data=e.data,this.shapeType=this.getShapeType(e),this.drawShape(e,t),!1===this.visible&&this.changeVisible(!1)},t.prototype.update=function(e){var t=this.shapeFactory,n=this.shape;if(n){this.model=e,this.data=e.data,this.shapeType=this.getShapeType(e),this.setShapeInfo(n,e);var r=this.getOffscreenGroup(),o=t.drawShape(this.shapeType,e,r);o.cfg.data=this.data,o.cfg.origin=e,o.cfg.element=this,this.syncShapeStyle(n,o,this.getStates(),this.getAnimateCfg("update"))}},t.prototype.destroy=function(){var t=this.shapeFactory,n=this.shape;if(n){var o=this.getAnimateCfg("leave");o?(0,a.doAnimate)(n,o,{coordinate:t.coordinate,toAttrs:(0,r.__assign)({},n.attr())}):n.remove(!0)}this.states=[],this.shapeFactory=void 0,this.container=void 0,this.shape=void 0,this.animate=void 0,this.geometry=void 0,this.labelShape=void 0,this.model=void 0,this.data=void 0,this.offscreenGroup=void 0,this.statesStyle=void 0,e.prototype.destroy.call(this)},t.prototype.changeVisible=function(t){e.prototype.changeVisible.call(this,t),t?(this.shape&&this.shape.show(),this.labelShape&&this.labelShape.forEach((function(e){e.show()}))):(this.shape&&this.shape.hide(),this.labelShape&&this.labelShape.forEach((function(e){e.hide()})))},t.prototype.setState=function(e,t){var n=this,r=n.states,o=n.shapeFactory,a=n.model,l=n.shape,c=n.shapeType,s=r.indexOf(e);if(t){if(s>-1)return;r.push(e),"active"!==e&&"selected"!==e||null===l||void 0===l||l.toFront()}else{if(-1===s)return;r.splice(s,1),"active"!==e&&"selected"!==e||(this.geometry.zIndexReversed?l.setZIndex(this.geometry.elements.length-this.elementIndex):l.setZIndex(this.elementIndex))}var u=o.drawShape(c,a,this.getOffscreenGroup());r.length?this.syncShapeStyle(l,u,r,null):this.syncShapeStyle(l,u,["reset"],null),u.remove(!0);var d={state:e,stateStatus:t,element:this,target:this.container};this.container.emit("statechange",d),(0,i.propagationDelegate)(this.shape,"statechange",d)},t.prototype.clearStates=function(){var e=this,t=this.states;(0,o.each)(t,(function(t){e.setState(t,!1)})),this.states=[]},t.prototype.hasState=function(e){return this.states.includes(e)},t.prototype.getStates=function(){return this.states},t.prototype.getData=function(){return this.data},t.prototype.getModel=function(){return this.model},t.prototype.getBBox=function(){var e=this.shape,t=this.labelShape,n={x:0,y:0,minX:0,minY:0,maxX:0,maxY:0,width:0,height:0};return e&&(n=e.getCanvasBBox()),t&&t.forEach((function(e){var t=e.getCanvasBBox();n.x=Math.min(t.x,n.x),n.y=Math.min(t.y,n.y),n.minX=Math.min(t.minX,n.minX),n.minY=Math.min(t.minY,n.minY),n.maxX=Math.max(t.maxX,n.maxX),n.maxY=Math.max(t.maxY,n.maxY)})),n.width=n.maxX-n.minX,n.height=n.maxY-n.minY,n},t.prototype.getStatesStyle=function(){if(!this.statesStyle){var e=this,t=e.shapeType,n=e.geometry,r=e.shapeFactory,i=n.stateOption,a=r.defaultShapeType,l=r.theme[t]||r.theme[a];this.statesStyle=(0,o.deepMix)({},l,i)}return this.statesStyle},t.prototype.getStateStyle=function(e,t){var n=this.getStatesStyle(),r=(0,o.get)(n,[e,"style"],{}),i=r[t]||r;return(0,o.isFunction)(i)?i(this):i},t.prototype.getAnimateCfg=function(e){var t=this,n=this.animate;if(n){var i=n[e];return i?(0,r.__assign)((0,r.__assign)({},i),{callback:function(){var e;(0,o.isFunction)(i.callback)&&i.callback(),null===(e=t.geometry)||void 0===e||e.emit(s.GEOMETRY_LIFE_CIRCLE.AFTER_DRAW_ANIMATE)}}):i}return null},t.prototype.drawShape=function(e,t){var n;void 0===t&&(t=!1);var i=this,l=i.shapeFactory,c=i.container,u=i.shapeType;if(this.shape=l.drawShape(u,e,c),this.shape){this.setShapeInfo(this.shape,e);var d=this.shape.cfg.name;d?(0,o.isString)(d)&&(this.shape.cfg.name=["element",d]):this.shape.cfg.name=["element",this.shapeFactory.geometryType];var f=t?"enter":"appear",p=this.getAnimateCfg(f);p&&(null===(n=this.geometry)||void 0===n||n.emit(s.GEOMETRY_LIFE_CIRCLE.BEFORE_DRAW_ANIMATE),(0,a.doAnimate)(this.shape,p,{coordinate:l.coordinate,toAttrs:(0,r.__assign)({},this.shape.attr())}))}},t.prototype.getOffscreenGroup=function(){if(!this.offscreenGroup){var e=this.container.getGroupBase();this.offscreenGroup=new e({})}return this.offscreenGroup},t.prototype.setShapeInfo=function(e,t){var n=this;e.cfg.origin=t,e.cfg.element=this,e.isGroup()&&e.get("children").forEach((function(e){n.setShapeInfo(e,t)}))},t.prototype.syncShapeStyle=function(e,t,n,r,i){var l,d=this;if(void 0===n&&(n=[]),void 0===i&&(i=0),e&&t){var f=e.get("clipShape"),p=t.get("clipShape");if(this.syncShapeStyle(f,p,n,r),e.isGroup())for(var h=e.get("children"),g=t.get("children"),v=0;v<h.length;v++)this.syncShapeStyle(h[v],g[v],n,r,i+v);else{if(!(0,o.isEmpty)(n)&&!(0,o.isEqual)(n,["reset"])){var m=e.get("name");(0,o.isArray)(m)&&(m=m[1]),(0,o.each)(n,(function(e){if(t.get("name")!==u.BACKGROUND_SHAPE){var n=d.getStateStyle(e,m||i);t.attr(n)}}))}var y=(0,c.getReplaceAttrs)(e,t);this.animate?r?(null===(l=this.geometry)||void 0===l||l.emit(s.GEOMETRY_LIFE_CIRCLE.BEFORE_DRAW_ANIMATE),(0,a.doAnimate)(e,r,{coordinate:this.shapeFactory.coordinate,toAttrs:y,shapeModel:this.model})):(0,o.isEmpty)(n)?e.attr(y):(e.stopAnimate(),e.animate(y,{duration:300})):e.attr(y)}}},t.prototype.getShapeType=function(e){var t=(0,o.get)(e,"shape");return(0,o.isArray)(t)?t[0]:t},t}(l.default);t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BACKGROUND_SHAPE=void 0,t.BACKGROUND_SHAPE="element-background"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.registerGeometryLabelLayout=t.getGeometryLabelLayout=t.registerGeometryLabel=t.getGeometryLabel=void 0;var r={},o={};t.getGeometryLabel=function(e){return r[e.toLowerCase()]},t.registerGeometryLabel=function(e,t){r[e.toLowerCase()]=t},t.getGeometryLabelLayout=function(e){return o[e.toLowerCase()]},t.registerGeometryLabelLayout=function(e,t){o[e.toLowerCase()]=t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,n){"use strict";var r=n(6);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(1),i=n(26),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(o,a,l):o[a]=e[a]}return o.default=e,n&&n.set(e,o),o}(n(147)),l=n(148),c=n(0),s=n(53);function u(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}var d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,o.__extends)(t,e),t.prototype.onCanvasChange=function(e){(0,l.refreshElement)(this,e)},t.prototype.getShapeBase=function(){return a},t.prototype.getGroupBase=function(){return t},t.prototype._applyClip=function(e,t){t&&(e.save(),(0,l.applyAttrsToContext)(e,t),t.createPath(e),e.restore(),e.clip(),t._afterDraw())},t.prototype.cacheCanvasBBox=function(){var e=this.cfg.children,t=[],n=[];(0,c.each)(e,(function(e){var r=e.cfg.cacheCanvasBBox;r&&e.cfg.isInView&&(t.push(r.minX,r.maxX),n.push(r.minY,r.maxY))}));var r=null;if(t.length){var o=(0,c.min)(t),i=(0,c.max)(t),a=(0,c.min)(n),l=(0,c.max)(n);r={minX:o,minY:a,x:o,y:a,maxX:i,maxY:l,width:i-o,height:l-a};var u=this.cfg.canvas;if(u){var d=u.getViewRange();this.set("isInView",(0,s.intersectRect)(r,d))}}else this.set("isInView",!1);this.set("cacheCanvasBBox",r)},t.prototype.draw=function(e,t){var n=this.cfg.children,r=!t||this.cfg.refresh;n.length&&r&&(e.save(),(0,l.applyAttrsToContext)(e,this),this._applyClip(e,this.getClip()),(0,l.drawChildren)(e,n,t),e.restore(),this.cacheCanvasBBox()),this.cfg.refresh=null,this.set("hasChanged",!1)},t.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("hasChanged",!1)},t}(i.AbstractGroup);t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.drawChildren=function(e,t){t.forEach((function(t){t.draw(e)}))},t.refreshElement=function(e,t){var n=e.get("canvas");if(n&&n.get("autoDraw")){var i=n.get("context"),a=e.getParent(),l=a?a.getChildren():[n],c=e.get("el");if("remove"===t)if(e.get("isClipShape")){var s=c&&c.parentNode,u=s&&s.parentNode;s&&u&&u.removeChild(s)}else c&&c.parentNode&&c.parentNode.removeChild(c);else if("show"===t)c.setAttribute("visibility","visible");else if("hide"===t)c.setAttribute("visibility","hidden");else if("zIndex"===t)(0,o.moveTo)(c,l.indexOf(e));else if("sort"===t){var d=e.get("children");d&&d.length&&(0,o.sortDom)(e,(function(e,t){return d.indexOf(e)-d.indexOf(t)?1:0}))}else"clear"===t?c&&(c.innerHTML=""):"matrix"===t?(0,r.setTransform)(e):"clip"===t?(0,r.setClip)(e,i):"attr"===t||"add"===t&&e.draw(i)}};var r=n(149),o=n(74)},function(e,t,n){"use strict";var r=n(6);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(1),i=n(26),a=n(0),l=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var n=f(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(o,a,l):o[a]=e[a]}return o.default=e,n&&n.set(e,o),o}(n(191)),c=n(273),s=n(149),u=n(54),d=n(74);function f(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(f=function(e){return e?n:t})(e)}var p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,o.__extends)(t,e),t.prototype.isEntityGroup=function(){return!0},t.prototype.createDom=function(){var e=(0,d.createSVGElement)("g");this.set("el",e);var t=this.getParent();if(t){var n=t.get("el");n||(n=t.createDom(),t.set("el",n)),n.appendChild(e)}return e},t.prototype.afterAttrsChange=function(t){e.prototype.afterAttrsChange.call(this,t);var n=this.get("canvas");if(n&&n.get("autoDraw")){var r=n.get("context");this.createPath(r,t)}},t.prototype.onCanvasChange=function(e){(0,c.refreshElement)(this,e)},t.prototype.getShapeBase=function(){return l},t.prototype.getGroupBase=function(){return t},t.prototype.draw=function(e){var t=this.getChildren(),n=this.get("el");this.get("destroyed")?n&&n.parentNode.removeChild(n):(n||this.createDom(),(0,s.setClip)(this,e),this.createPath(e),t.length&&(0,c.drawChildren)(e,t))},t.prototype.createPath=function(e,t){var n=this.attr(),r=this.get("el");(0,a.each)(t||n,(function(e,t){u.SVG_ATTR_MAP[t]&&r.setAttribute(u.SVG_ATTR_MAP[t],e)})),(0,s.setTransform)(this)},t}(i.AbstractGroup);t.default=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=n(27),i=n(114),a=n(33),l=n(111),c=n(276),s=n(463);function u(e,t,n,r,o){return 1===e.length?[["M",e[0].x,e[0].y-o.lineWidth/2],["L",e[0].x,e[0].y],["L",e[0].x,e[0].y+o.lineWidth/2]]:(n?(t&&e.length&&e.push({x:e[0].x,y:e[0].y}),i=(0,l.getSplinePath)(e,!1,r)):(i=(0,l.getLinePath)(e,!1),t&&i.push(["Z"])),i);var i}function d(e,t,n,o,i,a){if(e.length){var l=e[0];return(0,r.isArray)(l.y)?function(e,t,n,o,i,a){var l=[],s=[];(0,r.each)(e,(function(e){var t=(0,c.splitPoints)(e);l.push(t[1]),s.push(t[0])}));var d=u(l,t,o,i,a),f=u(s,t,o,i,a);return n?d:d.concat(f)}(e,t,n,o,i,a):u(e,t,o,i,a)}return[]}var f=(0,o.registerShapeFactory)("line",{defaultShapeType:"line"});(0,r.each)(["line","dot","dash","smooth"],(function(e){(0,o.registerShape)("line",e,{draw:function(t,n){var r,o="smooth"===e;if(o){var l=this.coordinate,c=l.start,s=l.end;r=[[c.x,s.y],[s.x,c.y]]}var u=function(e,t,n){for(var r=e.isStack,o=e.connectNulls,l=e.isInCircle,c=e.showSinglePoint,s=(0,a.getStyle)(e,!0,!1,"lineWidth"),u=(0,i.getPathPoints)(e.points,o,c),f=[],p=0,h=u.length;p<h;p++){var g=u[p];f=f.concat(d(g,l,r,t,n,s))}return s.path=f,s}(t,o,r);return n.addShape({type:"path",attrs:u,name:"line",capture:!o})},getMarker:function(t){return(0,s.getLineMarker)(t,e)}})})),t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.splitPoints=void 0;var r=n(0);t.splitPoints=function(e){var t=e.x;return((0,r.isArray)(e.y)?e.y:[e.y]).map((function(e,n){return{x:(0,r.isArray)(t)?t[n]:t,y:e}}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=n(27),i=n(100),a=(0,o.registerShapeFactory)("area",{defaultShapeType:"area",getDefaultPoints:function(e){var t=e.x,n=e.y0;return((0,r.isArray)(e.y)?e.y:[n,e.y]).map((function(e){return{x:t,y:e}}))}});(0,o.registerShape)("area","area",{draw:function(e,t){var n=(0,i.getShapeAttrs)(e,!1,!1,this);return t.addShape({type:"path",attrs:n,name:"area"})},getMarker:function(e){return{symbol:function(e,t,n){return void 0===n&&(n=5.5),[["M",e-n,t-4],["L",e+n,t-4],["L",e+n,t+4],["L",e-n,t+4],["Z"]]},style:{r:5,fill:e.color}}}}),t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getDefaultSize=void 0;var r=n(0),o=n(48);t.getDefaultSize=function(e){var t=e.theme,n=e.coordinate,i=e.getXScale(),a=i.values,l=e.beforeMappingData,c=a.length,s=(0,o.getXDimensionLength)(e.coordinate),u=e.intervalPadding,d=e.dodgePadding,f=e.maxColumnWidth||t.maxColumnWidth,p=e.minColumnWidth||t.minColumnWidth,h=e.columnWidthRatio||t.columnWidthRatio,g=e.multiplePieWidthRatio||t.multiplePieWidthRatio,v=e.roseWidthRatio||t.roseWidthRatio;if(i.isLinear&&a.length>1){a.sort();var m=function(e,t){var n=e.length,o=e;(0,r.isString)(o[0])&&(o=e.map((function(e){return t.translate(e)})));for(var i=o[1]-o[0],a=2;a<n;a++){var l=o[a]-o[a-1];i>l&&(i=l)}return i}(a,i);c=(i.max-i.min)/m,a.length>c&&(c=a.length)}var y=i.range,b=1/c,x=1;if(n.isPolar?x=n.isTransposed&&c>1?g:v:(i.isLinear&&(b*=y[1]-y[0]),x=h),!(0,r.isNil)(u)&&u>=0?b=(1-u/s*(c-1))/c:b*=x,e.getAdjust("dodge")){var w=function(e,t){if(t){var n=(0,r.flatten)(e);return(0,r.valuesOfKey)(n,t).length}return e.length}(l,e.getAdjust("dodge").dodgeBy);!(0,r.isNil)(d)&&d>=0?b=(b-d/s*(w-1))/w:!(0,r.isNil)(u)&&u>=0?(b*=x,b/=w):b/=w,b=b>=0?b:0}if(!(0,r.isNil)(f)&&f>=0){var S=f/s;b>S&&(b=S)}if(!(0,r.isNil)(p)&&p>=0){var O=p/s;b<O&&(b=O)}return b}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.drawPoints=t.HOLLOW_SHAPES=t.SHAPES=void 0;var r=n(1),o=n(146),i=n(33);t.SHAPES=["circle","square","bowtie","diamond","hexagon","triangle","triangle-down"],t.HOLLOW_SHAPES=["cross","tick","plus","hyphen","line"],t.drawPoints=function(e,t,n,a,l){var c=(0,i.getStyle)(t,l,!l,"r"),s=e.parsePoints(t.points),u=s[0];if(t.isStack)u=s[1];else if(s.length>1){for(var d=n.addGroup(),f=0,p=s;f<p.length;f++){var h=p[f];d.addShape({type:"marker",attrs:(0,r.__assign)((0,r.__assign)((0,r.__assign)({},c),{symbol:o.MarkerSymbols[a]||a}),h)})}return d}return n.addShape({type:"marker",attrs:(0,r.__assign)((0,r.__assign)((0,r.__assign)({},c),{symbol:o.MarkerSymbols[a]||a}),u)})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(0),i=n(27),a=n(114),l=n(33),c=n(463),s=function(e,t,n){var r,o=e.x,i=e.y,a=t.x,l=t.y;switch(n){case"hv":r=[{x:a,y:i}];break;case"vh":r=[{x:o,y:l}];break;case"hvh":var c=(a+o)/2;r=[{x:c,y:i},{x:c,y:l}];break;case"vhv":var s=(i+l)/2;r=[{x:o,y:s},{x:a,y:s}]}return r};function u(e,t){var n=(0,a.getPathPoints)(e.points,e.connectNulls,e.showSinglePoint),i=[];return(0,o.each)(n,(function(e){var n=function(e,t){var n=[];return(0,o.each)(e,(function(r,o){var i=e[o+1];if(n.push(r),i){var a=s(r,i,t);n=n.concat(a)}})),n}(e,t);i=i.concat(function(e){return e.map((function(e,t){return 0===t?["M",e.x,e.y]:["L",e.x,e.y]}))}(n))})),(0,r.__assign)((0,r.__assign)({},(0,l.getStyle)(e,!0,!1,"lineWidth")),{path:i})}(0,o.each)(["hv","vh","hvh","vhv"],(function(e){(0,i.registerShape)("line",e,{draw:function(t,n){var r=u(t,e);return n.addShape({type:"path",attrs:r,name:"line"})},getMarker:function(t){return(0,c.getLineMarker)(t,e)}})}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTranslateDirection=t.directionToPosition=void 0;var r=n(21);function o(e){return e===r.DIRECTION.LEFT?r.DIRECTION.RIGHT:e===r.DIRECTION.RIGHT?r.DIRECTION.LEFT:e}function i(e){return e===r.DIRECTION.TOP?r.DIRECTION.BOTTOM:e===r.DIRECTION.BOTTOM?r.DIRECTION.TOP:e}t.directionToPosition=function(e,t,n){return n===r.DIRECTION.TOP?[e.minX+e.width/2-t.width/2,e.minY]:n===r.DIRECTION.BOTTOM?[e.minX+e.width/2-t.width/2,e.maxY-t.height]:n===r.DIRECTION.LEFT?[e.minX,e.minY+e.height/2-t.height/2]:n===r.DIRECTION.RIGHT?[e.maxX-t.width,e.minY+e.height/2-t.height/2]:n===r.DIRECTION.TOP_LEFT||n===r.DIRECTION.LEFT_TOP?[e.tl.x,e.tl.y]:n===r.DIRECTION.TOP_RIGHT||n===r.DIRECTION.RIGHT_TOP?[e.tr.x-t.width,e.tr.y]:n===r.DIRECTION.BOTTOM_LEFT||n===r.DIRECTION.LEFT_BOTTOM?[e.bl.x,e.bl.y-t.height]:n===r.DIRECTION.BOTTOM_RIGHT||n===r.DIRECTION.RIGHT_BOTTOM?[e.br.x-t.width,e.br.y-t.height]:[0,0]},t.getTranslateDirection=function(e,t){var n=e;return n=function(e,t){var n=e;return t.isReflect("x")&&(n=o(n)),t.isReflect("y")&&(n=i(n)),n}(n=function(e,t){var n=t.matrix[0],r=t.matrix[4],a=e;return n<0&&(a=o(a)),r<0&&(a=i(a)),a}(n=function(e,t){if(t.isTransposed)switch(e){case r.DIRECTION.BOTTOM:return r.DIRECTION.LEFT;case r.DIRECTION.LEFT:return r.DIRECTION.BOTTOM;case r.DIRECTION.RIGHT:return r.DIRECTION.TOP;case r.DIRECTION.TOP:return r.DIRECTION.RIGHT}return e}(n,t),t),t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(0),i=n(31);function a(e){return(0,o.get)(e.get("delegateObject"),"item")}var l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ignoreListItemStates=["unchecked"],t}return(0,r.__extends)(t,e),t.prototype.isItemIgnore=function(e,t){return!!this.ignoreListItemStates.filter((function(n){return t.hasState(e,n)})).length},t.prototype.setStateByComponent=function(e,t,n){var r=this.context.view,o=e.get("field"),a=(0,i.getElements)(r);this.setElementsStateByItem(a,o,t,n)},t.prototype.setStateByElement=function(e,t){this.setElementState(e,t)},t.prototype.isMathItem=function(e,t,n){var r=this.context.view,a=(0,i.getScaleByField)(r,t),l=(0,i.getElementValue)(e,t);return!(0,o.isNil)(l)&&n.name===a.getText(l)},t.prototype.setElementsStateByItem=function(e,t,n,r){var i=this;(0,o.each)(e,(function(e){i.isMathItem(e,t,n)&&e.setState(i.stateName,r)}))},t.prototype.setStateEnable=function(e){var t=(0,i.getCurrentElement)(this.context);if(t)(0,i.isElementChange)(this.context)&&this.setStateByElement(t,e);else{var n=(0,i.getDelegationObject)(this.context);if((0,i.isList)(n)){var r=n.item,o=n.component;if(r&&o&&!this.isItemIgnore(r,o)){var l=this.context.event.gEvent;if(l&&l.fromShape&&l.toShape&&a(l.fromShape)===a(l.toShape))return;this.setStateByComponent(o,r,e)}}}},t.prototype.toggle=function(){var e=(0,i.getCurrentElement)(this.context);if(e){var t=e.hasState(this.stateName);this.setElementState(e,!t)}},t.prototype.reset=function(){this.setStateEnable(!1)},t}((0,r.__importDefault)(n(283)).default);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(0),i=(0,r.__importDefault)(n(44)),a=n(31),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.stateName="",t}return(0,r.__extends)(t,e),t.prototype.hasState=function(e){return e.hasState(this.stateName)},t.prototype.setElementState=function(e,t){e.setState(this.stateName,t)},t.prototype.setState=function(){this.setStateEnable(!0)},t.prototype.clear=function(){var e=this.context.view;this.clearViewState(e)},t.prototype.clearViewState=function(e){var t=this,n=(0,a.getElementsByState)(e,this.stateName);(0,o.each)(n,(function(e){t.setElementState(e,!1)}))},t}(i.default);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(0),i=n(31),a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.startPoint=null,t.endPoint=null,t.isStarted=!1,t.effectSiblings=!1,t.effectByRecord=!1,t}return(0,r.__extends)(t,e),t.prototype.getCurrentPoint=function(){var e=this.context.event;return{x:e.x,y:e.y}},t.prototype.start=function(){this.clear(),this.startPoint=this.getCurrentPoint(),this.isStarted=!0},t.prototype.getIntersectElements=function(){var e=null;if((0,i.isMask)(this.context))e=(0,i.getMaskedElements)(this.context,10);else{var t=this.startPoint,n=this.isStarted?this.getCurrentPoint():this.endPoint;if(!t||!n)return;var r={minX:Math.min(t.x,n.x),minY:Math.min(t.y,n.y),maxX:Math.max(t.x,n.x),maxY:Math.max(t.y,n.y)},o=this.context.view;e=(0,i.getIntersectElements)(o,r)}return e},t.prototype.setStateEnable=function(e){if(this.effectSiblings&&!this.effectByRecord)this.setSiblingsState(e);else{var t=(0,i.getElements)(this.context.view),n=this.getIntersectElements();n&&n.length?this.effectByRecord?this.setSiblingsStateByRecord(n,e):this.setElementsState(n,e,t):this.clear()}},t.prototype.setSiblingsStateByRecord=function(e,t){var n=this,r=this.context.view,a=(0,i.getSilbings)(r),l=e.map((function(e){return e.getModel().data})),c=r.getXScale().field,s=r.getYScales()[0].field;(0,o.each)(a,(function(e){var r=(0,i.getElements)(e),o=r.filter((function(e){var t=e.getModel().data;return(0,i.isInRecords)(l,t,c,s)}));n.setElementsState(o,t,r)}))},t.prototype.setSiblingsState=function(e){var t=this,n=this.context.view,r=(0,i.getSilbings)(n);(0,i.isMask)(this.context)&&(0,o.each)(r,(function(n){var r=(0,i.getElements)(n),o=(0,i.getSiblingMaskElements)(t.context,n,10);o&&o.length?t.setElementsState(o,e,r):t.clearViewState(n)}))},t.prototype.setElementsState=function(e,t,n){var r=this;(0,o.each)(n,(function(n){e.includes(n)?r.setElementState(n,t):r.setElementState(n,!1)}))},t.prototype.end=function(){this.isStarted=!1,this.endPoint=this.getCurrentPoint()},t.prototype.clear=function(){var e=this,t=this.context.view;if(this.effectSiblings){var n=(0,i.getSilbings)(t);(0,o.each)(n,(function(t){e.clearViewState(t)}))}else this.clearViewState(t)},t}((0,r.__importDefault)(n(283)).default);t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(31),i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.__extends)(t,e),t.prototype.setStateEnable=function(e){var t=(0,o.getCurrentElement)(this.context);if(t){if(!(0,o.isElementChange)(this.context))return;e?(this.clear(),this.setElementState(t,!0)):this.hasState(t)&&this.setElementState(t,!1)}},t.prototype.toggle=function(){var e=(0,o.getCurrentElement)(this.context);if(e){var t=this.hasState(e);t||this.clear(),this.setElementState(e,!t)}},t.prototype.reset=function(){this.setStateEnable(!1)},t}((0,r.__importDefault)(n(283)).default);t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setHighlightBy=t.clearHighlight=void 0;var r=n(0),o=n(31),i="inactive",a="active";t.clearHighlight=function(e){var t=(0,o.getElements)(e);(0,r.each)(t,(function(e){e.hasState(a)&&e.setState(a,!1),e.hasState(i)&&e.setState(i,!1)}))},t.setHighlightBy=function(e,t,n){(0,r.each)(e,(function(e){t(e)?(e.hasState(i)&&e.setState(i,!1),e.setState(a,n)):(e.hasState(a)&&e.setState(a,!1),e.setState(i,n))}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(0),i=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.maskShape=null,t.points=[],t.starting=!1,t.moving=!1,t.preMovePoint=null,t.shapeType="path",t}return(0,r.__extends)(t,e),t.prototype.getCurrentPoint=function(){var e=this.context.event;return{x:e.x,y:e.y}},t.prototype.emitEvent=function(e){var t="mask:"+e,n=this.context.view,r=this.context.event;n.emit(t,{target:this.maskShape,shape:this.maskShape,points:this.points,x:r.x,y:r.y})},t.prototype.createMask=function(){var e=this.context.view,t=this.getMaskAttrs();return e.foregroundGroup.addShape({type:this.shapeType,name:"mask",draggable:!0,attrs:(0,r.__assign)({fill:"#C5D4EB",opacity:.3},t)})},t.prototype.getMaskPath=function(){return[]},t.prototype.show=function(){this.maskShape&&(this.maskShape.show(),this.emitEvent("show"))},t.prototype.start=function(e){this.starting=!0,this.moving=!1,this.points=[this.getCurrentPoint()],this.maskShape||(this.maskShape=this.createMask(),this.maskShape.set("capture",!1)),this.updateMask(null===e||void 0===e?void 0:e.maskStyle),this.emitEvent("start")},t.prototype.moveStart=function(){this.moving=!0,this.preMovePoint=this.getCurrentPoint()},t.prototype.move=function(){if(this.moving&&this.maskShape){var e=this.getCurrentPoint(),t=this.preMovePoint,n=e.x-t.x,r=e.y-t.y,i=this.points;(0,o.each)(i,(function(e){e.x+=n,e.y+=r})),this.updateMask(),this.emitEvent("change"),this.preMovePoint=e}},t.prototype.updateMask=function(e){var t=(0,o.deepMix)({},this.getMaskAttrs(),e);this.maskShape.attr(t)},t.prototype.moveEnd=function(){this.moving=!1,this.preMovePoint=null},t.prototype.end=function(){this.starting=!1,this.emitEvent("end"),this.maskShape&&this.maskShape.set("capture",!0)},t.prototype.hide=function(){this.maskShape&&(this.maskShape.hide(),this.emitEvent("hide"))},t.prototype.resize=function(){this.starting&&this.maskShape&&(this.points.push(this.getCurrentPoint()),this.updateMask(),this.emitEvent("change"))},t.prototype.destroy=function(){this.points=[],this.maskShape&&this.maskShape.remove(),this.maskShape=null,this.preMovePoint=null,e.prototype.destroy.call(this)},t}((0,r.__importDefault)(n(44)).default);t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.calculateBoxSizes=t.calculateBoxSize=void 0;var r=n(487),o=n(488),i=n(1052),a=n(193),l=n(192),c=n(489),s=new WeakMap,u=/auto|scroll/,d=/^tb|vertical/,f=/msie|trident/i.test(c.global.navigator&&c.global.navigator.userAgent),p=function(e){return parseFloat(e||"0")},h=function(e,t,n){return void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=!1),new o.ResizeObserverSize((n?t:e)||0,(n?e:t)||0)},g=(0,l.freeze)({devicePixelContentBoxSize:h(),borderBoxSize:h(),contentBoxSize:h(),contentRect:new i.DOMRectReadOnly(0,0,0,0)}),v=t.calculateBoxSizes=function(e,t){if(void 0===t&&(t=!1),s.has(e)&&!t)return s.get(e);if((0,a.isHidden)(e))return s.set(e,g),g;var n=getComputedStyle(e),r=(0,a.isSVG)(e)&&e.ownerSVGElement&&e.getBBox(),o=!f&&"border-box"===n.boxSizing,c=d.test(n.writingMode||""),v=!r&&u.test(n.overflowY||""),m=!r&&u.test(n.overflowX||""),y=r?0:p(n.paddingTop),b=r?0:p(n.paddingRight),x=r?0:p(n.paddingBottom),w=r?0:p(n.paddingLeft),S=r?0:p(n.borderTopWidth),O=r?0:p(n.borderRightWidth),_=r?0:p(n.borderBottomWidth),C=w+b,E=y+x,P=(r?0:p(n.borderLeftWidth))+O,M=S+_,k=m?e.offsetHeight-M-e.clientHeight:0,A=v?e.offsetWidth-P-e.clientWidth:0,I=o?C+P:0,T=o?E+M:0,j=r?r.width:p(n.width)-I-A,L=r?r.height:p(n.height)-T-k,R=j+C+A+P,D=L+E+k+M,N=(0,l.freeze)({devicePixelContentBoxSize:h(Math.round(j*devicePixelRatio),Math.round(L*devicePixelRatio),c),borderBoxSize:h(R,D,c),contentBoxSize:h(j,L,c),contentRect:new i.DOMRectReadOnly(w,y,j,L)});return s.set(e,N),N};t.calculateBoxSize=function(e,t,n){var o=v(e,n),i=o.borderBoxSize,a=o.contentBoxSize,l=o.devicePixelContentBoxSize;switch(t){case r.ResizeObserverBoxOptions.DEVICE_PIXEL_CONTENT_BOX:return l;case r.ResizeObserverBoxOptions.BORDER_BOX:return i;default:return a}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return w}));var r=n(3),o=n.n(r),i=n(99),a=n.n(i),l=n(163),c=n.n(l),s=n(164),u=n.n(s),d=n(215),f=n.n(d),p=n(333),h=n(334),g=n(335),v=n(226),m=n(8),y=n(17),b=n.n(y),x=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(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};function w(e){var t=e.parentInstance,n=e.content,r=x(e,["parentInstance","content"]);return b()(!1,"Label\u7ec4\u4ef6\u5373\u5c06\u88ab\u53d6\u6d88\uff0c\u8bf7\u4f7f\u7528\u56fe\u5f62\u7ec4\u4ef6\u7684label\u5c5e\u6027\u8fdb\u884c\u914d\u7f6e"),t.label(!1),t.label(n,r),o.a.createElement(o.a.Fragment,null)}Object(m.registerGeometryLabel)("base",a.a),Object(m.registerGeometryLabel)("interval",c.a),Object(m.registerGeometryLabel)("pie",u.a),Object(m.registerGeometryLabel)("polar",f.a),Object(m.registerGeometryLabelLayout)("overlap",v.overlap),Object(m.registerGeometryLabelLayout)("distribute",p.distribute),Object(m.registerGeometryLabelLayout)("fixed-overlap",v.fixedOverlap),Object(m.registerGeometryLabelLayout)("limit-in-shape",g.limitInShape),Object(m.registerGeometryLabelLayout)("limit-in-canvas",h.limitInCanvas)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isBetween=t.isRealNumber=void 0,t.isRealNumber=function(e){return"number"===typeof e&&!isNaN(e)},t.isBetween=function(e,t,n){var r=Math.min(t,n),o=Math.max(t,n);return e>=r&&e<=o}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.processIllegalData=t.transformDataToNodeLinkData=t.adjustYMetaByZero=void 0;var r=n(1),o=n(0),i=n(503),a=n(502);t.adjustYMetaByZero=function(e,t){var n=e.filter((function(e){var n=o.get(e,[t]);return o.isNumber(n)&&!isNaN(n)})),r=n.every((function(e){return o.get(e,[t])>=0})),i=n.every((function(e){return o.get(e,[t])<=0}));return r?{min:0}:i?{max:0}:{}},t.transformDataToNodeLinkData=function(e,t,n,o,i){if(void 0===i&&(i=[]),!Array.isArray(e))return{nodes:[],links:[]};var l=[],c={},s=-1;return e.forEach((function(e){var u=e[t],d=e[n],f=e[o],p=a.pick(e,i);c[u]||(c[u]=r.__assign({id:++s,name:u},p)),c[d]||(c[d]=r.__assign({id:++s,name:d},p)),l.push(r.__assign({source:c[u].id,target:c[d].id,value:f},p))})),{nodes:Object.values(c).sort((function(e,t){return e.id-t.id})),links:l}},t.processIllegalData=function(e,t){var n=o.filter(e,(function(e){var n=e[t];return null===n||"number"===typeof n&&!isNaN(n)}));return i.log(i.LEVEL.WARN,n.length===e.length,"illegal data existed in chart data."),n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resolveAllPadding=t.getAdjustAppendPadding=t.normalPadding=void 0;var r=n(0);function o(e){if(r.isNumber(e))return[e,e,e,e];if(r.isArray(e)){var t=e.length;if(1===t)return[e[0],e[0],e[0],e[0]];if(2===t)return[e[0],e[1],e[0],e[1]];if(3===t)return[e[0],e[1],e[2],e[1]];if(4===t)return e}return[0,0,0,0]}t.normalPadding=o,t.getAdjustAppendPadding=function(e,t,n){void 0===t&&(t="bottom"),void 0===n&&(n=25);var r=o(e),i=[t.startsWith("top")?n:0,t.startsWith("right")?n:0,t.startsWith("bottom")?n:0,t.startsWith("left")?n:0];return[r[0]+i[0],r[1]+i[1],r[2]+i[2],r[3]+i[3]]},t.resolveAllPadding=function(e){var t=e.map((function(e){return o(e)})),n=[0,0,0,0];return t.length>0&&(n=n.map((function(e,n){return t.forEach((function(r,o){e+=t[o][n]})),e}))),n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SizeSensorId=t.SensorTabIndex=t.SensorClassName=void 0,t.SizeSensorId="size-sensor-id",t.SensorClassName="size-sensor-object",t.SensorTabIndex="-1"},function(e,t,n){"use strict";var r=n(2)(n(6));function o(){return"object"===("undefined"===typeof window?"undefined":(0,r.default)(window))?null===window||void 0===window?void 0:window.devicePixelRatio:2}Object.defineProperty(t,"__esModule",{value:!0}),t.transformMatrix=t.getSymbolsPosition=t.getUnitPatternSize=t.drawBackground=t.initCanvas=t.getPixelRatio=void 0,t.getPixelRatio=o,t.initCanvas=function(e,t){void 0===t&&(t=e);var n=document.createElement("canvas"),r=o();return n.width=e*r,n.height=t*r,n.style.width=e+"px",n.style.height=t+"px",n.getContext("2d").scale(r,r),n},t.drawBackground=function(e,t,n,r){void 0===r&&(r=n);var o=t.backgroundColor,i=t.opacity;e.globalAlpha=i,e.fillStyle=o,e.beginPath(),e.fillRect(0,0,n,r),e.closePath()},t.getUnitPatternSize=function(e,t,n){var r=e+t;return n?2*r:r},t.getSymbolsPosition=function(e,t){return t?[[e*(1/4),e*(1/4)],[e*(3/4),e*(3/4)]]:[[.5*e,.5*e]]},t.transformMatrix=function(e,t){var n=t*Math.PI/180;return{a:Math.cos(n)*(1/e),b:Math.sin(n)*(1/e),c:-Math.sin(n)*(1/e),d:Math.cos(n)*(1/e),e:0,f:0}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getProgressData=void 0;var r=n(0),o=n(290);t.getProgressData=function(e){var t=r.clamp(o.isRealNumber(e)?e:0,0,1);return[{type:"current",percent:t},{type:"target",percent:1-t}]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.adaptor=t.meta=void 0;var r=n(34),o=n(15),i=n(43),a=n(154),l=n(117),c=n(291);function s(e){var t=e.chart,n=e.options,r=n.data,c=n.color,s=n.areaStyle,u=n.point,d=n.line,f=null===u||void 0===u?void 0:u.state,p=l.getTinyData(r);t.data(p);var h=o.deepAssign({},e,{options:{xField:a.X_FIELD,yField:a.Y_FIELD,area:{color:c,style:s},line:d,point:u}}),g=o.deepAssign({},h,{options:{tooltip:!1}}),v=o.deepAssign({},h,{options:{tooltip:!1,state:f}});return i.area(h),i.line(g),i.point(v),t.axis(!1),t.legend(!1),e}function u(e){var t,n,i=e.options,s=i.xAxis,u=i.yAxis,d=i.data,f=l.getTinyData(d);return o.flow(r.scale(((t={})[a.X_FIELD]=s,t[a.Y_FIELD]=u,t),((n={})[a.X_FIELD]={type:"cat"},n[a.Y_FIELD]=c.adjustYMetaByZero(f,a.Y_FIELD),n)))(e)}t.meta=u,t.adaptor=function(e){return o.flow(r.pattern("areaStyle"),s,u,r.tooltip,r.theme,r.animation,r.annotation())(e)}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.Node=O,t.computeHeight=S,t.default=y;var o=r(n(230)),i=r(n(1098)),a=r(n(1099)),l=r(n(1100)),c=r(n(1101)),s=r(n(1102)),u=r(n(1103)),d=r(n(1104)),f=r(n(1105)),p=r(n(1106)),h=r(n(1107)),g=r(n(1108)),v=r(n(1109)),m=r(n(1110));function y(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=x)):void 0===t&&(t=b);for(var n,r,o,i,a,l=new O(e),c=[l];n=c.pop();)if((o=t(n.data))&&(a=(o=Array.from(o)).length))for(n.children=o,i=a-1;i>=0;--i)c.push(r=o[i]=new O(o[i])),r.parent=n,r.depth=n.depth+1;return l.eachBefore(S)}function b(e){return e.children}function x(e){return Array.isArray(e)?e[1]:null}function w(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function S(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function O(e){this.data=e,this.depth=this.height=0,this.parent=null}O.prototype=y.prototype=(0,o.default)({constructor:O,count:i.default,each:a.default,eachAfter:c.default,eachBefore:l.default,find:s.default,sum:u.default,sort:d.default,path:f.default,ancestors:p.default,descendants:h.default,leaves:g.default,links:v.default,copy:function(){return y(this).eachBefore(w)}},Symbol.iterator,m.default)},function(e,t,n){"use strict";function r(e){if("function"!==typeof e)throw new Error;return e}Object.defineProperty(t,"__esModule",{value:!0}),t.optional=function(e){return null==e?null:r(e)},t.required=r},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.phi=t.default=void 0,t.squarifyRatio=l;var o=r(n(155)),i=r(n(195)),a=t.phi=(1+Math.sqrt(5))/2;function l(e,t,n,r,a,l){for(var c,s,u,d,f,p,h,g,v,m,y,b=[],x=t.children,w=0,S=0,O=x.length,_=t.value;w<O;){u=a-n,d=l-r;do{f=x[S++].value}while(!f&&S<O);for(p=h=f,y=f*f*(m=Math.max(d/u,u/d)/(_*e)),v=Math.max(h/y,y/p);S<O;++S){if(f+=s=x[S].value,s<p&&(p=s),s>h&&(h=s),y=f*f*m,(g=Math.max(h/y,y/p))>v){f-=s;break}v=g}b.push(c={value:f,dice:u<d,children:x.slice(w,S)}),c.dice?(0,o.default)(c,n,r,a,_?r+=d*f/_:l):(0,i.default)(c,n,r,_?n+=u*f/_:a,l),_-=f,w=S}return b}t.default=function e(t){function n(e,n,r,o,i){l(t,e,n,r,o,i)}return n.ratio=function(t){return e((t=+t)>1?t:1)},n}(a)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.conversionTagComponent=t.transformData=void 0;var r=n(1),o=n(0),i=n(119);t.transformData=function(e,t,n){var r=n.yField,a=n.maxSize,l=n.minSize,c=o.get(o.maxBy(t,r),[r]),s=o.isNumber(a)?a:1,u=o.isNumber(l)?l:0;return o.map(e,(function(t,n){var a=(t[r]||0)/c;return t[i.FUNNEL_PERCENT]=a,t[i.FUNNEL_MAPPING_VALUE]=(s-u)*a+u,t[i.FUNNEL_CONVERSATION]=[o.get(e,[n-1,r]),t[r]],t}))},t.conversionTagComponent=function(e){return function(t){var n=t.chart,a=t.options.conversionTag,l=n.getOptions().data;if(a){var c=a.formatter;l.forEach((function(t,s){if(!(s<=0||Number.isNaN(t[i.FUNNEL_MAPPING_VALUE]))){var u=e(t,s,l,{top:!0,text:{content:o.isFunction(c)?c(t,l):c,offsetX:a.offsetX,offsetY:a.offsetY,position:"end",autoRotate:!1,style:r.__assign({textAlign:"start",textBaseline:"middle"},a.style)}});n.annotation().line(u)}}))}return t}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_OPTIONS=t.IS_TOTAL=t.ABSOLUTE_FIELD=t.DIFF_FIELD=t.Y_FIELD=void 0,t.Y_FIELD="$$yField$$",t.DIFF_FIELD="$$diffField$$",t.ABSOLUTE_FIELD="$$absoluteField$$",t.IS_TOTAL="$$isTotal$$",t.DEFAULT_OPTIONS={label:{},leaderLine:{style:{lineWidth:1,stroke:"#8c8c8c",lineDash:[4,2]}},total:{style:{fill:"rgba(0, 0, 0, 0.25)"}},interactions:[{type:"element-active"}],risingFill:"#f4664a",fallingFill:"#30bf78",waterfallStyle:{fill:"rgba(0, 0, 0, 0.25)"},yAxis:{grid:{line:{style:{lineDash:[4,2]}}}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isBetween=function(e,t,n){var r=Math.min(t,n),o=Math.max(t,n);return e>=r&&e<=o},t.isRealNumber=function(e){return"number"===typeof e&&!isNaN(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.adaptor=function(e){return(0,a.flow)(s,u,g,i.theme,d,f,p,i.tooltip,h,i.slider,i.interaction,i.animation,(0,i.annotation)(),i.limitInPlot)(e)},t.adjust=g,t.axis=f,t.legend=p,t.meta=u;var r=n(1),o=n(0),i=n(22),a=n(7),l=n(30),c=n(198);function s(e){var t=e.chart,n=e.options,o=n.data,i=n.color,c=n.lineStyle,s=n.lineShape,u=n.point,d=n.area,f=n.seriesField,p=null===u||void 0===u?void 0:u.state;t.data(o);var h=(0,a.deepAssign)({},e,{options:{shapeField:f,line:{color:i,style:c,shape:s},point:u&&(0,r.__assign)({color:i,shape:"circle"},u),area:d&&(0,r.__assign)({color:i},d),label:void 0}}),g=(0,a.deepAssign)({},h,{options:{tooltip:!1,state:p}}),v=(0,a.deepAssign)({},h,{options:{tooltip:!1,state:p}});return(0,l.line)(h),(0,l.point)(g),(0,l.area)(v),e}function u(e){var t,n,r=e.options,o=r.xAxis,l=r.yAxis,s=r.xField,u=r.yField,d=r.data;return(0,a.flow)((0,i.scale)(((t={})[s]=o,t[u]=l,t),((n={})[s]={type:"cat"},n[u]=(0,c.adjustYMetaByZero)(d,u),n)))(e)}function d(e){var t=e.chart,n=e.options.reflect;if(n){var r=n;(0,o.isArray)(r)||(r=[r]);var i=r.map((function(e){return["reflect",e]}));t.coordinate({type:"rect",actions:i})}return e}function f(e){var t=e.chart,n=e.options,r=n.xAxis,o=n.yAxis,i=n.xField,a=n.yField;return!1===r?t.axis(i,!1):t.axis(i,r),!1===o?t.axis(a,!1):t.axis(a,o),e}function p(e){var t=e.chart,n=e.options,r=n.legend,o=n.seriesField;return r&&o?t.legend(o,r):!1===r&&t.legend(!1),e}function h(e){var t=e.chart,n=e.options,o=n.label,i=n.yField,l=(0,a.findGeometry)(t,"line");if(o){var c=o.callback,s=(0,r.__rest)(o,["callback"]);l.label({fields:[i],callback:c,cfg:(0,r.__assign)({layout:[{type:"limit-in-plot"},{type:"path-adjust-position"},{type:"point-adjust-position"},{type:"limit-in-plot",cfg:{action:"hide"}}]},(0,a.transformLabel)(s))})}else l.label(!1);return e}function g(e){var t=e.chart;return e.options.isStack&&(0,o.each)(t.geometries,(function(e){e.adjust("stack")})),e}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.drawBackground=function(e,t,n,r){void 0===r&&(r=n);var o=t.backgroundColor,i=t.opacity;e.globalAlpha=i,e.fillStyle=o,e.beginPath(),e.fillRect(0,0,n,r),e.closePath()},t.getPixelRatio=i,t.getSymbolsPosition=function(e,t){return t?[[e*(1/4),e*(1/4)],[e*(3/4),e*(3/4)]]:[[.5*e,.5*e]]},t.getUnitPatternSize=function(e,t,n){var r=e+t;return n?2*r:r},t.initCanvas=function(e,t){void 0===t&&(t=e);var n=document.createElement("canvas"),r=i();return n.width=e*r,n.height=t*r,n.style.width=e+"px",n.style.height=t+"px",n.getContext("2d").scale(r,r),n},t.transformMatrix=function(e,t){var n=t*Math.PI/180;return{a:Math.cos(n)*(1/e),b:Math.sin(n)*(1/e),c:-Math.sin(n)*(1/e),d:Math.cos(n)*(1/e),e:0,f:0}};var o=r(n(6));function i(){return"object"===("undefined"===typeof window?"undefined":(0,o.default)(window))?null===window||void 0===window?void 0:window.devicePixelRatio:2}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getGeometryOption=function(e,t,n){return c(n)?(0,i.deepAssign)({},{geometry:a.DualAxesGeometry.Column,label:n.label&&n.isRange?{content:function(e){var n;return null===(n=e[t])||void 0===n?void 0:n.join("-")}}:void 0},n):(0,r.__assign)({geometry:a.DualAxesGeometry.Line},n)},t.getYAxisWithDefault=function(e,t){return t===a.AxisType.Left?!1!==e&&(0,i.deepAssign)({},l.DEFAULT_LEFT_YAXIS_CONFIG,e):t===a.AxisType.Right?!1!==e&&(0,i.deepAssign)({},l.DEFAULT_RIGHT_YAXIS_CONFIG,e):e},t.isColumn=c,t.isLine=function(e){return(0,o.get)(e,"geometry")===a.DualAxesGeometry.Line},t.transformObjectToArray=function(e,t){var n=e[0],r=e[1];if((0,o.isArray)(t))return[t[0],t[1]];var i=(0,o.get)(t,n),a=(0,o.get)(t,r);return[i,a]};var r=n(1),o=n(0),i=n(7),a=n(569),l=n(570);function c(e){return(0,o.get)(e,"geometry")===a.DualAxesGeometry.Column}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.adaptor=function(e){return(0,o.flow)(s,(0,i.scale)({}),u,i.animation,i.theme,(0,i.annotation)())(e)},t.geometry=s;var r=n(0),o=n(7),i=n(22),a=n(30),l=n(581),c=n(307);function s(e){var t=e.chart,n=e.options,i=n.percent,s=n.progressStyle,u=n.color,d=n.barWidthRatio;t.data((0,c.getProgressData)(i));var f=(0,o.deepAssign)({},e,{options:{xField:"1",yField:"percent",seriesField:"type",isStack:!0,widthRatio:d,interval:{style:s,color:(0,r.isString)(u)?[u,l.DEFAULT_COLOR[1]]:u},args:{zIndexReversed:!0}}});return(0,a.interval)(f),t.tooltip(!1),t.axis(!1),t.legend(!1),e}function u(e){return e.chart.coordinate("rect").transpose(),e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getProgressData=function(e){var t=(0,r.clamp)((0,o.isRealNumber)(e)?e:0,0,1);return[{type:"current",percent:t},{type:"target",percent:1-t}]};var r=n(0),o=n(302)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OUTLIERS_VIEW_ID=t.DEFAULT_OPTIONS=t.BOX_SYNC_NAME=t.BOX_RANGE_ALIAS=t.BOX_RANGE=void 0;var r,o=n(19),i=n(7),a=t.BOX_RANGE="$$range$$",l=t.BOX_RANGE_ALIAS="low-q1-median-q3-high";t.BOX_SYNC_NAME="$$y_outliers$$",t.OUTLIERS_VIEW_ID="outliers_view",t.DEFAULT_OPTIONS=(0,i.deepAssign)({},o.Plot.getDefaultOptions(),{meta:(r={},r[a]={min:0,alias:l},r),interactions:[{type:"active-region"}],tooltip:{showMarkers:!1,shared:!0},boxStyle:{lineWidth:1}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.placeElementsOrdered=function(e){e&&e.geometries[0].elements.forEach((function(e){e.shape.toFront()}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Y_FIELD=t.TREND_UP=t.TREND_FIELD=t.TREND_DOWN=t.DEFAULT_TOOLTIP_OPTIONS=t.DEFAULT_OPTIONS=void 0;var r=n(19),o=n(7),i=(t.Y_FIELD="$$stock-range$$",t.TREND_FIELD="trend",t.TREND_UP="up",t.TREND_DOWN="down",t.DEFAULT_TOOLTIP_OPTIONS={showMarkers:!1,showCrosshairs:!0,shared:!0,crosshairs:{type:"xy",follow:!0,text:function(e,t,n){var r;if("x"===e){var o=n[0];r=o?o.title:t}else r=t;return{position:"y"===e?"start":"end",content:r,style:{fill:"#dfdfdf"}}},textBackground:{padding:[2,4],style:{fill:"#666"}}}});t.DEFAULT_OPTIONS=(0,o.deepAssign)({},r.Plot.getDefaultOptions(),{tooltip:i,interactions:[{type:"tooltip"}],legend:{position:"top-left"},risingFill:"#ef5350",fallingFill:"#26a69a"})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.conversionTagComponent=function(e){return function(t){var n=t.chart,a=t.options.conversionTag,l=n.getOptions().data;if(a){var c=a.formatter;l.forEach((function(t,s){if(!(s<=0||Number.isNaN(t[i.FUNNEL_MAPPING_VALUE]))){var u=e(t,s,l,{top:!0,text:{content:(0,o.isFunction)(c)?c(t,l):c,offsetX:a.offsetX,offsetY:a.offsetY,position:"end",autoRotate:!1,style:(0,r.__assign)({textAlign:"start",textBaseline:"middle"},a.style)}});n.annotation().line(u)}}))}return t}},t.transformData=function(e,t,n){var r=n.yField,a=n.maxSize,l=n.minSize,c=(0,o.get)((0,o.maxBy)(t,r),[r]),s=(0,o.isNumber)(a)?a:1,u=(0,o.isNumber)(l)?l:0;return(0,o.map)(e,(function(t,n){var a=(t[r]||0)/c;return t[i.FUNNEL_PERCENT]=a,t[i.FUNNEL_MAPPING_VALUE]=(s-u)*a+u,t[i.FUNNEL_CONVERSATION]=[(0,o.get)(e,[n-1,r]),t[r]],t}))};var r=n(1),o=n(0),i=n(124)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SUNBURST_Y_FIELD=t.SUNBURST_PATH_FIELD=t.SUNBURST_ANCESTOR_FIELD=t.RAW_FIELDS=t.DEFAULT_OPTIONS=void 0;var r=n(19),o=n(7),i=n(157),a=(t.SUNBURST_ANCESTOR_FIELD="ancestor-node",t.SUNBURST_Y_FIELD="value",t.SUNBURST_PATH_FIELD="path");t.RAW_FIELDS=[a,i.NODE_INDEX_FIELD,i.NODE_ANCESTORS_FIELD,i.CHILD_NODE_COUNT,"name","depth","height"],t.DEFAULT_OPTIONS=(0,o.deepAssign)({},r.Plot.getDefaultOptions(),{innerRadius:0,radius:.85,hierarchyConfig:{field:"value"},tooltip:{shared:!0,showMarkers:!1,offset:20,showTitle:!1},sunburstStyle:{lineWidth:.5,stroke:"#FFF"},drilldown:{enabled:!0}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isParentNode=a;var r=n(14),o=n(0),i=n(202);function a(e){var t=(0,o.get)(e,["event","data","data"],{});return(0,o.isArray)(t.children)&&t.children.length>0}function l(e){var t=e.view.getCoordinate(),n=t.innerRadius;if(n){var r=e.event,o=r.x,i=r.y,a=t.center,l=a.x,c=a.y,s=t.getRadius()*n;return Math.sqrt(Math.pow(l-o,2)+Math.pow(c-i,2))<s}return!1}(0,r.registerAction)("drill-down-action",i.DrillDownAction),(0,r.registerInteraction)("drill-down",{showEnable:[{trigger:"element:mouseenter",action:"cursor:pointer",isEnable:a},{trigger:"element:mouseleave",action:"cursor:default"},{trigger:"element:mouseleave",action:"cursor:pointer",isEnable:l}],start:[{trigger:"element:click",isEnable:a,action:["drill-down-action:click"]},{trigger:"afterchangesize",action:["drill-down-action:resetPosition"]},{trigger:"click",isEnable:l,action:["drill-down-action:back"]}]})},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.RANGE_VIEW_ID=t.RANGE_VALUE=t.RANGE_TYPE=t.PERCENT=t.INDICATEOR_VIEW_ID=t.DEFAULT_OPTIONS=t.DEFAULT_COLOR=void 0;var o=t.RANGE_VALUE="range",i=(t.RANGE_TYPE="type",t.PERCENT="percent");t.DEFAULT_COLOR="#f0f0f0",t.INDICATEOR_VIEW_ID="indicator-view",t.RANGE_VIEW_ID="range-view",t.DEFAULT_OPTIONS={percent:0,range:{ticks:[]},innerRadius:.9,radius:.95,startAngle:-7/6*Math.PI,endAngle:1/6*Math.PI,syncViewPadding:!0,axis:{line:null,label:{offset:-24,style:{textAlign:"center",textBaseline:"middle"}},subTickLine:{length:-8},tickLine:{length:-12},grid:null},indicator:{pointer:{style:{lineWidth:5,lineCap:"round"}},pin:{style:{r:9.75,lineWidth:4.5,fill:"#fff"}}},statistic:{title:!1},meta:(r={},r[o]={sync:"v"},r[i]={sync:"v",tickCount:5,tickInterval:.2},r),animation:!1}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Y_FIELD=t.IS_TOTAL=t.DIFF_FIELD=t.DEFAULT_OPTIONS=t.ABSOLUTE_FIELD=void 0,t.Y_FIELD="$$yField$$",t.DIFF_FIELD="$$diffField$$",t.ABSOLUTE_FIELD="$$absoluteField$$",t.IS_TOTAL="$$isTotal$$",t.DEFAULT_OPTIONS={label:{},leaderLine:{style:{lineWidth:1,stroke:"#8c8c8c",lineDash:[4,2]}},total:{style:{fill:"rgba(0, 0, 0, 0.25)"}},interactions:[{type:"element-active"}],risingFill:"#f4664a",fallingFill:"#30bf78",waterfallStyle:{fill:"rgba(0, 0, 0, 0.25)"},yAxis:{grid:{line:{style:{lineDash:[4,2]}}}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Y_FIELD=t.X_FIELD=t.NODES_VIEW_ID=t.EDGES_VIEW_ID=t.COLOR_FIELD=void 0,t.X_FIELD="x",t.Y_FIELD="y",t.COLOR_FIELD="name",t.NODES_VIEW_ID="nodes",t.EDGES_VIEW_ID="edges"},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_OPTIONS=t.RANGE_VIEW_ID=t.INDICATEOR_VIEW_ID=t.DEFAULT_COLOR=t.PERCENT=t.RANGE_TYPE=t.RANGE_VALUE=void 0,t.RANGE_VALUE="range",t.RANGE_TYPE="type",t.PERCENT="percent",t.DEFAULT_COLOR="#f0f0f0",t.INDICATEOR_VIEW_ID="indicator-view",t.RANGE_VIEW_ID="range-view",t.DEFAULT_OPTIONS={percent:0,range:{ticks:[]},innerRadius:.9,radius:.95,startAngle:-7/6*Math.PI,endAngle:1/6*Math.PI,syncViewPadding:!0,axis:{line:null,label:{offset:-24,style:{textAlign:"center",textBaseline:"middle"}},subTickLine:{length:-8},tickLine:{length:-12},grid:null},indicator:{pointer:{style:{lineWidth:5,lineCap:"round"}},pin:{style:{r:9.75,lineWidth:4.5,fill:"#fff"}}},statistic:{title:!1},meta:(r={},r[t.RANGE_VALUE]={sync:"v"},r[t.PERCENT]={sync:"v",tickCount:5,tickInterval:.2},r),animation:!1}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getYAxisWithDefault=t.transformObjectToArray=t.getGeometryOption=t.isColumn=t.isLine=void 0;var r=n(1),o=n(0),i=n(15),a=n(610),l=n(611);function c(e){return o.get(e,"geometry")===a.DualAxesGeometry.Column}t.isLine=function(e){return o.get(e,"geometry")===a.DualAxesGeometry.Line},t.isColumn=c,t.getGeometryOption=function(e,t,n){return c(n)?i.deepAssign({},{geometry:a.DualAxesGeometry.Column,label:n.label&&n.isRange?{content:function(e){var n;return null===(n=e[t])||void 0===n?void 0:n.join("-")}}:void 0},n):r.__assign({geometry:a.DualAxesGeometry.Line},n)},t.transformObjectToArray=function(e,t){var n=e[0],r=e[1];return o.isArray(t)?[t[0],t[1]]:[o.get(t,n),o.get(t,r)]},t.getYAxisWithDefault=function(e,t){return t===a.AxisType.Left?!1!==e&&i.deepAssign({},l.DEFAULT_LEFT_YAXIS_CONFIG,e):t===a.AxisType.Right?!1!==e&&i.deepAssign({},l.DEFAULT_RIGHT_YAXIS_CONFIG,e):e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(0),i=n(69),a=n(96),l=n(21),c=n(48),s=n(70),u=n(903),d=n(103),f=["regionFilter","shape"],p=function(e){function t(t){var n=e.call(this,t)||this;return n.cache=new Map,n.foregroundContainer=n.view.getLayer(l.LAYER.FORE).addGroup(),n.backgroundContainer=n.view.getLayer(l.LAYER.BG).addGroup(),n.option=[],n}return(0,r.__extends)(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return"annotation"},enumerable:!1,configurable:!0}),t.prototype.init=function(){},t.prototype.layout=function(){this.update()},t.prototype.render=function(){},t.prototype.update=function(){var e=this;this.onAfterRender((function(){var t=new Map;(0,o.each)(e.option,(function(n){if((0,o.includes)(f,n.type)){var r=e.updateOrCreate(n);r&&t.set(e.getCacheKey(n),r)}})),e.cache=e.syncCache(t)}));var t=new Map;(0,o.each)(this.option,(function(n){if(!(0,o.includes)(f,n.type)){var r=e.updateOrCreate(n);r&&t.set(e.getCacheKey(n),r)}})),this.cache=this.syncCache(t)},t.prototype.clear=function(t){void 0===t&&(t=!1),e.prototype.clear.call(this),this.clearComponents(),this.foregroundContainer.clear(),this.backgroundContainer.clear(),t&&(this.option=[])},t.prototype.destroy=function(){this.clear(!0),this.foregroundContainer.remove(!0),this.backgroundContainer.remove(!0)},t.prototype.getComponents=function(){var e=[];return this.cache.forEach((function(t){e.push(t)})),e},t.prototype.clearComponents=function(){this.getComponents().forEach((function(e){e.component.destroy()})),this.cache.clear()},t.prototype.onAfterRender=function(e){this.view.getOptions().animate?this.view.geometries.forEach((function(t){t.animateOption&&t.once(l.GEOMETRY_LIFE_CIRCLE.AFTER_DRAW_ANIMATE,(function(){e()}))})):this.view.getRootView().once(l.VIEW_LIFE_CIRCLE.AFTER_RENDER,(function(){e()}))},t.prototype.createAnnotation=function(e){var t=e.type,n=i.Annotation[(0,o.upperFirst)(t)];if(n){var r=this.getAnnotationTheme(t),a=this.getAnnotationCfg(t,e,r);return{component:new n(a),layer:this.isTop(a)?l.LAYER.FORE:l.LAYER.BG,direction:l.DIRECTION.NONE,type:l.COMPONENT_TYPE.ANNOTATION,extra:e}}},t.prototype.annotation=function(e){this.option.push(e)},t.prototype.arc=function(e){return this.annotation((0,r.__assign)({type:"arc"},e)),this},t.prototype.image=function(e){return this.annotation((0,r.__assign)({type:"image"},e)),this},t.prototype.line=function(e){return this.annotation((0,r.__assign)({type:"line"},e)),this},t.prototype.region=function(e){return this.annotation((0,r.__assign)({type:"region"},e)),this},t.prototype.text=function(e){return this.annotation((0,r.__assign)({type:"text"},e)),this},t.prototype.dataMarker=function(e){return this.annotation((0,r.__assign)({type:"dataMarker"},e)),this},t.prototype.dataRegion=function(e){this.annotation((0,r.__assign)({type:"dataRegion"},e))},t.prototype.regionFilter=function(e){this.annotation((0,r.__assign)({type:"regionFilter"},e))},t.prototype.shape=function(e){this.annotation((0,r.__assign)({type:"shape"},e))},t.prototype.html=function(e){this.annotation((0,r.__assign)({type:"html"},e))},t.prototype.parsePosition=function(e){var t=this.view.getXScale(),n=this.view.getScalesByDim("y"),r=(0,o.isFunction)(e)?e.call(null,t,n):e,i=0,a=0;if((0,o.isArray)(r)){var l=r[0],c=r[1];if((0,o.isString)(l)&&-1!==l.indexOf("%")&&!isNaN(l.slice(0,-1)))return this.parsePercentPosition(r);i=(0,u.getNormalizedValue)(l,t),a=(0,u.getNormalizedValue)(c,Object.values(n)[0])}else if(!(0,o.isNil)(r))for(var s=0,d=(0,o.keys)(r);s<d.length;s++){var f=d[s],p=r[f];f===t.field&&(i=(0,u.getNormalizedValue)(p,t)),n[f]&&(a=(0,u.getNormalizedValue)(p,n[f]))}return this.view.getCoordinate().convert({x:i,y:a})},t.prototype.getRegionPoints=function(e,t){var n,r=this,i=this.view.getXScale(),a=this.view.getScalesByDim("y"),l=Object.values(a)[0],c=i.field,s=this.view.getData(),u=(0,o.isArray)(e)?e[0]:e[c],d=(0,o.isArray)(t)?t[0]:t[c],f=[];return(0,o.each)(s,(function(e,t){if(e[c]===u&&(n=t),t>=n){var o=r.parsePosition([e[c],e[l.field]]);o&&f.push(o)}if(e[c]===d)return!1})),f},t.prototype.parsePercentPosition=function(e){var t=parseFloat(e[0])/100,n=parseFloat(e[1])/100,r=this.view.getCoordinate(),o=r.start,i=r.end,a=Math.min(o.x,i.x),l=Math.min(o.y,i.y);return{x:r.getWidth()*t+a,y:r.getHeight()*n+l}},t.prototype.getCoordinateBBox=function(){var e=this.view.getCoordinate(),t=e.start,n=e.end,r=e.getWidth(),o=e.getHeight(),i={x:Math.min(t.x,n.x),y:Math.min(t.y,n.y)};return{x:i.x,y:i.y,minX:i.x,minY:i.y,maxX:i.x+r,maxY:i.y+o,width:r,height:o}},t.prototype.getAnnotationCfg=function(e,t,n){var i=this,l=this.view.getCoordinate(),s=this.view.getCanvas(),u={};if((0,o.isNil)(t))return null;if("arc"===e){var d=t,f=d.start,p=d.end,h=(0,r.__rest)(d,["start","end"]),g=this.parsePosition(f),v=this.parsePosition(p),m=(0,c.getAngleByPoint)(l,g),y=(0,c.getAngleByPoint)(l,v);m>y&&(y=2*Math.PI+y),u=(0,r.__assign)((0,r.__assign)({},h),{center:l.getCenter(),radius:(0,c.getDistanceToCenter)(l,g),startAngle:m,endAngle:y})}else if("image"===e){var b=t;f=b.start,p=b.end,h=(0,r.__rest)(b,["start","end"]),u=(0,r.__assign)((0,r.__assign)({},h),{start:this.parsePosition(f),end:this.parsePosition(p),src:t.src})}else if("line"===e){var x=t;f=x.start,p=x.end,h=(0,r.__rest)(x,["start","end"]),u=(0,r.__assign)((0,r.__assign)({},h),{start:this.parsePosition(f),end:this.parsePosition(p),text:(0,o.get)(t,"text",null)})}else if("region"===e){var w=t;f=w.start,p=w.end,h=(0,r.__rest)(w,["start","end"]),u=(0,r.__assign)((0,r.__assign)({},h),{start:this.parsePosition(f),end:this.parsePosition(p)})}else if("text"===e){var S=this.view.getData(),O=t,_=O.position,C=O.content,E=(h=(0,r.__rest)(O,["position","content"]),C);(0,o.isFunction)(C)&&(E=C(S)),u=(0,r.__assign)((0,r.__assign)((0,r.__assign)({},this.parsePosition(_)),h),{content:E})}else if("dataMarker"===e){var P=t,M=(_=P.position,P.point),k=P.line,A=P.text,I=P.autoAdjust,T=P.direction;h=(0,r.__rest)(P,["position","point","line","text","autoAdjust","direction"]),u=(0,r.__assign)((0,r.__assign)((0,r.__assign)({},h),this.parsePosition(_)),{coordinateBBox:this.getCoordinateBBox(),point:M,line:k,text:A,autoAdjust:I,direction:T})}else if("dataRegion"===e){var j=t,L=(f=j.start,p=j.end,j.region),R=(A=j.text,j.lineLength);h=(0,r.__rest)(j,["start","end","region","text","lineLength"]),u=(0,r.__assign)((0,r.__assign)({},h),{points:this.getRegionPoints(f,p),region:L,text:A,lineLength:R})}else if("regionFilter"===e){var D=t,N=(f=D.start,p=D.end,D.apply),F=D.color,B=(h=(0,r.__rest)(D,["start","end","apply","color"]),this.view.geometries),z=[],H=function e(t){t&&(t.isGroup()?t.getChildren().forEach((function(t){return e(t)})):z.push(t))};(0,o.each)(B,(function(e){N?(0,o.contains)(N,e.type)&&(0,o.each)(e.elements,(function(e){H(e.shape)})):(0,o.each)(e.elements,(function(e){H(e.shape)}))})),u=(0,r.__assign)((0,r.__assign)({},h),{color:F,shapes:z,start:this.parsePosition(f),end:this.parsePosition(p)})}else if("shape"===e){var W=t,V=W.render,G=(0,r.__rest)(W,["render"]);u=(0,r.__assign)((0,r.__assign)({},G),{render:function(e){if((0,o.isFunction)(t.render))return V(e,i.view,{parsePosition:i.parsePosition.bind(i)})}})}else if("html"===e){var Y=t,U=Y.html;_=Y.position,G=(0,r.__rest)(Y,["html","position"]),u=(0,r.__assign)((0,r.__assign)((0,r.__assign)({},G),this.parsePosition(_)),{parent:s.get("el").parentNode,html:function(e){return(0,o.isFunction)(U)?U(e,i.view):U}})}var X=(0,o.deepMix)({},n,(0,r.__assign)((0,r.__assign)({},u),{top:t.top,style:t.style,offsetX:t.offsetX,offsetY:t.offsetY}));return"html"!==e&&(X.container=this.getComponentContainer(X)),X.animate=this.view.getOptions().animate&&X.animate&&(0,o.get)(t,"animate",X.animate),X.animateOption=(0,o.deepMix)({},a.DEFAULT_ANIMATE_CFG,X.animateOption,t.animateOption),X},t.prototype.isTop=function(e){return(0,o.get)(e,"top",!0)},t.prototype.getComponentContainer=function(e){return this.isTop(e)?this.foregroundContainer:this.backgroundContainer},t.prototype.getAnnotationTheme=function(e){return(0,o.get)(this.view.getTheme(),["components","annotation",e],{})},t.prototype.updateOrCreate=function(e){var t=this.cache.get(this.getCacheKey(e));if(t){var n=e.type,r=this.getAnnotationTheme(n),i=this.getAnnotationCfg(n,e,r);(0,s.omit)(i,["container"]),t.component.update(i),(0,o.includes)(f,e.type)&&t.component.render()}else(t=this.createAnnotation(e))&&(t.component.init(),(0,o.includes)(f,e.type)&&t.component.render());return t},t.prototype.syncCache=function(e){var t=this,n=new Map(this.cache);return e.forEach((function(e,t){n.set(t,e)})),n.forEach((function(e,r){(0,o.find)(t.option,(function(e){return r===t.getCacheKey(e)}))||(e.component.destroy(),n.delete(r))})),n},t.prototype.getCacheKey=function(e){return e},t}(d.Controller);t.default=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.positionUpdate=void 0,t.positionUpdate=function(e,t,n){var r=n.toAttrs,o=r.x,i=r.y;delete r.x,delete r.y,e.attr(r),e.animate({x:o,y:i},t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sectorPathUpdate=void 0;var r=n(1),o=n(206),i=n(0),a=n(46);function l(e,t){var n,r=(0,o.getArcParams)(e,t),a=r.startAngle,l=r.endAngle;return!(0,i.isNumberEqual)(a,.5*-Math.PI)&&a<.5*-Math.PI&&(a+=2*Math.PI),!(0,i.isNumberEqual)(l,.5*-Math.PI)&&l<.5*-Math.PI&&(l+=2*Math.PI),0===t[5]&&(a=(n=[l,a])[0],l=n[1]),(0,i.isNumberEqual)(a,1.5*Math.PI)&&(a=-.5*Math.PI),(0,i.isNumberEqual)(l,-.5*Math.PI)&&(l=1.5*Math.PI),{startAngle:a,endAngle:l}}function c(e){var t;return"M"===e[0]||"L"===e[0]?t=[e[1],e[2]]:"a"!==e[0]&&"A"!==e[0]&&"C"!==e[0]||(t=[e[e.length-2],e[e.length-1]]),t}function s(e){var t,n,r,o=e.filter((function(e){return"A"===e[0]||"a"===e[0]}));if(0===o.length)return{startAngle:0,endAngle:0,radius:0,innerRadius:0};var a=o[0],s=o.length>1?o[1]:o[0],u=e.indexOf(a),d=e.indexOf(s),f=c(e[u-1]),p=c(e[d-1]),h=l(f,a),g=h.startAngle,v=h.endAngle,m=l(p,s),y=m.startAngle,b=m.endAngle;(0,i.isNumberEqual)(g,y)&&(0,i.isNumberEqual)(v,b)?(n=g,r=v):(n=Math.min(g,y),r=Math.max(v,b));var x=a[1],w=o[o.length-1][1];return x<w?(x=(t=[w,x])[0],w=t[1]):x===w&&(w=0),{startAngle:n,endAngle:r,radius:x,innerRadius:w}}t.sectorPathUpdate=function(e,t,n){var o=n.toAttrs,l=n.coordinate,c=o.path||[],u=c.map((function(e){return e[0]}));if(!(c.length<1)){var d=s(c),f=d.startAngle,p=d.endAngle,h=d.radius,g=d.innerRadius,v=s(e.attr("path")),m=v.startAngle,y=v.endAngle,b=l.getCenter(),x=f-m,w=p-y;0!==x||0!==w?e.animate((function(e){var t=m+e*x,n=y+e*w;return(0,r.__assign)((0,r.__assign)({},o),{path:(0,i.isEqual)(u,["M","A","A","Z"])?(0,a.getArcPath)(b.x,b.y,h,t,n):(0,a.getSectorPath)(b.x,b.y,h,t,n,g)})}),(0,r.__assign)((0,r.__assign)({},t),{callback:function(){e.attr("path",c)}})):e.attr("path",c)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.waveIn=void 0;var r=n(1),o=n(48);t.waveIn=function(e,t,n){var i=(0,o.getCoordinateClipCfg)(n.coordinate,20),a=i.type,l=i.startState,c=i.endState,s=e.setClip({type:a,attrs:l});s.animate(c,(0,r.__assign)((0,r.__assign)({},t),{callback:function(){e&&!e.get("destroyed")&&e.set("clipShape",null),s.remove(!0)}}))}},function(e,t,n){"use strict";n.r(t);var r=n(14);for(var o in r)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(o)},function(e,t,n){"use strict";var r=n(2),o=n(6);Object.defineProperty(t,"__esModule",{value:!0});var i={version:!0,Shape:!0,Canvas:!0,Group:!0};Object.defineProperty(t,"Canvas",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"Group",{enumerable:!0,get:function(){return s.default}}),t.version=t.Shape=void 0;var a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!==typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(r,a,l):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}(n(191));t.Shape=a;var l=n(26);Object.keys(l).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(i,e)||e in t&&t[e]===l[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}}))}));var c=r(n(985)),s=r(n(274));function u(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}t.version="0.5.6"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(21),i=(0,r.__importDefault)(n(158));n(277);var a=function(e){function t(t){var n=e.call(this,t)||this;n.type="area",n.shapeType="area",n.generatePoints=!0,n.startOnZero=!0;var r=t.startOnZero,o=void 0===r||r,i=t.sortable,a=void 0!==i&&i,l=t.showSinglePoint,c=void 0!==l&&l;return n.startOnZero=o,n.sortable=a,n.showSinglePoint=c,n}return(0,r.__extends)(t,e),t.prototype.getPointsAndData=function(e){for(var t=[],n=[],r=0,i=e.length;r<i;r++){var a=e[r];t.push(a.points),n.push(a[o.FIELD_ORIGIN])}return{points:t,data:n}},t.prototype.getYMinValue=function(){return this.startOnZero?e.prototype.getYMinValue.call(this):this.getYScale().min},t}(i.default);t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=(0,r.__importDefault)(n(90));n(464);var i=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="edge",t.shapeType="edge",t.generatePoints=!0,t}return(0,r.__extends)(t,e),t}(o.default);t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=(0,r.__importDefault)(n(140)),i=n(0),a=n(21),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="heatmap",t.paletteCache={},t}return(0,r.__extends)(t,e),t.prototype.updateElements=function(e,t){void 0===t&&(t=!1);for(var n=0;n<e.length;n++){var r=e[n],o=this.prepareRange(r),a=this.prepareSize(),l=(0,i.get)(this.styleOption,["cfg","shadowBlur"]);(0,i.isNumber)(l)||(l=a/2),this.prepareGreyScaleBlurredCircle(a,l),this.drawWithRange(r,o,a,l)}},t.prototype.color=function(e,t){return this.createAttrOption("color",e,"function"!==typeof t?t:""),this},t.prototype.clear=function(){e.prototype.clear.call(this),this.clearShadowCanvasCtx(),this.paletteCache={}},t.prototype.prepareRange=function(e){var t=this.getAttribute("color").getFields()[0],n=1/0,r=-1/0;return e.forEach((function(e){var o=e[a.FIELD_ORIGIN][t];o>r&&(r=o),o<n&&(n=o)})),n===r&&(n=r-1),[n,r]},t.prototype.prepareSize=function(){var e=this.getDefaultValue("size");return(0,i.isNumber)(e)||(e=this.getDefaultSize()),e},t.prototype.prepareGreyScaleBlurredCircle=function(e,t){var n=this.getGrayScaleBlurredCanvas(),r=e+t,o=n.getContext("2d");n.width=n.height=2*r,o.clearRect(0,0,n.width,n.height),o.shadowOffsetX=o.shadowOffsetY=2*r,o.shadowBlur=t,o.shadowColor="black",o.beginPath(),o.arc(-r,-r,e,0,2*Math.PI,!0),o.closePath(),o.fill()},t.prototype.drawWithRange=function(e,t,n,r){var o=this.coordinate,i=o.start,l=o.end,c=this.coordinate.getWidth(),s=this.coordinate.getHeight(),u=this.getAttribute("color").getFields()[0];this.clearShadowCanvasCtx();var d=this.getShadowCanvasCtx();t&&(e=e.filter((function(e){return e[a.FIELD_ORIGIN][u]<=t[1]&&e[a.FIELD_ORIGIN][u]>=t[0]})));for(var f=this.scales[u],p=0,h=e;p<h.length;p++){var g=h[p],v=this.getDrawCfg(g),m=v.x,y=v.y,b=f.scale(g[a.FIELD_ORIGIN][u]);this.drawGrayScaleBlurredCircle(m-i.x,y-l.y,n+r,b,d)}var x=d.getImageData(0,0,c,s);this.clearShadowCanvasCtx(),this.colorize(x),d.putImageData(x,0,0);var w=this.getImageShape();w.attr("x",i.x),w.attr("y",l.y),w.attr("width",c),w.attr("height",s),w.attr("img",d.canvas),w.set("origin",this.getShapeInfo(e))},t.prototype.getDefaultSize=function(){var e=this.getAttribute("position"),t=this.coordinate;return Math.min(t.getWidth()/(4*e.scales[0].ticks.length),t.getHeight()/(4*e.scales[1].ticks.length))},t.prototype.clearShadowCanvasCtx=function(){var e=this.getShadowCanvasCtx();e.clearRect(0,0,e.canvas.width,e.canvas.height)},t.prototype.getShadowCanvasCtx=function(){var e=this.shadowCanvas;return e||(e=document.createElement("canvas"),this.shadowCanvas=e),e.width=this.coordinate.getWidth(),e.height=this.coordinate.getHeight(),e.getContext("2d")},t.prototype.getGrayScaleBlurredCanvas=function(){return this.grayScaleBlurredCanvas||(this.grayScaleBlurredCanvas=document.createElement("canvas")),this.grayScaleBlurredCanvas},t.prototype.drawGrayScaleBlurredCircle=function(e,t,n,r,o){var i=this.getGrayScaleBlurredCanvas();o.globalAlpha=r,o.drawImage(i,e-n,t-n)},t.prototype.colorize=function(e){for(var t=this.getAttribute("color"),n=e.data,r=this.paletteCache,a=3;a<n.length;a+=4){var l=n[a];if((0,i.isNumber)(l)){var c=r[l]?r[l]:o.default.rgb2arr(t.gradient(l/256));n[a-3]=c[0],n[a-2]=c[1],n[a-1]=c[2],n[a]=l}}},t.prototype.getImageShape=function(){var e=this.imageShape;return e||(e=this.container.addShape({type:"image",attrs:{}}),this.imageShape=e,e)},t.prototype.getShapeInfo=function(e){var t=this.getDrawCfg(e[0]),n=e.map((function(e){return e[a.FIELD_ORIGIN]}));return(0,r.__assign)((0,r.__assign)({},t),{mappingData:e,data:n})},t}((0,r.__importDefault)(n(90)).default);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(0),i=n(48),a=(0,r.__importDefault)(n(90));n(992);var l=n(278),c=n(110),s=function(e){function t(t){var n=e.call(this,t)||this;n.type="interval",n.shapeType="interval",n.generatePoints=!0;var r=t.background;return n.background=r,n}return(0,r.__extends)(t,e),t.prototype.createShapePointsCfg=function(t){var n,r=e.prototype.createShapePointsCfg.call(this,t),o=this.getAttribute("size");if(o){n=this.getAttributeValues(o,t)[0];var a=this.coordinate;n/=(0,i.getXDimensionLength)(a)}else this.defaultSize||(this.defaultSize=(0,l.getDefaultSize)(this)),n=this.defaultSize;return r.size=n,r},t.prototype.adjustScale=function(){e.prototype.adjustScale.call(this);var t=this.getYScale();if("theta"===this.coordinate.type)t.change({nice:!1,min:0,max:(0,c.getMaxScale)(t)});else{var n=this.scaleDefs,r=t.field,i=t.min,a=t.max;"time"!==t.type&&(i>0&&!(0,o.get)(n,[r,"min"])&&t.change({min:0}),a<=0&&!(0,o.get)(n,[r,"max"])&&t.change({max:0}))}},t.prototype.getDrawCfg=function(t){var n=e.prototype.getDrawCfg.call(this,t);return n.background=this.background,n},t}(a.default);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=(0,r.__importDefault)(n(158));n(275);var i=function(e){function t(t){var n=e.call(this,t)||this;n.type="line";var r=t.sortable,o=void 0!==r&&r;return n.sortable=o,n}return(0,r.__extends)(t,e),t}(o.default);t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=(0,r.__importDefault)(n(90));n(993);var i=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="point",t.shapeType="point",t.generatePoints=!0,t}return(0,r.__extends)(t,e),t.prototype.getDrawCfg=function(t){var n=e.prototype.getDrawCfg.call(this,t);return(0,r.__assign)((0,r.__assign)({},n),{isStack:!!this.getAdjust("stack")})},t}(o.default);t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(0),i=(0,r.__importDefault)(n(90));n(465);var a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="polygon",t.shapeType="polygon",t.generatePoints=!0,t}return(0,r.__extends)(t,e),t.prototype.createShapePointsCfg=function(t){var n,r=e.prototype.createShapePointsCfg.call(this,t),i=r.x,a=r.y;if(!(0,o.isArray)(i)||!(0,o.isArray)(a)){var l=this.getXScale(),c=this.getYScale(),s=.5/l.values.length,u=.5/c.values.length;l.isCategory&&c.isCategory?(i=[i-s,i-s,i+s,i+s],a=[a-u,a+u,a+u,a-u]):(0,o.isArray)(i)?(i=[(n=i)[0],n[0],n[1],n[1]],a=[a-u/2,a+u/2,a+u/2,a-u/2]):(0,o.isArray)(a)&&(a=[(n=a)[0],n[1],n[1],n[0]],i=[i-s/2,i-s/2,i+s/2,i+s/2]),r.x=i,r.y=a}return r},t}(i.default);t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(48),i=(0,r.__importDefault)(n(90));n(466);var a=n(278),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="schema",t.shapeType="schema",t.generatePoints=!0,t}return(0,r.__extends)(t,e),t.prototype.createShapePointsCfg=function(t){var n,r=e.prototype.createShapePointsCfg.call(this,t),i=this.getAttribute("size");if(i){n=this.getAttributeValues(i,t)[0];var l=this.coordinate;n/=(0,o.getXDimensionLength)(l)}else this.defaultSize||(this.defaultSize=(0,a.getDefaultSize)(this)),n=this.defaultSize;return r.size=n,r},t}(i.default);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.distribute=void 0;var r=n(0),o=n(46);t.distribute=function(e,t,n,i){if(e.length&&t.length){var a=e[0]?e[0].offset:0,l=t[0].get("coordinate"),c=l.getRadius(),s=l.getCenter();if(a>0){var u=2*(c+a)+28,d={start:l.start,end:l.end},f=[[],[]];e.forEach((function(e){e&&("right"===e.textAlign?f[0].push(e):f[1].push(e))})),f.forEach((function(e,n){var o=u/14;e.length>o&&(e.sort((function(e,t){return t["..percent"]-e["..percent"]})),e.splice(o,e.length-o)),e.sort((function(e,t){return e.y-t.y})),function(e,t,n,o,i,a){var l,c=!0,s=o.start,u=o.end,d=Math.min(s.y,u.y),f=Math.abs(s.y-u.y),p=0,h=Number.MIN_VALUE,g=t.map((function(e){return e.y>p&&(p=e.y),e.y<h&&(h=e.y),{size:n,targets:[e.y-d]}}));for(h-=d,p-d>f&&(f=p-d);c;)for(g.forEach((function(e){var t=(Math.min.apply(h,e.targets)+Math.max.apply(h,e.targets))/2;e.pos=Math.min(Math.max(h,t-e.size/2),f-e.size)})),c=!1,l=g.length;l--;)if(l>0){var v=g[l-1],m=g[l];v.pos+v.size>m.pos&&(v.size+=m.size,v.targets=v.targets.concat(m.targets),v.pos+v.size>f&&(v.pos=f-v.size),g.splice(l,1),c=!0)}l=0,g.forEach((function(e){var r=d+n/2;e.targets.forEach((function(){t[l].y=e.pos+r,r+=n,l++}))}));for(var y={},b=0,x=e;b<x.length;b++){var w=x[b];y[w.get("id")]=w}t.forEach((function(e){var t=e.r*e.r,n=Math.pow(Math.abs(e.y-i.y),2);if(t<n)e.x=i.x;else{var o=Math.sqrt(t-n);e.x=a?i.x+o:i.x-o}var l=y[e.id];l.attr("x",e.x),l.attr("y",e.y);var c=(0,r.find)(l.getChildren(),(function(e){return"text"===e.get("type")}));c&&(c.attr("y",e.y),c.attr("x",e.x))}))}(t,e,14,d,s,n)}))}(0,r.each)(e,(function(e){if(e&&e.labelLine){var t=e.offset,n=e.angle,i=(0,o.polarToCartesian)(s.x,s.y,c,n),a=(0,o.polarToCartesian)(s.x,s.y,c+t/2,n),l=e.x+(0,r.get)(e,"offsetX",0),u=e.y+(0,r.get)(e,"offsetY",0),d={x:l-4*Math.cos(n),y:u-4*Math.sin(n)};(0,r.isObject)(e.labelLine)||(e.labelLine={}),e.labelLine.path=["M "+i.x,i.y+" Q"+a.x,a.y+" "+d.x,d.y].join(",")}}))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.limitInCanvas=void 0;var r=n(0),o=n(113);t.limitInCanvas=function(e,t,n,i){(0,r.each)(t,(function(e){var t=i.minX,n=i.minY,r=i.maxX,a=i.maxY,l=e.getCanvasBBox(),c=l.minX,s=l.minY,u=l.maxX,d=l.maxY,f=l.x,p=l.y,h=l.width,g=l.height,v=f,m=p;(c<t||u<t)&&(v=t),(s<n||d<n)&&(m=n),c>r?v=r-h:u>r&&(v-=u-r),s>a?m=a-g:d>a&&(m-=d-a),v===f&&m===p||(0,o.translate)(e,v-f,m-p)}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.limitInShape=void 0;var r=n(0);t.limitInShape=function(e,t,n,o){(0,r.each)(t,(function(e,t){var r=e.getCanvasBBox(),o=n[t].getBBox();(r.minX<o.minX||r.minY<o.minY||r.maxX>o.maxX||r.maxY>o.maxY)&&e.remove(!0)}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(0),i=n(21),a=n(115),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.__extends)(t,e),t.prototype.getDefaultCfg=function(){return(0,o.deepMix)({},e.prototype.getDefaultCfg.call(this),{type:"circle",showTitle:!0,title:e.prototype.getDefaultTitleCfg.call(this)})},t.prototype.render=function(){e.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},t.prototype.getRegion=function(e,t){var n=2*Math.PI/e,r=-1*Math.PI/2+n*t,o=.5/(1+1/Math.sin(n/2)),i=(0,a.getAnglePoint)({x:.5,y:.5},.5-o,r),l=5*Math.PI/4,c=1*Math.PI/4;return{start:(0,a.getAnglePoint)(i,o,l),end:(0,a.getAnglePoint)(i,o,c)}},t.prototype.afterEachView=function(e,t){this.processAxis(e,t)},t.prototype.beforeEachView=function(e,t){},t.prototype.generateFacets=function(e){var t=this,n=this.cfg,r=n.fields,i=n.type,a=r[0];if(!a)throw new Error("No `fields` specified!");var l=this.getFieldValues(e,a),c=l.length,s=[];return l.forEach((function(n,r){var u=[{field:a,value:n,values:l}],d=(0,o.filter)(e,t.getFacetDataFilter(u)),f={type:i,data:d,region:t.getRegion(c,r),columnValue:n,columnField:a,columnIndex:r,columnValuesLength:c,rowValue:null,rowField:null,rowIndex:0,rowValuesLength:1};s.push(f)})),s},t.prototype.getXAxisOption=function(e,t,n,r){return n},t.prototype.getYAxisOption=function(e,t,n,r){return n},t.prototype.renderTitle=function(){var e=this;(0,o.each)(this.facets,(function(t){var n=t.columnValue,r=t.view,l=(0,o.get)(e.cfg.title,"formatter"),c=(0,o.deepMix)({position:["50%","0%"],content:l?l(n):n},(0,a.getFactTitleConfig)(i.DIRECTION.TOP),e.cfg.title);r.annotation().text(c)}))},t}(n(104).Facet);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(0),i=n(21),a=n(115),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.__extends)(t,e),t.prototype.getDefaultCfg=function(){return(0,o.deepMix)({},e.prototype.getDefaultCfg.call(this),{type:"list",cols:null,showTitle:!0,title:e.prototype.getDefaultTitleCfg.call(this)})},t.prototype.render=function(){e.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},t.prototype.afterEachView=function(e,t){this.processAxis(e,t)},t.prototype.beforeEachView=function(e,t){},t.prototype.generateFacets=function(e){var t=this,n=this.cfg.fields,r=this.cfg.cols,i=n[0];if(!i)throw new Error("No `fields` specified!");var a=this.getFieldValues(e,i),l=a.length;r=r||l;var c=this.getPageCount(l,r),s=[];return a.forEach((function(n,u){var d=t.getRowCol(u,r),f=d.row,p=d.col,h=[{field:i,value:n,values:a}],g=(0,o.filter)(e,t.getFacetDataFilter(h)),v={type:t.cfg.type,data:g,region:t.getRegion(c,r,p,f),columnValue:n,rowValue:n,columnField:i,rowField:null,columnIndex:p,rowIndex:f,columnValuesLength:r,rowValuesLength:c,total:l};s.push(v)})),s},t.prototype.getXAxisOption=function(e,t,n,o){return o.rowIndex!==o.rowValuesLength-1&&o.columnValuesLength*o.rowIndex+o.columnIndex+1+o.columnValuesLength<=o.total?(0,r.__assign)((0,r.__assign)({},n),{label:null,title:null}):n},t.prototype.getYAxisOption=function(e,t,n,o){return 0!==o.columnIndex?(0,r.__assign)((0,r.__assign)({},n),{title:null,label:null}):n},t.prototype.renderTitle=function(){var e=this;(0,o.each)(this.facets,(function(t){var n=t.columnValue,r=t.view,l=(0,o.get)(e.cfg.title,"formatter"),c=(0,o.deepMix)({position:["50%","0%"],content:l?l(n):n},(0,a.getFactTitleConfig)(i.DIRECTION.TOP),e.cfg.title);r.annotation().text(c)}))},t.prototype.getPageCount=function(e,t){return Math.floor((e+t-1)/t)},t.prototype.getRowCol=function(e,t){return{row:Math.floor(e/t),col:e%t}},t}(n(104).Facet);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(0),i=n(21),a=n(115),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.__extends)(t,e),t.prototype.getDefaultCfg=function(){return(0,o.deepMix)({},e.prototype.getDefaultCfg.call(this),{type:"matrix",showTitle:!1,columnTitle:(0,r.__assign)({},e.prototype.getDefaultTitleCfg.call(this)),rowTitle:(0,r.__assign)({},e.prototype.getDefaultTitleCfg.call(this))})},t.prototype.render=function(){e.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},t.prototype.afterEachView=function(e,t){this.processAxis(e,t)},t.prototype.beforeEachView=function(e,t){},t.prototype.generateFacets=function(e){for(var t=this.cfg,n=t.fields,r=t.type,o=n.length,i=o,a=[],l=0;l<i;l++)for(var c=n[l],s=0;s<o;s++){var u=n[s],d={type:r,data:e,region:this.getRegion(o,i,l,s),columnValue:c,rowValue:u,columnField:c,rowField:u,columnIndex:l,rowIndex:s,columnValuesLength:i,rowValuesLength:o};a.push(d)}return a},t.prototype.getXAxisOption=function(e,t,n,o){return o.rowIndex!==o.rowValuesLength-1?(0,r.__assign)((0,r.__assign)({},n),{label:null,title:null}):n},t.prototype.getYAxisOption=function(e,t,n,o){return 0!==o.columnIndex?(0,r.__assign)((0,r.__assign)({},n),{title:null,label:null}):n},t.prototype.renderTitle=function(){var e=this;(0,o.each)(this.facets,(function(t,n){var r=t.columnIndex,l=t.rowIndex,c=t.columnValuesLength,s=(t.rowValuesLength,t.columnValue),u=t.rowValue,d=t.view;if(0===l){var f=(0,o.get)(e.cfg.columnTitle,"formatter"),p=(0,o.deepMix)({position:["50%","0%"],content:f?f(s):s},(0,a.getFactTitleConfig)(i.DIRECTION.TOP),e.cfg.columnTitle);d.annotation().text(p)}r===c-1&&(f=(0,o.get)(e.cfg.rowTitle,"formatter"),p=(0,o.deepMix)({position:["100%","50%"],content:f?f(u):u},(0,a.getFactTitleConfig)(i.DIRECTION.RIGHT),e.cfg.rowTitle),d.annotation().text(p))}))},t}(n(104).Facet);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(0),i=n(21),a=n(115),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.__extends)(t,e),t.prototype.getDefaultCfg=function(){return(0,o.deepMix)({},e.prototype.getDefaultCfg.call(this),{type:"mirror",showTitle:!0,title:e.prototype.getDefaultTitleCfg.call(this),transpose:!1})},t.prototype.render=function(){e.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},t.prototype.beforeEachView=function(e,t){this.cfg.transpose?t.columnIndex%2===0?e.coordinate().transpose().reflect("x"):e.coordinate().transpose():t.rowIndex%2!==0&&e.coordinate().reflect("y")},t.prototype.afterEachView=function(e,t){this.processAxis(e,t)},t.prototype.generateFacets=function(e){var t,n,r=this,i=this.cfg.fields[0],a=[],l=1,c=1,s=[""],u=[""];return this.cfg.transpose?(t=i,s=this.getFieldValues(e,t).slice(0,2),l=s.length):(n=i,u=this.getFieldValues(e,n).slice(0,2),c=u.length),s.forEach((function(i,d){u.forEach((function(f,p){var h=[{field:t,value:i,values:s},{field:n,value:f,values:u}],g=(0,o.filter)(e,r.getFacetDataFilter(h)),v={type:r.cfg.type,data:g,region:r.getRegion(c,l,d,p),columnValue:i,rowValue:f,columnField:t,rowField:n,columnIndex:d,rowIndex:p,columnValuesLength:l,rowValuesLength:c};a.push(v)}))})),a},t.prototype.getXAxisOption=function(e,t,n,o){return 1===o.columnIndex||1===o.rowIndex?(0,r.__assign)((0,r.__assign)({},n),{label:null,title:null}):n},t.prototype.getYAxisOption=function(e,t,n,r){return n},t.prototype.renderTitle=function(){var e=this;(0,o.each)(this.facets,(function(t,n){var r=t.columnValue,l=t.rowValue,c=t.view,s=(0,o.get)(e.cfg.title,"formatter");if(e.cfg.transpose){var u=(0,o.deepMix)({position:["50%","0%"],content:s?s(r):r},(0,a.getFactTitleConfig)(i.DIRECTION.TOP),e.cfg.title);c.annotation().text(u)}else u=(0,o.deepMix)({position:["100%","50%"],content:s?s(l):l},(0,a.getFactTitleConfig)(i.DIRECTION.RIGHT),e.cfg.title),c.annotation().text(u)}))},t}(n(104).Facet);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(0),i=n(21),a=n(115),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.__extends)(t,e),t.prototype.afterEachView=function(e,t){this.processAxis(e,t)},t.prototype.beforeEachView=function(e,t){},t.prototype.getDefaultCfg=function(){return(0,o.deepMix)({},e.prototype.getDefaultCfg.call(this),{type:"rect",columnTitle:(0,r.__assign)({},e.prototype.getDefaultTitleCfg.call(this)),rowTitle:(0,r.__assign)({},e.prototype.getDefaultTitleCfg.call(this))})},t.prototype.render=function(){e.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},t.prototype.generateFacets=function(e){var t=this,n=this.cfg.fields,r=n[0],i=n[1],a=[],l=1,c=1,s=[""],u=[""];return r&&(s=this.getFieldValues(e,r),l=s.length),i&&(u=this.getFieldValues(e,i),c=u.length),s.forEach((function(n,d){u.forEach((function(f,p){var h=[{field:r,value:n,values:s},{field:i,value:f,values:u}],g=(0,o.filter)(e,t.getFacetDataFilter(h)),v={type:t.cfg.type,data:g,region:t.getRegion(c,l,d,p),columnValue:n,rowValue:f,columnField:r,rowField:i,columnIndex:d,rowIndex:p,columnValuesLength:l,rowValuesLength:c};a.push(v)}))})),a},t.prototype.renderTitle=function(){var e=this;(0,o.each)(this.facets,(function(t,n){var r=t.columnIndex,l=t.rowIndex,c=t.columnValuesLength,s=t.columnValue,u=t.rowValue,d=t.view;if(0===l){var f=(0,o.get)(e.cfg.columnTitle,"formatter"),p=(0,o.deepMix)({position:["50%","0%"],content:f?f(s):s},(0,a.getFactTitleConfig)(i.DIRECTION.TOP),e.cfg.columnTitle);d.annotation().text(p)}r===c-1&&(f=(0,o.get)(e.cfg.rowTitle,"formatter"),p=(0,o.deepMix)({position:["100%","50%"],content:f?f(u):u},(0,a.getFactTitleConfig)(i.DIRECTION.RIGHT),e.cfg.rowTitle),d.annotation().text(p))}))},t.prototype.getXAxisOption=function(e,t,n,o){return o.rowIndex!==o.rowValuesLength-1?(0,r.__assign)((0,r.__assign)({},n),{title:null,label:null}):o.columnIndex!==Math.floor((o.columnValuesLength-1)/2)?(0,r.__assign)((0,r.__assign)({},n),{title:null}):n},t.prototype.getYAxisOption=function(e,t,n,o){return 0!==o.columnIndex?(0,r.__assign)((0,r.__assign)({},n),{title:null,label:null}):o.rowIndex!==Math.floor((o.rowValuesLength-1)/2)?(0,r.__assign)((0,r.__assign)({},n),{title:null}):n},t}(n(104).Facet);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(0),i=n(21),a=n(115),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.afterChartRender=function(){t.facets&&t.cfg.line&&(t.container.clear(),t.drawLines(t.facets))},t}return(0,r.__extends)(t,e),t.prototype.afterEachView=function(e,t){this.processAxis(e,t)},t.prototype.beforeEachView=function(e,t){},t.prototype.init=function(){e.prototype.init.call(this),this.view.on(i.VIEW_LIFE_CIRCLE.AFTER_RENDER,this.afterChartRender)},t.prototype.getDefaultCfg=function(){return(0,o.deepMix)({},e.prototype.getDefaultCfg.call(this),{type:"tree",line:{style:{lineWidth:1,stroke:"#ddd"},smooth:!1},showTitle:!0,title:e.prototype.getDefaultTitleCfg.call(this)})},t.prototype.generateFacets=function(e){if(!this.cfg.fields.length)throw new Error("Please specify for the fields for rootFacet!");var t=[],n={type:this.cfg.type,data:e,region:null,rowValuesLength:this.getRows(),columnValuesLength:1,rowIndex:0,columnIndex:0,rowField:"",columnField:"",rowValue:"",columnValue:""};return t.push(n),n.children=this.getChildFacets(e,1,t),this.setRegion(t),t},t.prototype.setRegion=function(e){var t=this;this.forceColIndex(e),e.forEach((function(e){e.region=t.getRegion(e.rowValuesLength,e.columnValuesLength,e.columnIndex,e.rowIndex)}))},t.prototype.getRegion=function(e,t,n,r){var o=1/t,i=1/e,a={x:o*n,y:i*r};return{start:a,end:{x:a.x+o,y:a.y+2*i/3}}},t.prototype.forceColIndex=function(e){var t=this,n=[],r=0;e.forEach((function(e){t.isLeaf(e)&&(n.push(e),e.columnIndex=r,r++)})),n.forEach((function(e){e.columnValuesLength=n.length}));for(var o=this.cfg.fields.length-1;o>=0;o--)for(var i=0,a=this.getFacetsByLevel(e,o);i<a.length;i++){var l=a[i];this.isLeaf(l)||(l.originColIndex=l.columnIndex,l.columnIndex=this.getRegionIndex(l.children),l.columnValuesLength=n.length)}},t.prototype.getFacetsByLevel=function(e,t){var n=[];return e.forEach((function(e){e.rowIndex===t&&n.push(e)})),n},t.prototype.getRegionIndex=function(e){var t=e[0];return(e[e.length-1].columnIndex-t.columnIndex)/2+t.columnIndex},t.prototype.isLeaf=function(e){return!e.children||!e.children.length},t.prototype.getRows=function(){return this.cfg.fields.length+1},t.prototype.getChildFacets=function(e,t,n){var r=this,o=this.cfg.fields;if(!(o.length<t)){var i=[],a=o[t-1],l=this.getFieldValues(e,a);return l.forEach((function(o,c){var s=[{field:a,value:o,values:l}],u=e.filter(r.getFacetDataFilter(s));if(u.length){var d={type:r.cfg.type,data:u,region:null,columnValue:o,rowValue:"",columnField:a,rowField:"",columnIndex:c,rowValuesLength:r.getRows(),columnValuesLength:1,rowIndex:t,children:r.getChildFacets(u,t+1,n)};i.push(d),n.push(d)}})),i}},t.prototype.render=function(){e.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},t.prototype.renderTitle=function(){var e=this;(0,o.each)(this.facets,(function(t){var n=t.columnValue,r=t.view,l=(0,o.get)(e.cfg.title,"formatter"),c=(0,o.deepMix)({position:["50%","0%"],content:l?l(n):n},(0,a.getFactTitleConfig)(i.DIRECTION.TOP),e.cfg.title);r.annotation().text(c)}))},t.prototype.drawLines=function(e){var t=this;e.forEach((function(e){if(!t.isLeaf(e)){var n=e.children;t.addFacetLines(e,n)}}))},t.prototype.addFacetLines=function(e,t){var n=this,r=e.view.coordinateBBox,o={x:r.x+r.width/2,y:r.y+r.height};t.forEach((function(e){var t=e.view.coordinateBBox,r={x:t.bl.x+(t.tr.x-t.bl.x)/2,y:t.tr.y},i={x:o.x,y:o.y+(r.y-o.y)/2},a={x:r.x,y:i.y};n.drawLine([o,i,a,r])}))},t.prototype.getPath=function(e){var t=[];return this.cfg.line.smooth?(t.push(["M",e[0].x,e[0].y]),t.push(["C",e[1].x,e[1].y,e[2].x,e[2].y,e[3].x,e[3].y])):e.forEach((function(e,n){0===n?t.push(["M",e.x,e.y]):t.push(["L",e.x,e.y])})),t},t.prototype.drawLine=function(e){var t=this.getPath(e),n=this.cfg.line.style;this.container.addShape("path",{attrs:(0,o.assign)({path:t},n)})},t.prototype.getXAxisOption=function(e,t,n,o){return o.rowIndex!==o.rowValuesLength-1?(0,r.__assign)((0,r.__assign)({},n),{title:null,label:null}):n},t.prototype.getYAxisOption=function(e,t,n,o){return 0!==o.originColIndex&&0!==o.columnIndex?(0,r.__assign)((0,r.__assign)({},n),{title:null,label:null}):n},t}(n(104).Facet);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(0),i=n(21),a=n(69),l=n(96),c=n(264),s=n(264),u=n(1017),d=n(70),f=n(103),p=["container"],h=(0,r.__assign)((0,r.__assign)({},l.DEFAULT_ANIMATE_CFG),{appear:null}),g=function(e){function t(t){var n=e.call(this,t)||this;return n.cache=new Map,n.gridContainer=n.view.getLayer(i.LAYER.BG).addGroup(),n.gridForeContainer=n.view.getLayer(i.LAYER.FORE).addGroup(),n.axisContainer=n.view.getLayer(i.LAYER.BG).addGroup(),n.axisForeContainer=n.view.getLayer(i.LAYER.FORE).addGroup(),n}return(0,r.__extends)(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return"axis"},enumerable:!1,configurable:!0}),t.prototype.init=function(){},t.prototype.render=function(){this.update()},t.prototype.layout=function(){var e=this,t=this.view.getCoordinate();(0,o.each)(this.getComponents(),(function(n){var r,o=n.component,a=n.direction,l=n.type,s=n.extra,d=s.dim,f=s.scale,p=s.alignTick;l===i.COMPONENT_TYPE.AXIS?t.isPolar?"x"===d?r=t.isTransposed?(0,c.getAxisRegion)(t,a):(0,c.getCircleAxisCenterRadius)(t):"y"===d&&(r=t.isTransposed?(0,c.getCircleAxisCenterRadius)(t):(0,c.getAxisRegion)(t,a)):r=(0,c.getAxisRegion)(t,a):l===i.COMPONENT_TYPE.GRID&&(r=t.isPolar?{items:t.isTransposed?"x"===d?(0,u.getCircleGridItems)(t,e.view.getYScales()[0],f,p,d):(0,u.getLineGridItems)(t,f,d,p):"x"===d?(0,u.getLineGridItems)(t,f,d,p):(0,u.getCircleGridItems)(t,e.view.getXScale(),f,p,d),center:e.view.getCoordinate().getCenter()}:{items:(0,u.getLineGridItems)(t,f,d,p)}),o.update(r)}))},t.prototype.update=function(){this.option=this.view.getOptions().axes;var e=new Map;this.updateXAxes(e),this.updateYAxes(e);var t=new Map;this.cache.forEach((function(n,r){e.has(r)?t.set(r,n):n.component.destroy()})),this.cache=t},t.prototype.clear=function(){e.prototype.clear.call(this),this.cache.clear(),this.gridContainer.clear(),this.gridForeContainer.clear(),this.axisContainer.clear(),this.axisForeContainer.clear()},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.gridContainer.remove(!0),this.gridForeContainer.remove(!0),this.axisContainer.remove(!0),this.axisForeContainer.remove(!0)},t.prototype.getComponents=function(){var e=[];return this.cache.forEach((function(t){e.push(t)})),e},t.prototype.updateXAxes=function(e){var t=this.view.getXScale();if(t&&!t.isIdentity){var n=(0,s.getAxisOption)(this.option,t.field);if(!1!==n){var r=(0,c.getAxisDirection)(n,i.DIRECTION.BOTTOM),a=i.LAYER.BG,l="x",u=this.view.getCoordinate(),f=this.getId("axis",t.field),h=this.getId("grid",t.field);if(u.isRect){if(v=this.cache.get(f)){var g=this.getLineAxisCfg(t,n,r);(0,d.omit)(g,p),v.component.update(g),e.set(f,v)}else v=this.createLineAxis(t,n,a,r,l),this.cache.set(f,v),e.set(f,v);(m=this.cache.get(h))?(g=this.getLineGridCfg(t,n,r,l),(0,d.omit)(g,p),m.component.update(g),e.set(h,m)):(m=this.createLineGrid(t,n,a,r,l))&&(this.cache.set(h,m),e.set(h,m))}else if(u.isPolar){var v,m;if(v=this.cache.get(f))g=u.isTransposed?this.getLineAxisCfg(t,n,i.DIRECTION.RADIUS):this.getCircleAxisCfg(t,n,r),(0,d.omit)(g,p),v.component.update(g),e.set(f,v);else{if(u.isTransposed){if((0,o.isUndefined)(n))return;v=this.createLineAxis(t,n,a,i.DIRECTION.RADIUS,l)}else v=this.createCircleAxis(t,n,a,r,l);this.cache.set(f,v),e.set(f,v)}if(m=this.cache.get(h))g=u.isTransposed?this.getCircleGridCfg(t,n,i.DIRECTION.RADIUS,l):this.getLineGridCfg(t,n,i.DIRECTION.CIRCLE,l),(0,d.omit)(g,p),m.component.update(g),e.set(h,m);else{if(u.isTransposed){if((0,o.isUndefined)(n))return;m=this.createCircleGrid(t,n,a,i.DIRECTION.RADIUS,l)}else m=this.createLineGrid(t,n,a,i.DIRECTION.CIRCLE,l);m&&(this.cache.set(h,m),e.set(h,m))}}}}},t.prototype.updateYAxes=function(e){var t=this,n=this.view.getYScales();(0,o.each)(n,(function(n,r){if(n&&!n.isIdentity){var a=n.field,l=(0,s.getAxisOption)(t.option,a);if(!1!==l){var u=i.LAYER.BG,f="y",h=t.getId("axis",a),g=t.getId("grid",a),v=t.view.getCoordinate();if(v.isRect){var m=(0,c.getAxisDirection)(l,0===r?i.DIRECTION.LEFT:i.DIRECTION.RIGHT);if(b=t.cache.get(h)){var y=t.getLineAxisCfg(n,l,m);(0,d.omit)(y,p),b.component.update(y),e.set(h,b)}else b=t.createLineAxis(n,l,u,m,f),t.cache.set(h,b),e.set(h,b);(x=t.cache.get(g))?(y=t.getLineGridCfg(n,l,m,f),(0,d.omit)(y,p),x.component.update(y),e.set(g,x)):(x=t.createLineGrid(n,l,u,m,f))&&(t.cache.set(g,x),e.set(g,x))}else if(v.isPolar){var b,x;if(b=t.cache.get(h))y=v.isTransposed?t.getCircleAxisCfg(n,l,i.DIRECTION.CIRCLE):t.getLineAxisCfg(n,l,i.DIRECTION.RADIUS),(0,d.omit)(y,p),b.component.update(y),e.set(h,b);else{if(v.isTransposed){if((0,o.isUndefined)(l))return;b=t.createCircleAxis(n,l,u,i.DIRECTION.CIRCLE,f)}else b=t.createLineAxis(n,l,u,i.DIRECTION.RADIUS,f);t.cache.set(h,b),e.set(h,b)}if(x=t.cache.get(g))y=v.isTransposed?t.getLineGridCfg(n,l,i.DIRECTION.CIRCLE,f):t.getCircleGridCfg(n,l,i.DIRECTION.RADIUS,f),(0,d.omit)(y,p),x.component.update(y),e.set(g,x);else{if(v.isTransposed){if((0,o.isUndefined)(l))return;x=t.createLineGrid(n,l,u,i.DIRECTION.CIRCLE,f)}else x=t.createCircleGrid(n,l,u,i.DIRECTION.RADIUS,f);x&&(t.cache.set(g,x),e.set(g,x))}}}}}))},t.prototype.createLineAxis=function(e,t,n,r,o){var l={component:new a.LineAxis(this.getLineAxisCfg(e,t,r)),layer:n,direction:r===i.DIRECTION.RADIUS?i.DIRECTION.NONE:r,type:i.COMPONENT_TYPE.AXIS,extra:{dim:o,scale:e}};return l.component.set("field",e.field),l.component.init(),l},t.prototype.createLineGrid=function(e,t,n,r,l){var c=this.getLineGridCfg(e,t,r,l);if(c){var s={component:new a.LineGrid(c),layer:n,direction:i.DIRECTION.NONE,type:i.COMPONENT_TYPE.GRID,extra:{dim:l,scale:e,alignTick:(0,o.get)(c,"alignTick",!0)}};return s.component.init(),s}},t.prototype.createCircleAxis=function(e,t,n,r,o){var l={component:new a.CircleAxis(this.getCircleAxisCfg(e,t,r)),layer:n,direction:r,type:i.COMPONENT_TYPE.AXIS,extra:{dim:o,scale:e}};return l.component.set("field",e.field),l.component.init(),l},t.prototype.createCircleGrid=function(e,t,n,r,l){var c=this.getCircleGridCfg(e,t,r,l);if(c){var s={component:new a.CircleGrid(c),layer:n,direction:i.DIRECTION.NONE,type:i.COMPONENT_TYPE.GRID,extra:{dim:l,scale:e,alignTick:(0,o.get)(c,"alignTick",!0)}};return s.component.init(),s}},t.prototype.getLineAxisCfg=function(e,t,n){var i=(0,o.get)(t,["top"])?this.axisForeContainer:this.axisContainer,a=this.view.getCoordinate(),l=(0,c.getAxisRegion)(a,n),s=(0,c.getAxisTitleText)(e,t),u=(0,c.getAxisThemeCfg)(this.view.getTheme(),n),d=(0,o.get)(t,["title"])?(0,o.deepMix)({title:{style:{text:s}}},{title:(0,c.getAxisTitleOptions)(this.view.getTheme(),n,t.title)},t):t,f=(0,o.deepMix)((0,r.__assign)((0,r.__assign)({container:i},l),{ticks:e.getTicks().map((function(e){return{id:""+e.tickValue,name:e.text,value:e.value}})),verticalFactor:a.isPolar?-1*(0,c.getAxisFactorByRegion)(l,a.getCenter()):(0,c.getAxisFactorByRegion)(l,a.getCenter()),theme:u}),u,d),p=this.getAnimateCfg(f),h=p.animate,g=p.animateOption;f.animateOption=g,f.animate=h;var v=(0,c.isVertical)(l),m=(0,o.get)(f,"verticalLimitLength",v?1/3:.5);if(m<=1){var y=this.view.getCanvas().get("width"),b=this.view.getCanvas().get("height");f.verticalLimitLength=m*(v?y:b)}return f},t.prototype.getLineGridCfg=function(e,t,n,r){if((0,u.showGrid)((0,c.getAxisThemeCfg)(this.view.getTheme(),n),t)){var i=(0,u.getGridThemeCfg)(this.view.getTheme(),n),a=(0,o.deepMix)({container:(0,o.get)(t,["top"])?this.gridForeContainer:this.gridContainer},i,(0,o.get)(t,"grid"),this.getAnimateCfg(t));return a.items=(0,u.getLineGridItems)(this.view.getCoordinate(),e,r,(0,o.get)(a,"alignTick",!0)),a}},t.prototype.getCircleAxisCfg=function(e,t,n){var a=(0,o.get)(t,["top"])?this.axisForeContainer:this.axisContainer,l=this.view.getCoordinate(),s=e.getTicks().map((function(e){return{id:""+e.tickValue,name:e.text,value:e.value}}));e.isCategory||Math.abs(l.endAngle-l.startAngle)!==2*Math.PI||s.pop();var u=(0,c.getAxisTitleText)(e,t),d=(0,c.getAxisThemeCfg)(this.view.getTheme(),i.DIRECTION.CIRCLE),f=(0,o.get)(t,["title"])?(0,o.deepMix)({title:{style:{text:u}}},{title:(0,c.getAxisTitleOptions)(this.view.getTheme(),n,t.title)},t):t,p=(0,o.deepMix)((0,r.__assign)((0,r.__assign)({container:a},(0,c.getCircleAxisCenterRadius)(this.view.getCoordinate())),{ticks:s,verticalFactor:1,theme:d}),d,f),h=this.getAnimateCfg(p),g=h.animate,v=h.animateOption;return p.animate=g,p.animateOption=v,p},t.prototype.getCircleGridCfg=function(e,t,n,r){if((0,u.showGrid)((0,c.getAxisThemeCfg)(this.view.getTheme(),n),t)){var a=(0,u.getGridThemeCfg)(this.view.getTheme(),i.DIRECTION.RADIUS),l=(0,o.deepMix)({container:(0,o.get)(t,["top"])?this.gridForeContainer:this.gridContainer,center:this.view.getCoordinate().getCenter()},a,(0,o.get)(t,"grid"),this.getAnimateCfg(t)),s=(0,o.get)(l,"alignTick",!0),d="x"===r?this.view.getYScales()[0]:this.view.getXScale();return l.items=(0,u.getCircleGridItems)(this.view.getCoordinate(),d,e,s,r),l}},t.prototype.getId=function(e,t){return e+"-"+t+"-"+this.view.getCoordinate().type},t.prototype.getAnimateCfg=function(e){return{animate:this.view.getOptions().animate&&(0,o.get)(e,"animate"),animateOption:e&&e.animateOption?(0,o.deepMix)({},h,e.animateOption):h}},t}(f.Controller);t.default=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(0),i=n(21),a=n(69),l=n(96),c=n(80),s=n(281),u=n(70),d=n(455),f=n(110);function p(e,t){return(0,o.isBoolean)(e)?!1!==e&&{}:(0,o.get)(e,[t],e)}function h(e){return(0,o.get)(e,"position",i.DIRECTION.BOTTOM)}var g=function(e){function t(t){var n=e.call(this,t)||this;return n.container=n.view.getLayer(i.LAYER.FORE).addGroup(),n}return(0,r.__extends)(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return"legend"},enumerable:!1,configurable:!0}),t.prototype.init=function(){},t.prototype.render=function(){this.update()},t.prototype.layout=function(){var e=this;this.layoutBBox=this.view.viewBBox,(0,o.each)(this.components,(function(t){var n=t.component,r=t.direction,o=(0,d.getLegendLayout)(r),i=n.get("maxWidthRatio"),a=n.get("maxHeightRatio"),l=e.getCategoryLegendSizeCfg(o,i,a),u=n.get("maxWidth"),f=n.get("maxHeight");n.update({maxWidth:Math.min(l.maxWidth,u||0),maxHeight:Math.min(l.maxHeight,f||0)});var p=n.get("padding"),h=n.getLayoutBBox(),g=new c.BBox(h.x,h.y,h.width,h.height).expand(p),v=(0,s.directionToPosition)(e.view.viewBBox,g,r),m=v[0],y=v[1],b=(0,s.directionToPosition)(e.layoutBBox,g,r),x=b[0],w=b[1],S=0,O=0;r.startsWith("top")||r.startsWith("bottom")?(S=m,O=w):(S=x,O=y),n.setLocation({x:S+p[3],y:O+p[0]}),e.layoutBBox=e.layoutBBox.cut(g,r)}))},t.prototype.update=function(){var e=this;this.option=this.view.getOptions().legends;var t={};if((0,o.get)(this.option,"custom")){var n="global-custom",r=this.getComponentById(n);if(r){var a=this.getCategoryCfg(void 0,void 0,void 0,this.option,!0);(0,u.omit)(a,["container"]),r.component.update(a),t[n]=!0}else{var l=this.createCustomLegend(void 0,void 0,void 0,this.option);if(l){l.init();var c=i.LAYER.FORE,s=h(this.option);this.components.push({id:n,component:l,layer:c,direction:s,type:i.COMPONENT_TYPE.LEGEND,extra:void 0}),t[n]=!0}}}else this.loopLegends((function(n,r,i){var a=e.getId(i.field),l=e.getComponentById(a);if(l){var c=void 0,s=p(e.option,i.field);!1!==s&&((0,o.get)(s,"custom")?c=e.getCategoryCfg(n,r,i,s,!0):i.isLinear?c=e.getContinuousCfg(n,r,i,s):i.isCategory&&(c=e.getCategoryCfg(n,r,i,s))),c&&((0,u.omit)(c,["container"]),l.direction=h(s),l.component.update(c),t[a]=!0)}else{var d=e.createFieldLegend(n,r,i);d&&(d.component.init(),e.components.push(d),t[a]=!0)}}));var d=[];(0,o.each)(this.getComponents(),(function(e){t[e.id]?d.push(e):e.component.destroy()})),this.components=d},t.prototype.clear=function(){e.prototype.clear.call(this),this.container.clear()},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.container.remove(!0)},t.prototype.getGeometries=function(e){var t=this,n=e.geometries;return(0,o.each)(e.views,(function(e){n=n.concat(t.getGeometries(e))})),n},t.prototype.loopLegends=function(e){if(this.view.getRootView()===this.view){var t=this.getGeometries(this.view),n={};(0,o.each)(t,(function(t){var r=t.getGroupAttributes();(0,o.each)(r,(function(r){var o=r.getScale(r.type);o&&"identity"!==o.type&&!n[o.field]&&(e(t,r,o),n[o.field]=!0)}))}))}},t.prototype.createFieldLegend=function(e,t,n){var r,a=p(this.option,n.field),l=i.LAYER.FORE,c=h(a);if(!1!==a&&((0,o.get)(a,"custom")?r=this.createCustomLegend(e,t,n,a):n.isLinear?r=this.createContinuousLegend(e,t,n,a):n.isCategory&&(r=this.createCategoryLegend(e,t,n,a))),r)return r.set("field",n.field),{id:this.getId(n.field),component:r,layer:l,direction:c,type:i.COMPONENT_TYPE.LEGEND,extra:{scale:n}}},t.prototype.createCustomLegend=function(e,t,n,r){var o=this.getCategoryCfg(e,t,n,r,!0);return new a.CategoryLegend(o)},t.prototype.createContinuousLegend=function(e,t,n,r){var o=this.getContinuousCfg(e,t,n,(0,u.omit)(r,["value"]));return new a.ContinuousLegend(o)},t.prototype.createCategoryLegend=function(e,t,n,r){var o=this.getCategoryCfg(e,t,n,r);return new a.CategoryLegend(o)},t.prototype.getContinuousCfg=function(e,t,n,r){var i=n.getTicks(),a=(0,o.find)(i,(function(e){return 0===e.value})),c=(0,o.find)(i,(function(e){return 1===e.value})),s=i.map((function(e){var r=e.value,o=e.tickValue,i=t.mapping(n.invert(r)).join("");return{value:o,attrValue:i,color:i,scaleValue:r}}));a||s.push({value:n.min,attrValue:t.mapping(n.invert(0)).join(""),color:t.mapping(n.invert(0)).join(""),scaleValue:0}),c||s.push({value:n.max,attrValue:t.mapping(n.invert(1)).join(""),color:t.mapping(n.invert(1)).join(""),scaleValue:1}),s.sort((function(e,t){return e.value-t.value}));var u={min:(0,o.head)(s).value,max:(0,o.last)(s).value,colors:[],rail:{type:t.type},track:{}};"size"===t.type&&(u.track={style:{fill:"size"===t.type?this.view.getTheme().defaultColor:void 0}}),"color"===t.type&&(u.colors=s.map((function(e){return e.attrValue})));var p=this.container,g=h(r),v=(0,d.getLegendLayout)(g),m=(0,o.get)(r,"title");return m&&(m=(0,o.deepMix)({text:(0,f.getName)(n)},m)),u.container=p,u.layout=v,u.title=m,u.animateOption=l.DEFAULT_ANIMATE_CFG,this.mergeLegendCfg(u,r,"continuous")},t.prototype.getCategoryCfg=function(e,t,n,r,a){var c=this.container,s=(0,o.get)(r,"position",i.DIRECTION.BOTTOM),u=(0,d.getLegendThemeCfg)(this.view.getTheme(),s),p=(0,o.get)(u,["marker"]),h=(0,o.get)(r,"marker"),g=(0,d.getLegendLayout)(s),v=(0,o.get)(u,["pageNavigator"]),m=(0,o.get)(r,"pageNavigator"),y=a?(0,d.getCustomLegendItems)(p,h,r.items):(0,d.getLegendItems)(this.view,e,t,p,h),b=(0,o.get)(r,"title");b&&(b=(0,o.deepMix)({text:n?(0,f.getName)(n):""},b));var x=(0,o.get)(r,"maxWidthRatio"),w=(0,o.get)(r,"maxHeightRatio"),S=this.getCategoryLegendSizeCfg(g,x,w);S.container=c,S.layout=g,S.items=y,S.title=b,S.animateOption=l.DEFAULT_ANIMATE_CFG,S.pageNavigator=(0,o.deepMix)({},v,m);var O=this.mergeLegendCfg(S,r,s);O.reversed&&O.items.reverse();var _=(0,o.get)(O,"maxItemWidth");return _&&_<=1&&(O.maxItemWidth=this.view.viewBBox.width*_),O},t.prototype.mergeLegendCfg=function(e,t,n){var r=n.split("-")[0],i=(0,d.getLegendThemeCfg)(this.view.getTheme(),r);return(0,o.deepMix)({},i,e,t)},t.prototype.getId=function(e){return this.name+"-"+e},t.prototype.getComponentById=function(e){return(0,o.find)(this.components,(function(t){return t.id===e}))},t.prototype.getCategoryLegendSizeCfg=function(e,t,n){void 0===t&&(t=i.COMPONENT_MAX_VIEW_PERCENTAGE),void 0===n&&(n=i.COMPONENT_MAX_VIEW_PERCENTAGE);var r=this.view.viewBBox,o=r.width,a=r.height;return"vertical"===e?{maxWidth:o*t,maxHeight:a}:{maxWidth:o,maxHeight:a*n}},t}(n(103).Controller);t.default=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(0),i=n(21),a=n(69),l=n(80),c=n(281),s=n(70),u=function(e){function t(t){var n=e.call(this,t)||this;return n.onChangeFn=o.noop,n.resetMeasure=function(){n.clear()},n.onValueChange=function(e){var t=e[0],r=e[1];n.start=t,n.end=r,n.changeViewData(t,r)},n.container=n.view.getLayer(i.LAYER.FORE).addGroup(),n.onChangeFn=(0,o.throttle)(n.onValueChange,20,{leading:!0}),n.width=0,n.view.on(i.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA,n.resetMeasure),n.view.on(i.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_SIZE,n.resetMeasure),n}return(0,r.__extends)(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return"slider"},enumerable:!1,configurable:!0}),t.prototype.destroy=function(){e.prototype.destroy.call(this),this.view.off(i.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA,this.resetMeasure),this.view.off(i.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_SIZE,this.resetMeasure)},t.prototype.init=function(){},t.prototype.render=function(){this.option=this.view.getOptions().slider;var e=this.getSliderCfg(),t=e.start,n=e.end;(0,o.isNil)(this.start)&&(this.start=t,this.end=n);var r=this.view.getOptions().data;this.option&&!(0,o.isEmpty)(r)?this.slider?this.slider=this.updateSlider():(this.slider=this.createSlider(),this.slider.component.on("sliderchange",this.onChangeFn)):this.slider&&(this.slider.component.destroy(),this.slider=void 0)},t.prototype.layout=function(){var e=this;if(this.option&&!this.width&&(this.measureSlider(),setTimeout((function(){e.view.destroyed||e.changeViewData(e.start,e.end)}),0)),this.slider){var t=this.view.coordinateBBox.width,n=this.slider.component.get("padding"),o=n[0],a=(n[1],n[2],n[3]),s=this.slider.component.getLayoutBBox(),u=new l.BBox(s.x,s.y,Math.min(s.width,t),s.height).expand(n),d=this.getMinMaxText(this.start,this.end),f=d.minText,p=d.maxText,h=(0,c.directionToPosition)(this.view.viewBBox,u,i.DIRECTION.BOTTOM),g=(h[0],h[1]),v=(0,c.directionToPosition)(this.view.coordinateBBox,u,i.DIRECTION.BOTTOM),m=v[0];v[1],this.slider.component.update((0,r.__assign)((0,r.__assign)({},this.getSliderCfg()),{x:m+a,y:g+o,width:this.width,start:this.start,end:this.end,minText:f,maxText:p})),this.view.viewBBox=this.view.viewBBox.cut(u,i.DIRECTION.BOTTOM)}},t.prototype.update=function(){this.render()},t.prototype.createSlider=function(){var e=this.getSliderCfg(),t=new a.Slider((0,r.__assign)({container:this.container},e));return t.init(),{component:t,layer:i.LAYER.FORE,direction:i.DIRECTION.BOTTOM,type:i.COMPONENT_TYPE.SLIDER}},t.prototype.updateSlider=function(){var e=this.getSliderCfg();if(this.width){var t=this.getMinMaxText(this.start,this.end),n=t.minText,o=t.maxText;e=(0,r.__assign)((0,r.__assign)({},e),{width:this.width,start:this.start,end:this.end,minText:n,maxText:o})}return this.slider.component.update(e),this.slider},t.prototype.measureSlider=function(){var e=this.getSliderCfg().width;this.width=e},t.prototype.getSliderCfg=function(){var e={height:16,start:0,end:1,minText:"",maxText:"",x:0,y:0,width:this.view.coordinateBBox.width};if((0,o.isObject)(this.option)){var t=(0,r.__assign)({data:this.getData()},(0,o.get)(this.option,"trendCfg",{}));e=(0,o.deepMix)({},e,this.getThemeOptions(),this.option),e=(0,r.__assign)((0,r.__assign)({},e),{trendCfg:t})}return e.start=(0,o.clamp)(Math.min((0,o.isNil)(e.start)?0:e.start,(0,o.isNil)(e.end)?1:e.end),0,1),e.end=(0,o.clamp)(Math.max((0,o.isNil)(e.start)?0:e.start,(0,o.isNil)(e.end)?1:e.end),0,1),e},t.prototype.getData=function(){var e=this.view.getOptions().data,t=this.view.getYScales()[0],n=this.view.getGroupScales();if(n.length){var r=n[0],o=r.field,i=r.ticks;return e.reduce((function(e,n){return n[o]===i[0]&&e.push(n[t.field]),e}),[])}return e.map((function(e){return e[t.field]||0}))},t.prototype.getThemeOptions=function(){var e=this.view.getTheme();return(0,o.get)(e,["components","slider","common"],{})},t.prototype.getMinMaxText=function(e,t){var n=this.view.getOptions().data,r=this.view.getXScale(),i=(0,o.valuesOfKey)(n,r.field),a=i,l=(0,o.size)(n);if(!r||!l)return{};var c=(0,o.size)(a),s=Math.floor(e*(c-1)),u=Math.floor(t*(c-1)),d=(0,o.get)(a,[s]),f=(0,o.get)(a,[u]),p=this.getSliderCfg().formatter;return p&&(d=p(d,n[s],s),f=p(f,n[u],u)),{minText:d,maxText:f}},t.prototype.changeViewData=function(e,t){var n=this.view.getOptions().data,r=this.view.getXScale(),i=(0,o.size)(n);if(r&&i){var a=(0,o.valuesOfKey)(n,r.field),l=a,c=(0,o.size)(l),u=Math.floor(e*(c-1)),d=Math.floor(t*(c-1));this.view.filter(r.field,(function(e,t){var n=l.indexOf(e);return!(n>-1)||(0,s.isBetween)(n,u,d)})),this.view.render(!0)}},t.prototype.getComponents=function(){return this.slider?[this.slider]:[]},t.prototype.clear=function(){this.slider&&(this.slider.component.destroy(),this.slider=void 0),this.width=0,this.start=void 0,this.end=void 0},t}(n(103).Controller);t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getItemsOfView=void 0;var r=n(1),o=n(0),i=n(187),a=n(46),l=(0,r.__importDefault)(n(44)),c={fill:"#CCD6EC",opacity:.3};function s(e,t,n){var r=(0,i.findItemsFromViewRecurisive)(e,t,n);if(r.length){for(var a=0,l=r=(0,o.flatten)(r);a<l.length;a++)for(var c=0,s=l[a];c<s.length;c++){var u=s[c],d=u.mappingData,f=d.x,p=d.y;u.x=(0,o.isArray)(f)?f[f.length-1]:f,u.y=(0,o.isArray)(p)?p[p.length-1]:p}if(!1===n.shared&&r.length>1){for(var h=r[0],g=Math.abs(t.y-h[0].y),v=0,m=r;v<m.length;v++){var y=m[v],b=Math.abs(t.y-y[0].y);b<=g&&(h=y,g=b)}r=[h]}return(0,o.uniq)((0,o.flatten)(r))}return[]}t.getItemsOfView=s;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.__extends)(t,e),t.prototype.show=function(e){var t=this.context.view,n=this.context.event,i=t.getController("tooltip").getTooltipCfg(),l=s(t,{x:n.x,y:n.y},i);if(!(0,o.isEqual)(l,this.items)&&(this.items=l,l.length)){var u=t.getXScale().field,d=l[0].data[u],f=[],p=t.geometries;if((0,o.each)(p,(function(e){if("interval"===e.type||"schema"===e.type){var t=e.getElementsBy((function(e){return e.getData()[u]===d}));f=f.concat(t)}})),f.length){var h=t.getCoordinate(),g=f[0].shape.getCanvasBBox(),v=f[0].shape.getCanvasBBox(),m=g;(0,o.each)(f,(function(e){var t=e.shape.getCanvasBBox();h.isTransposed?(t.minY<g.minY&&(g=t),t.maxY>v.maxY&&(v=t)):(t.minX<g.minX&&(g=t),t.maxX>v.maxX&&(v=t)),m.x=Math.min(t.minX,m.minX),m.y=Math.min(t.minY,m.minY),m.width=Math.max(t.maxX,m.maxX)-m.x,m.height=Math.max(t.maxY,m.maxY)-m.y}));var y=t.backgroundGroup,b=t.coordinateBBox,x=void 0;if(h.isRect){var w=t.getXScale(),S=e||{},O=S.appendRatio,_=S.appendWidth;(0,o.isNil)(_)&&(O=(0,o.isNil)(O)?w.isLinear?0:.25:O,_=h.isTransposed?O*v.height:O*g.width);var C=void 0,E=void 0,P=void 0,M=void 0;h.isTransposed?(C=b.minX,E=Math.min(v.minY,g.minY)-_,P=b.width,M=m.height+2*_):(C=Math.min(g.minX,v.minX)-_,E=b.minY,P=m.width+2*_,M=b.height),x=[["M",C,E],["L",C+P,E],["L",C+P,E+M],["L",C,E+M],["Z"]]}else{var k=(0,o.head)(f),A=(0,o.last)(f),I=(0,a.getAngle)(k.getModel(),h).startAngle,T=(0,a.getAngle)(A.getModel(),h).endAngle,j=h.getCenter(),L=h.getRadius(),R=h.innerRadius*L;x=(0,a.getSectorPath)(j.x,j.y,L,I,T,R)}if(this.regionPath)this.regionPath.attr("path",x),this.regionPath.show();else{var D=(0,o.get)(e,"style",c);this.regionPath=y.addShape({type:"path",name:"active-region",capture:!1,attrs:(0,r.__assign)((0,r.__assign)({},D),{path:x})})}}}},t.prototype.hide=function(){this.regionPath&&this.regionPath.hide(),this.items=null},t.prototype.destroy=function(){this.hide(),this.regionPath&&this.regionPath.remove(!0),e.prototype.destroy.call(this)},t}(l.default);t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(0),i=n(31),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.__extends)(t,e),t.prototype.showTooltip=function(e,t){var n=(0,i.getSilbings)(e);(0,o.each)(n,(function(n){var r=(0,i.getSiblingPoint)(e,n,t);n.showTooltip(r)}))},t.prototype.hideTooltip=function(e){var t=(0,i.getSilbings)(e);(0,o.each)(t,(function(e){e.hideTooltip()}))},t}((0,r.__importDefault)(n(126)).default);t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(0),i=n(180),a=(0,r.__importDefault)(n(44)),l=n(69),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.timeStamp=0,t}return(0,r.__extends)(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this),this.tooltip&&this.tooltip.destroy()},t.prototype.show=function(){var e=this.context.event,t=this.timeStamp,n=+new Date;if(n-t>16){var r=this.location,i={x:e.x,y:e.y};r&&(0,o.isEqual)(r,i)||this.showTooltip(i),this.timeStamp=n,this.location=i}},t.prototype.hide=function(){this.hideTooltip(),this.location=null},t.prototype.showTooltip=function(e){var t=this.context.event.target;if(t&&t.get("tip")){this.tooltip||this.renderTooltip();var n=t.get("tip");this.tooltip.update((0,r.__assign)({title:n},e)),this.tooltip.show()}},t.prototype.hideTooltip=function(){this.tooltip&&this.tooltip.hide()},t.prototype.renderTooltip=function(){var e,t=this.context.view,n=t.canvas,a={start:{x:0,y:0},end:{x:n.get("width"),y:n.get("height")}},c=t.getTheme(),s=(0,o.get)(c,["components","tooltip","domStyles"],{}),u=new l.HtmlTooltip({parent:n.get("el").parentNode,region:a,visible:!1,crosshairs:null,domStyles:(0,r.__assign)({},(0,o.deepMix)({},s,(e={},e[i.TOOLTIP_CSS_CONST.CONTAINER_CLASS]={"max-width":"50%"},e[i.TOOLTIP_CSS_CONST.TITLE_CLASS]={"word-break":"break-all"},e)))});u.init(),u.setCapture(!1),this.tooltip=u},t}(a.default);t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.stateName="active",t}return(0,r.__extends)(t,e),t.prototype.active=function(){this.setState()},t}((0,r.__importDefault)(n(282)).default);t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=(0,r.__importDefault)(n(44)),i=n(31),a=n(0),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.cache={},t}return(0,r.__extends)(t,e),t.prototype.getColorScale=function(e,t){var n=t.geometry.getAttribute("color");return n?e.getScaleByField(n.getFields()[0]):null},t.prototype.getLinkPath=function(e,t){var n=this.context.view.getCoordinate().isTransposed,r=e.shape.getCanvasBBox(),o=t.shape.getCanvasBBox();return n?[["M",r.minX,r.minY],["L",o.minX,o.maxY],["L",o.maxX,o.maxY],["L",r.maxX,r.minY],["Z"]]:[["M",r.maxX,r.minY],["L",o.minX,o.minY],["L",o.minX,o.maxY],["L",r.maxX,r.maxY],["Z"]]},t.prototype.addLinkShape=function(e,t,n,o){var i={opacity:.4,fill:t.shape.attr("fill")};e.addShape({type:"path",attrs:(0,r.__assign)((0,r.__assign)({},(0,a.deepMix)({},i,(0,a.isFunction)(o)?o(i,t):o)),{path:this.getLinkPath(t,n)})})},t.prototype.linkByElement=function(e,t){var n=this,r=this.context.view,o=this.getColorScale(r,e);if(o){var l=(0,i.getElementValue)(e,o.field);if(!this.cache[l]){var c=(0,i.getElementsByField)(r,o.field,l),s=this.linkGroup.addGroup();this.cache[l]=s;var u=c.length;(0,a.each)(c,(function(e,r){if(r<u-1){var o=c[r+1];n.addLinkShape(s,e,o,t)}}))}}},t.prototype.removeLink=function(e){var t=this.getColorScale(this.context.view,e);if(t){var n=(0,i.getElementValue)(e,t.field);this.cache[n]&&(this.cache[n].remove(),this.cache[n]=null)}},t.prototype.link=function(e){var t=this.context;this.linkGroup||(this.linkGroup=t.view.foregroundGroup.addGroup({id:"link-by-color-group",capture:!1}));var n=(0,i.getCurrentElement)(t);n&&this.linkByElement(n,null===e||void 0===e?void 0:e.style)},t.prototype.unlink=function(){var e=(0,i.getCurrentElement)(this.context);e&&this.removeLink(e)},t.prototype.clear=function(){this.linkGroup&&this.linkGroup.clear(),this.cache={}},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.linkGroup&&this.linkGroup.remove()},t}(o.default);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.stateName="active",t}return(0,r.__extends)(t,e),t.prototype.active=function(){this.setState()},t}((0,r.__importDefault)(n(284)).default);t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.stateName="active",t}return(0,r.__extends)(t,e),t.prototype.active=function(){this.setState()},t}((0,r.__importDefault)(n(285)).default);t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(31),i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.__extends)(t,e),t.prototype.setStateByElement=function(e,t){var n=this.context.view,r=e.geometry.getAttribute("color");if(r){var i=n.getScaleByField(r.getFields()[0]),a=(0,o.getElementValue)(e,i.field),l=(0,o.getElements)(n),c=l.filter((function(e){return(0,o.getElementValue)(e,i.field)===a}));this.setHighlightBy(l,(function(e){return c.includes(e)}),t)}},t}((0,r.__importDefault)(n(159)).default);t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(31),i=(0,r.__importStar)(n(159)),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.__extends)(t,e),t.prototype.setElementHighlight=function(e,t){t(e)?(e.hasState(i.STATUS_UNACTIVE)&&e.setState(i.STATUS_UNACTIVE,!1),e.setState(i.STATUS_ACTIVE,!0)):(e.setState(i.STATUS_UNACTIVE,!0),e.hasState(i.STATUS_ACTIVE)&&e.setState(i.STATUS_ACTIVE,!1))},t.prototype.setStateByElement=function(e,t){var n=this.context.view,r=n.getXScale(),i=(0,o.getElementValue)(e,r.field),a=(0,o.getElements)(n),l=a.filter((function(e){return(0,o.getElementValue)(e,r.field)===i}));this.setHighlightBy(a,(function(e){return l.includes(e)}),t)},t.prototype.toggle=function(){var e=(0,o.getCurrentElement)(this.context);if(e){var t=e.hasState(this.stateName);this.setStateByElement(e,!t)}},t}(i.default);t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(31),i=n(286),a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.stateName="active",t}return(0,r.__extends)(t,e),t.prototype.highlight=function(){this.setState()},t.prototype.setElementState=function(e,t){var n=this.context.view,r=(0,o.getElements)(n);(0,i.setHighlightBy)(r,(function(t){return e===t}),t)},t.prototype.clear=function(){var e=this.context.view;(0,i.clearHighlight)(e)},t}((0,r.__importDefault)(n(285)).default);t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.stateName="selected",t}return(0,r.__extends)(t,e),t.prototype.selected=function(){this.setState()},t}((0,r.__importDefault)(n(284)).default);t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.stateName="selected",t}return(0,r.__extends)(t,e),t.prototype.selected=function(){this.setState()},t}((0,r.__importDefault)(n(282)).default);t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.stateName="selected",t}return(0,r.__extends)(t,e),t.prototype.selected=function(){this.setState()},t}((0,r.__importDefault)(n(285)).default);t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.stateName="active",t}return(0,r.__extends)(t,e),t.prototype.active=function(){this.setState()},t}((0,r.__importDefault)(n(151)).default);t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.stateName="selected",t}return(0,r.__extends)(t,e),t.prototype.selected=function(){this.setState()},t}((0,r.__importDefault)(n(151)).default);t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.stateName="unchecked",t}return(0,r.__extends)(t,e),t.prototype.unchecked=function(){this.setState()},t}((0,r.__importDefault)(n(151)).default);t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.__extends)(t,e),t.prototype.setCursor=function(e){this.context.view.getCanvas().setCursor(e)},t.prototype.default=function(){this.setCursor("default")},t.prototype.pointer=function(){this.setCursor("pointer")},t.prototype.move=function(){this.setCursor("move")},t.prototype.crosshair=function(){this.setCursor("crosshair")},t.prototype.wait=function(){this.setCursor("wait")},t.prototype.help=function(){this.setCursor("help")},t.prototype.text=function(){this.setCursor("text")},t.prototype.eResize=function(){this.setCursor("e-resize")},t.prototype.wResize=function(){this.setCursor("w-resize")},t.prototype.nResize=function(){this.setCursor("n-resize")},t.prototype.sResize=function(){this.setCursor("s-resize")},t.prototype.neResize=function(){this.setCursor("ne-resize")},t.prototype.nwResize=function(){this.setCursor("nw-resize")},t.prototype.seResize=function(){this.setCursor("se-resize")},t.prototype.swResize=function(){this.setCursor("sw-resize")},t.prototype.nsResize=function(){this.setCursor("ns-resize")},t.prototype.ewResize=function(){this.setCursor("ew-resize")},t}((0,r.__importDefault)(n(44)).default);t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(0),i=(0,r.__importDefault)(n(44)),a=n(31),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.__extends)(t,e),t.prototype.filterView=function(e,t,n){var r=this;e.getScaleByField(t)&&e.filter(t,n),e.views&&e.views.length&&(0,o.each)(e.views,(function(e){r.filterView(e,t,n)}))},t.prototype.filter=function(){var e=(0,a.getDelegationObject)(this.context);if(e){var t=this.context.view,n=e.component,r=n.get("field");if((0,a.isList)(e)){if(r){var o=n.getItemsByState("unchecked"),i=(0,a.getScaleByField)(t,r),l=o.map((function(e){return e.name}));l.length?this.filterView(t,r,(function(e){var t=i.getText(e);return!l.includes(t)})):this.filterView(t,r,null),t.render(!0)}}else if((0,a.isSlider)(e)){var c=n.getValue(),s=c[0],u=c[1];this.filterView(t,r,(function(e){return e>=s&&e<=u})),t.render(!0)}}},t}(i.default);t.default=l},function(e,t,n){"use strict";var r=n(954);function o(){return"undefined"!==typeof Reflect&&Reflect.get?(e.exports=o=Reflect.get.bind(),e.exports.__esModule=!0,e.exports.default=e.exports):(e.exports=o=function(e,t,n){var o=r(e,t);if(o){var i=Object.getOwnPropertyDescriptor(o,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},e.exports.__esModule=!0,e.exports.default=e.exports),o.apply(this,arguments)}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=n(2)(n(6)),o=n(365),i="function"===typeof Symbol&&"symbol"===(0,r.default)(Symbol("foo")),a=Object.prototype.toString,l=Array.prototype.concat,c=n(651),s=n(367)(),u=function(e,t,n,r){if(t in e)if(!0===r){if(e[t]===n)return}else if("function"!==typeof(o=r)||"[object Function]"!==a.call(o)||!r())return;var o;s?c(e,t,n,!0):c(e,t,n)},d=function(e,t){var n=arguments.length>2?arguments[2]:{},r=o(t);i&&(r=l.call(r,Object.getOwnPropertySymbols(t)));for(var a=0;a<r.length;a+=1)u(e,r[a],t[r[a]],n[r[a]])};d.supportsDescriptors=!!s,e.exports=d},function(e,t,n){"use strict";var r=Array.prototype.slice,o=n(366),i=Object.keys,a=i?function(e){return i(e)}:n(650),l=Object.keys;a.shim=function(){if(Object.keys){var e=function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2);e||(Object.keys=function(e){return o(e)?l(r.call(e)):l(e)})}else Object.keys=a;return Object.keys||a},e.exports=a},function(e,t,n){"use strict";var r=n(2)(n(6)),o=Object.prototype.toString;e.exports=function(e){var t=o.call(e),n="[object Arguments]"===t;return n||(n="[object Array]"!==t&&null!==e&&"object"===(0,r.default)(e)&&"number"===typeof e.length&&e.length>=0&&"[object Function]"===o.call(e.callee)),n}},function(e,t,n){"use strict";var r=n(137)("%Object.defineProperty%",!0),o=function(){if(r)try{return r({},"a",{value:1}),!0}catch(e){return!1}return!1};o.hasArrayLengthDefineBug=function(){if(!o())return null;try{return 1!==r([],"length",{value:1}).length}catch(e){return!0}},e.exports=o},function(e,t,n){"use strict";var r=n(2)(n(6));e.exports=function(){if("function"!==typeof Symbol||"function"!==typeof Object.getOwnPropertySymbols)return!1;if("symbol"===(0,r.default)(Symbol.iterator))return!0;var e={},t=Symbol("test"),n=Object(t);if("string"===typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"===typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"===typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var o=Object.getOwnPropertySymbols(e);if(1!==o.length||o[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"===typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},function(e,t,n){"use strict";var r=n(654);e.exports=Function.prototype.bind||r},function(e,t,n){"use strict";var r=n(369),o=n(137),i=o("%Function.prototype.apply%"),a=o("%Function.prototype.call%"),l=o("%Reflect.apply%",!0)||r.call(a,i),c=o("%Object.getOwnPropertyDescriptor%",!0),s=o("%Object.defineProperty%",!0),u=o("%Math.max%");if(s)try{s({},"a",{value:1})}catch(f){s=null}e.exports=function(e){var t=l(r,a,arguments);return c&&s&&c(t,"length").configurable&&s(t,"length",{value:1+u(0,e.length-(arguments.length-1))}),t};var d=function(){return l(r,i,arguments)};s?s(e.exports,"apply",{value:d}):e.exports.apply=d},function(e,t,n){"use strict";var r=n(365),o=n(368)(),i=n(657),a=Object,l=i("Array.prototype.push"),c=i("Object.prototype.propertyIsEnumerable"),s=o?Object.getOwnPropertySymbols:null;e.exports=function(e,t){if(null==e)throw new TypeError("target must be an object");var n=a(e);if(1===arguments.length)return n;for(var i=1;i<arguments.length;++i){var u=a(arguments[i]),d=r(u),f=o&&(Object.getOwnPropertySymbols||s);if(f)for(var p=f(u),h=0;h<p.length;++h){var g=p[h];c(u,g)&&l(d,g)}for(var v=0;v<d.length;++v){var m=d[v];if(c(u,m)){var y=u[m];n[m]=y}}}return n}},function(e,t,n){"use strict";var r=n(371);e.exports=function(){return Object.assign?function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",t=e.split(""),n={},r=0;r<t.length;++r)n[t[r]]=t[r];var o=Object.assign({},n),i="";for(var a in o)i+=a;return e!==i}()||function(){if(!Object.assign||!Object.preventExtensions)return!1;var e=Object.preventExtensions({1:2});try{Object.assign(e,"xy")}catch(t){return"y"===e[1]}return!1}()?r:Object.assign:r}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(56));t.default=function(e,t){if(!(0,o.default)(e))return e;for(var n=[],r=0;r<e.length;r++){var i=e[r];t(i,r)&&n.push(i)}return n}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(94)),i=r(n(375));t.default=function(e,t){var n=(0,i.default)(t),r=n.length;if((0,o.default)(e))return!r;for(var a=0;a<r;a+=1){var l=n[a];if(t[l]!==e[l]||!(l in e))return!1}return!0}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(106)),i=r(n(57)),a=Object.keys?function(e){return Object.keys(e)}:function(e){var t=[];return(0,o.default)(e,(function(n,r){(0,i.default)(e)&&"prototype"===r||t.push(r)})),t};t.default=a},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(36));t.default=function(e){if((0,o.default)(e))return e.reduce((function(e,t){return Math.max(e,t)}),e[0])}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(36));t.default=function(e){if((0,o.default)(e))return e.reduce((function(e,t){return Math.min(e,t)}),e[0])}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(56)),i=Array.prototype.splice;t.default=function(e,t){if(!(0,o.default)(e))return[];for(var n=e?t.length:0,r=n-1;n--;){var a=void 0,l=t[n];n!==r&&l===a||(a=l,i.call(e,l,1))}return e}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(106)),i=r(n(36)),a=r(n(138));t.default=function(e,t,n){if(!(0,i.default)(e)&&!(0,a.default)(e))return e;var r=n;return(0,o.default)(e,(function(e,n){r=t(r,e,n)})),r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){void 0===t&&(t=new Map);var n=[];if(Array.isArray(e))for(var r=0,o=e.length;r<o;r++){var i=e[r];t.has(i)||(n.push(i),t.set(i,!0))}return n}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(!t)return{0:e};if(!(0,i.default)(t)){var n=(0,o.default)(t)?t:t.replace(/\s+/g,"").split("*");t=function(e){for(var t="_",r=0,o=n.length;r<o;r++)t+=e[n[r]]&&e[n[r]].toString();return t}}return(0,a.default)(e,t)};var o=r(n(36)),i=r(n(57)),a=r(n(382))},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(36)),i=r(n(57)),a=Object.prototype.hasOwnProperty;t.default=function(e,t){if(!t||!(0,o.default)(e))return{};for(var n,r={},l=(0,i.default)(t)?t:function(e){return e[t]},c=0;c<e.length;c++){var s=e[c];n=l(s),a.call(r,n)?r[n].push(s):r[n]=[s]}return r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(e,t){return e.hasOwnProperty(t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={}.toString;t.default=function(e){return r.call(e).replace(/^\[object /,"").replace(/]$/,"")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=Object.prototype;t.default=function(e){var t=e&&e.constructor;return e===("function"===typeof t&&t.prototype||r)}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(57));t.default=function(e,t){if(!(0,o.default)(e))throw new TypeError("Expected a function");var n=function n(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var l=e.apply(this,r);return a.set(i,l),l};return n.cache=new Map,n}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(238)),i=r(n(56)),a=r(n(85));t.default=function e(t,n){if(t===n)return!0;if(!t||!n)return!1;if((0,a.default)(t)||(0,a.default)(n))return!1;if((0,i.default)(t)||(0,i.default)(n)){if(t.length!==n.length)return!1;for(var r=!0,l=0;l<t.length&&(r=e(t[l],n[l]));l++);return r}if((0,o.default)(t)||(0,o.default)(n)){var c=Object.keys(t),s=Object.keys(n);if(c.length!==s.length)return!1;for(r=!0,l=0;l<c.length&&(r=e(t[c[l]],n[c[l]]));l++);return r}return!1}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,i=n(1),a=r(n(239)),l=r(n(386)),c=r(n(85));t.default=(0,l.default)((function(e,t){void 0===t&&(t={});var n=t.fontSize,r=t.fontFamily,i=t.fontWeight,a=t.fontStyle,l=t.fontVariant;return o||(o=document.createElement("canvas").getContext("2d")),o.font=[a,l,i,n+"px",r].join(" "),o.measureText((0,c.default)(e)?e:"").width}),(function(e,t){return void 0===t&&(t={}),(0,i.__spreadArrays)([e],(0,a.default)(t)).join("")}))},function(e,t,n){"use strict";var r=n(6).default,o=n(738);e.exports=function(e){var t=o(e,"string");return"symbol"===r(t)?t:String(t)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=(0,o.default)(e,"height",t);return"auto"===n&&(n=e.offsetHeight),parseFloat(n)};var o=r(n(139))},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=(0,o.default)(e,"width",t);return"auto"===n&&(n=e.offsetWidth),parseFloat(n)};var o=r(n(139))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.rectPath=t.pathToCurve=t.pathToAbsolute=t.parsePathString=t.parsePathArray=t.intersection=t.formatPath=t.fillPathByDiff=t.fillPath=t.catmullRomToBezier=void 0;var r=n(0),o="\t\n\v\f\r \xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029",i=new RegExp("([a-z])["+o+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+o+"]*,?["+o+"]*)+)","ig"),a=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+o+"]*,?["+o+"]*","ig"),l=t.parsePathString=function(e){if(!e)return null;if((0,r.isArray)(e))return e;var t={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},n=[];return String(e).replace(i,(function(r,o,i){var l=[],c=o.toLowerCase();if(i.replace(a,(function(e,t){t&&l.push(+t)})),"m"===c&&l.length>2&&(n.push([o].concat(l.splice(0,2))),c="l",o="m"===o?"l":"L"),"o"===c&&1===l.length&&n.push([o,l[0]]),"r"===c)n.push([o].concat(l));else for(;l.length>=t[c]&&(n.push([o].concat(l.splice(0,t[c]))),t[c]););return e})),n},c=t.catmullRomToBezier=function(e,t){for(var n=[],r=0,o=e.length;o-2*!t>r;r+=2){var i=[{x:+e[r-2],y:+e[r-1]},{x:+e[r],y:+e[r+1]},{x:+e[r+2],y:+e[r+3]},{x:+e[r+4],y:+e[r+5]}];t?r?o-4===r?i[3]={x:+e[0],y:+e[1]}:o-2===r&&(i[2]={x:+e[0],y:+e[1]},i[3]={x:+e[2],y:+e[3]}):i[0]={x:+e[o-2],y:+e[o-1]}:o-4===r?i[3]=i[2]:r||(i[0]={x:+e[r],y:+e[r+1]}),n.push(["C",(-i[0].x+6*i[1].x+i[2].x)/6,(-i[0].y+6*i[1].y+i[2].y)/6,(i[1].x+6*i[2].x-i[3].x)/6,(i[1].y+6*i[2].y-i[3].y)/6,i[2].x,i[2].y])}return n},s=function(e,t,n,r,o){var i=[];if(null===o&&null===r&&(r=n),e=+e,t=+t,n=+n,r=+r,null!==o){var a=Math.PI/180,l=e+n*Math.cos(-r*a),c=e+n*Math.cos(-o*a);i=[["M",l,t+n*Math.sin(-r*a)],["A",n,n,0,+(o-r>180),0,c,t+n*Math.sin(-o*a)]]}else i=[["M",e,t],["m",0,-r],["a",n,r,0,1,1,0,2*r],["a",n,r,0,1,1,0,-2*r],["z"]];return i},u=t.pathToAbsolute=function(e){if(!(e=l(e))||!e.length)return[["M",0,0]];var t,n,r=[],o=0,i=0,a=0,u=0,d=0;"M"===e[0][0]&&(a=o=+e[0][1],u=i=+e[0][2],d++,r[0]=["M",o,i]);for(var f=3===e.length&&"M"===e[0][0]&&"R"===e[1][0].toUpperCase()&&"Z"===e[2][0].toUpperCase(),p=void 0,h=void 0,g=d,v=e.length;g<v;g++){if(r.push(p=[]),(t=(h=e[g])[0])!==t.toUpperCase())switch(p[0]=t.toUpperCase(),p[0]){case"A":p[1]=h[1],p[2]=h[2],p[3]=h[3],p[4]=h[4],p[5]=h[5],p[6]=+h[6]+o,p[7]=+h[7]+i;break;case"V":p[1]=+h[1]+i;break;case"H":p[1]=+h[1]+o;break;case"R":for(var m=2,y=(n=[o,i].concat(h.slice(1))).length;m<y;m++)n[m]=+n[m]+o,n[++m]=+n[m]+i;r.pop(),r=r.concat(c(n,f));break;case"O":r.pop(),(n=s(o,i,h[1],h[2])).push(n[0]),r=r.concat(n);break;case"U":r.pop(),r=r.concat(s(o,i,h[1],h[2],h[3])),p=["U"].concat(r[r.length-1].slice(-2));break;case"M":a=+h[1]+o,u=+h[2]+i;break;default:for(m=1,y=h.length;m<y;m++)p[m]=+h[m]+(m%2?o:i)}else if("R"===t)n=[o,i].concat(h.slice(1)),r.pop(),r=r.concat(c(n,f)),p=["R"].concat(h.slice(-2));else if("O"===t)r.pop(),(n=s(o,i,h[1],h[2])).push(n[0]),r=r.concat(n);else if("U"===t)r.pop(),r=r.concat(s(o,i,h[1],h[2],h[3])),p=["U"].concat(r[r.length-1].slice(-2));else for(var b=0,x=h.length;b<x;b++)p[b]=h[b];if("O"!==(t=t.toUpperCase()))switch(p[0]){case"Z":o=+a,i=+u;break;case"H":o=p[1];break;case"V":i=p[1];break;case"M":a=p[p.length-2],u=p[p.length-1];break;default:o=p[p.length-2],i=p[p.length-1]}}return r},d=function(e,t,n,r){return[e,t,n,r,n,r]},f=function(e,t,n,r,o,i){var a=1/3,l=2/3;return[a*e+l*n,a*t+l*r,a*o+l*n,a*i+l*r,o,i]},p=function e(t,n,r,o,i,a,l,c,s,u){r===o&&(r+=1);var d,f,p,h,g,v=120*Math.PI/180,m=Math.PI/180*(+i||0),y=[],b=function(e,t,n){return{x:e*Math.cos(n)-t*Math.sin(n),y:e*Math.sin(n)+t*Math.cos(n)}};if(u)f=u[0],p=u[1],h=u[2],g=u[3];else{t=(d=b(t,n,-m)).x,n=d.y,c=(d=b(c,s,-m)).x,s=d.y,t===c&&n===s&&(c+=1,s+=1);var x=(t-c)/2,w=(n-s)/2,S=x*x/(r*r)+w*w/(o*o);S>1&&(r*=S=Math.sqrt(S),o*=S);var O=r*r,_=o*o,C=(a===l?-1:1)*Math.sqrt(Math.abs((O*_-O*w*w-_*x*x)/(O*w*w+_*x*x)));h=C*r*w/o+(t+c)/2,g=C*-o*x/r+(n+s)/2,f=Math.asin(((n-g)/o).toFixed(9)),p=Math.asin(((s-g)/o).toFixed(9)),f=t<h?Math.PI-f:f,p=c<h?Math.PI-p:p,f<0&&(f=2*Math.PI+f),p<0&&(p=2*Math.PI+p),l&&f>p&&(f-=2*Math.PI),!l&&p>f&&(p-=2*Math.PI)}var E=p-f;if(Math.abs(E)>v){var P=p,M=c,k=s;p=f+v*(l&&p>f?1:-1),y=e(c=h+r*Math.cos(p),s=g+o*Math.sin(p),r,o,i,0,l,M,k,[p,P,h,g])}E=p-f;var A=Math.cos(f),I=Math.sin(f),T=Math.cos(p),j=Math.sin(p),L=Math.tan(E/4),R=4/3*r*L,D=4/3*o*L,N=[t,n],F=[t+R*I,n-D*A],B=[c+R*j,s-D*T],z=[c,s];if(F[0]=2*N[0]-F[0],F[1]=2*N[1]-F[1],u)return[F,B,z].concat(y);for(var H=[],W=0,V=(y=[F,B,z].concat(y).join().split(",")).length;W<V;W++)H[W]=W%2?b(y[W-1],y[W],m).y:b(y[W],y[W+1],m).x;return H},h=t.pathToCurve=function(e,t){var n,r=u(e),o=t&&u(t),i={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},a={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},l=[],c=[],s="",h="",g=function(e,t,n){var r,o;if(!e)return["C",t.x,t.y,t.x,t.y,t.x,t.y];switch(!(e[0]in{T:1,Q:1})&&(t.qx=t.qy=null),e[0]){case"M":t.X=e[1],t.Y=e[2];break;case"A":e=["C"].concat(p.apply(0,[t.x,t.y].concat(e.slice(1))));break;case"S":"C"===n||"S"===n?(r=2*t.x-t.bx,o=2*t.y-t.by):(r=t.x,o=t.y),e=["C",r,o].concat(e.slice(1));break;case"T":"Q"===n||"T"===n?(t.qx=2*t.x-t.qx,t.qy=2*t.y-t.qy):(t.qx=t.x,t.qy=t.y),e=["C"].concat(f(t.x,t.y,t.qx,t.qy,e[1],e[2]));break;case"Q":t.qx=e[1],t.qy=e[2],e=["C"].concat(f(t.x,t.y,e[1],e[2],e[3],e[4]));break;case"L":e=["C"].concat(d(t.x,t.y,e[1],e[2]));break;case"H":e=["C"].concat(d(t.x,t.y,e[1],t.y));break;case"V":e=["C"].concat(d(t.x,t.y,t.x,e[1]));break;case"Z":e=["C"].concat(d(t.x,t.y,t.X,t.Y))}return e},v=function(e,t){if(e[t].length>7){e[t].shift();for(var i=e[t];i.length;)l[t]="A",o&&(c[t]="A"),e.splice(t++,0,["C"].concat(i.splice(0,6)));e.splice(t,1),n=Math.max(r.length,o&&o.length||0)}},m=function(e,t,i,a,l){e&&t&&"M"===e[l][0]&&"M"!==t[l][0]&&(t.splice(l,0,["M",a.x,a.y]),i.bx=0,i.by=0,i.x=e[l][1],i.y=e[l][2],n=Math.max(r.length,o&&o.length||0))};n=Math.max(r.length,o&&o.length||0);for(var y=0;y<n;y++){r[y]&&(s=r[y][0]),"C"!==s&&(l[y]=s,y&&(h=l[y-1])),r[y]=g(r[y],i,h),"A"!==l[y]&&"C"===s&&(l[y]="C"),v(r,y),o&&(o[y]&&(s=o[y][0]),"C"!==s&&(c[y]=s,y&&(h=c[y-1])),o[y]=g(o[y],a,h),"A"!==c[y]&&"C"===s&&(c[y]="C"),v(o,y)),m(r,o,i,a,y),m(o,r,a,i,y);var b=r[y],x=o&&o[y],w=b.length,S=o&&x.length;i.x=b[w-2],i.y=b[w-1],i.bx=parseFloat(b[w-4])||i.x,i.by=parseFloat(b[w-3])||i.y,a.bx=o&&(parseFloat(x[S-4])||a.x),a.by=o&&(parseFloat(x[S-3])||a.y),a.x=o&&x[S-2],a.y=o&&x[S-1]}return o?[r,o]:r},g=/,?([a-z]),?/gi,v=t.parsePathArray=function(e){return e.join(",").replace(g,"$1")},m=function(e,t,n,r,o){return e*(e*(-3*t+9*n-9*r+3*o)+6*t-12*n+6*r)-3*t+3*n},y=function(e,t,n,r,o,i,a,l,c){null===c&&(c=1);for(var s=(c=c>1?1:c<0?0:c)/2,u=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],d=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],f=0,p=0;p<12;p++){var h=s*u[p]+s,g=m(h,e,n,o,a),v=m(h,t,r,i,l),y=g*g+v*v;f+=d[p]*Math.sqrt(y)}return s*f},b=function(e,t,n,r,o,i,a,l){for(var c,s,u,d,f=[],p=[[],[]],h=0;h<2;++h)if(0===h?(s=6*e-12*n+6*o,c=-3*e+9*n-9*o+3*a,u=3*n-3*e):(s=6*t-12*r+6*i,c=-3*t+9*r-9*i+3*l,u=3*r-3*t),Math.abs(c)<1e-12){if(Math.abs(s)<1e-12)continue;(d=-u/s)>0&&d<1&&f.push(d)}else{var g=s*s-4*u*c,v=Math.sqrt(g);if(!(g<0)){var m=(-s+v)/(2*c);m>0&&m<1&&f.push(m);var y=(-s-v)/(2*c);y>0&&y<1&&f.push(y)}}for(var b,x=f.length,w=x;x--;)b=1-(d=f[x]),p[0][x]=b*b*b*e+3*b*b*d*n+3*b*d*d*o+d*d*d*a,p[1][x]=b*b*b*t+3*b*b*d*r+3*b*d*d*i+d*d*d*l;return p[0][w]=e,p[1][w]=t,p[0][w+1]=a,p[1][w+1]=l,p[0].length=p[1].length=w+2,{min:{x:Math.min.apply(0,p[0]),y:Math.min.apply(0,p[1])},max:{x:Math.max.apply(0,p[0]),y:Math.max.apply(0,p[1])}}},x=function(e,t,n,r,o,i,a,l){if(!(Math.max(e,n)<Math.min(o,a)||Math.min(e,n)>Math.max(o,a)||Math.max(t,r)<Math.min(i,l)||Math.min(t,r)>Math.max(i,l))){var c=(e-n)*(i-l)-(t-r)*(o-a);if(c){var s=((e*r-t*n)*(o-a)-(e-n)*(o*l-i*a))/c,u=((e*r-t*n)*(i-l)-(t-r)*(o*l-i*a))/c,d=+s.toFixed(2),f=+u.toFixed(2);if(!(d<+Math.min(e,n).toFixed(2)||d>+Math.max(e,n).toFixed(2)||d<+Math.min(o,a).toFixed(2)||d>+Math.max(o,a).toFixed(2)||f<+Math.min(t,r).toFixed(2)||f>+Math.max(t,r).toFixed(2)||f<+Math.min(i,l).toFixed(2)||f>+Math.max(i,l).toFixed(2)))return{x:s,y:u}}}},w=function(e,t,n){return t>=e.x&&t<=e.x+e.width&&n>=e.y&&n<=e.y+e.height},S=t.rectPath=function(e,t,n,r,o){if(o)return[["M",+e+ +o,t],["l",n-2*o,0],["a",o,o,0,0,1,o,o],["l",0,r-2*o],["a",o,o,0,0,1,-o,o],["l",2*o-n,0],["a",o,o,0,0,1,-o,-o],["l",0,2*o-r],["a",o,o,0,0,1,o,-o],["z"]];var i=[["M",e,t],["l",n,0],["l",0,r],["l",-n,0],["z"]];return i.parsePathArray=v,i},O=function(e,t,n,r){return null===e&&(e=t=n=r=0),null===t&&(t=e.y,n=e.width,r=e.height,e=e.x),{x:e,y:t,width:n,w:n,height:r,h:r,x2:e+n,y2:t+r,cx:e+n/2,cy:t+r/2,r1:Math.min(n,r)/2,r2:Math.max(n,r)/2,r0:Math.sqrt(n*n+r*r)/2,path:S(e,t,n,r),vb:[e,t,n,r].join(" ")}},_=function(e,t,n,o,i,a,l,c){(0,r.isArray)(e)||(e=[e,t,n,o,i,a,l,c]);var s=b.apply(null,e);return O(s.min.x,s.min.y,s.max.x-s.min.x,s.max.y-s.min.y)},C=function(e,t,n,r,o,i,a,l,c){var s=1-c,u=Math.pow(s,3),d=Math.pow(s,2),f=c*c,p=f*c,h=e+2*c*(n-e)+f*(o-2*n+e),g=t+2*c*(r-t)+f*(i-2*r+t),v=n+2*c*(o-n)+f*(a-2*o+n),m=r+2*c*(i-r)+f*(l-2*i+r);return{x:u*e+3*d*c*n+3*s*c*c*o+p*a,y:u*t+3*d*c*r+3*s*c*c*i+p*l,m:{x:h,y:g},n:{x:v,y:m},start:{x:s*e+c*n,y:s*t+c*r},end:{x:s*o+c*a,y:s*i+c*l},alpha:90-180*Math.atan2(h-v,g-m)/Math.PI}},E=function(e,t,n){if(!function(e,t){return e=O(e),t=O(t),w(t,e.x,e.y)||w(t,e.x2,e.y)||w(t,e.x,e.y2)||w(t,e.x2,e.y2)||w(e,t.x,t.y)||w(e,t.x2,t.y)||w(e,t.x,t.y2)||w(e,t.x2,t.y2)||(e.x<t.x2&&e.x>t.x||t.x<e.x2&&t.x>e.x)&&(e.y<t.y2&&e.y>t.y||t.y<e.y2&&t.y>e.y)}(_(e),_(t)))return n?0:[];for(var r=~~(y.apply(0,e)/8),o=~~(y.apply(0,t)/8),i=[],a=[],l={},c=n?0:[],s=0;s<r+1;s++){var u=C.apply(0,e.concat(s/r));i.push({x:u.x,y:u.y,t:s/r})}for(s=0;s<o+1;s++)u=C.apply(0,t.concat(s/o)),a.push({x:u.x,y:u.y,t:s/o});for(s=0;s<r;s++)for(var d=0;d<o;d++){var f=i[s],p=i[s+1],h=a[d],g=a[d+1],v=Math.abs(p.x-f.x)<.001?"y":"x",m=Math.abs(g.x-h.x)<.001?"y":"x",b=x(f.x,f.y,p.x,p.y,h.x,h.y,g.x,g.y);if(b){if(l[b.x.toFixed(4)]===b.y.toFixed(4))continue;l[b.x.toFixed(4)]=b.y.toFixed(4);var S=f.t+Math.abs((b[v]-f[v])/(p[v]-f[v]))*(p.t-f.t),E=h.t+Math.abs((b[m]-h[m])/(g[m]-h[m]))*(g.t-h.t);S>=0&&S<=1&&E>=0&&E<=1&&(n?c+=1:c.push({x:b.x,y:b.y,t1:S,t2:E}))}}return c};function P(e,t){var n=[],r=[];return e.length&&function e(t,o){if(1===t.length)n.push(t[0]),r.push(t[0]);else{for(var i=[],a=0;a<t.length-1;a++)0===a&&n.push(t[0]),a===t.length-2&&r.push(t[a+1]),i[a]=[(1-o)*t[a][0]+o*t[a+1][0],(1-o)*t[a][1]+o*t[a+1][1]];e(i,o)}}(e,t),{left:n,right:r.reverse()}}t.intersection=function(e,t){return function(e,t,n){var r,o,i,a,l,c,s,u,d,f;e=h(e),t=h(t);for(var p=n?0:[],g=0,v=e.length;g<v;g++){var m=e[g];if("M"===m[0])r=l=m[1],o=c=m[2];else{"C"===m[0]?(d=[r,o].concat(m.slice(1)),r=d[6],o=d[7]):(d=[r,o,r,o,l,c,l,c],r=l,o=c);for(var y=0,b=t.length;y<b;y++){var x=t[y];if("M"===x[0])i=s=x[1],a=u=x[2];else{"C"===x[0]?(f=[i,a].concat(x.slice(1)),i=f[6],a=f[7]):(f=[i,a,i,a,s,u,s,u],i=s,a=u);var w=E(d,f,n);if(n)p+=w;else{for(var S=0,O=w.length;S<O;S++)w[S].segment1=g,w[S].segment2=y,w[S].bez1=d,w[S].bez2=f;p=p.concat(w)}}}}}return p}(e,t)};var M=function(e,t,n){if(1===n)return[[].concat(e)];var r=[];if("L"===t[0]||"C"===t[0]||"Q"===t[0])r=r.concat(function(e,t,n){var r=[[e[1],e[2]]];n=n||2;var o=[];"A"===t[0]?(r.push(t[6]),r.push(t[7])):"C"===t[0]?(r.push([t[1],t[2]]),r.push([t[3],t[4]]),r.push([t[5],t[6]])):"S"===t[0]||"Q"===t[0]?(r.push([t[1],t[2]]),r.push([t[3],t[4]])):r.push([t[1],t[2]]);for(var i=r,a=1/n,l=0;l<n-1;l++){var c=P(i,a/(1-a*l));o.push(c.left),i=c.right}return o.push(i),o.map((function(e){var t=[];return 4===e.length&&(t.push("C"),t=t.concat(e[2])),e.length>=3&&(3===e.length&&t.push("Q"),t=t.concat(e[1])),2===e.length&&t.push("L"),t.concat(e[e.length-1])}))}(e,t,n));else{var o=[].concat(e);"M"===o[0]&&(o[0]="L");for(var i=0;i<=n-1;i++)r.push(o)}return r},k=(t.fillPath=function(e,t){if(1===e.length)return e;var n=e.length-1,r=t.length-1,o=n/r,i=[];if(1===e.length&&"M"===e[0][0]){for(var a=0;a<r-n;a++)e.push(e[0]);return e}for(a=0;a<r;a++){var l=Math.floor(o*a);i[l]=(i[l]||0)+1}var c=i.reduce((function(t,r,o){return o===n?t.concat(e[n]):t.concat(M(e[o],e[o+1],r))}),[]);return c.unshift(e[0]),"Z"!==t[r]&&"z"!==t[r]||c.push("Z"),c},function(e,t){if(e.length!==t.length)return!1;var n=!0;return(0,r.each)(e,(function(e,r){if(e!==t[r])return n=!1,!1})),n});function A(e,t,n){var r=null,o=n;return t<o&&(o=t,r="add"),e<o&&(o=e,r="del"),{type:r,min:o}}function I(e,t,n){for(var r,o=[].concat(e),i=1/(n+1),a=T(t)[0],l=1;l<=n;l++)i*=l,0===(r=Math.floor(e.length*i))?o.unshift([a[0]*i+e[r][0]*(1-i),a[1]*i+e[r][1]*(1-i)]):o.splice(r,0,[a[0]*i+e[r][0]*(1-i),a[1]*i+e[r][1]*(1-i)]);return o}function T(e){var t=[];switch(e[0]){case"M":case"L":case"T":t.push([e[1],e[2]]);break;case"A":t.push([e[6],e[7]]);break;case"Q":case"S":t.push([e[3],e[4]]),t.push([e[1],e[2]]);break;case"C":t.push([e[5],e[6]]),t.push([e[1],e[2]]),t.push([e[3],e[4]]);break;case"H":case"V":t.push([e[1],e[1]])}return t}t.fillPathByDiff=function(e,t){var n=function(e,t){var n,r,o=e.length,i=t.length,a=0;if(0===o||0===i)return null;for(var l=[],c=0;c<=o;c++)l[c]=[],l[c][0]={min:c};for(var s=0;s<=i;s++)l[0][s]={min:s};for(c=1;c<=o;c++)for(n=e[c-1],s=1;s<=i;s++){r=t[s-1],a=k(n,r)?0:1;var u=l[c-1][s].min+1,d=l[c][s-1].min+1,f=l[c-1][s-1].min+a;l[c][s]=A(u,d,f)}return l}(e,t),r=e.length,o=t.length,i=[],a=1,l=1;if(n[r][o].min!==r){for(var c=1;c<=r;c++){var s=n[c][c].min;l=c;for(var u=a;u<=o;u++)n[c][u].min<s&&(s=n[c][u].min,l=u);a=l,n[c][a].type&&i.push({index:c-1,type:n[c][a].type})}for(c=i.length-1;c>=0;c--)a=i[c].index,"add"===i[c].type?e.splice(a,0,[].concat(e[a])):e.splice(a,1)}var d=o-(r=e.length);if(r<o)for(c=0;c<d;c++)"z"===e[r-1][0]||"Z"===e[r-1][0]?e.splice(r-2,0,e[r-2]):e.push(e[r-1]),r+=1;return e},t.formatPath=function(e,t){if(e.length<=1)return e;for(var n,r=0;r<t.length;r++)if(e[r][0]!==t[r][0])switch(n=T(e[r]),t[r][0]){case"M":e[r]=["M"].concat(n[0]);break;case"L":e[r]=["L"].concat(n[0]);break;case"A":e[r]=[].concat(t[r]),e[r][6]=n[0][0],e[r][7]=n[0][1];break;case"Q":if(n.length<2){if(!(r>0)){e[r]=t[r];break}n=I(n,e[r-1],1)}e[r]=["Q"].concat(n.reduce((function(e,t){return e.concat(t)}),[]));break;case"T":e[r]=["T"].concat(n[0]);break;case"C":if(n.length<3){if(!(r>0)){e[r]=t[r];break}n=I(n,e[r-1],2)}e[r]=["C"].concat(n.reduce((function(e,t){return e.concat(t)}),[]));break;case"S":if(n.length<2){if(!(r>0)){e[r]=t[r];break}n=I(n,e[r-1],1)}e[r]=["S"].concat(n.reduce((function(e,t){return e.concat(t)}),[]));break;default:e[r]=t[r]}return e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(){function e(e,t){this.bubbles=!0,this.target=null,this.currentTarget=null,this.delegateTarget=null,this.delegateObject=null,this.defaultPrevented=!1,this.propagationStopped=!1,this.shape=null,this.fromShape=null,this.toShape=null,this.propagationPath=[],this.type=e,this.name=e,this.originalEvent=t,this.timeStamp=t.timeStamp}return e.prototype.preventDefault=function(){this.defaultPrevented=!0,this.originalEvent.preventDefault&&this.originalEvent.preventDefault()},e.prototype.stopPropagation=function(){this.propagationStopped=!0},e.prototype.toString=function(){return"[Event (type="+this.type+")]"},e.prototype.save=function(){},e.prototype.restore=function(){},e}();t.default=r},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(1),i=r(n(125)),a=n(101),l=function(e){function t(t){var n=e.call(this)||this;n.destroyed=!1;var r=n.getDefaultCfg();return n.cfg=(0,a.mix)(r,t),n}return(0,o.__extends)(t,e),t.prototype.getDefaultCfg=function(){return{}},t.prototype.get=function(e){return this.cfg[e]},t.prototype.set=function(e,t){this.cfg[e]=t},t.prototype.destroy=function(){this.cfg={destroyed:!0},this.off(),this.destroyed=!0},t}(i.default);t.default=l},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(1),i=r(n(396)),a=n(101),l={},c="_INDEX";function s(e,t){if(e.set("canvas",t),e.isGroup()){var n=e.get("children");n.length&&n.forEach((function(e){s(e,t)}))}}function u(e,t){if(e.set("timeline",t),e.isGroup()){var n=e.get("children");n.length&&n.forEach((function(e){u(e,t)}))}}var d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,o.__extends)(t,e),t.prototype.isCanvas=function(){return!1},t.prototype.getBBox=function(){var e=1/0,t=-1/0,n=1/0,r=-1/0,o=this.getChildren().filter((function(e){return e.get("visible")&&(!e.isGroup()||e.isGroup()&&e.getChildren().length>0)}));return o.length>0?(0,a.each)(o,(function(o){var i=o.getBBox(),a=i.minX,l=i.maxX,c=i.minY,s=i.maxY;a<e&&(e=a),l>t&&(t=l),c<n&&(n=c),s>r&&(r=s)})):(e=0,t=0,n=0,r=0),{x:e,y:n,minX:e,minY:n,maxX:t,maxY:r,width:t-e,height:r-n}},t.prototype.getCanvasBBox=function(){var e=1/0,t=-1/0,n=1/0,r=-1/0,o=this.getChildren().filter((function(e){return e.get("visible")&&(!e.isGroup()||e.isGroup()&&e.getChildren().length>0)}));return o.length>0?(0,a.each)(o,(function(o){var i=o.getCanvasBBox(),a=i.minX,l=i.maxX,c=i.minY,s=i.maxY;a<e&&(e=a),l>t&&(t=l),c<n&&(n=c),s>r&&(r=s)})):(e=0,t=0,n=0,r=0),{x:e,y:n,minX:e,minY:n,maxX:t,maxY:r,width:t-e,height:r-n}},t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return t.children=[],t},t.prototype.onAttrChange=function(t,n,r){if(e.prototype.onAttrChange.call(this,t,n,r),"matrix"===t){var o=this.getTotalMatrix();this._applyChildrenMarix(o)}},t.prototype.applyMatrix=function(t){var n=this.getTotalMatrix();e.prototype.applyMatrix.call(this,t);var r=this.getTotalMatrix();r!==n&&this._applyChildrenMarix(r)},t.prototype._applyChildrenMarix=function(e){var t=this.getChildren();(0,a.each)(t,(function(t){t.applyMatrix(e)}))},t.prototype.addShape=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e[0],r=e[1];(0,a.isObject)(n)?r=n:r.type=n;var o=l[r.type];o||(o=(0,a.upperFirst)(r.type),l[r.type]=o);var i=new(this.getShapeBase()[o])(r);return this.add(i),i},t.prototype.addGroup=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n,r=e[0],o=e[1];if((0,a.isFunction)(r))n=new r(o||{parent:this});else{var i=r||{};n=new(this.getGroupBase())(i)}return this.add(n),n},t.prototype.getCanvas=function(){return this.isCanvas()?this:this.get("canvas")},t.prototype.getShape=function(e,t,n){if(!(0,a.isAllowCapture)(this))return null;var r,o=this.getChildren();if(this.isCanvas())r=this._findShape(o,e,t,n);else{var i=[e,t,1];i=this.invertFromMatrix(i),this.isClipped(i[0],i[1])||(r=this._findShape(o,i[0],i[1],n))}return r},t.prototype._findShape=function(e,t,n,r){for(var o=null,i=e.length-1;i>=0;i--){var l=e[i];if((0,a.isAllowCapture)(l)&&(l.isGroup()?o=l.getShape(t,n,r):l.isHit(t,n)&&(o=l)),o)break}return o},t.prototype.add=function(e){var t=this.getCanvas(),n=this.getChildren(),r=this.get("timeline"),o=e.getParent();o&&function(e,t,n){void 0===n&&(n=!0),n?t.destroy():(t.set("parent",null),t.set("canvas",null)),(0,a.removeFromArray)(e.getChildren(),t)}(o,e,!1),e.set("parent",this),t&&s(e,t),r&&u(e,r),n.push(e),e.onCanvasChange("add"),this._applyElementMatrix(e)},t.prototype._applyElementMatrix=function(e){var t=this.getTotalMatrix();t&&e.applyMatrix(t)},t.prototype.getChildren=function(){return this.get("children")},t.prototype.sort=function(){var e,t=this.getChildren();(0,a.each)(t,(function(e,t){return e[c]=t,e})),t.sort((e=function(e,t){return e.get("zIndex")-t.get("zIndex")},function(t,n){var r=e(t,n);return 0===r?t[c]-n[c]:r})),this.onCanvasChange("sort")},t.prototype.clear=function(){if(this.set("clearing",!0),!this.destroyed){for(var e=this.getChildren(),t=e.length-1;t>=0;t--)e[t].destroy();this.set("children",[]),this.onCanvasChange("clear"),this.set("clearing",!1)}},t.prototype.destroy=function(){this.get("destroyed")||(this.clear(),e.prototype.destroy.call(this))},t.prototype.getFirst=function(){return this.getChildByIndex(0)},t.prototype.getLast=function(){var e=this.getChildren();return this.getChildByIndex(e.length-1)},t.prototype.getChildByIndex=function(e){return this.getChildren()[e]},t.prototype.getCount=function(){return this.getChildren().length},t.prototype.contain=function(e){return this.getChildren().indexOf(e)>-1},t.prototype.removeChild=function(e,t){void 0===t&&(t=!0),this.contain(e)&&e.remove(t)},t.prototype.findAll=function(e){var t=[],n=this.getChildren();return(0,a.each)(n,(function(n){e(n)&&t.push(n),n.isGroup()&&(t=t.concat(n.findAll(e)))})),t},t.prototype.find=function(e){var t=null,n=this.getChildren();return(0,a.each)(n,(function(n){if(e(n)?t=n:n.isGroup()&&(t=n.find(e)),t)return!1})),t},t.prototype.findById=function(e){return this.find((function(t){return t.get("id")===e}))},t.prototype.findByClassName=function(e){return this.find((function(t){return t.get("className")===e}))},t.prototype.findAllByName=function(e){return this.findAll((function(t){return t.get("name")===e}))},t}(i.default);t.default=d},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(1),i=n(0),a=n(32),l=n(101),c=n(242),s=r(n(394)),u=a.ext.transform,d="matrix",f=["zIndex","capture","visible","type"],p=["repeat"];function h(e,t){var n={},r=t.attrs;for(var o in e)n[o]=r[o];return n}var g=function(e){function t(t){var n=e.call(this,t)||this;n.attrs={};var r=n.getDefaultAttrs();return(0,i.mix)(r,t.attrs),n.attrs=r,n.initAttrs(r),n.initAnimate(),n}return(0,o.__extends)(t,e),t.prototype.getDefaultCfg=function(){return{visible:!0,capture:!0,zIndex:0}},t.prototype.getDefaultAttrs=function(){return{matrix:this.getDefaultMatrix(),opacity:1}},t.prototype.onCanvasChange=function(e){},t.prototype.initAttrs=function(e){},t.prototype.initAnimate=function(){this.set("animable",!0),this.set("animating",!1)},t.prototype.isGroup=function(){return!1},t.prototype.getParent=function(){return this.get("parent")},t.prototype.getCanvas=function(){return this.get("canvas")},t.prototype.attr=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=t[0],o=t[1];if(!r)return this.attrs;if((0,i.isObject)(r)){for(var a in r)this.setAttr(a,r[a]);return this.afterAttrsChange(r),this}return 2===t.length?(this.setAttr(r,o),this.afterAttrsChange(((e={})[r]=o,e)),this):this.attrs[r]},t.prototype.isClipped=function(e,t){var n=this.getClip();return n&&!n.isHit(e,t)},t.prototype.setAttr=function(e,t){var n=this.attrs[e];n!==t&&(this.attrs[e]=t,this.onAttrChange(e,t,n))},t.prototype.onAttrChange=function(e,t,n){"matrix"===e&&this.set("totalMatrix",null)},t.prototype.afterAttrsChange=function(e){if(this.cfg.isClipShape){var t=this.cfg.applyTo;t&&t.onCanvasChange("clip")}else this.onCanvasChange("attr")},t.prototype.show=function(){return this.set("visible",!0),this.onCanvasChange("show"),this},t.prototype.hide=function(){return this.set("visible",!1),this.onCanvasChange("hide"),this},t.prototype.setZIndex=function(e){this.set("zIndex",e);var t=this.getParent();return t&&t.sort(),this},t.prototype.toFront=function(){var e=this.getParent();if(e){var t=e.getChildren(),n=(this.get("el"),t.indexOf(this));t.splice(n,1),t.push(this),this.onCanvasChange("zIndex")}},t.prototype.toBack=function(){var e=this.getParent();if(e){var t=e.getChildren(),n=(this.get("el"),t.indexOf(this));t.splice(n,1),t.unshift(this),this.onCanvasChange("zIndex")}},t.prototype.remove=function(e){void 0===e&&(e=!0);var t=this.getParent();t?((0,l.removeFromArray)(t.getChildren(),this),t.get("clearing")||this.onCanvasChange("remove")):this.onCanvasChange("remove"),e&&this.destroy()},t.prototype.resetMatrix=function(){this.attr(d,this.getDefaultMatrix()),this.onCanvasChange("matrix")},t.prototype.getMatrix=function(){return this.attr(d)},t.prototype.setMatrix=function(e){this.attr(d,e),this.onCanvasChange("matrix")},t.prototype.getTotalMatrix=function(){var e=this.cfg.totalMatrix;if(!e){var t=this.attr("matrix"),n=this.cfg.parentMatrix;e=n&&t?(0,c.multiplyMatrix)(n,t):t||n,this.set("totalMatrix",e)}return e},t.prototype.applyMatrix=function(e){var t=this.attr("matrix"),n=null;n=e&&t?(0,c.multiplyMatrix)(e,t):t||e,this.set("totalMatrix",n),this.set("parentMatrix",e)},t.prototype.getDefaultMatrix=function(){return null},t.prototype.applyToMatrix=function(e){var t=this.attr("matrix");return t?(0,c.multiplyVec2)(t,e):e},t.prototype.invertFromMatrix=function(e){var t=this.attr("matrix");if(t){var n=(0,c.invert)(t);if(n)return(0,c.multiplyVec2)(n,e)}return e},t.prototype.setClip=function(e){var t=this.getCanvas(),n=null;if(e){var r=this.getShapeBase()[(0,i.upperFirst)(e.type)];r&&(n=new r({type:e.type,isClipShape:!0,applyTo:this,attrs:e.attrs,canvas:t}))}return this.set("clipShape",n),this.onCanvasChange("clip"),n},t.prototype.getClip=function(){var e=this.cfg.clipShape;return e||null},t.prototype.clone=function(){var e=this,t=this.attrs,n={};(0,i.each)(t,(function(e,r){(0,i.isArray)(t[r])?n[r]=function(e){for(var t=[],n=0;n<e.length;n++)(0,i.isArray)(e[n])?t.push([].concat(e[n])):t.push(e[n]);return t}(t[r]):n[r]=t[r]}));var r=new(0,this.constructor)({attrs:n});return(0,i.each)(f,(function(t){r.set(t,e.get(t))})),r},t.prototype.destroy=function(){this.destroyed||(this.attrs={},e.prototype.destroy.call(this))},t.prototype.isAnimatePaused=function(){return this.get("_pause").isPaused},t.prototype.animate=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(this.get("timeline")||this.get("canvas")){this.set("animating",!0);var n=this.get("timeline");n||(n=this.get("canvas").get("timeline"),this.set("timeline",n));var r=this.get("animations")||[];n.timer||n.initTimer();var o,a,l,c,s,u=e[0],d=e[1],f=e[2],g=void 0===f?"easeLinear":f,v=e[3],m=void 0===v?i.noop:v,y=e[4],b=void 0===y?0:y;(0,i.isFunction)(u)?(o=u,u={}):(0,i.isObject)(u)&&u.onFrame&&(o=u.onFrame,a=u.repeat),(0,i.isObject)(d)?(d=(s=d).duration,g=s.easing||"easeLinear",b=s.delay||0,a=s.repeat||a||!1,m=s.callback||i.noop,l=s.pauseCallback||i.noop,c=s.resumeCallback||i.noop):((0,i.isNumber)(m)&&(b=m,m=null),(0,i.isFunction)(g)?(m=g,g="easeLinear"):g=g||"easeLinear");var x=function(e,t){var n={},r=t.attr();return(0,i.each)(e,(function(e,t){-1!==p.indexOf(t)||(0,i.isEqual)(r[t],e)||(n[t]=e)})),n}(u,this),w={fromAttrs:h(x,this),toAttrs:x,duration:d,easing:g,repeat:a,callback:m,pauseCallback:l,resumeCallback:c,delay:b,startTime:n.getTime(),id:(0,i.uniqueId)(),onFrame:o,pathFormatted:!1};r.length>0?r=function(e,t){if(t.onFrame)return e;var n=t.startTime,r=t.delay,o=t.duration,a=Object.prototype.hasOwnProperty;return(0,i.each)(e,(function(e){n+r<e.startTime+e.delay+e.duration&&o>e.delay&&(0,i.each)(t.toAttrs,(function(t,n){a.call(e.toAttrs,n)&&(delete e.toAttrs[n],delete e.fromAttrs[n])}))})),e}(r,w):n.addAnimator(this),r.push(w),this.set("animations",r),this.set("_pause",{isPaused:!1})}},t.prototype.stopAnimate=function(e){var t=this;void 0===e&&(e=!0);var n=this.get("animations");(0,i.each)(n,(function(n){e&&(n.onFrame?t.attr(n.onFrame(1)):t.attr(n.toAttrs)),n.callback&&n.callback()})),this.set("animating",!1),this.set("animations",[])},t.prototype.pauseAnimate=function(){var e=this.get("timeline"),t=this.get("animations"),n=e.getTime();return(0,i.each)(t,(function(e){e._paused=!0,e._pauseTime=n,e.pauseCallback&&e.pauseCallback()})),this.set("_pause",{isPaused:!0,pauseTime:n}),this},t.prototype.resumeAnimate=function(){var e=this.get("timeline").getTime(),t=this.get("animations"),n=this.get("_pause").pauseTime;return(0,i.each)(t,(function(t){t.startTime=t.startTime+(e-n),t._paused=!1,t._pauseTime=null,t.resumeCallback&&t.resumeCallback()})),this.set("_pause",{isPaused:!1}),this.set("animations",t),this},t.prototype.emitDelegation=function(e,t){var n,r=this,o=t.propagationPath;this.getEvents(),"mouseenter"===e?n=t.fromShape:"mouseleave"===e&&(n=t.toShape);for(var a=function(e){var a=o[e],s=a.get("name");if(s){if((a.isGroup()||a.isCanvas&&a.isCanvas())&&n&&(0,l.isParent)(a,n))return"break";(0,i.isArray)(s)?(0,i.each)(s,(function(e){r.emitDelegateEvent(a,e,t)})):c.emitDelegateEvent(a,s,t)}},c=this,s=0;s<o.length&&"break"!==a(s);s++);},t.prototype.emitDelegateEvent=function(e,t,n){var r=this.getEvents(),o=t+":"+n.type;(r[o]||r["*"])&&(n.name=o,n.currentTarget=e,n.delegateTarget=this,n.delegateObject=e.get("delegateObject"),this.emit(o,n))},t.prototype.translate=function(e,t){void 0===e&&(e=0),void 0===t&&(t=0);var n=this.getMatrix(),r=u(n,[["t",e,t]]);return this.setMatrix(r),this},t.prototype.move=function(e,t){var n=this.attr("x")||0,r=this.attr("y")||0;return this.translate(e-n,t-r),this},t.prototype.moveTo=function(e,t){return this.move(e,t)},t.prototype.scale=function(e,t){var n=this.getMatrix(),r=u(n,[["s",e,t||e]]);return this.setMatrix(r),this},t.prototype.rotate=function(e){var t=this.getMatrix(),n=u(t,[["r",e]]);return this.setMatrix(n),this},t.prototype.rotateAtStart=function(e){var t=this.attr(),n=t.x,r=t.y,o=this.getMatrix(),i=u(o,[["t",-n,-r],["r",e],["t",n,r]]);return this.setMatrix(i),this},t.prototype.rotateAtPoint=function(e,t,n){var r=this.getMatrix(),o=u(r,[["t",-e,-t],["r",n],["t",e,t]]);return this.setMatrix(o),this},t}(s.default);t.default=g},function(e,t,n){"use strict";var r=n(6);Object.defineProperty(t,"__esModule",{value:!0}),t.add=function(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e[2]=t[2]+n[2],e[3]=t[3]+n[3],e[4]=t[4]+n[4],e[5]=t[5]+n[5],e[6]=t[6]+n[6],e[7]=t[7]+n[7],e[8]=t[8]+n[8],e},t.adjoint=function(e,t){var n=t[0],r=t[1],o=t[2],i=t[3],a=t[4],l=t[5],c=t[6],s=t[7],u=t[8];return e[0]=a*u-l*s,e[1]=o*s-r*u,e[2]=r*l-o*a,e[3]=l*c-i*u,e[4]=n*u-o*c,e[5]=o*i-n*l,e[6]=i*s-a*c,e[7]=r*c-n*s,e[8]=n*a-r*i,e},t.clone=function(e){var t=new o.ARRAY_TYPE(9);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t},t.copy=function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e},t.create=function(){var e=new o.ARRAY_TYPE(9);return o.ARRAY_TYPE!=Float32Array&&(e[1]=0,e[2]=0,e[3]=0,e[5]=0,e[6]=0,e[7]=0),e[0]=1,e[4]=1,e[8]=1,e},t.determinant=function(e){var t=e[0],n=e[1],r=e[2],o=e[3],i=e[4],a=e[5],l=e[6],c=e[7],s=e[8];return t*(s*i-a*c)+n*(-s*o+a*l)+r*(c*o-i*l)},t.equals=function(e,t){var n=e[0],r=e[1],i=e[2],a=e[3],l=e[4],c=e[5],s=e[6],u=e[7],d=e[8],f=t[0],p=t[1],h=t[2],g=t[3],v=t[4],m=t[5],y=t[6],b=t[7],x=t[8];return Math.abs(n-f)<=o.EPSILON*Math.max(1,Math.abs(n),Math.abs(f))&&Math.abs(r-p)<=o.EPSILON*Math.max(1,Math.abs(r),Math.abs(p))&&Math.abs(i-h)<=o.EPSILON*Math.max(1,Math.abs(i),Math.abs(h))&&Math.abs(a-g)<=o.EPSILON*Math.max(1,Math.abs(a),Math.abs(g))&&Math.abs(l-v)<=o.EPSILON*Math.max(1,Math.abs(l),Math.abs(v))&&Math.abs(c-m)<=o.EPSILON*Math.max(1,Math.abs(c),Math.abs(m))&&Math.abs(s-y)<=o.EPSILON*Math.max(1,Math.abs(s),Math.abs(y))&&Math.abs(u-b)<=o.EPSILON*Math.max(1,Math.abs(u),Math.abs(b))&&Math.abs(d-x)<=o.EPSILON*Math.max(1,Math.abs(d),Math.abs(x))},t.exactEquals=function(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]&&e[4]===t[4]&&e[5]===t[5]&&e[6]===t[6]&&e[7]===t[7]&&e[8]===t[8]},t.frob=function(e){return Math.hypot(e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8])},t.fromMat2d=function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=0,e[3]=t[2],e[4]=t[3],e[5]=0,e[6]=t[4],e[7]=t[5],e[8]=1,e},t.fromMat4=function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[4],e[4]=t[5],e[5]=t[6],e[6]=t[8],e[7]=t[9],e[8]=t[10],e},t.fromQuat=function(e,t){var n=t[0],r=t[1],o=t[2],i=t[3],a=n+n,l=r+r,c=o+o,s=n*a,u=r*a,d=r*l,f=o*a,p=o*l,h=o*c,g=i*a,v=i*l,m=i*c;return e[0]=1-d-h,e[3]=u-m,e[6]=f+v,e[1]=u+m,e[4]=1-s-h,e[7]=p-g,e[2]=f-v,e[5]=p+g,e[8]=1-s-d,e},t.fromRotation=function(e,t){var n=Math.sin(t),r=Math.cos(t);return e[0]=r,e[1]=n,e[2]=0,e[3]=-n,e[4]=r,e[5]=0,e[6]=0,e[7]=0,e[8]=1,e},t.fromScaling=function(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=t[1],e[5]=0,e[6]=0,e[7]=0,e[8]=1,e},t.fromTranslation=function(e,t){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=1,e[5]=0,e[6]=t[0],e[7]=t[1],e[8]=1,e},t.fromValues=function(e,t,n,r,i,a,l,c,s){var u=new o.ARRAY_TYPE(9);return u[0]=e,u[1]=t,u[2]=n,u[3]=r,u[4]=i,u[5]=a,u[6]=l,u[7]=c,u[8]=s,u},t.identity=function(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=1,e[5]=0,e[6]=0,e[7]=0,e[8]=1,e},t.invert=function(e,t){var n=t[0],r=t[1],o=t[2],i=t[3],a=t[4],l=t[5],c=t[6],s=t[7],u=t[8],d=u*a-l*s,f=-u*i+l*c,p=s*i-a*c,h=n*d+r*f+o*p;return h?(h=1/h,e[0]=d*h,e[1]=(-u*r+o*s)*h,e[2]=(l*r-o*a)*h,e[3]=f*h,e[4]=(u*n-o*c)*h,e[5]=(-l*n+o*i)*h,e[6]=p*h,e[7]=(-s*n+r*c)*h,e[8]=(a*n-r*i)*h,e):null},t.mul=void 0,t.multiply=a,t.multiplyScalar=function(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e[3]=t[3]*n,e[4]=t[4]*n,e[5]=t[5]*n,e[6]=t[6]*n,e[7]=t[7]*n,e[8]=t[8]*n,e},t.multiplyScalarAndAdd=function(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e[2]=t[2]+n[2]*r,e[3]=t[3]+n[3]*r,e[4]=t[4]+n[4]*r,e[5]=t[5]+n[5]*r,e[6]=t[6]+n[6]*r,e[7]=t[7]+n[7]*r,e[8]=t[8]+n[8]*r,e},t.normalFromMat4=function(e,t){var n=t[0],r=t[1],o=t[2],i=t[3],a=t[4],l=t[5],c=t[6],s=t[7],u=t[8],d=t[9],f=t[10],p=t[11],h=t[12],g=t[13],v=t[14],m=t[15],y=n*l-r*a,b=n*c-o*a,x=n*s-i*a,w=r*c-o*l,S=r*s-i*l,O=o*s-i*c,_=u*g-d*h,C=u*v-f*h,E=u*m-p*h,P=d*v-f*g,M=d*m-p*g,k=f*m-p*v,A=y*k-b*M+x*P+w*E-S*C+O*_;return A?(A=1/A,e[0]=(l*k-c*M+s*P)*A,e[1]=(c*E-a*k-s*C)*A,e[2]=(a*M-l*E+s*_)*A,e[3]=(o*M-r*k-i*P)*A,e[4]=(n*k-o*E+i*C)*A,e[5]=(r*E-n*M-i*_)*A,e[6]=(g*O-v*S+m*w)*A,e[7]=(v*x-h*O-m*b)*A,e[8]=(h*S-g*x+m*y)*A,e):null},t.projection=function(e,t,n){return e[0]=2/t,e[1]=0,e[2]=0,e[3]=0,e[4]=-2/n,e[5]=0,e[6]=-1,e[7]=1,e[8]=1,e},t.rotate=function(e,t,n){var r=t[0],o=t[1],i=t[2],a=t[3],l=t[4],c=t[5],s=t[6],u=t[7],d=t[8],f=Math.sin(n),p=Math.cos(n);return e[0]=p*r+f*a,e[1]=p*o+f*l,e[2]=p*i+f*c,e[3]=p*a-f*r,e[4]=p*l-f*o,e[5]=p*c-f*i,e[6]=s,e[7]=u,e[8]=d,e},t.scale=function(e,t,n){var r=n[0],o=n[1];return e[0]=r*t[0],e[1]=r*t[1],e[2]=r*t[2],e[3]=o*t[3],e[4]=o*t[4],e[5]=o*t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e},t.set=function(e,t,n,r,o,i,a,l,c,s){return e[0]=t,e[1]=n,e[2]=r,e[3]=o,e[4]=i,e[5]=a,e[6]=l,e[7]=c,e[8]=s,e},t.str=function(e){return"mat3("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+")"},t.sub=void 0,t.subtract=l,t.translate=function(e,t,n){var r=t[0],o=t[1],i=t[2],a=t[3],l=t[4],c=t[5],s=t[6],u=t[7],d=t[8],f=n[0],p=n[1];return e[0]=r,e[1]=o,e[2]=i,e[3]=a,e[4]=l,e[5]=c,e[6]=f*r+p*a+s,e[7]=f*o+p*l+u,e[8]=f*i+p*c+d,e},t.transpose=function(e,t){if(e===t){var n=t[1],r=t[2],o=t[5];e[1]=t[3],e[2]=t[6],e[3]=n,e[5]=t[7],e[6]=r,e[7]=o}else e[0]=t[0],e[1]=t[3],e[2]=t[6],e[3]=t[1],e[4]=t[4],e[5]=t[7],e[6]=t[2],e[7]=t[5],e[8]=t[8];return e};var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var n=i(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&Object.prototype.hasOwnProperty.call(e,l)){var c=a?Object.getOwnPropertyDescriptor(e,l):null;c&&(c.get||c.set)?Object.defineProperty(o,l,c):o[l]=e[l]}return o.default=e,n&&n.set(e,o),o}(n(79));function i(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(i=function(e){return e?n:t})(e)}function a(e,t,n){var r=t[0],o=t[1],i=t[2],a=t[3],l=t[4],c=t[5],s=t[6],u=t[7],d=t[8],f=n[0],p=n[1],h=n[2],g=n[3],v=n[4],m=n[5],y=n[6],b=n[7],x=n[8];return e[0]=f*r+p*a+h*s,e[1]=f*o+p*l+h*u,e[2]=f*i+p*c+h*d,e[3]=g*r+v*a+m*s,e[4]=g*o+v*l+m*u,e[5]=g*i+v*c+m*d,e[6]=y*r+b*a+x*s,e[7]=y*o+b*l+x*u,e[8]=y*i+b*c+x*d,e}function l(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e[2]=t[2]-n[2],e[3]=t[3]-n[3],e[4]=t[4]-n[4],e[5]=t[5]-n[5],e[6]=t[6]-n[6],e[7]=t[7]-n[7],e[8]=t[8]-n[8],e}t.mul=a,t.sub=l},function(e,t,n){"use strict";var r=n(6);Object.defineProperty(t,"__esModule",{value:!0}),t.add=function(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e[2]=t[2]+n[2],e[3]=t[3]+n[3],e[4]=t[4]+n[4],e[5]=t[5]+n[5],e[6]=t[6]+n[6],e[7]=t[7]+n[7],e[8]=t[8]+n[8],e[9]=t[9]+n[9],e[10]=t[10]+n[10],e[11]=t[11]+n[11],e[12]=t[12]+n[12],e[13]=t[13]+n[13],e[14]=t[14]+n[14],e[15]=t[15]+n[15],e},t.adjoint=function(e,t){var n=t[0],r=t[1],o=t[2],i=t[3],a=t[4],l=t[5],c=t[6],s=t[7],u=t[8],d=t[9],f=t[10],p=t[11],h=t[12],g=t[13],v=t[14],m=t[15];return e[0]=l*(f*m-p*v)-d*(c*m-s*v)+g*(c*p-s*f),e[1]=-(r*(f*m-p*v)-d*(o*m-i*v)+g*(o*p-i*f)),e[2]=r*(c*m-s*v)-l*(o*m-i*v)+g*(o*s-i*c),e[3]=-(r*(c*p-s*f)-l*(o*p-i*f)+d*(o*s-i*c)),e[4]=-(a*(f*m-p*v)-u*(c*m-s*v)+h*(c*p-s*f)),e[5]=n*(f*m-p*v)-u*(o*m-i*v)+h*(o*p-i*f),e[6]=-(n*(c*m-s*v)-a*(o*m-i*v)+h*(o*s-i*c)),e[7]=n*(c*p-s*f)-a*(o*p-i*f)+u*(o*s-i*c),e[8]=a*(d*m-p*g)-u*(l*m-s*g)+h*(l*p-s*d),e[9]=-(n*(d*m-p*g)-u*(r*m-i*g)+h*(r*p-i*d)),e[10]=n*(l*m-s*g)-a*(r*m-i*g)+h*(r*s-i*l),e[11]=-(n*(l*p-s*d)-a*(r*p-i*d)+u*(r*s-i*l)),e[12]=-(a*(d*v-f*g)-u*(l*v-c*g)+h*(l*f-c*d)),e[13]=n*(d*v-f*g)-u*(r*v-o*g)+h*(r*f-o*d),e[14]=-(n*(l*v-c*g)-a*(r*v-o*g)+h*(r*c-o*l)),e[15]=n*(l*f-c*d)-a*(r*f-o*d)+u*(r*c-o*l),e},t.clone=function(e){var t=new o.ARRAY_TYPE(16);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t},t.copy=function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e},t.create=function(){var e=new o.ARRAY_TYPE(16);return o.ARRAY_TYPE!=Float32Array&&(e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=0,e[12]=0,e[13]=0,e[14]=0),e[0]=1,e[5]=1,e[10]=1,e[15]=1,e},t.determinant=function(e){var t=e[0],n=e[1],r=e[2],o=e[3],i=e[4],a=e[5],l=e[6],c=e[7],s=e[8],u=e[9],d=e[10],f=e[11],p=e[12],h=e[13],g=e[14],v=e[15];return(t*a-n*i)*(d*v-f*g)-(t*l-r*i)*(u*v-f*h)+(t*c-o*i)*(u*g-d*h)+(n*l-r*a)*(s*v-f*p)-(n*c-o*a)*(s*g-d*p)+(r*c-o*l)*(s*h-u*p)},t.equals=function(e,t){var n=e[0],r=e[1],i=e[2],a=e[3],l=e[4],c=e[5],s=e[6],u=e[7],d=e[8],f=e[9],p=e[10],h=e[11],g=e[12],v=e[13],m=e[14],y=e[15],b=t[0],x=t[1],w=t[2],S=t[3],O=t[4],_=t[5],C=t[6],E=t[7],P=t[8],M=t[9],k=t[10],A=t[11],I=t[12],T=t[13],j=t[14],L=t[15];return Math.abs(n-b)<=o.EPSILON*Math.max(1,Math.abs(n),Math.abs(b))&&Math.abs(r-x)<=o.EPSILON*Math.max(1,Math.abs(r),Math.abs(x))&&Math.abs(i-w)<=o.EPSILON*Math.max(1,Math.abs(i),Math.abs(w))&&Math.abs(a-S)<=o.EPSILON*Math.max(1,Math.abs(a),Math.abs(S))&&Math.abs(l-O)<=o.EPSILON*Math.max(1,Math.abs(l),Math.abs(O))&&Math.abs(c-_)<=o.EPSILON*Math.max(1,Math.abs(c),Math.abs(_))&&Math.abs(s-C)<=o.EPSILON*Math.max(1,Math.abs(s),Math.abs(C))&&Math.abs(u-E)<=o.EPSILON*Math.max(1,Math.abs(u),Math.abs(E))&&Math.abs(d-P)<=o.EPSILON*Math.max(1,Math.abs(d),Math.abs(P))&&Math.abs(f-M)<=o.EPSILON*Math.max(1,Math.abs(f),Math.abs(M))&&Math.abs(p-k)<=o.EPSILON*Math.max(1,Math.abs(p),Math.abs(k))&&Math.abs(h-A)<=o.EPSILON*Math.max(1,Math.abs(h),Math.abs(A))&&Math.abs(g-I)<=o.EPSILON*Math.max(1,Math.abs(g),Math.abs(I))&&Math.abs(v-T)<=o.EPSILON*Math.max(1,Math.abs(v),Math.abs(T))&&Math.abs(m-j)<=o.EPSILON*Math.max(1,Math.abs(m),Math.abs(j))&&Math.abs(y-L)<=o.EPSILON*Math.max(1,Math.abs(y),Math.abs(L))},t.exactEquals=function(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]&&e[4]===t[4]&&e[5]===t[5]&&e[6]===t[6]&&e[7]===t[7]&&e[8]===t[8]&&e[9]===t[9]&&e[10]===t[10]&&e[11]===t[11]&&e[12]===t[12]&&e[13]===t[13]&&e[14]===t[14]&&e[15]===t[15]},t.frob=function(e){return Math.hypot(e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15])},t.fromQuat=function(e,t){var n=t[0],r=t[1],o=t[2],i=t[3],a=n+n,l=r+r,c=o+o,s=n*a,u=r*a,d=r*l,f=o*a,p=o*l,h=o*c,g=i*a,v=i*l,m=i*c;return e[0]=1-d-h,e[1]=u+m,e[2]=f-v,e[3]=0,e[4]=u-m,e[5]=1-s-h,e[6]=p+g,e[7]=0,e[8]=f+v,e[9]=p-g,e[10]=1-s-d,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},t.fromQuat2=function(e,t){var n=new o.ARRAY_TYPE(3),r=-t[0],i=-t[1],a=-t[2],l=t[3],s=t[4],u=t[5],d=t[6],f=t[7],p=r*r+i*i+a*a+l*l;return p>0?(n[0]=2*(s*l+f*r+u*a-d*i)/p,n[1]=2*(u*l+f*i+d*r-s*a)/p,n[2]=2*(d*l+f*a+s*i-u*r)/p):(n[0]=2*(s*l+f*r+u*a-d*i),n[1]=2*(u*l+f*i+d*r-s*a),n[2]=2*(d*l+f*a+s*i-u*r)),c(e,t,n),e},t.fromRotation=function(e,t,n){var r,i,a,l=n[0],c=n[1],s=n[2],u=Math.hypot(l,c,s);return u<o.EPSILON?null:(l*=u=1/u,c*=u,s*=u,r=Math.sin(t),i=Math.cos(t),a=1-i,e[0]=l*l*a+i,e[1]=c*l*a+s*r,e[2]=s*l*a-c*r,e[3]=0,e[4]=l*c*a-s*r,e[5]=c*c*a+i,e[6]=s*c*a+l*r,e[7]=0,e[8]=l*s*a+c*r,e[9]=c*s*a-l*r,e[10]=s*s*a+i,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)},t.fromRotationTranslation=c,t.fromRotationTranslationScale=function(e,t,n,r){var o=t[0],i=t[1],a=t[2],l=t[3],c=o+o,s=i+i,u=a+a,d=o*c,f=o*s,p=o*u,h=i*s,g=i*u,v=a*u,m=l*c,y=l*s,b=l*u,x=r[0],w=r[1],S=r[2];return e[0]=(1-(h+v))*x,e[1]=(f+b)*x,e[2]=(p-y)*x,e[3]=0,e[4]=(f-b)*w,e[5]=(1-(d+v))*w,e[6]=(g+m)*w,e[7]=0,e[8]=(p+y)*S,e[9]=(g-m)*S,e[10]=(1-(d+h))*S,e[11]=0,e[12]=n[0],e[13]=n[1],e[14]=n[2],e[15]=1,e},t.fromRotationTranslationScaleOrigin=function(e,t,n,r,o){var i=t[0],a=t[1],l=t[2],c=t[3],s=i+i,u=a+a,d=l+l,f=i*s,p=i*u,h=i*d,g=a*u,v=a*d,m=l*d,y=c*s,b=c*u,x=c*d,w=r[0],S=r[1],O=r[2],_=o[0],C=o[1],E=o[2],P=(1-(g+m))*w,M=(p+x)*w,k=(h-b)*w,A=(p-x)*S,I=(1-(f+m))*S,T=(v+y)*S,j=(h+b)*O,L=(v-y)*O,R=(1-(f+g))*O;return e[0]=P,e[1]=M,e[2]=k,e[3]=0,e[4]=A,e[5]=I,e[6]=T,e[7]=0,e[8]=j,e[9]=L,e[10]=R,e[11]=0,e[12]=n[0]+_-(P*_+A*C+j*E),e[13]=n[1]+C-(M*_+I*C+L*E),e[14]=n[2]+E-(k*_+T*C+R*E),e[15]=1,e},t.fromScaling=function(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=t[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=t[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},t.fromTranslation=function(e,t){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e},t.fromValues=function(e,t,n,r,i,a,l,c,s,u,d,f,p,h,g,v){var m=new o.ARRAY_TYPE(16);return m[0]=e,m[1]=t,m[2]=n,m[3]=r,m[4]=i,m[5]=a,m[6]=l,m[7]=c,m[8]=s,m[9]=u,m[10]=d,m[11]=f,m[12]=p,m[13]=h,m[14]=g,m[15]=v,m},t.fromXRotation=function(e,t){var n=Math.sin(t),r=Math.cos(t);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=r,e[6]=n,e[7]=0,e[8]=0,e[9]=-n,e[10]=r,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},t.fromYRotation=function(e,t){var n=Math.sin(t),r=Math.cos(t);return e[0]=r,e[1]=0,e[2]=-n,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=n,e[9]=0,e[10]=r,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},t.fromZRotation=function(e,t){var n=Math.sin(t),r=Math.cos(t);return e[0]=r,e[1]=n,e[2]=0,e[3]=0,e[4]=-n,e[5]=r,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},t.frustum=function(e,t,n,r,o,i,a){var l=1/(n-t),c=1/(o-r),s=1/(i-a);return e[0]=2*i*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=2*i*c,e[6]=0,e[7]=0,e[8]=(n+t)*l,e[9]=(o+r)*c,e[10]=(a+i)*s,e[11]=-1,e[12]=0,e[13]=0,e[14]=a*i*2*s,e[15]=0,e},t.getRotation=function(e,t){var n=new o.ARRAY_TYPE(3);s(n,t);var r=1/n[0],i=1/n[1],a=1/n[2],l=t[0]*r,c=t[1]*i,u=t[2]*a,d=t[4]*r,f=t[5]*i,p=t[6]*a,h=t[8]*r,g=t[9]*i,v=t[10]*a,m=l+f+v,y=0;return m>0?(y=2*Math.sqrt(m+1),e[3]=.25*y,e[0]=(p-g)/y,e[1]=(h-u)/y,e[2]=(c-d)/y):l>f&&l>v?(y=2*Math.sqrt(1+l-f-v),e[3]=(p-g)/y,e[0]=.25*y,e[1]=(c+d)/y,e[2]=(h+u)/y):f>v?(y=2*Math.sqrt(1+f-l-v),e[3]=(h-u)/y,e[0]=(c+d)/y,e[1]=.25*y,e[2]=(p+g)/y):(y=2*Math.sqrt(1+v-l-f),e[3]=(c-d)/y,e[0]=(h+u)/y,e[1]=(p+g)/y,e[2]=.25*y),e},t.getScaling=s,t.getTranslation=function(e,t){return e[0]=t[12],e[1]=t[13],e[2]=t[14],e},t.identity=a,t.invert=function(e,t){var n=t[0],r=t[1],o=t[2],i=t[3],a=t[4],l=t[5],c=t[6],s=t[7],u=t[8],d=t[9],f=t[10],p=t[11],h=t[12],g=t[13],v=t[14],m=t[15],y=n*l-r*a,b=n*c-o*a,x=n*s-i*a,w=r*c-o*l,S=r*s-i*l,O=o*s-i*c,_=u*g-d*h,C=u*v-f*h,E=u*m-p*h,P=d*v-f*g,M=d*m-p*g,k=f*m-p*v,A=y*k-b*M+x*P+w*E-S*C+O*_;return A?(A=1/A,e[0]=(l*k-c*M+s*P)*A,e[1]=(o*M-r*k-i*P)*A,e[2]=(g*O-v*S+m*w)*A,e[3]=(f*S-d*O-p*w)*A,e[4]=(c*E-a*k-s*C)*A,e[5]=(n*k-o*E+i*C)*A,e[6]=(v*x-h*O-m*b)*A,e[7]=(u*O-f*x+p*b)*A,e[8]=(a*M-l*E+s*_)*A,e[9]=(r*E-n*M-i*_)*A,e[10]=(h*S-g*x+m*y)*A,e[11]=(d*x-u*S-p*y)*A,e[12]=(l*C-a*P-c*_)*A,e[13]=(n*P-r*C+o*_)*A,e[14]=(g*b-h*w-v*y)*A,e[15]=(u*w-d*b+f*y)*A,e):null},t.lookAt=function(e,t,n,r){var i,l,c,s,u,d,f,p,h,g,v=t[0],m=t[1],y=t[2],b=r[0],x=r[1],w=r[2],S=n[0],O=n[1],_=n[2];return Math.abs(v-S)<o.EPSILON&&Math.abs(m-O)<o.EPSILON&&Math.abs(y-_)<o.EPSILON?a(e):(f=v-S,p=m-O,h=y-_,g=1/Math.hypot(f,p,h),i=x*(h*=g)-w*(p*=g),l=w*(f*=g)-b*h,c=b*p-x*f,(g=Math.hypot(i,l,c))?(i*=g=1/g,l*=g,c*=g):(i=0,l=0,c=0),s=p*c-h*l,u=h*i-f*c,d=f*l-p*i,(g=Math.hypot(s,u,d))?(s*=g=1/g,u*=g,d*=g):(s=0,u=0,d=0),e[0]=i,e[1]=s,e[2]=f,e[3]=0,e[4]=l,e[5]=u,e[6]=p,e[7]=0,e[8]=c,e[9]=d,e[10]=h,e[11]=0,e[12]=-(i*v+l*m+c*y),e[13]=-(s*v+u*m+d*y),e[14]=-(f*v+p*m+h*y),e[15]=1,e)},t.mul=void 0,t.multiply=l,t.multiplyScalar=function(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e[3]=t[3]*n,e[4]=t[4]*n,e[5]=t[5]*n,e[6]=t[6]*n,e[7]=t[7]*n,e[8]=t[8]*n,e[9]=t[9]*n,e[10]=t[10]*n,e[11]=t[11]*n,e[12]=t[12]*n,e[13]=t[13]*n,e[14]=t[14]*n,e[15]=t[15]*n,e},t.multiplyScalarAndAdd=function(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e[2]=t[2]+n[2]*r,e[3]=t[3]+n[3]*r,e[4]=t[4]+n[4]*r,e[5]=t[5]+n[5]*r,e[6]=t[6]+n[6]*r,e[7]=t[7]+n[7]*r,e[8]=t[8]+n[8]*r,e[9]=t[9]+n[9]*r,e[10]=t[10]+n[10]*r,e[11]=t[11]+n[11]*r,e[12]=t[12]+n[12]*r,e[13]=t[13]+n[13]*r,e[14]=t[14]+n[14]*r,e[15]=t[15]+n[15]*r,e},t.ortho=void 0,t.orthoNO=d,t.orthoZO=function(e,t,n,r,o,i,a){var l=1/(t-n),c=1/(r-o),s=1/(i-a);return e[0]=-2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*c,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=s,e[11]=0,e[12]=(t+n)*l,e[13]=(o+r)*c,e[14]=i*s,e[15]=1,e},t.perspective=void 0,t.perspectiveFromFieldOfView=function(e,t,n,r){var o=Math.tan(t.upDegrees*Math.PI/180),i=Math.tan(t.downDegrees*Math.PI/180),a=Math.tan(t.leftDegrees*Math.PI/180),l=Math.tan(t.rightDegrees*Math.PI/180),c=2/(a+l),s=2/(o+i);return e[0]=c,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=s,e[6]=0,e[7]=0,e[8]=-(a-l)*c*.5,e[9]=(o-i)*s*.5,e[10]=r/(n-r),e[11]=-1,e[12]=0,e[13]=0,e[14]=r*n/(n-r),e[15]=0,e},t.perspectiveNO=u,t.perspectiveZO=function(e,t,n,r,o){var i,a=1/Math.tan(t/2);return e[0]=a/n,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=-1,e[12]=0,e[13]=0,e[15]=0,null!=o&&o!==1/0?(i=1/(r-o),e[10]=o*i,e[14]=o*r*i):(e[10]=-1,e[14]=-r),e},t.rotate=function(e,t,n,r){var i,a,l,c,s,u,d,f,p,h,g,v,m,y,b,x,w,S,O,_,C,E,P,M,k=r[0],A=r[1],I=r[2],T=Math.hypot(k,A,I);return T<o.EPSILON?null:(k*=T=1/T,A*=T,I*=T,i=Math.sin(n),a=Math.cos(n),l=1-a,c=t[0],s=t[1],u=t[2],d=t[3],f=t[4],p=t[5],h=t[6],g=t[7],v=t[8],m=t[9],y=t[10],b=t[11],x=k*k*l+a,w=A*k*l+I*i,S=I*k*l-A*i,O=k*A*l-I*i,_=A*A*l+a,C=I*A*l+k*i,E=k*I*l+A*i,P=A*I*l-k*i,M=I*I*l+a,e[0]=c*x+f*w+v*S,e[1]=s*x+p*w+m*S,e[2]=u*x+h*w+y*S,e[3]=d*x+g*w+b*S,e[4]=c*O+f*_+v*C,e[5]=s*O+p*_+m*C,e[6]=u*O+h*_+y*C,e[7]=d*O+g*_+b*C,e[8]=c*E+f*P+v*M,e[9]=s*E+p*P+m*M,e[10]=u*E+h*P+y*M,e[11]=d*E+g*P+b*M,t!==e&&(e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e)},t.rotateX=function(e,t,n){var r=Math.sin(n),o=Math.cos(n),i=t[4],a=t[5],l=t[6],c=t[7],s=t[8],u=t[9],d=t[10],f=t[11];return t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[4]=i*o+s*r,e[5]=a*o+u*r,e[6]=l*o+d*r,e[7]=c*o+f*r,e[8]=s*o-i*r,e[9]=u*o-a*r,e[10]=d*o-l*r,e[11]=f*o-c*r,e},t.rotateY=function(e,t,n){var r=Math.sin(n),o=Math.cos(n),i=t[0],a=t[1],l=t[2],c=t[3],s=t[8],u=t[9],d=t[10],f=t[11];return t!==e&&(e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=i*o-s*r,e[1]=a*o-u*r,e[2]=l*o-d*r,e[3]=c*o-f*r,e[8]=i*r+s*o,e[9]=a*r+u*o,e[10]=l*r+d*o,e[11]=c*r+f*o,e},t.rotateZ=function(e,t,n){var r=Math.sin(n),o=Math.cos(n),i=t[0],a=t[1],l=t[2],c=t[3],s=t[4],u=t[5],d=t[6],f=t[7];return t!==e&&(e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=i*o+s*r,e[1]=a*o+u*r,e[2]=l*o+d*r,e[3]=c*o+f*r,e[4]=s*o-i*r,e[5]=u*o-a*r,e[6]=d*o-l*r,e[7]=f*o-c*r,e},t.scale=function(e,t,n){var r=n[0],o=n[1],i=n[2];return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e[4]=t[4]*o,e[5]=t[5]*o,e[6]=t[6]*o,e[7]=t[7]*o,e[8]=t[8]*i,e[9]=t[9]*i,e[10]=t[10]*i,e[11]=t[11]*i,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e},t.set=function(e,t,n,r,o,i,a,l,c,s,u,d,f,p,h,g,v){return e[0]=t,e[1]=n,e[2]=r,e[3]=o,e[4]=i,e[5]=a,e[6]=l,e[7]=c,e[8]=s,e[9]=u,e[10]=d,e[11]=f,e[12]=p,e[13]=h,e[14]=g,e[15]=v,e},t.str=function(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"},t.sub=void 0,t.subtract=f,t.targetTo=function(e,t,n,r){var o=t[0],i=t[1],a=t[2],l=r[0],c=r[1],s=r[2],u=o-n[0],d=i-n[1],f=a-n[2],p=u*u+d*d+f*f;p>0&&(u*=p=1/Math.sqrt(p),d*=p,f*=p);var h=c*f-s*d,g=s*u-l*f,v=l*d-c*u;return(p=h*h+g*g+v*v)>0&&(h*=p=1/Math.sqrt(p),g*=p,v*=p),e[0]=h,e[1]=g,e[2]=v,e[3]=0,e[4]=d*v-f*g,e[5]=f*h-u*v,e[6]=u*g-d*h,e[7]=0,e[8]=u,e[9]=d,e[10]=f,e[11]=0,e[12]=o,e[13]=i,e[14]=a,e[15]=1,e},t.translate=function(e,t,n){var r,o,i,a,l,c,s,u,d,f,p,h,g=n[0],v=n[1],m=n[2];return t===e?(e[12]=t[0]*g+t[4]*v+t[8]*m+t[12],e[13]=t[1]*g+t[5]*v+t[9]*m+t[13],e[14]=t[2]*g+t[6]*v+t[10]*m+t[14],e[15]=t[3]*g+t[7]*v+t[11]*m+t[15]):(r=t[0],o=t[1],i=t[2],a=t[3],l=t[4],c=t[5],s=t[6],u=t[7],d=t[8],f=t[9],p=t[10],h=t[11],e[0]=r,e[1]=o,e[2]=i,e[3]=a,e[4]=l,e[5]=c,e[6]=s,e[7]=u,e[8]=d,e[9]=f,e[10]=p,e[11]=h,e[12]=r*g+l*v+d*m+t[12],e[13]=o*g+c*v+f*m+t[13],e[14]=i*g+s*v+p*m+t[14],e[15]=a*g+u*v+h*m+t[15]),e},t.transpose=function(e,t){if(e===t){var n=t[1],r=t[2],o=t[3],i=t[6],a=t[7],l=t[11];e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=n,e[6]=t[9],e[7]=t[13],e[8]=r,e[9]=i,e[11]=t[14],e[12]=o,e[13]=a,e[14]=l}else e[0]=t[0],e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=t[1],e[5]=t[5],e[6]=t[9],e[7]=t[13],e[8]=t[2],e[9]=t[6],e[10]=t[10],e[11]=t[14],e[12]=t[3],e[13]=t[7],e[14]=t[11],e[15]=t[15];return e};var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var n=i(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&Object.prototype.hasOwnProperty.call(e,l)){var c=a?Object.getOwnPropertyDescriptor(e,l):null;c&&(c.get||c.set)?Object.defineProperty(o,l,c):o[l]=e[l]}return o.default=e,n&&n.set(e,o),o}(n(79));function i(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(i=function(e){return e?n:t})(e)}function a(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function l(e,t,n){var r=t[0],o=t[1],i=t[2],a=t[3],l=t[4],c=t[5],s=t[6],u=t[7],d=t[8],f=t[9],p=t[10],h=t[11],g=t[12],v=t[13],m=t[14],y=t[15],b=n[0],x=n[1],w=n[2],S=n[3];return e[0]=b*r+x*l+w*d+S*g,e[1]=b*o+x*c+w*f+S*v,e[2]=b*i+x*s+w*p+S*m,e[3]=b*a+x*u+w*h+S*y,b=n[4],x=n[5],w=n[6],S=n[7],e[4]=b*r+x*l+w*d+S*g,e[5]=b*o+x*c+w*f+S*v,e[6]=b*i+x*s+w*p+S*m,e[7]=b*a+x*u+w*h+S*y,b=n[8],x=n[9],w=n[10],S=n[11],e[8]=b*r+x*l+w*d+S*g,e[9]=b*o+x*c+w*f+S*v,e[10]=b*i+x*s+w*p+S*m,e[11]=b*a+x*u+w*h+S*y,b=n[12],x=n[13],w=n[14],S=n[15],e[12]=b*r+x*l+w*d+S*g,e[13]=b*o+x*c+w*f+S*v,e[14]=b*i+x*s+w*p+S*m,e[15]=b*a+x*u+w*h+S*y,e}function c(e,t,n){var r=t[0],o=t[1],i=t[2],a=t[3],l=r+r,c=o+o,s=i+i,u=r*l,d=r*c,f=r*s,p=o*c,h=o*s,g=i*s,v=a*l,m=a*c,y=a*s;return e[0]=1-(p+g),e[1]=d+y,e[2]=f-m,e[3]=0,e[4]=d-y,e[5]=1-(u+g),e[6]=h+v,e[7]=0,e[8]=f+m,e[9]=h-v,e[10]=1-(u+p),e[11]=0,e[12]=n[0],e[13]=n[1],e[14]=n[2],e[15]=1,e}function s(e,t){var n=t[0],r=t[1],o=t[2],i=t[4],a=t[5],l=t[6],c=t[8],s=t[9],u=t[10];return e[0]=Math.hypot(n,r,o),e[1]=Math.hypot(i,a,l),e[2]=Math.hypot(c,s,u),e}function u(e,t,n,r,o){var i,a=1/Math.tan(t/2);return e[0]=a/n,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=-1,e[12]=0,e[13]=0,e[15]=0,null!=o&&o!==1/0?(i=1/(r-o),e[10]=(o+r)*i,e[14]=2*o*r*i):(e[10]=-1,e[14]=-2*r),e}function d(e,t,n,r,o,i,a){var l=1/(t-n),c=1/(r-o),s=1/(i-a);return e[0]=-2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*c,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*s,e[11]=0,e[12]=(t+n)*l,e[13]=(o+r)*c,e[14]=(a+i)*s,e[15]=1,e}function f(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e[2]=t[2]-n[2],e[3]=t[3]-n[3],e[4]=t[4]-n[4],e[5]=t[5]-n[5],e[6]=t[6]-n[6],e[7]=t[7]-n[7],e[8]=t[8]-n[8],e[9]=t[9]-n[9],e[10]=t[10]-n[10],e[11]=t[11]-n[11],e[12]=t[12]-n[12],e[13]=t[13]-n[13],e[14]=t[14]-n[14],e[15]=t[15]-n[15],e}t.perspective=u,t.ortho=d,t.mul=l,t.sub=f},function(e,t,n){"use strict";var r=n(6);Object.defineProperty(t,"__esModule",{value:!0}),t.add=void 0,t.calculateW=function(e,t){var n=t[0],r=t[1],o=t[2];return e[0]=n,e[1]=r,e[2]=o,e[3]=Math.sqrt(Math.abs(1-n*n-r*r-o*o)),e},t.clone=void 0,t.conjugate=function(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=t[3],e},t.copy=void 0,t.create=u,t.exactEquals=t.equals=t.dot=void 0,t.exp=p,t.fromEuler=function(e,t,n,r){var o=.5*Math.PI/180;t*=o,n*=o,r*=o;var i=Math.sin(t),a=Math.cos(t),l=Math.sin(n),c=Math.cos(n),s=Math.sin(r),u=Math.cos(r);return e[0]=i*c*u-a*l*s,e[1]=a*l*u+i*c*s,e[2]=a*c*s-i*l*u,e[3]=a*c*u+i*l*s,e},t.fromMat3=v,t.fromValues=void 0,t.getAngle=function(e,t){var n=y(e,t);return Math.acos(2*n*n-1)},t.getAxisAngle=function(e,t){var n=2*Math.acos(t[3]),r=Math.sin(n/2);return r>o.EPSILON?(e[0]=t[0]/r,e[1]=t[1]/r,e[2]=t[2]/r):(e[0]=1,e[1]=0,e[2]=0),n},t.identity=function(e){return e[0]=0,e[1]=0,e[2]=0,e[3]=1,e},t.invert=function(e,t){var n=t[0],r=t[1],o=t[2],i=t[3],a=n*n+r*r+o*o+i*i,l=a?1/a:0;return e[0]=-n*l,e[1]=-r*l,e[2]=-o*l,e[3]=i*l,e},t.lerp=t.length=t.len=void 0,t.ln=h,t.mul=void 0,t.multiply=f,t.normalize=void 0,t.pow=function(e,t,n){return h(e,t),m(e,e,n),p(e,e),e},t.random=function(e){var t=o.RANDOM(),n=o.RANDOM(),r=o.RANDOM(),i=Math.sqrt(1-t),a=Math.sqrt(t);return e[0]=i*Math.sin(2*Math.PI*n),e[1]=i*Math.cos(2*Math.PI*n),e[2]=a*Math.sin(2*Math.PI*r),e[3]=a*Math.cos(2*Math.PI*r),e},t.rotateX=function(e,t,n){n*=.5;var r=t[0],o=t[1],i=t[2],a=t[3],l=Math.sin(n),c=Math.cos(n);return e[0]=r*c+a*l,e[1]=o*c+i*l,e[2]=i*c-o*l,e[3]=a*c-r*l,e},t.rotateY=function(e,t,n){n*=.5;var r=t[0],o=t[1],i=t[2],a=t[3],l=Math.sin(n),c=Math.cos(n);return e[0]=r*c-i*l,e[1]=o*c+a*l,e[2]=i*c+r*l,e[3]=a*c-o*l,e},t.rotateZ=function(e,t,n){n*=.5;var r=t[0],o=t[1],i=t[2],a=t[3],l=Math.sin(n),c=Math.cos(n);return e[0]=r*c+o*l,e[1]=o*c-r*l,e[2]=i*c+a*l,e[3]=a*c-i*l,e},t.setAxes=t.set=t.scale=t.rotationTo=void 0,t.setAxisAngle=d,t.slerp=g,t.squaredLength=t.sqrLen=t.sqlerp=void 0,t.str=function(e){return"quat("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+")"};var o=s(n(79)),i=s(n(397)),a=s(n(171)),l=s(n(400));function c(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(c=function(e){return e?n:t})(e)}function s(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var n=c(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(o,a,l):o[a]=e[a]}return o.default=e,n&&n.set(e,o),o}function u(){var e=new o.ARRAY_TYPE(4);return o.ARRAY_TYPE!=Float32Array&&(e[0]=0,e[1]=0,e[2]=0),e[3]=1,e}function d(e,t,n){n*=.5;var r=Math.sin(n);return e[0]=r*t[0],e[1]=r*t[1],e[2]=r*t[2],e[3]=Math.cos(n),e}function f(e,t,n){var r=t[0],o=t[1],i=t[2],a=t[3],l=n[0],c=n[1],s=n[2],u=n[3];return e[0]=r*u+a*l+o*s-i*c,e[1]=o*u+a*c+i*l-r*s,e[2]=i*u+a*s+r*c-o*l,e[3]=a*u-r*l-o*c-i*s,e}function p(e,t){var n=t[0],r=t[1],o=t[2],i=t[3],a=Math.sqrt(n*n+r*r+o*o),l=Math.exp(i),c=a>0?l*Math.sin(a)/a:0;return e[0]=n*c,e[1]=r*c,e[2]=o*c,e[3]=l*Math.cos(a),e}function h(e,t){var n=t[0],r=t[1],o=t[2],i=t[3],a=Math.sqrt(n*n+r*r+o*o),l=a>0?Math.atan2(a,i)/a:0;return e[0]=n*l,e[1]=r*l,e[2]=o*l,e[3]=.5*Math.log(n*n+r*r+o*o+i*i),e}function g(e,t,n,r){var i,a,l,c,s,u=t[0],d=t[1],f=t[2],p=t[3],h=n[0],g=n[1],v=n[2],m=n[3];return(a=u*h+d*g+f*v+p*m)<0&&(a=-a,h=-h,g=-g,v=-v,m=-m),1-a>o.EPSILON?(i=Math.acos(a),l=Math.sin(i),c=Math.sin((1-r)*i)/l,s=Math.sin(r*i)/l):(c=1-r,s=r),e[0]=c*u+s*h,e[1]=c*d+s*g,e[2]=c*f+s*v,e[3]=c*p+s*m,e}function v(e,t){var n,r=t[0]+t[4]+t[8];if(r>0)n=Math.sqrt(r+1),e[3]=.5*n,n=.5/n,e[0]=(t[5]-t[7])*n,e[1]=(t[6]-t[2])*n,e[2]=(t[1]-t[3])*n;else{var o=0;t[4]>t[0]&&(o=1),t[8]>t[3*o+o]&&(o=2);var i=(o+1)%3,a=(o+2)%3;n=Math.sqrt(t[3*o+o]-t[3*i+i]-t[3*a+a]+1),e[o]=.5*n,n=.5/n,e[3]=(t[3*i+a]-t[3*a+i])*n,e[i]=(t[3*i+o]+t[3*o+i])*n,e[a]=(t[3*a+o]+t[3*o+a])*n}return e}t.clone=l.clone,t.fromValues=l.fromValues,t.copy=l.copy,t.set=l.set,t.add=l.add,t.mul=f;var m=t.scale=l.scale,y=t.dot=l.dot,b=(t.lerp=l.lerp,t.length=l.length),x=(t.len=b,t.squaredLength=l.squaredLength),w=(t.sqrLen=x,t.normalize=l.normalize);t.exactEquals=l.exactEquals,t.equals=l.equals,t.rotationTo=function(){var e=a.create(),t=a.fromValues(1,0,0),n=a.fromValues(0,1,0);return function(r,o,i){var l=a.dot(o,i);return l<-.999999?(a.cross(e,t,o),a.len(e)<1e-6&&a.cross(e,n,o),a.normalize(e,e),d(r,e,Math.PI),r):l>.999999?(r[0]=0,r[1]=0,r[2]=0,r[3]=1,r):(a.cross(e,o,i),r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=1+l,w(r,r))}}(),t.sqlerp=function(){var e=u(),t=u();return function(n,r,o,i,a,l){return g(e,r,a,l),g(t,o,i,l),g(n,e,t,2*l*(1-l)),n}}(),t.setAxes=function(){var e=i.create();return function(t,n,r,o){return e[0]=r[0],e[3]=r[1],e[6]=r[2],e[1]=o[0],e[4]=o[1],e[7]=o[2],e[2]=-n[0],e[5]=-n[1],e[8]=-n[2],w(t,v(t,e))}}()},function(e,t,n){"use strict";var r=n(6);Object.defineProperty(t,"__esModule",{value:!0}),t.add=function(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e[2]=t[2]+n[2],e[3]=t[3]+n[3],e},t.ceil=function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e[3]=Math.ceil(t[3]),e},t.clone=function(e){var t=new o.ARRAY_TYPE(4);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t},t.copy=function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e},t.create=a,t.cross=function(e,t,n,r){var o=n[0]*r[1]-n[1]*r[0],i=n[0]*r[2]-n[2]*r[0],a=n[0]*r[3]-n[3]*r[0],l=n[1]*r[2]-n[2]*r[1],c=n[1]*r[3]-n[3]*r[1],s=n[2]*r[3]-n[3]*r[2],u=t[0],d=t[1],f=t[2],p=t[3];return e[0]=d*s-f*c+p*l,e[1]=-u*s+f*a-p*i,e[2]=u*c-d*a+p*o,e[3]=-u*l+d*i-f*o,e},t.dist=void 0,t.distance=u,t.div=void 0,t.divide=s,t.dot=function(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3]},t.equals=function(e,t){var n=e[0],r=e[1],i=e[2],a=e[3],l=t[0],c=t[1],s=t[2],u=t[3];return Math.abs(n-l)<=o.EPSILON*Math.max(1,Math.abs(n),Math.abs(l))&&Math.abs(r-c)<=o.EPSILON*Math.max(1,Math.abs(r),Math.abs(c))&&Math.abs(i-s)<=o.EPSILON*Math.max(1,Math.abs(i),Math.abs(s))&&Math.abs(a-u)<=o.EPSILON*Math.max(1,Math.abs(a),Math.abs(u))},t.exactEquals=function(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]},t.floor=function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e[3]=Math.floor(t[3]),e},t.forEach=void 0,t.fromValues=function(e,t,n,r){var i=new o.ARRAY_TYPE(4);return i[0]=e,i[1]=t,i[2]=n,i[3]=r,i},t.inverse=function(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e[3]=1/t[3],e},t.len=void 0,t.length=f,t.lerp=function(e,t,n,r){var o=t[0],i=t[1],a=t[2],l=t[3];return e[0]=o+r*(n[0]-o),e[1]=i+r*(n[1]-i),e[2]=a+r*(n[2]-a),e[3]=l+r*(n[3]-l),e},t.max=function(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e[2]=Math.max(t[2],n[2]),e[3]=Math.max(t[3],n[3]),e},t.min=function(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e[2]=Math.min(t[2],n[2]),e[3]=Math.min(t[3],n[3]),e},t.mul=void 0,t.multiply=c,t.negate=function(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=-t[3],e},t.normalize=function(e,t){var n=t[0],r=t[1],o=t[2],i=t[3],a=n*n+r*r+o*o+i*i;return a>0&&(a=1/Math.sqrt(a)),e[0]=n*a,e[1]=r*a,e[2]=o*a,e[3]=i*a,e},t.random=function(e,t){var n,r,i,a,l,c;t=t||1;do{l=(n=2*o.RANDOM()-1)*n+(r=2*o.RANDOM()-1)*r}while(l>=1);do{c=(i=2*o.RANDOM()-1)*i+(a=2*o.RANDOM()-1)*a}while(c>=1);var s=Math.sqrt((1-l)/c);return e[0]=t*n,e[1]=t*r,e[2]=t*i*s,e[3]=t*a*s,e},t.round=function(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e[3]=Math.round(t[3]),e},t.scale=function(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e[3]=t[3]*n,e},t.scaleAndAdd=function(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e[2]=t[2]+n[2]*r,e[3]=t[3]+n[3]*r,e},t.set=function(e,t,n,r,o){return e[0]=t,e[1]=n,e[2]=r,e[3]=o,e},t.sqrLen=t.sqrDist=void 0,t.squaredDistance=d,t.squaredLength=p,t.str=function(e){return"vec4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+")"},t.sub=void 0,t.subtract=l,t.transformMat4=function(e,t,n){var r=t[0],o=t[1],i=t[2],a=t[3];return e[0]=n[0]*r+n[4]*o+n[8]*i+n[12]*a,e[1]=n[1]*r+n[5]*o+n[9]*i+n[13]*a,e[2]=n[2]*r+n[6]*o+n[10]*i+n[14]*a,e[3]=n[3]*r+n[7]*o+n[11]*i+n[15]*a,e},t.transformQuat=function(e,t,n){var r=t[0],o=t[1],i=t[2],a=n[0],l=n[1],c=n[2],s=n[3],u=s*r+l*i-c*o,d=s*o+c*r-a*i,f=s*i+a*o-l*r,p=-a*r-l*o-c*i;return e[0]=u*s+p*-a+d*-c-f*-l,e[1]=d*s+p*-l+f*-a-u*-c,e[2]=f*s+p*-c+u*-l-d*-a,e[3]=t[3],e},t.zero=function(e){return e[0]=0,e[1]=0,e[2]=0,e[3]=0,e};var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var n=i(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&Object.prototype.hasOwnProperty.call(e,l)){var c=a?Object.getOwnPropertyDescriptor(e,l):null;c&&(c.get||c.set)?Object.defineProperty(o,l,c):o[l]=e[l]}return o.default=e,n&&n.set(e,o),o}(n(79));function i(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(i=function(e){return e?n:t})(e)}function a(){var e=new o.ARRAY_TYPE(4);return o.ARRAY_TYPE!=Float32Array&&(e[0]=0,e[1]=0,e[2]=0,e[3]=0),e}function l(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e[2]=t[2]-n[2],e[3]=t[3]-n[3],e}function c(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e[2]=t[2]*n[2],e[3]=t[3]*n[3],e}function s(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e[2]=t[2]/n[2],e[3]=t[3]/n[3],e}function u(e,t){var n=t[0]-e[0],r=t[1]-e[1],o=t[2]-e[2],i=t[3]-e[3];return Math.hypot(n,r,o,i)}function d(e,t){var n=t[0]-e[0],r=t[1]-e[1],o=t[2]-e[2],i=t[3]-e[3];return n*n+r*r+o*o+i*i}function f(e){var t=e[0],n=e[1],r=e[2],o=e[3];return Math.hypot(t,n,r,o)}function p(e){var t=e[0],n=e[1],r=e[2],o=e[3];return t*t+n*n+r*r+o*o}t.sub=l,t.mul=c,t.div=s,t.dist=u,t.sqrDist=d,t.len=f,t.sqrLen=p,t.forEach=function(){var e=a();return function(t,n,r,o,i,a){var l,c;for(n||(n=4),r||(r=0),c=o?Math.min(o*n+r,t.length):t.length,l=r;l<c;l+=n)e[0]=t[l],e[1]=t[l+1],e[2]=t[l+2],e[3]=t[l+3],i(e,e,a),t[l]=e[0],t[l+1]=e[1],t[l+2]=e[2],t[l+3]=e[3];return t}}()},function(e,t,n){"use strict";var r=n(6);Object.defineProperty(t,"__esModule",{value:!0}),t.add=function(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e},t.angle=function(e,t){var n=e[0],r=e[1],o=t[0],i=t[1],a=Math.sqrt(n*n+r*r)*Math.sqrt(o*o+i*i),l=a&&(n*o+r*i)/a;return Math.acos(Math.min(Math.max(l,-1),1))},t.ceil=function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e},t.clone=function(e){var t=new o.ARRAY_TYPE(2);return t[0]=e[0],t[1]=e[1],t},t.copy=function(e,t){return e[0]=t[0],e[1]=t[1],e},t.create=a,t.cross=function(e,t,n){var r=t[0]*n[1]-t[1]*n[0];return e[0]=e[1]=0,e[2]=r,e},t.dist=void 0,t.distance=u,t.div=void 0,t.divide=s,t.dot=function(e,t){return e[0]*t[0]+e[1]*t[1]},t.equals=function(e,t){var n=e[0],r=e[1],i=t[0],a=t[1];return Math.abs(n-i)<=o.EPSILON*Math.max(1,Math.abs(n),Math.abs(i))&&Math.abs(r-a)<=o.EPSILON*Math.max(1,Math.abs(r),Math.abs(a))},t.exactEquals=function(e,t){return e[0]===t[0]&&e[1]===t[1]},t.floor=function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e},t.forEach=void 0,t.fromValues=function(e,t){var n=new o.ARRAY_TYPE(2);return n[0]=e,n[1]=t,n},t.inverse=function(e,t){return e[0]=1/t[0],e[1]=1/t[1],e},t.len=void 0,t.length=f,t.lerp=function(e,t,n,r){var o=t[0],i=t[1];return e[0]=o+r*(n[0]-o),e[1]=i+r*(n[1]-i),e},t.max=function(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e},t.min=function(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e},t.mul=void 0,t.multiply=c,t.negate=function(e,t){return e[0]=-t[0],e[1]=-t[1],e},t.normalize=function(e,t){var n=t[0],r=t[1],o=n*n+r*r;return o>0&&(o=1/Math.sqrt(o)),e[0]=t[0]*o,e[1]=t[1]*o,e},t.random=function(e,t){t=t||1;var n=2*o.RANDOM()*Math.PI;return e[0]=Math.cos(n)*t,e[1]=Math.sin(n)*t,e},t.rotate=function(e,t,n,r){var o=t[0]-n[0],i=t[1]-n[1],a=Math.sin(r),l=Math.cos(r);return e[0]=o*l-i*a+n[0],e[1]=o*a+i*l+n[1],e},t.round=function(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e},t.scale=function(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e},t.scaleAndAdd=function(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e},t.set=function(e,t,n){return e[0]=t,e[1]=n,e},t.sqrLen=t.sqrDist=void 0,t.squaredDistance=d,t.squaredLength=p,t.str=function(e){return"vec2("+e[0]+", "+e[1]+")"},t.sub=void 0,t.subtract=l,t.transformMat2=function(e,t,n){var r=t[0],o=t[1];return e[0]=n[0]*r+n[2]*o,e[1]=n[1]*r+n[3]*o,e},t.transformMat2d=function(e,t,n){var r=t[0],o=t[1];return e[0]=n[0]*r+n[2]*o+n[4],e[1]=n[1]*r+n[3]*o+n[5],e},t.transformMat3=function(e,t,n){var r=t[0],o=t[1];return e[0]=n[0]*r+n[3]*o+n[6],e[1]=n[1]*r+n[4]*o+n[7],e},t.transformMat4=function(e,t,n){var r=t[0],o=t[1];return e[0]=n[0]*r+n[4]*o+n[12],e[1]=n[1]*r+n[5]*o+n[13],e},t.zero=function(e){return e[0]=0,e[1]=0,e};var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var n=i(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&Object.prototype.hasOwnProperty.call(e,l)){var c=a?Object.getOwnPropertyDescriptor(e,l):null;c&&(c.get||c.set)?Object.defineProperty(o,l,c):o[l]=e[l]}return o.default=e,n&&n.set(e,o),o}(n(79));function i(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(i=function(e){return e?n:t})(e)}function a(){var e=new o.ARRAY_TYPE(2);return o.ARRAY_TYPE!=Float32Array&&(e[0]=0,e[1]=0),e}function l(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function c(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e}function s(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e}function u(e,t){var n=t[0]-e[0],r=t[1]-e[1];return Math.hypot(n,r)}function d(e,t){var n=t[0]-e[0],r=t[1]-e[1];return n*n+r*r}function f(e){var t=e[0],n=e[1];return Math.hypot(t,n)}function p(e){var t=e[0],n=e[1];return t*t+n*n}t.len=f,t.sub=l,t.mul=c,t.div=s,t.dist=u,t.sqrDist=d,t.sqrLen=p,t.forEach=function(){var e=a();return function(t,n,r,o,i,a){var l,c;for(n||(n=2),r||(r=0),c=o?Math.min(o*n+r,t.length):t.length,l=r;l<c;l+=n)e[0]=t[l],e[1]=t[l+1],i(e,e,a),t[l]=e[0],t[l+1]=e[1];return t}}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.radians=t.degrees=void 0,t.radians=Math.PI/180,t.degrees=180/Math.PI},function(e,t,n){"use strict";var r=n(2),o=n(6);Object.defineProperty(t,"__esModule",{value:!0}),t.rgbBasisClosed=t.rgbBasis=t.default=void 0;var i=n(60),a=r(n(246)),l=r(n(404)),c=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!==typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(r,a,l):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}(n(108));function s(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}function u(e){return function(t){var n,r,o=t.length,a=new Array(o),l=new Array(o),c=new Array(o);for(n=0;n<o;++n)r=(0,i.rgb)(t[n]),a[n]=r.r||0,l[n]=r.g||0,c[n]=r.b||0;return a=e(a),l=e(l),c=e(c),r.opacity=1,function(e){return r.r=a(e),r.g=l(e),r.b=c(e),r+""}}}t.default=function e(t){var n=(0,c.gamma)(t);function r(e,t){var r=n((e=(0,i.rgb)(e)).r,(t=(0,i.rgb)(t)).r),o=n(e.g,t.g),a=n(e.b,t.b),l=(0,c.default)(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=a(t),e.opacity=l(t),e+""}}return r.gamma=e,r}(1),t.rgbBasis=u(a.default),t.rgbBasisClosed=u(l.default)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.length;return function(n){var o=Math.floor(((n%=1)<0?++n:n)*t),i=e[(o+t-1)%t],a=e[o%t],l=e[(o+1)%t],c=e[(o+2)%t];return(0,r.basis)((n-o/t)*t,i,a,l,c)}};var r=n(246)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(e){return function(){return e}}},function(e,t,n){"use strict";var r=n(2),o=n(6);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return((0,a.isNumberArray)(t)?a.default:c)(e,t)},t.genericArray=c;var i=r(n(172)),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!==typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var c=i?Object.getOwnPropertyDescriptor(e,a):null;c&&(c.get||c.set)?Object.defineProperty(r,a,c):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}(n(247));function l(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}function c(e,t){var n,r=t?t.length:0,o=e?Math.min(r,e.length):0,a=new Array(o),l=new Array(r);for(n=0;n<o;++n)a[n]=(0,i.default)(e[n],t[n]);for(;n<r;++n)l[n]=t[n];return function(e){for(n=0;n<o;++n)l[n]=a[n](e);return l}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n,r={},a={};for(n in null!==e&&"object"===(0,o.default)(e)||(e={}),null!==t&&"object"===(0,o.default)(t)||(t={}),t)n in e?r[n]=(0,i.default)(e[n],t[n]):a[n]=t[n];return function(e){for(n in r)a[n]=r[n](e);return a}};var o=r(n(6)),i=r(n(172))},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n,r,l,c=i.lastIndex=a.lastIndex=0,s=-1,u=[],d=[];for(e+="",t+="";(n=i.exec(e))&&(r=a.exec(t));)(l=r.index)>c&&(l=t.slice(c,l),u[s]?u[s]+=l:u[++s]=l),(n=n[0])===(r=r[0])?u[s]?u[s]+=r:u[++s]=r:(u[++s]=null,d.push({i:s,x:(0,o.default)(n,r)})),c=a.lastIndex;return c<t.length&&(l=t.slice(c),u[s]?u[s]+=l:u[++s]=l),u.length<2?d[0]?function(e){return function(t){return e(t)+""}}(d[0].x):function(e){return function(){return e}}(t):(t=d.length,function(e){for(var n,r=0;r<t;++r)u[(n=d[r]).i]=n.x(e);return u.join("")})};var o=r(n(173)),i=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,a=new RegExp(i.source,"g")},function(e,t,n){"use strict";var r=n(6);Object.defineProperty(t,"__esModule",{value:!0}),t.getEasing=function(e){return a[e.toLowerCase()]||o[e]},t.registerEasing=function(e,t){a[e.toLowerCase()]=t};var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var n=i(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&Object.prototype.hasOwnProperty.call(e,l)){var c=a?Object.getOwnPropertyDescriptor(e,l):null;c&&(c.get||c.set)?Object.defineProperty(o,l,c):o[l]=e[l]}return o.default=e,n&&n.set(e,o),o}(n(777));function i(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(i=function(e){return e?n:t})(e)}var a={}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tpmt=function(e){return 1.0009775171065494*(Math.pow(2,-10*e)-.0009765625)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nearestPoint=function(e,t,n,i,a,l){var c,s=1/0,u=[n,i],d=20;l&&l>200&&(d=l/10);for(var f=1/d,p=f/10,h=0;h<=d;h++){var g=h*f,v=[a.apply(null,e.concat([g])),a.apply(null,t.concat([g]))];(x=(0,r.distance)(u[0],u[1],v[0],v[1]))<s&&(c=g,s=x)}if(0===c)return{x:e[0],y:t[0]};if(1===c){var m=e.length;return{x:e[m-1],y:t[m-1]}}for(s=1/0,h=0;h<32&&!(p<o);h++){var y=c-p,b=c+p,x=(v=[a.apply(null,e.concat([y])),a.apply(null,t.concat([y]))],(0,r.distance)(u[0],u[1],v[0],v[1]));if(y>=0&&x<s)c=y,s=x;else{var w=[a.apply(null,e.concat([b])),a.apply(null,t.concat([b]))],S=(0,r.distance)(u[0],u[1],w[0],w[1]);b<=1&&S<s?(c=b,s=S):p*=.5}}return{x:a.apply(null,e.concat([c])),y:a.apply(null,t.concat([c]))}},t.snapLength=function(e,t){for(var n=0,o=e.length,i=0;i<o;i++){var a=e[i],l=t[i],c=e[(i+1)%o],s=t[(i+1)%o];n+=(0,r.distance)(a,l,c,s)}return n/2};var r=n(87),o=1e-4},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.angleAtSegments=function(e,t){if(t>1||t<0||e.length<2)return 0;for(var n=a(e),r=n.segments,o=n.totalLength,i=0,l=0,c=0;c<r.length;c++){var s=r[c],u=s.from,d=s.to,f=s.length/o;if(t>=i&&t<=i+f){l=Math.atan2(d[1]-u[1],d[0]-u[0]);break}i+=f}return l},t.distanceAtSegment=function(e,t,n){for(var r=1/0,i=0;i<e.length-1;i++){var a=e[i],l=e[i+1],c=o.default.pointDistance(a[0],a[1],l[0],l[1],t,n);c<r&&(r=c)}return r},t.lengthOfSegment=function(e){if(e.length<2)return 0;for(var t=0,n=0;n<e.length-1;n++){var r=e[n],o=e[n+1];t+=(0,i.distance)(r[0],r[1],o[0],o[1])}return t},t.pointAtSegments=function(e,t){if(t>1||t<0||e.length<2)return null;var n=a(e),r=n.segments,i=n.totalLength;if(0===i)return{x:e[0][0],y:e[0][1]};for(var l=0,c=null,s=0;s<r.length;s++){var u=r[s],d=u.from,f=u.to,p=u.length/i;if(t>=l&&t<=l+p){var h=(t-l)/p;c=o.default.pointAt(d[0],d[1],f[0],f[1],h);break}l+=p}return c};var o=r(n(174)),i=n(87);function a(e){for(var t=0,n=[],r=0;r<e.length-1;r++){var o=e[r],a=e[r+1],l=(0,i.distance)(o[0],o[1],a[0],a[1]),c={from:o,to:a,length:l};n.push(c),t+=l}return{segments:n,totalLength:t}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(413),o=n(87);t.default={box:function(e){for(var t=[],n=[],r=0;r<e.length;r++){var i=e[r];t.push(i[0]),n.push(i[1])}return(0,o.getBBoxByArray)(t,n)},length:function(e){return(0,r.lengthOfSegment)(e)},pointAt:function(e,t){return(0,r.pointAtSegments)(e,t)},pointDistance:function(e,t,n){return(0,r.distanceAtSegment)(e,t,n)},tangentAngle:function(e,t){return(0,r.angleAtSegments)(e,t)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assembleFont=function(e){var t=e.fontSize,n=e.fontFamily,r=e.fontWeight,o=e.fontStyle,i=e.fontVariant;return[o,i,r,t+"px",n].join(" ").trim()},t.getLineSpaceing=i,t.getTextHeight=function(e,t,n){var o=1;return(0,r.isString)(e)&&(o=e.split("\n").length),o>1?t*o+i(t,n)*(o-1):t},t.getTextWidth=function(e,t){var n=(0,o.getOffScreenContext)(),i=0;if((0,r.isNil)(e)||""===e)return i;if(n.save(),n.font=t,(0,r.isString)(e)&&e.includes("\n")){var a=e.split("\n");(0,r.each)(a,(function(e){var t=n.measureText(e).width;i<t&&(i=t)}))}else i=n.measureText(e).width;return n.restore(),i};var r=n(101),o=n(416);function i(e,t){return t?t-e:.14*e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getOffScreenContext=function(){if(!r){var e=document.createElement("canvas");e.width=1,e.height=1,r=e.getContext("2d")}return r};var r=null},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(0),o=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,i=/[^\s\,]+/gi;t.default=function(e){var t=e||[];return(0,r.isArray)(t)?t:(0,r.isString)(t)?(t=t.match(o),(0,r.each)(t,(function(e,n){if((e=e.match(i))[0].length>1){var o=e[0].charAt(0);e.splice(1,0,e[0].substr(1)),e[0]=o}(0,r.each)(e,(function(t,n){isNaN(t)||(e[n]=+t)})),t[n]=e})),t):void 0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,r,o){return o?[["M",+e+ +o,t],["l",n-2*o,0],["a",o,o,0,0,1,o,o],["l",0,r-2*o],["a",o,o,0,0,1,-o,o],["l",2*o-n,0],["a",o,o,0,0,1,-o,-o],["l",0,2*o-r],["a",o,o,0,0,1,o,-o],["z"]]:[["M",e,t],["l",n,0],["l",0,r],["l",-n,0],["z"]]}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){void 0===t&&(t=!1);for(var n,r,l=(0,o.default)(e),c={x1:0,y1:0,x2:0,y2:0,x:0,y:0,qx:null,qy:null},s=[],u="",d=l.length,f=[],p=0;p<d;p+=1)l[p]&&(u=l[p][0]),s[p]=u,l[p]=(0,i.segmentToCubic)(l[p],c),a(l,s,p),d=l.length,"Z"===u&&f.push(p),r=(n=l[p]).length,c.x1=+n[r-2],c.y1=+n[r-1],c.x2=+n[r-4]||c.x1,c.y2=+n[r-3]||c.y1;return t?[l,f]:l};var o=r(n(420)),i=n(812);function a(e,t,n){if(e[n].length>7){e[n].shift();for(var r=e[n],o=n;r.length;)t[n]="A",e.splice(o+=1,0,["C"].concat(r.splice(0,6)));e.splice(n,1)}}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=(0,o.default)(e);if(!t||!t.length)return[["M",0,0]];for(var n=!1,r=0;r<t.length;r++){var l=t[r][0];if(i.test(l)||["V","H","T","S"].indexOf(l)>=0){n=!0;break}}if(!n)return t;var c=[],s=0,u=0,d=0,f=0,p=0,h=t[0];"M"!==h[0]&&"m"!==h[0]||(d=s=+h[1],f=u=+h[2],p++,c[0]=["M",s,u]),r=p;for(var g=t.length;r<g;r++){var v=t[r],m=c[r-1],y=[],b=(l=v[0]).toUpperCase();if(l!==b)switch(y[0]=b,b){case"A":y[1]=v[1],y[2]=v[2],y[3]=v[3],y[4]=v[4],y[5]=v[5],y[6]=+v[6]+s,y[7]=+v[7]+u;break;case"V":y[1]=+v[1]+u;break;case"H":y[1]=+v[1]+s;break;case"M":d=+v[1]+s,f=+v[2]+u,y[1]=d,y[2]=f;break;default:for(var x=1,w=v.length;x<w;x++)y[x]=+v[x]+(x%2?s:u)}else y=t[r];switch(b){case"Z":s=+d,u=+f;break;case"H":y=["L",s=y[1],u];break;case"V":y=["L",s,u=y[1]];break;case"T":s=y[1],u=y[2];var S=a([m[1],m[2]],[m[3],m[4]]);y=["Q",S[0],S[1],s,u];break;case"S":s=y[y.length-2],u=y[y.length-1];var O=m.length,_=a([m[O-4],m[O-3]],[m[O-2],m[O-1]]);y=["C",_[0],_[1],y[1],y[2],s,u];break;case"M":d=y[y.length-2],f=y[y.length-1];break;default:s=y[y.length-2],u=y[y.length-1]}c.push(y)}return c};var o=r(n(421)),i=/[a-z]/;function a(e,t){return[t[0]+(t[0]-e[0]),t[1]+(t[1]-e[1])]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(!e)return null;if((0,r.isArray)(e))return e;var t={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},n=[];return String(e).replace(i,(function(e,r,o){var i=[],l=r.toLowerCase();if(o.replace(a,(function(e,t){t&&i.push(+t)})),"m"===l&&i.length>2&&(n.push([r].concat(i.splice(0,2))),l="l",r="m"===r?"l":"L"),"o"===l&&1===i.length&&n.push([r,i[0]]),"r"===l)n.push([r].concat(i));else for(;i.length>=t[l]&&(n.push([r].concat(i.splice(0,t[l]))),t[l]););return""})),n};var r=n(0),o="\t\n\v\f\r \xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029",i=new RegExp("([a-z])["+o+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+o+"]*,?["+o+"]*)+)","ig"),a=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+o+"]*,?["+o+"]*","ig")},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=t[1],o=t[2],c=(0,r.mod)((0,r.toRadian)(t[3]),2*Math.PI),s=t[4],u=t[5],d=e[0],f=e[1],p=t[6],h=t[7],g=Math.cos(c)*(d-p)/2+Math.sin(c)*(f-h)/2,v=-1*Math.sin(c)*(d-p)/2+Math.cos(c)*(f-h)/2,m=g*g/(n*n)+v*v/(o*o);m>1&&(n*=Math.sqrt(m),o*=Math.sqrt(m));var y=n*n*(v*v)+o*o*(g*g),b=y?Math.sqrt((n*n*(o*o)-y)/y):1;s===u&&(b*=-1),isNaN(b)&&(b=0);var x=o?b*n*v/o:0,w=n?b*-o*g/n:0,S=(d+p)/2+Math.cos(c)*x-Math.sin(c)*w,O=(f+h)/2+Math.sin(c)*x+Math.cos(c)*w,_=[(g-x)/n,(v-w)/o],C=[(-1*g-x)/n,(-1*v-w)/o],E=a([1,0],_),P=a(_,C);return i(_,C)<=-1&&(P=Math.PI),i(_,C)>=1&&(P=0),0===u&&P>0&&(P-=2*Math.PI),1===u&&P<0&&(P+=2*Math.PI),{cx:S,cy:O,rx:l(e,[p,h])?0:n,ry:l(e,[p,h])?0:o,startAngle:E,endAngle:E+P,xRotation:c,arcFlag:s,sweepFlag:u}},t.isSamePoint=l;var r=n(0);function o(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function i(e,t){return o(e)*o(t)?(e[0]*t[0]+e[1]*t[1])/(o(e)*o(t)):1}function a(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(i(e,t))}function l(e,t){return e[0]===t[0]&&e[1]===t[1]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,o){var i={x:n.x-e.x,y:n.y-e.y},a={x:t.x-e.x,y:t.y-e.y},l={x:o.x-n.x,y:o.y-n.y},c=a.x*l.y-a.y*l.x,s=null;if(c*c>.001*(a.x*a.x+a.y*a.y)*(l.x*l.x+l.y*l.y)){var u=(i.x*l.y-i.y*l.x)/c,d=(i.x*a.y-i.y*a.x)/c;r(u,0,1)&&r(d,0,1)&&(s={x:e.x+u*a.x,y:e.y+u*a.y})}return s};var r=function(e,t,n){return e>=t&&e<=n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var r=!1,a=e.length;if(a<=2)return!1;for(var l=0;l<a;l++){var c=e[l],s=e[(l+1)%a];if(i(c,s,[t,n]))return!0;o(c[1]-n)>0!==o(s[1]-n)>0&&o(t-(n-c[1])*(c[0]-s[0])/(c[1]-s[1])-c[0])<0&&(r=!r)}return r};var r=1e-6;function o(e){return Math.abs(e)<r?0:e<0?-1:1}function i(e,t,n){return(n[0]-e[0])*(t[1]-e[1])===(t[0]-e[0])*(n[1]-e[1])&&Math.min(e[0],t[0])<=n[0]&&n[0]<=Math.max(e[0],t[0])&&Math.min(e[1],t[1])<=n[1]&&n[1]<=Math.max(e[1],t[1])}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0});var o={getAdjust:!0,registerAdjust:!0,Adjust:!0};Object.defineProperty(t,"Adjust",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"getAdjust",{enumerable:!0,get:function(){return i.getAdjust}}),Object.defineProperty(t,"registerAdjust",{enumerable:!0,get:function(){return i.registerAdjust}});var i=n(821),a=r(n(109)),l=r(n(822)),c=r(n(823)),s=r(n(824)),u=r(n(825)),d=n(426);Object.keys(d).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(o,e)||e in t&&t[e]===d[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return d[e]}}))})),(0,i.registerAdjust)("Dodge",l.default),(0,i.registerAdjust)("Jitter",c.default),(0,i.registerAdjust)("Stack",s.default),(0,i.registerAdjust)("Symmetric",u.default)},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Scale",{enumerable:!0,get:function(){return r.Scale}});var r=n(66)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTickMethod=function(e){return r[e]},t.registerTickMethod=function(e,t){r[e]=t};var r={}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(1),i=n(0),a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="cat",t.isCategory=!0,t}return(0,o.__extends)(t,e),t.prototype.buildIndexMap=function(){if(!this.translateIndexMap){this.translateIndexMap=new Map;for(var e=0;e<this.values.length;e++)this.translateIndexMap.set(this.values[e],e)}},t.prototype.translate=function(e){this.buildIndexMap();var t=this.translateIndexMap.get(e);return void 0===t&&(t=(0,i.isNumber)(e)?e:NaN),t},t.prototype.scale=function(e){var t=this.translate(e),n=this.calcPercent(t,this.min,this.max);return this.calcValue(n,this.rangeMin(),this.rangeMax())},t.prototype.invert=function(e){var t=this.max-this.min,n=this.calcPercent(e,this.rangeMin(),this.rangeMax()),r=Math.round(t*n)+this.min;return r<this.min||r>this.max?NaN:this.values[r]},t.prototype.getText=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var a=t;return(0,i.isNumber)(t)&&!this.values.includes(t)&&(a=this.values[a]),e.prototype.getText.apply(this,(0,o.__spreadArrays)([a],n))},t.prototype.initCfg=function(){this.tickMethod="cat"},t.prototype.setDomain=function(){if((0,i.isNil)(this.getConfig("min"))&&(this.min=0),(0,i.isNil)(this.getConfig("max"))){var e=this.values.length;this.max=e>1?e-1:e}this.translateIndexMap&&(this.translateIndexMap=void 0)},t}(r(n(141)).default);t.default=a},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(1),i=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="linear",t.isLinear=!0,t}return(0,o.__extends)(t,e),t.prototype.invert=function(e){var t=this.getInvertPercent(e);return this.min+t*(this.max-this.min)},t.prototype.initCfg=function(){this.tickMethod="wilkinson-extended",this.nice=!1},t}(r(n(177)).default);t.default=i},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(1),i=n(0),a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="quantize",t}return(0,o.__extends)(t,e),t.prototype.invert=function(e){var t=this.ticks,n=t.length,r=this.getInvertPercent(e),o=Math.floor(r*(n-1));if(o>=n-1)return(0,i.last)(t);if(o<0)return(0,i.head)(t);var a=t[o],l=o/(n-1);return a+(r-l)/((o+1)/(n-1)-l)*(t[o+1]-a)},t.prototype.initCfg=function(){this.tickMethod="r-pretty",this.tickCount=5,this.nice=!0},t.prototype.calculateTicks=function(){var t=e.prototype.calculateTicks.call(this);return this.nice||((0,i.last)(t)!==this.max&&t.push(this.max),(0,i.head)(t)!==this.min&&t.unshift(this.min)),t},t.prototype.getScalePercent=function(e){var t=this.ticks;if(e<(0,i.head)(t))return 0;if(e>(0,i.last)(t))return 1;var n=0;return(0,i.each)(t,(function(t,r){if(!(e>=t))return!1;n=r})),n/(t.length-1)},t}(r(n(177)).default);t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.values,n=e.tickInterval,o=e.tickCount,i=e.showLast;if((0,r.isNumber)(n)){var a=(0,r.filter)(t,(function(e,t){return t%n===0})),l=(0,r.last)(t);return i&&(0,r.last)(a)!==l&&a.push(l),a}var c=t.length,s=e.min,u=e.max;if((0,r.isNil)(s)&&(s=0),(0,r.isNil)(u)&&(u=t.length-1),!(0,r.isNumber)(o)||o>=c)return t.slice(s,u+1);if(o<=0||u<=0)return[];for(var d=1===o?c:Math.floor(c/(o-1)),f=[],p=s,h=0;h<o&&!(p>=u);h++)p=Math.min(s+h*d,u),h===o-1&&i?f.push(t[u]):f.push(t[p]);return f};var r=n(0)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.prettyNumber=function(e){return Math.abs(e)<1e-15?e:parseFloat(e.toFixed(15))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){if(void 0===n&&(n=5),e===t)return{max:t,min:e,ticks:[e]};var o=n<0?0:Math.round(n);if(0===o)return{max:t,min:e,ticks:[]};var i=(t-e)/o,a=Math.pow(10,Math.floor(Math.log10(i))),l=a;2*a-i<1.5*(i-l)&&5*a-i<2.75*(i-(l=2*a))&&10*a-i<1.5*(i-(l=5*a))&&(l=10*a);for(var c=Math.ceil(t/l),s=Math.floor(e/l),u=Math.max(c*l,t),d=Math.min(s*l,e),f=Math.floor((u-d)/l)+1,p=new Array(f),h=0;h<f;h++)p[h]=(0,r.prettyNumber)(d+h*l);return{min:d,max:u,ticks:p}};var r=n(433)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.propagationDelegate=function(e,t,n){var o=new r.Event(t,n);o.target=e,o.propagationPath.push(e),e.emitDelegation(t,o);for(var i=e.getParent();i;)i.emitDelegation(t,o),o.propagationPath.push(i),i=i.getParent()};var r=n(26)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getStatesStyle=function(e,t,n){var o=t+"Style",i=null;return(0,r.each)(n,(function(t,n){e[n]&&t[o]&&(i||(i={}),(0,r.mix)(i,t[o]))})),i};var r=n(0)},function(e,t,n){"use strict";var r=n(6);Object.defineProperty(t,"__esModule",{value:!0}),t.autoRotate=t.autoHide=t.autoEllipsis=void 0;var o=c(n(873));t.autoEllipsis=o;var i=c(n(874));t.autoHide=i;var a=c(n(875));function l(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}function c(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var c=i?Object.getOwnPropertyDescriptor(e,a):null;c&&(c.get||c.set)?Object.defineProperty(o,a,c):o[a]=e[a]}return o.default=e,n&&n.set(e,o),o}t.autoRotate=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CROSSHAIR_TEXT=t.CROSSHAIR_LINE=t.CONTAINER_CLASS=void 0;var r=t.CONTAINER_CLASS="g2-crosshair";t.CROSSHAIR_LINE=r+"-line",t.CROSSHAIR_TEXT=r+"-text"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.registerAnimation=t.getAnimation=void 0;var r={};t.getAnimation=function(e){return r[e.toLowerCase()]},t.registerAnimation=function(e,t){r[e.toLowerCase()]=t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseRadius=t.parseStyle=t.parsePattern=t.parseRadialGradient=t.parseLineGradient=void 0;var r=n(51),o=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,i=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,a=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,l=/[\d.]+:(#[^\s]+|[^\)]+\))/gi;function c(e,t){var n=e.match(l);r.each(n,(function(e){var n=e.split(":");t.addColorStop(n[0],n[1])}))}function s(e,t,n){var r,i,a=o.exec(n),l=parseFloat(a[1])%360*(Math.PI/180),s=a[2],u=t.getBBox();l>=0&&l<.5*Math.PI?(r={x:u.minX,y:u.minY},i={x:u.maxX,y:u.maxY}):.5*Math.PI<=l&&l<Math.PI?(r={x:u.maxX,y:u.minY},i={x:u.minX,y:u.maxY}):Math.PI<=l&&l<1.5*Math.PI?(r={x:u.maxX,y:u.maxY},i={x:u.minX,y:u.minY}):(r={x:u.minX,y:u.maxY},i={x:u.maxX,y:u.minY});var d=Math.tan(l),f=d*d,p=(i.x-r.x+d*(i.y-r.y))/(f+1)+r.x,h=d*(i.x-r.x+d*(i.y-r.y))/(f+1)+r.y,g=e.createLinearGradient(r.x,r.y,p,h);return c(s,g),g}function u(e,t,n){var r=i.exec(n),o=parseFloat(r[1]),a=parseFloat(r[2]),s=parseFloat(r[3]),u=r[4];if(0===s){var d=u.match(l);return d[d.length-1].split(":")[1]}var f=t.getBBox(),p=f.maxX-f.minX,h=f.maxY-f.minY,g=Math.sqrt(p*p+h*h)/2,v=e.createRadialGradient(f.minX+p*o,f.minY+h*a,0,f.minX+p/2,f.minY+h/2,s*g);return c(u,v),v}function d(e,t,n){if(t.get("patternSource")&&t.get("patternSource")===n)return t.get("pattern");var r,o,i=a.exec(n),l=i[1],c=i[2];function s(){r=e.createPattern(o,l),t.set("pattern",r),t.set("patternSource",n)}switch(l){case"a":l="repeat";break;case"x":l="repeat-x";break;case"y":l="repeat-y";break;default:l="no-repeat"}return o=new Image,c.match(/^data:/i)||(o.crossOrigin="Anonymous"),o.src=c,o.complete?s():(o.onload=s,o.src=o.src),r}t.parseLineGradient=s,t.parseRadialGradient=u,t.parsePattern=d,t.parseStyle=function(e,t,n){var o=t.getBBox();if(isNaN(o.x)||isNaN(o.y)||isNaN(o.width)||isNaN(o.height))return n;if(r.isString(n)){if("("===n[1]||"("===n[2]){if("l"===n[0])return s(e,t,n);if("r"===n[0])return u(e,t,n);if("p"===n[0])return d(e,t,n)}return n}return n instanceof CanvasPattern?n:void 0},t.parseRadius=function(e){var t=0,n=0,o=0,i=0;return r.isArray(e)?1===e.length?t=n=o=i=e[0]:2===e.length?(t=o=e[0],n=i=e[1]):3===e.length?(t=e[0],n=i=e[1],o=e[2]):(t=e[0],n=e[1],o=e[2],i=e[3]):t=n=o=i=e,[t,n,o,i]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(51);function o(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function i(e,t){return o(e)*o(t)?(e[0]*t[0]+e[1]*t[1])/(o(e)*o(t)):1}function a(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(i(e,t))}t.default=function(e,t){var n=t[1],o=t[2],l=r.mod(r.toRadian(t[3]),2*Math.PI),c=t[4],s=t[5],u=e[0],d=e[1],f=t[6],p=t[7],h=Math.cos(l)*(u-f)/2+Math.sin(l)*(d-p)/2,g=-1*Math.sin(l)*(u-f)/2+Math.cos(l)*(d-p)/2,v=h*h/(n*n)+g*g/(o*o);v>1&&(n*=Math.sqrt(v),o*=Math.sqrt(v));var m=n*n*(g*g)+o*o*(h*h),y=m?Math.sqrt((n*n*(o*o)-m)/m):1;c===s&&(y*=-1),isNaN(y)&&(y=0);var b=o?y*n*g/o:0,x=n?y*-o*h/n:0,w=(u+f)/2+Math.cos(l)*b-Math.sin(l)*x,S=(d+p)/2+Math.sin(l)*b+Math.cos(l)*x,O=[(h-b)/n,(g-x)/o],_=[(-1*h-b)/n,(-1*g-x)/o],C=a([1,0],O),E=a(O,_);return i(O,_)<=-1&&(E=Math.PI),i(O,_)>=1&&(E=0),0===s&&E>0&&(E-=2*Math.PI),1===s&&E<0&&(E+=2*Math.PI),{cx:w,cy:S,rx:r.isSamePoint(e,[f,p])?0:n,ry:r.isSamePoint(e,[f,p])?0:o,startAngle:C,endAngle:C+E,xRotation:l,arcFlag:c,sweepFlag:s}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(26);t.default=function(e,t,n){var o=r.getOffScreenContext();return e.createPath(o),o.isPointInPath(t,n)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=1e-6;function o(e){return Math.abs(e)<r?0:e<0?-1:1}function i(e,t,n){return(n[0]-e[0])*(t[1]-e[1])===(t[0]-e[0])*(n[1]-e[1])&&Math.min(e[0],t[0])<=n[0]&&n[0]<=Math.max(e[0],t[0])&&Math.min(e[1],t[1])<=n[1]&&n[1]<=Math.max(e[1],t[1])}t.default=function(e,t,n){var r=!1,a=e.length;if(a<=2)return!1;for(var l=0;l<a;l++){var c=e[l],s=e[(l+1)%a];if(i(c,s,[t,n]))return!0;o(c[1]-n)>0!==o(s[1]-n)>0&&o(t-(n-c[1])*(c[0]-s[0])/(c[1]-s[1])-c[0])<0&&(r=!r)}return r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(51);t.default=function(e,t,n,o,i,a,l,c){var s=(Math.atan2(c-t,l-e)+2*Math.PI)%(2*Math.PI);if(s<o||s>i)return!1;var u={x:e+n*Math.cos(s),y:t+n*Math.sin(s)};return r.distance(u.x,u.y,l,c)<=a/2}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(184);t.default=function(e,t,n,o,i){var a=e.length;if(a<2)return!1;for(var l=0;l<a-1;l++){var c=e[l][0],s=e[l][1],u=e[l+1][0],d=e[l+1][1];if(r.default(c,s,u,d,t,n,o))return!0}if(i){var f=e[0],p=e[a-1];if(r.default(f[0],f[1],p[0],p[1],t,n,o))return!0}return!1}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.registerEngine=t.getEngine=void 0;var r={};t.getEngine=function(e){var t=r[e];if(!t)throw new Error("G engine '"+e+"' is not exist, please register it at first.");return t},t.registerEngine=function(e,t){r[e]=t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.registerGeometry=t.View=void 0;var r=n(1),o=n(0),i=n(21),a=(0,r.__importDefault)(n(262)),l=n(263),c=n(265),s=n(91),u=n(80),d=n(48),f=n(70),p=n(187),h=n(266),g=n(110),v=n(449),m=n(450),y=(0,r.__importDefault)(n(945)),b=(0,r.__importDefault)(n(267)),x=(0,r.__importDefault)(n(946)),w=n(947),S=n(451),O=n(948),_=n(949),C=function(e){function t(t){var n=e.call(this,{visible:t.visible})||this;n.views=[],n.geometries=[],n.controllers=[],n.interactions={},n.limitInPlot=!1,n.options={data:[],animate:!0},n.usedControllers=(0,m.getComponentControllerNames)(),n.scalePool=new w.ScalePool,n.layoutFunc=x.default,n.isPreMouseInPlot=!1,n.isDataChanged=!1,n.isCoordinateChanged=!1,n.createdScaleKeys=new Map,n.onCanvasEvent=function(e){var t=e.name;if(!t.includes(":")){var r=n.createViewEvent(e);n.doPlotEvent(r),n.emit(t,r)}},n.onDelegateEvents=function(e){var t=e.name;if(t.includes(":")){var r=n.createViewEvent(e);n.emit(t,r)}};var i=t.id,a=void 0===i?(0,o.uniqueId)("view"):i,l=t.parent,c=t.canvas,u=t.backgroundGroup,d=t.middleGroup,f=t.foregroundGroup,p=t.region,h=void 0===p?{start:{x:0,y:0},end:{x:1,y:1}}:p,g=t.padding,y=t.appendPadding,b=t.theme,S=t.options,O=t.limitInPlot,_=t.syncViewPadding;return n.parent=l,n.canvas=c,n.backgroundGroup=u,n.middleGroup=d,n.foregroundGroup=f,n.region=h,n.padding=g,n.appendPadding=y,n.options=(0,r.__assign)((0,r.__assign)({},n.options),S),n.limitInPlot=O,n.id=a,n.syncViewPadding=_,n.themeObject=(0,o.isObject)(b)?(0,o.deepMix)({},(0,s.getTheme)("default"),(0,v.createTheme)(b)):(0,s.getTheme)(b),n.init(),n}return(0,r.__extends)(t,e),t.prototype.setLayout=function(e){this.layoutFunc=e},t.prototype.init=function(){this.calculateViewBBox(),this.initEvents(),this.initComponentController(),this.initOptions()},t.prototype.render=function(e,t){void 0===e&&(e=!1),this.emit(i.VIEW_LIFE_CIRCLE.BEFORE_RENDER,b.default.fromData(this,i.VIEW_LIFE_CIRCLE.BEFORE_RENDER,t)),this.paint(e),this.emit(i.VIEW_LIFE_CIRCLE.AFTER_RENDER,b.default.fromData(this,i.VIEW_LIFE_CIRCLE.AFTER_RENDER,t)),!1===this.visible&&this.changeVisible(!1)},t.prototype.clear=function(){var e=this;this.emit(i.VIEW_LIFE_CIRCLE.BEFORE_CLEAR),this.filteredData=[],this.coordinateInstance=void 0,this.isDataChanged=!1,this.isCoordinateChanged=!1;for(var t=this.geometries,n=0;n<t.length;n++)t[n].clear(),t[n].container.remove(!0),t[n].labelsContainer.remove(!0);this.geometries=[];var r=this.controllers;for(n=0;n<r.length;n++)"annotation"===r[n].name?r[n].clear(!0):r[n].clear();this.createdScaleKeys.forEach((function(t,n){e.getRootView().scalePool.deleteScale(n)})),this.createdScaleKeys.clear();var o=this.views;for(n=0;n<o.length;n++)o[n].clear();this.emit(i.VIEW_LIFE_CIRCLE.AFTER_CLEAR)},t.prototype.destroy=function(){this.emit(i.VIEW_LIFE_CIRCLE.BEFORE_DESTROY);var t=this.interactions;(0,o.each)(t,(function(e){e&&e.destroy()})),this.clear();for(var n=this.controllers,r=0,a=n.length;r<a;r++)n[r].destroy();this.backgroundGroup.remove(!0),this.middleGroup.remove(!0),this.foregroundGroup.remove(!0),e.prototype.destroy.call(this)},t.prototype.changeVisible=function(t){e.prototype.changeVisible.call(this,t);for(var n=this.geometries,r=0,o=n.length;r<o;r++)n[r].changeVisible(t);var i=this.controllers;for(r=0,o=i.length;r<o;r++)i[r].changeVisible(t);return this.foregroundGroup.set("visible",t),this.middleGroup.set("visible",t),this.backgroundGroup.set("visible",t),this.getCanvas().draw(),this},t.prototype.data=function(e){return(0,o.set)(this.options,"data",e),this.isDataChanged=!0,this},t.prototype.source=function(e){return console.warn("This method will be removed at G2 V4.1. Please use chart.data() instead."),this.data(e)},t.prototype.filter=function(e,t){return(0,o.isFunction)(t)?((0,o.set)(this.options,["filters",e],t),this):(!t&&(0,o.get)(this.options,["filters",e])&&delete this.options.filters[e],this)},t.prototype.axis=function(e,t){return(0,o.isBoolean)(e)?(0,o.set)(this.options,["axes"],e):(0,o.set)(this.options,["axes",e],t),this},t.prototype.legend=function(e,t){return(0,o.isBoolean)(e)?(0,o.set)(this.options,["legends"],e):(0,o.isString)(e)?((0,o.set)(this.options,["legends",e],t),(0,o.isPlainObject)(t)&&(null===t||void 0===t?void 0:t.selected)&&(0,o.set)(this.options,["filters",e],(function(e){var n;return null===(n=null===t||void 0===t?void 0:t.selected[e])||void 0===n||n}))):(0,o.set)(this.options,["legends"],e),this},t.prototype.scale=function(e,t){var n=this;return(0,o.isString)(e)?(0,o.set)(this.options,["scales",e],t):(0,o.isObject)(e)&&(0,o.each)(e,(function(e,t){(0,o.set)(n.options,["scales",t],e)})),this},t.prototype.tooltip=function(e){return(0,o.set)(this.options,"tooltip",e),this},t.prototype.annotation=function(){return this.getController("annotation")},t.prototype.guide=function(){return console.warn("This method will be removed at G2 V4.1. Please use chart.annotation() instead."),this.annotation()},t.prototype.coordinate=function(e,t){return(0,o.isString)(e)?(0,o.set)(this.options,"coordinate",{type:e,cfg:t}):(0,o.set)(this.options,"coordinate",e),this.coordinateController.update(this.options.coordinate),this.coordinateController},t.prototype.coord=function(e,t){return console.warn("This method will be removed at G2 V4.1. Please use chart.coordinate() instead."),this.coordinate(e,t)},t.prototype.facet=function(e,t){this.facetInstance&&this.facetInstance.destroy();var n=(0,l.getFacet)(e);if(!n)throw new Error("facet '"+e+"' is not exist!");return this.facetInstance=new n(this,(0,r.__assign)((0,r.__assign)({},t),{type:e})),this},t.prototype.animate=function(e){return(0,o.set)(this.options,"animate",e),this},t.prototype.updateOptions=function(e){return this.clear(),(0,o.mix)(this.options,e),this.views.forEach((function(e){return e.destroy()})),this.views=[],this.initOptions(),this.coordinateBBox=this.viewBBox,this},t.prototype.option=function(e,n){if(t.prototype[e])throw new Error("Can't use built in variable name \""+e+'", please change another one.');return(0,o.set)(this.options,e,n),this},t.prototype.theme=function(e){return this.themeObject=(0,o.isObject)(e)?(0,o.deepMix)({},this.themeObject,(0,v.createTheme)(e)):(0,s.getTheme)(e),this},t.prototype.interaction=function(e,t){var n=this.interactions[e];n&&n.destroy();var r=(0,c.createInteraction)(e,this,t);return r&&(r.init(),this.interactions[e]=r),this},t.prototype.removeInteraction=function(e){var t=this.interactions[e];t&&(t.destroy(),this.interactions[e]=void 0)},t.prototype.changeData=function(e){this.isDataChanged=!0,this.emit(i.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA,b.default.fromData(this,i.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA,null)),this.data(e),this.paint(!0);for(var t=this.views,n=0,r=t.length;n<r;n++)t[n].changeData(e);this.emit(i.VIEW_LIFE_CIRCLE.AFTER_CHANGE_DATA,b.default.fromData(this,i.VIEW_LIFE_CIRCLE.AFTER_CHANGE_DATA,null))},t.prototype.createView=function(e){this.parent&&this.parent.parent&&console.warn("The view nesting recursive feature will be removed at G2 V4.1. Please avoid to use it.");var n={data:this.options.data,scales:(0,o.clone)(this.options.scales),axes:(0,o.clone)(this.options.axes),coordinate:(0,o.clone)(this.coordinateController.getOption()),tooltip:(0,o.clone)(this.options.tooltip),legends:(0,o.clone)(this.options.legends),animate:this.options.animate,visible:this.visible},a=new t((0,r.__assign)((0,r.__assign)({parent:this,canvas:this.canvas,backgroundGroup:this.backgroundGroup.addGroup({zIndex:i.GROUP_Z_INDEX.BG}),middleGroup:this.middleGroup.addGroup({zIndex:i.GROUP_Z_INDEX.MID}),foregroundGroup:this.foregroundGroup.addGroup({zIndex:i.GROUP_Z_INDEX.FORE}),theme:this.themeObject,padding:this.padding},e),{options:(0,r.__assign)((0,r.__assign)({},n),(0,o.get)(e,"options",{}))}));return this.views.push(a),a},t.prototype.view=function(e){return console.warn("This method will be removed at G2 V4.1. Please use chart.createView() instead."),this.createView(e)},t.prototype.removeView=function(e){var t=(0,o.remove)(this.views,(function(t){return t===e}))[0];return t&&t.destroy(),t},t.prototype.getCoordinate=function(){return this.coordinateInstance},t.prototype.getTheme=function(){return this.themeObject},t.prototype.getXScale=function(){var e=this.geometries[0];return e?e.getXScale():null},t.prototype.getYScales=function(){var e={},t=[];return this.geometries.forEach((function(n){var r=n.getYScale(),o=r.field;e[o]||(e[o]=!0,t.push(r))})),t},t.prototype.getScalesByDim=function(e){for(var t=this.geometries,n={},r=0,o=t.length;r<o;r++){var i=t[r],a="x"===e?i.getXScale():i.getYScale();a&&!n[a.field]&&(n[a.field]=a)}return n},t.prototype.getScale=function(e,t){var n=t||this.getScaleKey(e);return this.getRootView().scalePool.getScale(n)},t.prototype.getScaleByField=function(e,t){return this.getScale(e,t)},t.prototype.getOptions=function(){return this.options},t.prototype.getData=function(){return this.filteredData},t.prototype.getOriginalData=function(){return this.options.data},t.prototype.getPadding=function(){return this.autoPadding.getPadding()},t.prototype.getGeometries=function(){return this.geometries},t.prototype.getElements=function(){return(0,o.reduce)(this.geometries,(function(e,t){return e.concat(t.getElements())}),[])},t.prototype.getElementsBy=function(e){return this.getElements().filter((function(t){return e(t)}))},t.prototype.getLayer=function(e){return e===i.LAYER.BG?this.backgroundGroup:e===i.LAYER.MID?this.middleGroup:(i.LAYER.FORE,this.foregroundGroup)},t.prototype.isPointInPlot=function(e){return(0,d.isPointInCoordinate)(this.getCoordinate(),e)},t.prototype.getLegendAttributes=function(){return(0,o.flatten)(this.geometries.map((function(e){return e.getGroupAttributes()})))},t.prototype.getGroupScales=function(){var e=this.geometries.map((function(e){return e.getGroupScales()}));return(0,f.uniq)((0,o.flatten)(e))},t.prototype.getCanvas=function(){return this.getRootView().canvas},t.prototype.getRootView=function(){for(var e=this;e.parent;)e=e.parent;return e},t.prototype.getXY=function(e){var t,n,r=this.getCoordinate(),i=this.getScalesByDim("x"),a=this.getScalesByDim("y");if((0,o.each)(e,(function(e,r){i[r]&&(t=i[r].scale(e)),a[r]&&(n=a[r].scale(e))})),!(0,o.isNil)(t)&&!(0,o.isNil)(n))return r.convert({x:t,y:n})},t.prototype.getController=function(e){return(0,o.find)(this.controllers,(function(t){return t.name===e}))},t.prototype.showTooltip=function(e){var t=this.getController("tooltip");return t&&t.showTooltip(e),this},t.prototype.hideTooltip=function(){var e=this.getController("tooltip");return e&&e.hideTooltip(),this},t.prototype.lockTooltip=function(){var e=this.getController("tooltip");return e&&e.lockTooltip(),this},t.prototype.unlockTooltip=function(){var e=this.getController("tooltip");return e&&e.unlockTooltip(),this},t.prototype.isTooltipLocked=function(){var e=this.getController("tooltip");return e&&e.isTooltipLocked()},t.prototype.getTooltipItems=function(e){var t=this.getController("tooltip");return t?t.getTooltipItems(e):[]},t.prototype.getSnapRecords=function(e){for(var t=this.geometries,n=[],r=0,o=t.length;r<o;r++){var i=t[r],a=i.dataArray;i.sort(a);for(var l=void 0,c=0,s=a.length;c<s;c++){var u=a[c];(l=(0,p.findDataByPoint)(e,u,i))&&n.push(l)}}var d=this.views;for(r=0,o=d.length;r<o;r++){var f=d[r].getSnapRecords(e);n=n.concat(f)}return n},t.prototype.getComponents=function(){for(var e=[],t=this.controllers,n=0,r=t.length;n<r;n++){var o=t[n];e=e.concat(o.getComponents())}return e},t.prototype.filterData=function(e){var t=this.options.filters;return 0===(0,o.size)(t)?e:(0,o.filter)(e,(function(e,n){return Object.keys(t).every((function(r){return(0,t[r])(e[r],e,n)}))}))},t.prototype.filterFieldData=function(e,t){var n=this.options.filters,r=(0,o.get)(n,e);return(0,o.isUndefined)(r)?t:t.filter((function(t,n){return r(t[e],t,n)}))},t.prototype.adjustCoordinate=function(){var e=this.getCoordinate(),t=e.start,n=e.end,r=this.coordinateBBox.bl,i=this.coordinateBBox.tr;(0,o.isEqual)(t,r)&&(0,o.isEqual)(n,i)?this.isCoordinateChanged=!1:(this.isCoordinateChanged=!0,this.coordinateInstance=this.coordinateController.adjust(r,i))},t.prototype.paint=function(e){this.renderDataRecursive(e),this.syncScale(),this.emit(i.VIEW_LIFE_CIRCLE.BEFORE_PAINT),this.renderPaddingRecursive(e),this.renderLayoutRecursive(e),this.renderBackgroundStyleShape(),this.renderPaintRecursive(e),this.emit(i.VIEW_LIFE_CIRCLE.AFTER_PAINT),this.isDataChanged=!1},t.prototype.renderBackgroundStyleShape=function(){if(!this.parent){var e=(0,o.get)(this.themeObject,"background");if(e){this.backgroundStyleRectShape||(this.backgroundStyleRectShape=this.backgroundGroup.addShape("rect",{attrs:{},zIndex:-1,capture:!1}),this.backgroundStyleRectShape.toBack());var t=this.viewBBox,n=t.x,r=t.y,i=t.width,a=t.height;this.backgroundStyleRectShape.attr({fill:e,x:n,y:r,width:i,height:a})}else this.backgroundStyleRectShape&&(this.backgroundStyleRectShape.remove(!0),this.backgroundStyleRectShape=void 0)}},t.prototype.renderPaddingRecursive=function(e){this.calculateViewBBox(),this.adjustCoordinate(),this.initComponents(e),this.autoPadding=(0,O.calculatePadding)(this).shrink((0,h.parsePadding)(this.appendPadding)),this.coordinateBBox=this.viewBBox.shrink(this.autoPadding.getPadding()),this.adjustCoordinate();for(var t=this.views,n=0,r=t.length;n<r;n++)t[n].renderPaddingRecursive(e)},t.prototype.renderLayoutRecursive=function(e){var t=!0===this.syncViewPadding?_.defaultSyncViewPadding:(0,o.isFunction)(this.syncViewPadding)?this.syncViewPadding:void 0;t&&(t(this,this.views,S.PaddingCal),this.views.forEach((function(e){e.coordinateBBox=e.viewBBox.shrink(e.autoPadding.getPadding()),e.adjustCoordinate()}))),this.doLayout();for(var n=this.views,r=0,i=n.length;r<i;r++)n[r].renderLayoutRecursive(e)},t.prototype.renderPaintRecursive=function(e){var t=this.middleGroup;if(this.limitInPlot){var n=(0,d.getCoordinateClipCfg)(this.coordinateInstance),r=n.type,o=n.attrs;t.setClip({type:r,attrs:o})}else t.setClip(void 0);this.paintGeometries(e),this.renderComponents(e);for(var i=this.views,a=0,l=i.length;a<l;a++)i[a].renderPaintRecursive(e)},t.prototype.createScale=function(e,t,n,i){var a=(0,o.get)(this.options.scales,[e]),l=(0,r.__assign)((0,r.__assign)({},a),n);return this.parent?this.parent.createScale(e,t,l,i):this.scalePool.createScale(e,t,l,i)},t.prototype.renderDataRecursive=function(e){this.doFilterData(),this.createCoordinate(),this.initGeometries(e),this.renderFacet(e);for(var t=this.views,n=0,r=t.length;n<r;n++)t[n].renderDataRecursive(e)},t.prototype.calculateViewBBox=function(){var e,t,n,r;if(this.parent){var o=this.parent.coordinateBBox;e=o.x,t=o.y,n=o.width,r=o.height}else e=0,t=0,n=this.canvas.get("width"),r=this.canvas.get("height");var i=this.region,a=i.start,l=i.end,c=new u.BBox(e+n*a.x,t+r*a.y,n*(l.x-a.x),r*(l.y-a.y));this.viewBBox&&this.viewBBox.isEqual(c)||(this.viewBBox=new u.BBox(e+n*a.x,t+r*a.y,n*(l.x-a.x),r*(l.y-a.y))),this.coordinateBBox=this.viewBBox},t.prototype.initEvents=function(){this.foregroundGroup.on("*",this.onDelegateEvents),this.middleGroup.on("*",this.onDelegateEvents),this.backgroundGroup.on("*",this.onDelegateEvents),this.canvas.on("*",this.onCanvasEvent)},t.prototype.initComponentController=function(){for(var e=this.usedControllers,t=0,n=e.length;t<n;t++){var r=e[t],o=(0,m.getComponentController)(r);o&&this.controllers.push(new o(this))}},t.prototype.createViewEvent=function(e){var t=e.shape,n=e.name,r=t?t.get("origin"):null,o=new b.default(this,e,r);return o.type=n,o},t.prototype.doPlotEvent=function(e){var t=e.type,n={x:e.x,y:e.y};if(["mousedown","mouseup","mousemove","mouseleave","mousewheel","touchstart","touchmove","touchend","touchcancel","click","dblclick","contextmenu"].includes(t)){var r=this.isPointInPlot(n),o=e.clone();if(r){var a="plot:"+t;o.type=a,this.emit(a,o),"mouseleave"!==t&&"touchend"!==t||(this.isPreMouseInPlot=!1)}"mousemove"===t||"touchmove"===t?(this.isPreMouseInPlot&&!r?("mousemove"===t&&(o.type=i.PLOT_EVENTS.MOUSE_LEAVE,this.emit(i.PLOT_EVENTS.MOUSE_LEAVE,o)),o.type=i.PLOT_EVENTS.LEAVE,this.emit(i.PLOT_EVENTS.LEAVE,o)):!this.isPreMouseInPlot&&r&&("mousemove"===t&&(o.type=i.PLOT_EVENTS.MOUSE_ENTER,this.emit(i.PLOT_EVENTS.MOUSE_ENTER,o)),o.type=i.PLOT_EVENTS.ENTER,this.emit(i.PLOT_EVENTS.ENTER,o)),this.isPreMouseInPlot=r):"mouseleave"!==t&&"touchend"!==t||this.isPreMouseInPlot&&("mouseleave"===t&&(o.type=i.PLOT_EVENTS.MOUSE_LEAVE,this.emit(i.PLOT_EVENTS.MOUSE_LEAVE,o)),o.type=i.PLOT_EVENTS.LEAVE,this.emit(i.PLOT_EVENTS.LEAVE,o),this.isPreMouseInPlot=!1)}},t.prototype.doFilterData=function(){var e=this.options.data;this.filteredData=this.filterData(e)},t.prototype.initGeometries=function(e){this.createOrUpdateScales();for(var t=this.getCoordinate(),n=(0,o.get)(this.options,"scales",{}),r=this.geometries,i=0,a=r.length;i<a;i++){var l=r[i];l.scales=this.getGeometryScales();var c={coordinate:t,scaleDefs:n,data:this.filteredData,theme:this.themeObject,isDataChanged:this.isDataChanged,isCoordinateChanged:this.isCoordinateChanged};e?l.update(c):l.init(c)}this.adjustScales()},t.prototype.createOrUpdateScales=function(){for(var e=this.getScaleFields(),t=this.getGroupedFields(),n=this.getOptions(),r=n.data,o=n.scales,i=void 0===o?{}:o,a=this.filteredData,l=0,c=e.length;l<c;l++){var s=e[l],u=i[s],d=this.getScaleKey(s);this.createScale(s,t.includes(s)?r:a,u,d),this.createdScaleKeys.set(d,!0)}},t.prototype.syncScale=function(){this.getRootView().scalePool.sync(this.getCoordinate(),this.theme)},t.prototype.getGeometryScales=function(){for(var e=this.getScaleFields(),t={},n=0;n<e.length;n++){var r=e[n];t[r]=this.getScaleByField(r)}return t},t.prototype.getScaleFields=function(){for(var e=[],t=new Map,n=this.geometries,r=0;r<n.length;r++){var o=n[r].getScaleFields();(0,f.uniq)(o,e,t)}return e},t.prototype.getGroupedFields=function(){for(var e=[],t=new Map,n=this.geometries,r=0;r<n.length;r++){var o=n[r].getGroupFields();(0,f.uniq)(o,e,t)}return e},t.prototype.adjustScales=function(){this.adjustCategoryScaleRange()},t.prototype.adjustCategoryScaleRange=function(){var e=this,t=(0,r.__spreadArray)([this.getXScale()],this.getYScales(),!0).filter((function(e){return!!e})),n=this.getCoordinate(),i=this.options.scales;(0,o.each)(t,(function(t){var r=t.field,a=t.values,l=t.isCategory,c=t.isIdentity;(l||c)&&a&&!(0,o.get)(i,[r,"range"])&&(t.range=(0,g.getDefaultCategoryScaleRange)(t,n,e.theme))}))},t.prototype.initComponents=function(e){for(var t=this.controllers,n=0;n<t.length;n++){var r=t[n];e?r.update():(r.clear(),r.render())}},t.prototype.doLayout=function(){this.layoutFunc(this)},t.prototype.createCoordinate=function(){var e=this.coordinateBBox.bl,t=this.coordinateBBox.tr;this.coordinateInstance=this.coordinateController.create(e,t)},t.prototype.paintGeometries=function(e){for(var t=this.options.animate,n=this.getCoordinate(),r={x:this.viewBBox.x,y:this.viewBBox.y,minX:this.viewBBox.minX,minY:this.viewBBox.minY,maxX:this.viewBBox.maxX,maxY:this.viewBBox.maxY,width:this.viewBBox.width,height:this.viewBBox.height},o=this.geometries,i=0;i<o.length;i++){var a=o[i];a.coordinate=n,a.canvasRegion=r,t||a.animate(!1),a.paint(e)}},t.prototype.renderComponents=function(e){for(var t=0;t<this.getComponents().length;t++)this.getComponents()[t].component.render()},t.prototype.renderFacet=function(e){this.facetInstance&&(e?this.facetInstance.update():(this.facetInstance.clear(),this.facetInstance.init(),this.facetInstance.render()))},t.prototype.initOptions=function(){var e=this,t=this.options,n=t.geometries,i=void 0===n?[]:n,a=t.interactions,l=void 0===a?[]:a,c=t.views,s=void 0===c?[]:c,u=t.annotations,d=void 0===u?[]:u,f=t.coordinate,p=t.events,h=t.facets;this.coordinateController?f&&this.coordinateController.update(f):this.coordinateController=new y.default(f);for(var g=0;g<i.length;g++){var v=i[g];this.createGeometry(v)}for(var m=0;m<l.length;m++){var b=l[m],x=b.type,w=b.cfg;this.interaction(x,w)}for(var S=0;S<s.length;S++){var O=s[S];this.createView(O)}for(var _=this.getController("annotation"),C=0;C<d.length;C++){var E=d[C];_.annotation(E)}p&&(0,o.each)(p,(function(t,n){e.on(n,t)})),h&&(0,o.each)(h,(function(t){var n=t.type,o=(0,r.__rest)(t,["type"]);e.facet(n,o)}))},t.prototype.createGeometry=function(e){var t=e.type,n=e.cfg,r=void 0===n?{}:n;if(this[t]){var i=this[t](r);(0,o.each)(e,(function(e,t){(0,o.isFunction)(i[t])&&i[t](e)}))}},t.prototype.getScaleKey=function(e){return this.id+"-"+e},t}(a.default);t.View=C,t.registerGeometry=function(e,t){C.prototype[e.toLowerCase()]=function(e){void 0===e&&(e={});var n=(0,r.__assign)({container:this.middleGroup.addGroup(),labelsContainer:this.foregroundGroup.addGroup()},e),o=new t(n);return this.geometries.push(o),o}},t.default=C},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){this.view=e,this.cfg=t}return e.prototype.init=function(){this.initEvents()},e.prototype.initEvents=function(){},e.prototype.clearEvents=function(){},e.prototype.destroy=function(){this.clearEvents()},e}();t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createTheme=void 0;var r=n(944);Object.defineProperty(t,"createTheme",{enumerable:!0,get:function(){return r.createTheme}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getComponentController=t.getComponentControllerNames=t.unregisterComponentController=t.registerComponentController=void 0;var r={};t.registerComponentController=function(e,t){r[e]=t},t.unregisterComponentController=function(e){delete r[e]},t.getComponentControllerNames=function(){return Object.keys(r)},t.getComponentController=function(e){return r[e]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PaddingCal=void 0;var r=n(1),o=n(21),i=function(){function e(e,t,n,r){void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=0),void 0===r&&(r=0),this.top=e,this.right=t,this.bottom=n,this.left=r}return e.instance=function(t,n,r,o){return void 0===t&&(t=0),void 0===n&&(n=0),void 0===r&&(r=0),void 0===o&&(o=0),new e(t,n,r,o)},e.prototype.max=function(e){var t=e[0],n=e[1],r=e[2],o=e[3];return this.top=Math.max(this.top,t),this.right=Math.max(this.right,n),this.bottom=Math.max(this.bottom,r),this.left=Math.max(this.left,o),this},e.prototype.shrink=function(e){var t=e[0],n=e[1],r=e[2],o=e[3];return this.top+=t,this.right+=n,this.bottom+=r,this.left+=o,this},e.prototype.inc=function(e,t){var n=e.width,r=e.height;switch(t){case o.DIRECTION.TOP:case o.DIRECTION.TOP_LEFT:case o.DIRECTION.TOP_RIGHT:this.top+=r;break;case o.DIRECTION.RIGHT:case o.DIRECTION.RIGHT_TOP:case o.DIRECTION.RIGHT_BOTTOM:this.right+=n;break;case o.DIRECTION.BOTTOM:case o.DIRECTION.BOTTOM_LEFT:case o.DIRECTION.BOTTOM_RIGHT:this.bottom+=r;break;case o.DIRECTION.LEFT:case o.DIRECTION.LEFT_TOP:case o.DIRECTION.LEFT_BOTTOM:this.left+=n}return this},e.prototype.getPadding=function(){return[this.top,this.right,this.bottom,this.left]},e.prototype.clone=function(){return new(e.bind.apply(e,(0,r.__spreadArray)([void 0],this.getPadding(),!1)))},e}();t.PaddingCal=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isModelChange=void 0;var r=n(0);t.isModelChange=function(e,t){return(0,r.some)(["color","shape","size","x","y","isInCircle","data","style","defaultStyle","points","mappingData"],(function(n){return!(0,r.isEqual)(e[n],t[n])}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.diff=void 0,t.diff=function(e,t){for(var n=[],r=[],o=[],i=new Map,a=0;a<t.length;a++){var l=t[a];e[l]?r.push(l):n.push(l),i.set(l,!0)}return Object.keys(e).forEach((function(e){i.has(e)||o.push(e)})),{added:n,updated:r,removed:o}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getMappingValue=void 0;var r=n(1);t.getMappingValue=function(e,t,n){if(!e)return n;var o;if(e.callback&&e.callback.length>1){var i=Array(e.callback.length-1).fill("");o=e.mapping.apply(e,(0,r.__spreadArray)([t],i,!1)).join("")}else o=e.mapping(t).join("");return o||n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getLegendThemeCfg=t.getCustomLegendItems=t.getLegendItems=t.getLegendLayout=void 0;var r=n(1),o=n(0),i=n(21),a=n(454),l=n(70),c=n(146),s=["line","cross","tick","plus","hyphen"];function u(e){var t=e.symbol;(0,o.isString)(t)&&c.MarkerSymbols[t]&&(e.symbol=c.MarkerSymbols[t])}t.getLegendLayout=function(e){return e.startsWith(i.DIRECTION.LEFT)||e.startsWith(i.DIRECTION.RIGHT)?"vertical":"horizontal"},t.getLegendItems=function(e,t,n,i,c){var d=n.getScale(n.type);if(d.isCategory){var f=d.field,p=t.getAttribute("color"),h=t.getAttribute("shape"),g=e.getTheme().defaultColor,v=t.coordinate.isPolar;return d.getTicks().map((function(n,m){var y,b=n.text,x=n.value,w=b,S=d.invert(x),O=0===e.filterFieldData(f,[(y={},y[f]=S,y)]).length;(0,o.each)(e.views,(function(e){var t;e.filterFieldData(f,[(t={},t[f]=S,t)]).length||(O=!0)}));var _,C,E=(0,a.getMappingValue)(p,S,g),P=(0,a.getMappingValue)(h,S,"point"),M=t.getShapeMarker(P,{color:E,isInPolar:v}),k=c;return(0,o.isFunction)(k)&&(k=k(w,m,(0,r.__assign)({name:w,value:S},(0,o.deepMix)({},i,M)))),function(e,t){var n=e.symbol;if((0,o.isString)(n)&&-1!==s.indexOf(n)){var r=(0,o.get)(e,"style",{}),i=(0,o.get)(r,"lineWidth",1),a=r.stroke||r.fill||t;e.style=(0,o.deepMix)({},e.style,{lineWidth:i,stroke:a,fill:null})}}(M=(0,o.deepMix)({},i,M,(0,l.omit)((0,r.__assign)({},k),["style"])),E),k&&k.style&&(M.style=(_=M.style,C=k.style,(0,o.isFunction)(C)?C(_):(0,o.deepMix)({},_,C))),u(M),{id:S,name:w,value:S,marker:M,unchecked:O}}))}return[]},t.getCustomLegendItems=function(e,t,n){return n.map((function(n,r){var i=t;(0,o.isFunction)(i)&&(i=i(n.name,r,(0,o.deepMix)({},e,n)));var a=(0,o.isFunction)(n.marker)?n.marker(n.name,r,(0,o.deepMix)({},e,n)):n.marker,l=(0,o.deepMix)({},e,i,a);return u(l),n.marker=l,n}))},t.getLegendThemeCfg=function(e,t){var n=(0,o.get)(e,["components","legend"],{});return(0,o.deepMix)({},(0,o.get)(n,["common"],{}),(0,o.deepMix)({},(0,o.get)(n,[t],{})))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseLineGradient=s,t.parsePattern=d,t.parseRadialGradient=u,t.parseRadius=function(e){var t=0,n=0,o=0,i=0;return(0,r.isArray)(e)?1===e.length?t=n=o=i=e[0]:2===e.length?(t=o=e[0],n=i=e[1]):3===e.length?(t=e[0],n=i=e[1],o=e[2]):(t=e[0],n=e[1],o=e[2],i=e[3]):t=n=o=i=e,[t,n,o,i]},t.parseStyle=function(e,t,n){var o=t.getBBox();if(isNaN(o.x)||isNaN(o.y)||isNaN(o.width)||isNaN(o.height))return n;if((0,r.isString)(n)){if("("===n[1]||"("===n[2]){if("l"===n[0])return s(e,t,n);if("r"===n[0])return u(e,t,n);if("p"===n[0])return d(e,t,n)}return n}return n instanceof CanvasPattern?n:void 0};var r=n(53),o=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,i=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,a=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,l=/[\d.]+:(#[^\s]+|[^\)]+\))/gi;function c(e,t){var n=e.match(l);(0,r.each)(n,(function(e){var n=e.split(":");t.addColorStop(n[0],n[1])}))}function s(e,t,n){var r,i,a=o.exec(n),l=parseFloat(a[1])%360*(Math.PI/180),s=a[2],u=t.getBBox();l>=0&&l<.5*Math.PI?(r={x:u.minX,y:u.minY},i={x:u.maxX,y:u.maxY}):.5*Math.PI<=l&&l<Math.PI?(r={x:u.maxX,y:u.minY},i={x:u.minX,y:u.maxY}):Math.PI<=l&&l<1.5*Math.PI?(r={x:u.maxX,y:u.maxY},i={x:u.minX,y:u.minY}):(r={x:u.minX,y:u.maxY},i={x:u.maxX,y:u.minY});var d=Math.tan(l),f=d*d,p=(i.x-r.x+d*(i.y-r.y))/(f+1)+r.x,h=d*(i.x-r.x+d*(i.y-r.y))/(f+1)+r.y,g=e.createLinearGradient(r.x,r.y,p,h);return c(s,g),g}function u(e,t,n){var r=i.exec(n),o=parseFloat(r[1]),a=parseFloat(r[2]),s=parseFloat(r[3]),u=r[4];if(0===s){var d=u.match(l);return d[d.length-1].split(":")[1]}var f=t.getBBox(),p=f.maxX-f.minX,h=f.maxY-f.minY,g=Math.sqrt(p*p+h*h)/2,v=e.createRadialGradient(f.minX+p*o,f.minY+h*a,0,f.minX+p/2,f.minY+h/2,s*g);return c(u,v),v}function d(e,t,n){if(t.get("patternSource")&&t.get("patternSource")===n)return t.get("pattern");var r,o,i=a.exec(n),l=i[1],c=i[2];function s(){r=e.createPattern(o,l),t.set("pattern",r),t.set("patternSource",n)}switch(l){case"a":l="repeat";break;case"x":l="repeat-x";break;case"y":l="repeat-y";break;default:l="no-repeat"}return o=new Image,c.match(/^data:/i)||(o.crossOrigin="Anonymous"),o.src=c,o.complete?s():(o.onload=s,o.src=o.src),r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=t[1],o=t[2],l=(0,r.mod)((0,r.toRadian)(t[3]),2*Math.PI),c=t[4],s=t[5],u=e[0],d=e[1],f=t[6],p=t[7],h=Math.cos(l)*(u-f)/2+Math.sin(l)*(d-p)/2,g=-1*Math.sin(l)*(u-f)/2+Math.cos(l)*(d-p)/2,v=h*h/(n*n)+g*g/(o*o);v>1&&(n*=Math.sqrt(v),o*=Math.sqrt(v));var m=n*n*(g*g)+o*o*(h*h),y=m?Math.sqrt((n*n*(o*o)-m)/m):1;c===s&&(y*=-1),isNaN(y)&&(y=0);var b=o?y*n*g/o:0,x=n?y*-o*h/n:0,w=(u+f)/2+Math.cos(l)*b-Math.sin(l)*x,S=(d+p)/2+Math.sin(l)*b+Math.cos(l)*x,O=[(h-b)/n,(g-x)/o],_=[(-1*h-b)/n,(-1*g-x)/o],C=a([1,0],O),E=a(O,_);return i(O,_)<=-1&&(E=Math.PI),i(O,_)>=1&&(E=0),0===s&&E>0&&(E-=2*Math.PI),1===s&&E<0&&(E+=2*Math.PI),{cx:w,cy:S,rx:(0,r.isSamePoint)(e,[f,p])?0:n,ry:(0,r.isSamePoint)(e,[f,p])?0:o,startAngle:C,endAngle:C+E,xRotation:l,arcFlag:c,sweepFlag:s}};var r=n(53);function o(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function i(e,t){return o(e)*o(t)?(e[0]*t[0]+e[1]*t[1])/(o(e)*o(t)):1}function a(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(i(e,t))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var o=(0,r.getOffScreenContext)();return e.createPath(o),o.isPointInPath(t,n)};var r=n(26)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var r=!1,a=e.length;if(a<=2)return!1;for(var l=0;l<a;l++){var c=e[l],s=e[(l+1)%a];if(i(c,s,[t,n]))return!0;o(c[1]-n)>0!==o(s[1]-n)>0&&o(t-(n-c[1])*(c[0]-s[0])/(c[1]-s[1])-c[0])<0&&(r=!r)}return r};var r=1e-6;function o(e){return Math.abs(e)<r?0:e<0?-1:1}function i(e,t,n){return(n[0]-e[0])*(t[1]-e[1])===(t[0]-e[0])*(n[1]-e[1])&&Math.min(e[0],t[0])<=n[0]&&n[0]<=Math.max(e[0],t[0])&&Math.min(e[1],t[1])<=n[1]&&n[1]<=Math.max(e[1],t[1])}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,o,i,a,l,c){var s=(Math.atan2(c-t,l-e)+2*Math.PI)%(2*Math.PI);if(s<o||s>i)return!1;var u={x:e+n*Math.cos(s),y:t+n*Math.sin(s)};return(0,r.distance)(u.x,u.y,l,c)<=a/2};var r=n(53)},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,r,i){var a=e.length;if(a<2)return!1;for(var l=0;l<a-1;l++){var c=e[l][0],s=e[l][1],u=e[l+1][0],d=e[l+1][1];if((0,o.default)(c,s,u,d,t,n,r))return!0}if(i){var f=e[0],p=e[a-1];if((0,o.default)(f[0],f[1],p[0],p[1],t,n,r))return!0}return!1};var o=r(n(190))},function(e,t,n){"use strict";var r=n(207);n.d(t,"a",(function(){return r.antvDark}));var o=n(161);n.d(t,"b",(function(){return o.antvLight}));var i=n(105);n.d(t,"c",(function(){return i.createThemeByStyleSheet}));var a=n(91);Object(a.registerTheme)("dark",Object(i.createThemeByStyleSheet)(r.antvDark)),Object(a.registerTheme)("default",Object(i.createThemeByStyleSheet)(o.antvLight)),Object(a.registerTheme)("light",Object(i.createThemeByStyleSheet)(o.antvLight))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getLineMarker=void 0;var r={line:function(e,t,n){return[["M",e-n,t],["L",e+n,t]]},dot:function(e,t,n){return[["M",e-n,t],["L",e+n,t]]},dash:function(e,t,n){return[["M",e-n,t],["L",e+n,t]]},smooth:function(e,t,n){return[["M",e-n,t],["A",n/2,n/2,0,1,1,e,t],["A",n/2,n/2,0,1,0,e+n,t]]},hv:function(e,t,n){return[["M",e-n-1,t-2.5],["L",e,t-2.5],["L",e,t+2.5],["L",e+n+1,t+2.5]]},vh:function(e,t,n){return[["M",e-n-1,t+2.5],["L",e,t+2.5],["L",e,t-2.5],["L",e+n+1,t-2.5]]},hvh:function(e,t,n){return[["M",e-(n+1),t+2.5],["L",e-n/2,t+2.5],["L",e-n/2,t-2.5],["L",e+n/2,t-2.5],["L",e+n/2,t+2.5],["L",e+n+1,t+2.5]]},vhv:function(e,t){return[["M",e-5,t+2.5],["L",e-5,t],["L",e,t],["L",e,t-3],["L",e,t+3],["L",e+6.5,t+3]]}};t.getLineMarker=function(e,t){var n=e.color;return{symbol:r[t],style:{lineWidth:2,r:6,stroke:n}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(27),i=n(33),a=n(111),l=n(276),c=(0,o.registerShapeFactory)("edge",{defaultShapeType:"line",getDefaultPoints:function(e){return(0,l.splitPoints)(e)}});(0,o.registerShape)("edge","line",{draw:function(e,t){var n=(0,i.getStyle)(e,!0,!1,"lineWidth"),o=(0,a.getLinePath)(this.parsePoints(e.points),this.coordinate.isPolar);return t.addShape("path",{attrs:(0,r.__assign)((0,r.__assign)({},n),{path:o})})},getMarker:function(e){return{symbol:"circle",style:{r:4.5,fill:e.color}}}}),t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(0),i=n(27),a=n(33),l=(0,i.registerShapeFactory)("polygon",{defaultShapeType:"polygon",getDefaultPoints:function(e){var t=[];return(0,o.each)(e.x,(function(n,r){var o=e.y[r];t.push({x:n,y:o})})),t}});(0,i.registerShape)("polygon","polygon",{draw:function(e,t){if(!(0,o.isEmpty)(e.points)){var n=(0,a.getStyle)(e,!0,!0),i=this.parsePath(function(e){for(var t=e[0],n=1,r=[["M",t.x,t.y]];n<e.length;){var i=e[n];i.x===e[n-1].x&&i.y===e[n-1].y||(r.push(["L",i.x,i.y]),i.x===t.x&&i.y===t.y&&n<e.length-1&&(t=e[n+1],r.push(["Z"]),r.push(["M",t.x,t.y]),n++)),n++}return(0,o.isEqual)((0,o.last)(r),t)||r.push(["L",t.x,t.y]),r.push(["Z"]),r}(e.points));return t.addShape("path",{attrs:(0,r.__assign)((0,r.__assign)({},n),{path:i}),name:"polygon"})}},getMarker:function(e){return{symbol:"square",style:{r:4,fill:e.color}}}}),t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=(0,n(27).registerShapeFactory)("schema",{defaultShapeType:""});t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getQPath=t.getCPath=void 0;var r=n(0);t.getCPath=function(e,t){return["C",1*e.x/2+1*t.x/2,e.y,1*e.x/2+1*t.x/2,t.y,t.x,t.y]},t.getQPath=function(e,t){var n=[];n.push({x:t.x,y:t.y}),n.push(e);var o=["Q"];return(0,r.each)(n,(function(e){o.push(e.x,e.y)})),o}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(27),i=n(33),a=n(150);(0,o.registerShape)("interval","funnel",{getPoints:function(e){return e.size=2*e.size,(0,a.getRectPoints)(e)},draw:function(e,t){var n=(0,i.getStyle)(e,!1,!0),o=this.parsePath((0,a.getFunnelPath)(e.points,e.nextPoints,!1));return t.addShape("path",{attrs:(0,r.__assign)((0,r.__assign)({},n),{path:o}),name:"interval"})},getMarker:function(e){return{symbol:"square",style:{r:4,fill:e.color}}}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(27),i=n(269),a=n(33),l=n(150);(0,o.registerShape)("interval","hollow-rect",{draw:function(e,t){var n=(0,a.getStyle)(e,!0,!1),o=t,c=null===e||void 0===e?void 0:e.background;if(c){o=t.addGroup();var s=(0,a.getBackgroundRectStyle)(e),u=(0,l.getBackgroundRectPath)(e,this.parsePoints(e.points),this.coordinate);o.addShape("path",{attrs:(0,r.__assign)((0,r.__assign)({},s),{path:u}),zIndex:-1,name:i.BACKGROUND_SHAPE})}var d=this.parsePath((0,l.getRectPath)(e.points)),f=o.addShape("path",{attrs:(0,r.__assign)((0,r.__assign)({},n),{path:d}),name:"interval"});return c?o:f},getMarker:function(e){var t=e.color;return e.isInPolar?{symbol:"circle",style:{r:4.5,stroke:t,fill:null}}:{symbol:"square",style:{r:4,stroke:t,fill:null}}}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(0),i=n(27),a=n(33),l=n(150),c=n(70);(0,i.registerShape)("interval","line",{getPoints:function(e){return function(e){var t=e.x,n=e.y,r=e.y0;return(0,o.isArray)(n)?n.map((function(e,n){return{x:(0,o.isArray)(t)?t[n]:t,y:e}})):[{x:t,y:r},{x:t,y:n}]}(e)},draw:function(e,t){var n=(0,a.getStyle)(e,!0,!1,"lineWidth"),o=(0,c.omit)((0,r.__assign)({},n),["fill"]),i=this.parsePath((0,l.getRectPath)(e.points,!1));return t.addShape("path",{attrs:(0,r.__assign)((0,r.__assign)({},o),{path:i}),name:"interval"})},getMarker:function(e){return{symbol:function(e,t,n){return[["M",e,t-n],["L",e,t+n]]},style:{r:5,stroke:e.color}}}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(27),i=n(33),a=n(150);(0,o.registerShape)("interval","pyramid",{getPoints:function(e){return e.size=2*e.size,(0,a.getRectPoints)(e)},draw:function(e,t){var n=(0,i.getStyle)(e,!1,!0),o=this.parsePath((0,a.getFunnelPath)(e.points,e.nextPoints,!0));return t.addShape("path",{attrs:(0,r.__assign)((0,r.__assign)({},n),{path:o}),name:"interval"})},getMarker:function(e){return{symbol:"square",style:{r:4,fill:e.color}}}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(0),i=n(27),a=n(33);(0,i.registerShape)("interval","tick",{getPoints:function(e){return function(e){var t,n,r=e.x,i=e.y,a=e.y0,l=e.size;(0,o.isArray)(i)?(t=i[0],n=i[1]):(t=a,n=i);var c=r+l/2,s=r-l/2;return[{x:r,y:t},{x:r,y:n},{x:s,y:t},{x:c,y:t},{x:s,y:n},{x:c,y:n}]}(e)},draw:function(e,t){var n,o=(0,a.getStyle)(e,!0,!1),i=this.parsePath([["M",(n=e.points)[0].x,n[0].y],["L",n[1].x,n[1].y],["M",n[2].x,n[2].y],["L",n[3].x,n[3].y],["M",n[4].x,n[4].y],["L",n[5].x,n[5].y]]);return t.addShape("path",{attrs:(0,r.__assign)((0,r.__assign)({},o),{path:i}),name:"interval"})},getMarker:function(e){return{symbol:function(e,t,n){return[["M",e-n/2,t-n],["L",e+n/2,t-n],["M",e,t-n],["L",e,t+n],["M",e-n/2,t+n],["L",e+n/2,t+n]]},style:{r:5,stroke:e.color}}}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=n(146),i=n(27),a=n(279);(0,r.each)(a.HOLLOW_SHAPES,(function(e){(0,i.registerShape)("point",e,{draw:function(t,n){return(0,a.drawPoints)(this,t,n,e,!0)},getMarker:function(t){var n=t.color;return{symbol:o.MarkerSymbols[e],style:{r:4.5,stroke:n,fill:null}}}})}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(27),o=n(33);(0,r.registerShape)("point","image",{draw:function(e,t){var n=(0,o.getStyle)(e,!1,!1,"r").r,r=this.parsePoints(e.points),i=r[0];if(e.isStack)i=r[1];else if(r.length>1){for(var a=t.addGroup(),l=0,c=r;l<c.length;l++){var s=c[l];a.addShape("image",{attrs:{x:s.x-n/2,y:s.y-n,width:n,height:n,img:e.shape[1]}})}return a}return t.addShape("image",{attrs:{x:i.x-n/2,y:i.y-n,width:n,height:n,img:e.shape[1]}})},getMarker:function(e){return{symbol:"circle",style:{r:4.5,fill:e.color}}}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=n(146),i=n(27),a=n(279);(0,r.each)(a.SHAPES,(function(e){(0,i.registerShape)("point",e,{draw:function(t,n){return(0,a.drawPoints)(this,t,n,e,!1)},getMarker:function(t){var n=t.color;return{symbol:o.MarkerSymbols[e]||e,style:{r:4.5,fill:n}}}})}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(0),i=n(27),a=n(33);function l(e){var t=(0,o.isArray)(e)?e:[e],n=t[0],r=t[t.length-1],i=t.length>1?t[1]:n;return{min:n,max:r,min1:i,max1:t.length>3?t[3]:r,median:t.length>2?t[2]:i}}function c(e,t,n){var r,i=n/2;if((0,o.isArray)(t)){var a=l(t),c=a.min,s=a.max,u=a.median,d=a.min1,f=e-i,p=e+i;r=[[f,s],[p,s],[e,s],[e,h=a.max1],[f,d],[f,h],[p,h],[p,d],[e,d],[e,c],[f,c],[p,c],[f,u],[p,u]]}else{t=(0,o.isNil)(t)?.5:t;var h,g=l(e),v=(c=g.min,s=g.max,u=g.median,t-i),m=t+i;r=[[c,v],[c,m],[c,t],[d=g.min1,t],[d,v],[d,m],[h=g.max1,m],[h,v],[h,t],[s,t],[s,v],[s,m],[u,v],[u,m]]}return r.map((function(e){return{x:e[0],y:e[1]}}))}(0,i.registerShape)("schema","box",{getPoints:function(e){return c(e.x,e.y,e.size)},draw:function(e,t){var n,o=(0,a.getStyle)(e,!0,!1),i=this.parsePath([["M",(n=e.points)[0].x,n[0].y],["L",n[1].x,n[1].y],["M",n[2].x,n[2].y],["L",n[3].x,n[3].y],["M",n[4].x,n[4].y],["L",n[5].x,n[5].y],["L",n[6].x,n[6].y],["L",n[7].x,n[7].y],["L",n[4].x,n[4].y],["Z"],["M",n[8].x,n[8].y],["L",n[9].x,n[9].y],["M",n[10].x,n[10].y],["L",n[11].x,n[11].y],["M",n[12].x,n[12].y],["L",n[13].x,n[13].y]]);return t.addShape("path",{attrs:(0,r.__assign)((0,r.__assign)({},o),{path:i,name:"schema"})})},getMarker:function(e){return{symbol:function(e,t,n){var r=c(e,[t-6,t-3,t,t+3,t+6],n);return[["M",r[0].x+1,r[0].y],["L",r[1].x-1,r[1].y],["M",r[2].x,r[2].y],["L",r[3].x,r[3].y],["M",r[4].x,r[4].y],["L",r[5].x,r[5].y],["L",r[6].x,r[6].y],["L",r[7].x,r[7].y],["L",r[4].x,r[4].y],["Z"],["M",r[8].x,r[8].y],["L",r[9].x,r[9].y],["M",r[10].x+1,r[10].y],["L",r[11].x-1,r[11].y],["M",r[12].x,r[12].y],["L",r[13].x,r[13].y]]},style:{r:6,lineWidth:1,stroke:e.color}}}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(0),i=n(70),a=n(27),l=n(33);function c(e,t,n){var r=function(e){var t=((0,o.isArray)(e)?e:[e]).sort((function(e,t){return t-e}));return(0,i.padEnd)(t,4,t[t.length-1])}(t);return[{x:e,y:r[0]},{x:e,y:r[1]},{x:e-n/2,y:r[2]},{x:e-n/2,y:r[1]},{x:e+n/2,y:r[1]},{x:e+n/2,y:r[2]},{x:e,y:r[2]},{x:e,y:r[3]}]}(0,a.registerShape)("schema","candle",{getPoints:function(e){return c(e.x,e.y,e.size)},draw:function(e,t){var n,o=(0,l.getStyle)(e,!0,!0),i=this.parsePath([["M",(n=e.points)[0].x,n[0].y],["L",n[1].x,n[1].y],["M",n[2].x,n[2].y],["L",n[3].x,n[3].y],["L",n[4].x,n[4].y],["L",n[5].x,n[5].y],["Z"],["M",n[6].x,n[6].y],["L",n[7].x,n[7].y]]);return t.addShape("path",{attrs:(0,r.__assign)((0,r.__assign)({},o),{path:i,name:"schema"})})},getMarker:function(e){var t=e.color;return{symbol:function(e,t,n){var r=c(e,[t+7.5,t+3,t-3,t-7.5],n);return[["M",r[0].x,r[0].y],["L",r[1].x,r[1].y],["M",r[2].x,r[2].y],["L",r[3].x,r[3].y],["L",r[4].x,r[4].y],["L",r[5].x,r[5].y],["Z"],["M",r[6].x,r[6].y],["L",r[7].x,r[7].y]]},style:{lineWidth:1,stroke:t,fill:t,r:6}}}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(0),i=n(27),a=n(33);function l(e,t){var n=Math.abs(e[0].x-e[2].x),r=Math.abs(e[0].y-e[2].y),i=Math.min(n,r);return t&&(i=(0,o.clamp)(t,0,Math.min(n,r))),i/=2,{x:(e[0].x+e[2].x)/2-i,y:(e[0].y+e[2].y)/2-i,width:2*i,height:2*i}}(0,i.registerShape)("polygon","square",{draw:function(e,t){if(!(0,o.isEmpty)(e.points)){var n=(0,a.getStyle)(e,!0,!0),i=this.parsePoints(e.points);return t.addShape("rect",{attrs:(0,r.__assign)((0,r.__assign)({},n),l(i,e.size)),name:"polygon"})}},getMarker:function(e){return{symbol:"square",style:{r:4,fill:e.color}}}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.antiCollision=void 0,t.antiCollision=function(e,t,n){var r=e.filter((function(e){return!e.invisible}));r.sort((function(e,t){return e.y-t.y}));var o,i=!0,a=n.minY,l=n.maxY,c=Math.abs(a-l),s=0,u=Number.MIN_VALUE,d=r.map((function(e){return e.y>s&&(s=e.y),e.y<u&&(u=e.y),{content:e.content,size:t,targets:[e.y-a],pos:null}}));for(u-=a,s-a>c&&(c=s-a);i;)for(d.forEach((function(e){var t=(Math.min.apply(u,e.targets)+Math.max.apply(u,e.targets))/2;e.pos=Math.min(Math.max(u,t-e.size/2),c-e.size),e.pos=Math.max(0,e.pos)})),i=!1,o=d.length;o--;)if(o>0){var f=d[o-1],p=d[o];f.pos+f.size>p.pos&&(f.size+=p.size,f.targets=f.targets.concat(p.targets),f.pos+f.size>c&&(f.pos=c-f.size),d.splice(o,1),i=!0)}o=0,d.forEach((function(e){var n=a+t/2;e.targets.forEach((function(){r[o].y=e.pos+n,n+=t,o++}))}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(0),i=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.shapeType="rect",t}return(0,r.__extends)(t,e),t.prototype.getRegion=function(){var e=this.points;return{start:(0,o.head)(e),end:(0,o.last)(e)}},t.prototype.getMaskAttrs=function(){var e=this.getRegion(),t=e.start,n=e.end;return{x:Math.min(t.x,n.x),y:Math.min(t.y,n.y),width:Math.abs(n.x-t.x),height:Math.abs(n.y-t.y)}},t}((0,r.__importDefault)(n(287)).default);t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(0),i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.__extends)(t,e),t.prototype.getMaskPath=function(){var e=this.points,t=[];return e.length&&((0,o.each)(e,(function(e,n){0===n?t.push(["M",e.x,e.y]):t.push(["L",e.x,e.y])})),t.push(["L",e[0].x,e[0].y])),t},t.prototype.getMaskAttrs=function(){return{path:this.getMaskPath()}},t.prototype.addPoint=function(){this.resize()},t}((0,r.__importDefault)(n(287)).default);t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BRUSH_FILTER_EVENTS=void 0;var r,o=n(1),i=n(97),a=(0,o.__importDefault)(n(44)),l=n(31);function c(e,t,n,r){var o=Math.min(n[t],r[t]),i=Math.max(n[t],r[t]),a=e.range,l=a[0],c=a[1];if(o<l&&(o=l),i>c&&(i=c),o===c&&i===c)return null;var s=e.invert(o),u=e.invert(i);if(e.isCategory){var d=e.values.indexOf(s),f=e.values.indexOf(u),p=e.values.slice(d,f+1);return function(e){return p.includes(e)}}return function(e){return e>=s&&e<=u}}!function(e){e.FILTER="brush-filter-processing",e.RESET="brush-filter-reset",e.BEFORE_FILTER="brush-filter:beforefilter",e.AFTER_FILTER="brush-filter:afterfilter",e.BEFORE_RESET="brush-filter:beforereset",e.AFTER_RESET="brush-filter:afterreset"}(r||(r={})),t.BRUSH_FILTER_EVENTS=r;var s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.dims=["x","y"],t.startPoint=null,t.isStarted=!1,t}return(0,o.__extends)(t,e),t.prototype.hasDim=function(e){return this.dims.includes(e)},t.prototype.start=function(){var e=this.context;this.isStarted=!0,this.startPoint=e.getCurrentPoint()},t.prototype.filter=function(){var e,t;if((0,l.isMask)(this.context)){var n=this.context.event.target.getCanvasBBox();e={x:n.x,y:n.y},t={x:n.maxX,y:n.maxY}}else{if(!this.isStarted)return;e=this.startPoint,t=this.context.getCurrentPoint()}if(!(Math.abs(e.x-t.x)<5||Math.abs(e.x-t.y)<5)){var o=this.context,a=o.view,s={view:a,event:o.event,dims:this.dims};a.emit(r.BEFORE_FILTER,i.Event.fromData(a,r.BEFORE_FILTER,s));var u=a.getCoordinate(),d=u.invert(t),f=u.invert(e);if(this.hasDim("x")){var p=a.getXScale(),h=c(p,"x",d,f);this.filterView(a,p.field,h)}if(this.hasDim("y")){var g=a.getYScales()[0];h=c(g,"y",d,f),this.filterView(a,g.field,h)}this.reRender(a,{source:r.FILTER}),a.emit(r.AFTER_FILTER,i.Event.fromData(a,r.AFTER_FILTER,s))}},t.prototype.end=function(){this.isStarted=!1},t.prototype.reset=function(){var e=this.context.view;if(e.emit(r.BEFORE_RESET,i.Event.fromData(e,r.BEFORE_RESET,{})),this.isStarted=!1,this.hasDim("x")){var t=e.getXScale();this.filterView(e,t.field,null)}if(this.hasDim("y")){var n=e.getYScales()[0];this.filterView(e,n.field,null)}this.reRender(e,{source:r.RESET}),e.emit(r.AFTER_RESET,i.Event.fromData(e,r.AFTER_RESET,{}))},t.prototype.filterView=function(e,t,n){e.filter(t,n)},t.prototype.reRender=function(e,t){e.render(!0,t)},t}(a.default);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(186),i=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.dims=["x","y"],t.cfgFields=["dims"],t.cacheScaleDefs={},t}return(0,r.__extends)(t,e),t.prototype.hasDim=function(e){return this.dims.includes(e)},t.prototype.getScale=function(e){var t=this.context.view;return"x"===e?t.getXScale():t.getYScales()[0]},t.prototype.resetDim=function(e){var t=this.context.view;if(this.hasDim(e)&&this.cacheScaleDefs[e]){var n=this.getScale(e);t.scale(n.field,this.cacheScaleDefs[e]),this.cacheScaleDefs[e]=null}},t.prototype.reset=function(){this.resetDim("x"),this.resetDim("y"),this.context.view.render(!0)},t}(o.Action);t.default=i},function(e,t,n){"use strict";var r=n(485);e.exports=function(e,t){if(e){if("string"===typeof e)return r(e,t);var n=Object.prototype.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)?r(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ResizeObserverEntry=void 0;var r=n(288),o=n(192);t.ResizeObserverEntry=function(e){var t=(0,r.calculateBoxSizes)(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=(0,o.freeze)([t.borderBoxSize]),this.contentBoxSize=(0,o.freeze)([t.contentBoxSize]),this.devicePixelContentBoxSize=(0,o.freeze)([t.devicePixelContentBoxSize])}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.ResizeObserverBoxOptions=void 0,function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"}(r||(t.ResizeObserverBoxOptions=r={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ResizeObserverSize=void 0;var r=n(192);t.ResizeObserverSize=function(e,t){this.inlineSize=e,this.blockSize=t,(0,r.freeze)(this)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.global=void 0,t.global="undefined"!==typeof window?window:{}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.calculateDepthForNode=void 0;var r=n(193);t.calculateDepthForNode=function(e){if((0,r.isHidden)(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t}},function(e,t,n){"use strict";var r=n(2)(n(6));Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return"object"===(0,r.default)(e)&&null!==e}},function(e,t,n){"use strict";var r=n(4),o=n.n(r),i=n(28),a=n.n(i),l=n(336),c=n.n(l),s=n(337),u=n.n(s),d=n(338),f=n.n(d),p=n(339),h=n.n(p),g=n(340),v=n.n(g),m=n(341),y=n.n(m),b=n(40),x=n(81),w=n(8),S=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(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};Object(w.registerFacet)("rect",v.a),Object(w.registerFacet)("mirror",h.a),Object(w.registerFacet)("list",u.a),Object(w.registerFacet)("matrix",f.a),Object(w.registerFacet)("circle",c.a),Object(w.registerFacet)("tree",y.a),t.a=function(e){var t=Object(b.a)(),n=Object(x.a)(),r=e.type,i=e.children,l=S(e,["type","children"]);return t.facetInstance&&(t.facetInstance.destroy(),t.facetInstance=null,n.forceReRender=!0),a()(i)?t.facet(r,o()(o()({},l),{eachView:i})):t.facet(r,o()({},l)),null}},function(e,t,n){"use strict";n(3);var r=n(344),o=n.n(r),i=n(25),a=n(40);Object(i.registerComponentController)("slider",o.a),t.a=function(e){return Object(a.a)().option("slider",e),null}},function(e,t,n){"use strict";n(97),n(271)},function(e,t,n){"use strict";n.d(t,"a",(function(){return y}));var r=n(10),o=n.n(r),i=n(9),a=n.n(i),l=n(12),c=n.n(l),s=n(13),u=n.n(s),d=n(5),f=n.n(d),p=n(332),h=n.n(p),g=n(39),v=n(8);function m(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f()(e);if(t){var o=f()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u()(this,n)}}n(466),n(477),n(476),Object(v.registerGeometry)("Schema",h.a);var y=function(e){c()(n,e);var t=m(n);function n(){var e;return a()(this,n),(e=t.apply(this,arguments)).GemoBaseClassName="schema",e}return o()(n)}(g.a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return b}));var r=n(10),o=n.n(r),i=n(9),a=n.n(i),l=n(12),c=n.n(l),s=n(13),u=n.n(s),d=n(5),f=n.n(d),p=n(158),h=n.n(p),g=n(162),v=n(39),m=n(8);function y(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f()(e);if(t){var o=f()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u()(this,n)}}Object(m.registerAnimation)("path-in",g.pathIn),Object(m.registerGeometry)("Path",h.a);var b=function(e){c()(n,e);var t=y(n);function n(){var e;return a()(this,n),(e=t.apply(this,arguments)).GemoBaseClassName="path",e}return o()(n)}(v.a)},function(e,t,n){"use strict";var r=n(4),o=n.n(r),i=n(3),a=n.n(i),l=n(127),c=n(217),s=n(218),u=n(219),d=n(128),f=n(129),p=n(220),h=n(221),g=n(17),v=n.n(g),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},y={area:l.a,edge:c.a,heatmap:s.a,interval:u.a,line:d.a,point:f.a,polygon:p.a,"line-advance":h.a};t.a=function(e){var t=e.type,n=m(e,["type"]),r=y[t];return r?a.a.createElement(r,o()({},n)):(v()(!1,"Only support the below type: area|edge|heatmap|interval|line|point|polygon|line-advance"),null)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(4),o=n.n(r),i=n(3),a=n.n(i),l=n(17),c=n.n(l),s=n(216);function u(e){return c()(!1,"Coord (\u534f\u8c03) \u7ec4\u4ef6\u5c06\u91cd\u547d\u540d\u4e3a\u66f4\u52a0\u8bed\u4e49\u5316\u7684\u7ec4\u4ef6\u540d Coordinate\uff08\u5750\u6807\uff09,\u8bf7\u4f7f\u7528Coordinate\u66ff\u4ee3\uff0c\u6211\u4eec\u5c06\u57285.0\u540e\u5220\u9664Coord\u7ec4\u4ef6"),a.a.createElement(s.a,o()({},e))}},function(e,t,n){"use strict";var r=n(17),o=n.n(r),i=n(208),a=n(209),l=n(210),c=n(211),s=n(212),u=n(213),d=n(214),f=function(e){return o()(!1,"Guide\u7ec4\u4ef6\u5c06\u57285.0\u540e\u4e0d\u518d\u652f\u6301\uff0c\u8bf7\u4f7f\u7528Annotation\u66ff\u4ee3\uff0c\u8bf7\u67e5\u770bAnnotation\u7684\u4f7f\u7528\u6587\u6863"),e.children};f.Arc=i.a,f.DataMarker=a.a,f.DataRegion=l.a,f.Image=c.a,f.Line=s.a,f.Region=u.a,f.Text=d.a,t.a=f},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(3),o=n.n(r),i=n(28),a=n.n(i),l=n(81),c=n(17),s=n.n(c);function u(e){var t=Object(l.a)();if(a()(e.children)){var n=e.children(t);return o.a.isValidElement(n)?n:null}return s()(!1,"Effects \u7684\u5b50\u7ec4\u4ef6\u5e94\u5f53\u662f\u4e00\u4e2a\u51fd\u6570 (chart) => {}"),null}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(3),o=n(40);function i(e){var t=Object(o.a)(),n=e.type,i=e.config;return Object(r.useLayoutEffect)((function(){return t.interaction(n,i),function(){t.removeInteraction(n)}})),null}},function(e,t,n){"use strict";var r=n(2)(n(6));Object.defineProperty(t,"__esModule",{value:!0}),t.pick=void 0,t.pick=function(e,t){var n={};return null!==e&&"object"===(0,r.default)(e)&&t.forEach((function(t){var r=e[t];void 0!==r&&(n[t]=r)})),n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.log=t.invariant=t.LEVEL=void 0;var r=n(1);!function(e){e.ERROR="error",e.WARN="warn",e.INFO="log"}(t.LEVEL||(t.LEVEL={}));var o="AntV/G2Plot";function i(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=0;return o+": "+e.replace(/%s/g,(function(){return""+t[r++]}))}t.invariant=function(e,t){for(var n=[],a=2;a<arguments.length;a++)n[a-2]=arguments[a];if(!e){var l=new Error(i.apply(void 0,r.__spreadArrays([t],n)));throw l.name=o,l}},t.log=function(e,t,n){for(var o=[],a=3;a<arguments.length;a++)o[a-3]=arguments[a];t||console[e](i.apply(void 0,r.__spreadArrays([n],o)))}},function(e,t,n){"use strict";function r(e){var t=e.parent;return t?t.views:[]}Object.defineProperty(t,"__esModule",{value:!0}),t.getSiblingViews=t.getViews=t.findViewById=void 0,t.findViewById=function(e,t){return e.views.find((function(e){return e.id===t}))},t.getViews=r,t.getSiblingViews=function(e){return r(e).filter((function(t){return t!==e}))}},function(e,t,n){"use strict";var r=n(2)(n(6));Object.defineProperty(t,"__esModule",{value:!0}),t.deepAssign=void 0;var o={}.toString,i=function(e,t){return o.call(e)==="[object "+t+"]"},a=function(e){return i(e,"Array")},l=function(e){if(!function(e){return"object"===(0,r.default)(e)&&null!==e}(e)||!i(e,"Object"))return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t},c=function e(t,n,r,o){for(var i in r=r||0,o=o||5,n)if(Object.prototype.hasOwnProperty.call(n,i)){var c=n[i];c?l(c)?(l(t[i])||(t[i]={}),r<o?e(t[i],c,r+1,o):t[i]=n[i]):a(c)?(t[i]=[],t[i]=t[i].concat(c)):t[i]=c:t[i]=c}};t.deepAssign=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0;r<t.length;r+=1)c(e,t[r]);return e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.renderGaugeStatistic=t.renderStatistic=t.setStatisticContainerStyle=t.adapteStyle=void 0;var r=n(1),o=n(0),i=n(15);function a(e){var t={overflow:"hidden","white-space":"nowrap","text-overflow":"ellipsis",display:"flex",justifyContent:"center",alignItems:"center"},n=["stroke","lineWidth","shadowColor","strokeOpacity","shadowBlur","shadowOffsetX","shadowOffsetY","fill"];o.get(e,"fill")&&(t.color=e.fill);var r=i.pick(e,n),a=r.shadowColor,l=r.shadowBlur,c=void 0===l?0:l,s=r.shadowOffsetX,u=void 0===s?0:s,d=r.shadowOffsetY,f=void 0===d?0:d;t["text-shadow"]=""+[a,u+"px",f+"px",c+"px"].join(" ");var p=i.pick(e,n),h=p.stroke,g=p.lineWidth,v=void 0===g?0:g;return t["-webkit-text-stroke"]=""+[v+"px",h].join(" "),o.each(e,(function(e,r){["fontSize"].includes(r)&&o.isNumber(e)?t[i.kebabCase(r)]=e+"px":r&&!n.includes(r)&&(t[i.kebabCase(r)]=""+e)})),t}function l(e,t){e.style["pointer-events"]="none",o.each(t,(function(t,n){n&&t&&(e.style[n]=t)}))}t.adapteStyle=a,t.setStatisticContainerStyle=l,t.renderStatistic=function(e,t,n){var c=t.statistic,s=t.plotType,u=c.title,d=c.content;[u,d].forEach((function(t,c){if(t){var f="";f=0===c?d?"translate(-50%, -100%)":"translate(-50%, -50%)":u?"translate(-50%, 0)":"translate(-50%, -50%)";var p=o.isFunction(t.style)?t.style(n):t.style;e.annotation().html(r.__assign({position:["50%","50%"],html:function(e,i){var c=i.getCoordinate(),u=0;if("pie"===s||"ring-progress"===s)u=c.getRadius()*c.innerRadius*2;else if("liquid"===s){var d=o.get(i.geometries,[0,"elements",0,"shape"]);d&&(u=d.find((function(e){return"wrap"===e.get("name")})).getCanvasBBox().width)}else u||(u=c.getWidth());l(e,r.__assign({width:u+"px",transform:f},a(p)));var h=i.getData();if(t.customHtml)return t.customHtml(e,i,n,h);var g=t.content;return t.formatter&&(g=t.formatter(n,h)),g?o.isString(g)?g:""+g:"<div></div>"},key:(0===c?"top":"bottom")+"-statistic"},i.pick(t,["offsetX","offsetY","rotate","style","formatter"])))}}))},t.renderGaugeStatistic=function(e,t,n){var c=t.statistic;[c.title,c.content].forEach((function(t){if(t){var c=o.isFunction(t.style)?t.style(n):t.style;e.annotation().html(r.__assign({position:["50%","100%"],html:function(e,i){var s=i.getCoordinate(),u=i.views[0].getCoordinate(),d=u.getCenter(),f=u.getRadius(),p=Math.max(Math.sin(u.startAngle),Math.sin(u.endAngle))*f,h=d.y+p-s.y.start-parseFloat(o.get(c,"fontSize",0)),g=s.getRadius()*s.innerRadius*2;l(e,r.__assign({width:g+"px",transform:"translate(-50%, "+h+"px)"},a(c)));var v=i.getData();if(t.customHtml)return t.customHtml(e,i,n,v);var m=t.content;return t.formatter&&(m=t.formatter(n,v)),m?o.isString(m)?m:""+m:"<div></div>"}},i.pick(t,["offsetX","offsetY","rotate","style","formatter"])))}}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(132),o=n.n(r),i=n(3),a=n(91);function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default",t=Object(a.getTheme)(e);t.name=e;var n=Object(i.useState)(t),r=o()(n,2),l=r[0],c=r[1];return[l,function(e){var t=Object(a.getTheme)(e);t.name=e,c(t)}]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ver=t.clear=t.bind=void 0;var r=n(1070);t.bind=function(e,t){var n=(0,r.getSensor)(e);return n.bind(t),function(){n.unbind(t)}},t.clear=function(e){var t=(0,r.getSensor)(e);(0,r.removeSensor)(t)},t.ver="1.0.2"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:60,n=null;return function(){for(var r=this,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];clearTimeout(n),n=setTimeout((function(){e.apply(r,i)}),t)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.adaptor=t.geometry=void 0;var r=n(0),o=n(15),i=n(34),a=n(43),l=n(513),c=n(295);function s(e){var t=e.chart,n=e.options,i=n.percent,s=n.progressStyle,u=n.color,d=n.barWidthRatio;t.data(c.getProgressData(i));var f=o.deepAssign({},e,{options:{xField:"1",yField:"percent",seriesField:"type",isStack:!0,widthRatio:d,interval:{style:s,color:r.isString(u)?[u,l.DEFAULT_COLOR[1]]:u},args:{zIndexReversed:!0}}});return a.interval(f),t.tooltip(!1),t.axis(!1),t.legend(!1),e}function u(e){return e.chart.coordinate("rect").transpose(),e}t.geometry=s,t.adaptor=function(e){return o.flow(s,i.scale({}),u,i.animation,i.theme,i.annotation())(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AXIS_META_CONFIG_KEYS=void 0,t.AXIS_META_CONFIG_KEYS=["type","alias","tickCount","tickInterval","min","max","nice","minLimit","maxLimit","range","tickMethod","base","exponent","mask","sync"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.polygon=void 0;var r=n(1),o=n(64),i=n(15),a=n(59);t.polygon=function(e){var t=e.options,n=t.polygon,l=t.xField,c=t.yField,s=t.seriesField,u=t.tooltip,d=o.getTooltipMapping(u,[l,c,s]),f=d.fields,p=d.formatter;return n?a.geometry(i.deepAssign({},e,{options:{type:"polygon",colorField:s,tooltipFields:f,mapping:r.__assign({tooltip:p},n)}})):e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_OPTIONS=t.DEFAULT_COLOR=void 0,t.DEFAULT_COLOR=["#FAAD14","#E8EDF3"],t.DEFAULT_OPTIONS={percent:.2,color:t.DEFAULT_COLOR,animation:{}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.adaptor=t.adjust=t.legend=t.axis=t.meta=void 0;var r=n(1),o=n(0),i=n(34),a=n(15),l=n(43),c=n(15),s=n(291);function u(e){var t=e.chart,n=e.options,o=n.data,i=n.color,c=n.lineStyle,s=n.lineShape,u=n.point,d=n.area,f=n.seriesField,p=null===u||void 0===u?void 0:u.state;t.data(o);var h=a.deepAssign({},e,{options:{shapeField:f,line:{color:i,style:c,shape:s},point:u&&r.__assign({color:i,shape:"circle"},u),area:d&&r.__assign({color:i},d),label:void 0}}),g=a.deepAssign({},h,{options:{tooltip:!1,state:p}}),v=a.deepAssign({},h,{options:{tooltip:!1,state:p}});return l.line(h),l.point(g),l.area(v),e}function d(e){var t,n,r=e.options,o=r.xAxis,a=r.yAxis,l=r.xField,u=r.yField,d=r.data;return c.flow(i.scale(((t={})[l]=o,t[u]=a,t),((n={})[l]={type:"cat"},n[u]=s.adjustYMetaByZero(d,u),n)))(e)}function f(e){var t=e.chart,n=e.options.reflect;if(n){var r=n;o.isArray(r)||(r=[r]);var i=r.map((function(e){return["reflect",e]}));t.coordinate({type:"rect",actions:i})}return e}function p(e){var t=e.chart,n=e.options,r=n.xAxis,o=n.yAxis,i=n.xField,a=n.yField;return!1===r?t.axis(i,!1):t.axis(i,r),!1===o?t.axis(a,!1):t.axis(a,o),e}function h(e){var t=e.chart,n=e.options,r=n.legend,o=n.seriesField;return r&&o?t.legend(o,r):!1===r&&t.legend(!1),e}function g(e){var t=e.chart,n=e.options,o=n.label,i=n.yField,l=a.findGeometry(t,"line");if(o){var c=o.callback,s=r.__rest(o,["callback"]);l.label({fields:[i],callback:c,cfg:r.__assign({layout:[{type:"limit-in-plot"},{type:"path-adjust-position"},{type:"point-adjust-position"},{type:"limit-in-plot",cfg:{action:"hide"}}]},a.transformLabel(s))})}else l.label(!1);return e}function v(e){var t=e.chart;return e.options.isStack&&o.each(t.geometries,(function(e){e.adjust("stack")})),e}t.meta=d,t.axis=p,t.legend=h,t.adjust=v,t.adaptor=function(e){return c.flow(u,d,v,i.theme,f,p,h,i.tooltip,g,i.slider,i.interaction,i.animation,i.annotation(),i.limitInPlot)(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.transformData=t.resetDrillDown=t.enableDrillInteraction=t.enableInteraction=t.findInteraction=void 0;var r=n(1),o=n(0),i=n(516),a=n(1096);function l(e,t){if(o.isArray(e))return e.find((function(e){return e.type===t}))}function c(e,t){var n=l(e,t);return n&&!1!==n.enable}t.findInteraction=l,t.enableInteraction=c,t.enableDrillInteraction=function(e){var t=e.interactions,n=e.drilldown;return o.get(n,"enabled")||c(t,"treemap-drill-down")},t.resetDrillDown=function(e){var t=e.interactions["drill-down"];t&&t.context.actions.find((function(e){return"drill-down-action"===e.name})).reset()},t.transformData=function(e){var t=e.data,n=e.colorField,l=e.enableDrillDown,c=e.hierarchyConfig,s=a.treemap(t,r.__assign(r.__assign({},c),{type:"hierarchy.treemap",field:"value",as:["x","y"]})),u=[];return s.forEach((function(e){if(0===e.depth)return null;if(l&&1!==e.depth)return null;if(!l&&e.children)return null;var a=e.ancestors().map((function(e){return{data:e.data,height:e.height,value:e.value}})),s=l&&o.isArray(t.path)?a.concat(t.path.slice(1)):a,d=Object.assign({},e.data,r.__assign({x:e.x,y:e.y,depth:e.depth,value:e.value,path:s},e));if(!e.data[n]&&e.parent){var f=e.ancestors().find((function(e){return e.data[n]}));d[n]=null===f||void 0===f?void 0:f.data[n]}else d[n]=e.data[n];d[i.HIERARCHY_DATA_TRANSFORM_PARAMS]={hierarchyConfig:c,colorField:n,enableDrillDown:l},u.push(d)})),u}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DrillDownAction=t.HIERARCHY_DATA_TRANSFORM_PARAMS=t.DEFAULT_BREAD_CRUMB_CONFIG=t.BREAD_CRUMB_NAME=t.PADDING_TOP=void 0;var r=n(1),o=n(14),i=n(0),a=n(505);t.PADDING_TOP=5,t.BREAD_CRUMB_NAME="drilldown-bread-crumb",t.DEFAULT_BREAD_CRUMB_CONFIG={position:"top-left",dividerText:"/",textStyle:{fontSize:12,fill:"rgba(0, 0, 0, 0.65)",cursor:"pointer"},activeTextStyle:{fill:"#87B5FF"}},t.HIERARCHY_DATA_TRANSFORM_PARAMS="hierarchy-data-transform-params";var l=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.name="drill-down",n.historyCache=[],n.breadCrumbGroup=null,n.breadCrumbCfg=t.DEFAULT_BREAD_CRUMB_CONFIG,n}return r.__extends(n,e),n.prototype.click=function(){var e=i.get(this.context,["event","data","data"]);if(!e)return!1;this.drill(e),this.drawBreadCrumb()},n.prototype.resetPosition=function(){if(this.breadCrumbGroup){var e=this.context.view.getCoordinate(),n=this.breadCrumbGroup,r=n.getBBox(),i=this.getButtonCfg().position,a={x:e.start.x,y:e.end.y-(r.height+2*t.PADDING_TOP)};e.isPolar&&(a={x:0,y:0}),"bottom-left"===i&&(a={x:e.start.x,y:e.start.y});var l=o.Util.transform(null,[["t",a.x+0,a.y+r.height+t.PADDING_TOP]]);n.setMatrix(l)}},n.prototype.back=function(){i.size(this.historyCache)&&this.backTo(this.historyCache.slice(0,-1))},n.prototype.reset=function(){this.historyCache[0]&&this.backTo(this.historyCache.slice(0,1)),this.historyCache=[],this.hideCrumbGroup()},n.prototype.drill=function(e){var n=this.context.view,o=i.get(n,["interactions","drill-down","cfg","transformData"],(function(e){return e})),a=o(r.__assign({data:e.data},e[t.HIERARCHY_DATA_TRANSFORM_PARAMS]));n.changeData(a);for(var l=[],c=e;c;){var s=c.data;l.unshift({id:s.name+"_"+c.height+"_"+c.depth,name:s.name,children:o(r.__assign({data:s},e[t.HIERARCHY_DATA_TRANSFORM_PARAMS]))}),c=c.parent}this.historyCache=(this.historyCache||[]).slice(0,-1).concat(l)},n.prototype.backTo=function(e){if(e&&!(e.length<=0)){var t=this.context.view,n=i.last(e).children;t.changeData(n),e.length>1?(this.historyCache=e,this.drawBreadCrumb()):(this.historyCache=[],this.hideCrumbGroup())}},n.prototype.getButtonCfg=function(){var e=this.context.view,t=i.get(e,["interactions","drill-down","cfg","drillDownConfig"]);return a.deepAssign(this.breadCrumbCfg,null===t||void 0===t?void 0:t.breadCrumb,this.cfg)},n.prototype.drawBreadCrumb=function(){this.drawBreadCrumbGroup(),this.resetPosition(),this.breadCrumbGroup.show()},n.prototype.drawBreadCrumbGroup=function(){var e=this,n=this.getButtonCfg(),o=this.historyCache;this.breadCrumbGroup?this.breadCrumbGroup.clear():this.breadCrumbGroup=this.context.view.foregroundGroup.addGroup({name:t.BREAD_CRUMB_NAME});var a=0;o.forEach((function(l,c){var s=e.breadCrumbGroup.addShape({type:"text",id:l.id,name:t.BREAD_CRUMB_NAME+"_"+l.name+"_text",attrs:r.__assign(r.__assign({text:0!==c||i.isNil(n.rootText)?l.name:n.rootText},n.textStyle),{x:a,y:0})}),u=s.getBBox();if(a+=u.width+4,s.on("click",(function(t){var n,r=t.target.get("id");if(r!==(null===(n=i.last(o))||void 0===n?void 0:n.id)){var a=o.slice(0,o.findIndex((function(e){return e.id===r}))+1);e.backTo(a)}})),s.on("mouseenter",(function(e){var t;e.target.get("id")!==(null===(t=i.last(o))||void 0===t?void 0:t.id)?s.attr(n.activeTextStyle):s.attr({cursor:"default"})})),s.on("mouseleave",(function(){s.attr(n.textStyle)})),c<o.length-1){var d=e.breadCrumbGroup.addShape({type:"text",name:n.name+"_"+l.name+"_divider",attrs:r.__assign(r.__assign({text:n.dividerText},n.textStyle),{x:a,y:0})}).getBBox();a+=d.width+4}}))},n.prototype.hideCrumbGroup=function(){this.breadCrumbGroup&&this.breadCrumbGroup.hide()},n.prototype.destroy=function(){this.breadCrumbGroup&&this.breadCrumbGroup.remove(),e.prototype.destroy.call(this)},n}(o.Action);t.DrillDownAction=l},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return u(e),e},t.packEnclose=u;var o=r(n(518)),i=r(n(519));function a(e,t,n){var r,o,i,a,l=e.x-t.x,c=e.y-t.y,s=l*l+c*c;s?(o=t.r+n.r,o*=o,a=e.r+n.r,o>(a*=a)?(r=(s+a-o)/(2*s),i=Math.sqrt(Math.max(0,a/s-r*r)),n.x=e.x-r*l-i*c,n.y=e.y-r*c+i*l):(r=(s+o-a)/(2*s),i=Math.sqrt(Math.max(0,o/s-r*r)),n.x=t.x+r*l-i*c,n.y=t.y+r*c+i*l)):(n.x=t.x+n.r,n.y=t.y)}function l(e,t){var n=e.r+t.r-1e-6,r=t.x-e.x,o=t.y-e.y;return n>0&&n*n>r*r+o*o}function c(e){var t=e._,n=e.next._,r=t.r+n.r,o=(t.x*n.r+n.x*t.r)/r,i=(t.y*n.r+n.y*t.r)/r;return o*o+i*i}function s(e){this._=e,this.next=null,this.previous=null}function u(e){if(!(u=(e=(0,o.default)(e)).length))return 0;var t,n,r,u,d,f,p,h,g,v,m;if((t=e[0]).x=0,t.y=0,!(u>1))return t.r;if(n=e[1],t.x=-n.r,n.x=t.r,n.y=0,!(u>2))return t.r+n.r;a(n,t,r=e[2]),t=new s(t),n=new s(n),r=new s(r),t.next=r.previous=n,n.next=t.previous=r,r.next=n.previous=t;e:for(p=3;p<u;++p){a(t._,n._,r=e[p]),r=new s(r),h=n.next,g=t.previous,v=n._.r,m=t._.r;do{if(v<=m){if(l(h._,r._)){n=h,t.next=n,n.previous=t,--p;continue e}v+=h._.r,h=h.next}else{if(l(g._,r._)){(t=g).next=n,n.previous=t,--p;continue e}m+=g._.r,g=g.previous}}while(h!==g.next);for(r.previous=t,r.next=n,t.next=n.previous=n=r,d=c(t);(r=r.next)!==n;)(f=c(r))<d&&(t=r,d=f);n=t.next}for(t=[n._],r=n;(r=r.next)!==n;)t.push(r._);for(r=(0,i.default)(t),p=0;p<u;++p)(t=e[p]).x-=r.x,t.y-=r.y;return r.r}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return"object"===(0,o.default)(e)&&"length"in e?e:Array.from(e)},t.shuffle=function(e){for(var t,n,r=e.length;r;)n=Math.random()*r--|0,t=e[r],e[r]=e[n],e[n]=t;return e};var o=r(n(6))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){for(var t,n,i=0,l=(e=(0,r.shuffle)(Array.from(e))).length,s=[];i<l;)t=e[i],n&&a(n,t)?++i:(n=c(s=o(s,t)),i=0);return n};var r=n(518);function o(e,t){var n,r;if(l(t,e))return[t];for(n=0;n<e.length;++n)if(i(t,e[n])&&l(s(e[n],t),e))return[e[n],t];for(n=0;n<e.length-1;++n)for(r=n+1;r<e.length;++r)if(i(s(e[n],e[r]),t)&&i(s(e[n],t),e[r])&&i(s(e[r],t),e[n])&&l(u(e[n],e[r],t),e))return[e[n],e[r],t];throw new Error}function i(e,t){var n=e.r-t.r,r=t.x-e.x,o=t.y-e.y;return n<0||n*n<r*r+o*o}function a(e,t){var n=e.r-t.r+1e-9*Math.max(e.r,t.r,1),r=t.x-e.x,o=t.y-e.y;return n>0&&n*n>r*r+o*o}function l(e,t){for(var n=0;n<t.length;++n)if(!a(e,t[n]))return!1;return!0}function c(e){switch(e.length){case 1:return{x:(t=e[0]).x,y:t.y,r:t.r};case 2:return s(e[0],e[1]);case 3:return u(e[0],e[1],e[2])}var t}function s(e,t){var n=e.x,r=e.y,o=e.r,i=t.x,a=t.y,l=t.r,c=i-n,s=a-r,u=l-o,d=Math.sqrt(c*c+s*s);return{x:(n+i+c/d*u)/2,y:(r+a+s/d*u)/2,r:(d+o+l)/2}}function u(e,t,n){var r=e.x,o=e.y,i=e.r,a=t.x,l=t.y,c=t.r,s=n.x,u=n.y,d=n.r,f=r-a,p=r-s,h=o-l,g=o-u,v=c-i,m=d-i,y=r*r+o*o-i*i,b=y-a*a-l*l+c*c,x=y-s*s-u*u+d*d,w=p*h-f*g,S=(h*x-g*b)/(2*w)-r,O=(g*v-h*m)/w,_=(p*b-f*x)/(2*w)-o,C=(f*m-p*v)/w,E=O*O+C*C-1,P=2*(i+S*O+_*C),M=S*S+_*_-i*i,k=-(E?(P+Math.sqrt(P*P-4*E*M))/(2*E):M/P);return{x:r+S+O*k,y:o+_+C*k,r:k}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.constantZero=function(){return 0},t.default=function(e){return function(){return e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n(14).registerInteraction("drag-move",{start:[{trigger:"plot:mousedown",action:"scale-translate:start"}],processing:[{trigger:"plot:mousemove",action:"scale-translate:translate",throttle:{wait:100,leading:!0,trailing:!1}}],end:[{trigger:"plot:mouseup",action:"scale-translate:end"}]})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.conversionTagFormatter=void 0;var r=n(0);t.conversionTagFormatter=function(e,t){return r.isNumber(e)&&r.isNumber(t)?e===t?"100%":0===e?"\u221e":0===t?"-\u221e":(100*t/e).toFixed(2)+"%":"-"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.brushInteraction=void 0;var r=n(0),o=n(525),i=n(15);n(525);var a=["brush","brush-x","brush-y","brush-highlight","brush-x-highlight","brush-y-highlight"];t.brushInteraction=function(e){var t=e.options,n=t.brush,l=r.filter(t.interactions||[],(function(e){return-1===a.indexOf(e.type)}));return(null===n||void 0===n?void 0:n.enabled)&&(a.forEach((function(e){var t,r=!1;switch(n.type){case"x-rect":r=e===("highlight"===n.action?"brush-x-highlight":"brush-x");break;case"y-rect":r=e===("highlight"===n.action?"brush-y-highlight":"brush-y");break;default:r=e===("highlight"===n.action?"brush-highlight":"brush")}var i={type:e,enable:r};((null===(t=n.mask)||void 0===t?void 0:t.style)||n.type)&&(i.cfg=o.getInteractionCfg(e,n.type,n.mask)),l.push(i)})),"highlight"!==(null===n||void 0===n?void 0:n.action)&&l.push({type:"filter-action",cfg:{buttonConfig:n.button}})),i.deepAssign({},e,{options:{interactions:l}})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getInteractionCfg=void 0;var r=n(14),o=n(1128);function i(e){return e.isInPlot()}function a(e,t,n){var r=t||"rect";switch(e){case"brush":return{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:i,action:["brush:start",r+"-mask:start",r+"-mask:show"],arg:[null,{maskStyle:null===n||void 0===n?void 0:n.style}]}],processing:[{trigger:"mousemove",isEnable:i,action:[r+"-mask:resize"]}],end:[{trigger:"mouseup",isEnable:i,action:["brush:filter","brush:end",r+"-mask:end",r+"-mask:hide","brush-reset-button:show"]}],rollback:[{trigger:"brush-reset-button:click",action:["brush:reset","brush-reset-button:hide","cursor:crosshair"]}]};case"brush-highlight":case"brush-x-highlight":case"brush-y-highlight":return{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"mask:mouseenter",action:"cursor:move"},{trigger:"plot:mouseleave",action:"cursor:default"},{trigger:"mask:mouseleave",action:"cursor:crosshair"}],start:[{trigger:"plot:mousedown",isEnable:function(e){return!e.isInShape("mask")},action:[r+"-mask:start",r+"-mask:show"],arg:[{maskStyle:null===n||void 0===n?void 0:n.style}]},{trigger:"mask:dragstart",action:[r+"-mask:moveStart"]}],processing:[{trigger:"plot:mousemove",action:[r+"-mask:resize"]},{trigger:"mask:drag",action:[r+"-mask:move"]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:[r+"-mask:end"]},{trigger:"mask:dragend",action:[r+"-mask:moveEnd"]},{trigger:"document:mouseup",isEnable:function(e){return!e.isInPlot()},action:["element-range-highlight:clear",r+"-mask:end",r+"-mask:hide"]}],rollback:[{trigger:"dblclick",action:["element-range-highlight:clear",r+"-mask:hide"]}]};case"brush-x":return{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:i,action:["brush-x:start",r+"-mask:start",r+"-mask:show"],arg:[null,{maskStyle:null===n||void 0===n?void 0:n.style}]}],processing:[{trigger:"mousemove",isEnable:i,action:[r+"-mask:resize"]}],end:[{trigger:"mouseup",isEnable:i,action:["brush-x:filter","brush-x:end",r+"-mask:end",r+"-mask:hide"]}],rollback:[{trigger:"dblclick",action:["brush-x:reset"]}]};case"brush-y":return{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:i,action:["brush-y:start",r+"-mask:start",r+"-mask:show"],arg:[null,{maskStyle:null===n||void 0===n?void 0:n.style}]}],processing:[{trigger:"mousemove",isEnable:i,action:[r+"-mask:resize"]}],end:[{trigger:"mouseup",isEnable:i,action:["brush-y:filter","brush-y:end",r+"-mask:end",r+"-mask:hide"]}],rollback:[{trigger:"dblclick",action:["brush-y:reset"]}]};default:return{}}}r.registerAction("brush-reset-button",o.ButtonAction,{name:"brush-reset-button"}),r.registerInteraction("filter-action",{}),t.getInteractionCfg=a,r.registerInteraction("brush",a("brush")),r.registerInteraction("brush-highlight",a("brush-highlight")),r.registerInteraction("brush-x",a("brush-x","x-rect")),r.registerInteraction("brush-y",a("brush-y","y-rect")),r.registerInteraction("brush-x-highlight",a("brush-x-highlight","x-rect")),r.registerInteraction("brush-y-highlight",a("brush-y-highlight","y-rect"))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.transformBarData=void 0,t.transformBarData=function(e){return e?e.slice().reverse():e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_OPTIONS=void 0;var r=n(24),o=n(15);t.DEFAULT_OPTIONS=o.deepAssign({},r.Plot.getDefaultOptions(),{legend:{position:"right"},tooltip:{shared:!1,showTitle:!1,showMarkers:!1},label:{layout:{type:"limit-in-plot",cfg:{action:"ellipsis"}}},pieStyle:{stroke:"white",lineWidth:1},statistic:{title:{style:{fontWeight:300,color:"#4B535E",textAlign:"center",fontSize:"20px",lineHeight:1}},content:{style:{fontWeight:"bold",color:"rgba(44,53,66,0.85)",textAlign:"center",fontSize:"32px",lineHeight:1}}},theme:{components:{annotation:{text:{animate:!1}}}}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isAllZero=t.adaptOffset=t.getTotalValue=void 0;var r=n(0),o=n(15);t.getTotalValue=function(e,t){var n=null;return r.each(e,(function(e){"number"===typeof e[t]&&(n+=e[t])})),n},t.adaptOffset=function(e,t){var n;switch(e){case"inner":return n="-30%",r.isString(t)&&t.endsWith("%")?.01*parseFloat(t)>0?n:t:t<0?t:n;case"outer":return n=12,r.isString(t)&&t.endsWith("%")?.01*parseFloat(t)<0?n:t:t>0?t:n;default:return t}},t.isAllZero=function(e,t){return r.every(o.processIllegalData(e,t),(function(e){return 0===e[t]}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PIE_STATISTIC=void 0;var r=n(14),o=n(1134),i=n(1135);t.PIE_STATISTIC="pie-statistic",r.registerAction(t.PIE_STATISTIC,i.StatisticAction),r.registerInteraction("pie-statistic-active",{start:[{trigger:"element:mouseenter",action:"pie-statistic:change"}],end:[{trigger:"element:mouseleave",action:"pie-statistic:reset"}]}),r.registerAction("pie-legend",o.PieLegendAction),r.registerInteraction("pie-legend-active",{start:[{trigger:"legend-item:mouseenter",action:"pie-legend:active"}],end:[{trigger:"legend-item:mouseleave",action:"pie-legend:reset"}]})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.transform=void 0;var r=n(1),o=n(14),i=[1,0,0,0,1,0,0,0,1];t.transform=function(e,t){var n=t?r.__spreadArrays(t):r.__spreadArrays(i);return o.Util.transform(n,e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSingleKeyValues=t.getFontSizeMapping=t.processImageMask=t.getSize=t.transform=void 0;var r=n(1),o=n(0),i=n(292),a=n(15),l=n(1142);function c(e){var t=e.width,n=e.height,r=e.container,o=e.autoFit,l=e.padding,c=e.appendPadding;if(o){var s=a.getContainerSize(r);t=s.width,n=s.height}t=t||400,n=n||400;var u=function(e){var t=i.normalPadding(e.padding),n=i.normalPadding(e.appendPadding),r=t[0]+n[0],o=t[1]+n[1],a=t[2]+n[2],l=t[3]+n[3];return[r,o,a,l]}({padding:l,appendPadding:c}),d=u[0],f=u[1],p=u[2];return[t-(u[3]+f),n-(d+p)]}function s(e,t){if(o.isFunction(e))return e;if(o.isArray(e)){var n=e[0],r=e[1];if(!t)return function(){return(r+n)/2};var i=t[0],a=t[1];return a===i?function(){return(r+n)/2}:function(e){var t=e.value;return(r-n)/(a-i)*(t-i)+n}}return function(){return e}}function u(e,t){return e.map((function(e){return e[t]})).filter((function(e){return"number"===typeof e&&!isNaN(e)}))}function d(e){var t=function(e){var t=e.wordStyle.rotationSteps;return t<1&&(a.log(a.LEVEL.WARN,!1,"The rotationSteps option must be greater than or equal to 1."),t=1),{rotation:e.wordStyle.rotation,rotationSteps:t}}(e),n=t.rotation,r=t.rotationSteps;if(!o.isArray(n))return n;var i=n[0],l=n[1],c=1===r?0:(l-i)/(r-1);return function(){return l===i?l:Math.floor(Math.random()*r)*c}}function f(e){return Math.max.apply(Math,e)}t.transform=function(e){var t=e.options,n=e.chart,i=n,a=i.width,p=i.height,h=i.padding,g=i.appendPadding,v=i.ele,m=t.data,y=t.imageMask,b=t.wordField,x=t.weightField,w=t.colorField,S=t.wordStyle,O=t.timeInterval,_=t.random,C=t.spiral,E=t.autoFit,P=void 0===E||E,M=t.placementStrategy;if(!m||!m.length)return[];var k,A=S.fontFamily,I=S.fontWeight,T=S.padding,j=S.fontSize,L=u(m,x),R=[(k=L,Math.min.apply(Math,k)),f(L)],D=m.map((function(e){return{text:e[b],value:e[x],color:e[w],datum:e}})),N={imageMask:y,font:A,fontSize:s(j,R),fontWeight:I,size:c({width:a,height:p,padding:h,appendPadding:g,autoFit:P,container:v}),padding:T,timeInterval:O,random:_,spiral:C,rotate:d(t)};if(o.isFunction(M)){var F=D.map((function(e,t,o){return r.__assign(r.__assign(r.__assign({},e),{hasText:!!e.text,font:l.functor(N.font)(e,t,o),weight:l.functor(N.fontWeight)(e,t,o),rotate:l.functor(N.rotate)(e,t,o),size:l.functor(N.fontSize)(e,t,o),style:"normal"}),M.call(n,e,t,o))}));return F.push({text:"",value:0,x:0,y:0,opacity:0}),F.push({text:"",value:0,x:N.size[0],y:N.size[1],opacity:0}),F}return l.wordCloud(D,N)},t.getSize=c,t.processImageMask=function(e){return new Promise((function(t,n){if(e instanceof HTMLImageElement)t(e);else{if(o.isString(e)){var r=new Image;return r.crossOrigin="anonymous",r.src=e,r.onload=function(){t(r)},void(r.onerror=function(){a.log(a.LEVEL.ERROR,!1,"image %s load failed !!!",e),n()})}a.log(a.LEVEL.WARN,void 0===e,"The type of imageMask option must be String or HTMLImageElement."),n()}}))},t.getFontSizeMapping=s,t.getSingleKeyValues=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_OPTIONS=t.WORD_CLOUD_COLOR_FIELD=void 0;var r=n(24),o=n(15);t.WORD_CLOUD_COLOR_FIELD="color",t.DEFAULT_OPTIONS=o.deepAssign({},r.Plot.getDefaultOptions(),{timeInterval:2e3,legend:!1,tooltip:{showTitle:!1,showMarkers:!1,showCrosshairs:!1,fields:["text","value",t.WORD_CLOUD_COLOR_FIELD],formatter:function(e){return{name:e.text,value:e.value}}},wordStyle:{fontFamily:"Verdana",fontWeight:"normal",padding:1,fontSize:[12,60],rotation:[0,90],rotationSteps:2,rotateRatio:.5}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.basicFunnel=void 0;var r=n(1),o=n(0),i=n(15),a=n(64),l=n(59),c=n(119),s=n(300);function u(e){var t=e.chart,n=e.options,r=n.data,o=void 0===r?[]:r,i=n.yField,a=n.maxSize,l=n.minSize,c=s.transformData(o,o,{yField:i,maxSize:a,minSize:l});return t.data(c),e}function d(e){var t=e.chart,n=e.options,r=n.xField,s=n.yField,u=n.color,d=n.tooltip,f=n.label,p=n.shape,h=void 0===p?"funnel":p,g=n.funnelStyle,v=n.state,m=a.getTooltipMapping(d,[r,s]),y=m.fields,b=m.formatter;return l.geometry({chart:t,options:{type:"interval",xField:r,yField:c.FUNNEL_MAPPING_VALUE,colorField:r,tooltipFields:o.isArray(y)&&y.concat([c.FUNNEL_PERCENT,c.FUNNEL_CONVERSATION]),mapping:{shape:h,tooltip:b,color:u,style:g},label:f,state:v}}),i.findGeometry(e.chart,"interval").adjust("symmetric"),e}function f(e){var t=e.chart,n=e.options.isTransposed;return t.coordinate({type:"rect",actions:n?[]:[["transpose"],["scale",1,-1]]}),e}function p(e){var t=e.options.maxSize;return s.conversionTagComponent((function(e,n,o,i){var a=t-(t-e[c.FUNNEL_MAPPING_VALUE])/2;return r.__assign(r.__assign({},i),{start:[n-.5,a],end:[n-.5,a+.05]})}))(e),e}t.basicFunnel=function(e){return i.flow(u,d,f,p)(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getLiquidData=void 0,t.getLiquidData=function(e){return[{percent:e,type:"liquid"}]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.binHistogram=void 0;var r=n(0);function o(e,t,n){if(1===n)return[0,t];var r=Math.floor(e/t);return[t*r,t*(r+1)]}t.binHistogram=function(e,t,n,i,a){var l=r.clone(e);r.sortBy(l,t);var c=r.valuesOfKey(l,t),s=r.getRange(c),u=s.max-s.min,d=n;if(!n&&i&&(d=i>1?u/(i-1):s.max),!n&&!i){var f=function(e){return Math.ceil(Math.log(e.length)/Math.LN2)+1}(c);d=u/f}var p={},h=r.groupBy(l,a);r.isEmpty(h)?r.each(l,(function(e){var n=o(e[t],d,i),a=n[0]+"-"+n[1];r.hasKey(p,a)||(p[a]={range:n,count:0}),p[a].count+=1})):Object.keys(h).forEach((function(e){r.each(h[e],(function(n){var l=o(n[t],d,i),c=l[0]+"-"+l[1]+"-"+e;r.hasKey(p,c)||(p[c]={range:l,count:0},p[c][a]=e),p[c].count+=1}))}));var g=[];return r.each(p,(function(e){g.push(e)})),g}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_OPTIONS=t.HISTOGRAM_Y_FIELD=t.HISTOGRAM_X_FIELD=void 0;var r=n(24),o=n(15);t.HISTOGRAM_X_FIELD="range",t.HISTOGRAM_Y_FIELD="count",t.DEFAULT_OPTIONS=o.deepAssign({},r.Plot.getDefaultOptions(),{columnStyle:{stroke:"#FFFFFF"},tooltip:{shared:!0,showMarkers:!1},interactions:[{type:"active-region"}]})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.transformData=t.processData=void 0;var r=n(1),o=n(0),i=n(15),a=n(301);function l(e,t,n,a,l){var c,s=[];if(o.reduce(e,(function(e,t){var l;i.log(i.LEVEL.WARN,o.isNumber(t[n]),t[n]+" is not a valid number");var c=o.isUndefined(t[n])?null:t[n];return s.push(r.__assign(r.__assign({},t),((l={})[a]=[e,e+c],l))),e+c}),0),s.length&&l){var u=o.get(s,[[e.length-1],a,[1]]);s.push(((c={})[t]=l.label,c[n]=u,c[a]=[0,u],c))}return s}t.processData=l,t.transformData=function(e,t,n,i){return l(e,t,n,a.Y_FIELD,i).map((function(t,n){var i;return o.isObject(t)?r.__assign(r.__assign({},t),((i={})[a.ABSOLUTE_FIELD]=t[a.Y_FIELD][1],i[a.DIFF_FIELD]=t[a.Y_FIELD][1]-t[a.Y_FIELD][0],i[a.IS_TOTAL]=n===e.length,i)):t}))}},function(e,t,n){"use strict";var r,o,i,a,l=n(2)(n(6));a=function(e){function t(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(c){o=!0,i=c}finally{try{r||null==l.return||l.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function n(e,t,n,r){e=e.filter((function(e,r){var o=t(e,r),i=n(e,r);return null!=o&&isFinite(o)&&null!=i&&isFinite(i)})),r&&e.sort((function(e,n){return t(e)-t(n)}));for(var o,i,a,l=e.length,c=new Float64Array(l),s=new Float64Array(l),u=0,d=0,f=0;f<l;)a=e[f],c[f]=o=+t(a,f,e),s[f]=i=+n(a,f,e),u+=(o-u)/++f,d+=(i-d)/f;for(var p=0;p<l;++p)c[p]-=u,s[p]-=d;return[c,s,u,d]}function r(e,t,n,r){for(var o=0,i=0,a=e.length;i<a;i++){var l=e[i],c=+t(l,i,e),s=+n(l,i,e);null!=c&&isFinite(c)&&null!=s&&isFinite(s)&&r(c,s,o++)}}function o(e,t,n,o,i){var a=0,l=0;return r(e,t,n,(function(e,t){var n=t-i(e),r=t-o;a+=n*n,l+=r*r})),1-a/l}function i(e){return 180*Math.atan2(e[1][1]-e[0][1],e[1][0]-e[0][0])/Math.PI}function a(e,t,n){for(var r=Math.log(t-e)*Math.LOG10E+1|0,o=1*Math.pow(10,-r/2-1),a=[c(e),c(t)],l=0;s(a)&&l<1e4;);return a;function c(e){return[e,n(e)]}function s(e){l++;for(var t,n=e.length,r=!1,a=0;a<n-1;a++){var s=e[a],u=e[a+1],d=[((t=[s,u])[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2],f=c(d[0]),p=i([s,d]),h=i([s,f]);Math.abs(p-h)>o&&(e.splice(a+1,0,f),r=!0)}return r}}function l(e,t,n,r){var o=r-e*e,i=Math.abs(o)<1e-24?0:(n-e*t)/o;return[t-i*e,i]}function c(){var e,n=function(e){return e[0]},i=function(e){return e[1]};function a(a){var c=0,s=0,u=0,d=0,f=0,p=e?+e[0]:1/0,h=e?+e[1]:-1/0;r(a,n,i,(function(t,n){++c,s+=(t-s)/c,u+=(n-u)/c,d+=(t*n-d)/c,f+=(t*t-f)/c,e||(t<p&&(p=t),t>h&&(h=t))}));var g=t(l(s,u,d,f),2),v=g[0],m=g[1],y=function(e){return m*e+v},b=[[p,y(p)],[h,y(h)]];return b.a=m,b.b=v,b.predict=y,b.rSquared=o(a,n,i,u,y),b}return a.domain=function(t){return arguments.length?(e=t,a):e},a.x=function(e){return arguments.length?(n=e,a):n},a.y=function(e){return arguments.length?(i=e,a):i},a}function s(e){e.sort((function(e,t){return e-t}));var t=e.length/2;return t%1===0?(e[t-1]+e[t])/2:e[Math.floor(t)]}function u(e){return(e=1-e*e*e)*e*e}function d(e,t,n){var r=e[t],o=n[0],i=n[1]+1;if(!(i>=e.length))for(;t>o&&e[i]-r<=r-e[o];)n[0]=++o,n[1]=i,++i}function f(){var e,i=function(e){return e[0]},l=function(e){return e[1]};function c(c){var s,u,d,f,p=t(n(c,i,l),4),h=p[0],g=p[1],v=p[2],m=p[3],y=h.length,b=0,x=0,w=0,S=0,O=0;for(s=0;s<y;)u=h[s],d=g[s++],b+=((f=u*u)-b)/s,x+=(f*u-x)/s,w+=(f*f-w)/s,S+=(u*d-S)/s,O+=(f*d-O)/s;var _=0,C=0,E=e?+e[0]:1/0,P=e?+e[1]:-1/0;r(c,i,l,(function(t,n){C++,_+=(n-_)/C,e||(t<E&&(E=t),t>P&&(P=t))}));var M=w-b*b,k=b*M-x*x,A=(O*b-S*x)/k,I=(S*M-O*x)/k,T=-A*b,j=function(e){return A*(e-=v)*e+I*e+T+m},L=a(E,P,j);return L.a=A,L.b=I-2*A*v,L.c=T-I*v+A*v*v+m,L.predict=j,L.rSquared=o(c,i,l,_,j),L}return c.domain=function(t){return arguments.length?(e=t,c):e},c.x=function(e){return arguments.length?(i=e,c):i},c.y=function(e){return arguments.length?(l=e,c):l},c}e.regressionExp=function(){var e,n=function(e){return e[0]},i=function(e){return e[1]};function c(c){var s=0,u=0,d=0,f=0,p=0,h=0,g=e?+e[0]:1/0,v=e?+e[1]:-1/0;r(c,n,i,(function(t,n){var r=Math.log(n),o=t*n;++s,u+=(n-u)/s,f+=(o-f)/s,h+=(t*o-h)/s,d+=(n*r-d)/s,p+=(o*r-p)/s,e||(t<g&&(g=t),t>v&&(v=t))}));var m=t(l(f/u,d/u,p/u,h/u),2),y=m[0],b=m[1];y=Math.exp(y);var x=function(e){return y*Math.exp(b*e)},w=a(g,v,x);return w.a=y,w.b=b,w.predict=x,w.rSquared=o(c,n,i,u,x),w}return c.domain=function(t){return arguments.length?(e=t,c):e},c.x=function(e){return arguments.length?(n=e,c):n},c.y=function(e){return arguments.length?(i=e,c):i},c},e.regressionLinear=c,e.regressionLoess=function(){var e=function(e){return e[0]},r=function(e){return e[1]},o=.3;function i(i){for(var a=t(n(i,e,r,!0),4),c=a[0],f=a[1],p=a[2],h=a[3],g=c.length,v=Math.max(2,~~(o*g)),m=new Float64Array(g),y=new Float64Array(g),b=new Float64Array(g).fill(1),x=-1;++x<=2;){for(var w=[0,v-1],S=0;S<g;++S){for(var O=c[S],_=w[0],C=w[1],E=O-c[_]>c[C]-O?_:C,P=0,M=0,k=0,A=0,I=0,T=1/Math.abs(c[E]-O||1),j=_;j<=C;++j){var L=c[j],R=f[j],D=u(Math.abs(O-L)*T)*b[j],N=L*D;P+=D,M+=N,k+=R*D,A+=R*N,I+=L*N}var F=t(l(M/P,k/P,A/P,I/P),2),B=F[0],z=F[1];m[S]=B+z*O,y[S]=Math.abs(f[S]-m[S]),d(c,S+1,w)}if(2===x)break;var H=s(y);if(Math.abs(H)<1e-12)break;for(var W,V,G=0;G<g;++G)W=y[G]/(6*H),b[G]=W>=1?1e-12:(V=1-W*W)*V}return function(e,t,n,r){for(var o,i=e.length,a=[],l=0,c=0,s=[];l<i;++l)o=e[l]+n,s[0]===o?s[1]+=(t[l]-s[1])/++c:(c=0,s[1]+=r,s=[o,t[l]],a.push(s));return s[1]+=r,a}(c,m,p,h)}return i.bandwidth=function(e){return arguments.length?(o=e,i):o},i.x=function(t){return arguments.length?(e=t,i):e},i.y=function(e){return arguments.length?(r=e,i):r},i},e.regressionLog=function(){var e,n=function(e){return e[0]},i=function(e){return e[1]},c=Math.E;function s(s){var u=0,d=0,f=0,p=0,h=0,g=e?+e[0]:1/0,v=e?+e[1]:-1/0,m=Math.log(c);r(s,n,i,(function(t,n){var r=Math.log(t)/m;++u,d+=(r-d)/u,f+=(n-f)/u,p+=(r*n-p)/u,h+=(r*r-h)/u,e||(t<g&&(g=t),t>v&&(v=t))}));var y=t(l(d,f,p,h),2),b=y[0],x=y[1],w=function(e){return x*Math.log(e)/m+b},S=a(g,v,w);return S.a=x,S.b=b,S.predict=w,S.rSquared=o(s,n,i,f,w),S}return s.domain=function(t){return arguments.length?(e=t,s):e},s.x=function(e){return arguments.length?(n=e,s):n},s.y=function(e){return arguments.length?(i=e,s):i},s.base=function(e){return arguments.length?(c=e,s):c},s},e.regressionPoly=function(){var e,i=function(e){return e[0]},l=function(e){return e[1]},s=3;function u(u){if(1===s){var d=c().x(i).y(l).domain(e)(u);return d.coefficients=[d.b,d.a],delete d.a,delete d.b,d}if(2===s){var p=f().x(i).y(l).domain(e)(u);return p.coefficients=[p.c,p.b,p.a],delete p.a,delete p.b,delete p.c,p}var h,g,v,m,y,b=t(n(u,i,l),4),x=b[0],w=b[1],S=b[2],O=b[3],_=x.length,C=[],E=[],P=s+1,M=0,k=0,A=e?+e[0]:1/0,I=e?+e[1]:-1/0;for(r(u,i,l,(function(t,n){++k,M+=(n-M)/k,e||(t<A&&(A=t),t>I&&(I=t))})),h=0;h<P;++h){for(v=0,m=0;v<_;++v)m+=Math.pow(x[v],h)*w[v];for(C.push(m),y=new Float64Array(P),g=0;g<P;++g){for(v=0,m=0;v<_;++v)m+=Math.pow(x[v],h+g);y[g]=m}E.push(y)}E.push(C);var T=function(e){var t,n,r,o,i,a=e.length-1,l=[];for(t=0;t<a;++t){for(o=t,n=t+1;n<a;++n)Math.abs(e[t][n])>Math.abs(e[t][o])&&(o=n);for(r=t;r<a+1;++r)i=e[r][t],e[r][t]=e[r][o],e[r][o]=i;for(n=t+1;n<a;++n)for(r=a;r>=t;r--)e[r][n]-=e[r][t]*e[t][n]/e[t][t]}for(n=a-1;n>=0;--n){for(i=0,r=n+1;r<a;++r)i+=e[r][n]*l[r];l[n]=(e[a][n]-i)/e[n][n]}return l}(E),j=function(e){e-=S;var t=O+T[0]+T[1]*e+T[2]*e*e;for(h=3;h<P;++h)t+=T[h]*Math.pow(e,h);return t},L=a(A,I,j);return L.coefficients=function(e,t,n,r){var o,i,a,l,c=Array(e);for(o=0;o<e;++o)c[o]=0;for(o=e-1;o>=0;--o)for(a=t[o],l=1,c[o]+=a,i=1;i<=o;++i)l*=(o+1-i)/i,c[o-i]+=a*Math.pow(n,i)*l;return c[0]+=r,c}(P,T,-S,O),L.predict=j,L.rSquared=o(u,i,l,M,j),L}return u.domain=function(t){return arguments.length?(e=t,u):e},u.x=function(e){return arguments.length?(i=e,u):i},u.y=function(e){return arguments.length?(l=e,u):l},u.order=function(e){return arguments.length?(s=e,u):s},u},e.regressionPow=function(){var e,n=function(e){return e[0]},i=function(e){return e[1]};function c(c){var s=0,u=0,d=0,f=0,p=0,h=0,g=e?+e[0]:1/0,v=e?+e[1]:-1/0;r(c,n,i,(function(t,n){var r=Math.log(t),o=Math.log(n);++s,u+=(r-u)/s,d+=(o-d)/s,f+=(r*o-f)/s,p+=(r*r-p)/s,h+=(n-h)/s,e||(t<g&&(g=t),t>v&&(v=t))}));var m=t(l(u,d,f,p),2),y=m[0],b=m[1];y=Math.exp(y);var x=function(e){return y*Math.pow(e,b)},w=a(g,v,x);return w.a=y,w.b=b,w.predict=x,w.rSquared=o(c,n,i,h,x),w}return c.domain=function(t){return arguments.length?(e=t,c):e},c.x=function(e){return arguments.length?(n=e,c):n},c.y=function(e){return arguments.length?(i=e,c):i},c},e.regressionQuad=f,Object.defineProperty(e,"__esModule",{value:!0})},"object"===(0,l.default)(t)&&"undefined"!==typeof e?a(t):(o=[t],void 0===(i="function"===typeof(r=a)?r.apply(t,o):r)||(e.exports=i))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.transformData=void 0,t.transformData=function(e){var t=e.data,n=e.xField,r=e.measureField,o=e.rangeField,i=e.targetField,a=e.layout,l=[],c=[];t.forEach((function(e,t){var a;e[o].sort((function(e,t){return e-t})),e[o].forEach((function(r,i){var a,c=0===i?r:e[o][i]-e[o][i-1];l.push(((a={rKey:o+"_"+i})[n]=n?e[n]:String(t),a[o]=c,a))})),e[r].forEach((function(o,i){var a;l.push(((a={mKey:e[r].length>1?r+"_"+i:""+r})[n]=n?e[n]:String(t),a[r]=o,a))})),l.push(((a={tKey:""+i})[n]=n?e[n]:String(t),a[i]=e[i],a)),c.push(e[o],e[r],e[i])}));var s=Math.min.apply(Math,c.flat(1/0)),u=Math.max.apply(Math,c.flat(1/0));return s=s>0?0:s,"vertical"===a&&l.reverse(),{min:s,max:u,ds:l}}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.pick=function(e,t){var n={};return null!==e&&"object"===(0,o.default)(e)&&t.forEach((function(t){var r=e[t];void 0!==r&&(n[t]=r)})),n};var o=r(n(6))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LEVEL=void 0,t.invariant=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];if(!e){var l=new Error(a.apply(void 0,(0,o.__spreadArrays)([t],n)));throw l.name=i,l}},t.log=function(e,t,n){for(var r=[],i=3;i<arguments.length;i++)r[i-3]=arguments[i];t||console[e](a.apply(void 0,(0,o.__spreadArrays)([n],r)))};var r,o=n(1);!function(e){e.ERROR="error",e.WARN="warn",e.INFO="log"}(r||(t.LEVEL=r={}));var i="AntV/G2Plot";function a(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=0;return i+": "+e.replace(/%s/g,(function(){return""+t[r++]}))}},function(e,t,n){"use strict";function r(e){var t=e.parent;return t?t.views:[]}Object.defineProperty(t,"__esModule",{value:!0}),t.findViewById=function(e,t){return e.views.find((function(e){return e.id===t}))},t.getSiblingViews=function(e){return r(e).filter((function(t){return t!==e}))},t.getViews=r},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.deepAssign=void 0;var o=r(n(6)),i={}.toString,a=function(e,t){return i.call(e)==="[object "+t+"]"},l=function(e){return a(e,"Array")},c=function(e){if(!function(e){return"object"===(0,o.default)(e)&&null!==e}(e)||!a(e,"Object"))return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t},s=function e(t,n,r,o){for(var i in r=r||0,o=o||5,n)if(Object.prototype.hasOwnProperty.call(n,i)){var a=n[i];a?c(a)?(c(t[i])||(t[i]={}),r<o?e(t[i],a,r+1,o):t[i]=n[i]):l(a)?(t[i]=[],t[i]=t[i].concat(a)):t[i]=a:t[i]=a}};t.deepAssign=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0;r<t.length;r+=1)s(e,t[r]);return e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.adapteStyle=a,t.renderStatistic=t.renderGaugeStatistic=void 0,t.setStatisticContainerStyle=l;var r=n(1),o=n(0),i=n(7);function a(e){var t={overflow:"hidden","white-space":"nowrap","text-overflow":"ellipsis",display:"flex",justifyContent:"center",alignItems:"center"},n=["stroke","lineWidth","shadowColor","strokeOpacity","shadowBlur","shadowOffsetX","shadowOffsetY","fill"];(0,o.get)(e,"fill")&&(t.color=e.fill);var r=(0,i.pick)(e,n),a=r.shadowColor,l=r.shadowBlur,c=void 0===l?0:l,s=r.shadowOffsetX,u=void 0===s?0:s,d=r.shadowOffsetY,f=void 0===d?0:d;t["text-shadow"]=""+[a,u+"px",f+"px",c+"px"].join(" ");var p=(0,i.pick)(e,n),h=p.stroke,g=p.lineWidth,v=void 0===g?0:g;return t["-webkit-text-stroke"]=""+[v+"px",h].join(" "),(0,o.each)(e,(function(e,r){["fontSize"].includes(r)&&(0,o.isNumber)(e)?t[(0,i.kebabCase)(r)]=e+"px":r&&!n.includes(r)&&(t[(0,i.kebabCase)(r)]=""+e)})),t}function l(e,t){e.style["pointer-events"]="none",(0,o.each)(t,(function(t,n){n&&t&&(e.style[n]=t)}))}t.renderStatistic=function(e,t,n){var c=t.statistic,s=t.plotType,u=c.title,d=c.content;[u,d].forEach((function(t,c){if(t){var f="";f=0===c?d?"translate(-50%, -100%)":"translate(-50%, -50%)":u?"translate(-50%, 0)":"translate(-50%, -50%)";var p=(0,o.isFunction)(t.style)?t.style(n):t.style;e.annotation().html((0,r.__assign)({position:["50%","50%"],html:function(e,i){var c=i.getCoordinate(),u=0;if("pie"===s||"ring-progress"===s)u=c.getRadius()*c.innerRadius*2;else if("liquid"===s){var d=(0,o.get)(i.geometries,[0,"elements",0,"shape"]);d&&(u=d.find((function(e){return"wrap"===e.get("name")})).getCanvasBBox().width)}else u||(u=c.getWidth());l(e,(0,r.__assign)({width:u+"px",transform:f},a(p)));var h=i.getData();if(t.customHtml)return t.customHtml(e,i,n,h);var g=t.content;return t.formatter&&(g=t.formatter(n,h)),g?(0,o.isString)(g)?g:""+g:"<div></div>"},key:(0===c?"top":"bottom")+"-statistic"},(0,i.pick)(t,["offsetX","offsetY","rotate","style","formatter"])))}}))},t.renderGaugeStatistic=function(e,t,n){var c=t.statistic;[c.title,c.content].forEach((function(t){if(t){var c=(0,o.isFunction)(t.style)?t.style(n):t.style;e.annotation().html((0,r.__assign)({position:["50%","100%"],html:function(e,i){var s=i.getCoordinate(),u=i.views[0].getCoordinate(),d=u.getCenter(),f=u.getRadius(),p=Math.max(Math.sin(u.startAngle),Math.sin(u.endAngle))*f,h=d.y+p-s.y.start-parseFloat((0,o.get)(c,"fontSize",0)),g=s.getRadius()*s.innerRadius*2;l(e,(0,r.__assign)({width:g+"px",transform:"translate(-50%, "+h+"px)"},a(c)));var v=i.getData();if(t.customHtml)return t.customHtml(e,i,n,v);var m=t.content;return t.formatter&&(m=t.formatter(n,v)),m?(0,o.isString)(m)?m:""+m:"<div></div>"}},(0,i.pick)(t,["offsetX","offsetY","rotate","style","formatter"])))}}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GLOBAL=void 0,t.setGlobal=function(e){(0,r.each)(e,(function(e,t){return o[t]=e}))};var r=n(0),o=t.GLOBAL={locale:"en-US"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Line=void 0;var r=n(1),o=n(19),i=n(303),a=n(1197);n(1198),t.Line=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="line",t}return(0,r.__extends)(t,e),t.getDefaultOptions=function(){return a.DEFAULT_OPTIONS},t.prototype.changeData=function(e){this.updateOption({data:e});var t=this.chart,n=this.options;(0,i.meta)({chart:t,options:n}),this.chart.changeData(e)},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return i.adaptor},t}(o.Plot)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getCanvasPattern=function(e){var t,n=e.type,a=e.cfg;switch(n){case"dot":t=(0,r.createDotPattern)(a);break;case"line":t=(0,o.createLinePattern)(a);break;case"square":t=(0,i.createSquarePattern)(a)}return t};var r=n(1188),o=n(1189),i=n(1190)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.point=function(e){var t=e.options,n=t.point,l=t.xField,c=t.yField,s=t.seriesField,u=t.sizeField,d=t.shapeField,f=t.tooltip,p=(0,o.getTooltipMapping)(f,[l,c,s,u,d]),h=p.fields,g=p.formatter;return n?(0,a.geometry)((0,i.deepAssign)({},e,{options:{type:"point",colorField:s,shapeField:d,tooltipFields:h,mapping:(0,r.__assign)({tooltip:g},n)}})):e};var r=n(1),o=n(65),i=n(7),a=n(49)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.polygon=function(e){var t=e.options,n=t.polygon,l=t.xField,c=t.yField,s=t.seriesField,u=t.tooltip,d=(0,o.getTooltipMapping)(u,[l,c,s]),f=d.fields,p=d.formatter;return n?(0,a.geometry)((0,i.deepAssign)({},e,{options:{type:"polygon",colorField:s,tooltipFields:f,mapping:(0,r.__assign)({tooltip:p},n)}})):e};var r=n(1),o=n(65),i=n(7),a=n(49)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Area=void 0;var r=n(1),o=n(19),i=n(122),a=n(551),l=n(1200);t.Area=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="area",t}return(0,r.__extends)(t,e),t.getDefaultOptions=function(){return l.DEFAULT_OPTIONS},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.changeData=function(e){this.updateOption({data:e});var t=this.options,n=t.isPercent,r=t.xField,o=t.yField,l=this.chart,c=this.options;(0,a.meta)({chart:l,options:c}),this.chart.changeData((0,i.getDataWhetherPecentage)(e,o,r,o,n))},t.prototype.getSchemaAdaptor=function(){return a.adaptor},t}(o.Plot)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.adaptor=function(e){return(0,a.flow)(i.theme,(0,i.pattern)("areaStyle"),u,s.meta,f,s.axis,s.legend,i.tooltip,d,i.slider,(0,i.annotation)(),i.interaction,i.animation,i.limitInPlot)(e)},Object.defineProperty(t,"meta",{enumerable:!0,get:function(){return s.meta}});var r=n(1),o=n(0),i=n(22),a=n(7),l=n(30),c=n(122),s=n(303);function u(e){var t=e.chart,n=e.options,o=n.data,i=n.areaStyle,s=n.color,u=n.point,d=n.line,f=n.isPercent,p=n.xField,h=n.yField,g=n.tooltip,v=n.seriesField,m=n.startOnZero,y=null===u||void 0===u?void 0:u.state,b=(0,c.getDataWhetherPecentage)(o,h,p,h,f);t.data(b);var x=f?(0,r.__assign)({formatter:function(e){return{name:e[v]||e[p],value:(100*Number(e[h])).toFixed(2)+"%"}}},g):g,w=(0,a.deepAssign)({},e,{options:{area:{color:s,style:i},line:d&&(0,r.__assign)({color:s},d),point:u&&(0,r.__assign)({color:s},u),tooltip:x,label:void 0,args:{startOnZero:m}}}),S=(0,a.deepAssign)({options:{line:{size:2}}},w,{options:{sizeField:v,tooltip:!1}}),O=(0,a.deepAssign)({},w,{options:{tooltip:!1,state:y}});return(0,l.area)(w),(0,l.line)(S),(0,l.point)(O),e}function d(e){var t=e.chart,n=e.options,o=n.label,i=n.yField,l=(0,a.findGeometry)(t,"area");if(o){var c=o.callback,s=(0,r.__rest)(o,["callback"]);l.label({fields:[i],callback:c,cfg:(0,r.__assign)({layout:[{type:"limit-in-plot"},{type:"path-adjust-position"},{type:"point-adjust-position"},{type:"limit-in-plot",cfg:{action:"hide"}}]},(0,a.transformLabel)(s))})}else l.label(!1);return e}function f(e){var t=e.chart,n=e.options,r=n.isStack,i=n.isPercent,a=n.seriesField;return(i||r)&&a&&(0,o.each)(t.geometries,(function(e){e.adjust("stack")})),e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Column=void 0;var r=n(1),o=n(19),i=n(122),a=n(199),l=n(1205);t.Column=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="column",t}return(0,r.__extends)(t,e),t.getDefaultOptions=function(){return l.DEFAULT_OPTIONS},t.prototype.changeData=function(e){this.updateOption({data:e});var t=this.options,n=t.yField,r=t.xField,o=t.isPercent,l=this.chart,c=this.options;(0,a.meta)({chart:l,options:c}),this.chart.changeData((0,i.getDataWhetherPecentage)(e,n,r,n,o))},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return a.adaptor},t}(o.Plot)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.conversionTagFormatter=function(e,t){return(0,r.isNumber)(e)&&(0,r.isNumber)(t)?e===t?"100%":0===e?"\u221e":0===t?"-\u221e":(100*t/e).toFixed(2)+"%":"-"};var r=n(0)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.brushInteraction=function(e){var t=e.options,n=t.brush,l=(0,r.filter)(t.interactions||[],(function(e){return-1===a.indexOf(e.type)}));return(null===n||void 0===n?void 0:n.enabled)&&(a.forEach((function(e){var t,r=!1;switch(n.type){case"x-rect":r=e===("highlight"===n.action?"brush-x-highlight":"brush-x");break;case"y-rect":r=e===("highlight"===n.action?"brush-y-highlight":"brush-y");break;default:r=e===("highlight"===n.action?"brush-highlight":"brush")}var i={type:e,enable:r};((null===(t=n.mask)||void 0===t?void 0:t.style)||n.type)&&(i.cfg=(0,o.getInteractionCfg)(e,n.type,n.mask)),l.push(i)})),"highlight"!==(null===n||void 0===n?void 0:n.action)&&l.push({type:"filter-action",cfg:{buttonConfig:n.button}})),(0,i.deepAssign)({},e,{options:{interactions:l}})};var r=n(0),o=n(1203),i=n(7),a=["brush","brush-x","brush-y","brush-highlight","brush-x-highlight","brush-y-highlight"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Bar=void 0;var r=n(1),o=n(19),i=n(122),a=n(556),l=n(1206),c=n(557);t.Bar=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="bar",t}return(0,r.__extends)(t,e),t.getDefaultOptions=function(){return l.DEFAULT_OPTIONS},t.prototype.changeData=function(e){this.updateOption({data:e});var t=this.chart,n=this.options,o=n.xField,l=n.yField,s=n.isPercent,u=(0,r.__assign)((0,r.__assign)({},n),{xField:l,yField:o});(0,a.meta)({chart:t,options:u}),t.changeData((0,i.getDataWhetherPecentage)((0,c.transformBarData)(e),o,l,o,s))},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return a.adaptor},t}(o.Plot)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.adaptor=function(e){var t=e.chart,n=e.options,a=n.xField,l=n.yField,c=n.xAxis,s=n.yAxis,u=n.barStyle,d=n.barWidthRatio,f=n.label,p=n.data,h=n.seriesField,g=n.isStack,v=n.minBarWidth,m=n.maxBarWidth;f&&!f.position&&(f.position="left",f.layout||(f.layout=[{type:"interval-adjust-position"},{type:"interval-hide-overlap"},{type:"adjust-color"},{type:"limit-in-plot",cfg:{action:"hide"}}]));var y=n.legend;h?!1!==y&&(y=(0,r.__assign)({position:g?"top-left":"right-top",reversed:!g},y||{})):y=!1,e.options.legend=y;var b=n.tooltip;return h&&!1!==b&&(b=(0,r.__assign)({reversed:!g},b||{})),e.options.tooltip=b,t.coordinate().transpose(),(0,o.adaptor)({chart:t,options:(0,r.__assign)((0,r.__assign)({},n),{label:f,xField:l,yField:a,xAxis:s,yAxis:c,columnStyle:u,columnWidthRatio:d,minColumnWidth:v,maxColumnWidth:m,columnBackground:n.barBackground,data:(0,i.transformBarData)(p)})},!0)},Object.defineProperty(t,"meta",{enumerable:!0,get:function(){return o.meta}});var r=n(1),o=n(199),i=n(557)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.transformBarData=function(e){return e?e.slice().reverse():e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Pie=void 0;var r=n(1),o=n(14),i=n(19),a=n(7),l=n(559),c=n(560),s=n(561);n(562),t.Pie=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="pie",t}return(0,r.__extends)(t,e),t.getDefaultOptions=function(){return c.DEFAULT_OPTIONS},t.prototype.changeData=function(e){this.chart.emit(o.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA,o.Event.fromData(this.chart,o.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA,null));var t=this.options,n=this.options.angleField,r=(0,a.processIllegalData)(t.data,n),i=(0,a.processIllegalData)(e,n);(0,s.isAllZero)(r,n)||(0,s.isAllZero)(i,n)?this.update({data:e}):(this.updateOption({data:e}),this.chart.data(i),(0,l.pieAnnotation)({chart:this.chart,options:this.options}),this.chart.render(!0)),this.chart.emit(o.VIEW_LIFE_CIRCLE.AFTER_CHANGE_DATA,o.Event.fromData(this.chart,o.VIEW_LIFE_CIRCLE.AFTER_CHANGE_DATA,null))},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return l.adaptor},t}(i.Plot)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.adaptor=function(e){return(0,u.flow)((0,c.pattern)("pieStyle"),h,g,i.theme,v,i.legend,x,m,i.state,b,w,i.animation)(e)},t.interaction=w,t.pieAnnotation=b,t.transformStatisticOptions=y;var r=n(1),o=n(0),i=n(22),a=n(49),l=n(30),c=n(121),s=n(197),u=n(7),d=n(560),f=n(561),p=n(562);function h(e){var t=e.chart,n=e.options,o=n.data,i=n.angleField,a=n.colorField,c=n.color,s=n.pieStyle,d=(0,u.processIllegalData)(o,i);if((0,f.isAllZero)(d,i)){var p="$$percentage$$";d=d.map((function(e){var t;return(0,r.__assign)((0,r.__assign)({},e),((t={})[p]=1/d.length,t))})),t.data(d);var h=(0,u.deepAssign)({},e,{options:{xField:"1",yField:p,seriesField:a,isStack:!0,interval:{color:c,style:s},args:{zIndexReversed:!0}}});(0,l.interval)(h)}else t.data(d),h=(0,u.deepAssign)({},e,{options:{xField:"1",yField:i,seriesField:a,isStack:!0,interval:{color:c,style:s},args:{zIndexReversed:!0}}}),(0,l.interval)(h);return e}function g(e){var t,n=e.chart,r=e.options,o=r.meta,i=r.colorField,a=(0,u.deepAssign)({},o);return n.scale(a,((t={})[i]={type:"cat"},t)),e}function v(e){var t=e.chart,n=e.options,r=n.radius,o=n.innerRadius,i=n.startAngle,a=n.endAngle;return t.coordinate({type:"theta",cfg:{radius:r,innerRadius:o,startAngle:i,endAngle:a}}),e}function m(e){var t=e.chart,n=e.options,i=n.label,a=n.colorField,l=n.angleField,c=t.geometries[0];if(i){var s=i.callback,d=(0,r.__rest)(i,["callback"]),p=(0,u.transformLabel)(d);if(p.content){var h=p.content;p.content=function(e,n,i){var c=e[a],s=e[l],d=t.getScaleByField(l),f=null===d||void 0===d?void 0:d.scale(s);return(0,o.isFunction)(h)?h((0,r.__assign)((0,r.__assign)({},e),{percent:f}),n,i):(0,o.isString)(h)?(0,u.template)(h,{value:s,name:c,percentage:(0,o.isNumber)(f)&&!(0,o.isNil)(s)?(100*f).toFixed(2)+"%":null}):h}}var g=p.type?{inner:"",outer:"pie-outer",spider:"pie-spider"}[p.type]:"pie-outer",v=p.layout?(0,o.isArray)(p.layout)?p.layout:[p.layout]:[];p.layout=(g?[{type:g}]:[]).concat(v),c.label({fields:a?[l,a]:[l],callback:s,cfg:(0,r.__assign)((0,r.__assign)({},p),{offset:(0,f.adaptOffset)(p.type,p.offset),type:"pie"})})}else c.label(!1);return e}function y(e){var t=e.innerRadius,n=e.statistic,r=e.angleField,i=e.colorField,a=e.meta,l=e.locale,c=(0,s.getLocale)(l);if(t&&n){var p=(0,u.deepAssign)({},d.DEFAULT_OPTIONS.statistic,n),h=p.title,g=p.content;return!1!==h&&(h=(0,u.deepAssign)({},{formatter:function(e){return e?e[i]:(0,o.isNil)(h.content)?c.get(["statistic","total"]):h.content}},h)),!1!==g&&(g=(0,u.deepAssign)({},{formatter:function(e,t){var n=e?e[r]:(0,f.getTotalValue)(t,r),i=(0,o.get)(a,[r,"formatter"])||function(e){return e};return e||(0,o.isNil)(g.content)?i(n):g.content}},g)),(0,u.deepAssign)({},{statistic:{title:h,content:g}},e)}return e}function b(e){var t=e.chart,n=y(e.options),r=n.innerRadius,o=n.statistic;return t.getController("annotation").clear(!0),(0,u.flow)((0,i.annotation)())(e),r&&o&&(0,u.renderStatistic)(t,{statistic:o,plotType:"pie"}),e}function x(e){var t=e.chart,n=e.options,r=n.tooltip,i=n.colorField,l=n.angleField,c=n.data;if(!1===r)t.tooltip(r);else if(t.tooltip((0,u.deepAssign)({},r,{shared:!1})),(0,f.isAllZero)(c,l)){var s=(0,o.get)(r,"fields"),d=(0,o.get)(r,"formatter");(0,o.isEmpty)((0,o.get)(r,"fields"))&&(s=[i,l],d=d||function(e){return{name:e[i],value:(0,o.toString)(e[l])}}),t.geometries[0].tooltip(s.join("*"),(0,a.getMappingFunction)(s,d))}return e}function w(e){var t=e.chart,n=y(e.options),i=n.interactions,a=n.statistic,l=n.annotations;return(0,o.each)(i,(function(e){var n,i;if(!1===e.enable)t.removeInteraction(e.type);else if("pie-statistic-active"===e.type){var c=[];(null===(n=e.cfg)||void 0===n?void 0:n.start)||(c=[{trigger:"element:mouseenter",action:p.PIE_STATISTIC+":change",arg:{statistic:a,annotations:l}}]),(0,o.each)(null===(i=e.cfg)||void 0===i?void 0:i.start,(function(e){c.push((0,r.__assign)((0,r.__assign)({},e),{arg:{statistic:a,annotations:l}}))})),t.interaction(e.type,(0,u.deepAssign)({},e.cfg,{start:c}))}else t.interaction(e.type,e.cfg||{})})),e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_OPTIONS=void 0;var r=n(19),o=n(7);t.DEFAULT_OPTIONS=(0,o.deepAssign)({},r.Plot.getDefaultOptions(),{legend:{position:"right"},tooltip:{shared:!1,showTitle:!1,showMarkers:!1},label:{layout:{type:"limit-in-plot",cfg:{action:"ellipsis"}}},pieStyle:{stroke:"white",lineWidth:1},statistic:{title:{style:{fontWeight:300,color:"#4B535E",textAlign:"center",fontSize:"20px",lineHeight:1}},content:{style:{fontWeight:"bold",color:"rgba(44,53,66,0.85)",textAlign:"center",fontSize:"32px",lineHeight:1}}},theme:{components:{annotation:{text:{animate:!1}}}}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.adaptOffset=function(e,t){var n;switch(e){case"inner":return n="-30%",(0,r.isString)(t)&&t.endsWith("%")?.01*parseFloat(t)>0?n:t:t<0?t:n;case"outer":return n=12,(0,r.isString)(t)&&t.endsWith("%")?.01*parseFloat(t)<0?n:t:t>0?t:n;default:return t}},t.getTotalValue=function(e,t){var n=null;return(0,r.each)(e,(function(e){"number"===typeof e[t]&&(n+=e[t])})),n},t.isAllZero=function(e,t){return(0,r.every)((0,o.processIllegalData)(e,t),(function(e){return 0===e[t]}))};var r=n(0),o=n(7)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PIE_STATISTIC=void 0;var r=n(14),o=n(1207),i=n(1208),a=t.PIE_STATISTIC="pie-statistic";(0,r.registerAction)(a,i.StatisticAction),(0,r.registerInteraction)("pie-statistic-active",{start:[{trigger:"element:mouseenter",action:"pie-statistic:change"}],end:[{trigger:"element:mouseleave",action:"pie-statistic:reset"}]}),(0,r.registerAction)("pie-legend",o.PieLegendAction),(0,r.registerInteraction)("pie-legend-active",{start:[{trigger:"legend-item:mouseenter",action:"pie-legend:active"}],end:[{trigger:"legend-item:mouseleave",action:"pie-legend:reset"}]})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.transform=function(e,t){var n=t?(0,r.__spreadArrays)(t):(0,r.__spreadArrays)(i);return o.Util.transform(n,e)};var r=n(1),o=n(14),i=[1,0,0,0,1,0,0,0,1]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFontSizeMapping=s,t.getSingleKeyValues=u,t.getSize=c,t.processImageMask=function(e){return new Promise((function(t,n){if(e instanceof HTMLImageElement)t(e);else{if((0,o.isString)(e)){var r=new Image;return r.crossOrigin="anonymous",r.src=e,r.onload=function(){t(r)},void(r.onerror=function(){(0,a.log)(a.LEVEL.ERROR,!1,"image %s load failed !!!",e),n()})}(0,a.log)(a.LEVEL.WARN,void 0===e,"The type of imageMask option must be String or HTMLImageElement."),n()}}))},t.transform=function(e){var t=e.options,n=e.chart,i=n,a=i.width,p=i.height,h=i.padding,g=i.appendPadding,v=i.ele,m=t.data,y=t.imageMask,b=t.wordField,x=t.weightField,w=t.colorField,S=t.wordStyle,O=t.timeInterval,_=t.random,C=t.spiral,E=t.autoFit,P=void 0===E||E,M=t.placementStrategy;if(!m||!m.length)return[];var k,A=S.fontFamily,I=S.fontWeight,T=S.padding,j=S.fontSize,L=u(m,x),R=[(k=L,Math.min.apply(Math,k)),f(L)],D=m.map((function(e){return{text:e[b],value:e[x],color:e[w],datum:e}})),N={imageMask:y,font:A,fontSize:s(j,R),fontWeight:I,size:c({width:a,height:p,padding:h,appendPadding:g,autoFit:P,container:v}),padding:T,timeInterval:O,random:_,spiral:C,rotate:d(t)};if((0,o.isFunction)(M)){var F=D.map((function(e,t,o){return(0,r.__assign)((0,r.__assign)((0,r.__assign)({},e),{hasText:!!e.text,font:(0,l.functor)(N.font)(e,t,o),weight:(0,l.functor)(N.fontWeight)(e,t,o),rotate:(0,l.functor)(N.rotate)(e,t,o),size:(0,l.functor)(N.fontSize)(e,t,o),style:"normal"}),M.call(n,e,t,o))}));return F.push({text:"",value:0,x:0,y:0,opacity:0}),F.push({text:"",value:0,x:N.size[0],y:N.size[1],opacity:0}),F}return(0,l.wordCloud)(D,N)};var r=n(1),o=n(0),i=n(120),a=n(7),l=n(1215);function c(e){var t=e.width,n=e.height,r=e.container,o=e.autoFit,l=e.padding,c=e.appendPadding;if(o){var s=(0,a.getContainerSize)(r);t=s.width,n=s.height}t=t||400,n=n||400;var u=function(e){var t=(0,i.normalPadding)(e.padding),n=(0,i.normalPadding)(e.appendPadding),r=t[0]+n[0],o=t[1]+n[1],a=t[2]+n[2],l=t[3]+n[3];return[r,o,a,l]}({padding:l,appendPadding:c}),d=u[0],f=u[1],p=u[2];return[t-(u[3]+f),n-(d+p)]}function s(e,t){if((0,o.isFunction)(e))return e;if((0,o.isArray)(e)){var n=e[0],r=e[1];if(!t)return function(){return(r+n)/2};var i=t[0],a=t[1];return a===i?function(){return(r+n)/2}:function(e){var t=e.value;return(r-n)/(a-i)*(t-i)+n}}return function(){return e}}function u(e,t){return e.map((function(e){return e[t]})).filter((function(e){return"number"===typeof e&&!isNaN(e)}))}function d(e){var t=function(e){var t=e.wordStyle.rotationSteps;return t<1&&((0,a.log)(a.LEVEL.WARN,!1,"The rotationSteps option must be greater than or equal to 1."),t=1),{rotation:e.wordStyle.rotation,rotationSteps:t}}(e),n=t.rotation,r=t.rotationSteps;if(!(0,o.isArray)(n))return n;var i=n[0],l=n[1],c=1===r?0:(l-i)/(r-1);return function(){return l===i?l:Math.floor(Math.random()*r)*c}}function f(e){return Math.max.apply(Math,e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WORD_CLOUD_COLOR_FIELD=t.DEFAULT_OPTIONS=void 0;var r=n(19),o=n(7),i=t.WORD_CLOUD_COLOR_FIELD="color";t.DEFAULT_OPTIONS=(0,o.deepAssign)({},r.Plot.getDefaultOptions(),{timeInterval:2e3,legend:!1,tooltip:{showTitle:!1,showMarkers:!1,showCrosshairs:!1,fields:["text","value",i],formatter:function(e){return{name:e.text,value:e.value}}},wordStyle:{fontFamily:"Verdana",fontWeight:"normal",padding:1,fontSize:[12,60],rotation:[0,90],rotationSteps:2,rotateRatio:.5}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Scatter=void 0;var r=n(1),o=n(14),i=n(19),a=n(7),l=n(567),c=n(1218);n(1219),t.Scatter=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i.type="scatter",i.on(o.VIEW_LIFE_CIRCLE.BEFORE_RENDER,(function(e){var t,n,a=i,c=a.options,s=a.chart;if((null===(t=e.data)||void 0===t?void 0:t.source)===o.BRUSH_FILTER_EVENTS.FILTER){var u=i.chart.filterData(i.chart.getData());(0,l.meta)({chart:s,options:(0,r.__assign)((0,r.__assign)({},c),{data:u})})}(null===(n=e.data)||void 0===n?void 0:n.source)===o.BRUSH_FILTER_EVENTS.RESET&&(0,l.meta)({chart:s,options:c})})),i}return(0,r.__extends)(t,e),t.getDefaultOptions=function(){return c.DEFAULT_OPTIONS},t.prototype.changeData=function(e){this.updateOption((0,l.transformOptions)((0,a.deepAssign)({},this.options,{data:e})));var t=this.options,n=this.chart;(0,l.meta)({chart:n,options:t}),this.chart.changeData(e)},t.prototype.getSchemaAdaptor=function(){return l.adaptor},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t}(i.Plot)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.adaptor=function(e){return(0,i.flow)(d,f,p,h,y,g,l.brushInteraction,c.interaction,v,c.animation,c.theme,m)(e)},t.meta=f,t.tooltip=y,t.transformOptions=u;var r=n(1),o=n(0),i=n(7),a=n(30),l=n(554),c=n(22),s=n(1217);function u(e){var t=e.data,n=void 0===t?[]:t,r=e.xField,o=e.yField;if(n.length){for(var a=!0,l=!0,c=n[0],u=void 0,d=1;d<n.length&&(u=n[d],c[r]!==u[r]&&(a=!1),c[o]!==u[o]&&(l=!1),a||l);d++)c=u;var f=[];a&&f.push(r),l&&f.push(o);var p=(0,i.pick)((0,s.getMeta)(e),f);return(0,i.deepAssign)({},e,{meta:p})}return e}function d(e){var t=e.chart,n=e.options,l=n.data,c=n.type,s=n.color,u=n.shape,d=n.pointStyle,f=n.shapeField,p=n.colorField,h=n.xField,g=n.yField,v=n.sizeField,m=n.size,y=n.tooltip;v&&(m||(m=[2,8]),(0,o.isNumber)(m)&&(m=[m,m])),y&&!y.fields&&(y=(0,r.__assign)((0,r.__assign)({},y),{fields:[h,g,p,v,f]})),t.data(l),(0,a.point)((0,i.deepAssign)({},e,{options:{seriesField:p,point:{color:s,shape:u,size:m,style:d},tooltip:y}}));var b=(0,i.findGeometry)(t,"point");return c&&b.adjust(c),e}function f(e){var t,n=e.options,r=n.xAxis,o=n.yAxis,a=n.xField,l=n.yField,s=u(n);return(0,i.flow)((0,c.scale)(((t={})[a]=r,t[l]=o,t)))((0,i.deepAssign)({},e,{options:s}))}function p(e){var t=e.chart,n=e.options,r=n.xAxis,o=n.yAxis,i=n.xField,a=n.yField;return t.axis(i,r),t.axis(a,o),e}function h(e){var t=e.chart,n=e.options,r=n.legend,o=n.colorField,i=n.shapeField,a=n.sizeField,l=n.shapeLegend,c=n.sizeLegend,s=!1!==r;return o&&t.legend(o,!!s&&r),i&&(l?t.legend(i,l):t.legend(i,!1!==l&&r)),a&&t.legend(a,c||!1),s||l||c||t.legend(!1),e}function g(e){var t=e.chart,n=e.options,o=n.label,a=n.yField,l=(0,i.findGeometry)(t,"point");if(o){var c=o.callback,s=(0,r.__rest)(o,["callback"]);l.label({fields:[a],callback:c,cfg:(0,i.transformLabel)(s)})}else l.label(!1);return e}function v(e){var t=e.options.quadrant,n=[];if(t){var o=t.xBaseline,a=void 0===o?0:o,l=t.yBaseline,u=void 0===l?0:l,d=t.labels,f=t.regionStyle,p=t.lineStyle,h=(0,s.getQuadrantDefaultConfig)(a,u);new Array(4).join(",").split(",").forEach((function(e,t){n.push((0,r.__assign)((0,r.__assign)({type:"region",top:!1},h.regionStyle[t].position),{style:(0,i.deepAssign)({},h.regionStyle[t].style,null===f||void 0===f?void 0:f[t])}),(0,r.__assign)({type:"text",top:!0},(0,i.deepAssign)({},h.labelStyle[t],null===d||void 0===d?void 0:d[t])))})),n.push({type:"line",top:!1,start:["min",u],end:["max",u],style:(0,i.deepAssign)({},h.lineStyle,p)},{type:"line",top:!1,start:[a,"min"],end:[a,"max"],style:(0,i.deepAssign)({},h.lineStyle,p)})}return(0,i.flow)((0,c.annotation)(n))(e)}function m(e){var t=e.options,n=e.chart,o=t.regressionLine;if(o){var i=o.style,a=o.top,l=void 0!==a&&a,c={stroke:"#9ba29a",lineWidth:2,opacity:.5};n.annotation().shape({top:l,render:function(e,o){var a=e.addGroup({id:n.id+"-regression-line",name:"regression-line-group"}),l=(0,s.getPath)({view:o,options:t});a.addShape("path",{name:"regression-line",attrs:(0,r.__assign)((0,r.__assign)({path:l},c),i)})}})}return e}function y(e){var t=e.chart,n=e.options.tooltip;return n?t.tooltip(n):!1===n&&t.tooltip(!1),e}},function(e,t,n){"use strict";(0,n(14).registerInteraction)("drag-move",{start:[{trigger:"plot:mousedown",action:"scale-translate:start"}],processing:[{trigger:"plot:mousemove",action:"scale-translate:translate",throttle:{wait:100,leading:!0,trailing:!1}}],end:[{trigger:"plot:mouseup",action:"scale-translate:end"}]})},function(e,t,n){"use strict";var r,o;Object.defineProperty(t,"__esModule",{value:!0}),t.DualAxesGeometry=t.AxisType=void 0,function(e){e.Left="Left",e.Right="Right"}(r||(t.AxisType=r={})),function(e){e.Line="line",e.Column="column"}(o||(t.DualAxesGeometry=o={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RIGHT_AXES_VIEW=t.LEFT_AXES_VIEW=t.DEFAULT_YAXIS_CONFIG=t.DEFAULT_RIGHT_YAXIS_CONFIG=t.DEFAULT_LEFT_YAXIS_CONFIG=void 0;var r=n(1),o=(t.LEFT_AXES_VIEW="left-axes-view",t.RIGHT_AXES_VIEW="right-axes-view",t.DEFAULT_YAXIS_CONFIG={nice:!0,label:{autoHide:!0,autoRotate:!1}});t.DEFAULT_LEFT_YAXIS_CONFIG=(0,r.__assign)((0,r.__assign)({},o),{position:"left"}),t.DEFAULT_RIGHT_YAXIS_CONFIG=(0,r.__assign)((0,r.__assign)({},o),{position:"right",grid:null})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TinyLine=void 0;var r=n(1),o=n(19),i=n(572),a=n(156),l=n(123);t.TinyLine=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="tiny-line",t}return(0,r.__extends)(t,e),t.getDefaultOptions=function(){return a.DEFAULT_OPTIONS},t.prototype.changeData=function(e){this.updateOption({data:e});var t=this.chart,n=this.options;(0,i.meta)({chart:t,options:n}),t.changeData((0,l.getTinyData)(e))},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return i.adaptor},t}(o.Plot)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.adaptor=function(e){return(0,r.flow)(s,a.meta,o.theme,o.tooltip,o.animation,(0,o.annotation)())(e)},Object.defineProperty(t,"meta",{enumerable:!0,get:function(){return a.meta}});var r=n(7),o=n(22),i=n(30),a=n(200),l=n(123),c=n(156);function s(e){var t=e.chart,n=e.options,o=n.data,a=n.color,s=n.lineStyle,u=n.point,d=null===u||void 0===u?void 0:u.state,f=(0,l.getTinyData)(o);t.data(f);var p=(0,r.deepAssign)({},e,{options:{xField:c.X_FIELD,yField:c.Y_FIELD,line:{color:a,style:s},point:u}}),h=(0,r.deepAssign)({},p,{options:{tooltip:!1,state:d}});return(0,i.line)(p),(0,i.point)(h),t.axis(!1),t.legend(!1),e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TinyColumn=void 0;var r=n(1),o=n(19),i=n(123),a=n(574),l=n(1229);t.TinyColumn=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="tiny-column",t}return(0,r.__extends)(t,e),t.getDefaultOptions=function(){return l.DEFAULT_OPTIONS},t.prototype.changeData=function(e){this.updateOption({data:e});var t=this.chart,n=this.options;(0,a.meta)({chart:t,options:n}),t.changeData((0,i.getTinyData)(e))},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return a.adaptor},t}(o.Plot)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.adaptor=function(e){return(0,o.flow)(r.theme,(0,r.pattern)("columnStyle"),s,c.meta,r.tooltip,r.animation,(0,r.annotation)())(e)},Object.defineProperty(t,"meta",{enumerable:!0,get:function(){return c.meta}});var r=n(22),o=n(7),i=n(30),a=n(156),l=n(123),c=n(200);function s(e){var t=e.chart,n=e.options,r=n.data,c=n.color,s=n.columnStyle,u=n.columnWidthRatio,d=(0,l.getTinyData)(r);t.data(d);var f=(0,o.deepAssign)({},e,{options:{xField:a.X_FIELD,yField:a.Y_FIELD,widthRatio:u,interval:{style:s,color:c}}});return(0,i.interval)(f),t.axis(!1),t.legend(!1),t.interaction("element-active"),e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TinyArea=void 0;var r=n(1),o=n(19),i=n(123),a=n(200),l=n(1230);t.TinyArea=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="tiny-area",t}return(0,r.__extends)(t,e),t.getDefaultOptions=function(){return l.DEFAULT_OPTIONS},t.prototype.changeData=function(e){this.updateOption({data:e});var t=this.chart,n=this.options;(0,a.meta)({chart:t,options:n}),t.changeData((0,i.getTinyData)(e))},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return a.adaptor},t}(o.Plot)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Histogram=void 0;var r=n(1),o=n(19),i=n(577),a=n(578),l=n(579);t.Histogram=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="histogram",t}return(0,r.__extends)(t,e),t.getDefaultOptions=function(){return l.DEFAULT_OPTIONS},t.prototype.changeData=function(e){this.updateOption({data:e});var t=this.options,n=t.binField,r=t.binNumber,o=t.binWidth,a=t.stackField;this.chart.changeData((0,i.binHistogram)(e,n,o,r,a))},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return a.adaptor},t}(o.Plot)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.binHistogram=function(e,t,n,i,a){var l=(0,r.clone)(e);(0,r.sortBy)(l,t);var c=(0,r.valuesOfKey)(l,t),s=(0,r.getRange)(c),u=s.max-s.min,d=n;if(!n&&i&&(d=i>1?u/(i-1):s.max),!n&&!i){var f=function(e){return Math.ceil(Math.log(e.length)/Math.LN2)+1}(c);d=u/f}var p={},h=(0,r.groupBy)(l,a);(0,r.isEmpty)(h)?(0,r.each)(l,(function(e){var n=o(e[t],d,i),a=n[0]+"-"+n[1];(0,r.hasKey)(p,a)||(p[a]={range:n,count:0}),p[a].count+=1})):Object.keys(h).forEach((function(e){(0,r.each)(h[e],(function(n){var l=o(n[t],d,i),c=l[0]+"-"+l[1]+"-"+e;(0,r.hasKey)(p,c)||(p[c]={range:l,count:0},p[c][a]=e),p[c].count+=1}))}));var g=[];return(0,r.each)(p,(function(e){g.push(e)})),g};var r=n(0);function o(e,t,n){if(1===n)return[0,t];var r=Math.floor(e/t);return[t*r,t*(r+1)]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.adaptor=function(e){return(0,a.flow)(o.theme,(0,i.pattern)("columnStyle"),u,d,f,o.state,p,o.tooltip,o.interaction,o.animation)(e)};var r=n(1),o=n(22),i=n(121),a=n(7),l=n(30),c=n(577),s=n(579);function u(e){var t=e.chart,n=e.options,r=n.data,o=n.binField,i=n.binNumber,u=n.binWidth,d=n.color,f=n.stackField,p=n.legend,h=n.columnStyle,g=(0,c.binHistogram)(r,o,u,i,f);t.data(g);var v=(0,a.deepAssign)({},e,{options:{xField:s.HISTOGRAM_X_FIELD,yField:s.HISTOGRAM_Y_FIELD,seriesField:f,isStack:!0,interval:{color:d,style:h}}});return(0,l.interval)(v),p&&f&&t.legend(f,p),e}function d(e){var t,n=e.options,r=n.xAxis,i=n.yAxis;return(0,a.flow)((0,o.scale)(((t={})[s.HISTOGRAM_X_FIELD]=r,t[s.HISTOGRAM_Y_FIELD]=i,t)))(e)}function f(e){var t=e.chart,n=e.options,r=n.xAxis,o=n.yAxis;return!1===r?t.axis(s.HISTOGRAM_X_FIELD,!1):t.axis(s.HISTOGRAM_X_FIELD,r),!1===o?t.axis(s.HISTOGRAM_Y_FIELD,!1):t.axis(s.HISTOGRAM_Y_FIELD,o),e}function p(e){var t=e.chart,n=e.options.label,o=(0,a.findGeometry)(t,"interval");if(n){var i=n.callback,l=(0,r.__rest)(n,["callback"]);o.label({fields:[s.HISTOGRAM_Y_FIELD],callback:i,cfg:(0,a.transformLabel)(l)})}else o.label(!1);return e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HISTOGRAM_Y_FIELD=t.HISTOGRAM_X_FIELD=t.DEFAULT_OPTIONS=void 0;var r=n(19),o=n(7);t.HISTOGRAM_X_FIELD="range",t.HISTOGRAM_Y_FIELD="count",t.DEFAULT_OPTIONS=(0,o.deepAssign)({},r.Plot.getDefaultOptions(),{columnStyle:{stroke:"#FFFFFF"},tooltip:{shared:!0,showMarkers:!1},interactions:[{type:"active-region"}]})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Progress=void 0;var r=n(1),o=n(19),i=n(306),a=n(581),l=n(307);t.Progress=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="process",t}return(0,r.__extends)(t,e),t.getDefaultOptions=function(){return a.DEFAULT_OPTIONS},t.prototype.changeData=function(e){this.updateOption({percent:e}),this.chart.changeData((0,l.getProgressData)(e))},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return i.adaptor},t}(o.Plot)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_OPTIONS=t.DEFAULT_COLOR=void 0;var r=t.DEFAULT_COLOR=["#FAAD14","#E8EDF3"];t.DEFAULT_OPTIONS={percent:.2,color:r,animation:{}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RingProgress=void 0;var r=n(1),o=n(14),i=n(19),a=n(307),l=n(583),c=n(1231);t.RingProgress=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="ring-process",t}return(0,r.__extends)(t,e),t.getDefaultOptions=function(){return c.DEFAULT_OPTIONS},t.prototype.changeData=function(e){this.chart.emit(o.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA,o.Event.fromData(this.chart,o.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA,null)),this.updateOption({percent:e}),this.chart.data((0,a.getProgressData)(e)),(0,l.statistic)({chart:this.chart,options:this.options},!0),this.chart.emit(o.VIEW_LIFE_CIRCLE.AFTER_CHANGE_DATA,o.Event.fromData(this.chart,o.VIEW_LIFE_CIRCLE.AFTER_CHANGE_DATA,null))},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return l.adaptor},t}(i.Plot)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.adaptor=function(e){return(0,i.flow)(l.geometry,(0,a.scale)({}),c,s,a.animation,a.theme,(0,a.annotation)())(e)},t.statistic=s;var r=n(1),o=n(0),i=n(7),a=n(22),l=n(306);function c(e){var t=e.chart,n=e.options,r=n.innerRadius,o=n.radius;return t.coordinate("theta",{innerRadius:r,radius:o}),e}function s(e,t){var n=e.chart,a=e.options,l=a.innerRadius,c=a.statistic,s=a.percent,u=a.meta;if(n.getController("annotation").clear(!0),l&&c){var d=(0,o.get)(u,["percent","formatter"])||function(e){return(100*e).toFixed(2)+"%"},f=c.content;f&&(f=(0,i.deepAssign)({},f,{content:(0,o.isNil)(f.content)?d(s):f.content})),(0,i.renderStatistic)(n,{statistic:(0,r.__assign)((0,r.__assign)({},c),{content:f}),plotType:"ring-progress"},{percent:s})}return t&&n.render(!0),e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.transformData=void 0;var r=n(0),o=n(308);t.transformData=function(e,t){var n=e;if(Array.isArray(t)){var i=t[0],a=t[1],l=t[2],c=t[3],s=t[4];n=(0,r.map)(e,(function(e){return e[o.BOX_RANGE]=[e[i],e[a],e[l],e[c],e[s]],e}))}return n}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.transformViolinData=t.toViolinValue=t.toBoxValue=void 0;var o=n(1),i=n(0),a=r(n(1241)),l=n(1243),c=t.toBoxValue=function(e){return{low:(0,i.min)(e),high:(0,i.max)(e),q1:(0,l.quantile)(e,.25),q3:(0,l.quantile)(e,.75),median:(0,l.quantile)(e,[.5]),minMax:[(0,i.min)(e),(0,i.max)(e)],quantile:[(0,l.quantile)(e,.25),(0,l.quantile)(e,.75)]}},s=t.toViolinValue=function(e,t){var n=a.default.create(e,t);return{violinSize:n.map((function(e){return e.y})),violinY:n.map((function(e){return e.x}))}};t.transformViolinData=function(e){var t=e.xField,n=e.yField,r=e.seriesField,a=e.data,l=e.kde,u={min:l.min,max:l.max,size:l.sampleSize,width:l.width};if(!r){var d=(0,i.groupBy)(a,t);return Object.keys(d).map((function(e){var t=d[e].map((function(e){return e[n]}));return(0,o.__assign)((0,o.__assign)({x:e},s(t,u)),c(t))}))}var f=[],p=(0,i.groupBy)(a,r);return Object.keys(p).forEach((function(e){var a=(0,i.groupBy)(p[e],t);return Object.keys(a).forEach((function(t){var i,l=a[t].map((function(e){return e[n]}));f.push((0,o.__assign)((0,o.__assign)(((i={x:t})[r]=e,i),s(l,u)),c(l)))}))})),f}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.X_FIELD=t.VIOLIN_Y_FIELD=t.VIOLIN_VIEW_ID=t.VIOLIN_SIZE_FIELD=t.QUANTILE_VIEW_ID=t.QUANTILE_FIELD=t.MIN_MAX_VIEW_ID=t.MIN_MAX_FIELD=t.MEDIAN_VIEW_ID=t.MEDIAN_FIELD=t.DEFAULT_OPTIONS=void 0;var r=n(19),o=n(7);t.X_FIELD="x",t.VIOLIN_Y_FIELD="violinY",t.VIOLIN_SIZE_FIELD="violinSize",t.MIN_MAX_FIELD="minMax",t.QUANTILE_FIELD="quantile",t.MEDIAN_FIELD="median",t.VIOLIN_VIEW_ID="violin_view",t.MIN_MAX_VIEW_ID="min_max_view",t.QUANTILE_VIEW_ID="quantile_view",t.MEDIAN_VIEW_ID="median_view",t.DEFAULT_OPTIONS=(0,o.deepAssign)({},r.Plot.getDefaultOptions(),{syncViewPadding:!0,kde:{type:"triangular",sampleSize:32,width:3},violinStyle:{lineWidth:1,fillOpacity:.3,strokeOpacity:.75},xAxis:{grid:{line:null},tickLine:{alignTick:!1}},yAxis:{grid:{line:{style:{lineWidth:.5,lineDash:[4,4]}}}},legend:{position:"top-left"},tooltip:{showMarkers:!1}})},function(e,t,n){"use strict";var r,o,i,a,l=n(2)(n(6));a=function(e){function t(e){for(var t=new Array(e),n=0;n<e;++n)t[n]=0;return t}function n(e,t){for(var n=0,r=0;r<e.length;++r)n+=e[r]*t[r];return n}function r(e){return Math.sqrt(n(e,e))}function o(e,t,n){for(var r=0;r<t.length;++r)e[r]=t[r]*n}function i(e,t,n,r,o){for(var i=0;i<e.length;++i)e[i]=t*n[i]+r*o[i]}function a(e,t,r,o,a,l,c){var s=r.fx,u=n(r.fxprime,t),d=s,f=s,p=u,h=0;function g(f,h,g){for(var v=0;v<16;++v)if(a=(f+h)/2,i(o.x,1,r.x,a,t),d=o.fx=e(o.x,o.fxprime),p=n(o.fxprime,t),d>s+l*a*u||d>=g)h=a;else{if(Math.abs(p)<=-c*u)return a;p*(h-f)>=0&&(h=f),f=a,g=d}return 0}a=a||1,l=l||1e-6,c=c||.1;for(var v=0;v<10;++v){if(i(o.x,1,r.x,a,t),d=o.fx=e(o.x,o.fxprime),p=n(o.fxprime,t),d>s+l*a*u||v&&d>=f)return g(h,a,f);if(Math.abs(p)<=-c*u)return a;if(p>=0)return g(a,h,d);f=d,h=a,a*=2}return a}e.bisect=function(e,t,n,r){var o=(r=r||{}).maxIterations||100,i=r.tolerance||1e-10,a=e(t),l=e(n),c=n-t;if(a*l>0)throw"Initial bisect points must have opposite signs";if(0===a)return t;if(0===l)return n;for(var s=0;s<o;++s){var u=t+(c/=2),d=e(u);if(d*a>=0&&(t=u),Math.abs(c)<i||0===d)return u}return t+c},e.nelderMead=function(e,t,n){var r,o=(n=n||{}).maxIterations||200*t.length,a=n.nonZeroDelta||1.05,l=n.zeroDelta||.001,c=n.minErrorDelta||1e-6,s=n.minErrorDelta||1e-5,u=void 0!==n.rho?n.rho:1,d=void 0!==n.chi?n.chi:2,f=void 0!==n.psi?n.psi:-.5,p=void 0!==n.sigma?n.sigma:.5,h=t.length,g=new Array(h+1);g[0]=t,g[0].fx=e(t),g[0].id=0;for(var v=0;v<h;++v){var m=t.slice();m[v]=m[v]?m[v]*a:l,g[v+1]=m,g[v+1].fx=e(m),g[v+1].id=v+1}function y(e){for(var t=0;t<e.length;t++)g[h][t]=e[t];g[h].fx=e.fx}for(var b=function(e,t){return e.fx-t.fx},x=t.slice(),w=t.slice(),S=t.slice(),O=t.slice(),_=0;_<o;++_){if(g.sort(b),n.history){var C=g.map((function(e){var t=e.slice();return t.fx=e.fx,t.id=e.id,t}));C.sort((function(e,t){return e.id-t.id})),n.history.push({x:g[0].slice(),fx:g[0].fx,simplex:C})}for(r=0,v=0;v<h;++v)r=Math.max(r,Math.abs(g[0][v]-g[1][v]));if(Math.abs(g[0].fx-g[h].fx)<c&&r<s)break;for(v=0;v<h;++v){x[v]=0;for(var E=0;E<h;++E)x[v]+=g[E][v];x[v]/=h}var P=g[h];if(i(w,1+u,x,-u,P),w.fx=e(w),w.fx<g[0].fx)i(O,1+d,x,-d,P),O.fx=e(O),O.fx<w.fx?y(O):y(w);else if(w.fx>=g[h-1].fx){var M=!1;if(w.fx>P.fx?(i(S,1+f,x,-f,P),S.fx=e(S),S.fx<P.fx?y(S):M=!0):(i(S,1-f*u,x,f*u,P),S.fx=e(S),S.fx<w.fx?y(S):M=!0),M){if(p>=1)break;for(v=1;v<g.length;++v)i(g[v],1-p,g[0],p,g[v]),g[v].fx=e(g[v])}}else y(w)}return g.sort(b),{fx:g[0].fx,x:g[0]}},e.conjugateGradient=function(e,t,l){var c,s,u,d={x:t.slice(),fx:0,fxprime:t.slice()},f={x:t.slice(),fx:0,fxprime:t.slice()},p=t.slice(),h=1;u=(l=l||{}).maxIterations||20*t.length,d.fx=e(d.x,d.fxprime),o(c=d.fxprime.slice(),d.fxprime,-1);for(var g=0;g<u;++g){if(h=a(e,c,d,f,h),l.history&&l.history.push({x:d.x.slice(),fx:d.fx,fxprime:d.fxprime.slice(),alpha:h}),h){i(p,1,f.fxprime,-1,d.fxprime);var v=n(d.fxprime,d.fxprime);i(c,Math.max(0,n(p,f.fxprime)/v),c,-1,f.fxprime),s=d,d=f,f=s}else o(c,d.fxprime,-1);if(r(d.fxprime)<=1e-5)break}return l.history&&l.history.push({x:d.x.slice(),fx:d.fx,fxprime:d.fxprime.slice(),alpha:h}),d},e.gradientDescent=function(e,t,n){for(var o=(n=n||{}).maxIterations||100*t.length,a=n.learnRate||.001,l={x:t.slice(),fx:0,fxprime:t.slice()},c=0;c<o&&(l.fx=e(l.x,l.fxprime),n.history&&n.history.push({x:l.x.slice(),fx:l.fx,fxprime:l.fxprime.slice()}),i(l.x,1,l.x,-a,l.fxprime),!(r(l.fxprime)<=1e-5));++c);return l},e.gradientDescentLineSearch=function(e,t,n){n=n||{};var i,l={x:t.slice(),fx:0,fxprime:t.slice()},c={x:t.slice(),fx:0,fxprime:t.slice()},s=n.maxIterations||100*t.length,u=n.learnRate||1,d=t.slice(),f=n.c1||.001,p=n.c2||.1,h=[];if(n.history){var g=e;e=function(e,t){return h.push(e.slice()),g(e,t)}}l.fx=e(l.x,l.fxprime);for(var v=0;v<s&&(o(d,l.fxprime,-1),u=a(e,d,l,c,u,f,p),n.history&&(n.history.push({x:l.x.slice(),fx:l.fx,fxprime:l.fxprime.slice(),functionCalls:h,learnRate:u,alpha:u}),h=[]),i=l,l=c,c=i,!(0===u||r(l.fxprime)<1e-5));++v);return l},e.zeros=t,e.zerosM=function(e,n){return t(e).map((function(){return t(n)}))},e.norm2=r,e.weightedSum=i,e.scale=o},"object"===(0,l.default)(t)&&"undefined"!==typeof e?a(t):(o=[t],void 0===(i="function"===typeof(r=a)?r.apply(t,o):r)||(e.exports=i))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.circleArea=i,t.circleCircleIntersection=l,t.circleOverlap=function(e,t,n){if(n>=e+t)return 0;if(n<=Math.abs(e-t))return Math.PI*Math.min(e,t)*Math.min(e,t);var r=t-(n*n-e*e+t*t)/(2*n);return i(e,e-(n*n-t*t+e*e)/(2*n))+i(t,r)},t.containedInCircles=o,t.distance=a,t.getCenter=c,t.intersectionArea=function(e,t){var n,s=function(e){for(var t=[],n=0;n<e.length;++n)for(var r=n+1;r<e.length;++r)for(var o=l(e[n],e[r]),i=0;i<o.length;++i){var a=o[i];a.parentIndex=[n,r],t.push(a)}return t}(e),u=s.filter((function(t){return o(t,e)})),d=0,f=0,p=[];if(u.length>1){var h=c(u);for(n=0;n<u.length;++n){var g=u[n];g.angle=Math.atan2(g.x-h.x,g.y-h.y)}u.sort((function(e,t){return t.angle-e.angle}));var v=u[u.length-1];for(n=0;n<u.length;++n){var m=u[n];f+=(v.x+m.x)*(m.y-v.y);for(var y={x:(m.x+v.x)/2,y:(m.y+v.y)/2},b=null,x=0;x<m.parentIndex.length;++x)if(v.parentIndex.indexOf(m.parentIndex[x])>-1){var w=e[m.parentIndex[x]],S=Math.atan2(m.x-w.x,m.y-w.y),O=Math.atan2(v.x-w.x,v.y-w.y),_=O-S;_<0&&(_+=2*Math.PI);var C=O-_/2,E=a(y,{x:w.x+w.radius*Math.sin(C),y:w.y+w.radius*Math.cos(C)});E>2*w.radius&&(E=2*w.radius),(null===b||b.width>E)&&(b={circle:w,width:E,p1:m,p2:v})}null!==b&&(p.push(b),d+=i(b.circle.radius,b.width),v=m)}}else{var P=e[0];for(n=1;n<e.length;++n)e[n].radius<P.radius&&(P=e[n]);var M=!1;for(n=0;n<e.length;++n)if(a(e[n],P)>Math.abs(P.radius-e[n].radius)){M=!0;break}M?d=f=0:(d=P.radius*P.radius*Math.PI,p.push({circle:P,p1:{x:P.x,y:P.y+P.radius},p2:{x:P.x-r,y:P.y+P.radius},width:2*P.radius}))}return f/=2,t&&(t.area=d+f,t.arcArea=d,t.polygonArea=f,t.arcs=p,t.innerPoints=u,t.intersectionPoints=s),d+f};var r=1e-10;function o(e,t){for(var n=0;n<t.length;++n)if(a(e,t[n])>t[n].radius+r)return!1;return!0}function i(e,t){return e*e*Math.acos(1-t/e)-(e-t)*Math.sqrt(t*(2*e-t))}function a(e,t){return Math.sqrt((e.x-t.x)*(e.x-t.x)+(e.y-t.y)*(e.y-t.y))}function l(e,t){var n=a(e,t),r=e.radius,o=t.radius;if(n>=r+o||n<=Math.abs(r-o))return[];var i=(r*r-o*o+n*n)/(2*n),l=Math.sqrt(r*r-i*i),c=e.x+i*(t.x-e.x)/n,s=e.y+i*(t.y-e.y)/n,u=-(t.y-e.y)*(l/n),d=-(t.x-e.x)*(l/n);return[{x:c+u,y:s-d},{x:c-u,y:s+d}]}function c(e){for(var t={x:0,y:0},n=0;n<e.length;++n)t.x+=e[n].x,t.y+=e[n].y;return t.x/=e.length,t.y/=e.length,t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getStockData=function(e,t){return(0,r.map)(e,(function(e){if((0,r.isArray)(t)){var n=t[0],i=t[1],a=t[2],l=t[3];e[o.TREND_FIELD]=e[n]<=e[i]?o.TREND_UP:o.TREND_DOWN,e[o.Y_FIELD]=[e[n],e[i],e[a],e[l]]}return e}))};var r=n(0),o=n(310)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"FUNNEL_CONVERSATION_FIELD",{enumerable:!0,get:function(){return c.FUNNEL_CONVERSATION}}),t.Funnel=void 0;var r=n(1),o=n(0),i=n(19),a=n(7),l=n(591),c=n(124);t.Funnel=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="funnel",t}return(0,r.__extends)(t,e),t.getDefaultOptions=function(){return c.DEFAULT_OPTIONS},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return l.adaptor},t.prototype.setState=function(e,t,n){void 0===n&&(n=!0);var r=(0,a.getAllElementsRecursively)(this.chart);(0,o.each)(r,(function(r){t(r.getData())&&r.setState(e,n)}))},t.prototype.getStates=function(){var e=(0,a.getAllElementsRecursively)(this.chart),t=[];return(0,o.each)(e,(function(e){var n=e.getData(),r=e.getStates();(0,o.each)(r,(function(r){t.push({data:n,state:r,geometry:e.geometry,element:e})}))})),t},t.CONVERSATION_FIELD=c.FUNNEL_CONVERSATION,t.PERCENT_FIELD=c.FUNNEL_PERCENT,t.TOTAL_PERCENT_FIELD=c.FUNNEL_TOTAL_PERCENT,t}(i.Plot)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.adaptor=function(e){return(0,a.flow)(p,h,g,v,o.tooltip,o.interaction,m,o.animation,o.theme,(0,o.annotation)())(e)},t.meta=g;var r=n(0),o=n(22),i=n(197),a=n(7),l=n(553),c=n(592),s=n(1258),u=n(1259),d=n(1260),f=n(124);function p(e){var t,n=e.options,o=n.compareField,c=n.xField,s=n.yField,u=n.locale,d=n.funnelStyle,p=n.data,h=(0,i.getLocale)(u),g={label:o?{fields:[c,s,o,f.FUNNEL_PERCENT,f.FUNNEL_CONVERSATION],formatter:function(e){return""+e[s]}}:{fields:[c,s,f.FUNNEL_PERCENT,f.FUNNEL_CONVERSATION],offset:0,position:"middle",formatter:function(e){return e[c]+" "+e[s]}},tooltip:{title:c,formatter:function(e){return{name:e[c],value:e[s]}}},conversionTag:{formatter:function(e){return h.get(["conversionTag","label"])+": "+l.conversionTagFormatter.apply(void 0,e[f.FUNNEL_CONVERSATION])}}};return(o||d)&&(t=function(e){return(0,a.deepAssign)({},o&&{lineWidth:1,stroke:"#fff"},(0,r.isFunction)(d)?d(e):d)}),(0,a.deepAssign)({options:g},e,{options:{funnelStyle:t,data:(0,r.clone)(p)}})}function h(e){var t=e.options,n=t.compareField,r=t.dynamicHeight;return t.seriesField?(0,u.facetFunnel)(e):n?(0,s.compareFunnel)(e):r?(0,d.dynamicHeightFunnel)(e):(0,c.basicFunnel)(e)}function g(e){var t,n=e.options,r=n.xAxis,i=n.yAxis,l=n.xField,c=n.yField;return(0,a.flow)((0,o.scale)(((t={})[l]=r,t[c]=i,t)))(e)}function v(e){return e.chart.axis(!1),e}function m(e){var t=e.chart,n=e.options.legend;return!1===n?t.legend(!1):t.legend(n),e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.basicFunnel=function(e){return(0,i.flow)(u,d,f,p)(e)};var r=n(1),o=n(0),i=n(7),a=n(65),l=n(49),c=n(124),s=n(311);function u(e){var t=e.chart,n=e.options,r=n.data,o=void 0===r?[]:r,i=n.yField,a=n.maxSize,l=n.minSize,c=(0,s.transformData)(o,o,{yField:i,maxSize:a,minSize:l});return t.data(c),e}function d(e){var t=e.chart,n=e.options,r=n.xField,s=n.yField,u=n.color,d=n.tooltip,f=n.label,p=n.shape,h=void 0===p?"funnel":p,g=n.funnelStyle,v=n.state,m=(0,a.getTooltipMapping)(d,[r,s]),y=m.fields,b=m.formatter;return(0,l.geometry)({chart:t,options:{type:"interval",xField:r,yField:c.FUNNEL_MAPPING_VALUE,colorField:r,tooltipFields:(0,o.isArray)(y)&&y.concat([c.FUNNEL_PERCENT,c.FUNNEL_CONVERSATION]),mapping:{shape:h,tooltip:b,color:u,style:g},label:f,state:v}}),(0,i.findGeometry)(e.chart,"interval").adjust("symmetric"),e}function f(e){var t=e.chart,n=e.options.isTransposed;return t.coordinate({type:"rect",actions:n?[]:[["transpose"],["scale",1,-1]]}),e}function p(e){var t=e.options.maxSize;return(0,s.conversionTagComponent)((function(e,n,o,i){var a=t-(t-e[c.FUNNEL_MAPPING_VALUE])/2;return(0,r.__assign)((0,r.__assign)({},i),{start:[n-.5,a],end:[n-.5,a+.05]})}))(e),e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getLiquidData=function(e){return[{percent:e,type:r}]};var r="liquid"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.transformData=function(e){var t=e.data,n=e.xField,r=e.measureField,o=e.rangeField,i=e.targetField,a=e.layout,l=[],c=[];t.forEach((function(e,t){var a;e[o].sort((function(e,t){return e-t})),e[o].forEach((function(r,i){var a,c=0===i?r:e[o][i]-e[o][i-1];l.push(((a={rKey:o+"_"+i})[n]=n?e[n]:String(t),a[o]=c,a))})),e[r].forEach((function(o,i){var a;l.push(((a={mKey:e[r].length>1?r+"_"+i:""+r})[n]=n?e[n]:String(t),a[r]=o,a))})),l.push(((a={tKey:""+i})[n]=n?e[n]:String(t),a[i]=e[i],a)),c.push(e[o],e[r],e[i])}));var s=Math.min.apply(Math,c.flat(1/0)),u=Math.max.apply(Math,c.flat(1/0));return s=s>0?0:s,"vertical"===a&&l.reverse(),{min:s,max:u,ds:l}}},function(e,t,n){"use strict";var r=n(6);Object.defineProperty(t,"__esModule",{value:!0}),t.getTileMethod=s,t.treemap=function(e,t){var n,r=(t=(0,i.assign)({},c,t)).as;if(!(0,i.isArray)(r)||2!==r.length)throw new TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "x", "y" ])!');try{n=(0,a.getField)(t)}catch(p){console.warn(p)}var l=s(t.tile,t.ratio),u=function(e){return o.treemap().tile(l).size(t.size).round(t.round).padding(t.padding).paddingInner(t.paddingInner).paddingOuter(t.paddingOuter).paddingTop(t.paddingTop).paddingRight(t.paddingRight).paddingBottom(t.paddingBottom).paddingLeft(t.paddingLeft)(o.hierarchy(e).sum((function(e){return t.ignoreParentValue&&e.children?0:e[n]})).sort(t.sort))}(e),d=r[0],f=r[1];return u.each((function(e){e[d]=[e.x0,e.x1,e.x1,e.x0],e[f]=[e.y1,e.y1,e.y0,e.y0],["x0","x1","y0","y1"].forEach((function(t){-1===r.indexOf(t)&&delete e[t]}))})),(0,a.getAllNodes)(u)};var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var c=i?Object.getOwnPropertyDescriptor(e,a):null;c&&(c.get||c.set)?Object.defineProperty(o,a,c):o[a]=e[a]}return o.default=e,n&&n.set(e,o),o}(n(194)),i=n(0),a=n(157);function l(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}var c={field:"value",tile:"treemapSquarify",size:[1,1],round:!1,ignoreParentValue:!0,padding:0,paddingInner:0,paddingOuter:0,paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0,as:["x","y"],sort:function(e,t){return t.value-e.value},ratio:.5*(1+Math.sqrt(5))};function s(e,t){return"treemapSquarify"===e?o[e].ratio(t):o[e]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Gauge=void 0;var r=n(1),o=n(14),i=n(19),a=n(597),l=n(314),c=n(598);n(1273),n(1274),t.Gauge=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="gauge",t}return(0,r.__extends)(t,e),t.getDefaultOptions=function(){return l.DEFAULT_OPTIONS},t.prototype.changeData=function(e){this.chart.emit(o.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA,o.Event.fromData(this.chart,o.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA,null)),this.updateOption({percent:e});var t=this.chart.views.find((function(e){return e.id===l.INDICATEOR_VIEW_ID}));t&&t.data((0,c.getIndicatorData)(e));var n=this.chart.views.find((function(e){return e.id===l.RANGE_VIEW_ID}));n&&n.data((0,c.getRangeData)(e,this.options.range)),(0,a.statistic)({chart:this.chart,options:this.options},!0),this.chart.emit(o.VIEW_LIFE_CIRCLE.AFTER_CHANGE_DATA,o.Event.fromData(this.chart,o.VIEW_LIFE_CIRCLE.AFTER_CHANGE_DATA,null))},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return a.adaptor},t}(i.Plot)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.adaptor=function(e){return(0,c.flow)(i.theme,i.animation,d,f,p,i.interaction,(0,i.annotation)(),h)(e)},t.statistic=p;var r=n(1),o=n(0),i=n(22),a=n(30),l=n(98),c=n(7),s=n(314),u=n(598);function d(e){var t=e.chart,n=e.options,r=n.percent,i=n.range,d=n.radius,f=n.innerRadius,p=n.startAngle,h=n.endAngle,g=n.axis,v=n.indicator,m=n.gaugeStyle,y=n.type,b=n.meter,x=i.color,w=i.width;if(v){var S=(0,u.getIndicatorData)(r),O=t.createView({id:s.INDICATEOR_VIEW_ID});O.data(S),O.point().position(s.PERCENT+"*1").shape(v.shape||"gauge-indicator").customInfo({defaultColor:t.getTheme().defaultColor,indicator:v}),O.coordinate("polar",{startAngle:p,endAngle:h,radius:f*d}),O.axis(s.PERCENT,g),O.scale(s.PERCENT,(0,c.pick)(g,l.AXIS_META_CONFIG_KEYS))}var _=(0,u.getRangeData)(r,n.range),C=t.createView({id:s.RANGE_VIEW_ID});C.data(_);var E=(0,o.isString)(x)?[x,s.DEFAULT_COLOR]:x;return(0,a.interval)({chart:C,options:{xField:"1",yField:s.RANGE_VALUE,seriesField:s.RANGE_TYPE,rawFields:[s.PERCENT],isStack:!0,interval:{color:E,style:m,shape:"meter"===y?"meter-gauge":null},args:{zIndexReversed:!0},minColumnWidth:w,maxColumnWidth:w}}).ext.geometry.customInfo({meter:b}),C.coordinate("polar",{innerRadius:f,radius:d,startAngle:p,endAngle:h}).transpose(),e}function f(e){var t;return(0,c.flow)((0,i.scale)(((t={range:{min:0,max:1,maxLimit:1,minLimit:0}})[s.PERCENT]={},t)))(e)}function p(e,t){var n=e.chart,o=e.options,i=o.statistic,a=o.percent;if(n.getController("annotation").clear(!0),i){var l=i.content,s=void 0;l&&(s=(0,c.deepAssign)({},{content:(100*a).toFixed(2)+"%",style:{opacity:.75,fontSize:"30px",lineHeight:1,textAlign:"center",color:"rgba(44,53,66,0.85)"}},l)),(0,c.renderGaugeStatistic)(n,{statistic:(0,r.__assign)((0,r.__assign)({},i),{content:s})},{percent:a})}return t&&n.render(!0),e}function h(e){var t=e.chart;return t.legend(!1),t.tooltip(!1),e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getIndicatorData=function(e){var t;return[(t={},t[o.PERCENT]=(0,r.clamp)(e,0,1),t)]},t.getRangeData=function(e,t){var n=(0,r.get)(t,["ticks"],[]);return i((0,r.size)(n)?n:[0,(0,r.clamp)(e,0,1),1],e)},t.processRangeData=i;var r=n(0),o=n(314);function i(e,t){return e.map((function(n,r){var i;return(i={})[o.RANGE_VALUE]=n-(e[r-1]||0),i[o.RANGE_TYPE]=""+r,i[o.PERCENT]=t,i})).filter((function(e){return!!e[o.RANGE_VALUE]}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.processData=l,t.transformData=function(e,t,n,i){return l(e,t,n,a.Y_FIELD,i).map((function(t,n){var i;return(0,o.isObject)(t)?(0,r.__assign)((0,r.__assign)({},t),((i={})[a.ABSOLUTE_FIELD]=t[a.Y_FIELD][1],i[a.DIFF_FIELD]=t[a.Y_FIELD][1]-t[a.Y_FIELD][0],i[a.IS_TOTAL]=n===e.length,i)):t}))};var r=n(1),o=n(0),i=n(7),a=n(315);function l(e,t,n,a,l){var c,s=[];if((0,o.reduce)(e,(function(e,t){var l;(0,i.log)(i.LEVEL.WARN,(0,o.isNumber)(t[n]),t[n]+" is not a valid number");var c=(0,o.isUndefined)(t[n])?null:t[n];return s.push((0,r.__assign)((0,r.__assign)({},t),((l={})[a]=[e,e+c],l))),e+c}),0),s.length&&l){var u=(0,o.get)(s,[[e.length-1],a,[1]]);s.push(((c={})[t]=l.label,c[n]=u,c[a]=[0,u],c))}return s}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SERIES_FIELD_KEY=t.SECOND_AXES_VIEW=t.FIRST_AXES_VIEW=void 0,t.FIRST_AXES_VIEW="first-axes-view",t.SECOND_AXES_VIEW="second-axes-view",t.SERIES_FIELD_KEY="series-field-key"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isHorizontal=o,t.syncViewPadding=function(e,t,n){var r=t[0],i=t[1],a=r.autoPadding,l=i.autoPadding,c=e.__axisPosition,s=c.layout,u=c.position;if(o(s)&&"top"===u&&(r.autoPadding=n.instance(a.top,0,a.bottom,a.left),i.autoPadding=n.instance(l.top,a.left,l.bottom,0)),o(s)&&"bottom"===u&&(r.autoPadding=n.instance(a.top,a.right/2+5,a.bottom,a.left),i.autoPadding=n.instance(l.top,l.right,l.bottom,a.right/2+5)),!o(s)&&"bottom"===u){var d=a.left>=l.left?a.left:l.left;r.autoPadding=n.instance(a.top,a.right,a.bottom/2+5,d),i.autoPadding=n.instance(a.bottom/2+5,l.right,l.bottom,d)}o(s)||"top"!==u||(d=a.left>=l.left?a.left:l.left,r.autoPadding=n.instance(a.top,a.right,0,d),i.autoPadding=n.instance(0,l.right,a.top,d))},t.transformData=function(e,t,n,o,i){var a=[];t.forEach((function(t){o.forEach((function(r){var o,i=((o={})[e]=r[e],o[n]=t,o[t]=r[t],o);a.push(i)}))}));var l=Object.values((0,r.groupBy)(a,n)),c=l[0],s=void 0===c?[]:c,u=l[1],d=void 0===u?[]:u;return i?[s.reverse(),d.reverse()]:[s,d]};var r=n(0);function o(e){return"vertical"!==e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.enableDrillInteraction=function(e){var t=e.interactions,n=e.drilldown;return(0,o.get)(n,"enabled")||c(t,"treemap-drill-down")},t.enableInteraction=c,t.findInteraction=l,t.resetDrillDown=function(e){var t=e.interactions["drill-down"];t&&t.context.actions.find((function(e){return"drill-down-action"===e.name})).reset()},t.transformData=function(e){var t=e.data,n=e.colorField,l=e.enableDrillDown,c=e.hierarchyConfig,s=(0,a.treemap)(t,(0,r.__assign)((0,r.__assign)({},c),{type:"hierarchy.treemap",field:"value",as:["x","y"]})),u=[];return s.forEach((function(e){if(0===e.depth)return null;if(l&&1!==e.depth)return null;if(!l&&e.children)return null;var a=e.ancestors().map((function(e){return{data:e.data,height:e.height,value:e.value}})),s=l&&(0,o.isArray)(t.path)?a.concat(t.path.slice(1)):a,d=Object.assign({},e.data,(0,r.__assign)({x:e.x,y:e.y,depth:e.depth,value:e.value,path:s},e));if(!e.data[n]&&e.parent){var f=e.ancestors().find((function(e){return e.data[n]}));d[n]=null===f||void 0===f?void 0:f.data[n]}else d[n]=e.data[n];d[i.HIERARCHY_DATA_TRANSFORM_PARAMS]={hierarchyConfig:c,colorField:n,enableDrillDown:l},u.push(d)})),u};var r=n(1),o=n(0),i=n(202),a=n(595);function l(e,t){if((0,o.isArray)(e))return e.find((function(e){return e.type===t}))}function c(e,t){var n=l(e,t);return n&&!1!==n.enable}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getNodePaddingRatio=s,t.getNodeWidthRatio=c,t.transformToViewsData=function(e,t,n){var u=e.data,d=e.sourceField,f=e.targetField,p=e.weightField,h=e.nodeAlign,g=e.nodeSort,v=e.nodePadding,m=e.nodePaddingRatio,y=e.nodeWidth,b=e.nodeWidthRatio,x=e.nodeDepth,w=e.rawFields,S=void 0===w?[]:w,O=(0,i.transformDataToNodeLinkData)((0,l.cutoffCircle)(u,d,f),d,f,p,S),_=(0,a.sankeyLayout)({nodeAlign:h,nodePadding:s(v,m,n),nodeWidth:c(y,b,t),nodeSort:g,nodeDepth:x},O),C=_.nodes,E=_.links;return{nodes:C.map((function(e){return(0,r.__assign)((0,r.__assign)({},(0,o.pick)(e,(0,r.__spreadArrays)(["x","y","name"],S))),{isNode:!0})})),edges:E.map((function(e){return(0,r.__assign)((0,r.__assign)({source:e.source.name,target:e.target.name,name:e.source.name||e.target.name},(0,o.pick)(e,(0,r.__spreadArrays)(["x","y","value"],S))),{isNode:!1})}))}};var r=n(1),o=n(7),i=n(198),a=n(1290),l=n(1294);function c(e,t,n){return(0,o.isRealNumber)(e)?e/n:t}function s(e,t,n){return(0,o.isRealNumber)(e)?e/n:t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.center=function(e){return e.targetLinks.length?e.depth:e.sourceLinks.length?(0,r.minBy)(e.sourceLinks,o)-1:0},t.justify=function(e,t){return e.sourceLinks.length?e.depth:t-1},t.left=function(e){return e.depth},t.right=function(e,t){return t-1-e.height};var r=n(0);function o(e){return e.target.depth}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Y_FIELD=t.X_FIELD=t.NODE_COLOR_FIELD=t.EDGE_COLOR_FIELD=t.DEFAULT_OPTIONS=void 0;var r=n(0);t.X_FIELD="x",t.Y_FIELD="y",t.NODE_COLOR_FIELD="name",t.EDGE_COLOR_FIELD="source",t.DEFAULT_OPTIONS={nodeStyle:{opacity:1,fillOpacity:1,lineWidth:1},edgeStyle:{opacity:.5,lineWidth:2},label:{fields:["x","name"],callback:function(e,t){return{labelEmit:!0,style:{fill:"#8c8c8c"},offsetX:(e[0]+e[1])/2>.5?-4:4,content:t}}},tooltip:{showTitle:!1,showMarkers:!1,fields:["source","target","value","isNode"],showContent:function(e){return!(0,r.get)(e,[0,"data","isNode"])},formatter:function(e){return{name:e.source+" -> "+e.target,value:e.value}}},interactions:[{type:"element-active"}],weight:!0,nodePaddingRatio:.1,nodeWidthRatio:.05}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RAW_FIELDS=t.DEFAULT_OPTIONS=void 0,t.RAW_FIELDS=["x","y","r","name","value","path","depth"],t.DEFAULT_OPTIONS={colorField:"name",autoFit:!0,pointStyle:{lineWidth:0,stroke:"#fff"},legend:!1,hierarchyConfig:{size:[1,1],padding:0},label:{fields:["name"],layout:{type:"limit-in-shape"}},tooltip:{showMarkers:!1,showTitle:!1},drilldown:{enabled:!1}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Mix=void 0;var r=n(1),o=n(19),i=n(1307);n(1308),t.Mix=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="mix",t}return(0,r.__extends)(t,e),t.prototype.getSchemaAdaptor=function(){return i.adaptor},t}(o.Plot)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.execPlotAdaptor=function(e,t,n){var i=L[e];if(i){var a=j[e];a({chart:t,options:(0,o.deepAssign)({},i.getDefaultOptions(),(0,r.get)(R,e,{}),n)})}else console.error("could not find "+e+" plot")};var r=n(0),o=n(7),i=n(303),a=n(559),l=n(199),c=n(556),s=n(551),u=n(597),d=n(572),f=n(574),p=n(200),h=n(583),g=n(306),v=n(567),m=n(578),y=n(591),b=n(546),x=n(558),w=n(555),S=n(552),O=n(550),_=n(596),C=n(571),E=n(575),P=n(573),M=n(582),k=n(580),A=n(566),I=n(576),T=n(590),j={line:i.adaptor,pie:a.adaptor,column:l.adaptor,bar:c.adaptor,area:s.adaptor,gauge:u.adaptor,"tiny-line":d.adaptor,"tiny-column":f.adaptor,"tiny-area":p.adaptor,"ring-progress":h.adaptor,progress:g.adaptor,scatter:v.adaptor,histogram:m.adaptor,funnel:y.adaptor},L={line:b.Line,pie:x.Pie,column:S.Column,bar:w.Bar,area:O.Area,gauge:_.Gauge,"tiny-line":C.TinyLine,"tiny-column":P.TinyColumn,"tiny-area":E.TinyArea,"ring-progress":M.RingProgress,progress:k.Progress,scatter:A.Scatter,histogram:I.Histogram,funnel:T.Funnel},R={pie:{label:!1},column:{tooltip:{showMarkers:!1}},bar:{tooltip:{showMarkers:!1}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getRangeData=t.getIndicatorData=t.processRangeData=void 0;var r=n(0),o=n(317);function i(e,t){return e.map((function(n,r){var i;return(i={})[o.RANGE_VALUE]=n-(e[r-1]||0),i[o.RANGE_TYPE]=""+r,i[o.PERCENT]=t,i})).filter((function(e){return!!e[o.RANGE_VALUE]}))}t.processRangeData=i,t.getIndicatorData=function(e){var t;return[(t={},t[o.PERCENT]=r.clamp(e,0,1),t)]},t.getRangeData=function(e,t){var n=r.get(t,["ticks"],[]);return i(r.size(n)?n:[0,r.clamp(e,0,1),1],e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DualAxesGeometry=t.AxisType=void 0,function(e){e.Left="Left",e.Right="Right"}(t.AxisType||(t.AxisType={})),function(e){e.Line="line",e.Column="column"}(t.DualAxesGeometry||(t.DualAxesGeometry={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_RIGHT_YAXIS_CONFIG=t.DEFAULT_LEFT_YAXIS_CONFIG=t.DEFAULT_YAXIS_CONFIG=t.RIGHT_AXES_VIEW=t.LEFT_AXES_VIEW=void 0;var r=n(1);t.LEFT_AXES_VIEW="left-axes-view",t.RIGHT_AXES_VIEW="right-axes-view",t.DEFAULT_YAXIS_CONFIG={nice:!0,label:{autoHide:!0,autoRotate:!1}},t.DEFAULT_LEFT_YAXIS_CONFIG=r.__assign(r.__assign({},t.DEFAULT_YAXIS_CONFIG),{position:"left"}),t.DEFAULT_RIGHT_YAXIS_CONFIG=r.__assign(r.__assign({},t.DEFAULT_YAXIS_CONFIG),{position:"right",grid:null})},function(e,t,n){"use strict";n.d(t,"x",(function(){return d})),n.d(t,"B",(function(){return p})),n.d(t,"K",(function(){return b})),n.d(t,"J",(function(){return S})),n.d(t,"L",(function(){return E})),n.d(t,"q",(function(){return k})),n.d(t,"M",(function(){return L})),n.d(t,"I",(function(){return R})),n.d(t,"b",(function(){return B})),n.d(t,"F",(function(){return z})),n.d(t,"l",(function(){return V})),n.d(t,"t",(function(){return G})),n.d(t,"z",(function(){return Y})),n.d(t,"a",(function(){return q})),n.d(t,"E",(function(){return K})),n.d(t,"s",(function(){return $})),n.d(t,"f",(function(){return te})),n.d(t,"m",(function(){return re})),n.d(t,"G",(function(){return oe})),n.d(t,"A",(function(){return ie})),n.d(t,"u",(function(){return ae})),n.d(t,"v",(function(){return ce})),n.d(t,"g",(function(){return ue})),n.d(t,"o",(function(){return fe})),n.d(t,"O",(function(){return ve})),n.d(t,"C",(function(){return be})),n.d(t,"j",(function(){return we})),n.d(t,"H",(function(){return Oe})),n.d(t,"n",(function(){return Ce})),n.d(t,"y",(function(){return je})),n.d(t,"r",(function(){return De})),n.d(t,"p",(function(){return Fe})),n.d(t,"h",(function(){return Be})),n.d(t,"N",(function(){return He})),n.d(t,"D",(function(){return Ve})),n.d(t,"c",(function(){return Ge})),n.d(t,"d",(function(){return qe})),n.d(t,"e",(function(){return $e})),n.d(t,"k",(function(){return Je})),n.d(t,"i",(function(){return tt})),n.d(t,"w",(function(){return it}));var r={};n.r(r),n.d(r,"ProgressChart",(function(){return d})),n.d(r,"RingProgressChart",(function(){return p})),n.d(r,"TinyColumnChart",(function(){return b})),n.d(r,"TinyAreaChart",(function(){return S})),n.d(r,"TinyLineChart",(function(){return E}));var o={};n.r(o),n.d(o,"LineChart",(function(){return k})),n.d(o,"TreemapChart",(function(){return L})),n.d(o,"StepLineChart",(function(){return R})),n.d(o,"BarChart",(function(){return B})),n.d(o,"StackedBarChart",(function(){return z})),n.d(o,"GroupedBarChart",(function(){return V})),n.d(o,"PercentStackedBarChart",(function(){return G})),n.d(o,"RangeBarChart",(function(){return Y})),n.d(o,"AreaChart",(function(){return q})),n.d(o,"StackedAreaChart",(function(){return K})),n.d(o,"PercentStackedAreaChart",(function(){return $})),n.d(o,"ColumnChart",(function(){return te})),n.d(o,"GroupedColumnChart",(function(){return re})),n.d(o,"StackedColumnChart",(function(){return oe})),n.d(o,"RangeColumnChart",(function(){return ie})),n.d(o,"PercentStackedColumnChart",(function(){return ae})),n.d(o,"PieChart",(function(){return ce})),n.d(o,"DensityHeatmapChart",(function(){return ue})),n.d(o,"HeatmapChart",(function(){return fe})),n.d(o,"WordCloudChart",(function(){return ve})),n.d(o,"RoseChart",(function(){return be})),n.d(o,"FunnelChart",(function(){return we})),n.d(o,"StackedRoseChart",(function(){return Oe})),n.d(o,"GroupedRoseChart",(function(){return Ce})),n.d(o,"RadarChart",(function(){return je})),n.d(o,"LiquidChart",(function(){return De})),n.d(o,"HistogramChart",(function(){return Fe})),n.d(o,"DonutChart",(function(){return Be})),n.d(o,"WaterfallChart",(function(){return He})),n.d(o,"ScatterChart",(function(){return Ve})),n.d(o,"BubbleChart",(function(){return Ge})),n.d(o,"BulletChart",(function(){return qe})),n.d(o,"CalendarChart",(function(){return $e})),n.d(o,"GaugeChart",(function(){return Je})),n.d(o,"DualAxesChart",(function(){return tt}));var i=n(4),a=n.n(i),l=n(3),c=n.n(l),s=n(631),u=n(11),d=Object(u.a)(s.Progress,"ProgressChart",(function(e){return a()({data:e.percent,color:"#5B8FF9"},e)})),f=n(632),p=Object(u.a)(f.RingProgress,"RingProgressChart",(function(e){return a()({data:e.percent,color:"#5B8FF9"},e)})),h=n(633),g=n(20),v=n.n(g),m=n(16),y=n(0),b=Object(u.a)(h.TinyColumn,"TinyColumnChart",(function(e){var t=Object(m.c)(e);if(!Object(y.isNil)(t.yField)){var n=t.data.map((function(e){return e[t.yField]})).filter((function(e){return!Object(y.isNil)(e)}));n&&n.length&&v()(t,"data",n)}return v()(t,"tooltip",!1),t})),x=n(634),w=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},S=Object(u.a)(x.TinyArea,"TinyAreaChart",(function(e){var t=Object(m.c)(e),n=t.xField,r=t.yField,o=t.data,i=w(t,["xField","yField","data"]);return n&&r&&o&&(i.data=o.map((function(e){return e[r]}))),a()({},i)})),O=n(635),_=n(18),C=n.n(_),E=Object(u.a)(O.TinyLine,"TinyLineChart",(function(e){var t=Object(m.c)(e);if(!Object(y.isNil)(t.yField)){var n=t.data.map((function(e){return e[t.yField]})).filter((function(e){return!Object(y.isNil)(e)}));n&&n.length&&v()(t,"data",n)}var r=C()(t,"size");if(!Object(y.isNil)(r)){var o=C()(t,"lineStyle",{});v()(t,"lineStyle",a()(a()({},o),{lineWidth:r}))}return v()(t,"tooltip",!1),t})),P=n(233),M=function(e){var t=Object(m.c)(e);return Object(m.e)(t,"point"),!0===t.point&&(t.point={}),t},k=Object(u.a)(P.Line,"LineChart",M),A=n(636),I=n(17),T=n.n(I),j=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;if(r>n)delete t.children;else{var o=t.children;o&&o.length&&o.forEach((function(t){e(t,n,r+1)}))}},L=Object(u.a)(A.Treemap,"TreemapChart",(function(e){var t=Object(m.c)(e),n=Object(y.get)(t,"maxLevel",2);if(!Object(y.isNil)(n))if(n<1)T()(!1,"maxLevel \u5fc5\u987b\u5927\u4e8e\u7b49\u4e8e1");else{var r=Object(y.get)(t,"data",{});j(r,n),Object(y.set)(t,"data",r),Object(y.set)(t,"maxLevel",n)}return t})),R=Object(u.a)(P.Line,"StepLineChart",(function(e){return T()(!1,"<StepLineChart />\u5373\u5c06\u57285.0\u540e\u5e9f\u5f03\uff0c\u8bf7\u4f7f\u7528<LineChart />\u66ff\u4ee3\u3002"),e.stepType=e.stepType||e.step||"hv",M(e)})),D=n(83),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},F=function(e){var t=Object(m.c)(e),n=t.barSize,r=N(t,["barSize"]);return Object(m.f)([{sourceKey:"stackField",targetKey:"seriesField",notice:"stackField\u662f\u65e7\u7248API\uff0c\u5373\u5c06\u5e9f\u5f03 \u8bf7\u4f7f\u7528seriesField\u66ff\u4ee3"},{sourceKey:"colorField",targetKey:"seriesField",notice:"colorField\u662f\u65e7\u7248API\uff0c\u5373\u5c06\u5e9f\u5f03 \u8bf7\u4f7f\u7528seriesField\u66ff\u4ee3"}],r),Object(y.isNil)(n)||(r.minBarWidth=n,r.maxBarWidth=n),r},B=Object(u.a)(D.Bar,"BarChart",F),z=Object(u.a)(D.Bar,"StackedBarChart",(function(e){return T()(!1,"<StackedBarChart /> \u5373\u5c06\u57285.0\u540e\u5e9f\u5f03\uff0c\u8bf7\u4f7f\u7528<BarChart />\u66ff\u4ee3\uff0c"),Object(y.deepMix)(e,{isStack:!0}),F(e)})),H=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},W=[{sourceKey:"colorField",targetKey:"seriesField",notice:"colorField \u662f g2@1.0\u7684\u5c5e\u6027\uff0c\u5373\u5c06\u5e9f\u5f03\uff0c\u8bf7\u4f7f\u7528seriesField\u66ff\u4ee3"}],V=Object(u.a)(D.Bar,"GroupedBarChart",(function(e){T()(!1,"<GroupedBarChart /> \u57285.0\u540e\u5373\u5c06\u88ab\u5e9f\u5f03\uff0c\u8bf7\u4f7f\u7528<BarChart /> \u66ff\u4ee3");var t=Object(m.c)(e),n=t.barSize,r=H(t,["barSize"]);return Object(m.f)(W,r),Object(y.isNil)(n)||(r.minBarWidth=n,r.maxBarWidth=n),Object(y.deepMix)(e,{isGroup:!0}),r})),G=Object(u.a)(D.Bar,"PercentStackedBarChart",(function(e){return T()(!1,"<PercentStackedBarChart /> \u5373\u5c06\u57285.0\u540e\u5e9f\u5f03\uff0c\u8bf7\u4f7f\u7528<BarChart />\u66ff\u4ee3\u3002"),Object(y.deepMix)(e,{isPercent:!0,isStack:!0}),F(e)})),Y=Object(u.a)(D.Bar,"RangeBarChart",(function(e){return T()(!1,"<RangeBarChart /> \u5373\u5c06\u57285.0\u540e\u5e9f\u5f03\uff0c\u8bf7\u4f7f\u7528<BarChart />\u66ff\u4ee3\u3002"),Object(y.deepMix)(e,{isRange:!0}),F(e)})),U=n(133),X=function(e){var t=Object(m.c)(e);return Object(m.e)(t,"line"),Object(m.e)(t,"point"),t.isStack=!Object(y.isNil)(t.isStack)&&t.isStack,Object(m.f)([{sourceKey:"stackField",targetKey:"seriesField",notice:"stackField\u662f\u65e7\u7248api\uff0c\u5373\u5c06\u5e9f\u5f03 \u8bf7\u4f7f\u7528seriesField\u66ff\u4ee3"}],t),t},q=Object(u.a)(U.Area,"AreaChart",X),K=Object(u.a)(U.Area,"StackedAreaChart",(function(e){return T()(!1,"<StackedAreaChart /> \u5373\u5c06\u57285.0\u540e\u5e9f\u5f03\uff0c\u8bf7\u4f7f\u7528<AreaChart /> \u66ff\u4ee3\u3002"),Object(y.deepMix)(e,{isStack:!0}),X(e)})),$=Object(u.a)(U.Area,"PercentStackedAreaChart",(function(e){return T()(!1,"<PercentStackedAreaChart /> \u5373\u5c06\u57285.0\u540e\u5e9f\u5f03\uff0c\u8bf7\u4f7f\u7528<AreaChart /> \u66ff\u4ee3\u3002"),Object(y.deepMix)(e,{isPercent:!0}),X(e)})),Q=n(84),Z=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(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},J=[{sourceKey:"colorField",targetKey:"seriesField",notice:"colorField \u662f g2@1.0\u7684\u5c5e\u6027\uff0c\u5373\u5c06\u5e9f\u5f03\uff0c\u8bf7\u4f7f\u7528seriesField\u66ff\u4ee3"},{sourceKey:"stackField",targetKey:"seriesField",notice:"colorField\u662f\u65e7\u7248API\uff0c\u5373\u5c06\u5e9f\u5f03 \u8bf7\u4f7f\u7528seriesField\u66ff\u4ee3"}],ee=function(e){var t=Object(m.c)(e),n=t.columnSize,r=Z(t,["columnSize"]);return Object(m.f)(J,r),Object(y.isNil)(n)||(r.minColumnWidth=n,r.maxColumnWidth=n),r},te=Object(u.a)(Q.Column,"ColumnChart",ee),ne=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},re=Object(u.a)(Q.Column,"GroupedColumnChart",(function(e){T()(!1,"<GroupedColumnChart /> \u57285.0\u540e\u5373\u5c06\u88ab\u5e9f\u5f03\uff0c\u8bf7\u4f7f\u7528<ColumnChart /> \u66ff\u4ee3");var t=Object(m.c)(e),n=t.columnSize,r=ne(t,["columnSize"]);return Object(y.isNil)(n)||(r.minColumnWidth=n,r.maxColumnWidth=n),Object(y.deepMix)(e,{isGroup:!0}),r})),oe=Object(u.a)(Q.Column,"StackedColumnChart",(function(e){return T()(!1,"<StackedColumnChart />\u5373\u5c06\u57285.0\u4e2d\u5e9f\u5f03\uff0c\u8bf7\u4f7f\u7528<ColumnChart />\u66ff\u4ee3\u3002"),Object(y.deepMix)(e,{isStack:!0}),ee(e)})),ie=Object(u.a)(Q.Column,"RangeColumnChart",(function(e){return T()(!1,"<RangeColumnChart /> \u5373\u5c06\u57285.0\u540e\u5e9f\u5f03\uff0c\u8bf7\u4f7f\u7528<ColumnChart />\u66ff\u4ee3\u3002"),Object(y.deepMix)(e,{isRange:!0}),ee(e)})),ae=Object(u.a)(Q.Column,"PercentStackedColumnChart",(function(e){return T()(!1,"<PercentStackedColumnChart /> \u5373\u5c06\u57285.0\u540e\u5e9f\u5f03\uff0c\u8bf7\u4f7f\u7528<ColumnChart />\u66ff\u4ee3\u3002"),Object(y.deepMix)(e,{isPercent:!0,isStack:!0}),ee(e)})),le=n(234),ce=Object(u.a)(le.Pie,"PieChart",m.c),se=n(134),ue=Object(u.a)(se.Heatmap,"DensityHeatmapChartChart",(function(e){var t=Object(m.c)(e);return Object(m.f)([{sourceKey:"radius",targetKey:"sizeRatio",notice:"radius \u8bf7\u4f7f\u7528sizeRatio\u66ff\u4ee3"}],t),Object(y.set)(t,"type","density"),t})),de=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},fe=Object(u.a)(se.Heatmap,"HeatmapChart",(function(e){var t=Object(m.c)(e),n=t.shapeType,r=de(t,["shapeType"]);return n&&(r.heatmapStyle=n,Object(I.warn)(!1,"shapeType\u662fg2plot@1.0\u7684\u5c5e\u6027\uff0c\u5373\u5c06\u5e9f\u5f03\uff0c\u8bf7\u4f7f\u7528 `heatmapStyle` \u66ff\u4ee3")),!r.shape&&r.sizeField&&(r.shape="square"),r})),pe=n(637),he=n(14),ge=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},ve=Object(u.a)(pe.WordCloud,"WordCloudChart",(function(e){var t=e.maskImage,n=e.wordField,r=void 0===n?"word":n,o=e.weightField,i=void 0===o?"weight":o,l=e.colorField,c=void 0===l?"word":l,s=e.selected,u=e.shuffle,d=e.interactions,f=void 0===d?[{type:"element-active"}]:d,p=e.onGetG2Instance,h=e.tooltip,g=e.wordStyle,v=e.onWordCloudHover,m=e.onWordCloudClick,y=ge(e,["maskImage","wordField","weightField","colorField","selected","shuffle","interactions","onGetG2Instance","tooltip","wordStyle","onWordCloudHover","onWordCloudClick"]),b=g.active,x=ge(g,["active"]);return a()({colorField:c,wordField:r,weightField:i,imageMask:t,random:u,interactions:f,wordStyle:x,tooltip:!(h&&!h.visible)&&h,onGetG2Instance:function(e){if(p&&p(e),s>=0){var t=e.chart,n=Object(he.getTheme)();b&&a()(n.geometries.point["hollow-circle"].active.style,b),t.on("afterrender",(function(){t.geometries.length&&t.geometries[0].elements.forEach((function(e,t){t===s&&e.setState("active",!0)}))})),t.on("plot:mousemove",(function(e){if(e.data){var t=e.data.data,n=t.datum,r=t.x,o=t.y,i=t.width,a=t.height;v&&v(n,{x:r,y:o,w:i,h:a},e.event)}else v&&v(void 0,void 0,e.event)})),t.on("plot:click",(function(e){if(e.data){var t=e.data.data,n=t.datum,r=t.x,o=t.y,i=t.width,a=t.height;m&&m(n,{x:r,y:o,w:i,h:a},e.event)}else m&&m(void 0,void 0,e.event)}))}}},y)})),me=n(135),ye=[{sourceKey:"colorField",targetKey:"seriesField",notice:"colorField \u662f g2@1.0\u7684\u5c5e\u6027\uff0c\u5373\u5c06\u5e9f\u5f03\uff0c\u8bf7\u4f7f\u7528seriesField\u66ff\u4ee3"},{sourceKey:"categoryField",targetKey:"xField",notice:"categoryField \u662f g2@1.0\u7684\u5c5e\u6027\uff0c\u5373\u5c06\u5e9f\u5f03\uff0c\u8bf7\u4f7f\u7528xField\u66ff\u4ee3"},{sourceKey:"radiusField",targetKey:"yField",notice:"radiusField \u662f g2@1.0\u7684\u5c5e\u6027\uff0c\u5373\u5c06\u5e9f\u5f03\uff0c\u8bf7\u4f7f\u7528yFeild\u66ff\u4ee3"}],be=Object(u.a)(me.Rose,"RoseChart",(function(e){var t=Object(m.c)(e);return Object(m.f)(ye,t),!1===C()(t,"tooltip.visible")&&v()(t,"tooltip",!1),!1===C()(t,"label.visible")&&v()(t,"label",!1),"inner"===C()(t,"label.type")&&(t.label.offset=-15,delete t.label.type),"outer"===C()(t,"label.type")&&delete t.label.type,t})),xe=n(638),we=Object(u.a)(xe.Funnel,"FunnelChart",(function(e){var t=Object(m.c)(e);return Object(m.f)([{sourceKey:"transpose",targetKey:"isTransposed",notice:"transpose \u5373\u5c06\u5e9f\u5f03 \u8bf7\u4f7f\u7528isTransposed\u66ff\u4ee3"}],t),t})),Se=[{sourceKey:"stackField",targetKey:"seriesField",notice:"stackField \u662f g2@1.0\u7684\u5c5e\u6027\uff0c\u5373\u5c06\u5e9f\u5f03\uff0c\u8bf7\u4f7f\u7528seriesField\u66ff\u4ee3"},{sourceKey:"categoryField",targetKey:"xField",notice:"categoryField \u662f g2@1.0\u7684\u5c5e\u6027\uff0c\u5373\u5c06\u5e9f\u5f03\uff0c\u8bf7\u4f7f\u7528xField\u66ff\u4ee3"},{sourceKey:"radiusField",targetKey:"yField",notice:"radiusField \u662f g2@1.0\u7684\u5c5e\u6027\uff0c\u5373\u5c06\u5e9f\u5f03\uff0c\u8bf7\u4f7f\u7528yFeild\u66ff\u4ee3"}],Oe=Object(u.a)(me.Rose,"StackedRoseChart",(function(e){T()(!1,"<StackedRoseChart /> \u5373\u5c06\u57285.0\u540e\u5e9f\u5f03\uff0c\u8bf7\u4f7f\u7528<RoseChart />\u66ff\u4ee3\uff0c");var t=Object(m.c)(e);return Object(m.f)(Se,t),!1===C()(t,"tooltip.visible")&&v()(t,"tooltip",!1),!1===C()(t,"label.visible")&&v()(t,"label",!1),"inner"===C()(t,"label.type")&&(t.label.offset=-15,delete t.label.type),"outer"===C()(t,"label.type")&&delete t.label.type,a()(a()({},t),{isStack:!0})})),_e=[{sourceKey:"groupField",targetKey:"seriesField",notice:"groupField \u662f g2@1.0\u7684\u5c5e\u6027\uff0c\u5373\u5c06\u5e9f\u5f03\uff0c\u8bf7\u4f7f\u7528seriesField\u66ff\u4ee3"},{sourceKey:"categoryField",targetKey:"xField",notice:"categoryField \u662f g2@1.0\u7684\u5c5e\u6027\uff0c\u5373\u5c06\u5e9f\u5f03\uff0c\u8bf7\u4f7f\u7528xField\u66ff\u4ee3"},{sourceKey:"radiusField",targetKey:"yField",notice:"radiusField \u662f g2@1.0\u7684\u5c5e\u6027\uff0c\u5373\u5c06\u5e9f\u5f03\uff0c\u8bf7\u4f7f\u7528yFeild\u66ff\u4ee3"}],Ce=Object(u.a)(me.Rose,"GroupedRoseChart",(function(e){T()(!1,"<GroupedRose /> \u5373\u5c06\u57285.0\u540e\u5e9f\u5f03\uff0c\u8bf7\u4f7f\u7528<Rose />\u3002");var t=Object(m.c)(e);return Object(m.f)(_e,t),"inner"===Object(y.get)(t,"label.type")&&(t.label.offset=-15,delete t.label.type),"outer"===Object(y.get)(t,"label.type")&&delete t.label.type,a()(a()({},t),{isGroup:!0})})),Ee=n(37),Pe=n.n(Ee),Me=n(61),ke=n.n(Me),Ae=n(639),Ie=[{sourceKey:"angleField",targetKey:"xField",notice:"angleField \u662f g2@1.0\u7684\u5c5e\u6027\uff0c\u5373\u5c06\u5e9f\u5f03\uff0c\u8bf7\u4f7f\u7528xField\u66ff\u4ee3"},{sourceKey:"radiusField",targetKey:"yField",notice:"radiusField \u662f g2@1.0\u7684\u5c5e\u6027\uff0c\u5373\u5c06\u5e9f\u5f03\uff0c\u8bf7\u4f7f\u7528yFeild\u66ff\u4ee3"},{sourceKey:"angleAxis",targetKey:"xAxis",notice:"angleAxis \u662f g2@1.0\u7684\u5c5e\u6027\uff0c\u5373\u5c06\u5e9f\u5f03\uff0c\u8bf7\u4f7f\u7528xAxis\u66ff\u4ee3"},{sourceKey:"radiusAxis",targetKey:"yAxis",notice:"radiusAxis \u662f g2@1.0\u7684\u5c5e\u6027\uff0c\u5373\u5c06\u5e9f\u5f03\uff0c\u8bf7\u4f7f\u7528yAxis\u66ff\u4ee3"}],Te=function(e){var t=C()(e,"line",{}),n=t.visible,r=t.size,o=t.style;v()(e,"lineStyle",a()(a()(a()({},o),{opacity:1,lineWidth:"number"===typeof r?r:2}),function(e){return Pe()(e)||e?{fillOpacity:1,strokeOpacity:1}:{fillOpacity:0,strokeOpacity:0}}(n)))},je=Object(u.a)(Ae.Radar,"RadarChart",(function(e){Object(m.f)(Ie,e);var t=Object(m.c)(e);return!1===C()(t,"area.visible")&&v()(t,"area",!1),!1===C()(t,"point.visible")&&v()(t,"point",!1),Te(t),(ke()(t.angleAxis)||ke()(t.radiusAxis))&&(t.angleAxis||(t.angleAxis={}),t.angleAxis.line=C()(t,"angleAxis.line",null),t.angleAxis.tickLine=C()(t,"angleAxis.tickLine",null)),!1===C()(t,"tooltip.visible")&&v()(t,"tooltip",!1),!1===C()(t,"label.visible")&&v()(t,"label",!1),"line"===C()(t,"yAxis.grid.line.type")&&Object(y.deepMix)(t,{xAxis:{line:null,tickLine:null}},t),t})),Le=n(640),Re=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},De=Object(u.a)(Le.Liquid,"LiquidChart",(function(e){var t=Object(m.c)(e),n=(t.range,t.min),r=void 0===n?0:n,o=t.max,i=void 0===o?1:o,l=t.value,c=Re(t,["range","min","max","value"]);if(!Object(y.isNil)(l)){c.percent=l/(i-r);var s=Object(y.get)(c,"statistic.content.formatter");null!==c.statistic&&!1!==c.statistic&&Object(y.deepMix)(c,{statistic:{content:{formatter:function(){return Object(y.isFunction)(s)&&s(l),l}}}})}Object(m.e)(c,"statistic"),Object(m.e)(c,"statistic.title"),Object(m.e)(c,"statistic.content");var u=c.percent;return a()({data:u},c)})),Ne=n(641),Fe=Object(u.a)(Ne.Histogram,"HistogramChart"),Be=Object(u.a)(le.Pie,"DonutChart",(function(e){var t=Object(m.c)(e);return Object(m.e)(t,"statistic"),Object(m.e)(t,"statistic.title"),Object(m.e)(t,"statistic.content"),a()({innerRadius:.8},t)})),ze=n(642),He=Object(u.a)(ze.Waterfall,"WaterfallChart"),We=n(235),Ve=Object(u.a)(We.Scatter,"ScatterChart",(function(e){var t=Object(m.c)(e);C()(t,"pointSize")&&v()(t,"size",C()(t,"pointSize")),Object(m.e)(t,"quadrant");var n=C()(t,"quadrant.label");if(!C()(t,"quadrant.labels")&&n){var r=n.text,o=n.style;if(r&&r.length&&o){var i=r.map((function(e){return{style:o,content:e}}));v()(t,"quadrant.labels",i)}}if(!C()(t,"regressionLine")){var a=C()(t,"trendline");Object(y.isObject)(a)&&!1===C()(a,"visible")?v()(t,"regressionLine",null):v()(t,"regressionLine",a)}return t})),Ge=Object(u.a)(We.Scatter,"BubbleChart",(function(e){var t=Object(m.c)(e);return Pe()(C()(t,"pointSize"))||v()(t,"size",C()(t,"pointSize")),T()(!1,"BubbleChart \u56fe\u8868\u7c7b\u578b\u547d\u540d\u5df2\u53d8\u66f4\u4e3aScatter\uff0c\u8bf7\u4fee\u6539\u4e3a<ScatterChart />"),t})),Ye=n(643),Ue=n(23),Xe=n.n(Ue),qe=Object(u.a)(Ye.Bullet,"BulletChart",(function(e){var t=Object(m.c)(e);return Pe()(C()(e,"measureSize"))||(T()(!1,"measureSize\u5df2\u5e9f\u5f03\uff0c\u8bf7\u4f7f\u7528size.measure\u66ff\u4ee3"),v()(t,"size.measure",C()(e,"measureSize"))),Pe()(C()(e,"rangeSize"))||(T()(!1,"rangeSize\u5df2\u5e9f\u5f03\uff0c\u8bf7\u4f7f\u7528size.range\u66ff\u4ee3"),v()(t,"size.range",C()(e,"rangeSize"))),Pe()(C()(e,"markerSize"))||(T()(!1,"markerSizee\u5df2\u5e9f\u5f03\uff0c\u8bf7\u4f7f\u7528size.target\u66ff\u4ee3"),v()(t,"size.target",C()(e,"markerSize"))),Pe()(C()(e,"measureColors"))||(T()(!1,"measureColors\u5df2\u5e9f\u5f03\uff0c\u8bf7\u4f7f\u7528color.measure\u66ff\u4ee3"),v()(t,"color.measure",C()(e,"measureColors"))),Pe()(C()(e,"rangeColors"))||(T()(!1,"rangeColors\u5df2\u5e9f\u5f03\uff0c\u8bf7\u4f7f\u7528color.range\u66ff\u4ee3"),v()(t,"color.range",C()(e,"rangeColors"))),Pe()(C()(e,"markerColors"))||(T()(!1,"markerColors\u5df2\u5e9f\u5f03\uff0c\u8bf7\u4f7f\u7528color.target\u66ff\u4ee3"),v()(t,"color.target",C()(e,"markerColors"))),Pe()(C()(e,"markerStyle"))||(T()(!1,"markerStyle\u5df2\u5e9f\u5f03\uff0c\u8bf7\u4f7f\u7528bulletStyle.target\u66ff\u4ee3"),v()(t,"bulletStyle.target",C()(e,"markerStyle"))),Pe()(C()(e,"xAxis.line"))&&v()(t,"xAxis.line",!1),Pe()(C()(e,"yAxis"))&&v()(t,"yAxis",!1),Pe()(C()(e,"measureField"))&&v()(t,"measureField","measures"),Pe()(C()(e,"rangeField"))&&v()(t,"rangeField","ranges"),Pe()(C()(e,"targetField"))&&v()(t,"targetField","target"),T()(!Pe()(C()(e,"rangeMax")),"\u8be5\u5c5e\u6027\u5df2\u5e9f\u5f03\uff0c\u8bf7\u5728\u6570\u636e\u4e2d\u914d\u7f6erange\uff0c\u5e76\u914d\u7f6erangeField"),Xe()(C()(e,"data"))&&v()(t,"data",e.data.map((function(t){var n={};return Pe()(C()(e,"rangeMax"))||(n={ranges:[C()(e,"rangeMax")]}),Xe()(t.targets)?a()(a()(a()({},n),{target:t.targets[0]}),t):a()(a()({},n),t)}))),t}));n(644).G2.registerShape("polygon","boundary-polygon",{draw:function(e,t){var n=t.addGroup(),r={stroke:"#fff",lineWidth:1,fill:e.color,paht:[]},o=e.points,i=[["M",o[0].x,o[0].y],["L",o[1].x,o[1].y],["L",o[2].x,o[2].y],["L",o[3].x,o[3].y],["Z"]];if(r.path=this.parsePath(i),n.addShape("path",{attrs:r}),Object(y.get)(e,"data.lastWeek")){var a=[["M",o[2].x,o[2].y],["L",o[3].x,o[3].y]];n.addShape("path",{attrs:{path:this.parsePath(a),lineWidth:4,stroke:"#404040"}}),Object(y.get)(e,"data.lastDay")&&n.addShape("path",{attrs:{path:this.parsePath([["M",o[1].x,o[1].y],["L",o[2].x,o[2].y]]),lineWidth:4,stroke:"#404040"}})}return n}});var Ke=[{sourceKey:"colors",targetKey:"color",notice:"colors \u662f g2Plot@1.0 \u7684\u5c5e\u6027\uff0c\u8bf7\u4f7f\u7528 color \u5c5e\u6027\u66ff\u4ee3"},{sourceKey:"valueField",targetKey:"colorField",notice:"valueField \u662f g2@1.0\u7684\u5c5e\u6027\uff0c\u5373\u5c06\u5e9f\u5f03\uff0c\u8bf7\u4f7f\u7528colorField\u66ff\u4ee3"},{sourceKey:"radiusField",targetKey:"yField",notice:"radiusField \u662f g2@1.0\u7684\u5c5e\u6027\uff0c\u5373\u5c06\u5e9f\u5f03\uff0c\u8bf7\u4f7f\u7528yFeild\u66ff\u4ee3"}],$e=Object(u.a)(se.Heatmap,"CalendarChart",(function(e){var t=Object(m.c)(e);return Object(m.f)(Ke,t),Object(y.isNil)(Object(y.get)(e,"shape"))&&Object(y.set)(t,"shape","boundary-polygon"),Object(y.isNil)(Object(y.get)(t,"xField"))&&Object(y.isNil)(Object(y.get)(t,"yField"))&&(Object(y.set)(t,"xField","week"),Object(y.set)(t,"meta.week",a()({type:"cat"},Object(y.get)(t,"meta.week",{}))),Object(y.set)(t,"yField","day"),Object(y.set)(t,"meta.day",{type:"cat",values:["Sun.","Mon.","Tues.","Wed.","Thur.","Fri.","Sat."]}),Object(y.set)(t,"reflect","y"),Object(y.set)(t,"xAxis",a()({tickLine:null,line:null,title:null,label:{offset:20,style:{fontSize:12,fill:"#bbb",textBaseline:"top"},formatter:function(e){return"2"==e?"MAY":"6"===e?"JUN":"10"==e?"JUL":"14"===e?"AUG":"18"==e?"SEP":"24"===e?"OCT":""}}},Object(y.get)(t,"xAxis",{})))),t})),Qe=n(645),Ze=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},Je=Object(u.a)(Qe.Gauge,"GaugeChart",(function(e){var t=Object(m.c)(e),n=t.range,r=t.min,o=void 0===r?0:r,i=t.max,l=void 0===i?1:i,c=t.value,s=Ze(t,["range","min","max","value"]);Object(y.isArray)(n)?(T()(!1,"range \u5e94\u5f53\u662f\u4e2a\u5bf9\u8c61\uff0c\u8bf7\u4fee\u6539\u914d\u7f6e\u3002"),s.range={ticks:n.map((function(e){return(e-o)/(l-o)})),color:Object(he.getTheme)().colors10}):s.range=n||{};var u=Object(y.get)(s,"color");if(Object(y.isNil)(u)||(T()(!1,"\u8bf7\u901a\u8fc7\u914d\u7f6e\u5c5e\u6027range.color\u6765\u914d\u7f6e\u989c\u8272"),s.range.color=u),Object(y.isNil)(Object(y.get)(s,"indicator"))&&Object(y.set)(s,"indicator",{pointer:{style:{stroke:"#D0D0D0"}},pin:{style:{stroke:"#D0D0D0"}}}),Object(y.get)(s,"statistic.visible")&&Object(y.set)(s,"statistic.title",Object(y.get)(s,"statistic")),!Object(y.isNil)(o)&&!Object(y.isNil)(l)&&!Object(y.isNil)(c)){s.percent=(c-o)/(l-o);var d=Object(y.get)(s,"axis.label.formatter");Object(y.set)(s,"axis",{label:{formatter:function(e){var t=e*(l-o)+o;return Object(y.isFunction)(d)?d(t):t}}})}T()(!(Object(y.get)(s,"min")||Object(y.get)(s,"max")),"\u5c5e\u6027 `max` \u548c `min` \u4e0d\u63a8\u8350\u4f7f\u7528\uff0c \u8bf7\u76f4\u63a5\u914d\u7f6e\u5c5e\u6027range.ticks"),T()((Object(y.get)(s,"rangeSize")||Object(y.get)(s,"rangeStyle"),!1),"\u4e0d\u518d\u652f\u6301rangeSize\u3001rangeStyle\u3001rangeBackgroundStyle\u5c5e\u6027, \u8bf7\u67e5\u770b\u65b0\u7248\u4eea\u8868\u76d8\u914d\u7f6e\u6587\u6863\u3002");var f=Object(y.isNil)(s.percent)?c:s.percent;return a()({data:f},s)})),et=n(646),tt=Object(u.a)(et.DualAxes,"DualAxesChart"),nt=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},rt=a()(a()({},o),r),ot=function(e){var t=e.chartName,n=(e.adapter||function(t){return{plotType:e.plotType||"Line",options:t}})(nt(e,["chartName","adapter"]))||{},r=n.plotType,o=n.options,i=rt[r];return i.displayName=t,i?c.a.createElement(i,a()({},o)):c.a.createElement("div",{style:{color:"#aaa"}},"\u4e0d\u5b58\u5728plotName=\uff1a","".concat(r),"\u7684Plot\u7ec4\u4ef6")};ot.registerPlot=function(e,t){T()(!rt[e],"%s\u7684plot\u5df2\u5b58\u5728",e),rt[e]=t};var it=ot},function(e,t,n){"use strict";n.r(t),n.d(t,"Canvas",(function(){return L})),n.d(t,"Group",(function(){return Q})),n.d(t,"Circle",(function(){return ce})),n.d(t,"Ellipse",(function(){return de})),n.d(t,"Image",(function(){return he})),n.d(t,"Line",(function(){return me})),n.d(t,"Marker",(function(){return xe})),n.d(t,"Path",(function(){return Oe})),n.d(t,"Polygon",(function(){return Ee})),n.d(t,"Polyline",(function(){return ke})),n.d(t,"Rect",(function(){return Te})),n.d(t,"Text",(function(){return Re})),n.d(t,"render",(function(){return De}));var r=n(623),o=n.n(r),i=n(3),a=n.n(i),l=n(29),c={},s={getRootHostContext:function(){},getChildHostContext:function(){},createInstance:function(){},finalizeInitialChildren:function(){return!1},hideTextInstance:function(){},getPublicInstance:function(e){return e},hideInstance:function(){},unhideInstance:function(){},createTextInstance:function(){},prepareUpdate:function(){return c},shouldDeprioritizeSubtree:function(){return!1},appendInitialChild:function(){},appendChildToContainer:function(){},removeChildFromContainer:function(){},prepareForCommit:function(){},resetAfterCommit:function(){},shouldSetTextContent:function(){return!1},supportsMutation:!0,appendChild:function(){}},u=o()(s),d={render:function(e,t){t.clear&&t.clear();var n=u.createContainer(t,0,!1);return u.updateContainer(function(e,t){return a.a.createElement(l.a.Provider,{value:t},a.a.createElement(a.a.Fragment,null,e))}(e,t),n,null,(function(){})),u.getPublicRootInstance(n)}},f=n(12),p=n.n(f),h=n(13),g=n.n(h),v=n(5),m=n.n(v),y=n(4),b=n.n(y),x=n(9),w=n.n(x),S=n(10),O=n.n(S),_=n(206),C=n(324),E=n(131),P=n(67),M=a.a.createContext(null);M.displayName="CanvasContext";var k=M;function A(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m()(e);if(t){var o=m()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return g()(this,n)}}var 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},T=function(){function e(){w()(this,e)}return O()(e,[{key:"createInstance",value:function(e){e.children;var t=e.renderer,n=I(e,["children","renderer"]);this.instance="svg"===t?new C.Canvas(b()({},n)):new _.Canvas(b()({},n))}},{key:"update",value:function(e){this.instance||this.createInstance(e)}},{key:"draw",value:function(){this.instance&&this.instance.draw()}},{key:"destory",value:function(){this.instance&&(this.instance.remove(),this.instance=null)}}]),e}(),j=function(e){p()(n,e);var t=A(n);function n(e){var r;return w()(this,n),(r=t.call(this,e)).helper=new T,r}return O()(n,[{key:"componentDidMount",value:function(){this.helper.draw()}},{key:"componentWillUnmount",value:function(){this.helper.destory()}},{key:"getInstance",value:function(){return this.helper.instance}},{key:"render",value:function(){return this.helper.update(this.props),a.a.createElement(P.b,b()({},this.props.ErrorBoundaryProps),a.a.createElement(k.Provider,{value:this.helper},a.a.createElement(l.a.Provider,{value:this.helper.instance},a.a.createElement(a.a.Fragment,null,this.props.children))))}}]),n}(a.a.Component),L=Object(E.a)(j),R=n(45),D=n.n(R),N=n(77),F=n.n(N),B=n(28),z=n.n(B),H=n(229),W=n.n(H),V=n(23),G=n.n(V),Y=n(92),U=n.n(Y),X={onClick:"click",onMousedown:"mousedown",onMouseup:"mouseup",onDblclick:"dblclick",onMouseout:"mouseout",onMouseover:"mouseover",onMousemove:"mousemove",onMouseleave:"mouseleave",onMouseenter:"mouseenter",onTouchstart:"touchstart",onTouchmove:"touchmove",onTouchend:"touchend",onDragenter:"dragenter",onDragover:"dragover",onDragleave:"dragleave",onDrop:"drop",onContextmenu:"contextmenu"};function q(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m()(e);if(t){var o=m()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return g()(this,n)}}var K=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},$=function(e){p()(n,e);var t=q(n);function n(e){var r;w()(this,n),(r=t.call(this,e)).state={isReady:!1},r.handleRender=W()((function(){if(r.instance)r.forceUpdate();else{var e=r.props,t=e.group,n=e.zIndex,o=e.name;r.instance=t.chart.canvas.addGroup({zIndex:n,name:o}),t.chart.canvas.sort(),r.setState({isReady:!0})}}),300),r.configGroup=function(e){var t,n=e.rotate,o=e.animate,i=e.rotateAtPoint,a=e.scale,l=e.translate,c=e.move;if(n&&r.instance.rotate(n),G()(i)&&(t=r.instance).rotateAtPoint.apply(t,D()(i)),a&&r.instance.rotate(a),l&&r.instance.translate(l[0],l[1]),c&&r.instance.move(c.x,c.y),o){var s=o.toAttrs,u=K(o,["toAttrs"]);r.instance.animate(s,u)}},r.bindEvents=function(){r.instance.off(),F()(X,(function(e,t){z()(r.props[t])&&r.instance.on(e,r.props[t])}))};var o=e.group,i=e.zIndex,a=e.name;return r.id=U()("group"),o.isChartCanvas?o.chart.on("afterrender",r.handleRender):(r.instance=o.addGroup({zIndex:i,name:a}),r.configGroup(e)),r}return O()(n,[{key:"componentWillUnmount",value:function(){var e=this.props.group;e.isChartCanvas&&e.chart.off("afterrender",this.handleRender),this.instance&&this.instance.remove(!0)}},{key:"getInstance",value:function(){return this.instance}},{key:"render",value:function(){var e=this.props.group;return this.instance&&(this.instance.clear(),this.bindEvents()),e.isChartCanvas&&this.state.isReady||!e.isChartCanvas?a.a.createElement(l.a.Provider,{value:this.instance},a.a.createElement(a.a.Fragment,{key:U()(this.id)},this.props.children)):a.a.createElement(a.a.Fragment,null)}}]),n}(a.a.Component);$.defaultProps={zIndex:3};var Q=Object(l.b)($),Z=n(78),J=n(93),ee=n(75),te=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},ne=function(){function e(t){w()(this,e),this.shape=t}return O()(e,[{key:"createInstance",value:function(e){this.instance=e.group.addShape(this.shape,Object(Z.a)(e,["group","ctx"]))}},{key:"destroy",value:function(){this.instance&&(this.instance.remove(!0),this.instance=null)}},{key:"update",value:function(e){var t=this,n=Object(Z.a)(e,D()(J.a));this.destroy(),this.createInstance(n);var r=n.attrs,o=n.animate,i=n.isClipShape,a=n.visible,l=n.matrix,c=te(n,["attrs","animate","isClipShape","visible","matrix"]);if(this.instance.attr(r),o){var s=o.toAttrs,u=te(o,["toAttrs"]);this.instance.animate(s,u)}i&&this.instance.isClipShape(),!1===a&&this.instance.hide(),l&&this.instance.setMatrix(l),F()(X,(function(e,n){z()(c[n])&&t.instance.on(e,c[n])})),this.config=Object(ee.a)(n)}}]),e}();function re(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m()(e);if(t){var o=m()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return g()(this,n)}}var oe=function(e){p()(n,e);var t=re(n);function n(){return w()(this,n),t.apply(this,arguments)}return O()(n,[{key:"componentWillUnmount",value:function(){this.helper.destroy()}},{key:"getInstance",value:function(){return this.helper.instance}},{key:"render",value:function(){return this.helper.update(this.props),null}}]),n}(a.a.Component),ie=oe;function ae(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m()(e);if(t){var o=m()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return g()(this,n)}}var le=function(e){p()(n,e);var t=ae(n);function n(e){var r;return w()(this,n),(r=t.call(this,e)).helper=new ne("circle"),r}return O()(n)}(ie),ce=Object(l.b)(le);function se(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m()(e);if(t){var o=m()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return g()(this,n)}}var ue=function(e){p()(n,e);var t=se(n);function n(e){var r;return w()(this,n),(r=t.call(this,e)).helper=new ne("ellipse"),r}return O()(n)}(ie),de=Object(l.b)(ue);function fe(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m()(e);if(t){var o=m()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return g()(this,n)}}var pe=function(e){p()(n,e);var t=fe(n);function n(e){var r;return w()(this,n),(r=t.call(this,e)).helper=new ne("image"),r}return O()(n)}(ie),he=Object(l.b)(pe);function ge(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m()(e);if(t){var o=m()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return g()(this,n)}}var ve=function(e){p()(n,e);var t=ge(n);function n(e){var r;return w()(this,n),(r=t.call(this,e)).helper=new ne("line"),r}return O()(n)}(ie),me=Object(l.b)(ve);function ye(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m()(e);if(t){var o=m()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return g()(this,n)}}var be=function(e){p()(n,e);var t=ye(n);function n(e){var r;return w()(this,n),(r=t.call(this,e)).helper=new ne("marker"),r}return O()(n)}(ie),xe=Object(l.b)(be);function we(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m()(e);if(t){var o=m()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return g()(this,n)}}var Se=function(e){p()(n,e);var t=we(n);function n(e){var r;return w()(this,n),(r=t.call(this,e)).helper=new ne("path"),r}return O()(n)}(ie),Oe=Object(l.b)(Se);function _e(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m()(e);if(t){var o=m()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return g()(this,n)}}var Ce=function(e){p()(n,e);var t=_e(n);function n(e){var r;return w()(this,n),(r=t.call(this,e)).helper=new ne("polygon"),r}return O()(n)}(ie),Ee=Object(l.b)(Ce);function Pe(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m()(e);if(t){var o=m()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return g()(this,n)}}var Me=function(e){p()(n,e);var t=Pe(n);function n(e){var r;return w()(this,n),(r=t.call(this,e)).helper=new ne("polyline"),r}return O()(n)}(ie),ke=Object(l.b)(Me);function Ae(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m()(e);if(t){var o=m()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return g()(this,n)}}var Ie=function(e){p()(n,e);var t=Ae(n);function n(e){var r;return w()(this,n),(r=t.call(this,e)).helper=new ne("rect"),r}return O()(n)}(ie),Te=Object(l.b)(Ie);function je(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m()(e);if(t){var o=m()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return g()(this,n)}}var Le=function(e){p()(n,e);var t=je(n);function n(e){var r;return w()(this,n),(r=t.call(this,e)).helper=new ne("text"),r}return O()(n)}(ie),Re=Object(l.b)(Le),De=d.render},function(e,t,n){"use strict";n.r(t),n.d(t,"Base",(function(){return r.a})),n.d(t,"Arc",(function(){return o.a})),n.d(t,"DataMarker",(function(){return i.a})),n.d(t,"DataRegion",(function(){return a.a})),n.d(t,"RegionFilter",(function(){return y})),n.d(t,"Html",(function(){return x})),n.d(t,"ReactElement",(function(){return S})),n.d(t,"Image",(function(){return O.a})),n.d(t,"Line",(function(){return _.a})),n.d(t,"Region",(function(){return C.a})),n.d(t,"Text",(function(){return E.a}));var r=n(35),o=n(208),i=n(209),a=n(210),l=n(10),c=n.n(l),s=n(9),u=n.n(s),d=n(12),f=n.n(d),p=n(13),h=n.n(p),g=n(5),v=n.n(g);function m(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=v()(e);if(t){var o=v()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h()(this,n)}}var y=function(e){f()(n,e);var t=m(n);function n(){var e;return u()(this,n),(e=t.apply(this,arguments)).annotationType="regionFilter",e}return c()(n)}(r.a);function b(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=v()(e);if(t){var o=v()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h()(this,n)}}var x=function(e){f()(n,e);var t=b(n);function n(){var e;return u()(this,n),(e=t.apply(this,arguments)).annotationType="html",e}return c()(n)}(r.a);function w(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=v()(e);if(t){var o=v()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h()(this,n)}}var S=function(e){f()(n,e);var t=w(n);function n(){var e;return u()(this,n),(e=t.apply(this,arguments)).annotationType="ReactElement",e}return c()(n)}(r.a),O=n(211),_=n(212),C=n(213),E=n(214)},function(e,t,n){"use strict";n.d(t,"a",(function(){return ee}));var r=n(4),o=n.n(r),i=n(3),a=n.n(i),l=n(28),c=n.n(l),s=n(205),u=n.n(s),d=n(92),f=n.n(d),p=n(23),h=n.n(p),g=n(50),v=n.n(g),m=n(8),y=n(40),b=n(9),x=n.n(b),w=n(10),S=n.n(w),O=n(12),_=n.n(O),C=n(13),E=n.n(C),P=n(5),M=n.n(P),k=n(222),A=n.n(k),I=n(18),T=n.n(I),j=n(627),L=n.n(j),R=n(47);function D(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=M()(e);if(t){var o=M()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return E()(this,n)}}var 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},F="g2-tooltip",B=function(e){_()(n,e);var t=D(n);function n(){var e;return x()(this,n),(e=t.apply(this,arguments)).renderInnder=function(t){var n=t.data,r=n.title,o=n.items,i=n.x,a=n.y;A.a.render(e.props.children(r,o,i,a,t),e.getElement())},e}return S()(n,[{key:"componentWillUnmount",value:function(){var e=this.props.chartView;this.element&&this.element.remove(),e.getController("tooltip").clear(),e.off("tooltip:change",this.renderInnder)}},{key:"getElement",value:function(){return this.element||(this.element=document.createElement("div"),this.element.classList.add("bizcharts-tooltip"),this.element.classList.add("g2-tooltip"),this.element.style.width="auto",this.element.style.height="auto"),this.element}},{key:"overwriteCfg",value:function(){var e=this,t=this.props,n=t.chartView,r=(t.children,t.domStyles),i=void 0===r?{}:r,a=N(t,["chartView","children","domStyles"]);n.tooltip(o()(o()({inPlot:!1,domStyles:i},a),{customContent:function(){return e.getElement()}})),n.on("tooltip:change",this.renderInnder);var l=T()(Object(m.getTheme)(),["components","tooltip","domStyles",F],{});L()(this.element,o()(o()({},l),i[F]))}},{key:"render",value:function(){return this.overwriteCfg(),null}}]),n}(a.a.Component),z=Object(R.b)(B),H=n(166),W=n(345),V=n.n(W),G=n(346),Y=n.n(G),U=n(126),X=n.n(U),q=n(347),K=n.n(q);Object(m.registerAction)("tooltip",X.a),Object(m.registerAction)("sibling-tooltip",Y.a),Object(m.registerAction)("active-region",V.a),Object(m.registerAction)("ellipsis-text",K.a),Object(m.registerInteraction)("tooltip",{start:[{trigger:"plot:mousemove",action:"tooltip:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"plot:touchmove",action:"tooltip:show",throttle:{wait:50,leading:!0,trailing:!1}}],end:[{trigger:"plot:mouseleave",action:"tooltip:hide"},{trigger:"plot:leave",action:"tooltip:hide"},{trigger:"plot:touchend",action:"tooltip:hide"}]}),Object(m.registerInteraction)("ellipsis-text",{start:[{trigger:"legend-item-name:mousemove",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"legend-item-name:touchstart",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"axis-label:mousemove",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"axis-label:touchstart",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}}],end:[{trigger:"legend-item-name:mouseleave",action:"ellipsis-text:hide"},{trigger:"legend-item-name:touchend",action:"ellipsis-text:hide"},{trigger:"axis-label:mouseleave",action:"ellipsis-text:hide"},{trigger:"axis-label:touchend",action:"ellipsis-text:hide"}]}),Object(m.registerInteraction)("tooltip-click",{start:[{trigger:"plot:click",action:"tooltip:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"plot:touchstart",action:"tooltip:show",throttle:{wait:50,leading:!0,trailing:!1}}],end:[{trigger:"plot:leave",action:"tooltip:hide"}]});var $=function(e){e.view.isTooltipLocked()?e.view.unlockTooltip():e.view.lockTooltip()};Object(m.registerInteraction)("tooltip-lock",{start:[{trigger:"plot:click",action:$},{trigger:"plot:touchstart",action:$},{trigger:"plot:touchmove",action:"tooltip:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"plot:mousemove",action:"tooltip:show"}],end:[{trigger:"plot:click",action:"tooltip:hide"},{trigger:"plot:leave",action:"tooltip:hide"},{trigger:"plot:touchend",action:"tooltip:hide"}]}),Object(m.registerInteraction)("sibling-tooltip",{start:[{trigger:"plot:mousemove",action:"sibling-tooltip:show"}],end:[{trigger:"plot:mouseleave",action:"sibling-tooltip:hide"}]});var Q=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};Object(m.registerComponentController)("tooltip",u.a);var Z=function(e){var t=e.visible,n=void 0===t||t,r=e.children;return n&&c()(r)},J=function(e){var t=e.visible,n=void 0===t||t,r=(e.children,Q(e,["visible","children"])),i=Object(y.a)();return i.getController("tooltip").clear(),!0===n?i.tooltip(o()({customContent:null,showMarkers:!1},r)):i.tooltip(!1),null};function ee(e){var t=e.children,n=e.triggerOn,r=e.onShow,l=e.onChange,s=e.onHide,u=e.lock,d=e.linkage,p=Q(e,["children","triggerOn","onShow","onChange","onHide","lock","linkage"]),g=Object(y.a)();g.removeInteraction("tooltip"),g.removeInteraction("tooltip-click"),g.removeInteraction("tooltip-lock"),"click"===n?g.interaction("tooltip-click"):u?g.interaction("tooltip-lock"):g.interaction("tooltip");var m=Object(i.useRef)(f()("tooltip"));Object(i.useEffect)((function(){h()(d)?Object(H.b)(d[0],m.current,g,p.shared,d[1]):v()(d)&&Object(H.b)(d,m.current,g,p.shared)}),[d,g]);var b=Object(i.useCallback)((function(e){c()(r)&&r(e,g)}),[]),x=Object(i.useCallback)((function(e){c()(l)&&l(e,g)}),[]),w=Object(i.useCallback)((function(e){c()(s)&&s(e,g)}),[]);return g.off("tooltip:show",b),g.on("tooltip:show",b),g.off("tooltip:change",x),g.on("tooltip:change",x),g.off("tooltip:hide",w),g.on("tooltip:hide",w),Z(e)?a.a.createElement(z,o()({},p),t):a.a.createElement(J,o()({},e))}ee.defaultProps={showMarkers:!1,triggerOn:"hover"}},function(e,t,n){"use strict";var r=n(4),o=n.n(r),i=n(9),a=n.n(i),l=n(10),c=n.n(l),s=n(12),u=n.n(s),d=n(13),f=n.n(d),p=n(5),h=n.n(p),g=n(3),v=n.n(g),m=n(229),y=n.n(m),b=n(160),x=n(232),w=n(67),S=n(131),O=n(76),_=n(47),C=n(29),E=n(45),P=n.n(E),M=n(92),k=n.n(M),A=n(55),I=n.n(A),T=n(28),j=n.n(T),L=n(23),R=n.n(L),D=n(626),N=n.n(D),F=n(8),B=n(17),z=n.n(B),H=n(82),W=n(78),V=n(75),G=n(93),Y=n(21),U=n(125),X=n.n(U),q=n(136);function K(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=h()(e);if(t){var o=h()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f()(this,n)}}var $=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},Q=function(e){u()(n,e);var t=K(n);function n(){var e;return a()(this,n),(e=t.apply(this,arguments)).config={},e}return c()(n,[{key:"createInstance",value:function(e){this.chart=new F.Chart(o()({},e)),this.key=k()("bx-chart"),this.chart.emit("initialed"),this.isNewInstance=!0,this.extendGroup={isChartCanvas:!0,chart:this.chart}}},{key:"render",value:function(){if(this.chart)try{this.isNewInstance?(this.chart.render(),this.onGetG2Instance(),this.chart.unbindAutoFit(),this.isNewInstance=!1):this.chart.forceReRender?this.chart.render():this.chart.render(!0),this.chart.emit("processElemens")}catch(e){this.emit("renderError",e),this.destory(),console&&console.error(null===e||void 0===e?void 0:e.stack)}}},{key:"onGetG2Instance",value:function(){j()(this.config.onGetG2Instance)&&this.config.onGetG2Instance(this.chart)}},{key:"shouldReCreateInstance",value:function(e){if(!this.chart||e.forceUpdate)return!0;var t=this.config,n=t.data,r=$(t,["data"]),o=e.data,i=$(e,["data"]);if(R()(this.config.data)&&0===n.length&&R()(o)&&0!==o.length)return!0;var a=[].concat(P()(G.a),["scale","width","height","container","_container","_interactions","placeholder",/^on/,/^\_on/]);return!N()(Object(W.a)(r,P()(a)),Object(W.a)(i,P()(a)))}},{key:"update",value:function(e){var t=this,n=Object(V.a)(this.adapterOptions(e));this.shouldReCreateInstance(n)&&(this.destory(),this.createInstance(n)),n.pure&&(this.chart.axis(!1),this.chart.tooltip(!1),this.chart.legend(!1),this.chart.isPure=!0);var r=Object(q.a)(this.config),o=Object(q.a)(n),i=n.data,a=n.interactions,l=$(n,["data","interactions"]),c=this.config,s=c.data,u=c.interactions,d=void 0===u?[]:u;if(this.isNewInstance||r.forEach((function(e){t.chart.off(e[1],t.config["_".concat(e[0])])})),o.forEach((function(e){n["_".concat(e[0])]=function(r){n[e[0]](r,t.chart)},t.chart.on(e[1],n["_".concat(e[0])])})),R()(s)&&s.length){var f=!0;if(n.notCompareData&&(f=!1),s.length!==i.length?f=!1:s.forEach((function(e,t){Object(H.a)(e,i[t])||(f=!1)})),!f){this.chart.isDataChanged=!0,this.chart.emit(Y.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA),this.chart.data(i);for(var p=this.chart.views,h=0,g=p.length;h<g;h++)p[h].changeData(i);this.chart.emit(Y.VIEW_LIFE_CIRCLE.AFTER_CHANGE_DATA)}}else this.chart.data(i);this.chart.scale(l.scale),!1===l.animate?this.chart.animate(!1):this.chart.animate(!0),d.forEach((function(e){t.chart.removeInteraction(e)})),a.forEach((function(e){t.chart.interaction(e)})),I()(this.config.filter,(function(e,n){R()(e)?t.chart.filter(e[0],null):t.chart.filter(n,null)})),I()(n.filter,(function(e,n){R()(e)?t.chart.filter(e[0],e[1]):t.chart.filter(n,e)})),this.chart.theme(n.theme),this.config=n}},{key:"adapterOptions",value:function(e){var t=e.data,n=$(e,["data"]),r=Object(W.a)(n,P()(G.a));return r.forceFit&&z()(!1,"forceFit \u5df2\u5e9f\u5f03\uff0c\u8bf7\u4f7f\u7528`autoFit`\u66ff\u4ee3"),r.data=function(e){return e&&e.rows?e.rows:e}(t)||[],r}},{key:"destory",value:function(){if(this.chart){this.extendGroup=null;var e=this.chart;e.destroy(),e=null,this.chart=null,this.config={}}}}]),n}(X.a),Z=Q,J=n(0);function ee(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=h()(e);if(t){var o=h()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f()(this,n)}}var te=function(e){u()(n,e);var t=ee(n);function n(e){var r;return a()(this,n),(r=t.call(this,e)).isRootView=!0,r.resize=y()((function(){var e=r.chartHelper.chart;if(r.props.autoFit&&r.chartHelper.chart){var t=Object(b.getChartSize)(r.props.container,r.props.autoFit,e.width,e.height),n=t.width,o=t.height;e.width===n&&e.height===o||(e.changeSize(n,o),e.emit("resize"))}}),300),r.resizeObserver=new x.ResizeObserver(r.resize),r.resizeObserver.observe(e.container),r.chartHelper=new Z,r}return c()(n,[{key:"componentDidMount",value:function(){this.isError?this.chartHelper.destory():this.chartHelper.render()}},{key:"componentDidUpdate",value:function(){if(this.isError)this.chartHelper.destory();else{var e=this.props,t=e.width,n=e.height;if(!e.autoFit&&this.chartHelper.chart)if(t>=0&&t!==this.chartHelper.chart.width||n>=0&&n!==this.chartHelper.chart.height){var r=t||this.chartHelper.chart.width,o=n||this.chartHelper.chart.height;this.chartHelper.chart.changeSize(r,o),this.chartHelper.chart.emit("resize")}else this.chartHelper.render();else this.chartHelper.render()}}},{key:"componentWillUnmount",value:function(){this.chartHelper.destory(),this.resizeObserver.unobserve(this.props.container)}},{key:"getG2Instance",value:function(){return this.chartHelper.chart}},{key:"render",value:function(){var e=this,t=this.props,n=t.placeholder,r=t.data,i=t.errorContent,a=this.props.ErrorBoundaryProps;if((void 0===r||0===r.length)&&n){this.chartHelper.destory();var l=!0===n?v.a.createElement("div",{style:{position:"relative",top:"48%",color:"#aaa",textAlign:"center"}},"\u6682\u65e0\u6570\u636e"):n;return v.a.createElement(w.b,o()({},a),l)}return this.chartHelper.update(this.props),a=i?o()({fallback:i},a):{FallbackComponent:w.a},v.a.createElement(w.b,o()({},a,{key:this.chartHelper.key,onError:function(){var t;e.isError=!0,Object(J.isFunction)(a.onError)&&(t=a).onError.apply(t,arguments)},onReset:function(){var t;e.isError=!1,Object(J.isFunction)(a.onReset)&&(t=a).onReset.apply(t,arguments)},resetKeys:[this.chartHelper.key],fallback:i}),v.a.createElement(O.a.Provider,{value:this.chartHelper},v.a.createElement(_.a.Provider,{value:this.chartHelper.chart},v.a.createElement(C.a.Provider,{value:this.chartHelper.extendGroup},this.props.children))))}}]),n}(v.a.Component);te.defaultProps={placeholder:!1,visible:!0,interactions:[],filter:[]},t.a=Object(S.a)(te)},function(e,t,n){"use strict";var r=n(9),o=n.n(r),i=n(10),a=n.n(i),l=n(12),c=n.n(l),s=n(13),u=n.n(s),d=n(5),f=n.n(d),p=n(3),h=n.n(p),g=n(76),v=n(47),m=n(4),y=n.n(m),b=n(23),x=n.n(b),w=n(168),S=n.n(w),O=n(55),_=n.n(O),C=n(17),E=n.n(C),P=n(82),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},k=function(){function e(t){o()(this,e),this.config={},this.isRootView=!1,this.chart=t}return a()(e,[{key:"creatViewInstance",value:function(e){this.view=this.chart.createView(this.processOptions(e)),this.view.rootChart=this.chart}},{key:"getView",value:function(){return this.view}},{key:"update",value:function(e){var t=this,n=this.config.data,r=e.scale,o=e.animate,i=e.filter,a=e.visible,l=e.data,c=void 0===l?[]:l;if(c.rows&&(E()(!c.rows,"bizcharts@4\u4e0d\u652f\u6301 dataset\u6570\u636e\u683c\u5f0f\uff0c\u8bf7\u4f7f\u7528data={dv.rows}"),c=c.rows),(!this.view||x()(n)&&0===n.length)&&(this.destroy(),this.creatViewInstance(e)),x()(n)){this.view.changeData(c);var s=!0;n.length!==c.length?s=!1:n.forEach((function(e,t){Object(P.a)(e,c[t])||(s=!1)})),s||this.view.changeData(c)}else this.view.data(c);this.view.scale(r),this.view.animate(o),_()(this.config.filter,(function(e,n){x()(e)?t.view.filter(e[0],null):t.view.filter(n,null)})),_()(i,(function(e,n){x()(e)?t.view.filter(e[0],e[1]):t.view.filter(n,e)})),a?this.view.show():this.view.hide(),this.config=y()(y()({},e),{data:c})}},{key:"destroy",value:function(){this.view&&(this.view.destroy(),this.view=null),this.config={}}},{key:"processOptions",value:function(e){var t=e.region,n=e.start,r=e.end,o=M(e,["region","start","end"]);E()(!n,"start \u5c5e\u6027\u5c06\u57285.0\u540e\u5e9f\u5f03\uff0c\u8bf7\u4f7f\u7528 region={{ start: {x:0,y:0}}} \u66ff\u4ee3"),E()(!r,"end \u5c5e\u6027\u5c06\u57285.0\u540e\u5e9f\u5f03\uff0c\u8bf7\u4f7f\u7528 region={{ end: {x:0,y:0}}} \u66ff\u4ee3");var i=S()({start:{x:0,y:0},end:{x:1,y:1}},{start:n,end:r},t);return y()(y()({},o),{region:i})}}]),e}();function A(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f()(e);if(t){var o=f()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u()(this,n)}}var I=function(e){c()(n,e);var t=A(n);function n(){var e;return o()(this,n),(e=t.apply(this,arguments)).name="view",e}return a()(n,[{key:"componentWillUnmount",value:function(){this.viewHelper.destroy(),this.viewHelper=null}},{key:"render",value:function(){return this.viewHelper||(this.viewHelper=new k(this.context.chart)),this.viewHelper.update(this.props),h.a.createElement(v.a.Provider,{value:this.viewHelper.view},h.a.createElement(h.a.Fragment,null,this.props.children))}}]),n}(h.a.Component);I.defaultProps={visible:!0,preInteractions:[],filter:[]},I.contextType=g.a,t.a=I},function(e,t,n){"use strict";n.d(t,"a",(function(){return S}));var r=n(3),o=n(343),i=n.n(o),a=n(28),l=n.n(a),c=n(8),s=n(40),u=n(228),d=n.n(u),f=n(358),p=n.n(f),h=n(360),g=n.n(h),v=n(362),m=n.n(v),y=n(359),b=n.n(y);Object(c.registerAction)("list-active",p.a),Object(c.registerAction)("list-selected",b.a),Object(c.registerAction)("list-highlight",d.a),Object(c.registerAction)("list-unchecked",g.a),Object(c.registerAction)("data-filter",m.a),Object(c.registerAction)("legend-item-highlight",d.a,{componentNames:["legend"]}),Object(c.registerInteraction)("legend-active",{start:[{trigger:"legend-item:mouseenter",action:["list-active:active","element-active:active"]}],end:[{trigger:"legend-item:mouseleave",action:["list-active:reset","element-active:reset"]}]}),Object(c.registerInteraction)("legend-highlight",{start:[{trigger:"legend-item:mouseenter",action:["legend-item-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"legend-item:mouseleave",action:["legend-item-highlight:reset","element-highlight:reset"]}]}),Object(c.registerInteraction)("legend-filter",{showEnable:[{trigger:"legend-item:mouseenter",action:"cursor:pointer"},{trigger:"legend-item:mouseleave",action:"cursor:default"}],start:[{trigger:"legend-item:click",action:"list-unchecked:toggle"},{trigger:"legend-item:click",action:"data-filter:filter"}]});var x=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(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};Object(c.registerComponentController)("legend",i.a);var w=function(e){return void 0===e};function S(e){var t=e.name,n=e.visible,o=void 0===n||n,i=(e.onChange,e.filter),a=x(e,["name","visible","onChange","filter"]),c=Object(s.a)();return w(t)?o?c.legend(a):c.legend(!1):o?c.legend(t,a):c.legend(t,!1),l()(i)&&t&&c.filter(t,i),Object(r.useEffect)((function(){c.on("legend:valuechanged",(function(t){l()(e.onChange)&&e.onChange(t,c)})),c.on("legend-item:click",(function(t){if(l()(e.onChange)){var n=t.target.get("delegateObject").item;t.item=n,e.onChange(t,c)}}))}),[]),null}},function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var r=n(342),o=n.n(r),i=n(40),a=n(628),l=n.n(a),c=n(8),s=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(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};Object(c.registerComponentController)("axis",o.a);var u=function(e){return void 0===e},d=function(e){return function(e,t){var n=l()(e);return t.forEach((function(e){!0===n[e]?n[e]={}:!1===n[e]&&(n[e]=null)})),n}(e,["title","line","tickLine","subTickLine","label","grid"])};function f(e){var t=e.name,n=e.visible,r=void 0===n||n,o=s(e,["name","visible"]),a=Object(i.a)(),l=d(o);return r?u(t)?a.axis(!0):a.axis(t,l):u(t)?a.axis(!1):a.axis(t,!1),null}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(95),i=n(0),a=n(747),l=n(203),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return r.__assign(r.__assign({},t),{name:"annotation",type:"html",locationType:"point",x:0,y:0,containerTpl:'<div class="g2-html-annotation" style="position:absolute"></div>',alignX:"left",alignY:"top",html:"",zIndex:7})},t.prototype.render=function(){var e=this.getContainer(),t=this.get("html");l.clearDom(e);var n=i.isFunction(t)?t(e):t;if(i.isElement(n))e.appendChild(n);else if(i.isString(n)||i.isNumber(n)){var r=o.createDom(""+n);r&&e.appendChild(r)}this.resetPosition()},t.prototype.resetPosition=function(){var e=this.getContainer(),t=this.getLocation(),n=t.x,r=t.y,i=this.get("alignX"),a=this.get("alignY"),l=this.get("offsetX"),c=this.get("offsetY"),s=o.getOuterWidth(e),u=o.getOuterHeight(e),d={x:n,y:r};"middle"===i?d.x-=Math.round(s/2):"right"===i&&(d.x-=Math.round(s)),"middle"===a?d.y-=Math.round(u/2):"bottom"===a&&(d.y-=Math.round(u)),l&&(d.x+=l),c&&(d.y+=c),o.modifyCSS(e,{position:"absolute",left:d.x+"px",top:d.y+"px",zIndex:this.get("zIndex")})},t}(a.default);t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.version=t.Shape=void 0;var r=n(1),o=n(185);t.Shape=o,r.__exportStar(n(26),t);var i=n(933);Object.defineProperty(t,"Canvas",{enumerable:!0,get:function(){return i.default}});var a=n(261);Object.defineProperty(t,"Group",{enumerable:!0,get:function(){return a.default}}),t.version="0.5.6"},function(e,t,n){"use strict";var r,o,i,a,l=n(2)(n(6));a=function(e,t){function n(e){return e&&"object"===(0,l.default)(e)&&"default"in e?e:{default:e}}var r=n(t),o={error:null},i=function(e){var t,n;function i(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).state=o,t.updatedWithError=!1,t.resetErrorBoundary=function(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];null==t.props.onReset||(e=t.props).onReset.apply(e,r),t.reset()},t}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,i.getDerivedStateFromError=function(e){return{error:e}};var a=i.prototype;return a.reset=function(){this.updatedWithError=!1,this.setState(o)},a.componentDidCatch=function(e,t){var n,r;null==(n=(r=this.props).onError)||n.call(r,e,t)},a.componentDidUpdate=function(e){var t,n,r,o,i=this.state.error,a=this.props.resetKeys;null===i||this.updatedWithError?null!==i&&(void 0===(r=e.resetKeys)&&(r=[]),void 0===(o=a)&&(o=[]),r.length!==o.length||r.some((function(e,t){return!Object.is(e,o[t])})))&&(null==(t=(n=this.props).onResetKeysChange)||t.call(n,e.resetKeys,a),this.reset()):this.updatedWithError=!0},a.render=function(){var e=this.state.error,t=this.props,n=t.fallbackRender,o=t.FallbackComponent,i=t.fallback;if(null!==e){var a={error:e,resetErrorBoundary:this.resetErrorBoundary};if(r.default.isValidElement(i))return i;if("function"===typeof n)return n(a);if(o)return r.default.createElement(o,a);throw new Error("react-error-boundary requires either a fallback, fallbackRender, or FallbackComponent prop")}return this.props.children},i}(r.default.Component);e.ErrorBoundary=i,e.useErrorHandler=function(e){var t=r.default.useState(null),n=t[0],o=t[1];if(e)throw e;if(n)throw n;return o},e.withErrorBoundary=function(e,t){function n(n){return r.default.createElement(i,t,r.default.createElement(e,n))}var o=e.displayName||e.name||"Unknown";return n.displayName="withErrorBoundary("+o+")",n},Object.defineProperty(e,"__esModule",{value:!0})},"object"===(0,l.default)(t)&&"undefined"!==typeof e?a(t,n(3)):(o=[t,n(3)],void 0===(i="function"===typeof(r=a)?r.apply(t,o):r)||(e.exports=i))},function(e,t,n){"use strict";e.exports=n(1033)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(23),o=n(28),i=Object.prototype.hasOwnProperty;t.default=function(e,t){if(!t||!r.default(e))return{};for(var n,a={},l=o.default(t)?t:function(e){return e[t]},c=0;c<e.length;c++){var s=e[c];n=l(s),i.call(a,n)?a[n].push(s):a[n]=[s]}return a}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(116);t.default=function(e){return r.default(e,"Boolean")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(491),o=n(1058),i=n(50);t.default=function e(t,n){if(t===n)return!0;if(!t||!n)return!1;if(i.default(t)||i.default(n))return!1;if(o.default(t)||o.default(n)){if(t.length!==n.length)return!1;for(var a=!0,l=0;l<t.length&&(a=e(t[l],n[l]));l++);return a}if(r.default(t)||r.default(n)){var c=Object.keys(t),s=Object.keys(n);if(c.length!==s.length)return!1;for(a=!0,l=0;l<c.length&&(a=e(t[c[l]],n[c[l]]));l++);return a}return!1}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(e)for(var n in t)t.hasOwnProperty(n)&&(e.style[n]=t[n]);return e}},function(e,t,n){"use strict";var r=n(2)(n(6));Object.defineProperty(t,"__esModule",{value:!0});var o=n(23);t.default=function e(t){if("object"!==(0,r.default)(t)||null===t)return t;var n;if(o.default(t)){n=[];for(var i=0,a=t.length;i<a;i++)"object"===(0,r.default)(t[i])&&null!=t[i]?n[i]=e(t[i]):n[i]=t[i]}else for(var l in n={},t)"object"===(0,r.default)(t[l])&&null!=t[l]?n[l]=e(t[l]):n[l]=t[l];return n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EN_US_LOCALE=void 0,t.EN_US_LOCALE={locale:"en-US",general:{increase:"Increase",decrease:"Decrease",root:"Root"},statistic:{total:"Total"},conversionTag:{label:"Rate"},legend:{},tooltip:{},slider:{},scrollbar:{},waterfall:{total:"Total"}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ZH_CN_LOCALE=void 0,t.ZH_CN_LOCALE={locale:"zh-CN",general:{increase:"\u589e\u52a0",decrease:"\u51cf\u5c11",root:"\u521d\u59cb"},statistic:{total:"\u603b\u8ba1"},conversionTag:{label:"\u8f6c\u5316\u7387"},legend:{},tooltip:{},slider:{},scrollbar:{},waterfall:{total:"\u603b\u8ba1"}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Progress=void 0;var r=n(1),o=n(24),i=n(510),a=n(513),l=n(295),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="process",t}return r.__extends(t,e),t.getDefaultOptions=function(){return a.DEFAULT_OPTIONS},t.prototype.changeData=function(e){this.updateOption({percent:e}),this.chart.changeData(l.getProgressData(e))},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return i.adaptor},t}(o.Plot);t.Progress=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RingProgress=void 0;var r=n(1),o=n(14),i=n(24),a=n(295),l=n(1086),c=n(1087),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="ring-process",t}return r.__extends(t,e),t.getDefaultOptions=function(){return c.DEFAULT_OPTIONS},t.prototype.changeData=function(e){this.chart.emit(o.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA,o.Event.fromData(this.chart,o.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA,null)),this.updateOption({percent:e}),this.chart.data(a.getProgressData(e)),l.statistic({chart:this.chart,options:this.options},!0),this.chart.emit(o.VIEW_LIFE_CIRCLE.AFTER_CHANGE_DATA,o.Event.fromData(this.chart,o.VIEW_LIFE_CIRCLE.AFTER_CHANGE_DATA,null))},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return l.adaptor},t}(i.Plot);t.RingProgress=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TinyColumn=void 0;var r=n(1),o=n(24),i=n(117),a=n(1088),l=n(1089),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="tiny-column",t}return r.__extends(t,e),t.getDefaultOptions=function(){return l.DEFAULT_OPTIONS},t.prototype.changeData=function(e){this.updateOption({data:e});var t=this.chart,n=this.options;a.meta({chart:t,options:n}),t.changeData(i.getTinyData(e))},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return a.adaptor},t}(o.Plot);t.TinyColumn=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TinyArea=void 0;var r=n(1),o=n(24),i=n(117),a=n(296),l=n(1090),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="tiny-area",t}return r.__extends(t,e),t.getDefaultOptions=function(){return l.DEFAULT_OPTIONS},t.prototype.changeData=function(e){this.updateOption({data:e});var t=this.chart,n=this.options;a.meta({chart:t,options:n}),t.changeData(i.getTinyData(e))},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return a.adaptor},t}(o.Plot);t.TinyArea=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TinyLine=void 0;var r=n(1),o=n(24),i=n(1091),a=n(154),l=n(117),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="tiny-line",t}return r.__extends(t,e),t.getDefaultOptions=function(){return a.DEFAULT_OPTIONS},t.prototype.changeData=function(e){this.updateOption({data:e});var t=this.chart,n=this.options;i.meta({chart:t,options:n}),t.changeData(l.getTinyData(e))},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return i.adaptor},t}(o.Plot);t.TinyLine=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Treemap=void 0;var r=n(1),o=n(24),i=n(1095),a=n(1122),l=n(515);n(1123);var c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="treemap",t}return r.__extends(t,e),t.getDefaultOptions=function(){return a.DEFAULT_OPTIONS},t.prototype.changeData=function(e){var t=this.options,n=t.colorField,r=t.interactions,o=t.hierarchyConfig;this.updateOption({data:e});var i=l.transformData({data:e,colorField:n,enableDrillDown:l.enableInteraction(r,"treemap-drill-down"),hierarchyConfig:o});this.chart.changeData(i),l.resetDrillDown(this.chart)},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return i.adaptor},t}(o.Plot);t.Treemap=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WordCloud=void 0;var r=n(1),o=n(24),i=n(1141),a=n(532),l=n(531);n(1143);var c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="word-cloud",t}return r.__extends(t,e),t.getDefaultOptions=function(){return a.DEFAULT_OPTIONS},t.prototype.changeData=function(e){this.updateOption({data:e}),this.options.imageMask?this.render():this.chart.changeData(l.transform({chart:this.chart,options:this.options}))},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.render=function(){var t=this;return new Promise((function(n){var o=t.options.imageMask;if(!o)return e.prototype.render.call(t),void n();var i=function(o){t.options=r.__assign(r.__assign({},t.options),{imageMask:o||null}),e.prototype.render.call(t),n()};l.processImageMask(o).then(i).catch(i)}))},t.prototype.getSchemaAdaptor=function(){return i.adaptor},t.prototype.triggerResize=function(){var t=this;this.chart.destroyed||(this.execAdaptor(),window.setTimeout((function(){e.prototype.triggerResize.call(t)})))},t}(o.Plot);t.WordCloud=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Funnel=t.FUNNEL_CONVERSATION_FIELD=void 0;var r=n(1),o=n(0),i=n(24),a=n(15),l=n(1146),c=n(119);Object.defineProperty(t,"FUNNEL_CONVERSATION_FIELD",{enumerable:!0,get:function(){return c.FUNNEL_CONVERSATION}});var s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="funnel",t}return r.__extends(t,e),t.getDefaultOptions=function(){return c.DEFAULT_OPTIONS},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return l.adaptor},t.prototype.setState=function(e,t,n){void 0===n&&(n=!0);var r=a.getAllElementsRecursively(this.chart);o.each(r,(function(r){t(r.getData())&&r.setState(e,n)}))},t.prototype.getStates=function(){var e=a.getAllElementsRecursively(this.chart),t=[];return o.each(e,(function(e){var n=e.getData(),r=e.getStates();o.each(r,(function(r){t.push({data:n,state:r,geometry:e.geometry,element:e})}))})),t},t.CONVERSATION_FIELD=c.FUNNEL_CONVERSATION,t.PERCENT_FIELD=c.FUNNEL_PERCENT,t.TOTAL_PERCENT_FIELD=c.FUNNEL_TOTAL_PERCENT,t}(i.Plot);t.Funnel=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Radar=void 0;var r=n(1),o=n(24),i=n(15),a=n(1150);n(1151);var l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="radar",t}return r.__extends(t,e),t.prototype.changeData=function(e){this.updateOption({data:e}),this.chart.changeData(e)},t.prototype.getDefaultOptions=function(){return i.deepAssign({},e.prototype.getDefaultOptions.call(this),{xAxis:{label:{offset:15},grid:{line:{type:"line"}}},yAxis:{grid:{line:{type:"circle"}}},legend:{position:"top"},tooltip:{shared:!0,showCrosshairs:!0,showMarkers:!0,crosshairs:{type:"xy",line:{style:{stroke:"#565656",lineDash:[4]}},follow:!0}}})},t.prototype.getSchemaAdaptor=function(){return a.adaptor},t}(o.Plot);t.Radar=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Liquid=void 0;var r=n(1),o=n(14),i=n(24),a=n(1153),l=n(1154),c=n(534);n(1155);var s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="liquid",t}return r.__extends(t,e),t.getDefaultOptions=function(){return l.DEFAULT_OPTIONS},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.changeData=function(e){this.chart.emit(o.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA,o.Event.fromData(this.chart,o.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA,null)),this.updateOption({percent:e}),this.chart.data(c.getLiquidData(e)),a.statistic({chart:this.chart,options:this.options},!0),this.chart.emit(o.VIEW_LIFE_CIRCLE.AFTER_CHANGE_DATA,o.Event.fromData(this.chart,o.VIEW_LIFE_CIRCLE.AFTER_CHANGE_DATA,null))},t.prototype.getSchemaAdaptor=function(){return a.adaptor},t}(i.Plot);t.Liquid=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Histogram=void 0;var r=n(1),o=n(24),i=n(535),a=n(1156),l=n(536),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="histogram",t}return r.__extends(t,e),t.getDefaultOptions=function(){return l.DEFAULT_OPTIONS},t.prototype.changeData=function(e){this.updateOption({data:e});var t=this.options,n=t.binField,r=t.binNumber,o=t.binWidth,a=t.stackField;this.chart.changeData(i.binHistogram(e,n,o,r,a))},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return a.adaptor},t}(o.Plot);t.Histogram=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Waterfall=void 0;var r=n(1),o=n(24),i=n(1157),a=n(301),l=n(537),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="waterfall",t}return r.__extends(t,e),t.getDefaultOptions=function(){return a.DEFAULT_OPTIONS},t.prototype.changeData=function(e){var t=this.options,n=t.xField,r=t.yField,o=t.total;this.updateOption({data:e}),this.chart.changeData(l.transformData(e,n,r,o))},t.prototype.getSchemaAdaptor=function(){return i.adaptor},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t}(o.Plot);t.Waterfall=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Bullet=void 0;var r=n(1),o=n(24),i=n(1163),a=n(539),l=n(1164),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="bullet",t}return r.__extends(t,e),t.getDefaultOptions=function(){return l.DEFAULT_OPTIONS},t.prototype.changeData=function(e){this.updateOption({data:e});var t=a.transformData(this.options),n=t.min,r=t.max,o=t.ds;i.meta({options:this.options,ext:{data:{min:n,max:r}},chart:this.chart}),this.chart.changeData(o)},t.prototype.getSchemaAdaptor=function(){return i.adaptor},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t}(o.Plot);t.Bullet=c},function(e,t,n){"use strict";var r=n(6);Object.defineProperty(t,"__esModule",{value:!0});var o={version:!0,adaptors:!0,G2:!0,registerLocale:!0,setGlobal:!0,Plot:!0,Line:!0,Area:!0,Column:!0,Bar:!0,Pie:!0,Rose:!0,WordCloud:!0,Scatter:!0,Radar:!0,DualAxes:!0,TinyLine:!0,TinyColumn:!0,TinyArea:!0,Histogram:!0,Progress:!0,RingProgress:!0,Heatmap:!0,Box:!0,Violin:!0,Venn:!0,Stock:!0,Funnel:!0,FUNNEL_CONVERSATION_FIELD:!0,Liquid:!0,Bullet:!0,Sunburst:!0,Gauge:!0,Waterfall:!0,RadialBar:!0,BidirectionalBar:!0,Treemap:!0,Sankey:!0,Chord:!0,CirclePacking:!0,P:!0,getCanvasPattern:!0,MultiView:!0,Mix:!0,Facet:!0,flow:!0,measureTextWidth:!0,line:!0,interval:!0,area:!0,point:!0,polygon:!0,schema:!0,Lab:!0};Object.defineProperty(t,"Area",{enumerable:!0,get:function(){return p.Area}}),Object.defineProperty(t,"Bar",{enumerable:!0,get:function(){return g.Bar}}),Object.defineProperty(t,"BidirectionalBar",{enumerable:!0,get:function(){return z.BidirectionalBar}}),Object.defineProperty(t,"Box",{enumerable:!0,get:function(){return k.Box}}),Object.defineProperty(t,"Bullet",{enumerable:!0,get:function(){return R.Bullet}}),Object.defineProperty(t,"Chord",{enumerable:!0,get:function(){return V.Chord}}),Object.defineProperty(t,"CirclePacking",{enumerable:!0,get:function(){return G.CirclePacking}}),Object.defineProperty(t,"Column",{enumerable:!0,get:function(){return h.Column}}),Object.defineProperty(t,"DualAxes",{enumerable:!0,get:function(){return w.DualAxes}}),Object.defineProperty(t,"FUNNEL_CONVERSATION_FIELD",{enumerable:!0,get:function(){return j.FUNNEL_CONVERSATION_FIELD}}),Object.defineProperty(t,"Facet",{enumerable:!0,get:function(){return q.Facet}}),Object.defineProperty(t,"Funnel",{enumerable:!0,get:function(){return j.Funnel}}),t.G2=void 0,Object.defineProperty(t,"Gauge",{enumerable:!0,get:function(){return N.Gauge}}),Object.defineProperty(t,"Heatmap",{enumerable:!0,get:function(){return M.Heatmap}}),Object.defineProperty(t,"Histogram",{enumerable:!0,get:function(){return C.Histogram}}),Object.defineProperty(t,"Lab",{enumerable:!0,get:function(){return Z.Lab}}),Object.defineProperty(t,"Line",{enumerable:!0,get:function(){return f.Line}}),Object.defineProperty(t,"Liquid",{enumerable:!0,get:function(){return L.Liquid}}),Object.defineProperty(t,"Mix",{enumerable:!0,get:function(){return X.Mix}}),Object.defineProperty(t,"MultiView",{enumerable:!0,get:function(){return X.Mix}}),Object.defineProperty(t,"P",{enumerable:!0,get:function(){return Y.P}}),Object.defineProperty(t,"Pie",{enumerable:!0,get:function(){return v.Pie}}),Object.defineProperty(t,"Plot",{enumerable:!0,get:function(){return u.Plot}}),Object.defineProperty(t,"Progress",{enumerable:!0,get:function(){return E.Progress}}),Object.defineProperty(t,"Radar",{enumerable:!0,get:function(){return x.Radar}}),Object.defineProperty(t,"RadialBar",{enumerable:!0,get:function(){return B.RadialBar}}),Object.defineProperty(t,"RingProgress",{enumerable:!0,get:function(){return P.RingProgress}}),Object.defineProperty(t,"Rose",{enumerable:!0,get:function(){return m.Rose}}),Object.defineProperty(t,"Sankey",{enumerable:!0,get:function(){return W.Sankey}}),Object.defineProperty(t,"Scatter",{enumerable:!0,get:function(){return b.Scatter}}),Object.defineProperty(t,"Stock",{enumerable:!0,get:function(){return T.Stock}}),Object.defineProperty(t,"Sunburst",{enumerable:!0,get:function(){return D.Sunburst}}),Object.defineProperty(t,"TinyArea",{enumerable:!0,get:function(){return _.TinyArea}}),Object.defineProperty(t,"TinyColumn",{enumerable:!0,get:function(){return O.TinyColumn}}),Object.defineProperty(t,"TinyLine",{enumerable:!0,get:function(){return S.TinyLine}}),Object.defineProperty(t,"Treemap",{enumerable:!0,get:function(){return H.Treemap}}),Object.defineProperty(t,"Venn",{enumerable:!0,get:function(){return I.Venn}}),Object.defineProperty(t,"Violin",{enumerable:!0,get:function(){return A.Violin}}),Object.defineProperty(t,"Waterfall",{enumerable:!0,get:function(){return F.Waterfall}}),Object.defineProperty(t,"WordCloud",{enumerable:!0,get:function(){return y.WordCloud}}),t.adaptors=void 0,Object.defineProperty(t,"area",{enumerable:!0,get:function(){return $.area}}),Object.defineProperty(t,"flow",{enumerable:!0,get:function(){return K.flow}}),Object.defineProperty(t,"getCanvasPattern",{enumerable:!0,get:function(){return U.getCanvasPattern}}),Object.defineProperty(t,"interval",{enumerable:!0,get:function(){return $.interval}}),Object.defineProperty(t,"line",{enumerable:!0,get:function(){return $.line}}),Object.defineProperty(t,"measureTextWidth",{enumerable:!0,get:function(){return K.measureTextWidth}}),Object.defineProperty(t,"point",{enumerable:!0,get:function(){return $.point}}),Object.defineProperty(t,"polygon",{enumerable:!0,get:function(){return $.polygon}}),Object.defineProperty(t,"registerLocale",{enumerable:!0,get:function(){return a.registerLocale}}),Object.defineProperty(t,"schema",{enumerable:!0,get:function(){return $.schema}}),Object.defineProperty(t,"setGlobal",{enumerable:!0,get:function(){return s.setGlobal}}),t.version=void 0;var i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var n=J(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(o,a,l):o[a]=e[a]}return o.default=e,n&&n.set(e,o),o}(n(14));t.G2=i;var a=n(197),l=n(1174),c=n(1175),s=n(545),u=n(19),d=n(1176);Object.keys(d).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(o,e)||e in t&&t[e]===d[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return d[e]}}))}));var f=n(546),p=n(550),h=n(552),g=n(555),v=n(558),m=n(1210),y=n(1213),b=n(566),x=n(1220),w=n(1224),S=n(571),O=n(573),_=n(575),C=n(576),E=n(580),P=n(582),M=n(1232),k=n(1237),A=n(1239),I=n(1244),T=n(1256),j=n(590),L=n(1261),R=n(1265),D=n(1268),N=n(596),F=n(1275),B=n(1278),z=n(1282),H=n(1284),W=n(1288),V=n(1298),G=n(1301),Y=n(1306),U=n(547),X=n(607),q=n(1311),K=n(7),$=n(30),Q=n(22),Z=n(1315);function J(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(J=function(e){return e?n:t})(e)}t.version="2.3.39",(0,a.registerLocale)("en-US",l.EN_US_LOCALE),(0,a.registerLocale)("zh-CN",c.ZH_CN_LOCALE),t.adaptors={scale:Q.scale,legend:Q.legend,tooltip:Q.tooltip,annotation:Q.annotation,interaction:Q.interaction,theme:Q.theme,animation:Q.animation}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Gauge=void 0;var r=n(1),o=n(14),i=n(24),a=n(1316),l=n(317),c=n(609);n(1317),n(1318);var s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="gauge",t}return r.__extends(t,e),t.getDefaultOptions=function(){return l.DEFAULT_OPTIONS},t.prototype.changeData=function(e){this.chart.emit(o.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA,o.Event.fromData(this.chart,o.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA,null)),this.updateOption({percent:e});var t=this.chart.views.find((function(e){return e.id===l.INDICATEOR_VIEW_ID}));t&&t.data(c.getIndicatorData(e));var n=this.chart.views.find((function(e){return e.id===l.RANGE_VIEW_ID}));n&&n.data(c.getRangeData(e,this.options.range)),a.statistic({chart:this.chart,options:this.options},!0),this.chart.emit(o.VIEW_LIFE_CIRCLE.AFTER_CHANGE_DATA,o.Event.fromData(this.chart,o.VIEW_LIFE_CIRCLE.AFTER_CHANGE_DATA,null))},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return a.adaptor},t}(i.Plot);t.Gauge=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DualAxes=void 0;var r=n(1),o=n(24),i=n(15),a=n(1319),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dual-axes",t}return r.__extends(t,e),t.prototype.getDefaultOptions=function(){return i.deepAssign({},e.prototype.getDefaultOptions.call(this),{yAxis:[],syncViewPadding:!0})},t.prototype.getSchemaAdaptor=function(){return a.adaptor},t}(o.Plot);t.DualAxes=l},function(e,t,n){"use strict";n.r(t),n.d(t,"fold",(function(){return l})),n.d(t,"percentage",(function(){return S})),n.d(t,"minifyNum",(function(){return O})),n.d(t,"splitBySeparator",(function(){return _})),n.d(t,"visibleHelper",(function(){return C.a})),n.d(t,"cloneDeep",(function(){return E.a})),n.d(t,"shallowEqual",(function(){return P.a}));var r=n(230),o=n.n(r),i=n(4),a=n.n(i),l=function(e,t,n,r){var i=[];return e.forEach((function(e){t.forEach((function(t){var l;i.push(a()(a()({},e),(l={},o()(l,n,t),o()(l,r,e[t]),l)))}))})),i},c=n(77),s=n.n(c),u=n(231),d=n(17),f=n.n(d),p=n(23),h=n.n(p),g=n(28),v=n.n(g),m=n(50),y=n.n(m),b=n(624),x=n.n(b),w=function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=e;return r&&r.length&&(o=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return v()(n)?t=n:h()(n)?t=function(e,t){for(var r=0;r<n.length;r++){var o=n[r];if(e[o]<t[o])return-1;if(e[o]>t[o])return 1}return 0}:y()(n)&&(t=function(e,t){return e[n]<t[n]?-1:e[n]>t[n]?1:0}),e.sort(t)}(e,r)),v()(t)?n=t:h()(t)?n=function(e){return"_".concat(t.map((function(t){return e[t]})).join("-"))}:y()(t)&&(n=function(e){return"_".concat(e[t])}),x()(o,n)},S=function(e,t,n,r){var o=[],i=r?w(e,r):{_data:e};return s()(i,(function(e){var r=Object(u.a)(e.map((function(e){return e[t]})));f()(0!==r,"Invalid data: total sum of field ".concat(t," is 0!")),s()(e,(function(e){var i=a()({},e);i[n]=0===r?0:e[t]/r,o.push(i)}))})),o},O=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,n=1e8;return e>=n?"".concat((e/n).toFixed(t).replace(/\.?0*$/,""),"\u4ebf"):e>=1e4?"".concat((e/1e4).toFixed(t).replace(/\.?0*$/,""),"\u4e07"):e.toFixed(t).replace(/\.?0*$/,"")},_=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:",";return"number"===typeof e?e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,t):e},C=n(165),E=n(75),P=n(82)},function(e,t,n){e.exports=n(649)},function(e,t,n){"use strict";n.r(t),n.d(t,"Util",(function(){return Y}));var r=n(4),o=n.n(r),i=n(0),a=n(614);n.d(t,"Annotation",(function(){return a}));var l=n(323);n.d(t,"G2",(function(){return l}));var c=n(613);n.d(t,"GComponents",(function(){return c}));var s=n(647),u=n(616);n.d(t,"Chart",(function(){return u.a}));var d=n(617);n.d(t,"View",(function(){return d.a}));var f=n(615);n.d(t,"Tooltip",(function(){return f.a}));var p=n(618);n.d(t,"Legend",(function(){return p.a}));var h=n(216);n.d(t,"Coordinate",(function(){return h.a}));var g=n(619);n.d(t,"Axis",(function(){return g.a}));var v=n(492);n.d(t,"Facet",(function(){return v.a}));var m=n(493);n.d(t,"Slider",(function(){return m.a}));var y=n(127);n.d(t,"Area",(function(){return y.a}));var b=n(217);n.d(t,"Edge",(function(){return b.a}));var x=n(218);n.d(t,"Heatmap",(function(){return x.a}));var w=n(219);n.d(t,"Interval",(function(){return w.a}));var S=n(128);n.d(t,"Line",(function(){return S.a}));var O=n(129);n.d(t,"Point",(function(){return O.a}));var _=n(220);n.d(t,"Polygon",(function(){return _.a}));var C=n(495);n.d(t,"Schema",(function(){return C.a}));var E=n(39);n.d(t,"BaseGeom",(function(){return E.a}));var P=n(289);n.d(t,"Label",(function(){return P.a}));var M=n(496);n.d(t,"Path",(function(){return M.a}));var k=n(221);n.d(t,"LineAdvance",(function(){return k.a}));var A=n(497);n.d(t,"Geom",(function(){return A.a}));var I=n(498);n.d(t,"Coord",(function(){return I.a}));var T=n(499);n.d(t,"Guide",(function(){return T.a}));var j=n(500);n.d(t,"Effects",(function(){return j.a}));var L=n(501);n.d(t,"Interaction",(function(){return L.a}));var R=n(11);n.d(t,"createPlot",(function(){return R.a}));var D=n(166);n.d(t,"createTooltipConnector",(function(){return D.a}));var N=n(40);n.d(t,"useView",(function(){return N.a}));var F=n(81);n.d(t,"useRootChart",(function(){return F.a})),n.d(t,"useChartInstance",(function(){return F.a}));var B=n(507);n.d(t,"useTheme",(function(){return B.a}));var z=n(47);n.d(t,"withView",(function(){return z.b}));var H=n(76);n.d(t,"withChartInstance",(function(){return H.b}));var W=n(8);for(var V in W)["default","Util","Annotation","G2","GComponents","Chart","View","Tooltip","Legend","Coordinate","Axis","Facet","Slider","Area","Edge","Heatmap","Interval","Line","Point","Polygon","Schema","BaseGeom","Label","Path","LineAdvance","Geom","Coord","Guide","Effects","Interaction","createPlot","createTooltipConnector","useView","useRootChart","useChartInstance","useTheme","withView","withChartInstance"].indexOf(V)<0&&function(e){n.d(t,e,(function(){return W[e]}))}(V);var G=n(612);n.d(t,"ProgressChart",(function(){return G.x})),n.d(t,"RingProgressChart",(function(){return G.B})),n.d(t,"TinyColumnChart",(function(){return G.K})),n.d(t,"TinyAreaChart",(function(){return G.J})),n.d(t,"TinyLineChart",(function(){return G.L})),n.d(t,"LineChart",(function(){return G.q})),n.d(t,"TreemapChart",(function(){return G.M})),n.d(t,"StepLineChart",(function(){return G.I})),n.d(t,"BarChart",(function(){return G.b})),n.d(t,"StackedBarChart",(function(){return G.F})),n.d(t,"GroupedBarChart",(function(){return G.l})),n.d(t,"PercentStackedBarChart",(function(){return G.t})),n.d(t,"RangeBarChart",(function(){return G.z})),n.d(t,"AreaChart",(function(){return G.a})),n.d(t,"StackedAreaChart",(function(){return G.E})),n.d(t,"PercentStackedAreaChart",(function(){return G.s})),n.d(t,"ColumnChart",(function(){return G.f})),n.d(t,"GroupedColumnChart",(function(){return G.m})),n.d(t,"StackedColumnChart",(function(){return G.G})),n.d(t,"RangeColumnChart",(function(){return G.A})),n.d(t,"PercentStackedColumnChart",(function(){return G.u})),n.d(t,"PieChart",(function(){return G.v})),n.d(t,"DensityHeatmapChart",(function(){return G.g})),n.d(t,"HeatmapChart",(function(){return G.o})),n.d(t,"WordCloudChart",(function(){return G.O})),n.d(t,"RoseChart",(function(){return G.C})),n.d(t,"FunnelChart",(function(){return G.j})),n.d(t,"StackedRoseChart",(function(){return G.H})),n.d(t,"GroupedRoseChart",(function(){return G.n})),n.d(t,"RadarChart",(function(){return G.y})),n.d(t,"LiquidChart",(function(){return G.r})),n.d(t,"HistogramChart",(function(){return G.p})),n.d(t,"DonutChart",(function(){return G.h})),n.d(t,"WaterfallChart",(function(){return G.N})),n.d(t,"ScatterChart",(function(){return G.D})),n.d(t,"BubbleChart",(function(){return G.c})),n.d(t,"BulletChart",(function(){return G.d})),n.d(t,"CalendarChart",(function(){return G.e})),n.d(t,"GaugeChart",(function(){return G.k})),n.d(t,"DualAxesChart",(function(){return G.i})),n.d(t,"PlotAdapter",(function(){return G.w}));var Y=o()(o()(o()({},i),s),l.Util)},function(e,t,n){"use strict";var r,o=n(2)(n(6));if(!Object.keys){var i=Object.prototype.hasOwnProperty,a=Object.prototype.toString,l=n(366),c=Object.prototype.propertyIsEnumerable,s=!c.call({toString:null},"toString"),u=c.call((function(){}),"prototype"),d=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],f=function(e){var t=e.constructor;return t&&t.prototype===e},p={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},h=function(){if("undefined"===typeof window)return!1;for(var e in window)try{if(!p["$"+e]&&i.call(window,e)&&null!==window[e]&&"object"===(0,o.default)(window[e]))try{f(window[e])}catch(t){return!0}}catch(t){return!0}return!1}();r=function(e){var t=null!==e&&"object"===(0,o.default)(e),n="[object Function]"===a.call(e),r=l(e),c=t&&"[object String]"===a.call(e),p=[];if(!t&&!n&&!r)throw new TypeError("Object.keys called on a non-object");var g=u&&n;if(c&&e.length>0&&!i.call(e,0))for(var v=0;v<e.length;++v)p.push(String(v));if(r&&e.length>0)for(var m=0;m<e.length;++m)p.push(String(m));else for(var y in e)g&&"prototype"===y||!i.call(e,y)||p.push(String(y));if(s)for(var b=function(e){if("undefined"===typeof window||!h)return f(e);try{return f(e)}catch(t){return!1}}(e),x=0;x<d.length;++x)b&&"constructor"===d[x]||!i.call(e,d[x])||p.push(d[x]);return p}}e.exports=r},function(e,t,n){"use strict";var r=n(2)(n(6)),o=n(367)(),i=n(137),a=o&&i("%Object.defineProperty%",!0),l=i("%SyntaxError%"),c=i("%TypeError%"),s=n(656);e.exports=function(e,t,n){if(!e||"object"!==(0,r.default)(e)&&"function"!==typeof e)throw new c("`obj` must be an object or a function`");if("string"!==typeof t&&"symbol"!==(0,r.default)(t))throw new c("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!==typeof arguments[3]&&null!==arguments[3])throw new c("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!==typeof arguments[4]&&null!==arguments[4])throw new c("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!==typeof arguments[5]&&null!==arguments[5])throw new c("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!==typeof arguments[6])throw new c("`loose`, if provided, must be a boolean");var o=arguments.length>3?arguments[3]:null,i=arguments.length>4?arguments[4]:null,u=arguments.length>5?arguments[5]:null,d=arguments.length>6&&arguments[6],f=!!s&&s(e,t);if(a)a(e,t,{configurable:null===u&&f?f.configurable:!u,enumerable:null===o&&f?f.enumerable:!o,value:n,writable:null===i&&f?f.writable:!i});else{if(!d&&(o||i||u))throw new l("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=n}}},function(e,t,n){"use strict";var r=n(2)(n(6)),o="undefined"!==typeof Symbol&&Symbol,i=n(368);e.exports=function(){return"function"===typeof o&&"function"===typeof Symbol&&"symbol"===(0,r.default)(o("foo"))&&"symbol"===(0,r.default)(Symbol("bar"))&&i()}},function(e,t,n){"use strict";var r={foo:{}},o=Object;e.exports=function(){return{__proto__:r}.foo===r.foo&&!({__proto__:null}instanceof o)}},function(e,t,n){"use strict";var r=Array.prototype.slice,o=Object.prototype.toString;e.exports=function(e){var t=this;if("function"!==typeof t||"[object Function]"!==o.call(t))throw new TypeError("Function.prototype.bind called on incompatible "+t);for(var n,i=r.call(arguments,1),a=Math.max(0,t.length-i.length),l=[],c=0;c<a;c++)l.push("$"+c);if(n=Function("binder","return function ("+l.join(",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof n){var o=t.apply(this,i.concat(r.call(arguments)));return Object(o)===o?o:this}return t.apply(e,i.concat(r.call(arguments)))})),t.prototype){var s=function(){};s.prototype=t.prototype,n.prototype=new s,s.prototype=null}return n}},function(e,t,n){"use strict";var r={}.hasOwnProperty,o=Function.prototype.call;e.exports=o.bind?o.bind(r):function(e,t){return o.call(r,e,t)}},function(e,t,n){"use strict";var r=n(137)("%Object.getOwnPropertyDescriptor%",!0);if(r)try{r([],"length")}catch(o){r=null}e.exports=r},function(e,t,n){"use strict";var r=n(137),o=n(370),i=o(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"===typeof n&&i(e,".prototype.")>-1?o(n):n}},function(e,t,n){"use strict";var r=n(364),o=n(372);e.exports=function(){var e=o();return r(Object,{assign:e},{assign:function(){return Object.assign!==e}}),e}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(373)),i=r(n(237));t.default=function(e,t){return void 0===t&&(t=[]),(0,o.default)(e,(function(e){return!(0,i.default)(t,e)}))}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(57)),i=r(n(374)),a=r(n(36)),l=r(n(138));t.default=function(e,t){if(!(0,a.default)(e))return null;var n;if((0,o.default)(t)&&(n=t),(0,l.default)(t)&&(n=function(e){return(0,i.default)(e,t)}),n)for(var r=0;r<e.length;r+=1)if(n(e[r]))return e[r];return null}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(e,t,n){void 0===n&&(n=0);for(var r=n;r<e.length;r++)if(t(e[r],r))return r;return-1}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(94)),i=r(n(36));t.default=function(e,t){for(var n=null,r=0;r<e.length;r++){var a=e[r][t];if(!(0,o.default)(a)){n=(0,i.default)(a)?a[0]:a;break}}return n}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(36));t.default=function(e){if(!(0,o.default)(e))return[];for(var t=[],n=0;n<e.length;n++)t=t.concat(e[n]);return t}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(36));t.default=function e(t,n){if(void 0===n&&(n=[]),(0,o.default)(t))for(var r=0;r<t.length;r+=1)e(t[r],n);else n.push(t);return n}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(36)),i=r(n(376)),a=r(n(377));t.default=function(e){var t=e.filter((function(e){return!isNaN(e)}));if(!t.length)return{min:0,max:0};if((0,o.default)(e[0])){for(var n=[],r=0;r<e.length;r++)n=n.concat(e[r]);t=n}var l=(0,i.default)(t);return{min:(0,a.default)(t),max:l}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=Array.prototype,o=r.splice,i=r.indexOf;t.default=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0;r<t.length;r++)for(var a=t[r],l=-1;(l=i.call(e,a))>-1;)o.call(e,l,1);return e}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(56)),i=r(n(378));t.default=function(e,t){var n=[];if(!(0,o.default)(e))return n;for(var r=-1,a=[],l=e.length;++r<l;){var c=e[r];t(c,r,e)&&(n.push(c),a.push(r))}return(0,i.default)(e,a),n}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(36)),i=r(n(85)),a=r(n(57));t.default=function(e,t){var n;if((0,a.default)(t))n=function(e,n){return t(e)-t(n)};else{var r=[];(0,i.default)(t)?r.push(t):(0,o.default)(t)&&(r=t),n=function(e,t){for(var n=0;n<r.length;n+=1){var o=r[n];if(e[o]>t[o])return 1;if(e[o]<t[o])return-1}return 0}}return e.sort(n),e}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(380));t.default=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,o.default)([].concat.apply([],e))}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(36)),i=r(n(94));t.default=function(e,t){for(var n=[],r={},a=0;a<e.length;a++){var l=e[a][t];if(!(0,i.default)(l)){(0,o.default)(l)||(l=[l]);for(var c=0;c<l.length;c++){var s=l[c];r[s]||(n.push(s),r[s]=!0)}}}return n}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((0,o.default)(e))return e[0]};var o=r(n(56))},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((0,o.default)(e))return e[e.length-1]};var o=r(n(56))},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(36)),i=r(n(85));t.default=function(e,t){return!(!(0,o.default)(e)&&!(0,i.default)(e))&&e[0]===t}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(36)),i=r(n(85));t.default=function(e,t){return!(!(0,o.default)(e)&&!(0,i.default)(e))&&e[e.length-1]===t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(e,t){for(var n=0;n<e.length;n++)if(!t(e[n],n))return!1;return!0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(e,t){for(var n=0;n<e.length;n++)if(t(e[n],n))return!0;return!1}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(381));t.default=function(e,t){if(!t)return[e];var n=(0,o.default)(e,t),r=[];for(var i in n)r.push(n[i]);return r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(e,t){return e["_wrap_"+t]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(e,t){if(e["_wrap_"+t])return e["_wrap_"+t];var n=function(n){e[t](n)};return e["_wrap_"+t]=n,n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={};t.default=function(e){var t=r[e];if(!t){for(var n=e.toString(16),o=n.length;o<6;o++)n="0"+n;t="#"+n,r[e]=t}return t}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(36));t.default=function(e){var t=0,n=0,r=0,i=0;return(0,o.default)(e)?1===e.length?t=n=r=i=e[0]:2===e.length?(t=r=e[0],n=i=e[1]):3===e.length?(t=e[0],n=i=e[1],r=e[2]):(t=e[0],n=e[1],r=e[2],i=e[3]):t=n=r=i=e,{r1:t,r2:n,r3:r,r4:i}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(e,t,n){return e<t?t:e>n?n:e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(e,t){var n=t.toString(),r=n.indexOf(".");if(-1===r)return Math.round(e);var o=n.substr(r+1).length;return o>20&&(o=20),parseFloat(e.toFixed(o))}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(86));t.default=function(e){return(0,o.default)(e)&&e%1!==0}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(86));t.default=function(e){return(0,o.default)(e)&&e%2===0}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(86)),i=Number.isInteger?Number.isInteger:function(e){return(0,o.default)(e)&&e%1===0};t.default=i},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(86));t.default=function(e){return(0,o.default)(e)&&e<0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){return void 0===n&&(n=r),Math.abs(e-t)<n};var r=1e-5},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(86));t.default=function(e){return(0,o.default)(e)&&e%2!==0}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(86));t.default=function(e){return(0,o.default)(e)&&e>0}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(36)),i=r(n(57));t.default=function(e,t){if((0,o.default)(e)){for(var n,r=-1/0,a=0;a<e.length;a++){var l=e[a],c=(0,i.default)(t)?t(l):l[t];c>r&&(n=l,r=c)}return n}}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(36)),i=r(n(57));t.default=function(e,t){if((0,o.default)(e)){for(var n,r=1/0,a=0;a<e.length;a++){var l=e[a],c=(0,i.default)(t)?t(l):l[t];c<r&&(n=l,r=c)}return n}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(e,t){return(e%t+t)%t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=180/Math.PI;t.default=function(e){return r*e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=parseInt},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=Math.PI/180;t.default=function(e){return r*e}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(106));t.default=o.default},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(383));t.default=o.default},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(237)),i=r(n(239));t.default=function(e,t){return(0,o.default)((0,i.default)(e),t)}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(107));t.default=function(e){return(0,o.default)(e).toLowerCase()}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(107));t.default=function(e){var t=(0,o.default)(e);return t.charAt(0).toLowerCase()+t.substring(1)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(e,t){return e&&t?e.replace(/\\?\{([^{}]+)\}/g,(function(e,n){return"\\"===e.charAt(0)?e.slice(1):void 0===t[n]?"":t[n]})):e}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(107));t.default=function(e){return(0,o.default)(e).toUpperCase()}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(107));t.default=function(e){var t=(0,o.default)(e);return t.charAt(0).toUpperCase()+t.substring(1)}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(68));t.default=function(e){return(0,o.default)(e,"Arguments")}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(68));t.default=function(e){return(0,o.default)(e,"Boolean")}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(68));t.default=function(e){return(0,o.default)(e,"Date")}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(68));t.default=function(e){return(0,o.default)(e,"Error")}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e)&&isFinite(e)};var o=r(n(86))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(e){return null===e}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(68));t.default=function(e){return(0,o.default)(e,"RegExp")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(e){return void 0===e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(e){return e instanceof Element||e instanceof HTMLDocument}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||function(e){return setTimeout(e,16)})(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.msCancelAnimationFrame||clearTimeout)(e)}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(240)),i=r(n(57));t.default=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],r=1;r<e.length;r++){var a=e[r];(0,i.default)(a)&&(a=a.prototype),(0,o.default)(n.prototype,a)}}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(6)),i=r(n(36));t.default=function e(t){if("object"!==(0,o.default)(t)||null===t)return t;var n;if((0,i.default)(t)){n=[];for(var r=0,a=t.length;r<a;r++)"object"===(0,o.default)(t[r])&&null!=t[r]?n[r]=e(t[r]):n[r]=t[r]}else for(var l in n={},t)"object"===(0,o.default)(t[l])&&null!=t[l]?n[l]=e(t[l]):n[l]=t[l];return n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(e,t,n){var r;return function(){var o=this,i=arguments,a=n&&!r;clearTimeout(r),r=setTimeout((function(){r=null,n||e.apply(o,i)}),t),a&&e.apply(o,i)}}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(36)),i=r(n(138));function a(e,t,n,r){for(var l in n=n||0,r=r||5,t)if(t.hasOwnProperty(l)){var c=t[l];null!==c&&(0,i.default)(c)?((0,i.default)(e[l])||(e[l]={}),n<r?a(e[l],c,n+1,r):e[l]=t[l]):(0,o.default)(c)?(e[l]=[],e[l]=e[l].concat(c)):void 0!==c&&(e[l]=c)}}t.default=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0;r<t.length;r+=1)a(e,t[r]);return e}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(240)),i=r(n(57));t.default=function(e,t,n,r){(0,i.default)(t)||(n=t,t=e,e=function(){});var a=Object.create?function(e,t){return Object.create(e,{constructor:{value:t}})}:function(e,t){function n(){}n.prototype=e;var r=new n;return r.constructor=t,r},l=a(t.prototype,e);return e.prototype=(0,o.default)(l,e.prototype),e.superclass=a(t.prototype,t),(0,o.default)(l,n),(0,o.default)(e,r),e}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(56));t.default=function(e,t){if(!(0,o.default)(e))return-1;var n=Array.prototype.indexOf;if(n)return n.call(e,t);for(var r=-1,i=0;i<e.length;i++)if(e[i]===t){r=i;break}return r}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(94)),i=r(n(56)),a=r(n(384)),l=r(n(385)),c=Object.prototype.hasOwnProperty;t.default=function(e){if((0,o.default)(e))return!0;if((0,i.default)(e))return!e.length;var t=(0,a.default)(e);if("Map"===t||"Set"===t)return!e.size;if((0,l.default)(e))return!Object.keys(e).length;for(var n in e)if(c.call(e,n))return!1;return!0}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(57)),i=r(n(387));t.default=function(e,t,n){return(0,o.default)(n)?!!n(e,t):(0,i.default)(e,t)}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(56));t.default=function(e,t){if(!(0,o.default)(e))return e;for(var n=[],r=0;r<e.length;r++){var i=e[r];n.push(t(i,r))}return n}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(94)),i=r(n(169)),a=function(e){return e};t.default=function(e,t){void 0===t&&(t=a);var n={};return(0,i.default)(e)&&!(0,o.default)(e)&&Object.keys(e).forEach((function(r){n[r]=t(e[r],r)})),n}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(85));t.default=function(e,t,n){for(var r=0,i=(0,o.default)(t)?t.split("."):t;e&&r<i.length;)e=e[i[r++]];return void 0===e||r<i.length?n:e}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(169)),i=r(n(85)),a=r(n(86));t.default=function(e,t,n){var r=e,l=(0,i.default)(t)?t.split("."):t;return l.forEach((function(e,t){t<l.length-1?((0,o.default)(r[e])||(r[e]=(0,a.default)(l[t+1])?[]:{}),r=r[e]):r[e]=n})),e}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(106)),i=r(n(138)),a=Object.prototype.hasOwnProperty;t.default=function(e,t){if(null===e||!(0,i.default)(e))return{};var n={};return(0,o.default)(t,(function(t){a.call(e,t)&&(n[t]=e[t])})),n}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(379));t.default=function(e,t){return(0,o.default)(e,(function(e,n,r){return t.includes(r)||(e[r]=n),e}),{})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(e,t,n){var r,o,i,a,l=0;n||(n={});var c=function(){l=!1===n.leading?0:Date.now(),r=null,a=e.apply(o,i),r||(o=i=null)},s=function(){var s=Date.now();l||!1!==n.leading||(l=s);var u=t-(s-l);return o=this,i=arguments,u<=0||u>t?(r&&(clearTimeout(r),r=null),l=s,a=e.apply(o,i),r||(o=i=null)):r||!1===n.trailing||(r=setTimeout(c,u)),a};return s.cancel=function(){clearTimeout(r),l=0,r=o=i=null},s}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(56));t.default=function(e){return(0,o.default)(e)?Array.prototype.slice.call(e):[]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={};t.default=function(e){return r[e=e||"g"]?r[e]+=1:r[e]=1,e+r[e]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(){}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(e){return e}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e)?0:(0,i.default)(e)?e.length:Object.keys(e).length};var o=r(n(94)),i=r(n(56))},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(85)),i=r(n(107)),a=r(n(388));t.default=function(e,t,n,r){void 0===r&&(r="...");var l,c,s=(0,a.default)(r,n),u=(0,o.default)(e)?e:(0,i.default)(e),d=t,f=[];if((0,a.default)(e,n)<=t)return e;for(;l=u.substr(0,16),!((c=(0,a.default)(l,n))+s>d&&c>d);)if(f.push(l),d-=c,!(u=u.substr(16)))return f.join("");for(;l=u.substr(0,1),!((c=(0,a.default)(l,n))+s>d);)if(f.push(l),d-=c,!(u=u.substr(1)))return f.join("");return""+f.join("")+r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(){function e(){this.map={}}return e.prototype.has=function(e){return void 0!==this.map[e]},e.prototype.get=function(e,t){var n=this.map[e];return void 0===n?t:n},e.prototype.set=function(e,t){this.map[e]=t},e.prototype.clear=function(){this.map={}},e.prototype.delete=function(e){delete this.map[e]},e.prototype.size=function(){return Object.keys(this.map).length},e}();t.default=r},function(e,t,n){"use strict";var r=n(6).default;e.exports=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";function r(t,n){return e.exports=r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,r(t,n)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){if(e){if("function"===typeof e.addEventListener)return e.addEventListener(t,n,!1),{remove:function(){e.removeEventListener(t,n,!1)}};if("function"===typeof e.attachEvent)return e.attachEvent("on"+t,n),{remove:function(){e.detachEvent("on"+t,n)}}}}},function(e,t,n){"use strict";var r,o,i,a;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){r||(r=document.createElement("table"),o=document.createElement("tr"),i=/^\s*<(\w+|!)[^>]*>/,a={tr:document.createElement("tbody"),tbody:r,thead:r,tfoot:r,td:o,th:o,"*":document.createElement("div")});var t=i.test(e)&&RegExp.$1;t&&t in a||(t="*");var n=a[t];e="string"===typeof e?e.replace(/(^\s*)|(\s*$)/g,""):e,n.innerHTML=""+e;var l=n.childNodes[0];return l&&n.contains(l)&&n.removeChild(l),l}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=(0,i.default)(e,t),r=parseFloat((0,o.default)(e,"borderTopWidth"))||0,a=parseFloat((0,o.default)(e,"paddingTop"))||0,l=parseFloat((0,o.default)(e,"paddingBottom"))||0,c=parseFloat((0,o.default)(e,"borderBottomWidth"))||0,s=parseFloat((0,o.default)(e,"marginTop"))||0,u=parseFloat((0,o.default)(e,"marginBottom"))||0;return n+r+c+a+l+s+u};var o=r(n(139)),i=r(n(390))},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=(0,i.default)(e,t),r=parseFloat((0,o.default)(e,"borderLeftWidth"))||0,a=parseFloat((0,o.default)(e,"paddingLeft"))||0,l=parseFloat((0,o.default)(e,"paddingRight"))||0,c=parseFloat((0,o.default)(e,"borderRightWidth"))||0,s=parseFloat((0,o.default)(e,"marginRight"))||0,u=parseFloat((0,o.default)(e,"marginLeft"))||0;return n+r+c+a+l+u+s};var o=r(n(139)),i=r(n(391))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return window.devicePixelRatio?window.devicePixelRatio:2}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(e)for(var n in t)t.hasOwnProperty(n)&&(e.style[n]=t[n]);return e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(95),i=n(0),a=n(203),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return r.__assign(r.__assign({},t),{container:null,containerTpl:"<div></div>",updateAutoRender:!0,containerClassName:"",parent:null})},t.prototype.getContainer=function(){return this.get("container")},t.prototype.show=function(){this.get("container").style.display="",this.set("visible",!0)},t.prototype.hide=function(){this.get("container").style.display="none",this.set("visible",!1)},t.prototype.setCapture=function(e){var t=e?"auto":"none";this.getContainer().style.pointerEvents=t,this.set("capture",e)},t.prototype.getBBox=function(){var e=this.getContainer(),t=parseFloat(e.style.left)||0,n=parseFloat(e.style.top)||0;return a.createBBox(t,n,e.clientWidth,e.clientHeight)},t.prototype.clear=function(){var e=this.get("container");a.clearDom(e)},t.prototype.destroy=function(){this.removeEvent(),this.removeDom(),e.prototype.destroy.call(this)},t.prototype.init=function(){e.prototype.init.call(this),this.initContainer(),this.initDom(),this.resetStyles(),this.applyStyles(),this.initEvent(),this.initCapture(),this.initVisible()},t.prototype.initCapture=function(){this.setCapture(this.get("capture"))},t.prototype.initVisible=function(){this.get("visible")?this.show():this.hide()},t.prototype.initDom=function(){},t.prototype.initContainer=function(){var e=this.get("container");if(i.isNil(e)){e=this.createDom();var t=this.get("parent");i.isString(t)&&(t=document.getElementById(t),this.set("parent",t)),t.appendChild(e),this.get("containerId")&&e.setAttribute("id",this.get("containerId")),this.set("container",e)}else i.isString(e)&&(e=document.getElementById(e),this.set("container",e));this.get("parent")||this.set("parent",e.parentNode)},t.prototype.resetStyles=function(){var e=this.get("domStyles"),t=this.get("defaultStyles");e=e?i.deepMix({},t,e):t,this.set("domStyles",e)},t.prototype.applyStyles=function(){var e=this.get("domStyles");if(e){var t=this.getContainer();this.applyChildrenStyles(t,e);var n=this.get("containerClassName");if(n&&a.hasClass(t,n)){var r=e[n];o.modifyCSS(t,r)}}},t.prototype.applyChildrenStyles=function(e,t){i.each(t,(function(t,n){var r=e.getElementsByClassName(n);i.each(r,(function(e){o.modifyCSS(e,t)}))}))},t.prototype.applyStyle=function(e,t){var n=this.get("domStyles");o.modifyCSS(t,n[e])},t.prototype.createDom=function(){var e=this.get("containerTpl");return o.createDom(e)},t.prototype.initEvent=function(){},t.prototype.removeDom=function(){var e=this.get("container");e&&e.parentNode&&e.parentNode.removeChild(e)},t.prototype.removeEvent=function(){},t.prototype.updateInner=function(e){i.hasKey(e,"domStyles")&&(this.resetStyles(),this.applyStyles()),this.resetPosition()},t.prototype.resetPosition=function(){},t}(n(748).default);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(26),i=n(0),a={none:[],point:["x","y"],region:["start","end"],points:["points"],circle:["center","radius","startAngle","endAngle"]},l=function(e){function t(t){var n=e.call(this,t)||this;return n.initCfg(),n}return r.__extends(t,e),t.prototype.getDefaultCfg=function(){return{id:"",name:"",type:"",locationType:"none",offsetX:0,offsetY:0,animate:!1,capture:!0,updateAutoRender:!1,animateOption:{appear:null,update:{duration:400,easing:"easeQuadInOut"},enter:{duration:400,easing:"easeQuadInOut"},leave:{duration:350,easing:"easeQuadIn"}},events:null,defaultCfg:{},visible:!0}},t.prototype.clear=function(){},t.prototype.update=function(e){var t=this,n=this.get("defaultCfg")||{};i.each(e,(function(e,r){var o=e;t.get(r)!==e&&(i.isObject(e)&&n[r]&&(o=i.deepMix({},n[r],e)),t.set(r,o))})),this.updateInner(e),this.afterUpdate(e)},t.prototype.updateInner=function(e){},t.prototype.afterUpdate=function(e){i.hasKey(e,"visible")&&(e.visible?this.show():this.hide()),i.hasKey(e,"capture")&&this.setCapture(e.capture)},t.prototype.getLayoutBBox=function(){return this.getBBox()},t.prototype.getLocationType=function(){return this.get("locationType")},t.prototype.getOffset=function(){return{offsetX:this.get("offsetX"),offsetY:this.get("offsetY")}},t.prototype.setOffset=function(e,t){this.update({offsetX:e,offsetY:t})},t.prototype.setLocation=function(e){var t=r.__assign({},e);this.update(t)},t.prototype.getLocation=function(){var e=this,t={},n=this.get("locationType"),r=a[n];return i.each(r,(function(n){t[n]=e.get(n)})),t},t.prototype.isList=function(){return!1},t.prototype.isSlider=function(){return!1},t.prototype.init=function(){},t.prototype.initCfg=function(){var e=this,t=this.get("defaultCfg");i.each(t,(function(t,n){var r=e.get(n);if(i.isObject(r)){var o=i.deepMix({},t,r);e.set(n,o)}}))},t}(o.Base);t.default=l},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(1),i=n(241),a=r(n(395)),l=n(101),c=r(n(757)),s=r(n(789)),u=(0,i.detect)(),d=u&&"firefox"===u.name,f=function(e){function t(t){var n=e.call(this,t)||this;return n.initContainer(),n.initDom(),n.initEvents(),n.initTimeline(),n}return(0,o.__extends)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return t.cursor="default",t.supportCSSTransform=!1,t},t.prototype.initContainer=function(){var e=this.get("container");(0,l.isString)(e)&&(e=document.getElementById(e),this.set("container",e))},t.prototype.initDom=function(){var e=this.createDom();this.set("el",e),this.get("container").appendChild(e),this.setDOMSize(this.get("width"),this.get("height"))},t.prototype.initEvents=function(){var e=new s.default({canvas:this});e.init(),this.set("eventController",e)},t.prototype.initTimeline=function(){var e=new c.default(this);this.set("timeline",e)},t.prototype.setDOMSize=function(e,t){var n=this.get("el");l.isBrowser&&(n.style.width=e+"px",n.style.height=t+"px")},t.prototype.changeSize=function(e,t){this.setDOMSize(e,t),this.set("width",e),this.set("height",t),this.onCanvasChange("changeSize")},t.prototype.getRenderer=function(){return this.get("renderer")},t.prototype.getCursor=function(){return this.get("cursor")},t.prototype.setCursor=function(e){this.set("cursor",e);var t=this.get("el");l.isBrowser&&t&&(t.style.cursor=e)},t.prototype.getPointByEvent=function(e){if(this.get("supportCSSTransform")){if(d&&!(0,l.isNil)(e.layerX)&&e.layerX!==e.offsetX)return{x:e.layerX,y:e.layerY};if(!(0,l.isNil)(e.offsetX))return{x:e.offsetX,y:e.offsetY}}var t=this.getClientByEvent(e),n=t.x,r=t.y;return this.getPointByClient(n,r)},t.prototype.getClientByEvent=function(e){var t=e;return e.touches&&(t="touchend"===e.type?e.changedTouches[0]:e.touches[0]),{x:t.clientX,y:t.clientY}},t.prototype.getPointByClient=function(e,t){var n=this.get("el").getBoundingClientRect();return{x:e-n.left,y:t-n.top}},t.prototype.getClientByPoint=function(e,t){var n=this.get("el").getBoundingClientRect();return{x:e+n.left,y:t+n.top}},t.prototype.draw=function(){},t.prototype.removeDom=function(){var e=this.get("el");e.parentNode.removeChild(e)},t.prototype.clearEvents=function(){this.get("eventController").destroy()},t.prototype.isCanvas=function(){return!0},t.prototype.getParent=function(){return null},t.prototype.destroy=function(){var t=this.get("timeline");this.get("destroyed")||(this.clear(),t&&t.stop(),this.clearEvents(),this.removeDom(),e.prototype.destroy.call(this))},t}(a.default);t.default=f},function(e,t,n){"use strict";var r,o,i=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function l(){throw new Error("clearTimeout has not been defined")}function c(e){if(r===setTimeout)return setTimeout(e,0);if((r===a||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"===typeof setTimeout?setTimeout:a}catch(e){r=a}try{o="function"===typeof clearTimeout?clearTimeout:l}catch(e){o=l}}();var s,u=[],d=!1,f=-1;function p(){d&&s&&(d=!1,s.length?u=s.concat(u):f=-1,u.length&&h())}function h(){if(!d){var e=c(p);d=!0;for(var t=u.length;t;){for(s=u,u=[];++f<t;)s&&s[f].run();f=-1,t=u.length}s=null,d=!1,function(e){if(o===clearTimeout)return clearTimeout(e);if((o===l||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(e);try{return o(e)}catch(t){try{return o.call(null,e)}catch(t){return o.call(this,e)}}}(e)}}function g(e,t){this.fun=e,this.array=t}function v(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new g(e,t)),1!==u.length||d||c(h)},g.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=v,i.addListener=v,i.once=v,i.off=v,i.removeListener=v,i.removeAllListeners=v,i.emit=v,i.prependListener=v,i.prependOnceListener=v,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,n){"use strict";var r=n(6);Object.defineProperty(t,"__esModule",{value:!0}),t.LDU=function(e,t,n,r){return e[2]=r[2]/r[0],n[0]=r[0],n[1]=r[1],n[3]=r[3]-e[2]*n[1],[e,t,n]},t.add=function(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e[2]=t[2]+n[2],e[3]=t[3]+n[3],e},t.adjoint=function(e,t){var n=t[0];return e[0]=t[3],e[1]=-t[1],e[2]=-t[2],e[3]=n,e},t.clone=function(e){var t=new o.ARRAY_TYPE(4);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t},t.copy=function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e},t.create=function(){var e=new o.ARRAY_TYPE(4);return o.ARRAY_TYPE!=Float32Array&&(e[1]=0,e[2]=0),e[0]=1,e[3]=1,e},t.determinant=function(e){return e[0]*e[3]-e[2]*e[1]},t.equals=function(e,t){var n=e[0],r=e[1],i=e[2],a=e[3],l=t[0],c=t[1],s=t[2],u=t[3];return Math.abs(n-l)<=o.EPSILON*Math.max(1,Math.abs(n),Math.abs(l))&&Math.abs(r-c)<=o.EPSILON*Math.max(1,Math.abs(r),Math.abs(c))&&Math.abs(i-s)<=o.EPSILON*Math.max(1,Math.abs(i),Math.abs(s))&&Math.abs(a-u)<=o.EPSILON*Math.max(1,Math.abs(a),Math.abs(u))},t.exactEquals=function(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]},t.frob=function(e){return Math.hypot(e[0],e[1],e[2],e[3])},t.fromRotation=function(e,t){var n=Math.sin(t),r=Math.cos(t);return e[0]=r,e[1]=n,e[2]=-n,e[3]=r,e},t.fromScaling=function(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=t[1],e},t.fromValues=function(e,t,n,r){var i=new o.ARRAY_TYPE(4);return i[0]=e,i[1]=t,i[2]=n,i[3]=r,i},t.identity=function(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e},t.invert=function(e,t){var n=t[0],r=t[1],o=t[2],i=t[3],a=n*i-o*r;return a?(a=1/a,e[0]=i*a,e[1]=-r*a,e[2]=-o*a,e[3]=n*a,e):null},t.mul=void 0,t.multiply=a,t.multiplyScalar=function(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e[3]=t[3]*n,e},t.multiplyScalarAndAdd=function(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e[2]=t[2]+n[2]*r,e[3]=t[3]+n[3]*r,e},t.rotate=function(e,t,n){var r=t[0],o=t[1],i=t[2],a=t[3],l=Math.sin(n),c=Math.cos(n);return e[0]=r*c+i*l,e[1]=o*c+a*l,e[2]=r*-l+i*c,e[3]=o*-l+a*c,e},t.scale=function(e,t,n){var r=t[0],o=t[1],i=t[2],a=t[3],l=n[0],c=n[1];return e[0]=r*l,e[1]=o*l,e[2]=i*c,e[3]=a*c,e},t.set=function(e,t,n,r,o){return e[0]=t,e[1]=n,e[2]=r,e[3]=o,e},t.str=function(e){return"mat2("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+")"},t.sub=void 0,t.subtract=l,t.transpose=function(e,t){if(e===t){var n=t[1];e[1]=t[2],e[2]=n}else e[0]=t[0],e[1]=t[2],e[2]=t[1],e[3]=t[3];return e};var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var n=i(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&Object.prototype.hasOwnProperty.call(e,l)){var c=a?Object.getOwnPropertyDescriptor(e,l):null;c&&(c.get||c.set)?Object.defineProperty(o,l,c):o[l]=e[l]}return o.default=e,n&&n.set(e,o),o}(n(79));function i(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(i=function(e){return e?n:t})(e)}function a(e,t,n){var r=t[0],o=t[1],i=t[2],a=t[3],l=n[0],c=n[1],s=n[2],u=n[3];return e[0]=r*l+i*c,e[1]=o*l+a*c,e[2]=r*s+i*u,e[3]=o*s+a*u,e}function l(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e[2]=t[2]-n[2],e[3]=t[3]-n[3],e}t.mul=a,t.sub=l},function(e,t,n){"use strict";var r=n(6);Object.defineProperty(t,"__esModule",{value:!0}),t.add=function(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e[2]=t[2]+n[2],e[3]=t[3]+n[3],e[4]=t[4]+n[4],e[5]=t[5]+n[5],e},t.clone=function(e){var t=new o.ARRAY_TYPE(6);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t},t.copy=function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e},t.create=function(){var e=new o.ARRAY_TYPE(6);return o.ARRAY_TYPE!=Float32Array&&(e[1]=0,e[2]=0,e[4]=0,e[5]=0),e[0]=1,e[3]=1,e},t.determinant=function(e){return e[0]*e[3]-e[1]*e[2]},t.equals=function(e,t){var n=e[0],r=e[1],i=e[2],a=e[3],l=e[4],c=e[5],s=t[0],u=t[1],d=t[2],f=t[3],p=t[4],h=t[5];return Math.abs(n-s)<=o.EPSILON*Math.max(1,Math.abs(n),Math.abs(s))&&Math.abs(r-u)<=o.EPSILON*Math.max(1,Math.abs(r),Math.abs(u))&&Math.abs(i-d)<=o.EPSILON*Math.max(1,Math.abs(i),Math.abs(d))&&Math.abs(a-f)<=o.EPSILON*Math.max(1,Math.abs(a),Math.abs(f))&&Math.abs(l-p)<=o.EPSILON*Math.max(1,Math.abs(l),Math.abs(p))&&Math.abs(c-h)<=o.EPSILON*Math.max(1,Math.abs(c),Math.abs(h))},t.exactEquals=function(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]&&e[4]===t[4]&&e[5]===t[5]},t.frob=function(e){return Math.hypot(e[0],e[1],e[2],e[3],e[4],e[5],1)},t.fromRotation=function(e,t){var n=Math.sin(t),r=Math.cos(t);return e[0]=r,e[1]=n,e[2]=-n,e[3]=r,e[4]=0,e[5]=0,e},t.fromScaling=function(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=t[1],e[4]=0,e[5]=0,e},t.fromTranslation=function(e,t){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=t[0],e[5]=t[1],e},t.fromValues=function(e,t,n,r,i,a){var l=new o.ARRAY_TYPE(6);return l[0]=e,l[1]=t,l[2]=n,l[3]=r,l[4]=i,l[5]=a,l},t.identity=function(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e},t.invert=function(e,t){var n=t[0],r=t[1],o=t[2],i=t[3],a=t[4],l=t[5],c=n*i-r*o;return c?(c=1/c,e[0]=i*c,e[1]=-r*c,e[2]=-o*c,e[3]=n*c,e[4]=(o*l-i*a)*c,e[5]=(r*a-n*l)*c,e):null},t.mul=void 0,t.multiply=a,t.multiplyScalar=function(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e[3]=t[3]*n,e[4]=t[4]*n,e[5]=t[5]*n,e},t.multiplyScalarAndAdd=function(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e[2]=t[2]+n[2]*r,e[3]=t[3]+n[3]*r,e[4]=t[4]+n[4]*r,e[5]=t[5]+n[5]*r,e},t.rotate=function(e,t,n){var r=t[0],o=t[1],i=t[2],a=t[3],l=t[4],c=t[5],s=Math.sin(n),u=Math.cos(n);return e[0]=r*u+i*s,e[1]=o*u+a*s,e[2]=r*-s+i*u,e[3]=o*-s+a*u,e[4]=l,e[5]=c,e},t.scale=function(e,t,n){var r=t[0],o=t[1],i=t[2],a=t[3],l=t[4],c=t[5],s=n[0],u=n[1];return e[0]=r*s,e[1]=o*s,e[2]=i*u,e[3]=a*u,e[4]=l,e[5]=c,e},t.set=function(e,t,n,r,o,i,a){return e[0]=t,e[1]=n,e[2]=r,e[3]=o,e[4]=i,e[5]=a,e},t.str=function(e){return"mat2d("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+")"},t.sub=void 0,t.subtract=l,t.translate=function(e,t,n){var r=t[0],o=t[1],i=t[2],a=t[3],l=t[4],c=t[5],s=n[0],u=n[1];return e[0]=r,e[1]=o,e[2]=i,e[3]=a,e[4]=r*s+i*u+l,e[5]=o*s+a*u+c,e};var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var n=i(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&Object.prototype.hasOwnProperty.call(e,l)){var c=a?Object.getOwnPropertyDescriptor(e,l):null;c&&(c.get||c.set)?Object.defineProperty(o,l,c):o[l]=e[l]}return o.default=e,n&&n.set(e,o),o}(n(79));function i(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(i=function(e){return e?n:t})(e)}function a(e,t,n){var r=t[0],o=t[1],i=t[2],a=t[3],l=t[4],c=t[5],s=n[0],u=n[1],d=n[2],f=n[3],p=n[4],h=n[5];return e[0]=r*s+i*u,e[1]=o*s+a*u,e[2]=r*d+i*f,e[3]=o*d+a*f,e[4]=r*p+i*h+l,e[5]=o*p+a*h+c,e}function l(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e[2]=t[2]-n[2],e[3]=t[3]-n[3],e[4]=t[4]-n[4],e[5]=t[5]-n[5],e}t.mul=a,t.sub=l},function(e,t,n){"use strict";var r=n(6);Object.defineProperty(t,"__esModule",{value:!0}),t.add=function(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e[2]=t[2]+n[2],e[3]=t[3]+n[3],e[4]=t[4]+n[4],e[5]=t[5]+n[5],e[6]=t[6]+n[6],e[7]=t[7]+n[7],e},t.clone=function(e){var t=new o.ARRAY_TYPE(8);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t},t.conjugate=function(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=t[3],e[4]=-t[4],e[5]=-t[5],e[6]=-t[6],e[7]=t[7],e},t.copy=u,t.create=function(){var e=new o.ARRAY_TYPE(8);return o.ARRAY_TYPE!=Float32Array&&(e[0]=0,e[1]=0,e[2]=0,e[4]=0,e[5]=0,e[6]=0,e[7]=0),e[3]=1,e},t.dot=void 0,t.equals=function(e,t){var n=e[0],r=e[1],i=e[2],a=e[3],l=e[4],c=e[5],s=e[6],u=e[7],d=t[0],f=t[1],p=t[2],h=t[3],g=t[4],v=t[5],m=t[6],y=t[7];return Math.abs(n-d)<=o.EPSILON*Math.max(1,Math.abs(n),Math.abs(d))&&Math.abs(r-f)<=o.EPSILON*Math.max(1,Math.abs(r),Math.abs(f))&&Math.abs(i-p)<=o.EPSILON*Math.max(1,Math.abs(i),Math.abs(p))&&Math.abs(a-h)<=o.EPSILON*Math.max(1,Math.abs(a),Math.abs(h))&&Math.abs(l-g)<=o.EPSILON*Math.max(1,Math.abs(l),Math.abs(g))&&Math.abs(c-v)<=o.EPSILON*Math.max(1,Math.abs(c),Math.abs(v))&&Math.abs(s-m)<=o.EPSILON*Math.max(1,Math.abs(s),Math.abs(m))&&Math.abs(u-y)<=o.EPSILON*Math.max(1,Math.abs(u),Math.abs(y))},t.exactEquals=function(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]&&e[4]===t[4]&&e[5]===t[5]&&e[6]===t[6]&&e[7]===t[7]},t.fromMat4=function(e,t){var n=i.create();a.getRotation(n,t);var r=new o.ARRAY_TYPE(3);return a.getTranslation(r,t),s(e,n,r),e},t.fromRotation=function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=0,e[5]=0,e[6]=0,e[7]=0,e},t.fromRotationTranslation=s,t.fromRotationTranslationValues=function(e,t,n,r,i,a,l){var c=new o.ARRAY_TYPE(8);c[0]=e,c[1]=t,c[2]=n,c[3]=r;var s=.5*i,u=.5*a,d=.5*l;return c[4]=s*r+u*n-d*t,c[5]=u*r+d*e-s*n,c[6]=d*r+s*t-u*e,c[7]=-s*e-u*t-d*n,c},t.fromTranslation=function(e,t){return e[0]=0,e[1]=0,e[2]=0,e[3]=1,e[4]=.5*t[0],e[5]=.5*t[1],e[6]=.5*t[2],e[7]=0,e},t.fromValues=function(e,t,n,r,i,a,l,c){var s=new o.ARRAY_TYPE(8);return s[0]=e,s[1]=t,s[2]=n,s[3]=r,s[4]=i,s[5]=a,s[6]=l,s[7]=c,s},t.getDual=function(e,t){return e[0]=t[4],e[1]=t[5],e[2]=t[6],e[3]=t[7],e},t.getReal=void 0,t.getTranslation=function(e,t){var n=t[4],r=t[5],o=t[6],i=t[7],a=-t[0],l=-t[1],c=-t[2],s=t[3];return e[0]=2*(n*s+i*a+r*c-o*l),e[1]=2*(r*s+i*l+o*a-n*c),e[2]=2*(o*s+i*c+n*l-r*a),e},t.identity=function(e){return e[0]=0,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e[6]=0,e[7]=0,e},t.invert=function(e,t){var n=h(t);return e[0]=-t[0]/n,e[1]=-t[1]/n,e[2]=-t[2]/n,e[3]=t[3]/n,e[4]=-t[4]/n,e[5]=-t[5]/n,e[6]=-t[6]/n,e[7]=t[7]/n,e},t.length=t.len=void 0,t.lerp=function(e,t,n,r){var o=1-r;return f(t,n)<0&&(r=-r),e[0]=t[0]*o+n[0]*r,e[1]=t[1]*o+n[1]*r,e[2]=t[2]*o+n[2]*r,e[3]=t[3]*o+n[3]*r,e[4]=t[4]*o+n[4]*r,e[5]=t[5]*o+n[5]*r,e[6]=t[6]*o+n[6]*r,e[7]=t[7]*o+n[7]*r,e},t.mul=void 0,t.multiply=d,t.normalize=function(e,t){var n=h(t);if(n>0){n=Math.sqrt(n);var r=t[0]/n,o=t[1]/n,i=t[2]/n,a=t[3]/n,l=t[4],c=t[5],s=t[6],u=t[7],d=r*l+o*c+i*s+a*u;e[0]=r,e[1]=o,e[2]=i,e[3]=a,e[4]=(l-r*d)/n,e[5]=(c-o*d)/n,e[6]=(s-i*d)/n,e[7]=(u-a*d)/n}return e},t.rotateAroundAxis=function(e,t,n,r){if(Math.abs(r)<o.EPSILON)return u(e,t);var i=Math.hypot(n[0],n[1],n[2]);r*=.5;var a=Math.sin(r),l=a*n[0]/i,c=a*n[1]/i,s=a*n[2]/i,d=Math.cos(r),f=t[0],p=t[1],h=t[2],g=t[3];e[0]=f*d+g*l+p*s-h*c,e[1]=p*d+g*c+h*l-f*s,e[2]=h*d+g*s+f*c-p*l,e[3]=g*d-f*l-p*c-h*s;var v=t[4],m=t[5],y=t[6],b=t[7];return e[4]=v*d+b*l+m*s-y*c,e[5]=m*d+b*c+y*l-v*s,e[6]=y*d+b*s+v*c-m*l,e[7]=b*d-v*l-m*c-y*s,e},t.rotateByQuatAppend=function(e,t,n){var r=n[0],o=n[1],i=n[2],a=n[3],l=t[0],c=t[1],s=t[2],u=t[3];return e[0]=l*a+u*r+c*i-s*o,e[1]=c*a+u*o+s*r-l*i,e[2]=s*a+u*i+l*o-c*r,e[3]=u*a-l*r-c*o-s*i,l=t[4],c=t[5],s=t[6],u=t[7],e[4]=l*a+u*r+c*i-s*o,e[5]=c*a+u*o+s*r-l*i,e[6]=s*a+u*i+l*o-c*r,e[7]=u*a-l*r-c*o-s*i,e},t.rotateByQuatPrepend=function(e,t,n){var r=t[0],o=t[1],i=t[2],a=t[3],l=n[0],c=n[1],s=n[2],u=n[3];return e[0]=r*u+a*l+o*s-i*c,e[1]=o*u+a*c+i*l-r*s,e[2]=i*u+a*s+r*c-o*l,e[3]=a*u-r*l-o*c-i*s,l=n[4],c=n[5],s=n[6],u=n[7],e[4]=r*u+a*l+o*s-i*c,e[5]=o*u+a*c+i*l-r*s,e[6]=i*u+a*s+r*c-o*l,e[7]=a*u-r*l-o*c-i*s,e},t.rotateX=function(e,t,n){var r=-t[0],o=-t[1],a=-t[2],l=t[3],c=t[4],s=t[5],u=t[6],d=t[7],f=c*l+d*r+s*a-u*o,p=s*l+d*o+u*r-c*a,h=u*l+d*a+c*o-s*r,g=d*l-c*r-s*o-u*a;return i.rotateX(e,t,n),r=e[0],o=e[1],a=e[2],l=e[3],e[4]=f*l+g*r+p*a-h*o,e[5]=p*l+g*o+h*r-f*a,e[6]=h*l+g*a+f*o-p*r,e[7]=g*l-f*r-p*o-h*a,e},t.rotateY=function(e,t,n){var r=-t[0],o=-t[1],a=-t[2],l=t[3],c=t[4],s=t[5],u=t[6],d=t[7],f=c*l+d*r+s*a-u*o,p=s*l+d*o+u*r-c*a,h=u*l+d*a+c*o-s*r,g=d*l-c*r-s*o-u*a;return i.rotateY(e,t,n),r=e[0],o=e[1],a=e[2],l=e[3],e[4]=f*l+g*r+p*a-h*o,e[5]=p*l+g*o+h*r-f*a,e[6]=h*l+g*a+f*o-p*r,e[7]=g*l-f*r-p*o-h*a,e},t.rotateZ=function(e,t,n){var r=-t[0],o=-t[1],a=-t[2],l=t[3],c=t[4],s=t[5],u=t[6],d=t[7],f=c*l+d*r+s*a-u*o,p=s*l+d*o+u*r-c*a,h=u*l+d*a+c*o-s*r,g=d*l-c*r-s*o-u*a;return i.rotateZ(e,t,n),r=e[0],o=e[1],a=e[2],l=e[3],e[4]=f*l+g*r+p*a-h*o,e[5]=p*l+g*o+h*r-f*a,e[6]=h*l+g*a+f*o-p*r,e[7]=g*l-f*r-p*o-h*a,e},t.scale=function(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e[3]=t[3]*n,e[4]=t[4]*n,e[5]=t[5]*n,e[6]=t[6]*n,e[7]=t[7]*n,e},t.set=function(e,t,n,r,o,i,a,l,c){return e[0]=t,e[1]=n,e[2]=r,e[3]=o,e[4]=i,e[5]=a,e[6]=l,e[7]=c,e},t.setDual=function(e,t){return e[4]=t[0],e[5]=t[1],e[6]=t[2],e[7]=t[3],e},t.squaredLength=t.sqrLen=t.setReal=void 0,t.str=function(e){return"quat2("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+")"},t.translate=function(e,t,n){var r=t[0],o=t[1],i=t[2],a=t[3],l=.5*n[0],c=.5*n[1],s=.5*n[2],u=t[4],d=t[5],f=t[6],p=t[7];return e[0]=r,e[1]=o,e[2]=i,e[3]=a,e[4]=a*l+o*s-i*c+u,e[5]=a*c+i*l-r*s+d,e[6]=a*s+r*c-o*l+f,e[7]=-r*l-o*c-i*s+p,e};var o=c(n(79)),i=c(n(399)),a=c(n(398));function l(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}function c(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var c=i?Object.getOwnPropertyDescriptor(e,a):null;c&&(c.get||c.set)?Object.defineProperty(o,a,c):o[a]=e[a]}return o.default=e,n&&n.set(e,o),o}function s(e,t,n){var r=.5*n[0],o=.5*n[1],i=.5*n[2],a=t[0],l=t[1],c=t[2],s=t[3];return e[0]=a,e[1]=l,e[2]=c,e[3]=s,e[4]=r*s+o*c-i*l,e[5]=o*s+i*a-r*c,e[6]=i*s+r*l-o*a,e[7]=-r*a-o*l-i*c,e}function u(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e}function d(e,t,n){var r=t[0],o=t[1],i=t[2],a=t[3],l=n[4],c=n[5],s=n[6],u=n[7],d=t[4],f=t[5],p=t[6],h=t[7],g=n[0],v=n[1],m=n[2],y=n[3];return e[0]=r*y+a*g+o*m-i*v,e[1]=o*y+a*v+i*g-r*m,e[2]=i*y+a*m+r*v-o*g,e[3]=a*y-r*g-o*v-i*m,e[4]=r*u+a*l+o*s-i*c+d*y+h*g+f*m-p*v,e[5]=o*u+a*c+i*l-r*s+f*y+h*v+p*g-d*m,e[6]=i*u+a*s+r*c-o*l+p*y+h*m+d*v-f*g,e[7]=a*u-r*l-o*c-i*s+h*y-d*g-f*v-p*m,e}t.getReal=i.copy,t.setReal=i.copy,t.mul=d;var f=t.dot=i.dot,p=t.length=i.length,h=(t.len=p,t.squaredLength=i.squaredLength);t.sqrLen=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.angleTo=function(e,t,n){var o=r.vec2.angle(e,t),i=l(e,t)>=0;return n?i?2*Math.PI-o:o:i?o:2*Math.PI-o},t.direction=l,t.leftRotate=i,t.leftScale=a,t.leftTranslate=o,t.transform=function(e,t){for(var n=e?[].concat(e):[1,0,0,0,1,0,0,0,1],l=0,c=t.length;l<c;l++){var s=t[l];switch(s[0]){case"t":o(n,n,[s[1],s[2]]);break;case"s":a(n,n,[s[1],s[2]]);break;case"r":i(n,n,s[1]);break;case"m":u=n,d=n,f=s[1],r.mat3.multiply(u,f,d)}}var u,d,f;return n},t.vertical=function(e,t,n){return n?(e[0]=t[1],e[1]=-1*t[0]):(e[0]=-1*t[1],e[1]=t[0]),e};var r=n(170);function o(e,t,n){var o=[0,0,0,0,0,0,0,0,0];return r.mat3.fromTranslation(o,n),r.mat3.multiply(e,o,t)}function i(e,t,n){var o=[0,0,0,0,0,0,0,0,0];return r.mat3.fromRotation(o,n),r.mat3.multiply(e,o,t)}function a(e,t,n){var o=[0,0,0,0,0,0,0,0,0];return r.mat3.fromScaling(o,n),r.mat3.multiply(e,o,t)}function l(e,t){return e[0]*t[1]-t[0]*e[1]}},function(e,t,n){"use strict";var r=n(6);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(0),i=d(n(758)),a=n(761),l=n(410),c=d(n(392)),s=n(788);function u(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}function d(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(o,a,l):o[a]=e[a]}return o.default=e,n&&n.set(e,o),o}var f=[1,0,0,0,1,0,0,0,1];function p(e,t,n){var r,i=t.startTime;if(n<i+t.delay||t._paused)return!1;var u=t.duration,d=t.easing,p=(0,l.getEasing)(d);if(n=n-i-t.delay,t.repeat)r=p(r=n%u/u);else{if(!((r=n/u)<1))return t.onFrame?e.attr(t.onFrame(1)):e.attr(t.toAttrs),!0;r=p(r)}if(t.onFrame){var h=t.onFrame(r);e.attr(h)}else!function(e,t,n){var r={},i=t.fromAttrs,l=t.toAttrs;if(!e.destroyed){var u;for(var d in l)if(!(0,o.isEqual)(i[d],l[d]))if("path"===d){var p=l[d],h=i[d];p.length>h.length?(p=c.parsePathString(l[d]),h=c.parsePathString(i[d]),h=c.fillPathByDiff(h,p),h=c.formatPath(h,p),t.fromAttrs.path=h,t.toAttrs.path=p):t.pathFormatted||(p=c.parsePathString(l[d]),h=c.parsePathString(i[d]),h=c.formatPath(h,p),t.fromAttrs.path=h,t.toAttrs.path=p,t.pathFormatted=!0),r[d]=[];for(var g=0;g<p.length;g++){for(var v=p[g],m=h[g],y=[],b=0;b<v.length;b++)(0,o.isNumber)(v[b])&&m&&(0,o.isNumber)(m[b])?(u=(0,a.interpolate)(m[b],v[b]),y.push(u(n))):y.push(v[b]);r[d].push(y)}}else if("matrix"===d){var x=(0,a.interpolateArray)(i[d]||f,l[d]||f)(n);r[d]=x}else(0,s.isColorProp)(d)&&(0,s.isGradientColor)(l[d])?r[d]=l[d]:(0,o.isFunction)(l[d])||(u=(0,a.interpolate)(i[d],l[d]),r[d]=u(n));e.attr(r)}}(e,t,r);return!1}var h=function(){function e(e){this.animators=[],this.current=0,this.timer=null,this.canvas=e}return e.prototype.initTimer=function(){var e,t,n,r=this;this.timer=i.timer((function(o){if(r.current=o,r.animators.length>0){for(var i=r.animators.length-1;i>=0;i--)if((e=r.animators[i]).destroyed)r.removeAnimator(i);else{if(!e.isAnimatePaused())for(var a=(t=e.get("animations")).length-1;a>=0;a--)n=t[a],p(e,n,o)&&(t.splice(a,1),n.callback&&n.callback());0===t.length&&r.removeAnimator(i)}r.canvas.get("autoDraw")||r.canvas.draw()}}))},e.prototype.addAnimator=function(e){this.animators.push(e)},e.prototype.removeAnimator=function(e){this.animators.splice(e,1)},e.prototype.isAnimating=function(){return!!this.animators.length},e.prototype.stop=function(){this.timer&&this.timer.stop()},e.prototype.stopAllAnimations=function(e){void 0===e&&(e=!0),this.animators.forEach((function(t){t.stopAnimate(e)})),this.animators=[],this.canvas.draw()},e.prototype.getTime=function(){return this.current},e}();t.default=h},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"interval",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"now",{enumerable:!0,get:function(){return o.now}}),Object.defineProperty(t,"timeout",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"timer",{enumerable:!0,get:function(){return o.timer}}),Object.defineProperty(t,"timerFlush",{enumerable:!0,get:function(){return o.timerFlush}});var o=n(243),i=r(n(759)),a=r(n(760))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var o=new r.Timer;return t=null==t?0:+t,o.restart((function(n){o.stop(),e(n+t)}),t,n),o};var r=n(243)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var o=new r.Timer,i=t;return null==t?(o.restart(e,t,n),o):(t=+t,n=null==n?(0,r.now)():+n,o.restart((function r(a){a+=i,o.restart(r,i+=t,n),e(a)}),t,n),o)};var r=n(243)},function(e,t,n){"use strict";var r=n(2),o=n(6);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"interpolate",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"interpolateArray",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"interpolateBasis",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"interpolateBasisClosed",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"interpolateCubehelix",{enumerable:!0,get:function(){return O.default}}),Object.defineProperty(t,"interpolateCubehelixLong",{enumerable:!0,get:function(){return O.cubehelixLong}}),Object.defineProperty(t,"interpolateDate",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"interpolateDiscrete",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"interpolateHcl",{enumerable:!0,get:function(){return S.default}}),Object.defineProperty(t,"interpolateHclLong",{enumerable:!0,get:function(){return S.hclLong}}),Object.defineProperty(t,"interpolateHsl",{enumerable:!0,get:function(){return x.default}}),Object.defineProperty(t,"interpolateHslLong",{enumerable:!0,get:function(){return x.hslLong}}),Object.defineProperty(t,"interpolateHue",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"interpolateLab",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(t,"interpolateNumber",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(t,"interpolateNumberArray",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(t,"interpolateObject",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(t,"interpolateRgb",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(t,"interpolateRgbBasis",{enumerable:!0,get:function(){return b.rgbBasis}}),Object.defineProperty(t,"interpolateRgbBasisClosed",{enumerable:!0,get:function(){return b.rgbBasisClosed}}),Object.defineProperty(t,"interpolateRound",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(t,"interpolateString",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(t,"interpolateTransformCss",{enumerable:!0,get:function(){return m.interpolateTransformCss}}),Object.defineProperty(t,"interpolateTransformSvg",{enumerable:!0,get:function(){return m.interpolateTransformSvg}}),Object.defineProperty(t,"interpolateZoom",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(t,"piecewise",{enumerable:!0,get:function(){return _.default}}),Object.defineProperty(t,"quantize",{enumerable:!0,get:function(){return C.default}});var i=r(n(172)),a=r(n(406)),l=r(n(246)),c=r(n(404)),s=r(n(407)),u=r(n(764)),d=r(n(765)),f=r(n(173)),p=r(n(247)),h=r(n(408)),g=r(n(766)),v=r(n(409)),m=n(767),y=r(n(770)),b=P(n(403)),x=P(n(771)),w=r(n(772)),S=P(n(773)),O=P(n(774)),_=r(n(775)),C=r(n(776));function E(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(E=function(e){return e?n:t})(e)}function P(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!==typeof e)return{default:e};var n=E(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(r,a,l):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}},function(e,t,n){"use strict";var r=n(6);Object.defineProperty(t,"__esModule",{value:!0}),t.Hcl=_,t.Lab=m,t.default=v,t.gray=function(e,t){return new m(e,0,0,null==t?1:t)},t.hcl=O,t.lch=function(e,t,n,r){return 1===arguments.length?S(e):new _(n,t,e,null==r?1:r)};var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var c=i?Object.getOwnPropertyDescriptor(e,a):null;c&&(c.get||c.set)?Object.defineProperty(o,a,c):o[a]=e[a]}return o.default=e,n&&n.set(e,o),o}(n(245)),i=n(244),a=n(402);function l(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}var c=.96422,s=1,u=.82521,d=4/29,f=6/29,p=3*f*f,h=f*f*f;function g(e){if(e instanceof m)return new m(e.l,e.a,e.b,e.opacity);if(e instanceof _)return C(e);e instanceof i.Rgb||(e=(0,i.rgbConvert)(e));var t,n,r=w(e.r),o=w(e.g),a=w(e.b),l=y((.2225045*r+.7168786*o+.0606169*a)/s);return r===o&&o===a?t=n=l:(t=y((.4360747*r+.3850649*o+.1430804*a)/c),n=y((.0139322*r+.0971045*o+.7141733*a)/u)),new m(116*l-16,500*(t-l),200*(l-n),e.opacity)}function v(e,t,n,r){return 1===arguments.length?g(e):new m(e,t,n,null==r?1:r)}function m(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function y(e){return e>h?Math.pow(e,1/3):e/p+d}function b(e){return e>f?e*e*e:p*(e-d)}function x(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function w(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function S(e){if(e instanceof _)return new _(e.h,e.c,e.l,e.opacity);if(e instanceof m||(e=g(e)),0===e.a&&0===e.b)return new _(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*a.degrees;return new _(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function O(e,t,n,r){return 1===arguments.length?S(e):new _(e,t,n,null==r?1:r)}function _(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function C(e){if(isNaN(e.h))return new m(e.l,0,0,e.opacity);var t=e.h*a.radians;return new m(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}(0,o.default)(m,v,(0,o.extend)(i.Color,{brighter:function(e){return new m(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker:function(e){return new m(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb:function(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return t=c*b(t),e=s*b(e),n=u*b(n),new i.Rgb(x(3.1338561*t-1.6168667*e-.4906146*n),x(-.9787684*t+1.9161415*e+.033454*n),x(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),(0,o.default)(_,O,(0,o.extend)(i.Color,{brighter:function(e){return new _(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker:function(e){return new _(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb:function(){return C(this).rgb()}}))},function(e,t,n){"use strict";var r=n(6);Object.defineProperty(t,"__esModule",{value:!0}),t.Cubehelix=m,t.default=v;var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var c=i?Object.getOwnPropertyDescriptor(e,a):null;c&&(c.get||c.set)?Object.defineProperty(o,a,c):o[a]=e[a]}return o.default=e,n&&n.set(e,o),o}(n(245)),i=n(244),a=n(402);function l(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}var c=-.14861,s=1.78277,u=-.29227,d=-.90649,f=1.97294,p=f*d,h=f*s,g=s*u-d*c;function v(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof m)return new m(e.h,e.s,e.l,e.opacity);e instanceof i.Rgb||(e=(0,i.rgbConvert)(e));var t=e.r/255,n=e.g/255,r=e.b/255,o=(g*r+p*t-h*n)/(g+p-h),l=r-o,c=(f*(n-o)-u*l)/d,s=Math.sqrt(c*c+l*l)/(f*o*(1-o)),v=s?Math.atan2(c,l)*a.degrees-120:NaN;return new m(v<0?v+360:v,s,o,e.opacity)}(e):new m(e,t,n,null==r?1:r)}function m(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}(0,o.default)(m,v,(0,o.extend)(i.Color,{brighter:function(e){return e=null==e?i.brighter:Math.pow(i.brighter,e),new m(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?i.darker:Math.pow(i.darker,e),new m(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*a.radians,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),o=Math.sin(e);return new i.Rgb(255*(t+n*(c*r+s*o)),255*(t+n*(u*r+d*o)),255*(t+n*(f*r)),this.opacity)}}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=(0,r.hue)(+e,+t);return function(e){var t=n(e);return t-360*Math.floor(t/360)}};var r=n(108)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.interpolateTransformSvg=t.interpolateTransformCss=void 0;var o=r(n(173)),i=n(768);function a(e,t,n,r){function i(e){return e.length?e.pop()+" ":""}return function(a,l){var c=[],s=[];return a=e(a),l=e(l),function(e,r,i,a,l,c){if(e!==i||r!==a){var s=l.push("translate(",null,t,null,n);c.push({i:s-4,x:(0,o.default)(e,i)},{i:s-2,x:(0,o.default)(r,a)})}else(i||a)&&l.push("translate("+i+t+a+n)}(a.translateX,a.translateY,l.translateX,l.translateY,c,s),function(e,t,n,a){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),a.push({i:n.push(i(n)+"rotate(",null,r)-2,x:(0,o.default)(e,t)})):t&&n.push(i(n)+"rotate("+t+r)}(a.rotate,l.rotate,c,s),function(e,t,n,a){e!==t?a.push({i:n.push(i(n)+"skewX(",null,r)-2,x:(0,o.default)(e,t)}):t&&n.push(i(n)+"skewX("+t+r)}(a.skewX,l.skewX,c,s),function(e,t,n,r,a,l){if(e!==n||t!==r){var c=a.push(i(a)+"scale(",null,",",null,")");l.push({i:c-4,x:(0,o.default)(e,n)},{i:c-2,x:(0,o.default)(t,r)})}else 1===n&&1===r||a.push(i(a)+"scale("+n+","+r+")")}(a.scaleX,a.scaleY,l.scaleX,l.scaleY,c,s),a=l=null,function(e){for(var t,n=-1,r=s.length;++n<r;)c[(t=s[n]).i]=t.x(e);return c.join("")}}}t.interpolateTransformCss=a(i.parseCss,"px, ","px)","deg)"),t.interpolateTransformSvg=a(i.parseSvg,", ",")",")")},function(e,t,n){"use strict";var r=n(6);Object.defineProperty(t,"__esModule",{value:!0}),t.parseCss=function(e){var t=new("function"===typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?i.identity:(0,i.default)(t.a,t.b,t.c,t.d,t.e,t.f)},t.parseSvg=function(e){return null==e?i.identity:(o||(o=document.createElementNS("http://www.w3.org/2000/svg","g")),o.setAttribute("transform",e),(e=o.transform.baseVal.consolidate())?(e=e.matrix,(0,i.default)(e.a,e.b,e.c,e.d,e.e,e.f)):i.identity)};var o,i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&Object.prototype.hasOwnProperty.call(e,l)){var c=i?Object.getOwnPropertyDescriptor(e,l):null;c&&(c.get||c.set)?Object.defineProperty(o,l,c):o[l]=e[l]}return o.default=e,n&&n.set(e,o),o}(n(769));function a(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,o,i,a){var l,c,s;return(l=Math.sqrt(e*e+t*t))&&(e/=l,t/=l),(s=e*n+t*o)&&(n-=e*s,o-=t*s),(c=Math.sqrt(n*n+o*o))&&(n/=c,o/=c,s/=c),e*o<t*n&&(e=-e,t=-t,s=-s,l=-l),{translateX:i,translateY:a,rotate:Math.atan2(t,e)*r,skewX:Math.atan(s)*r,scaleX:l,scaleY:c}},t.identity=void 0;var r=180/Math.PI;t.identity={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1}},function(e,t,n){"use strict";function r(e){return((e=Math.exp(e))+1/e)/2}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function e(t,n,o){function i(e,i){var a,l,c=e[0],s=e[1],u=e[2],d=i[0],f=i[1],p=i[2],h=d-c,g=f-s,v=h*h+g*g;if(v<1e-12)l=Math.log(p/u)/t,a=function(e){return[c+e*h,s+e*g,u*Math.exp(t*e*l)]};else{var m=Math.sqrt(v),y=(p*p-u*u+o*v)/(2*u*n*m),b=(p*p-u*u-o*v)/(2*p*n*m),x=Math.log(Math.sqrt(y*y+1)-y),w=Math.log(Math.sqrt(b*b+1)-b);l=(w-x)/t,a=function(e){var o,i=e*l,a=r(x),d=u/(n*m)*(a*(o=t*i+x,((o=Math.exp(2*o))-1)/(o+1))-function(e){return((e=Math.exp(e))-1/e)/2}(x));return[c+d*h,s+d*g,u*a/r(t*i+x)]}}return a.duration=1e3*l*t/Math.SQRT2,a}return i.rho=function(t){var n=Math.max(.001,+t),r=n*n;return e(n,r,r*r)},i}(Math.SQRT2,2,4)},function(e,t,n){"use strict";var r=n(6);Object.defineProperty(t,"__esModule",{value:!0}),t.hslLong=t.default=void 0;var o=n(60),i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&Object.prototype.hasOwnProperty.call(e,l)){var c=i?Object.getOwnPropertyDescriptor(e,l):null;c&&(c.get||c.set)?Object.defineProperty(o,l,c):o[l]=e[l]}return o.default=e,n&&n.set(e,o),o}(n(108));function a(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}function l(e){return function(t,n){var r=e((t=(0,o.hsl)(t)).h,(n=(0,o.hsl)(n)).h),a=(0,i.default)(t.s,n.s),l=(0,i.default)(t.l,n.l),c=(0,i.default)(t.opacity,n.opacity);return function(e){return t.h=r(e),t.s=a(e),t.l=l(e),t.opacity=c(e),t+""}}}t.default=l(i.hue),t.hslLong=l(i.default)},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=(0,i.default)((e=(0,o.lab)(e)).l,(t=(0,o.lab)(t)).l),r=(0,i.default)(e.a,t.a),a=(0,i.default)(e.b,t.b),l=(0,i.default)(e.opacity,t.opacity);return function(t){return e.l=n(t),e.a=r(t),e.b=a(t),e.opacity=l(t),e+""}};var o=n(60),i=r(n(108))},function(e,t,n){"use strict";var r=n(6);Object.defineProperty(t,"__esModule",{value:!0}),t.hclLong=t.default=void 0;var o=n(60),i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&Object.prototype.hasOwnProperty.call(e,l)){var c=i?Object.getOwnPropertyDescriptor(e,l):null;c&&(c.get||c.set)?Object.defineProperty(o,l,c):o[l]=e[l]}return o.default=e,n&&n.set(e,o),o}(n(108));function a(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}function l(e){return function(t,n){var r=e((t=(0,o.hcl)(t)).h,(n=(0,o.hcl)(n)).h),a=(0,i.default)(t.c,n.c),l=(0,i.default)(t.l,n.l),c=(0,i.default)(t.opacity,n.opacity);return function(e){return t.h=r(e),t.c=a(e),t.l=l(e),t.opacity=c(e),t+""}}}t.default=l(i.hue),t.hclLong=l(i.default)},function(e,t,n){"use strict";var r=n(6);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.cubehelixLong=void 0;var o=n(60),i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&Object.prototype.hasOwnProperty.call(e,l)){var c=i?Object.getOwnPropertyDescriptor(e,l):null;c&&(c.get||c.set)?Object.defineProperty(o,l,c):o[l]=e[l]}return o.default=e,n&&n.set(e,o),o}(n(108));function a(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}function l(e){return function t(n){function r(t,r){var a=e((t=(0,o.cubehelix)(t)).h,(r=(0,o.cubehelix)(r)).h),l=(0,i.default)(t.s,r.s),c=(0,i.default)(t.l,r.l),s=(0,i.default)(t.opacity,r.opacity);return function(e){return t.h=a(e),t.s=l(e),t.l=c(Math.pow(e,n)),t.opacity=s(e),t+""}}return n=+n,r.gamma=t,r}(1)}t.default=l(i.hue),t.cubehelixLong=l(i.default)},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){void 0===t&&(t=e,e=o.default);for(var n=0,r=t.length-1,i=t[0],a=new Array(r<0?0:r);n<r;)a[n]=e(i,i=t[++n]);return function(e){var t=Math.max(0,Math.min(r-1,Math.floor(e*=r)));return a[t](e-t)}};var o=r(n(172))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e(r/(t-1));return n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"easeBack",{enumerable:!0,get:function(){return d.backInOut}}),Object.defineProperty(t,"easeBackIn",{enumerable:!0,get:function(){return d.backIn}}),Object.defineProperty(t,"easeBackInOut",{enumerable:!0,get:function(){return d.backInOut}}),Object.defineProperty(t,"easeBackOut",{enumerable:!0,get:function(){return d.backOut}}),Object.defineProperty(t,"easeBounce",{enumerable:!0,get:function(){return u.bounceOut}}),Object.defineProperty(t,"easeBounceIn",{enumerable:!0,get:function(){return u.bounceIn}}),Object.defineProperty(t,"easeBounceInOut",{enumerable:!0,get:function(){return u.bounceInOut}}),Object.defineProperty(t,"easeBounceOut",{enumerable:!0,get:function(){return u.bounceOut}}),Object.defineProperty(t,"easeCircle",{enumerable:!0,get:function(){return s.circleInOut}}),Object.defineProperty(t,"easeCircleIn",{enumerable:!0,get:function(){return s.circleIn}}),Object.defineProperty(t,"easeCircleInOut",{enumerable:!0,get:function(){return s.circleInOut}}),Object.defineProperty(t,"easeCircleOut",{enumerable:!0,get:function(){return s.circleOut}}),Object.defineProperty(t,"easeCubic",{enumerable:!0,get:function(){return i.cubicInOut}}),Object.defineProperty(t,"easeCubicIn",{enumerable:!0,get:function(){return i.cubicIn}}),Object.defineProperty(t,"easeCubicInOut",{enumerable:!0,get:function(){return i.cubicInOut}}),Object.defineProperty(t,"easeCubicOut",{enumerable:!0,get:function(){return i.cubicOut}}),Object.defineProperty(t,"easeElastic",{enumerable:!0,get:function(){return f.elasticOut}}),Object.defineProperty(t,"easeElasticIn",{enumerable:!0,get:function(){return f.elasticIn}}),Object.defineProperty(t,"easeElasticInOut",{enumerable:!0,get:function(){return f.elasticInOut}}),Object.defineProperty(t,"easeElasticOut",{enumerable:!0,get:function(){return f.elasticOut}}),Object.defineProperty(t,"easeExp",{enumerable:!0,get:function(){return c.expInOut}}),Object.defineProperty(t,"easeExpIn",{enumerable:!0,get:function(){return c.expIn}}),Object.defineProperty(t,"easeExpInOut",{enumerable:!0,get:function(){return c.expInOut}}),Object.defineProperty(t,"easeExpOut",{enumerable:!0,get:function(){return c.expOut}}),Object.defineProperty(t,"easeLinear",{enumerable:!0,get:function(){return r.linear}}),Object.defineProperty(t,"easePoly",{enumerable:!0,get:function(){return a.polyInOut}}),Object.defineProperty(t,"easePolyIn",{enumerable:!0,get:function(){return a.polyIn}}),Object.defineProperty(t,"easePolyInOut",{enumerable:!0,get:function(){return a.polyInOut}}),Object.defineProperty(t,"easePolyOut",{enumerable:!0,get:function(){return a.polyOut}}),Object.defineProperty(t,"easeQuad",{enumerable:!0,get:function(){return o.quadInOut}}),Object.defineProperty(t,"easeQuadIn",{enumerable:!0,get:function(){return o.quadIn}}),Object.defineProperty(t,"easeQuadInOut",{enumerable:!0,get:function(){return o.quadInOut}}),Object.defineProperty(t,"easeQuadOut",{enumerable:!0,get:function(){return o.quadOut}}),Object.defineProperty(t,"easeSin",{enumerable:!0,get:function(){return l.sinInOut}}),Object.defineProperty(t,"easeSinIn",{enumerable:!0,get:function(){return l.sinIn}}),Object.defineProperty(t,"easeSinInOut",{enumerable:!0,get:function(){return l.sinInOut}}),Object.defineProperty(t,"easeSinOut",{enumerable:!0,get:function(){return l.sinOut}});var r=n(778),o=n(779),i=n(780),a=n(781),l=n(782),c=n(783),s=n(784),u=n(785),d=n(786),f=n(787)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.linear=function(e){return+e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.quadIn=function(e){return e*e},t.quadInOut=function(e){return((e*=2)<=1?e*e:--e*(2-e)+1)/2},t.quadOut=function(e){return e*(2-e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.cubicIn=function(e){return e*e*e},t.cubicInOut=function(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2},t.cubicOut=function(e){return--e*e*e+1}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.polyOut=t.polyInOut=t.polyIn=void 0,t.polyIn=function e(t){function n(e){return Math.pow(e,t)}return t=+t,n.exponent=e,n}(3),t.polyOut=function e(t){function n(e){return 1-Math.pow(1-e,t)}return t=+t,n.exponent=e,n}(3),t.polyInOut=function e(t){function n(e){return((e*=2)<=1?Math.pow(e,t):2-Math.pow(2-e,t))/2}return t=+t,n.exponent=e,n}(3)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sinIn=function(e){return 1===+e?1:1-Math.cos(e*o)},t.sinInOut=function(e){return(1-Math.cos(r*e))/2},t.sinOut=function(e){return Math.sin(e*o)};var r=Math.PI,o=r/2},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.expIn=function(e){return(0,r.tpmt)(1-+e)},t.expInOut=function(e){return((e*=2)<=1?(0,r.tpmt)(1-e):2-(0,r.tpmt)(e-1))/2},t.expOut=function(e){return 1-(0,r.tpmt)(e)};var r=n(411)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.circleIn=function(e){return 1-Math.sqrt(1-e*e)},t.circleInOut=function(e){return((e*=2)<=1?1-Math.sqrt(1-e*e):Math.sqrt(1-(e-=2)*e)+1)/2},t.circleOut=function(e){return Math.sqrt(1- --e*e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bounceIn=function(e){return 1-p(1-e)},t.bounceInOut=function(e){return((e*=2)<=1?1-p(1-e):p(e-1)+1)/2},t.bounceOut=p;var r=4/11,o=6/11,i=8/11,a=3/4,l=9/11,c=10/11,s=15/16,u=21/22,d=63/64,f=1/r/r;function p(e){return(e=+e)<r?f*e*e:e<i?f*(e-=o)*e+a:e<c?f*(e-=l)*e+s:f*(e-=u)*e+d}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.backOut=t.backInOut=t.backIn=void 0;var r=1.70158;t.backIn=function e(t){function n(e){return(e=+e)*e*(t*(e-1)+e)}return t=+t,n.overshoot=e,n}(r),t.backOut=function e(t){function n(e){return--e*e*((e+1)*t+e)+1}return t=+t,n.overshoot=e,n}(r),t.backInOut=function e(t){function n(e){return((e*=2)<1?e*e*((t+1)*e-t):(e-=2)*e*((t+1)*e+t)+2)/2}return t=+t,n.overshoot=e,n}(r)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.elasticOut=t.elasticInOut=t.elasticIn=void 0;var r=n(411),o=2*Math.PI;t.elasticIn=function e(t,n){var i=Math.asin(1/(t=Math.max(1,t)))*(n/=o);function a(e){return t*(0,r.tpmt)(- --e)*Math.sin((i-e)/n)}return a.amplitude=function(t){return e(t,n*o)},a.period=function(n){return e(t,n)},a}(1,.3),t.elasticOut=function e(t,n){var i=Math.asin(1/(t=Math.max(1,t)))*(n/=o);function a(e){return 1-t*(0,r.tpmt)(e=+e)*Math.sin((e+i)/n)}return a.amplitude=function(t){return e(t,n*o)},a.period=function(n){return e(t,n)},a}(1,.3),t.elasticInOut=function e(t,n){var i=Math.asin(1/(t=Math.max(1,t)))*(n/=o);function a(e){return((e=2*e-1)<0?t*(0,r.tpmt)(-e)*Math.sin((i-e)/n):2-t*(0,r.tpmt)(e)*Math.sin((i+e)/n))/2}return a.amplitude=function(t){return e(t,n*o)},a.period=function(n){return e(t,n)},a}(1,.3)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isGradientColor=t.isColorProp=void 0,t.isColorProp=function(e){return["fill","stroke","fillStyle","strokeStyle"].includes(e)},t.isGradientColor=function(e){return/^[r,R,L,l]{1}[\s]*\(/.test(e)}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(393)),i=n(101),a=["mousedown","mouseup","dblclick","mouseout","mouseover","mousemove","mouseleave","mouseenter","touchstart","touchmove","touchend","dragenter","dragover","dragleave","drop","contextmenu","mousewheel"];function l(e,t,n){n.name=t,n.target=e,n.currentTarget=e,n.delegateTarget=e,e.emit(t,n)}function c(e,t,n){if(n.bubbles){var r=void 0,o=!1;if("mouseenter"===t?(r=n.fromShape,o=!0):"mouseleave"===t&&(o=!0,r=n.toShape),e.isCanvas()&&o)return;if(r&&(0,i.isParent)(e,r))return void(n.bubbles=!1);n.name=t,n.currentTarget=e,n.delegateTarget=e,e.emit(t,n)}}var s=function(){function e(e){var t=this;this.draggingShape=null,this.dragging=!1,this.currentShape=null,this.mousedownShape=null,this.mousedownPoint=null,this._eventCallback=function(e){var n=e.type;t._triggerEvent(n,e)},this._onDocumentMove=function(e){if(t.canvas.get("el")!==e.target&&(t.dragging||t.currentShape)){var n=t._getPointInfo(e);t.dragging&&t._emitEvent("drag",e,n,t.draggingShape)}},this._onDocumentMouseUp=function(e){if(t.canvas.get("el")!==e.target&&t.dragging){var n=t._getPointInfo(e);t.draggingShape&&t._emitEvent("drop",e,n,null),t._emitEvent("dragend",e,n,t.draggingShape),t._afterDrag(t.draggingShape,n,e)}},this.canvas=e.canvas}return e.prototype.init=function(){this._bindEvents()},e.prototype._bindEvents=function(){var e=this,t=this.canvas.get("el");(0,i.each)(a,(function(n){t.addEventListener(n,e._eventCallback)})),document&&(document.addEventListener("mousemove",this._onDocumentMove),document.addEventListener("mouseup",this._onDocumentMouseUp))},e.prototype._clearEvents=function(){var e=this,t=this.canvas.get("el");(0,i.each)(a,(function(n){t.removeEventListener(n,e._eventCallback)})),document&&(document.removeEventListener("mousemove",this._onDocumentMove),document.removeEventListener("mouseup",this._onDocumentMouseUp))},e.prototype._getEventObj=function(e,t,n,r,i,a){var l=new o.default(e,t);return l.fromShape=i,l.toShape=a,l.x=n.x,l.y=n.y,l.clientX=n.clientX,l.clientY=n.clientY,l.propagationPath.push(r),l},e.prototype._getShape=function(e,t){return this.canvas.getShape(e.x,e.y,t)},e.prototype._getPointInfo=function(e){var t=this.canvas,n=t.getClientByEvent(e),r=t.getPointByEvent(e);return{x:r.x,y:r.y,clientX:n.x,clientY:n.y}},e.prototype._triggerEvent=function(e,t){var n=this._getPointInfo(t),r=this._getShape(n,t),o=this["_on"+e],i=!1;if(o)o.call(this,n,r,t);else{var a=this.currentShape;"mouseenter"===e||"dragenter"===e||"mouseover"===e?(this._emitEvent(e,t,n,null,null,r),r&&this._emitEvent(e,t,n,r,null,r),"mouseenter"===e&&this.draggingShape&&this._emitEvent("dragenter",t,n,null)):"mouseleave"===e||"dragleave"===e||"mouseout"===e?(i=!0,a&&this._emitEvent(e,t,n,a,a,null),this._emitEvent(e,t,n,null,a,null),"mouseleave"===e&&this.draggingShape&&this._emitEvent("dragleave",t,n,null)):this._emitEvent(e,t,n,r,null,null)}if(i||(this.currentShape=r),r&&!r.get("destroyed")){var l=this.canvas;l.get("el").style.cursor=r.attr("cursor")||l.get("cursor")}},e.prototype._onmousedown=function(e,t,n){0===n.button&&(this.mousedownShape=t,this.mousedownPoint=e,this.mousedownTimeStamp=n.timeStamp),this._emitEvent("mousedown",n,e,t,null,null)},e.prototype._emitMouseoverEvents=function(e,t,n,r){var o=this.canvas.get("el");n!==r&&(n&&(this._emitEvent("mouseout",e,t,n,n,r),this._emitEvent("mouseleave",e,t,n,n,r),r&&!r.get("destroyed")||(o.style.cursor=this.canvas.get("cursor"))),r&&(this._emitEvent("mouseover",e,t,r,n,r),this._emitEvent("mouseenter",e,t,r,n,r)))},e.prototype._emitDragoverEvents=function(e,t,n,r,o){r?(r!==n&&(n&&this._emitEvent("dragleave",e,t,n,n,r),this._emitEvent("dragenter",e,t,r,n,r)),o||this._emitEvent("dragover",e,t,r)):n&&this._emitEvent("dragleave",e,t,n,n,r),o&&this._emitEvent("dragover",e,t,r)},e.prototype._afterDrag=function(e,t,n){e&&(e.set("capture",!0),this.draggingShape=null),this.dragging=!1;var r=this._getShape(t,n);r!==e&&this._emitMouseoverEvents(n,t,e,r),this.currentShape=r},e.prototype._onmouseup=function(e,t,n){if(0===n.button){var r=this.draggingShape;this.dragging?(r&&this._emitEvent("drop",n,e,t),this._emitEvent("dragend",n,e,r),this._afterDrag(r,e,n)):(this._emitEvent("mouseup",n,e,t),t===this.mousedownShape&&this._emitEvent("click",n,e,t),this.mousedownShape=null,this.mousedownPoint=null)}},e.prototype._ondragover=function(e,t,n){n.preventDefault();var r=this.currentShape;this._emitDragoverEvents(n,e,r,t,!0)},e.prototype._onmousemove=function(e,t,n){var r=this.canvas,o=this.currentShape,i=this.draggingShape;if(this.dragging)i&&this._emitDragoverEvents(n,e,o,t,!1),this._emitEvent("drag",n,e,i);else{var a=this.mousedownPoint;if(a){var l=this.mousedownShape,c=n.timeStamp-this.mousedownTimeStamp,s=a.clientX-e.clientX,u=a.clientY-e.clientY;c>120||s*s+u*u>40?l&&l.get("draggable")?((i=this.mousedownShape).set("capture",!1),this.draggingShape=i,this.dragging=!0,this._emitEvent("dragstart",n,e,i),this.mousedownShape=null,this.mousedownPoint=null):!l&&r.get("draggable")?(this.dragging=!0,this._emitEvent("dragstart",n,e,null),this.mousedownShape=null,this.mousedownPoint=null):(this._emitMouseoverEvents(n,e,o,t),this._emitEvent("mousemove",n,e,t)):(this._emitMouseoverEvents(n,e,o,t),this._emitEvent("mousemove",n,e,t))}else this._emitMouseoverEvents(n,e,o,t),this._emitEvent("mousemove",n,e,t)}},e.prototype._emitEvent=function(e,t,n,r,o,i){var a=this._getEventObj(e,t,n,r,o,i);if(r){a.shape=r,l(r,e,a);for(var s=r.getParent();s;)s.emitDelegation(e,a),a.propagationStopped||c(s,e,a),a.propagationPath.push(s),s=s.getParent()}else l(this.canvas,e,a)},e.prototype.destroy=function(){this._clearEvents(),this.canvas=null,this.currentShape=null,this.draggingShape=null,this.mousedownPoint=null,this.mousedownShape=null,this.mousedownTimeStamp=null},e}();t.default=s},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(1),i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,o.__extends)(t,e),t.prototype.isGroup=function(){return!0},t.prototype.isEntityGroup=function(){return!1},t.prototype.clone=function(){for(var t=e.prototype.clone.call(this),n=this.getChildren(),r=0;r<n.length;r++){var o=n[r];t.add(o.clone())}return t},t}(r(n(395)).default);t.default=i},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(1),i=r(n(396)),a=n(242),l=function(e){function t(t){return e.call(this,t)||this}return(0,o.__extends)(t,e),t.prototype._isInBBox=function(e,t){var n=this.getBBox();return n.minX<=e&&n.maxX>=e&&n.minY<=t&&n.maxY>=t},t.prototype.afterAttrsChange=function(t){e.prototype.afterAttrsChange.call(this,t),this.clearCacheBBox()},t.prototype.getBBox=function(){var e=this.cfg.bbox;return e||(e=this.calculateBBox(),this.set("bbox",e)),e},t.prototype.getCanvasBBox=function(){var e=this.cfg.canvasBBox;return e||(e=this.calculateCanvasBBox(),this.set("canvasBBox",e)),e},t.prototype.applyMatrix=function(t){e.prototype.applyMatrix.call(this,t),this.set("canvasBBox",null)},t.prototype.calculateCanvasBBox=function(){var e=this.getBBox(),t=this.getTotalMatrix(),n=e.minX,r=e.minY,o=e.maxX,i=e.maxY;if(t){var l=(0,a.multiplyVec2)(t,[e.minX,e.minY]),c=(0,a.multiplyVec2)(t,[e.maxX,e.minY]),s=(0,a.multiplyVec2)(t,[e.minX,e.maxY]),u=(0,a.multiplyVec2)(t,[e.maxX,e.maxY]);n=Math.min(l[0],c[0],s[0],u[0]),o=Math.max(l[0],c[0],s[0],u[0]),r=Math.min(l[1],c[1],s[1],u[1]),i=Math.max(l[1],c[1],s[1],u[1])}var d=this.attrs;if(d.shadowColor){var f=d.shadowBlur,p=void 0===f?0:f,h=d.shadowOffsetX,g=void 0===h?0:h,v=d.shadowOffsetY,m=void 0===v?0:v,y=n-p+g,b=o+p+g,x=r-p+m,w=i+p+m;n=Math.min(n,y),o=Math.max(o,b),r=Math.min(r,x),i=Math.max(i,w)}return{x:n,y:r,minX:n,minY:r,maxX:o,maxY:i,width:o-n,height:i-r}},t.prototype.clearCacheBBox=function(){this.set("bbox",null),this.set("canvasBBox",null)},t.prototype.isClipShape=function(){return this.get("isClipShape")},t.prototype.isInShape=function(e,t){return!1},t.prototype.isOnlyHitBox=function(){return!1},t.prototype.isHit=function(e,t){var n=this.get("startArrowShape"),r=this.get("endArrowShape"),o=[e,t,1],i=(o=this.invertFromMatrix(o))[0],a=o[1],l=this._isInBBox(i,a);if(this.isOnlyHitBox())return l;if(l&&!this.isClipped(i,a)){if(this.isInShape(i,a))return!0;if(n&&n.isHit(i,a))return!0;if(r&&r.isHit(i,a))return!0}return!1},t}(i.default);t.default=l},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getBBoxMethod",{enumerable:!0,get:function(){return o.getMethod}}),Object.defineProperty(t,"registerBBox",{enumerable:!0,get:function(){return o.register}});var o=n(793),i=r(n(794)),a=r(n(795)),l=r(n(796)),c=r(n(802)),s=r(n(803)),u=r(n(804)),d=r(n(819)),f=r(n(820));(0,o.register)("rect",i.default),(0,o.register)("image",i.default),(0,o.register)("circle",a.default),(0,o.register)("marker",a.default),(0,o.register)("polyline",l.default),(0,o.register)("polygon",c.default),(0,o.register)("text",s.default),(0,o.register)("path",u.default),(0,o.register)("line",d.default),(0,o.register)("ellipse",f.default)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getMethod=function(e){return r.get(e)},t.register=function(e,t){r.set(e,t)};var r=new Map},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.attr(),n=t.x,r=t.y,o=t.width,i=t.height;return{x:n,y:r,width:o,height:i}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.attr(),n=t.x,r=t.y,o=t.r;return{x:n-o,y:r-o,width:2*o,height:2*o}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){for(var t=e.attr().points,n=[],i=[],a=0;a<t.length;a++){var l=t[a];n.push(l[0]),i.push(l[1])}var c=r.Util.getBBoxByArray(n,i),s=c.x,u=c.y,d=c.width,f=c.height,p={minX:s,minY:u,maxX:s+d,maxY:u+f};return{x:(p=(0,o.mergeArrowBBox)(e,p)).minX,y:p.minY,width:p.maxX-p.minX,height:p.maxY-p.minY}};var r=n(38),o=n(248)},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(174)),i=n(87),a=n(412);function l(e,t,n,r){var o=1-r;return o*o*e+2*r*o*t+r*r*n}function c(e,t,n){var r=e+n-2*t;if((0,i.isNumberEqual)(r,0))return[.5];var o=(e-t)/r;return o<=1&&o>=0?[o]:[]}function s(e,t,n,r){return 2*(1-r)*(t-e)+2*r*(n-t)}function u(e,t,n,r,i,a,c){var s=l(e,n,i,c),u=l(t,r,a,c),d=o.default.pointAt(e,t,n,r,c),f=o.default.pointAt(n,r,i,a,c);return[[e,t,d.x,d.y,s,u],[s,u,f.x,f.y,i,a]]}function d(e,t,n,r,o,a,l){if(0===l)return((0,i.distance)(e,t,n,r)+(0,i.distance)(n,r,o,a)+(0,i.distance)(e,t,o,a))/2;var c=u(e,t,n,r,o,a,.5),s=c[0],f=c[1];return s.push(l-1),f.push(l-1),d.apply(null,s)+d.apply(null,f)}t.default={box:function(e,t,n,r,o,a){var s=c(e,n,o)[0],u=c(t,r,a)[0],d=[e,o],f=[t,a];return void 0!==s&&d.push(l(e,n,o,s)),void 0!==u&&f.push(l(t,r,a,u)),(0,i.getBBoxByArray)(d,f)},length:function(e,t,n,r,o,i){return d(e,t,n,r,o,i,3)},nearestPoint:function(e,t,n,r,o,i,c,s){return(0,a.nearestPoint)([e,n,o],[t,r,i],c,s,l)},pointDistance:function(e,t,n,r,o,a,l,c){var s=this.nearestPoint(e,t,n,r,o,a,l,c);return(0,i.distance)(s.x,s.y,l,c)},interpolationAt:l,pointAt:function(e,t,n,r,o,i,a){return{x:l(e,n,o,a),y:l(t,r,i,a)}},divide:function(e,t,n,r,o,i,a){return u(e,t,n,r,o,i,a)},tangentAngle:function(e,t,n,r,o,a,l){var c=s(e,n,o,l),u=s(t,r,a,l),d=Math.atan2(u,c);return(0,i.piMod)(d)}}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(87),i=r(n(174)),a=n(412);function l(e,t,n,r,o){var i=1-o;return i*i*i*e+3*t*o*i*i+3*n*o*o*i+r*o*o*o}function c(e,t,n,r,o){var i=1-o;return 3*(i*i*(t-e)+2*i*o*(n-t)+o*o*(r-n))}function s(e,t,n,r){var i,a,l,c=-3*e+9*t-9*n+3*r,s=6*e-12*t+6*n,u=3*t-3*e,d=[];if((0,o.isNumberEqual)(c,0))(0,o.isNumberEqual)(s,0)||(i=-u/s)>=0&&i<=1&&d.push(i);else{var f=s*s-4*c*u;(0,o.isNumberEqual)(f,0)?d.push(-s/(2*c)):f>0&&(a=(-s-(l=Math.sqrt(f)))/(2*c),(i=(-s+l)/(2*c))>=0&&i<=1&&d.push(i),a>=0&&a<=1&&d.push(a))}return d}function u(e,t,n,r,o,a,c,s,u){var d=l(e,n,o,c,u),f=l(t,r,a,s,u),p=i.default.pointAt(e,t,n,r,u),h=i.default.pointAt(n,r,o,a,u),g=i.default.pointAt(o,a,c,s,u),v=i.default.pointAt(p.x,p.y,h.x,h.y,u),m=i.default.pointAt(h.x,h.y,g.x,g.y,u);return[[e,t,p.x,p.y,v.x,v.y,d,f],[d,f,m.x,m.y,g.x,g.y,c,s]]}function d(e,t,n,r,o,i,l,c,s){if(0===s)return(0,a.snapLength)([e,n,o,l],[t,r,i,c]);var f=u(e,t,n,r,o,i,l,c,.5),p=f[0],h=f[1];return p.push(s-1),h.push(s-1),d.apply(null,p)+d.apply(null,h)}t.default={extrema:s,box:function(e,t,n,r,i,a,c,u){for(var d=[e,c],f=[t,u],p=s(e,n,i,c),h=s(t,r,a,u),g=0;g<p.length;g++)d.push(l(e,n,i,c,p[g]));for(g=0;g<h.length;g++)f.push(l(t,r,a,u,h[g]));return(0,o.getBBoxByArray)(d,f)},length:function(e,t,n,r,o,i,a,l){return d(e,t,n,r,o,i,a,l,3)},nearestPoint:function(e,t,n,r,o,i,c,s,u,d,f){return(0,a.nearestPoint)([e,n,o,c],[t,r,i,s],u,d,l,f)},pointDistance:function(e,t,n,r,i,a,l,c,s,u,d){var f=this.nearestPoint(e,t,n,r,i,a,l,c,s,u,d);return(0,o.distance)(f.x,f.y,s,u)},interpolationAt:l,pointAt:function(e,t,n,r,o,i,a,c,s){return{x:l(e,n,o,a,s),y:l(t,r,i,c,s)}},divide:function(e,t,n,r,o,i,a,l,c){return u(e,t,n,r,o,i,a,l,c)},tangentAngle:function(e,t,n,r,i,a,l,s,u){var d=c(e,n,i,l,u),f=c(t,r,a,s,u);return(0,o.piMod)(Math.atan2(f,d))}}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(87),i=r(n(800));function a(e,t,n,r,o,i){return n*Math.cos(o)*Math.cos(i)-r*Math.sin(o)*Math.sin(i)+e}function l(e,t,n,r,o,i){return n*Math.sin(o)*Math.cos(i)+r*Math.cos(o)*Math.sin(i)+t}function c(e,t,n){return{x:e*Math.cos(n),y:t*Math.sin(n)}}function s(e,t,n){var r=Math.cos(n),o=Math.sin(n);return[e*r-t*o,e*o+t*r]}t.default={box:function(e,t,n,r,o,i,c){for(var s=function(e,t,n){return Math.atan(-t/e*Math.tan(n))}(n,r,o),u=1/0,d=-1/0,f=[i,c],p=2*-Math.PI;p<=2*Math.PI;p+=Math.PI){var h=s+p;i<c?i<h&&h<c&&f.push(h):c<h&&h<i&&f.push(h)}for(p=0;p<f.length;p++){var g=a(e,0,n,r,o,f[p]);g<u&&(u=g),g>d&&(d=g)}var v=function(e,t,n){return Math.atan(t/(e*Math.tan(n)))}(n,r,o),m=1/0,y=-1/0,b=[i,c];for(p=2*-Math.PI;p<=2*Math.PI;p+=Math.PI){var x=v+p;i<c?i<x&&x<c&&b.push(x):c<x&&x<i&&b.push(x)}for(p=0;p<b.length;p++){var w=l(0,t,n,r,o,b[p]);w<m&&(m=w),w>y&&(y=w)}return{x:u,y:m,width:d-u,height:y-m}},length:function(e,t,n,r,o,i,a){},nearestPoint:function(e,t,n,r,o,a,l,u,d){var f=s(u-e,d-t,-o),p=f[0],h=f[1],g=i.default.nearestPoint(0,0,n,r,p,h),v=function(e,t,n,r){return(Math.atan2(r*e,n*t)+2*Math.PI)%(2*Math.PI)}(n,r,g.x,g.y);v<a?g=c(n,r,a):v>l&&(g=c(n,r,l));var m=s(g.x,g.y,o);return{x:m[0]+e,y:m[1]+t}},pointDistance:function(e,t,n,r,i,a,l,c,s){var u=this.nearestPoint(e,t,n,r,c,s);return(0,o.distance)(u.x,u.y,c,s)},pointAt:function(e,t,n,r,o,i,c,s){var u=(c-i)*s+i;return{x:a(e,0,n,r,o,u),y:l(0,t,n,r,o,u)}},tangentAngle:function(e,t,n,r,i,a,l,c){var s=(l-a)*c+a,u=function(e,t,n,r,o,i,a,l){return-1*n*Math.cos(o)*Math.sin(l)-r*Math.sin(o)*Math.cos(l)}(0,0,n,r,i,0,0,s),d=function(e,t,n,r,o,i,a,l){return-1*n*Math.sin(o)*Math.sin(l)+r*Math.cos(o)*Math.cos(l)}(0,0,n,r,i,0,0,s);return(0,o.piMod)(Math.atan2(d,u))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(87);function o(e,t){var n=Math.abs(e);return t>0?n:-1*n}t.default={box:function(e,t,n,r){return{x:e-n,y:t-r,width:2*n,height:2*r}},length:function(e,t,n,r){return Math.PI*(3*(n+r)-Math.sqrt((3*n+r)*(n+3*r)))},nearestPoint:function(e,t,n,r,i,a){var l=n,c=r;if(0===l||0===c)return{x:e,y:t};for(var s,u,d=i-e,f=a-t,p=Math.abs(d),h=Math.abs(f),g=l*l,v=c*c,m=Math.PI/4,y=0;y<4;y++){s=l*Math.cos(m),u=c*Math.sin(m);var b=(g-v)*Math.pow(Math.cos(m),3)/l,x=(v-g)*Math.pow(Math.sin(m),3)/c,w=s-b,S=u-x,O=p-b,_=h-x,C=Math.hypot(S,w),E=Math.hypot(_,O);m+=C*Math.asin((w*_-S*O)/(C*E))/Math.sqrt(g+v-s*s-u*u),m=Math.min(Math.PI/2,Math.max(0,m))}return{x:e+o(s,d),y:t+o(u,f)}},pointDistance:function(e,t,n,o,i,a){var l=this.nearestPoint(e,t,n,o,i,a);return(0,r.distance)(l.x,l.y,i,a)},pointAt:function(e,t,n,r,o){var i=2*Math.PI*o;return{x:e+n*Math.cos(i),y:t+r*Math.sin(i)}},tangentAngle:function(e,t,n,o,i){var a=2*Math.PI*i,l=Math.atan2(o*Math.cos(a),-n*Math.sin(a));return(0,r.piMod)(l)}}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(413),i=r(n(414));function a(e){var t=e.slice(0);return e.length&&t.push(e[0]),t}t.default={box:function(e){return i.default.box(e)},length:function(e){return(0,o.lengthOfSegment)(a(e))},pointAt:function(e,t){return(0,o.pointAtSegments)(a(e),t)},pointDistance:function(e,t,n){return(0,o.distanceAtSegment)(a(e),t,n)},tangentAngle:function(e,t){return(0,o.angleAtSegments)(a(e),t)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){for(var t=e.attr().points,n=[],o=[],i=0;i<t.length;i++){var a=t[i];n.push(a[0]),o.push(a[1])}return r.Util.getBBoxByArray(n,o)};var r=n(38)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.attr(),n=t.x,o=t.y,i=t.text,a=t.fontSize,l=t.lineHeight,c=t.font;c||(c=(0,r.assembleFont)(t));var s,u=(0,r.getTextWidth)(i,c);if(u){var d=t.textAlign,f=t.textBaseline,p=(0,r.getTextHeight)(i,a,l),h={x:n,y:o-p};d&&("end"===d||"right"===d?h.x-=u:"center"===d&&(h.x-=u/2)),f&&("top"===f?h.y+=p:"middle"===f&&(h.y+=p/2)),s={x:h.x,y:h.y,width:u,height:p}}else s={x:n,y:o,width:0,height:0};return s};var r=n(415)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.attr(),n=t.path,c=t.stroke?t.lineWidth:0,s=function(e,t){for(var n=[],o=[],a=[],c=0;c<e.length;c++){var s=(y=e[c]).currentPoint,u=y.params,d=y.prePoint,f=void 0;switch(y.command){case"Q":f=r.Quad.box(d[0],d[1],u[1],u[2],u[3],u[4]);break;case"C":f=r.Cubic.box(d[0],d[1],u[1],u[2],u[3],u[4],u[5],u[6]);break;case"A":var p=y.arcParams;f=r.Arc.box(p.cx,p.cy,p.rx,p.ry,p.xRotation,p.startAngle,p.endAngle);break;default:n.push(s[0]),o.push(s[1])}f&&(y.box=f,n.push(f.x,f.x+f.width),o.push(f.y,f.y+f.height)),t&&("L"===y.command||"M"===y.command)&&y.prePoint&&y.nextPoint&&a.push(y)}n=n.filter((function(e){return!Number.isNaN(e)&&e!==1/0&&e!==-1/0})),o=o.filter((function(e){return!Number.isNaN(e)&&e!==1/0&&e!==-1/0}));var h=(0,i.min)(n),g=(0,i.min)(o),v=(0,i.max)(n),m=(0,i.max)(o);if(0===a.length)return{x:h,y:g,width:v-h,height:m-g};for(c=0;c<a.length;c++){var y;(s=(y=a[c]).currentPoint)[0]===h?h-=l(y,t).xExtra:s[0]===v&&(v+=l(y,t).xExtra),s[1]===g?g-=l(y,t).yExtra:s[1]===m&&(m+=l(y,t).yExtra)}return{x:h,y:g,width:v-h,height:m-g}}(e.get("segments")||(0,o.path2Segments)(n),c),u=s.x,d=s.y,f=s.width,p=s.height,h={minX:u,minY:d,maxX:u+f,maxY:d+p};return{x:(h=(0,a.mergeArrowBBox)(e,h)).minX,y:h.minY,width:h.maxX-h.minX,height:h.maxY-h.minY}};var r=n(38),o=n(88),i=n(0),a=n(248);function l(e,t){var n=e.prePoint,r=e.currentPoint,o=e.nextPoint,a=Math.pow(r[0]-n[0],2)+Math.pow(r[1]-n[1],2),l=Math.pow(r[0]-o[0],2)+Math.pow(r[1]-o[1],2),c=Math.pow(n[0]-o[0],2)+Math.pow(n[1]-o[1],2),s=Math.acos((a+l-c)/(2*Math.sqrt(a)*Math.sqrt(l)));if(!s||0===Math.sin(s)||(0,i.isNumberEqual)(s,0))return{xExtra:0,yExtra:0};var u=Math.abs(Math.atan2(o[1]-r[1],o[0]-r[0])),d=Math.abs(Math.atan2(o[0]-r[0],o[1]-r[1]));return u=u>Math.PI/2?Math.PI-u:u,d=d>Math.PI/2?Math.PI-d:d,{xExtra:Math.cos(s/2-u)*(t/2*(1/Math.sin(s/2)))-t/2||0,yExtra:Math.cos(d-s/2)*(t/2*(1/Math.sin(s/2)))-t/2||0}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(806);t.default=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=[[0,0],[1,1]]);for(var o=!!t,i=[],a=0,l=e.length;a<l;a+=2)i.push([e[a],e[a+1]]);var c,s,u,d=function(e,t,n,o){var i,a,l,c,s,u,d,f=[],p=!!o;if(p){l=o[0],c=o[1];for(var h=0,g=e.length;h<g;h+=1){var v=e[h];l=r.vec2.min([0,0],l,v),c=r.vec2.max([0,0],c,v)}}h=0;for(var m=e.length;h<m;h+=1)if(v=e[h],0!==h||n)if(h!==m-1||n){i=e[[h?h-1:m-1,h-1][n?0:1]],a=e[n?(h+1)%m:h+1];var y=[0,0];y=r.vec2.sub(y,a,i),y=r.vec2.scale(y,y,t);var b=r.vec2.distance(v,i),x=r.vec2.distance(v,a),w=b+x;0!==w&&(b/=w,x/=w);var S=r.vec2.scale([0,0],y,-b),O=r.vec2.scale([0,0],y,x);u=r.vec2.add([0,0],v,S),s=r.vec2.add([0,0],v,O),s=r.vec2.min([0,0],s,r.vec2.max([0,0],a,v)),s=r.vec2.max([0,0],s,r.vec2.min([0,0],a,v)),S=r.vec2.sub([0,0],s,v),S=r.vec2.scale([0,0],S,-b/x),u=r.vec2.add([0,0],v,S),u=r.vec2.min([0,0],u,r.vec2.max([0,0],i,v)),u=r.vec2.max([0,0],u,r.vec2.min([0,0],i,v)),O=r.vec2.sub([0,0],v,u),O=r.vec2.scale([0,0],O,x/b),s=r.vec2.add([0,0],v,O),p&&(u=r.vec2.max([0,0],u,l),u=r.vec2.min([0,0],u,c),s=r.vec2.max([0,0],s,l),s=r.vec2.min([0,0],s,c)),f.push(d),f.push(u),d=s}else u=v,f.push(d),f.push(u);else d=v;return n&&f.push(f.shift()),f}(i,.4,o,n),f=i.length,p=[];for(a=0;a<f-1;a+=1)c=d[2*a],s=d[2*a+1],u=i[a+1],p.push(["C",c[0],c[1],s[0],s[1],u[0],u[1]]);return o&&(c=d[f],s=d[f+1],u=i[0],p.push(["C",c[0],c[1],s[0],s[1],u[0],u[1]])),p}},function(e,t,n){"use strict";var r=n(6);Object.defineProperty(t,"__esModule",{value:!0}),t.ext=void 0,Object.defineProperty(t,"mat3",{enumerable:!0,get:function(){return o.mat3}}),Object.defineProperty(t,"vec2",{enumerable:!0,get:function(){return o.vec2}}),Object.defineProperty(t,"vec3",{enumerable:!0,get:function(){return o.vec3}});var o=n(170),i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&Object.prototype.hasOwnProperty.call(e,l)){var c=i?Object.getOwnPropertyDescriptor(e,l):null;c&&(c.get||c.set)?Object.defineProperty(o,l,c):o[l]=e[l]}return o.default=e,n&&n.set(e,o),o}(n(807));function a(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}t.ext=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.angleTo=function(e,t,n){var o=r.vec2.angle(e,t),i=l(e,t)>=0;return n?i?2*Math.PI-o:o:i?o:2*Math.PI-o},t.direction=l,t.leftRotate=i,t.leftScale=a,t.leftTranslate=o,t.transform=function(e,t){for(var n=e?[].concat(e):[1,0,0,0,1,0,0,0,1],l=0,c=t.length;l<c;l++){var s=t[l];switch(s[0]){case"t":o(n,n,[s[1],s[2]]);break;case"s":a(n,n,[s[1],s[2]]);break;case"r":i(n,n,s[1]);break;case"m":u=n,d=n,f=s[1],r.mat3.multiply(u,f,d)}}var u,d,f;return n},t.vertical=function(e,t,n){return n?(e[0]=t[1],e[1]=-1*t[0]):(e[0]=-1*t[1],e[1]=t[0]),e};var r=n(170);function o(e,t,n){var o=[0,0,0,0,0,0,0,0,0];return r.mat3.fromTranslation(o,n),r.mat3.multiply(e,o,t)}function i(e,t,n){var o=[0,0,0,0,0,0,0,0,0];return r.mat3.fromRotation(o,n),r.mat3.multiply(e,o,t)}function a(e,t,n){var o=[0,0,0,0,0,0,0,0,0];return r.mat3.fromScaling(o,n),r.mat3.multiply(e,o,t)}function l(e,t){return e[0]*t[1]-t[0]*e[1]}},function(e,t,n){"use strict";function r(e,t){var n=[],r=[];return e.length&&function e(t,o){if(1===t.length)n.push(t[0]),r.push(t[0]);else{for(var i=[],a=0;a<t.length-1;a++)0===a&&n.push(t[0]),a===t.length-2&&r.push(t[a+1]),i[a]=[(1-o)*t[a][0]+o*t[a+1][0],(1-o)*t[a][1]+o*t[a+1][1]];e(i,o)}}(e,t),{left:n,right:r.reverse()}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(1===e.length)return e;var n=e.length-1,o=t.length-1,i=n/o,a=[];if(1===e.length&&"M"===e[0][0]){for(var l=0;l<o-n;l++)e.push(e[0]);return e}for(l=0;l<o;l++){var c=Math.floor(i*l);a[c]=(a[c]||0)+1}var s=a.reduce((function(t,o,i){return i===n?t.concat(e[n]):t.concat(function(e,t,n){if(1===n)return[[].concat(e)];var o=[];if("L"===t[0]||"C"===t[0]||"Q"===t[0])o=o.concat(function(e,t,n){var o=[[e[1],e[2]]];n=n||2;var i=[];"A"===t[0]?(o.push(t[6]),o.push(t[7])):"C"===t[0]?(o.push([t[1],t[2]]),o.push([t[3],t[4]]),o.push([t[5],t[6]])):"S"===t[0]||"Q"===t[0]?(o.push([t[1],t[2]]),o.push([t[3],t[4]])):o.push([t[1],t[2]]);for(var a=o,l=1/n,c=0;c<n-1;c++){var s=r(a,l/(1-l*c));i.push(s.left),a=s.right}i.push(a);var u=i.map((function(e){var t=[];return 4===e.length&&(t.push("C"),t=t.concat(e[2])),e.length>=3&&(3===e.length&&t.push("Q"),t=t.concat(e[1])),2===e.length&&t.push("L"),t=t.concat(e[e.length-1])}));return u}(e,t,n));else{var i=[].concat(e);"M"===i[0]&&(i[0]="L");for(var a=0;a<=n-1;a++)o.push(i)}return o}(e[i],e[i+1],o))}),[]);return s.unshift(e[0]),("Z"===t[o]||"z"===t[o])&&s.push("Z"),s}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=i(e,t),r=e.length,o=t.length,a=[],l=1,c=1;if(n[r][o]!==r){for(var s=1;s<=r;s++){var u=n[s][s].min;c=s;for(var d=l;d<=o;d++)n[s][d].min<u&&(u=n[s][d].min,c=d);l=c,n[s][l].type&&a.push({index:s-1,type:n[s][l].type})}for(s=a.length-1;s>=0;s--)l=a[s].index,"add"===a[s].type?e.splice(l,0,[].concat(e[l])):e.splice(l,1)}if((r=e.length)<o)for(s=0;s<o-r;s++)"z"===e[r-1][0]||"Z"===e[r-1][0]?e.splice(r-2,0,e[r-2]):e.push(e[r-1]);return e};var r=n(0);function o(e,t,n){var r=null,o=n;return t<o&&(o=t,r="add"),e<o&&(o=e,r="del"),{type:r,min:o}}var i=function(e,t){var n,i,a=e.length,l=t.length,c=0;if(0===a||0===l)return null;for(var s=[],u=0;u<=a;u++)s[u]=[],s[u][0]={min:u};for(var d=0;d<=l;d++)s[0][d]={min:d};for(u=1;u<=a;u++)for(n=e[u-1],d=1;d<=l;d++){i=t[d-1],c=(0,r.isEqual)(n,i)?0:1;var f=s[u-1][d].min+1,p=s[u][d-1].min+1,h=s[u-1][d-1].min+c;s[u][d]=o(f,p,h)}return s}},function(e,t,n){"use strict";function r(e){var t=[];switch(e[0]){case"M":case"L":case"T":t.push([e[1],e[2]]);break;case"A":t.push([e[6],e[7]]);break;case"Q":case"S":t.push([e[3],e[4]]),t.push([e[1],e[2]]);break;case"C":t.push([e[5],e[6]]),t.push([e[1],e[2]]),t.push([e[3],e[4]]);break;case"H":case"V":t.push([e[1],e[1]])}return t}function o(e,t,n){for(var o,i=[].concat(e),a=1/(n+1),l=r(t)[0],c=1;c<=n;c++)a*=c,0===(o=Math.floor(e.length*a))?i.unshift([l[0]*a+e[o][0]*(1-a),l[1]*a+e[o][1]*(1-a)]):i.splice(o,0,[l[0]*a+e[o][0]*(1-a),l[1]*a+e[o][1]*(1-a)]);return i}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(e.length<=1)return e;for(var n,i=0;i<t.length;i++)if(e[i][0]!==t[i][0])switch(n=r(e[i]),t[i][0]){case"M":e[i]=["M"].concat(n[0]);break;case"L":e[i]=["L"].concat(n[0]);break;case"A":e[i]=[].concat(t[i]),e[i][6]=n[0][0],e[i][7]=n[0][1];break;case"Q":if(n.length<2){if(!(i>0)){e[i]=t[i];break}n=o(n,e[i-1],1)}e[i]=["Q"].concat(n.reduce((function(e,t){return e.concat(t)}),[]));break;case"T":e[i]=["T"].concat(n[0]);break;case"C":if(n.length<3){if(!(i>0)){e[i]=t[i];break}n=o(n,e[i-1],2)}e[i]=["C"].concat(n.reduce((function(e,t){return e.concat(t)}),[]));break;case"S":if(n.length<2){if(!(i>0)){e[i]=t[i];break}n=o(n,e[i-1],1)}e[i]=["S"].concat(n.reduce((function(e,t){return e.concat(t)}),[]));break;default:e[i]=t[i]}return e}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return v(e,t)};var o=n(0),i=r(n(418)),a=r(n(419)),l=function(e,t,n,r,o){return e*(e*(-3*t+9*n-9*r+3*o)+6*t-12*n+6*r)-3*t+3*n},c=function(e,t,n,r,o,i,a,c,s){null===s&&(s=1);for(var u=(s=s>1?1:s<0?0:s)/2,d=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],f=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],p=0,h=0;h<12;h++){var g=u*d[h]+u,v=l(g,e,n,o,a),m=l(g,t,r,i,c),y=v*v+m*m;p+=f[h]*Math.sqrt(y)}return u*p},s=function(e,t,n,r,o,i,a,l){for(var c,s,u,d,f=[],p=[[],[]],h=0;h<2;++h)if(0===h?(s=6*e-12*n+6*o,c=-3*e+9*n-9*o+3*a,u=3*n-3*e):(s=6*t-12*r+6*i,c=-3*t+9*r-9*i+3*l,u=3*r-3*t),Math.abs(c)<1e-12){if(Math.abs(s)<1e-12)continue;(d=-u/s)>0&&d<1&&f.push(d)}else{var g=s*s-4*u*c,v=Math.sqrt(g);if(!(g<0)){var m=(-s+v)/(2*c);m>0&&m<1&&f.push(m);var y=(-s-v)/(2*c);y>0&&y<1&&f.push(y)}}for(var b,x=f.length,w=x;x--;)b=1-(d=f[x]),p[0][x]=b*b*b*e+3*b*b*d*n+3*b*d*d*o+d*d*d*a,p[1][x]=b*b*b*t+3*b*b*d*r+3*b*d*d*i+d*d*d*l;return p[0][w]=e,p[1][w]=t,p[0][w+1]=a,p[1][w+1]=l,p[0].length=p[1].length=w+2,{min:{x:Math.min.apply(0,p[0]),y:Math.min.apply(0,p[1])},max:{x:Math.max.apply(0,p[0]),y:Math.max.apply(0,p[1])}}},u=function(e,t,n,r,o,i,a,l){if(!(Math.max(e,n)<Math.min(o,a)||Math.min(e,n)>Math.max(o,a)||Math.max(t,r)<Math.min(i,l)||Math.min(t,r)>Math.max(i,l))){var c=(e-n)*(i-l)-(t-r)*(o-a);if(c){var s=((e*r-t*n)*(o-a)-(e-n)*(o*l-i*a))/c,u=((e*r-t*n)*(i-l)-(t-r)*(o*l-i*a))/c,d=+s.toFixed(2),f=+u.toFixed(2);if(!(d<+Math.min(e,n).toFixed(2)||d>+Math.max(e,n).toFixed(2)||d<+Math.min(o,a).toFixed(2)||d>+Math.max(o,a).toFixed(2)||f<+Math.min(t,r).toFixed(2)||f>+Math.max(t,r).toFixed(2)||f<+Math.min(i,l).toFixed(2)||f>+Math.max(i,l).toFixed(2)))return{x:s,y:u}}}},d=function(e,t,n){return t>=e.x&&t<=e.x+e.width&&n>=e.y&&n<=e.y+e.height},f=function(e,t,n,r){return null===e&&(e=t=n=r=0),null===t&&(t=e.y,n=e.width,r=e.height,e=e.x),{x:e,y:t,width:n,w:n,height:r,h:r,x2:e+n,y2:t+r,cx:e+n/2,cy:t+r/2,r1:Math.min(n,r)/2,r2:Math.max(n,r)/2,r0:Math.sqrt(n*n+r*r)/2,path:(0,i.default)(e,t,n,r),vb:[e,t,n,r].join(" ")}},p=function(e,t,n,r,i,a,l,c){(0,o.isArray)(e)||(e=[e,t,n,r,i,a,l,c]);var u=s.apply(null,e);return f(u.min.x,u.min.y,u.max.x-u.min.x,u.max.y-u.min.y)},h=function(e,t,n,r,o,i,a,l,c){var s=1-c,u=Math.pow(s,3),d=Math.pow(s,2),f=c*c,p=f*c,h=e+2*c*(n-e)+f*(o-2*n+e),g=t+2*c*(r-t)+f*(i-2*r+t),v=n+2*c*(o-n)+f*(a-2*o+n),m=r+2*c*(i-r)+f*(l-2*i+r);return{x:u*e+3*d*c*n+3*s*c*c*o+p*a,y:u*t+3*d*c*r+3*s*c*c*i+p*l,m:{x:h,y:g},n:{x:v,y:m},start:{x:s*e+c*n,y:s*t+c*r},end:{x:s*o+c*a,y:s*i+c*l},alpha:90-180*Math.atan2(h-v,g-m)/Math.PI}},g=function(e,t,n){if(!function(e,t){return e=f(e),t=f(t),d(t,e.x,e.y)||d(t,e.x2,e.y)||d(t,e.x,e.y2)||d(t,e.x2,e.y2)||d(e,t.x,t.y)||d(e,t.x2,t.y)||d(e,t.x,t.y2)||d(e,t.x2,t.y2)||(e.x<t.x2&&e.x>t.x||t.x<e.x2&&t.x>e.x)&&(e.y<t.y2&&e.y>t.y||t.y<e.y2&&t.y>e.y)}(p(e),p(t)))return n?0:[];for(var r=~~(c.apply(0,e)/8),o=~~(c.apply(0,t)/8),i=[],a=[],l={},s=n?0:[],g=0;g<r+1;g++){var v=h.apply(0,e.concat(g/r));i.push({x:v.x,y:v.y,t:g/r})}for(g=0;g<o+1;g++)v=h.apply(0,t.concat(g/o)),a.push({x:v.x,y:v.y,t:g/o});for(g=0;g<r;g++)for(var m=0;m<o;m++){var y=i[g],b=i[g+1],x=a[m],w=a[m+1],S=Math.abs(b.x-y.x)<.001?"y":"x",O=Math.abs(w.x-x.x)<.001?"y":"x",_=u(y.x,y.y,b.x,b.y,x.x,x.y,w.x,w.y);if(_){if(l[_.x.toFixed(4)]===_.y.toFixed(4))continue;l[_.x.toFixed(4)]=_.y.toFixed(4);var C=y.t+Math.abs((_[S]-y[S])/(b[S]-y[S]))*(b.t-y.t),E=x.t+Math.abs((_[O]-x[O])/(w[O]-x[O]))*(w.t-x.t);C>=0&&C<=1&&E>=0&&E<=1&&(n?s++:s.push({x:_.x,y:_.y,t1:C,t2:E}))}}return s},v=function(e,t,n){var r,o,i,l,c,s,u,d,f,p;e=(0,a.default)(e),t=(0,a.default)(t);for(var h=n?0:[],v=0,m=e.length;v<m;v++){var y=e[v];if("M"===y[0])r=c=y[1],o=s=y[2];else{"C"===y[0]?(f=[r,o].concat(y.slice(1)),r=f[6],o=f[7]):(f=[r,o,r,o,c,s,c,s],r=c,o=s);for(var b=0,x=t.length;b<x;b++){var w=t[b];if("M"===w[0])i=u=w[1],l=d=w[2];else{"C"===w[0]?(p=[i,l].concat(w.slice(1)),i=p[6],l=p[7]):(p=[i,l,i,l,u,d,u,d],i=u,l=d);var S=g(f,p,n);if(n)h+=S;else{for(var O=0,_=S.length;O<_;O++)S[O].segment1=v,S[O].segment2=b,S[O].bez1=f,S[O].bez2=p;h=h.concat(S)}}}}}return h}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.segmentToCubic=function(e,t){"TQ".indexOf(e[0])<0&&(t.qx=null,t.qy=null);var n=e.slice(1),a=n[0],l=n[1];switch(e[0]){case"M":return t.x=a,t.y=l,e;case"A":return["C"].concat(r.arcToCubic.apply(0,[t.x1,t.y1].concat(e.slice(1))));case"Q":return t.qx=a,t.qy=l,["C"].concat(o.quadToCubic.apply(0,[t.x1,t.y1].concat(e.slice(1))));case"L":return["C"].concat((0,i.lineToCubic)(t.x1,t.y1,e[1],e[2]));case"H":return["C"].concat((0,i.lineToCubic)(t.x1,t.y1,e[1],t.y1));case"V":return["C"].concat((0,i.lineToCubic)(t.x1,t.y1,t.x1,e[1]));case"Z":return["C"].concat((0,i.lineToCubic)(t.x1,t.y1,t.x,t.y))}return e};var r=n(813),o=n(814),i=n(815)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arcToCubic=function(e,t,n,r,o,i,a,c,s){return l({px:e,py:t,cx:c,cy:s,rx:n,ry:r,xAxisRotation:o,largeArcFlag:i,sweepFlag:a}).reduce((function(e,t){var n=t.x1,r=t.y1,o=t.x2,i=t.y2,a=t.x,l=t.y;return e.push(n,r,o,i,a,l),e}),[])};var r=2*Math.PI,o=function(e,t,n,r,o,i,a){var l=e.x,c=e.y;return{x:r*(l*=t)-o*(c*=n)+i,y:o*l+r*c+a}},i=function(e,t){var n=1.5707963267948966===t?.551915024494:-1.5707963267948966===t?-.551915024494:4/3*Math.tan(t/4),r=Math.cos(e),o=Math.sin(e),i=Math.cos(e+t),a=Math.sin(e+t);return[{x:r-o*n,y:o+r*n},{x:i+a*n,y:a-i*n},{x:i,y:a}]},a=function(e,t,n,r){var o=e*n+t*r;return o>1&&(o=1),o<-1&&(o=-1),(e*r-t*n<0?-1:1)*Math.acos(o)},l=function(e){var t=e.px,n=e.py,l=e.cx,c=e.cy,s=e.rx,u=e.ry,d=e.xAxisRotation,f=void 0===d?0:d,p=e.largeArcFlag,h=void 0===p?0:p,g=e.sweepFlag,v=void 0===g?0:g,m=[];if(0===s||0===u)return[{x1:0,y1:0,x2:0,y2:0,x:l,y:c}];var y=Math.sin(f*r/360),b=Math.cos(f*r/360),x=b*(t-l)/2+y*(n-c)/2,w=-y*(t-l)/2+b*(n-c)/2;if(0===x&&0===w)return[{x1:0,y1:0,x2:0,y2:0,x:l,y:c}];s=Math.abs(s),u=Math.abs(u);var S=Math.pow(x,2)/Math.pow(s,2)+Math.pow(w,2)/Math.pow(u,2);S>1&&(s*=Math.sqrt(S),u*=Math.sqrt(S));var O=function(e,t,n,o,i,l,c,s,u,d,f,p){var h=Math.pow(i,2),g=Math.pow(l,2),v=Math.pow(f,2),m=Math.pow(p,2),y=h*g-h*m-g*v;y<0&&(y=0),y/=h*m+g*v;var b=(y=Math.sqrt(y)*(c===s?-1:1))*i/l*p,x=y*-l/i*f,w=d*b-u*x+(e+n)/2,S=u*b+d*x+(t+o)/2,O=(f-b)/i,_=(p-x)/l,C=(-f-b)/i,E=(-p-x)/l,P=a(1,0,O,_),M=a(O,_,C,E);return 0===s&&M>0&&(M-=r),1===s&&M<0&&(M+=r),[w,S,P,M]}(t,n,l,c,s,u,h,v,y,b,x,w),_=O[0],C=O[1],E=O[2],P=O[3],M=Math.abs(P)/(r/4);Math.abs(1-M)<1e-7&&(M=1);var k=Math.max(Math.ceil(M),1);P/=k;for(var A=0;A<k;A++)m.push(i(E,P)),E+=P;return m.map((function(e){var t=o(e[0],s,u,b,y,_,C),n=t.x,r=t.y,i=o(e[1],s,u,b,y,_,C),a=i.x,l=i.y,c=o(e[2],s,u,b,y,_,C);return{x1:n,y1:r,x2:a,y2:l,x:c.x,y:c.y}}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.quadToCubic=function(e,t,n,r,o,i){var a=1/3,l=2/3;return[a*e+l*n,a*t+l*r,a*o+l*n,a*i+l*r,o,i]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lineToCubic=function(e,t,n,r){return[e,t,n,r,n,r]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e.join(",").replace(r,"$1")};var r=/,?([a-z]),?/gi},function(e,t,n){"use strict";var r=n(2),o=n(6);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){e=(0,a.default)(e);for(var t=[],n=null,r=null,o=null,l=0,s=e.length,u=0;u<s;u++){var d=e[u];r=e[u+1];var f=d[0],p={command:f,prePoint:n,params:d,startTangent:null,endTangent:null};switch(f){case"M":o=[d[1],d[2]],l=u;break;case"A":var h=(0,i.default)(n,d);p.arcParams=h}if("Z"===f)n=o,r=e[l+1];else{var g=d.length;n=[d[g-2],d[g-1]]}r&&"Z"===r[0]&&(r=e[l],t[l]&&(t[l].prePoint=n)),p.currentPoint=n,t[l]&&(0,i.isSamePoint)(n,t[l].currentPoint)&&(t[l].prePoint=p.prePoint);var v=r?[r[r.length-2],r[r.length-1]]:null;p.nextPoint=v;var m=p.prePoint;if(["L","H","V"].includes(f))p.startTangent=[m[0]-n[0],m[1]-n[1]],p.endTangent=[n[0]-m[0],n[1]-m[1]];else if("Q"===f){var y=[d[1],d[2]];p.startTangent=[m[0]-y[0],m[1]-y[1]],p.endTangent=[n[0]-y[0],n[1]-y[1]]}else if("T"===f)y=c((w=t[u-1]).currentPoint,m),"Q"===w.command?(p.command="Q",p.startTangent=[m[0]-y[0],m[1]-y[1]],p.endTangent=[n[0]-y[0],n[1]-y[1]]):(p.command="TL",p.startTangent=[m[0]-n[0],m[1]-n[1]],p.endTangent=[n[0]-m[0],n[1]-m[1]]);else if("C"===f){var b=[d[1],d[2]],x=[d[3],d[4]];p.startTangent=[m[0]-b[0],m[1]-b[1]],p.endTangent=[n[0]-x[0],n[1]-x[1]],0===p.startTangent[0]&&0===p.startTangent[1]&&(p.startTangent=[b[0]-x[0],b[1]-x[1]]),0===p.endTangent[0]&&0===p.endTangent[1]&&(p.endTangent=[x[0]-b[0],x[1]-b[1]])}else if("S"===f){var w;b=c((w=t[u-1]).currentPoint,m),x=[d[1],d[2]],"C"===w.command?(p.command="C",p.startTangent=[m[0]-b[0],m[1]-b[1]],p.endTangent=[n[0]-x[0],n[1]-x[1]]):(p.command="SQ",p.startTangent=[m[0]-x[0],m[1]-x[1]],p.endTangent=[n[0]-x[0],n[1]-x[1]])}else if("A"===f){var S=.001,O=p.arcParams||{},_=O.cx,C=void 0===_?0:_,E=O.cy,P=void 0===E?0:E,M=O.rx,k=void 0===M?0:M,A=O.ry,I=void 0===A?0:A,T=O.sweepFlag,j=void 0===T?0:T,L=O.startAngle,R=void 0===L?0:L,D=O.endAngle,N=void 0===D?0:D;0===j&&(S*=-1);var F=k*Math.cos(R-S)+C,B=I*Math.sin(R-S)+P;p.startTangent=[F-o[0],B-o[1]];var z=k*Math.cos(R+N+S)+C,H=I*Math.sin(R+N-S)+P;p.endTangent=[m[0]-z,m[1]-H]}t.push(p)}return t};var i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!==typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var c=i?Object.getOwnPropertyDescriptor(e,a):null;c&&(c.get||c.set)?Object.defineProperty(r,a,c):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}(n(422)),a=r(n(417));function l(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}function c(e,t){return[t[0]+(t[0]-e[0]),t[1]+(t[1]-e[1])]}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(e.length<2||t.length<2)return!1;var n,r,s=c(e),u=c(t);if(n=s,(r=u).minX>n.maxX||r.maxX<n.minX||r.minY>n.maxY||r.maxY<n.minY)return!1;var d=!1;if((0,a.each)(t,(function(t){if((0,o.default)(e,t[0],t[1]))return d=!0,!1})),d)return!0;if((0,a.each)(e,(function(e){if((0,o.default)(t,e[0],e[1]))return d=!0,!1})),d)return!0;var f=l(e),p=l(t),h=!1;return(0,a.each)(p,(function(e){if(function(e,t){var n=!1;return(0,a.each)(e,(function(e){if((0,i.default)(e.from,e.to,t.from,t.to))return n=!0,!1})),n}(f,e))return h=!0,!1})),h};var o=r(n(424)),i=r(n(423)),a=n(0);function l(e){for(var t=[],n=e.length,r=0;r<n-1;r++){var o=e[r],i=e[r+1];t.push({from:{x:o[0],y:o[1]},to:{x:i[0],y:i[1]}})}if(t.length>1){var a=e[0],l=e[n-1];t.push({from:{x:l[0],y:l[1]},to:{x:a[0],y:a[1]}})}return t}function c(e){var t=e.map((function(e){return e[0]})),n=e.map((function(e){return e[1]}));return{minX:Math.min.apply(null,t),maxX:Math.max.apply(null,t),minY:Math.min.apply(null,n),maxY:Math.max.apply(null,n)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.attr(),n=t.x1,o=t.y1,i=t.x2,a=t.y2,l=Math.min(n,i),c=Math.max(n,i),s=Math.min(o,a),u=Math.max(o,a),d={minX:l,maxX:c,minY:s,maxY:u};return{x:(d=(0,r.mergeArrowBBox)(e,d)).minX,y:d.minY,width:d.maxX-d.minX,height:d.maxY-d.minY}};var r=n(248)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.attr(),n=t.x,r=t.y,o=t.rx,i=t.ry;return{x:n-o,y:r-i,width:2*o,height:2*i}}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0});var o={getAdjust:!0,registerAdjust:!0,Adjust:!0};Object.defineProperty(t,"Adjust",{enumerable:!0,get:function(){return i.default}}),t.registerAdjust=t.getAdjust=void 0;var i=r(n(109)),a=n(426);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(o,e)||e in t&&t[e]===a[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}}))}));var l={},c=t.getAdjust=function(e){return l[e.toLowerCase()]};t.registerAdjust=function(e,t){if(c(e))throw new Error("Adjust type '"+e+"' existed.");l[e.toLowerCase()]=t}},function(e,t,n){"use strict";var r=n(2),o=n(6);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(175),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!==typeof e)return{default:e};var n=c(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(r,a,l):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}(n(0)),l=n(249);function c(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(c=function(e){return e?n:t})(e)}var s=function(e){function t(t){var n=e.call(this,t)||this;n.cacheMap={},n.adjustDataArray=[],n.mergeData=[];var r=t.marginRatio,o=void 0===r?l.MARGIN_RATIO:r,i=t.dodgeRatio,a=void 0===i?l.DODGE_RATIO:i,c=t.dodgeBy,s=t.intervalPadding,u=t.dodgePadding,d=t.xDimensionLength,f=t.groupNum,p=t.defaultSize,h=t.maxColumnWidth,g=t.minColumnWidth,v=t.columnWidthRatio,m=t.customOffset;return n.marginRatio=o,n.dodgeRatio=a,n.dodgeBy=c,n.intervalPadding=s,n.dodgePadding=u,n.xDimensionLegenth=d,n.groupNum=f,n.defaultSize=p,n.maxColumnWidth=h,n.minColumnWidth=g,n.columnWidthRatio=v,n.customOffset=m,n}return(0,i.__extends)(t,e),t.prototype.process=function(e){var t=a.clone(e),n=a.flatten(t),r=this.dodgeBy,o=r?a.group(n,r):t;return this.cacheMap={},this.adjustDataArray=o,this.mergeData=n,this.adjustData(o,n),this.adjustDataArray=[],this.mergeData=[],t},t.prototype.adjustDim=function(e,t,n,r){var o=this,i=this.customOffset,l=this.getDistribution(e),c=this.groupData(n,e);return a.each(c,(function(n,c){var s;s=1===t.length?{pre:t[0]-1,next:t[0]+1}:o.getAdjustRange(e,parseFloat(c),t),a.each(n,(function(t){var n=t[e],c=l[n],u=c.indexOf(r);if(a.isNil(i))t[e]=o.getDodgeOffset(s,u,c.length);else{var d=s.pre,f=s.next;t[e]=a.isFunction(i)?i(t,s):(d+f)/2+i}}))})),[]},t.prototype.getDodgeOffset=function(e,t,n){var r,o=this,i=o.dodgeRatio,l=o.marginRatio,c=o.intervalPadding,s=o.dodgePadding,u=e.pre,d=e.next,f=d-u;if(!a.isNil(c)&&a.isNil(s)&&c>=0)r=u+this.getIntervalOnlyOffset(n,t);else if(!a.isNil(s)&&a.isNil(c)&&s>=0)r=u+this.getDodgeOnlyOffset(n,t);else if(!a.isNil(c)&&!a.isNil(s)&&c>=0&&s>=0)r=u+this.getIntervalAndDodgeOffset(n,t);else{var p=f*i/n,h=l*p;r=(u+d)/2+(.5*(f-n*p-(n-1)*h)+((t+1)*p+t*h)-.5*p-.5*f)}return r},t.prototype.getIntervalOnlyOffset=function(e,t){var n=this,r=n.defaultSize,o=n.intervalPadding,i=n.xDimensionLegenth,l=n.groupNum,c=n.dodgeRatio,s=n.maxColumnWidth,u=n.minColumnWidth,d=n.columnWidthRatio,f=o/i,p=(1-(l-1)*f)/l*c/(e-1),h=((1-f*(l-1))/l-p*(e-1))/e;if(h=a.isNil(d)?h:1/l/e*d,!a.isNil(s)){var g=s/i;h=Math.min(h,g)}if(!a.isNil(u)){var v=u/i;h=Math.max(h,v)}return((.5+t)*(h=r?r/i:h)+t*(p=((1-(l-1)*f)/l-e*h)/(e-1))+.5*f)*l-f/2},t.prototype.getDodgeOnlyOffset=function(e,t){var n=this,r=n.defaultSize,o=n.dodgePadding,i=n.xDimensionLegenth,l=n.groupNum,c=n.marginRatio,s=n.maxColumnWidth,u=n.minColumnWidth,d=n.columnWidthRatio,f=o/i,p=1*c/(l-1),h=((1-p*(l-1))/l-f*(e-1))/e;if(h=d?1/l/e*d:h,!a.isNil(s)){var g=s/i;h=Math.min(h,g)}if(!a.isNil(u)){var v=u/i;h=Math.max(h,v)}return((.5+t)*(h=r?r/i:h)+t*f+.5*(p=(1-(h*e+f*(e-1))*l)/(l-1)))*l-p/2},t.prototype.getIntervalAndDodgeOffset=function(e,t){var n=this,r=n.intervalPadding,o=n.dodgePadding,i=n.xDimensionLegenth,a=n.groupNum,l=r/i,c=o/i;return((.5+t)*(((1-l*(a-1))/a-c*(e-1))/e)+t*c+.5*l)*a-l/2},t.prototype.getDistribution=function(e){var t=this.adjustDataArray,n=this.cacheMap,r=n[e];return r||(r={},a.each(t,(function(t,n){var o=a.valuesOfKey(t,e);o.length||o.push(0),a.each(o,(function(e){r[e]||(r[e]=[]),r[e].push(n)}))})),n[e]=r),r},t}(r(n(109)).default);t.default=s},function(e,t,n){"use strict";var r=n(2),o=n(6);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(175),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!==typeof e)return{default:e};var n=c(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(r,a,l):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}(n(0)),l=n(249);function c(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(c=function(e){return e?n:t})(e)}var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,i.__extends)(t,e),t.prototype.process=function(e){var t=a.clone(e),n=a.flatten(t);return this.adjustData(t,n),t},t.prototype.adjustDim=function(e,t,n){var r=this,o=this.groupData(n,e);return a.each(o,(function(n,o){return r.adjustGroup(n,e,parseFloat(o),t)}))},t.prototype.getAdjustOffset=function(e){var t,n=e.pre,r=e.next,o=(r-n)*l.GAP;return(r-o-(t=n+o))*Math.random()+t},t.prototype.adjustGroup=function(e,t,n,r){var o=this,i=this.getAdjustRange(t,n,r);return a.each(e,(function(e){e[t]=o.getAdjustOffset(i)})),e},t}(r(n(109)).default);t.default=s},function(e,t,n){"use strict";var r=n(2),o=n(6);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(175),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!==typeof e)return{default:e};var n=c(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(r,a,l):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}(n(0)),l=r(n(109));function c(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(c=function(e){return e?n:t})(e)}var s=a.Cache,u=function(e){function t(t){var n=e.call(this,t)||this,r=t.adjustNames,o=void 0===r?["y"]:r,i=t.height,a=void 0===i?NaN:i,l=t.size,c=void 0===l?10:l,s=t.reverseOrder,u=void 0!==s&&s;return n.adjustNames=o,n.height=a,n.size=c,n.reverseOrder=u,n}return(0,i.__extends)(t,e),t.prototype.process=function(e){var t=this.yField,n=this.reverseOrder,r=t?this.processStack(e):this.processOneDimStack(e);return n?this.reverse(r):r},t.prototype.reverse=function(e){return e.slice(0).reverse()},t.prototype.processStack=function(e){var t=this,n=t.xField,r=t.yField,o=t.reverseOrder?this.reverse(e):e,l=new s,c=new s;return o.map((function(e){return e.map((function(e){var t,o=a.get(e,n,0),s=a.get(e,[r]),u=o.toString();if(s=a.isArray(s)?s[1]:s,!a.isNil(s)){var d=s>=0?l:c;d.has(u)||d.set(u,0);var f=d.get(u),p=s+f;return d.set(u,p),(0,i.__assign)((0,i.__assign)({},e),((t={})[r]=[f,p],t))}return e}))}))},t.prototype.processOneDimStack=function(e){var t=this,n=this,r=n.xField,o=n.height,a=n.reverseOrder,l=a?this.reverse(e):e,c=new s;return l.map((function(e){return e.map((function(e){var n,a=t.size,l=e[r],s=2*a/o;c.has(l)||c.set(l,s/2);var u=c.get(l);return c.set(l,u+s),(0,i.__assign)((0,i.__assign)({},e),((n={}).y=u,n))}))}))},t}(l.default);t.default=u},function(e,t,n){"use strict";var r=n(2),o=n(6);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(175),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!==typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var c=i?Object.getOwnPropertyDescriptor(e,a):null;c&&(c.get||c.set)?Object.defineProperty(r,a,c):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}(n(0));function l(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,i.__extends)(t,e),t.prototype.process=function(e){var t=a.flatten(e),n=this.xField,r=this.yField,o=this.getXValuesMaxMap(t),l=Math.max.apply(Math,Object.keys(o).map((function(e){return o[e]})));return a.map(e,(function(e){return a.map(e,(function(e){var t,c,s=e[r],u=e[n];if(a.isArray(s)){var d=(l-o[u])/2;return(0,i.__assign)((0,i.__assign)({},e),((t={})[r]=a.map(s,(function(e){return d+e})),t))}var f=(l-s)/2;return(0,i.__assign)((0,i.__assign)({},e),((c={})[r]=[f,s+f],c))}))}))},t.prototype.getXValuesMaxMap=function(e){var t=this,n=this.xField,r=this.yField,o=a.groupBy(e,(function(e){return e[n]}));return a.mapValues(o,(function(e){return t.getDimMaxValue(e,r)}))},t.prototype.getDimMaxValue=function(e,t){var n=a.map(e,(function(e){return a.get(e,t,[])})),r=a.flatten(n);return Math.max.apply(Math,r)},t}(r(n(109)).default);t.default=c},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(1),i=r(n(140)),a=n(0),l=function(e){function t(t){var n=e.call(this,t)||this;return n.type="color",n.names=["color"],(0,a.isString)(n.values)&&(n.linear=!0),n.gradient=i.default.gradient(n.values),n}return(0,o.__extends)(t,e),t.prototype.getLinearValue=function(e){return this.gradient(e)},t}(r(n(102)).default);t.default=l},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(1),i=function(e){function t(t){var n=e.call(this,t)||this;return n.type="opacity",n.names=["opacity"],n}return(0,o.__extends)(t,e),t}(r(n(102)).default);t.default=i},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(1),i=n(0),a=function(e){function t(t){var n=e.call(this,t)||this;return n.names=["x","y"],n.type="position",n}return(0,o.__extends)(t,e),t.prototype.mapping=function(e,t){var n=this.scales,r=n[0],o=n[1];return(0,i.isNil)(e)||(0,i.isNil)(t)?[]:[(0,i.isArray)(e)?e.map((function(e){return r.scale(e)})):r.scale(e),(0,i.isArray)(t)?t.map((function(e){return o.scale(e)})):o.scale(t)]},t}(r(n(102)).default);t.default=a},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(1),i=function(e){function t(t){var n=e.call(this,t)||this;return n.type="shape",n.names=["shape"],n}return(0,o.__extends)(t,e),t.prototype.getLinearValue=function(e){var t=Math.round((this.values.length-1)*e);return this.values[t]},t}(r(n(102)).default);t.default=i},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(1),i=function(e){function t(t){var n=e.call(this,t)||this;return n.type="size",n.names=["size"],n}return(0,o.__extends)(t,e),t}(r(n(102)).default);t.default=i},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0});var o={getAttribute:!0,registerAttribute:!0,Attribute:!0};Object.defineProperty(t,"Attribute",{enumerable:!0,get:function(){return i.default}}),t.registerAttribute=t.getAttribute=void 0;var i=r(n(102)),a=n(427);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(o,e)||e in t&&t[e]===a[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}}))}));var l={},c=t.getAttribute=function(e){return l[e.toLowerCase()]};t.registerAttribute=function(e,t){if(c(e))throw new Error("Attribute type '".concat(e,"' existed."));l[e.toLowerCase()]=t}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(1),i=n(0),a=n(176),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="timeCat",t}return(0,o.__extends)(t,e),t.prototype.translate=function(e){e=(0,a.toTimeStamp)(e);var t=this.values.indexOf(e);return-1===t&&(t=(0,i.isNumber)(e)&&e<this.values.length?e:NaN),t},t.prototype.getText=function(e,t){var n=this.translate(e);if(n>-1){var r=this.values[n],o=this.formatter;return r=o?o(r,t):(0,a.timeFormat)(r,this.mask)}return e},t.prototype.initCfg=function(){this.tickMethod="time-cat",this.mask="YYYY-MM-DD",this.tickCount=7},t.prototype.setDomain=function(){var t=this.values;(0,i.each)(t,(function(e,n){t[n]=(0,a.toTimeStamp)(e)})),t.sort((function(e,t){return e-t})),e.prototype.setDomain.call(this)},t}(r(n(429)).default);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assign=u,t.format=t.defaultI18n=t.default=void 0,t.parse=k,t.setGlobalDateMasks=t.setGlobalDateI18n=void 0;var r=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,o="\\d\\d?",i="\\d\\d",a="[^\\s]+",l=/\[([^]*?)\]/gm;function c(e,t){for(var n=[],r=0,o=e.length;r<o;r++)n.push(e[r].substr(0,t));return n}var s=function(e){return function(t,n){var r=n[e].map((function(e){return e.toLowerCase()})),o=r.indexOf(t.toLowerCase());return o>-1?o:null}};function u(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,o=t;r<o.length;r++){var i=o[r];for(var a in i)e[a]=i[a]}return e}var d=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],f=["January","February","March","April","May","June","July","August","September","October","November","December"],p=c(f,3),h=c(d,3),g=t.defaultI18n={dayNamesShort:h,dayNames:d,monthNamesShort:p,monthNames:f,amPm:["am","pm"],DoFn:function(e){return e+["th","st","nd","rd"][e%10>3?0:(e-e%10!==10?1:0)*e%10]}},v=u({},g),m=t.setGlobalDateI18n=function(e){return v=u(v,e)},y=function(e){return e.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},b=function(e,t){for(void 0===t&&(t=2),e=String(e);e.length<t;)e="0"+e;return e},x={D:function(e){return String(e.getDate())},DD:function(e){return b(e.getDate())},Do:function(e,t){return t.DoFn(e.getDate())},d:function(e){return String(e.getDay())},dd:function(e){return b(e.getDay())},ddd:function(e,t){return t.dayNamesShort[e.getDay()]},dddd:function(e,t){return t.dayNames[e.getDay()]},M:function(e){return String(e.getMonth()+1)},MM:function(e){return b(e.getMonth()+1)},MMM:function(e,t){return t.monthNamesShort[e.getMonth()]},MMMM:function(e,t){return t.monthNames[e.getMonth()]},YY:function(e){return b(String(e.getFullYear()),4).substr(2)},YYYY:function(e){return b(e.getFullYear(),4)},h:function(e){return String(e.getHours()%12||12)},hh:function(e){return b(e.getHours()%12||12)},H:function(e){return String(e.getHours())},HH:function(e){return b(e.getHours())},m:function(e){return String(e.getMinutes())},mm:function(e){return b(e.getMinutes())},s:function(e){return String(e.getSeconds())},ss:function(e){return b(e.getSeconds())},S:function(e){return String(Math.round(e.getMilliseconds()/100))},SS:function(e){return b(Math.round(e.getMilliseconds()/10),2)},SSS:function(e){return b(e.getMilliseconds(),3)},a:function(e,t){return e.getHours()<12?t.amPm[0]:t.amPm[1]},A:function(e,t){return e.getHours()<12?t.amPm[0].toUpperCase():t.amPm[1].toUpperCase()},ZZ:function(e){var t=e.getTimezoneOffset();return(t>0?"-":"+")+b(100*Math.floor(Math.abs(t)/60)+Math.abs(t)%60,4)},Z:function(e){var t=e.getTimezoneOffset();return(t>0?"-":"+")+b(Math.floor(Math.abs(t)/60),2)+":"+b(Math.abs(t)%60,2)}},w=function(e){return+e-1},S=[null,o],O=[null,a],_=["isPm",a,function(e,t){var n=e.toLowerCase();return n===t.amPm[0]?0:n===t.amPm[1]?1:null}],C=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(e){var t=(e+"").match(/([+-]|\d\d)/gi);if(t){var n=60*+t[1]+parseInt(t[2],10);return"+"===t[0]?n:-n}return 0}],E={D:["day",o],DD:["day",i],Do:["day",o+a,function(e){return parseInt(e,10)}],M:["month",o,w],MM:["month",i,w],YY:["year",i,function(e){var t=+(""+(new Date).getFullYear()).substr(0,2);return+(""+(+e>68?t-1:t)+e)}],h:["hour",o,void 0,"isPm"],hh:["hour",i,void 0,"isPm"],H:["hour",o],HH:["hour",i],m:["minute",o],mm:["minute",i],s:["second",o],ss:["second",i],YYYY:["year","\\d{4}"],S:["millisecond","\\d",function(e){return 100*+e}],SS:["millisecond",i,function(e){return 10*+e}],SSS:["millisecond","\\d{3}"],d:S,dd:S,ddd:O,dddd:O,MMM:["month",a,s("monthNamesShort")],MMMM:["month",a,s("monthNames")],a:_,A:_,ZZ:C,Z:C},P={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",isoDate:"YYYY-MM-DD",isoDateTime:"YYYY-MM-DDTHH:mm:ssZ",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},M=t.setGlobalDateMasks=function(e){return u(P,e)};function k(e,t,n){if(void 0===n&&(n={}),"string"!==typeof t)throw new Error("Invalid format in fecha parse");if(t=P[t]||t,e.length>1e3)return null;var o={year:(new Date).getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},i=[],a=[],c=t.replace(l,(function(e,t){return a.push(y(t)),"@@@"})),s={},d={};c=y(c).replace(r,(function(e){var t=E[e],n=t[0],r=t[1],o=t[3];if(s[n])throw new Error("Invalid format. "+n+" specified twice in format");return s[n]=!0,o&&(d[o]=!0),i.push(t),"("+r+")"})),Object.keys(d).forEach((function(e){if(!s[e])throw new Error("Invalid format. "+e+" is required in specified format")})),c=c.replace(/@@@/g,(function(){return a.shift()}));var f=e.match(new RegExp(c,"i"));if(!f)return null;for(var p,h=u(u({},v),n),g=1;g<f.length;g++){var m=i[g-1],b=m[0],x=m[2],w=x?x(f[g],h):+f[g];if(null==w)return null;o[b]=w}if(1===o.isPm&&null!=o.hour&&12!==+o.hour?o.hour=+o.hour+12:0===o.isPm&&12===+o.hour&&(o.hour=0),null==o.timezoneOffset){p=new Date(o.year,o.month,o.day,o.hour,o.minute,o.second,o.millisecond);for(var S=[["month","getMonth"],["day","getDate"],["hour","getHours"],["minute","getMinutes"],["second","getSeconds"]],O=(g=0,S.length);g<O;g++)if(s[S[g][0]]&&o[S[g][0]]!==p[S[g][1]]())return null}else if(p=new Date(Date.UTC(o.year,o.month,o.day,o.hour,o.minute-o.timezoneOffset,o.second,o.millisecond)),o.month>11||o.month<0||o.day>31||o.day<1||o.hour>23||o.hour<0||o.minute>59||o.minute<0||o.second>59||o.second<0)return null;return p}var A={format:t.format=function(e,t,n){if(void 0===t&&(t=P.default),void 0===n&&(n={}),"number"===typeof e&&(e=new Date(e)),"[object Date]"!==Object.prototype.toString.call(e)||isNaN(e.getTime()))throw new Error("Invalid Date pass to format");t=P[t]||t;var o=[];t=t.replace(l,(function(e,t){return o.push(t),"@@@"}));var i=u(u({},v),n);return(t=t.replace(r,(function(t){return x[t](e,i)}))).replace(/@@@/g,(function(){return o.shift()}))},parse:k,defaultI18n:g,setGlobalDateI18n:m,setGlobalDateMasks:M};t.default=A},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(t,n,o,i){for(var a=(0,r.isNil)(o)?0:o,l=(0,r.isNil)(i)?t.length:i;a<l;){var c=a+l>>>1;e(t[c])>n?l=c:a=c+1}return a}};var r=n(0)},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(1),i=n(178),a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="log",t}return(0,o.__extends)(t,e),t.prototype.invert=function(e){var t,n=this.base,r=(0,i.log)(n,this.max),o=this.rangeMin(),a=this.rangeMax()-o,l=this.positiveMin;if(l){if(0===e)return 0;var c=1/(r-(t=(0,i.log)(n,l/n)))*a;if(e<c)return e/c*l}else t=(0,i.log)(n,this.min);var s=(e-o)/a*(r-t)+t;return Math.pow(n,s)},t.prototype.initCfg=function(){this.tickMethod="log",this.base=10,this.tickCount=6,this.nice=!0},t.prototype.setDomain=function(){e.prototype.setDomain.call(this);var t=this.min;if(t<0)throw new Error("When you use log scale, the minimum value must be greater than zero!");0===t&&(this.positiveMin=(0,i.getLogPositiveMin)(this.values,this.base,this.max))},t.prototype.getScalePercent=function(e){var t=this.max,n=this.min;if(t===n)return 0;if(e<=0)return 0;var r=this.base,o=this.positiveMin;return o&&(n=1*o/r),e<o?e/o/((0,i.log)(r,t)-(0,i.log)(r,n)):((0,i.log)(r,e)-(0,i.log)(r,n))/((0,i.log)(r,t)-(0,i.log)(r,n))},t}(r(n(177)).default);t.default=a},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(1),i=n(178),a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="pow",t}return(0,o.__extends)(t,e),t.prototype.invert=function(e){var t=this.getInvertPercent(e),n=this.exponent,r=(0,i.calBase)(n,this.max),o=(0,i.calBase)(n,this.min),a=t*(r-o)+o,l=a>=0?1:-1;return Math.pow(a,n)*l},t.prototype.initCfg=function(){this.tickMethod="pow",this.exponent=2,this.tickCount=5,this.nice=!0},t.prototype.getScalePercent=function(e){var t=this.max,n=this.min;if(t===n)return 0;var r=this.exponent;return((0,i.calBase)(r,e)-(0,i.calBase)(r,n))/((0,i.calBase)(r,t)-(0,i.calBase)(r,n))},t}(r(n(177)).default);t.default=a},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(1),i=n(0),a=n(176),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="time",t}return(0,o.__extends)(t,e),t.prototype.getText=function(e,t){var n=this.translate(e),r=this.formatter;return r?r(n,t):(0,a.timeFormat)(n,this.mask)},t.prototype.scale=function(t){var n=t;return((0,i.isString)(n)||(0,i.isDate)(n))&&(n=this.translate(n)),e.prototype.scale.call(this,n)},t.prototype.translate=function(e){return(0,a.toTimeStamp)(e)},t.prototype.initCfg=function(){this.tickMethod="time-pretty",this.mask="YYYY-MM-DD",this.tickCount=7,this.nice=!1},t.prototype.setDomain=function(){var e=this.values,t=this.getConfig("min"),n=this.getConfig("max");if((0,i.isNil)(t)&&(0,i.isNumber)(t)||(this.min=this.translate(this.min)),(0,i.isNil)(n)&&(0,i.isNumber)(n)||(this.max=this.translate(this.max)),e&&e.length){var r=[],o=1/0,l=o,c=0;(0,i.each)(e,(function(e){var t=(0,a.toTimeStamp)(e);if(isNaN(t))throw new TypeError("Invalid Time: "+e+" in time scale!");o>t?(l=o,o=t):l>t&&(l=t),c<t&&(c=t),r.push(t)})),e.length>1&&(this.minTickInterval=l-o),(0,i.isNil)(t)&&(this.min=o),(0,i.isNil)(n)&&(this.max=c)}},t}(r(n(430)).default);t.default=l},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(1),i=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="quantile",t}return(0,o.__extends)(t,e),t.prototype.initCfg=function(){this.tickMethod="quantile",this.tickCount=5,this.nice=!0},t}(r(n(431)).default);t.default=i},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Scale",{enumerable:!0,get:function(){return o.default}}),t.getScale=a,t.registerScale=function(e,t){if(a(e))throw new Error("type '"+e+"' existed.");i[e]=t};var o=r(n(141)),i={};function a(e){return i[e]}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(1),i=n(0),a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="identity",t.isIdentity=!0,t}return(0,o.__extends)(t,e),t.prototype.calculateTicks=function(){return this.values},t.prototype.scale=function(e){return this.values[0]!==e&&(0,i.isNumber)(e)?e:this.range[0]},t.prototype.invert=function(e){var t=this.range;return e<t[0]||e>t[1]?NaN:this.values[0]},t}(r(n(141)).default);t.default=a},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getTickMethod",{enumerable:!0,get:function(){return d.getTickMethod}}),Object.defineProperty(t,"registerTickMethod",{enumerable:!0,get:function(){return d.registerTickMethod}});var o=r(n(432)),i=r(n(842)),a=r(n(844)),l=r(n(846)),c=r(n(847)),s=r(n(848)),u=r(n(849)),d=n(428),f=r(n(850)),p=r(n(851)),h=r(n(852));(0,d.registerTickMethod)("cat",o.default),(0,d.registerTickMethod)("time-cat",p.default),(0,d.registerTickMethod)("wilkinson-extended",a.default),(0,d.registerTickMethod)("r-pretty",u.default),(0,d.registerTickMethod)("time",f.default),(0,d.registerTickMethod)("time-pretty",h.default),(0,d.registerTickMethod)("log",l.default),(0,d.registerTickMethod)("pow",c.default),(0,d.registerTickMethod)("quantile",s.default),(0,d.registerTickMethod)("d3-linear",i.default)},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.min,n=e.max,r=e.tickInterval,c=e.minLimit,s=e.maxLimit,u=(0,i.default)(e);return(0,o.isNil)(c)&&(0,o.isNil)(s)?r?(0,a.default)(t,n,r).ticks:u:(0,l.default)(e,(0,o.head)(u),(0,o.last)(u))};var o=n(0),i=r(n(843)),a=r(n(251)),l=r(n(252))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.D3Linear=void 0,t.default=function(e){var t=e.min,n=e.max,r=e.nice,o=e.tickCount,i=new a;return i.domain([t,n]),r&&i.nice(o),i.ticks(o)};var r=Math.sqrt(50),o=Math.sqrt(10),i=Math.sqrt(2),a=t.D3Linear=function(){function e(){this._domain=[0,1]}return e.prototype.domain=function(e){return e?(this._domain=Array.from(e,Number),this):this._domain.slice()},e.prototype.nice=function(e){var t,n;void 0===e&&(e=5);var r,o=this._domain.slice(),i=0,a=this._domain.length-1,c=this._domain[i],s=this._domain[a];return s<c&&(c=(t=[s,c])[0],s=t[1],i=(n=[a,i])[0],a=n[1]),(r=l(c,s,e))>0?r=l(c=Math.floor(c/r)*r,s=Math.ceil(s/r)*r,e):r<0&&(r=l(c=Math.ceil(c*r)/r,s=Math.floor(s*r)/r,e)),r>0?(o[i]=Math.floor(c/r)*r,o[a]=Math.ceil(s/r)*r,this.domain(o)):r<0&&(o[i]=Math.ceil(c*r)/r,o[a]=Math.floor(s*r)/r,this.domain(o)),this},e.prototype.ticks=function(e){return void 0===e&&(e=5),function(e,t,n){var r,o,i,a,c=-1;if(n=+n,(e=+e)===(t=+t)&&n>0)return[e];if((r=t<e)&&(o=e,e=t,t=o),0===(a=l(e,t,n))||!isFinite(a))return[];if(a>0)for(e=Math.ceil(e/a),t=Math.floor(t/a),i=new Array(o=Math.ceil(t-e+1));++c<o;)i[c]=(e+c)*a;else for(e=Math.floor(e*a),t=Math.ceil(t*a),i=new Array(o=Math.ceil(e-t+1));++c<o;)i[c]=(e-c)/a;return r&&i.reverse(),i}(this._domain[0],this._domain[this._domain.length-1],e||5)},e}();function l(e,t,n){var a=(t-e)/Math.max(0,n),l=Math.floor(Math.log(a)/Math.LN10),c=a/Math.pow(10,l);return l>=0?(c>=r?10:c>=o?5:c>=i?2:1)*Math.pow(10,l):-Math.pow(10,-l)/(c>=r?10:c>=o?5:c>=i?2:1)}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.min,n=e.max,r=e.tickCount,c=e.nice,s=e.tickInterval,u=e.minLimit,d=e.maxLimit,f=(0,i.default)(t,n,r,c).ticks;return(0,o.isNil)(u)&&(0,o.isNil)(d)?s?(0,a.default)(t,n,s).ticks:f:(0,l.default)(e,(0,o.head)(f),(0,o.last)(f))};var o=n(0),i=r(n(845)),a=r(n(251)),l=r(n(252))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_Q=t.ALL_Q=void 0,t.default=function(e,t,n,a,p,h){void 0===n&&(n=5),void 0===a&&(a=!0),void 0===p&&(p=i),void 0===h&&(h=[.25,.2,.5,.05]);var g=n<0?0:Math.round(n);if(Number.isNaN(e)||Number.isNaN(t)||"number"!==typeof e||"number"!==typeof t||!g)return{min:0,max:0,ticks:[]};if(t-e<1e-15||1===g)return{min:e,max:t,ticks:[e]};if(t-e>1e148){var v=(t-e)/(A=n||5);return{min:e,max:t,ticks:Array(A).fill(null).map((function(t,n){return(0,o.prettyNumber)(e+v*n)}))}}for(var m={score:-2,lmin:0,lmax:0,lstep:0},y=1;y<1/0;){for(var b=0;b<p.length;b+=1){var x=p[b],w=c(x,p,y);if(h[0]*w+h[1]+h[2]+h[3]<m.score){y=1/0;break}for(var S=2;S<1/0;){var O=u(S,g);if(h[0]*w+h[1]+h[2]*O+h[3]<m.score)break;for(var _=(t-e)/(S+1)/y/x,C=Math.ceil(Math.log10(_));C<1/0;){var E=y*x*Math.pow(10,C),P=f(e,t,E*(S-1));if(h[0]*w+h[1]*P+h[2]*O+h[3]<m.score)break;var M=Math.floor(t/E)*y-(S-1)*y,k=Math.ceil(e/E)*y;if(M<=k)for(var A=k-M,I=0;I<=A;I+=1){var T=(M+I)*(E/y),j=T+E*(S-1),L=E,R=l(x,p,y,T,j,L),D=d(e,t,T,j),N=s(S,g,e,t,T,j),F=h[0]*R+h[1]*D+h[2]*N+1*h[3];F>m.score&&(!a||T<=e&&j>=t)&&(m.lmin=T,m.lmax=j,m.lstep=L,m.score=F)}C+=1}S+=1}}y+=1}var B=(0,o.prettyNumber)(m.lmax),z=(0,o.prettyNumber)(m.lmin),H=(0,o.prettyNumber)(m.lstep),W=Math.floor(function(e){return Math.round(1e12*e)/1e12}((B-z)/H))+1,V=new Array(W);for(V[0]=(0,o.prettyNumber)(z),b=1;b<W;b++)V[b]=(0,o.prettyNumber)(V[b-1]+H);return{min:Math.min(e,(0,r.head)(V)),max:Math.max(t,(0,r.last)(V)),ticks:V}};var r=n(0),o=n(433),i=t.DEFAULT_Q=[1,5,2,2.5,4,3],a=(t.ALL_Q=[1,5,2,2.5,4,3,1.5,7,6,8,9],100*Number.EPSILON);function l(e,t,n,o,i,l){var c=(0,r.size)(t),s=(0,r.indexOf)(t,e),u=0,d=function(e,t){return(e%t+t)%t}(o,l);return(d<a||l-d<a)&&o<=0&&i>=0&&(u=1),1-s/(c-1)-n+u}function c(e,t,n){var o=(0,r.size)(t);return 1-(0,r.indexOf)(t,e)/(o-1)-n+1}function s(e,t,n,r,o,i){var a=(e-1)/(i-o),l=(t-1)/(Math.max(i,r)-Math.min(n,o));return 2-Math.max(a/l,l/a)}function u(e,t){return e>=t?2-(e-1)/(t-1):1}function d(e,t,n,r){var o=t-e;return 1-.5*(Math.pow(t-r,2)+Math.pow(e-n,2))/Math.pow(.1*o,2)}function f(e,t,n){var r=t-e;if(n>r){var o=(n-r)/2;return 1-Math.pow(o,2)/Math.pow(.1*r,2)}return 1}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n=e.base,o=e.tickCount,i=e.min,a=e.max,l=e.values,c=(0,r.log)(n,a);if(i>0)t=Math.floor((0,r.log)(n,i));else{var s=(0,r.getLogPositiveMin)(l,n,a);t=Math.floor((0,r.log)(n,s))}for(var u=c-t,d=Math.ceil(u/o),f=[],p=t;p<c+d;p+=d)f.push(Math.pow(n,p));return i<=0&&f.unshift(0),f};var r=n(178)},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.exponent,n=e.tickCount,r=Math.ceil((0,o.calBase)(t,e.max)),a=Math.floor((0,o.calBase)(t,e.min));return(0,i.default)(a,r,n).ticks.map((function(e){var n=e>=0?1:-1;return Math.pow(e,t)*n}))};var o=n(178),i=r(n(434))},function(e,t,n){"use strict";function r(e,t){var n=e.length*t;return 1===t?e[e.length-1]:0===t?e[0]:n%1!==0?e[Math.ceil(n)-1]:e.length%2===0?(e[n-1]+e[n])/2:e[n]}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.tickCount,n=e.values;if(!n||!n.length)return[];for(var o=n.slice().sort((function(e,t){return e-t})),i=[],a=0;a<t;a++){var l=a/(t-1);i.push(r(o,l))}return i}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.min,n=e.max,r=e.tickCount,c=e.tickInterval,s=e.minLimit,u=e.maxLimit,d=(0,a.default)(t,n,r).ticks;return(0,o.isNil)(s)&&(0,o.isNil)(u)?c?(0,i.default)(t,n,c).ticks:d:(0,l.default)(e,(0,o.head)(d),(0,o.last)(d))};var o=n(0),i=r(n(251)),a=r(n(434)),l=r(n(252))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.min,n=e.max,o=e.minTickInterval,i=e.tickInterval,a=e.tickCount;if(i)a=Math.ceil((n-t)/i);else{var l=(n-t)/(i=(0,r.getTickInterval)(t,n,a)[1])/a;l>1&&(i*=Math.ceil(l)),o&&i<o&&(i=o)}i=Math.max(Math.floor((n-t)/(Math.pow(2,12)-1)),i);for(var c=[],s=t;s<n+i;s+=i)c.push(s);return c};var r=n(176)},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,i.default)((0,o.__assign)({showLast:!0},e))};var o=n(1),i=r(n(432))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.min,n=e.max,c=e.minTickInterval,s=e.tickCount,u=e.tickInterval,d=[];u||(u=(n-t)/s,c&&u<c&&(u=c)),u=Math.max(Math.floor((n-t)/(Math.pow(2,12)-1)),u);var f=o(t);if(u>r.YEAR)for(var p=o(n),h=Math.ceil(u/r.YEAR),g=f;g<=p+h;g+=h)d.push(i(g));else if(u>r.MONTH){var v=Math.ceil(u/r.MONTH),m=a(t),y=function(e,t){var n=o(e),r=o(t),i=a(e),l=a(t);return 12*(r-n)+(l-i)%12}(t,n);for(g=0;g<=y+v;g+=v)d.push(l(f,g+m))}else if(u>r.DAY){var b=(_=new Date(t)).getFullYear(),x=_.getMonth(),w=_.getDate(),S=Math.ceil(u/r.DAY),O=function(e,t){return Math.ceil((t-e)/r.DAY)}(t,n);for(g=0;g<O+S;g+=S)d.push(new Date(b,x,w+g).getTime())}else if(u>r.HOUR){b=(_=new Date(t)).getFullYear(),x=_.getMonth(),S=_.getDate();var _,C=_.getHours(),E=Math.ceil(u/r.HOUR),P=function(e,t){return Math.ceil((t-e)/r.HOUR)}(t,n);for(g=0;g<=P+E;g+=E)d.push(new Date(b,x,S,C+g).getTime())}else if(u>r.MINUTE){var M=function(e,t){return Math.ceil((t-e)/6e4)}(t,n),k=Math.ceil(u/r.MINUTE);for(g=0;g<=M+k;g+=k)d.push(t+g*r.MINUTE)}else{var A=u;A<r.SECOND&&(A=r.SECOND);var I=Math.floor(t/r.SECOND)*r.SECOND,T=Math.ceil((n-t)/r.SECOND),j=Math.ceil(A/r.SECOND);for(g=0;g<T+j;g+=j)d.push(I+g*r.SECOND)}return d.length>=512&&console.warn("Notice: current ticks length("+d.length+') >= 512, may cause performance issues, even out of memory. Because of the configure "tickInterval"(in milliseconds, current is '+u+") is too small, increase the value to solve the problem!"),d};var r=n(176);function o(e){return new Date(e).getFullYear()}function i(e){return new Date(e,0,1).getTime()}function a(e){return new Date(e).getMonth()}function l(e,t){return new Date(e,t,1).getTime()}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Coordinate",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"getCoordinate",{enumerable:!0,get:function(){return c.getCoordinate}}),Object.defineProperty(t,"registerCoordinate",{enumerable:!0,get:function(){return c.registerCoordinate}});var o=r(n(179)),i=r(n(854)),a=r(n(855)),l=r(n(856)),c=n(857);(0,c.registerCoordinate)("rect",i.default),(0,c.registerCoordinate)("cartesian",i.default),(0,c.registerCoordinate)("polar",l.default),(0,c.registerCoordinate)("helix",a.default)},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(1),i=function(e){function t(t){var n=e.call(this,t)||this;return n.isRect=!0,n.type="cartesian",n.initial(),n}return(0,o.__extends)(t,e),t.prototype.initial=function(){e.prototype.initial.call(this);var t=this.start,n=this.end;this.x={start:t.x,end:n.x},this.y={start:t.y,end:n.y}},t.prototype.convertPoint=function(e){var t,n=e.x,r=e.y;return this.isTransposed&&(n=(t=[r,n])[0],r=t[1]),{x:this.convertDim(n,"x"),y:this.convertDim(r,"y")}},t.prototype.invertPoint=function(e){var t,n=this.invertDim(e.x,"x"),r=this.invertDim(e.y,"y");return this.isTransposed&&(n=(t=[r,n])[0],r=t[1]),{x:n,y:r}},t}(r(n(179)).default);t.default=i},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(1),i=n(32),a=n(0),l=function(e){function t(t){var n=e.call(this,t)||this;n.isHelix=!0,n.type="helix";var r=t.startAngle,o=void 0===r?1.25*Math.PI:r,i=t.endAngle,a=void 0===i?7.25*Math.PI:i,l=t.innerRadius,c=void 0===l?0:l,s=t.radius;return n.startAngle=o,n.endAngle=a,n.innerRadius=c,n.radius=s,n.initial(),n}return(0,o.__extends)(t,e),t.prototype.initial=function(){e.prototype.initial.call(this);var t=(this.endAngle-this.startAngle)/(2*Math.PI)+1,n=Math.min(this.width,this.height)/2;this.radius&&this.radius>=0&&this.radius<=1&&(n*=this.radius),this.d=Math.floor(n*(1-this.innerRadius)/t),this.a=this.d/(2*Math.PI),this.x={start:this.startAngle,end:this.endAngle},this.y={start:this.innerRadius*n,end:this.innerRadius*n+.99*this.d}},t.prototype.convertPoint=function(e){var t,n=e.x,r=e.y;this.isTransposed&&(n=(t=[r,n])[0],r=t[1]);var o=this.convertDim(n,"x"),i=this.a*o,a=this.convertDim(r,"y");return{x:this.center.x+Math.cos(o)*(i+a),y:this.center.y+Math.sin(o)*(i+a)}},t.prototype.invertPoint=function(e){var t,n=this.d+this.y.start,r=i.vec2.subtract([0,0],[e.x,e.y],[this.center.x,this.center.y]),o=i.ext.angleTo(r,[1,0],!0),l=o*this.a;i.vec2.length(r)<l&&(l=i.vec2.length(r)),o=2*Math.floor((i.vec2.length(r)-l)/n)*Math.PI+o;var c=this.a*o,s=i.vec2.length(r)-c;s=(0,a.isNumberEqual)(s,0)?0:s;var u=this.invertDim(o,"x"),d=this.invertDim(s,"y");return u=(0,a.isNumberEqual)(u,0)?0:u,d=(0,a.isNumberEqual)(d,0)?0:d,this.isTransposed&&(u=(t=[d,u])[0],d=t[1]),{x:u,y:d}},t}(r(n(179)).default);t.default=l},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(1),i=n(32),a=n(0),l=function(e){function t(t){var n=e.call(this,t)||this;n.isPolar=!0,n.type="polar";var r=t.startAngle,o=void 0===r?-Math.PI/2:r,i=t.endAngle,a=void 0===i?3*Math.PI/2:i,l=t.innerRadius,c=void 0===l?0:l,s=t.radius;return n.startAngle=o,n.endAngle=a,n.innerRadius=c,n.radius=s,n.initial(),n}return(0,o.__extends)(t,e),t.prototype.initial=function(){for(e.prototype.initial.call(this);this.endAngle<this.startAngle;)this.endAngle+=2*Math.PI;var t,n=this.getOneBox(),r=n.maxX-n.minX,o=n.maxY-n.minY,i=Math.abs(n.minX)/r,a=Math.abs(n.minY)/o;this.height/o>this.width/r?(t=this.width/r,this.circleCenter={x:this.center.x-(.5-i)*this.width,y:this.center.y-(.5-a)*t*o}):(t=this.height/o,this.circleCenter={x:this.center.x-(.5-i)*t*r,y:this.center.y-(.5-a)*this.height}),this.polarRadius=this.radius,this.radius?this.radius>0&&this.radius<=1?this.polarRadius=t*this.radius:(this.radius<=0||this.radius>t)&&(this.polarRadius=t):this.polarRadius=t,this.x={start:this.startAngle,end:this.endAngle},this.y={start:this.innerRadius*this.polarRadius,end:this.polarRadius}},t.prototype.getRadius=function(){return this.polarRadius},t.prototype.convertPoint=function(e){var t,n=this.getCenter(),r=e.x,o=e.y;return this.isTransposed&&(r=(t=[o,r])[0],o=t[1]),r=this.convertDim(r,"x"),o=this.convertDim(o,"y"),{x:n.x+Math.cos(r)*o,y:n.y+Math.sin(r)*o}},t.prototype.invertPoint=function(e){var t,n=this.getCenter(),r=[e.x-n.x,e.y-n.y],o=this.startAngle,l=this.endAngle;this.isReflect("x")&&(o=(t=[l,o])[0],l=t[1]);var c=[1,0,0,0,1,0,0,0,1];i.ext.leftRotate(c,c,o);var s=[1,0,0];i.vec3.transformMat3(s,s,c);var u=[s[0],s[1]],d=i.ext.angleTo(u,r,l<o);(0,a.isNumberEqual)(d,2*Math.PI)&&(d=0);var f=i.vec2.length(r),p=d/(l-o);p=l-o>0?p:-p;var h=this.invertDim(f,"y"),g={x:0,y:0};return g.x=this.isTransposed?h:p,g.y=this.isTransposed?p:h,g},t.prototype.getCenter=function(){return this.circleCenter},t.prototype.getOneBox=function(){var e=this.startAngle,t=this.endAngle;if(Math.abs(t-e)>=2*Math.PI)return{minX:-1,maxX:1,minY:-1,maxY:1};for(var n=[0,Math.cos(e),Math.cos(t)],r=[0,Math.sin(e),Math.sin(t)],o=Math.min(e,t);o<Math.max(e,t);o+=Math.PI/18)n.push(Math.cos(o)),r.push(Math.sin(o));return{minX:Math.min.apply(Math,n),maxX:Math.max.apply(Math,n),minY:Math.min.apply(Math,r),maxY:Math.max.apply(Math,r)}},t}(r(n(179)).default);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={getCoordinate:!0,registerCoordinate:!0};t.registerCoordinate=t.getCoordinate=void 0;var o=n(858);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===o[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))}));var i={};t.getCoordinate=function(e){return i[e.toLowerCase()]},t.registerCoordinate=function(e,t){i[e.toLowerCase()]=t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Arc",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"DataMarker",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"DataRegion",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"Html",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"Line",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"Region",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"RegionFilter",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"Shape",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(t,"Text",{enumerable:!0,get:function(){return i.default}});var o=r(n(860)),i=r(n(862)),a=r(n(863)),l=r(n(864)),c=r(n(865)),s=r(n(866)),u=r(n(867)),d=r(n(868)),f=r(n(869)),p=r(n(870))},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(1),i=n(0),a=r(n(41)),l=n(181),c=r(n(58)),s=n(42),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,o.__extends)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,o.__assign)((0,o.__assign)({},t),{name:"annotation",type:"line",locationType:"region",start:null,end:null,style:{},text:null,defaultCfg:{style:{fill:c.default.textColor,fontSize:12,textAlign:"center",textBaseline:"bottom",fontFamily:c.default.fontFamily},text:{position:"center",autoRotate:!0,content:null,offsetX:0,offsetY:0,style:{stroke:c.default.lineColor,lineWidth:1}}}})},t.prototype.renderInner=function(e){this.renderLine(e),this.get("text")&&this.renderLabel(e)},t.prototype.renderLine=function(e){var t=this.get("start"),n=this.get("end"),r=this.get("style");this.addShape(e,{type:"line",id:this.getElementId("line"),name:"annotation-line",attrs:(0,o.__assign)({x1:t.x,y1:t.y,x2:n.x,y2:n.y},r)})},t.prototype.getLabelPoint=function(e,t,n){var r;return((r="start"===n?0:"center"===n?.5:(0,i.isString)(n)&&-1!==n.indexOf("%")?parseInt(n,10)/100:(0,i.isNumber)(n)?n:1)>1||r<0)&&(r=1),{x:(0,s.getValueByPercent)(e.x,t.x,r),y:(0,s.getValueByPercent)(e.y,t.y,r)}},t.prototype.renderLabel=function(e){var t=this.get("text"),n=this.get("start"),r=this.get("end"),o=t.position,i=t.content,a=t.style,c=t.offsetX,s=t.offsetY,u=t.autoRotate,d=t.maxLength,f=t.autoEllipsis,p=t.ellipsisPosition,h=t.background,g=t.isVertical,v=void 0!==g&&g,m=this.getLabelPoint(n,r,o),y=m.x+c,b=m.y+s,x={id:this.getElementId("line-text"),name:"annotation-line-text",x:y,y:b,content:i,style:a,maxLength:d,autoEllipsis:f,ellipsisPosition:p,background:h,isVertical:v};if(u){var w=[r.x-n.x,r.y-n.y];x.rotate=Math.atan2(w[1],w[0])}(0,l.renderTag)(e,x)},t}(a.default);t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.charAtLength=o,t.ellipsisString=function(e,t,n){void 0===n&&(n="tail");var i=e.length,a="";if("tail"===n){for(var l=0,c=0;l<t&&l+o(e,c)<=t;)a+=e[c],l+=o(e,c),c++;a+=r}else if("head"===n){for(l=0,c=i-1;l<t&&l+o(e,c)<=t;)a+=e[c],l+=o(e,c),c--;a=r+a}else{for(var s="",u="",d=(l=0,0),f=i-1;l<t;){var p=o(e,d),h=!1;p+l<=t&&(s+=e[d],d++,l+=p,h=!0);var g=o(e,f);if(g+l<=t&&(u=e[f]+u,l+=g,f--,h=!0),!h)break}a=s+r+u}return a},t.strLen=function(e){for(var t=0,n=0;n<e.length;n++)t+=o(e,n);return t};var r="\u2026";function o(e,t){return e.charCodeAt(t)>0&&e.charCodeAt(t)<128?1:2}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(1),i=r(n(41)),a=n(181),l=n(89),c=r(n(58)),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,o.__extends)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,o.__assign)((0,o.__assign)({},t),{name:"annotation",type:"text",locationType:"point",x:0,y:0,content:"",rotate:null,style:{},background:null,maxLength:null,autoEllipsis:!0,isVertical:!1,ellipsisPosition:"tail",defaultCfg:{style:{fill:c.default.textColor,fontSize:12,textAlign:"center",textBaseline:"middle",fontFamily:c.default.fontFamily}}})},t.prototype.setLocation=function(e){this.set("x",e.x),this.set("y",e.y),this.resetLocation()},t.prototype.renderInner=function(e){var t=this.getLocation(),n=t.x,r=t.y,o=this.get("content"),i=this.get("style"),l={id:this.getElementId("text"),name:this.get("name")+"-text",x:n,y:r,content:o,style:i,maxLength:this.get("maxLength"),autoEllipsis:this.get("autoEllipsis"),isVertical:this.get("isVertical"),ellipsisPosition:this.get("ellipsisPosition"),background:this.get("background"),rotate:this.get("rotate")};(0,a.renderTag)(e,l)},t.prototype.resetLocation=function(){var e=this.getElementByLocalId("text-group");if(e){var t=this.getLocation(),n=t.x,r=t.y,o=this.get("rotate");(0,l.applyTranslate)(e,n,r),(0,l.applyRotate)(e,o,n,r)}},t}(i.default);t.default=s},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(1),i=r(n(41)),a=n(42),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,o.__extends)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,o.__assign)((0,o.__assign)({},t),{name:"annotation",type:"arc",locationType:"circle",center:null,radius:100,startAngle:-Math.PI/2,endAngle:3*Math.PI/2,style:{stroke:"#999",lineWidth:1}})},t.prototype.renderInner=function(e){this.renderArc(e)},t.prototype.getArcPath=function(){var e=this.getLocation(),t=e.center,n=e.radius,r=e.startAngle,o=e.endAngle,i=(0,a.getCirclePoint)(t,n,r),l=(0,a.getCirclePoint)(t,n,o),c=o-r>Math.PI?1:0,s=[["M",i.x,i.y]];if(o-r===2*Math.PI){var u=(0,a.getCirclePoint)(t,n,r+Math.PI);s.push(["A",n,n,0,c,1,u.x,u.y]),s.push(["A",n,n,0,c,1,l.x,l.y])}else s.push(["A",n,n,0,c,1,l.x,l.y]);return s},t.prototype.renderArc=function(e){var t=this.getArcPath(),n=this.get("style");this.addShape(e,{type:"path",id:this.getElementId("arc"),name:"annotation-arc",attrs:(0,o.__assign)({path:t},n)})},t}(i.default);t.default=l},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(1),i=r(n(41)),a=r(n(58)),l=n(42),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,o.__extends)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,o.__assign)((0,o.__assign)({},t),{name:"annotation",type:"region",locationType:"region",start:null,end:null,style:{},defaultCfg:{style:{lineWidth:0,fill:a.default.regionColor,opacity:.4}}})},t.prototype.renderInner=function(e){this.renderRegion(e)},t.prototype.renderRegion=function(e){var t=this.get("start"),n=this.get("end"),r=this.get("style"),i=(0,l.regionToBBox)({start:t,end:n});this.addShape(e,{type:"rect",id:this.getElementId("region"),name:"annotation-region",attrs:(0,o.__assign)({x:i.x,y:i.y,width:i.width,height:i.height},r)})},t}(i.default);t.default=c},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(1),i=r(n(41)),a=n(42),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,o.__extends)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,o.__assign)((0,o.__assign)({},t),{name:"annotation",type:"image",locationType:"region",start:null,end:null,src:null,style:{}})},t.prototype.renderInner=function(e){this.renderImage(e)},t.prototype.getImageAttrs=function(){var e=this.get("start"),t=this.get("end"),n=this.get("style"),r=(0,a.regionToBBox)({start:e,end:t}),i=this.get("src");return(0,o.__assign)({x:r.x,y:r.y,img:i,width:r.width,height:r.height},n)},t.prototype.renderImage=function(e){this.addShape(e,{type:"image",id:this.getElementId("image"),name:"annotation-image",attrs:this.getImageAttrs()})},t}(i.default);t.default=l},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(1),i=n(0),a=r(n(41)),l=n(181),c=n(89),s=r(n(58)),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,o.__extends)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,o.__assign)((0,o.__assign)({},t),{name:"annotation",type:"dataMarker",locationType:"point",x:0,y:0,point:{},line:{},text:{},direction:"upward",autoAdjust:!0,coordinateBBox:null,defaultCfg:{point:{display:!0,style:{r:3,fill:"#FFFFFF",stroke:"#1890FF",lineWidth:2}},line:{display:!0,length:20,style:{stroke:s.default.lineColor,lineWidth:1}},text:{content:"",display:!0,style:{fill:s.default.textColor,opacity:.65,fontSize:12,textAlign:"start",fontFamily:s.default.fontFamily}}}})},t.prototype.renderInner=function(e){(0,i.get)(this.get("line"),"display")&&this.renderLine(e),(0,i.get)(this.get("text"),"display")&&this.renderText(e),(0,i.get)(this.get("point"),"display")&&this.renderPoint(e),this.get("autoAdjust")&&this.autoAdjust(e)},t.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x")+this.get("offsetX"),y:this.get("y")+this.get("offsetY")})},t.prototype.renderPoint=function(e){var t=this.getShapeAttrs().point;this.addShape(e,{type:"circle",id:this.getElementId("point"),name:"annotation-point",attrs:t})},t.prototype.renderLine=function(e){var t=this.getShapeAttrs().line;this.addShape(e,{type:"path",id:this.getElementId("line"),name:"annotation-line",attrs:t})},t.prototype.renderText=function(e){var t=this.getShapeAttrs().text,n=t.x,r=t.y,i=t.text,a=(0,o.__rest)(t,["x","y","text"]),c=this.get("text"),s=c.background,u=c.maxLength,d=c.autoEllipsis,f=c.isVertival,p=c.ellipsisPosition,h={x:n,y:r,id:this.getElementId("text"),name:"annotation-text",content:i,style:a,background:s,maxLength:u,autoEllipsis:d,isVertival:f,ellipsisPosition:p};(0,l.renderTag)(e,h)},t.prototype.autoAdjust=function(e){var t=this.get("direction"),n=this.get("x"),r=this.get("y"),o=(0,i.get)(this.get("line"),"length",0),a=this.get("coordinateBBox"),l=e.getBBox(),s=l.minX,u=l.maxX,d=l.minY,f=l.maxY,p=e.findById(this.getElementId("text-group")),h=e.findById(this.getElementId("text")),g=e.findById(this.getElementId("line"));if(a&&p){var v=p.attr("x"),m=p.attr("y"),y=h.getCanvasBBox(),b=y.width,x=y.height,w=0,S=0;if(n+s<=a.minX)if("leftward"===t)w=1;else{var O=a.minX-(n+s);v=p.attr("x")+O}else n+u>=a.maxX&&("rightward"===t?w=-1:(O=n+u-a.maxX,v=p.attr("x")-O));w&&(g&&g.attr("path",[["M",0,0],["L",o*w,0]]),v=(o+2+b)*w),r+d<=a.minY?"upward"===t?S=1:(O=a.minY-(r+d),m=p.attr("y")+O):r+f>=a.maxY&&("downward"===t?S=-1:(O=r+f-a.maxY,m=p.attr("y")-O)),S&&(g&&g.attr("path",[["M",0,0],["L",0,o*S]]),m=(o+2+x)*S),v===p.attr("x")&&m===p.attr("y")||(0,c.applyTranslate)(p,v,m)}},t.prototype.getShapeAttrs=function(){var e=(0,i.get)(this.get("line"),"display"),t=(0,i.get)(this.get("point"),"style",{}),n=(0,i.get)(this.get("line"),"style",{}),r=(0,i.get)(this.get("text"),"style",{}),a=this.get("direction"),l=e?(0,i.get)(this.get("line"),"length",0):0,c=0,s=0,u="top",d="start";switch(a){case"upward":s=-1,u="bottom";break;case"downward":s=1,u="top";break;case"leftward":c=-1,d="end";break;case"rightward":c=1,d="start"}return{point:(0,o.__assign)({x:0,y:0},t),line:(0,o.__assign)({path:[["M",0,0],["L",l*c,l*s]]},n),text:(0,o.__assign)({x:(l+2)*c,y:(l+2)*s,text:(0,i.get)(this.get("text"),"content",""),textBaseline:u,textAlign:d},r)}},t}(a.default);t.default=u},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(1),i=n(0),a=r(n(41)),l=r(n(58)),c=n(42),s=n(181),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,o.__extends)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,o.__assign)((0,o.__assign)({},t),{name:"annotation",type:"dataRegion",locationType:"points",points:[],lineLength:0,region:{},text:{},defaultCfg:{region:{style:{lineWidth:0,fill:l.default.regionColor,opacity:.4}},text:{content:"",style:{textAlign:"center",textBaseline:"bottom",fontSize:12,fill:l.default.textColor,fontFamily:l.default.fontFamily}}}})},t.prototype.renderInner=function(e){var t=(0,i.get)(this.get("region"),"style",{}),n=((0,i.get)(this.get("text"),"style",{}),this.get("lineLength")||0),r=this.get("points");if(r.length){var a=(0,c.pointsToBBox)(r),l=[];l.push(["M",r[0].x,a.minY-n]),r.forEach((function(e){l.push(["L",e.x,e.y])})),l.push(["L",r[r.length-1].x,r[r.length-1].y-n]),this.addShape(e,{type:"path",id:this.getElementId("region"),name:"annotation-region",attrs:(0,o.__assign)({path:l},t)});var u=(0,o.__assign)({id:this.getElementId("text"),name:"annotation-text",x:(a.minX+a.maxX)/2,y:a.minY-n},this.get("text"));(0,s.renderTag)(e,u)}},t}(a.default);t.default=u},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(1),i=n(0),a=r(n(41)),l=n(42),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,o.__extends)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,o.__assign)((0,o.__assign)({},t),{name:"annotation",type:"regionFilter",locationType:"region",start:null,end:null,color:null,shape:[]})},t.prototype.renderInner=function(e){var t=this,n=this.get("start"),r=this.get("end"),o=this.addGroup(e,{id:this.getElementId("region-filter"),capture:!1});(0,i.each)(this.get("shapes"),(function(e,n){var r=e.get("type"),a=(0,i.clone)(e.attr());t.adjustShapeAttrs(a),t.addShape(o,{id:t.getElementId("shape-"+r+"-"+n),capture:!1,type:r,attrs:a})}));var a=(0,l.regionToBBox)({start:n,end:r});o.setClip({type:"rect",attrs:{x:a.minX,y:a.minY,width:a.width,height:a.height}})},t.prototype.adjustShapeAttrs=function(e){var t=this.get("color");e.fill&&(e.fill=e.fillStyle=t),e.stroke=e.strokeStyle=t},t}(a.default);t.default=c},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(1),i=n(0),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,o.__extends)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,o.__assign)((0,o.__assign)({},t),{name:"annotation",type:"shape",draw:i.noop})},t.prototype.renderInner=function(e){var t=this.get("render");(0,i.isFunction)(t)&&t(e)},t}(r(n(41)).default);t.default=a},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(1),i=n(95),a=n(0),l=r(n(182)),c=n(42),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,o.__extends)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,o.__assign)((0,o.__assign)({},t),{name:"annotation",type:"html",locationType:"point",x:0,y:0,containerTpl:'<div class="g2-html-annotation" style="position:absolute"></div>',alignX:"left",alignY:"top",html:"",zIndex:7})},t.prototype.render=function(){var e=this.getContainer(),t=this.get("html");(0,c.clearDom)(e);var n=(0,a.isFunction)(t)?t(e):t;if((0,a.isElement)(n))e.appendChild(n);else if((0,a.isString)(n)||(0,a.isNumber)(n)){var r=(0,i.createDom)(""+n);r&&e.appendChild(r)}this.resetPosition()},t.prototype.resetPosition=function(){var e=this.getContainer(),t=this.getLocation(),n=t.x,r=t.y,o=this.get("alignX"),a=this.get("alignY"),l=this.get("offsetX"),c=this.get("offsetY"),s=(0,i.getOuterWidth)(e),u=(0,i.getOuterHeight)(e),d={x:n,y:r};"middle"===o?d.x-=Math.round(s/2):"right"===o&&(d.x-=Math.round(s)),"middle"===a?d.y-=Math.round(u/2):"bottom"===a&&(d.y-=Math.round(u)),l&&(d.x+=l),c&&(d.y+=c),(0,i.modifyCSS)(e,{position:"absolute",left:d.x+"px",top:d.y+"px",zIndex:this.get("zIndex")})},t}(l.default);t.default=s},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Base",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"Circle",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"Line",{enumerable:!0,get:function(){return o.default}});var o=r(n(872)),i=r(n(876)),a=r(n(254))},function(e,t,n){"use strict";var r=n(2),o=n(6);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(1),a=n(32),l=n(0),c=r(n(254)),s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!==typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(r,a,l):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}(n(437));function u(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}var d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,i.__extends)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},t),{type:"line",locationType:"region",start:null,end:null})},t.prototype.getLinePath=function(){var e=this.get("start"),t=this.get("end"),n=[];return n.push(["M",e.x,e.y]),n.push(["L",t.x,t.y]),n},t.prototype.getInnerLayoutBBox=function(){var t=this.get("start"),n=this.get("end"),r=e.prototype.getInnerLayoutBBox.call(this),o=Math.min(t.x,n.x,r.x),i=Math.min(t.y,n.y,r.y),a=Math.max(t.x,n.x,r.maxX),l=Math.max(t.y,n.y,r.maxY);return{x:o,y:i,minX:o,minY:i,maxX:a,maxY:l,width:a-o,height:l-i}},t.prototype.isVertical=function(){var e=this.get("start"),t=this.get("end");return(0,l.isNumberEqual)(e.x,t.x)},t.prototype.isHorizontal=function(){var e=this.get("start"),t=this.get("end");return(0,l.isNumberEqual)(e.y,t.y)},t.prototype.getTickPoint=function(e){var t=this.get("start"),n=this.get("end"),r=n.x-t.x,o=n.y-t.y;return{x:t.x+r*e,y:t.y+o*e}},t.prototype.getSideVector=function(e){var t=this.getAxisVector(),n=a.vec2.normalize([0,0],t),r=this.get("verticalFactor"),o=[n[1],-1*n[0]];return a.vec2.scale([0,0],o,e*r)},t.prototype.getAxisVector=function(){var e=this.get("start"),t=this.get("end");return[t.x-e.x,t.y-e.y]},t.prototype.processOverlap=function(e){var t=this,n=this.isVertical(),r=this.isHorizontal();if(n||r){var o=this.get("label"),i=this.get("title"),a=this.get("verticalLimitLength"),c=o.offset,s=a,u=0,d=0;i&&(u=i.style.fontSize,d=i.spacing),s&&(s=s-c-d-u);var f=this.get("overlapOrder");if((0,l.each)(f,(function(n){o[n]&&t.canProcessOverlap(n)&&t.autoProcessOverlap(n,o[n],e,s)})),i&&(0,l.isNil)(i.offset)){var p=e.getCanvasBBox(),h=n?p.width:p.height;i.offset=c+h+d+u/2}}},t.prototype.canProcessOverlap=function(e){var t=this.get("label");return"autoRotate"!==e||(0,l.isNil)(t.rotate)},t.prototype.autoProcessOverlap=function(e,t,n,r){var o=this,i=this.isVertical(),a=!1,c=s[e];if(!0===t)this.get("label"),a=c.getDefault()(i,n,r);else if((0,l.isFunction)(t))a=t(i,n,r);else if((0,l.isObject)(t)){var u=t;c[u.type]&&(a=c[u.type](i,n,r,u.cfg))}else c[t]&&(a=c[t](i,n,r));if("autoRotate"===e){if(a){var d=n.getChildren(),f=this.get("verticalFactor");(0,l.each)(d,(function(e){if("center"===e.attr("textAlign")){var t=f>0?"end":"start";e.attr("textAlign",t)}}))}}else if("autoHide"===e){var p=n.getChildren().slice(0);(0,l.each)(p,(function(e){e.get("visible")||(o.get("isRegister")&&o.unregisterElement(e),e.remove())}))}},t}(c.default);t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ellipsisHead=function(e,t,n){return i(e,t,n,"head")},t.ellipsisMiddle=function(e,t,n){return i(e,t,n,"middle")},t.ellipsisTail=a,t.getDefault=function(){return a};var r=n(0),o=n(142);function i(e,t,n,i){var a=t.getChildren(),l=!1;return(0,r.each)(a,(function(t){var r=(0,o.ellipsisLabel)(e,t,n,i);l=l||r})),l}function a(e,t,n){return i(e,t,n,"tail")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.equidistance=u,t.equidistanceWithReverseBoth=function(e,t,n,r){var o=t.getChildren().slice(),i=s(e,t,r);if(o.length>2){var a=o[0],l=o[o.length-1];a.get("visible")||(a.show(),c(e,t,!1,r)&&(i=!0)),l.get("visible")||(l.show(),c(e,t,!0,r)&&(i=!0))}return i},t.getDefault=function(){return u},t.reserveBoth=function(e,t,n,r){var o=(null===r||void 0===r?void 0:r.minGap)||0,i=t.getChildren().slice();if(i.length<=2)return!1;for(var a=!1,c=i.length,s=i[0],u=i[c-1],d=s,f=1;f<c-1;f++){var p=i[f];p.getBBox(),l(e,d,p,o)?(p.hide(),a=!0):d=p}return l(e,d,u,o)&&(d.hide(),a=!0),a},t.reserveFirst=function(e,t,n,r){return c(e,t,!1,r)},t.reserveLast=function(e,t,n,r){return c(e,t,!0,r)};var r=n(142),o=n(89),i=n(42);function a(e){var t=function(e){var t=e.attr("matrix");return t&&1!==t[0]}(e)?(0,o.getAngleByMatrix)(e.attr("matrix")):0;return t%360}function l(e,t,n,r){var o=!1,l=a(t),c=e?Math.abs(n.attr("y")-t.attr("y")):Math.abs(n.attr("x")-t.attr("x")),s=(e?n.attr("y")>t.attr("y"):n.attr("x")>t.attr("x"))?t.getBBox():n.getBBox();if(e){var u=Math.abs(Math.cos(l));o=(0,i.near)(u,0,Math.PI/180)?s.width+r>c:s.height/u+r>c}else u=Math.abs(Math.sin(l)),o=(0,i.near)(u,0,Math.PI/180)?s.width+r>c:s.height/u+r>c;return o}function c(e,t,n,r){var o=(null===r||void 0===r?void 0:r.minGap)||0,i=t.getChildren().slice().filter((function(e){return e.get("visible")}));if(!i.length)return!1;var a=!1;n&&i.reverse();for(var c=i.length,s=i[0],u=1;u<c;u++){var d=i[u];d.getBBox(),l(e,s,d,o)?(d.hide(),a=!0):s=d}return a}function s(e,t,n){var o=(null===n||void 0===n?void 0:n.minGap)||0,l=t.getChildren().slice();if(l.length<2)return!1;var c=!1,s=l[0],u=s.getBBox(),d=l[1],f=l.length,p=a(s),h=e?Math.abs(d.attr("y")-s.attr("y")):Math.abs(d.attr("x")-s.attr("x")),g=0;if(e){var v=Math.abs(Math.cos(p));g=(0,i.near)(v,0,Math.PI/180)?((0,r.getMaxLabelWidth)(l)+o)/h:(u.height/v+o)/h}else v=Math.abs(Math.sin(p)),g=(0,i.near)(v,0,Math.PI/180)?((0,r.getMaxLabelWidth)(l)+o)/h:(u.height/v+o)/h;if(g>1){g=Math.ceil(g);for(var m=0;m<f;m++)m%g!==0&&(l[m].hide(),c=!0)}return c}function u(e,t,n,r){var o=s(e,t,r);return c(e,t,!1)&&(o=!0),o}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.fixedAngle=s,t.getDefault=function(){return s},t.unfixedAngle=function(e,t,n){return c(e,t,n,(function(t,n){if(!t)return e?l.default.verticalAxisRotate:l.default.horizontalAxisRotate;if(e)return-Math.acos(t/n);var r=0;return(t>n||(r=Math.asin(t/n))>Math.PI/4)&&(r=Math.PI/4),r}))};var o=n(0),i=n(142),a=n(89),l=r(n(58));function c(e,t,n,r){var l=t.getChildren();if(!l.length)return!1;if(!e&&l.length<2)return!1;var c=(0,i.getMaxLabelWidth)(l),s=!1;return(s=e?!!n&&c>n:c>Math.abs(l[1].attr("x")-l[0].attr("x")))&&function(e,t){(0,o.each)(e,(function(e){var n=e.attr("x"),r=e.attr("y"),o=(0,a.getMatrixByAngle)({x:n,y:r},t);e.attr("matrix",o)}))}(l,r(n,c)),s}function s(e,t,n,r){return c(e,t,n,(function(){return(0,o.isNumber)(r)?r:e?l.default.verticalAxisRotate:l.default.horizontalAxisRotate}))}},function(e,t,n){"use strict";var r=n(2),o=n(6);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(1),a=n(0),l=n(32),c=r(n(254)),s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!==typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(r,a,l):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}(n(437));function u(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}var d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,i.__extends)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},t),{type:"circle",locationType:"circle",center:null,radius:null,startAngle:-Math.PI/2,endAngle:3*Math.PI/2})},t.prototype.getLinePath=function(){var e=this.get("center"),t=e.x,n=e.y,r=this.get("radius"),o=r,i=this.get("startAngle"),a=this.get("endAngle"),l=[];if(Math.abs(a-i)===2*Math.PI)l=[["M",t,n-o],["A",r,o,0,1,1,t,n+o],["A",r,o,0,1,1,t,n-o],["Z"]];else{var c=this.getCirclePoint(i),s=this.getCirclePoint(a),u=Math.abs(a-i)>Math.PI?1:0,d=i>a?0:1;l=[["M",t,n],["L",c.x,c.y],["A",r,o,0,u,d,s.x,s.y],["L",t,n]]}return l},t.prototype.getTickPoint=function(e){var t=this.get("startAngle"),n=t+(this.get("endAngle")-t)*e;return this.getCirclePoint(n)},t.prototype.getSideVector=function(e,t){var n=this.get("center"),r=[t.x-n.x,t.y-n.y],o=this.get("verticalFactor"),i=l.vec2.length(r);return l.vec2.scale(r,r,o*e/i),r},t.prototype.getAxisVector=function(e){var t=this.get("center"),n=[e.x-t.x,e.y-t.y];return[n[1],-1*n[0]]},t.prototype.getCirclePoint=function(e,t){var n=this.get("center");return t=t||this.get("radius"),{x:n.x+Math.cos(e)*t,y:n.y+Math.sin(e)*t}},t.prototype.canProcessOverlap=function(e){var t=this.get("label");return"autoRotate"!==e||(0,a.isNil)(t.rotate)},t.prototype.processOverlap=function(e){var t=this,n=this.get("label"),r=this.get("title"),o=this.get("verticalLimitLength"),i=n.offset,l=o,c=0,s=0;r&&(c=r.style.fontSize,s=r.spacing),l&&(l=l-i-s-c);var u=this.get("overlapOrder");if((0,a.each)(u,(function(r){n[r]&&t.canProcessOverlap(r)&&t.autoProcessOverlap(r,n[r],e,l)})),r&&(0,a.isNil)(r.offset)){var d=e.getCanvasBBox().height;r.offset=i+d+s+c/2}},t.prototype.autoProcessOverlap=function(e,t,n,r){var o=this,i=!1,l=s[e];if(r>0)if(!0===t)i=l.getDefault()(!1,n,r);else if((0,a.isFunction)(t))i=t(!1,n,r);else if((0,a.isObject)(t)){var c=t;l[c.type]&&(i=l[c.type](!1,n,r,c.cfg))}else l[t]&&(i=l[t](!1,n,r));if("autoRotate"===e){if(i){var u=n.getChildren(),d=this.get("verticalFactor");(0,a.each)(u,(function(e){if("center"===e.attr("textAlign")){var t=d>0?"end":"start";e.attr("textAlign",t)}}))}}else if("autoHide"===e){var f=n.getChildren().slice(0);(0,a.each)(f,(function(e){e.get("visible")||(o.get("isRegister")&&o.unregisterElement(e),e.remove())}))}},t}(c.default);t.default=d},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Base",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"Circle",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"Html",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"Line",{enumerable:!0,get:function(){return o.default}});var o=r(n(878)),i=r(n(879)),a=r(n(255)),l=r(n(880))},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(1),i=n(42),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,o.__extends)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,o.__assign)((0,o.__assign)({},t),{type:"line",locationType:"region",start:null,end:null})},t.prototype.getRotateAngle=function(){var e=this.getLocation(),t=e.start,n=e.end,r=this.get("text").position,o=Math.atan2(n.y-t.y,n.x-t.x);return"start"===r?o-Math.PI/2:o+Math.PI/2},t.prototype.getTextPoint=function(){var e=this.getLocation(),t=e.start,n=e.end,r=this.get("text"),o=r.position,a=r.offset;return(0,i.getTextPoint)(t,n,o,a)},t.prototype.getLinePath=function(){var e=this.getLocation(),t=e.start,n=e.end;return[["M",t.x,t.y],["L",n.x,n.y]]},t}(r(n(255)).default);t.default=a},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(1),i=n(42),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,o.__extends)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,o.__assign)((0,o.__assign)({},t),{type:"circle",locationType:"circle",center:null,radius:100,startAngle:-Math.PI/2,endAngle:3*Math.PI/2})},t.prototype.getRotateAngle=function(){var e=this.getLocation(),t=e.startAngle,n=e.endAngle;return"start"===this.get("text").position?t+Math.PI/2:n-Math.PI/2},t.prototype.getTextPoint=function(){var e=this.get("text"),t=e.position,n=e.offset,r=this.getLocation(),o=r.center,a=r.radius,l=r.startAngle,c=r.endAngle,s="start"===t?l:c,u=this.getRotateAngle()-Math.PI,d=(0,i.getCirclePoint)(o,a,s),f=Math.cos(u)*n,p=Math.sin(u)*n;return{x:d.x+f,y:d.y+p}},t.prototype.getLinePath=function(){var e=this.getLocation(),t=e.center,n=e.radius,r=e.startAngle,o=e.endAngle,a=null;if(o-r===2*Math.PI){var l=t.x,c=t.y;a=[["M",l,c-n],["A",n,n,0,1,1,l,c+n],["A",n,n,0,1,1,l,c-n],["Z"]]}else{var s=(0,i.getCirclePoint)(t,n,r),u=(0,i.getCirclePoint)(t,n,o),d=Math.abs(o-r)>Math.PI?1:0,f=r>o?0:1;a=[["M",s.x,s.y],["A",n,n,0,d,f,u.x,u.y]]}return a},t}(r(n(255)).default);t.default=a},function(e,t,n){"use strict";var r=n(2),o=n(6);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(1),a=n(95),l=n(0),c=n(42),s=r(n(182)),u=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!==typeof e)return{default:e};var n=f(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(r,a,l):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}(n(438)),d=r(n(881));function f(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(f=function(e){return e?n:t})(e)}var p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,i.__extends)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},t),{name:"crosshair",type:"html",locationType:"region",start:{x:0,y:0},end:{x:0,y:0},capture:!1,text:null,containerTpl:'<div class="'+u.CONTAINER_CLASS+'"></div>',crosshairTpl:'<div class="'+u.CROSSHAIR_LINE+'"></div>',textTpl:'<span class="'+u.CROSSHAIR_TEXT+'">{content}</span>',domStyles:null,containerClassName:u.CONTAINER_CLASS,defaultStyles:d.default,defaultCfg:{text:{position:"start",content:null,align:"center",offset:10}}})},t.prototype.render=function(){this.resetText(),this.resetPosition()},t.prototype.initCrossHair=function(){var e=this.getContainer(),t=this.get("crosshairTpl"),n=(0,a.createDom)(t);e.appendChild(n),this.applyStyle(u.CROSSHAIR_LINE,n),this.set("crosshairEl",n)},t.prototype.getTextPoint=function(){var e=this.getLocation(),t=e.start,n=e.end,r=this.get("text"),o=r.position,i=r.offset;return(0,c.getTextPoint)(t,n,o,i)},t.prototype.resetText=function(){var e=this.get("text"),t=this.get("textEl");if(e){var n=e.content;if(!t){var r=this.getContainer(),o=(0,l.substitute)(this.get("textTpl"),e);t=(0,a.createDom)(o),r.appendChild(t),this.applyStyle(u.CROSSHAIR_TEXT,t),this.set("textEl",t)}t.innerHTML=n}else t&&t.remove()},t.prototype.isVertical=function(e,t){return e.x===t.x},t.prototype.resetPosition=function(){var e=this.get("crosshairEl");e||(this.initCrossHair(),e=this.get("crosshairEl"));var t=this.get("start"),n=this.get("end"),r=Math.min(t.x,n.x),o=Math.min(t.y,n.y);this.isVertical(t,n)?(0,a.modifyCSS)(e,{width:"1px",height:(0,c.toPx)(Math.abs(n.y-t.y))}):(0,a.modifyCSS)(e,{height:"1px",width:(0,c.toPx)(Math.abs(n.x-t.x))}),(0,a.modifyCSS)(e,{top:(0,c.toPx)(o),left:(0,c.toPx)(r)}),this.alignText()},t.prototype.alignText=function(){var e=this.get("textEl");if(e){var t=this.get("text").align,n=e.clientWidth,r=this.getTextPoint();switch(t){case"center":r.x=r.x-n/2;break;case"right":r.x=r.x-n}(0,a.modifyCSS)(e,{top:(0,c.toPx)(r.y),left:(0,c.toPx)(r.x)})}},t.prototype.updateInner=function(t){(0,l.hasKey)(t,"text")&&this.resetText(),e.prototype.updateInner.call(this,t)},t}(s.default);t.default=p},function(e,t,n){"use strict";var r=n(2),o=n(6);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,a=r(n(58)),l=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!==typeof e)return{default:e};var n=c(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(r,a,l):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}(n(438));function c(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(c=function(e){return e?n:t})(e)}t.default=((i={})[""+l.CONTAINER_CLASS]={position:"relative"},i[""+l.CROSSHAIR_LINE]={position:"absolute",backgroundColor:"rgba(0, 0, 0, 0.25)"},i[""+l.CROSSHAIR_TEXT]={position:"absolute",color:a.default.textColor,fontFamily:a.default.fontFamily},i)},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Base",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"Circle",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"Line",{enumerable:!0,get:function(){return a.default}});var o=r(n(256)),i=r(n(883)),a=r(n(884))},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(1),i=n(0),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,o.__extends)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,o.__assign)((0,o.__assign)({},t),{type:"circle",center:null,closed:!0})},t.prototype.getGridPath=function(e,t){var n=this.getLineType(),r=this.get("closed"),o=[];if(e.length)if("circle"===n){var a=this.get("center"),l=e[0],c=function(e,t,n,r){var o=n-e,i=r-t;return Math.sqrt(o*o+i*i)}(a.x,a.y,l.x,l.y),s=t?0:1;r?(o.push(["M",a.x,a.y-c]),o.push(["A",c,c,0,0,s,a.x,a.y+c]),o.push(["A",c,c,0,0,s,a.x,a.y-c]),o.push(["Z"])):(0,i.each)(e,(function(e,t){0===t?o.push(["M",e.x,e.y]):o.push(["A",c,c,0,0,s,e.x,e.y])}))}else(0,i.each)(e,(function(e,t){0===t?o.push(["M",e.x,e.y]):o.push(["L",e.x,e.y])})),r&&o.push(["Z"]);return o},t}(r(n(256)).default);t.default=a},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(1),i=n(0),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,o.__extends)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,o.__assign)((0,o.__assign)({},t),{type:"line"})},t.prototype.getGridPath=function(e){var t=[];return(0,i.each)(e,(function(e,n){0===n?t.push(["M",e.x,e.y]):t.push(["L",e.x,e.y])})),t},t}(r(n(256)).default);t.default=a},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Base",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"Category",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"Continuous",{enumerable:!0,get:function(){return i.default}});var o=r(n(886)),i=r(n(887)),a=r(n(257))},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(1),i=n(0),a=n(142),l=n(89),c=n(436),s=r(n(58)),u=r(n(257)),d={marker:{style:{inactiveFill:"#000",inactiveOpacity:.45,fill:"#000",opacity:1,size:12}},text:{style:{fill:"#ccc",fontSize:12}}},f={fill:s.default.textColor,fontSize:12,textAlign:"start",textBaseline:"middle",fontFamily:s.default.fontFamily,fontWeight:"normal",lineHeight:12},p="navigation-arrow-right",h="navigation-arrow-left",g={right:90*Math.PI/180,left:270*Math.PI/180,up:0,down:180*Math.PI/180},v=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.currentPageIndex=1,t.totalPagesCnt=1,t.pageWidth=0,t.pageHeight=0,t.startX=0,t.startY=0,t.onNavigationBack=function(){var e=t.getElementByLocalId("item-group");if(t.currentPageIndex>1){t.currentPageIndex-=1,t.updateNavigation();var n=t.getCurrentNavigationMatrix();t.get("animate")?e.animate({matrix:n},100):e.attr({matrix:n})}},t.onNavigationAfter=function(){var e=t.getElementByLocalId("item-group");if(t.currentPageIndex<t.totalPagesCnt){t.currentPageIndex+=1,t.updateNavigation();var n=t.getCurrentNavigationMatrix();t.get("animate")?e.animate({matrix:n},100):e.attr({matrix:n})}},t}return(0,o.__extends)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,o.__assign)((0,o.__assign)({},t),{name:"legend",type:"category",itemSpacing:24,itemMarginBottom:8,maxItemWidth:null,itemWidth:null,itemHeight:null,itemName:{},itemValue:null,maxWidth:null,maxHeight:null,marker:{},radio:null,items:[],itemStates:{},itemBackground:{},pageNavigator:{},defaultCfg:{title:{spacing:5,style:{fill:s.default.textColor,fontSize:12,textAlign:"start",textBaseline:"top"}},background:{padding:5,style:{stroke:s.default.lineColor}},itemBackground:{style:{opacity:0,fill:"#fff"}},pageNavigator:d,itemName:{spacing:16,style:f},marker:{spacing:8,style:{r:6,symbol:"circle"}},itemValue:{alignRight:!1,formatter:null,style:f,spacing:6},itemStates:{active:{nameStyle:{opacity:.8}},unchecked:{nameStyle:{fill:s.default.uncheckedColor},markerStyle:{fill:s.default.uncheckedColor,stroke:s.default.uncheckedColor}},inactive:{nameStyle:{fill:s.default.uncheckedColor},markerStyle:{opacity:.2}}}}})},t.prototype.isList=function(){return!0},t.prototype.getItems=function(){return this.get("items")},t.prototype.setItems=function(e){this.update({items:e})},t.prototype.updateItem=function(e,t){(0,i.mix)(e,t),this.clear(),this.render()},t.prototype.clearItems=function(){var e=this.getElementByLocalId("item-group");e&&e.clear()},t.prototype.setItemState=function(e,t,n){e[t]=n;var r=this.getElementByLocalId("item-"+e.id);if(r){var o=this.getItems().indexOf(e),i=this.createOffScreenGroup(),a=this.drawItem(e,o,this.getItemHeight(),i);this.updateElements(a,r),this.clearUpdateStatus(r)}},t.prototype.hasState=function(e,t){return!!e[t]},t.prototype.getItemStates=function(e){var t=this.get("itemStates"),n=[];return(0,i.each)(t,(function(t,r){e[r]&&n.push(r)})),n},t.prototype.clearItemsState=function(e){var t=this,n=this.getItemsByState(e);(0,i.each)(n,(function(n){t.setItemState(n,e,!1)}))},t.prototype.getItemsByState=function(e){var t=this,n=this.getItems();return(0,i.filter)(n,(function(n){return t.hasState(n,e)}))},t.prototype.drawLegendContent=function(e){this.processItems(),this.drawItems(e)},t.prototype.processItems=function(){var e=this.get("items");(0,i.each)(e,(function(e){e.id||(e.id=e.name)}))},t.prototype.drawItems=function(e){var t=this,n=this.addGroup(e,{id:this.getElementId("item-container-group"),name:"legend-item-container-group"}),r=this.addGroup(n,{id:this.getElementId("item-group"),name:"legend-item-group"}),o=this.getItemHeight(),a=this.get("itemWidth"),l=this.get("itemSpacing"),c=this.get("itemMarginBottom"),s=this.get("currentPoint"),u=s.x,d=s.y,f=this.get("layout"),p=this.get("items"),h=!1,g=0,v=this.get("maxWidth"),m=this.get("maxHeight");(0,i.each)(p,(function(e,n){var i=t.drawItem(e,n,o,r),p=i.getBBox(),y=a||p.width;y>g&&(g=y),"horizontal"===f?(v&&v<s.x+y-u&&(h=!0,s.x=u,s.y+=o+c),t.moveElementTo(i,s),s.x+=y+l):(m&&m<s.y+o+c-d&&(h=!0,s.x+=g+l,s.y=d,g=0),t.moveElementTo(i,s),s.y+=o+c)})),h&&this.get("flipPage")&&(this.pageHeight=0,this.pageWidth=0,this.totalPagesCnt=1,this.startX=u,this.startY=d,this.adjustNavigation(e,r))},t.prototype.getItemHeight=function(){var e=this.get("itemHeight");if(!e){var t=(this.get("itemName")||{}).style;if((0,i.isFunction)(t)){var n=this.getItems();n.forEach((function(r,i){var a=(0,o.__assign)((0,o.__assign)({},f),t(r,i,n)).fontSize;e<a&&(e=a)}))}else t&&(e=t.fontSize)}return e},t.prototype.drawMarker=function(e,t,n,r){var a=(0,o.__assign)((0,o.__assign)((0,o.__assign)({x:0,y:r/2},t.style),{symbol:(0,i.get)(n.marker,"symbol","circle")}),(0,i.get)(n.marker,"style",{})),l=this.addShape(e,{type:"marker",id:this.getElementId("item-"+n.id+"-marker"),name:"legend-item-marker",attrs:a}),c=l.getBBox();l.attr("x",c.width/2);var s=l.attr(),u=s.stroke,d=s.fill;return u&&l.set("isStroke",!0),d&&l.set("isFill",!0),l},t.prototype.drawItemText=function(e,t,n,r,a,l,c){var s=n.formatter,u=n.style,d=(0,o.__assign)((0,o.__assign)({x:l,y:a/2,text:s?s(r[t],r,c):r[t]},f),(0,i.isFunction)(u)?u(r,c,this.getItems()):u);return this.addShape(e,{type:"text",id:this.getElementId("item-"+r.id+"-"+t),name:"legend-item-"+t,attrs:d})},t.prototype.drawRadio=function(e,t,n,r,i){var a,l,c=t.style||{},s=null!==(a=c.r)&&void 0!==a?a:r/2,u=3.6*s/8,d=[i+s,r/2-s],f=d[0],p=d[1],h=[f+s,p+s],g=h[0],v=h[1],m=[f,v+s],y=m[0],b=m[1],x=[i,p+s],w=x[0],S=x[1],O=n.showRadio,_=(0,o.__assign)((0,o.__assign)({path:[["M",f,p],["A",s,s,0,0,1,g,v],["L",g-u,v],["L",g,v],["A",s,s,0,0,1,y,b],["L",y,b-u],["L",y,b],["A",s,s,0,0,1,w,S],["L",w+u,S],["L",w,S],["A",s,s,0,0,1,f,p],["L",f,p+u]],stroke:"#000000",fill:"#ffffff"},c),{opacity:O?null!==(l=null===c||void 0===c?void 0:c.opacity)&&void 0!==l?l:.45:0}),C=this.addShape(e,{type:"path",id:this.getElementId("item-"+n.id+"-radio"),name:"legend-item-radio",attrs:_});return C.set("tip",t.tip),C},t.prototype.drawItem=function(e,t,n,r){var l="item-"+e.id,c=this.addGroup(r,{name:"legend-item-container",id:this.getElementId("item-container-"+l),delegateObject:{item:e,index:t}}),s=this.addGroup(c,{name:"legend-item",id:this.getElementId(l),delegateObject:{item:e,index:t}}),u=this.get("marker"),d=this.get("itemName"),f=this.get("itemValue"),p=this.get("itemBackground"),h=this.get("radio"),g=this.getLimitItemWidth(),v=0;if(u){var m=this.drawMarker(s,u,e,n),y=u.spacing,b=(0,i.get)(e,["marker","spacing"]);(0,i.isNumber)(b)&&(y=b),v=m.getBBox().maxX+y}if(d){var x=this.drawItemText(s,"name",d,e,n,v,t);g&&(0,a.ellipsisLabel)(!0,x,(0,i.clamp)(g-v,0,g)),v=x.getBBox().maxX+d.spacing}if(f){var w=this.drawItemText(s,"value",f,e,n,v,t);g&&(f.alignRight?(w.attr({textAlign:"right",x:g}),(0,a.ellipsisLabel)(!0,w,(0,i.clamp)(g-v,0,g),"head")):(0,a.ellipsisLabel)(!0,w,(0,i.clamp)(g-v,0,g))),v=w.getBBox().maxX+f.spacing}if(h&&this.drawRadio(s,h,e,n,v),p){var S=s.getBBox();this.addShape(s,{type:"rect",name:"legend-item-background",id:this.getElementId(l+"-background"),attrs:(0,o.__assign)({x:0,y:0,width:S.width,height:n},p.style)}).toBack()}return this.applyItemStates(e,s),s},t.prototype.adjustNavigation=function(e,t){var n=this,r=this.startX,o=this.startY,a=this.get("layout"),l=t.findAll((function(e){return"legend-item"===e.get("name")})),c=this.get("maxWidth"),s=this.get("maxHeight"),u=this.get("itemWidth"),f=this.get("itemSpacing"),p=this.getItemHeight(),h=(0,i.deepMix)({},d,this.get("pageNavigator")),g=this.drawNavigation(e,a,"00/00",h),v=g.getBBox(),m={x:r,y:o},y=1,b=0,x=0,w=0,S=this.get("itemMarginBottom");if("horizontal"===a){var O=this.get("maxRow")||1,_=p+(1===O?0:S),C=c-f-v.width-v.minX;this.pageHeight=_*O,this.pageWidth=C,(0,i.each)(l,(function(e){var t=e.getBBox(),o=u||t.width;(b&&b<m.x+o+f||function(e,t){var n=e.getBBox(),r=u||n.width;return t.x+r+f+v.width>c}(e,m))&&(1===y&&(b=m.x+f,n.moveElementTo(g,{x:C,y:m.y+p/2-v.height/2-v.minY})),y+=1,m.x=r,m.y+=_),n.moveElementTo(e,m),e.getParent().setClip({type:"rect",attrs:{x:m.x,y:m.y,width:o+f,height:p}}),m.x+=o+f}))}else{(0,i.each)(l,(function(e){var t=e.getBBox();t.width>x&&(x=t.width)})),w=x,x+=f,c&&(x=Math.min(c,x),w=Math.min(c,w)),this.pageWidth=x,this.pageHeight=s-Math.max(v.height,p+S);var E=Math.floor(this.pageHeight/(p+S));(0,i.each)(l,(function(e,t){0!==t&&t%E===0&&(y+=1,m.x+=x,m.y=o),n.moveElementTo(e,m),e.getParent().setClip({type:"rect",attrs:{x:m.x,y:m.y,width:x,height:p}}),m.y+=p+S})),this.totalPagesCnt=y,this.moveElementTo(g,{x:r+w/2-v.width/2-v.minX,y:s-v.height-v.minY})}this.pageHeight&&this.pageWidth&&t.getParent().setClip({type:"rect",attrs:{x:this.startX,y:this.startY,width:this.pageWidth,height:this.pageHeight}}),"horizontal"===a&&this.get("maxRow")?this.totalPagesCnt=Math.ceil(y/this.get("maxRow")):this.totalPagesCnt=y,this.currentPageIndex>this.totalPagesCnt&&(this.currentPageIndex=1),this.updateNavigation(g),t.attr("matrix",this.getCurrentNavigationMatrix())},t.prototype.drawNavigation=function(e,t,n,r){var a={x:0,y:0},l=this.addGroup(e,{id:this.getElementId("navigation-group"),name:"legend-navigation"}),c=(0,i.get)(r.marker,"style",{}),s=c.size,u=void 0===s?12:s,d=(0,o.__rest)(c,["size"]),f=this.drawArrow(l,a,h,"horizontal"===t?"up":"left",u,d);f.on("click",this.onNavigationBack);var g=f.getBBox();a.x+=g.width+2;var v=this.addShape(l,{type:"text",id:this.getElementId("navigation-text"),name:"navigation-text",attrs:(0,o.__assign)({x:a.x,y:a.y+u/2,text:n,textBaseline:"middle"},(0,i.get)(r.text,"style"))}).getBBox();return a.x+=v.width+2,this.drawArrow(l,a,p,"horizontal"===t?"down":"right",u,d).on("click",this.onNavigationAfter),l},t.prototype.updateNavigation=function(e){var t=(0,i.deepMix)({},d,this.get("pageNavigator")).marker.style,n=t.fill,r=t.opacity,o=t.inactiveFill,a=t.inactiveOpacity,l=this.currentPageIndex+"/"+this.totalPagesCnt,c=e?e.getChildren()[1]:this.getElementByLocalId("navigation-text"),s=e?e.findById(this.getElementId(h)):this.getElementByLocalId(h),u=e?e.findById(this.getElementId(p)):this.getElementByLocalId(p);c.attr("text",l),s.attr("opacity",1===this.currentPageIndex?a:r),s.attr("fill",1===this.currentPageIndex?o:n),s.attr("cursor",1===this.currentPageIndex?"not-allowed":"pointer"),u.attr("opacity",this.currentPageIndex===this.totalPagesCnt?a:r),u.attr("fill",this.currentPageIndex===this.totalPagesCnt?o:n),u.attr("cursor",this.currentPageIndex===this.totalPagesCnt?"not-allowed":"pointer");var f=s.getBBox().maxX+2;c.attr("x",f),f+=c.getBBox().width+2,this.updateArrowPath(u,{x:f,y:0})},t.prototype.drawArrow=function(e,t,n,r,i,a){var c=t.x,s=t.y,u=this.addShape(e,{type:"path",id:this.getElementId(n),name:n,attrs:(0,o.__assign)({size:i,direction:r,path:[["M",c+i/2,s],["L",c,s+i],["L",c+i,s+i],["Z"]],cursor:"pointer"},a)});return u.attr("matrix",(0,l.getMatrixByAngle)({x:c+i/2,y:s+i/2},g[r])),u},t.prototype.updateArrowPath=function(e,t){var n=t.x,r=t.y,o=e.attr(),i=o.size,a=o.direction,c=(0,l.getMatrixByAngle)({x:n+i/2,y:r+i/2},g[a]);e.attr("path",[["M",n+i/2,r],["L",n,r+i],["L",n+i,r+i],["Z"]]),e.attr("matrix",c)},t.prototype.getCurrentNavigationMatrix=function(){var e=this,t=e.currentPageIndex,n=e.pageWidth,r=e.pageHeight,o="horizontal"===this.get("layout")?{x:0,y:r*(1-t)}:{x:n*(1-t),y:0};return(0,l.getMatrixByTranslate)(o)},t.prototype.applyItemStates=function(e,t){if(this.getItemStates(e).length>0){var n=t.getChildren(),r=this.get("itemStates");(0,i.each)(n,(function(t){var n=t.get("name").split("-")[2],o=(0,c.getStatesStyle)(e,n,r);o&&(t.attr(o),"marker"!==n||t.get("isStroke")&&t.get("isFill")||(t.get("isStroke")&&t.attr("fill",null),t.get("isFill")&&t.attr("stroke",null)))}))}},t.prototype.getLimitItemWidth=function(){var e=this.get("itemWidth"),t=this.get("maxItemWidth");return t?e&&(t=e<=t?e:t):e&&(t=e),t},t}(u.default);t.default=v},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(1),i=n(0),a=r(n(58)),l=n(42),c=r(n(257)),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,o.__extends)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,o.__assign)((0,o.__assign)({},t),{type:"continue",min:0,max:100,value:null,colors:[],track:{},rail:{},label:{},handler:{},slidable:!0,tip:null,step:null,maxWidth:null,maxHeight:null,defaultCfg:{label:{align:"rail",spacing:5,formatter:null,style:{fontSize:12,fill:a.default.textColor,textBaseline:"middle",fontFamily:a.default.fontFamily}},handler:{size:10,style:{fill:"#fff",stroke:"#333"}},track:{},rail:{type:"color",size:20,defaultLength:100,style:{fill:"#DCDEE2"}},title:{spacing:5,style:{fill:a.default.textColor,fontSize:12,textAlign:"start",textBaseline:"top"}}}})},t.prototype.isSlider=function(){return!0},t.prototype.getValue=function(){return this.getCurrentValue()},t.prototype.getRange=function(){return{min:this.get("min"),max:this.get("max")}},t.prototype.setRange=function(e,t){this.update({min:e,max:t})},t.prototype.setValue=function(e){var t=this.getValue();this.set("value",e);var n=this.get("group");this.resetTrackClip(),this.get("slidable")&&this.resetHandlers(n),this.delegateEmit("valuechanged",{originValue:t,value:e})},t.prototype.initEvent=function(){var e=this.get("group");this.bindSliderEvent(e),this.bindRailEvent(e),this.bindTrackEvent(e)},t.prototype.drawLegendContent=function(e){this.drawRail(e),this.drawLabels(e),this.fixedElements(e),this.resetTrack(e),this.resetTrackClip(e),this.get("slidable")&&this.resetHandlers(e)},t.prototype.bindSliderEvent=function(e){this.bindHandlersEvent(e)},t.prototype.bindHandlersEvent=function(e){var t=this;e.on("legend-handler-min:drag",(function(e){var n=t.getValueByCanvasPoint(e.x,e.y),r=t.getCurrentValue()[1];r<n&&(r=n),t.setValue([n,r])})),e.on("legend-handler-max:drag",(function(e){var n=t.getValueByCanvasPoint(e.x,e.y),r=t.getCurrentValue()[0];r>n&&(r=n),t.setValue([r,n])}))},t.prototype.bindRailEvent=function(e){},t.prototype.bindTrackEvent=function(e){var t=this,n=null;e.on("legend-track:dragstart",(function(e){n={x:e.x,y:e.y}})),e.on("legend-track:drag",(function(e){if(n){var r=t.getValueByCanvasPoint(n.x,n.y),o=t.getValueByCanvasPoint(e.x,e.y),i=t.getCurrentValue(),a=i[1]-i[0],l=t.getRange(),c=o-r;c<0?i[0]+c>l.min?t.setValue([i[0]+c,i[1]+c]):t.setValue([l.min,l.min+a]):c>0&&(c>0&&i[1]+c<l.max?t.setValue([i[0]+c,i[1]+c]):t.setValue([l.max-a,l.max])),n={x:e.x,y:e.y}}})),e.on("legend-track:dragend",(function(e){n=null}))},t.prototype.drawLabels=function(e){this.drawLabel("min",e),this.drawLabel("max",e)},t.prototype.drawLabel=function(e,t){var n=this.get("label"),r=n.style,a=n.align,l=n.formatter,c=this.get(e),s=this.getLabelAlignAttrs(e,a),u="label-"+e;this.addShape(t,{type:"text",id:this.getElementId(u),name:"legend-label-"+e,attrs:(0,o.__assign)((0,o.__assign)({x:0,y:0,text:(0,i.isFunction)(l)?l(c):c},r),s)})},t.prototype.getLabelAlignAttrs=function(e,t){var n="center",r="middle";return this.isVertical()?(n="start",r="rail"!==t?"min"===e?"top":"bottom":"top"):"rail"!==t?(r="top",n="min"===e?"start":"end"):(n="start",r="middle"),{textAlign:n,textBaseline:r}},t.prototype.getRailPath=function(e,t,n,r){var o=this.get("rail"),i=o.size,a=o.defaultLength,l=o.type,c=this.isVertical(),s=n,u=r;s||(s=c?i:a),u||(u=c?a:i);var d=[];return"color"===l?(d.push(["M",e,t]),d.push(["L",e+s,t]),d.push(["L",e+s,t+u]),d.push(["L",e,t+u]),d.push(["Z"])):(d.push(["M",e+s,t]),d.push(["L",e+s,t+u]),d.push(["L",e,t+u]),d.push(["Z"])),d},t.prototype.drawRail=function(e){var t=this.get("rail").style;this.addShape(e,{type:"path",id:this.getElementId("rail"),name:"legend-rail",attrs:(0,o.__assign)({path:this.getRailPath(0,0)},t)})},t.prototype.getTrackColor=function(e){var t,n=e.length;if(!n)return null;if(1===n)return e[0];t=this.isVertical()?"l(90)":"l(0)";for(var r=0;r<n;r++)t+=" "+r/(n-1)+":"+e[r];return t},t.prototype.getTrackPath=function(e){var t=this.getRailShape(e).attr("path");return(0,i.clone)(t)},t.prototype.getClipTrackAttrs=function(e){var t,n,r,o,i=this.getCurrentValue(),a=i[0],l=i[1],c=this.getRailBBox(e),s=this.getPointByValue(a,e),u=this.getPointByValue(l,e);return this.isVertical()?(t=c.minX,n=s.y,r=c.width,o=u.y-s.y):(t=s.x,n=c.minY,r=u.x-s.x,o=c.height),{x:t,y:n,width:r,height:o}},t.prototype.getTrackAttrs=function(e){var t=this.get("track"),n=this.get("colors"),r=this.getTrackPath(e);return(0,i.mix)({path:r,fill:this.getTrackColor(n)},t.style)},t.prototype.resetTrackClip=function(e){var t=e||this.get("group"),n=this.getElementId("track"),r=t.findById(n),o=r.getClip(),i=this.getClipTrackAttrs(e);o?o.attr(i):r.setClip({type:"rect",attrs:i})},t.prototype.resetTrack=function(e){var t=this.getElementId("track"),n=e.findById(t),r=this.getTrackAttrs(e);n?n.attr(r):this.addShape(e,{type:"path",id:t,draggable:this.get("slidable"),name:"legend-track",attrs:r})},t.prototype.getPointByValue=function(e,t){var n=this.getRange(),r=n.min,o=(e-r)/(n.max-r),i=this.getRailBBox(t),a={x:0,y:0};return this.isVertical()?(a.x=i.minX+i.width/2,a.y=(0,l.getValueByPercent)(i.minY,i.maxY,o)):(a.x=(0,l.getValueByPercent)(i.minX,i.maxX,o),a.y=i.minY+i.height/2),a},t.prototype.getRailShape=function(e){return(e||this.get("group")).findById(this.getElementId("rail"))},t.prototype.getRailBBox=function(e){return this.getRailShape(e).getBBox()},t.prototype.getRailCanvasBBox=function(){return this.get("group").findById(this.getElementId("rail")).getCanvasBBox()},t.prototype.isVertical=function(){return"vertical"===this.get("layout")},t.prototype.getValueByCanvasPoint=function(e,t){var n,r=this.getRange(),o=r.min,i=r.max,a=this.getRailCanvasBBox(),c=this.isVertical(),s=this.get("step");n=c?(t-a.minY)/a.height:(e-a.minX)/a.width;var u=(0,l.getValueByPercent)(o,i,n);return s&&(u=o+Math.round((u-o)/s)*s),u>i&&(u=i),u<o&&(u=o),u},t.prototype.getCurrentValue=function(){var e=this.get("value");if(!e){var t=this.get("values");return t?[Math.max(Math.min.apply(Math,(0,o.__spreadArrays)(t,[this.get("max")])),this.get("min")),Math.min(Math.max.apply(Math,(0,o.__spreadArrays)(t,[this.get("min")])),this.get("max"))]:[this.get("min"),this.get("max")]}return e},t.prototype.resetHandlers=function(e){var t=this.getCurrentValue(),n=t[0],r=t[1];this.resetHandler(e,"min",n),this.resetHandler(e,"max",r)},t.prototype.getHandlerPath=function(e,t){var n=this.isVertical(),r=[],o=e.size,i=t.x,a=t.y,l=1.4*o,c=o/2,s=o/6;if(n){var u=i+.4*l;r.push(["M",i,a]),r.push(["L",u,a+c]),r.push(["L",i+l,a+c]),r.push(["L",i+l,a-c]),r.push(["L",u,a-c]),r.push(["Z"]),r.push(["M",u,a+s]),r.push(["L",i+l-2,a+s]),r.push(["M",u,a-s]),r.push(["L",i+l-2,a-s])}else{var d=a+.4*l;r.push(["M",i,a]),r.push(["L",i-c,d]),r.push(["L",i-c,a+l]),r.push(["L",i+c,a+l]),r.push(["L",i+c,d]),r.push(["Z"]),r.push(["M",i-s,d]),r.push(["L",i-s,a+l-2]),r.push(["M",i+s,d]),r.push(["L",i+s,a+l-2])}return r},t.prototype.resetHandler=function(e,t,n){var r=this.getPointByValue(n,e),i=this.get("handler"),a=this.getHandlerPath(i,r),l=this.getElementId("handler-"+t),c=e.findById(l),s=this.isVertical();c?c.attr("path",a):this.addShape(e,{type:"path",name:"legend-handler-"+t,draggable:!0,id:l,attrs:(0,o.__assign)((0,o.__assign)({path:a},i.style),{cursor:s?"ns-resize":"ew-resize"})})},t.prototype.fixedElements=function(e){var t=e.findById(this.getElementId("rail")),n=e.findById(this.getElementId("label-min")),r=e.findById(this.getElementId("label-max")),o=this.getDrawPoint();this.isVertical()?this.fixedVertail(n,r,t,o):this.fixedHorizontal(n,r,t,o)},t.prototype.fitRailLength=function(e,t,n,r){var o=this.isVertical()?"height":"width",a=this.get("label"),l=a.align,c=a.spacing,s=this.get("max"+(0,i.upperFirst)(o));if(s){var u=("rail"===l?n[o]+e[o]+t[o]+2*c:n[o])-s;u>0&&this.changeRailLength(r,o,n[o]-u)}},t.prototype.changeRailLength=function(e,t,n){var r,o=e.getBBox();r="height"===t?this.getRailPath(o.x,o.y,o.width,n):this.getRailPath(o.x,o.y,n,o.height),e.attr("path",r)},t.prototype.changeRailPosition=function(e,t,n){var r=e.getBBox(),o=this.getRailPath(t,n,r.width,r.height);e.attr("path",o)},t.prototype.fixedHorizontal=function(e,t,n,r){var o=this.get("label"),i=o.align,a=o.spacing,l=n.getBBox(),c=e.getBBox(),s=t.getBBox(),u=l.height;this.fitRailLength(c,s,l,n),l=n.getBBox(),"rail"===i?(e.attr({x:r.x,y:r.y+u/2}),this.changeRailPosition(n,r.x+c.width+a,r.y),t.attr({x:r.x+c.width+l.width+2*a,y:r.y+u/2})):"top"===i?(e.attr({x:r.x,y:r.y}),t.attr({x:r.x+l.width,y:r.y}),this.changeRailPosition(n,r.x,r.y+c.height+a)):(this.changeRailPosition(n,r.x,r.y),e.attr({x:r.x,y:r.y+l.height+a}),t.attr({x:r.x+l.width,y:r.y+l.height+a}))},t.prototype.fixedVertail=function(e,t,n,r){var o=this.get("label"),i=o.align,a=o.spacing,l=n.getBBox(),c=e.getBBox(),s=t.getBBox();if(this.fitRailLength(c,s,l,n),l=n.getBBox(),"rail"===i)e.attr({x:r.x,y:r.y}),this.changeRailPosition(n,r.x,r.y+c.height+a),t.attr({x:r.x,y:r.y+c.height+l.height+2*a});else if("right"===i)e.attr({x:r.x+l.width+a,y:r.y}),this.changeRailPosition(n,r.x,r.y),t.attr({x:r.x+l.width+a,y:r.y+l.height});else{var u=Math.max(c.width,s.width);e.attr({x:r.x,y:r.y}),this.changeRailPosition(n,r.x+u+a,r.y),t.attr({x:r.x,y:r.y+l.height})}},t}(c.default);t.default=s},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Html",{enumerable:!0,get:function(){return o.default}});var o=r(n(889))},function(e,t,n){"use strict";var r=n(2),o=n(6);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(1),a=r(n(140)),l=n(95),c=n(0),s=r(n(182)),u=n(42),d=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!==typeof e)return{default:e};var n=h(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(r,a,l):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}(n(258)),f=r(n(890)),p=n(891);function h(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(h=function(e){return e?n:t})(e)}var g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,i.__extends)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},t),{name:"tooltip",type:"html",x:0,y:0,items:[],customContent:null,containerTpl:'<div class="'+d.CONTAINER_CLASS+'"><div class="'+d.TITLE_CLASS+'"></div><ul class="'+d.LIST_CLASS+'"></ul></div>',itemTpl:'<li class="'+d.LIST_ITEM_CLASS+'" data-index={index}>\n          <span class="'+d.MARKER_CLASS+'" style="background:{color}"></span>\n          <span class="'+d.NAME_CLASS+'">{name}</span>:\n          <span class="'+d.VALUE_CLASS+'">{value}</span>\n        </li>',xCrosshairTpl:'<div class="'+d.CROSSHAIR_X+'"></div>',yCrosshairTpl:'<div class="'+d.CROSSHAIR_Y+'"></div>',title:null,showTitle:!0,region:null,crosshairsRegion:null,containerClassName:d.CONTAINER_CLASS,crosshairs:null,offset:10,position:"right",domStyles:null,defaultStyles:f.default})},t.prototype.render=function(){this.get("customContent")?this.renderCustomContent():(this.resetTitle(),this.renderItems()),this.resetPosition()},t.prototype.clear=function(){this.clearCrosshairs(),this.setTitle(""),this.clearItemDoms()},t.prototype.show=function(){var e=this.getContainer();e&&!this.destroyed&&(this.set("visible",!0),(0,l.modifyCSS)(e,{visibility:"visible"}),this.setCrossHairsVisible(!0))},t.prototype.hide=function(){var e=this.getContainer();e&&!this.destroyed&&(this.set("visible",!1),(0,l.modifyCSS)(e,{visibility:"hidden"}),this.setCrossHairsVisible(!1))},t.prototype.getLocation=function(){return{x:this.get("x"),y:this.get("y")}},t.prototype.setLocation=function(e){this.set("x",e.x),this.set("y",e.y),this.resetPosition()},t.prototype.setCrossHairsVisible=function(e){var t=e?"":"none",n=this.get("xCrosshairDom"),r=this.get("yCrosshairDom");n&&(0,l.modifyCSS)(n,{display:t}),r&&(0,l.modifyCSS)(r,{display:t})},t.prototype.initContainer=function(){if(e.prototype.initContainer.call(this),this.get("customContent")){this.get("container")&&this.get("container").remove();var t=this.getHtmlContentNode();this.get("parent").appendChild(t),this.set("container",t),this.resetStyles(),this.applyStyles()}},t.prototype.updateInner=function(t){this.get("customContent")?this.renderCustomContent():(function(e,t){var n=!1;return(0,c.each)(t,(function(t){if((0,c.hasKey)(e,t))return n=!0,!1})),n}(t,["title","showTitle"])&&this.resetTitle(),(0,c.hasKey)(t,"items")&&this.renderItems()),e.prototype.updateInner.call(this,t)},t.prototype.initDom=function(){this.cacheDoms()},t.prototype.removeDom=function(){e.prototype.removeDom.call(this),this.clearCrosshairs()},t.prototype.resetPosition=function(){var e,t=this.get("x"),n=this.get("y"),r=this.get("offset"),o=this.getOffset(),i=o.offsetX,a=o.offsetY,c=this.get("position"),s=this.get("region"),d=this.getContainer(),f=this.getBBox(),h=f.width,g=f.height;s&&(e=(0,u.regionToBBox)(s));var v=(0,p.getAlignPoint)(t,n,r,h,g,c,e);(0,l.modifyCSS)(d,{left:(0,u.toPx)(v.x+i),top:(0,u.toPx)(v.y+a)}),this.resetCrosshairs()},t.prototype.renderCustomContent=function(){var e=this.getHtmlContentNode(),t=this.get("parent"),n=this.get("container");n&&n.parentNode===t?t.replaceChild(e,n):t.appendChild(e),this.set("container",e),this.resetStyles(),this.applyStyles()},t.prototype.getHtmlContentNode=function(){var e,t=this.get("customContent");if(t){var n=t(this.get("title"),this.get("items"));e=(0,c.isElement)(n)?n:(0,l.createDom)(n)}return e},t.prototype.cacheDoms=function(){var e=this.getContainer(),t=e.getElementsByClassName(d.TITLE_CLASS)[0],n=e.getElementsByClassName(d.LIST_CLASS)[0];this.set("titleDom",t),this.set("listDom",n)},t.prototype.resetTitle=function(){var e=this.get("title");this.get("showTitle")&&e?this.setTitle(e):this.setTitle("")},t.prototype.setTitle=function(e){var t=this.get("titleDom");t&&(t.innerText=e)},t.prototype.resetCrosshairs=function(){var e=this.get("crosshairsRegion"),t=this.get("crosshairs");if(e&&t){var n=(0,u.regionToBBox)(e),r=this.get("xCrosshairDom"),o=this.get("yCrosshairDom");"x"===t?(this.resetCrosshair("x",n),o&&(o.remove(),this.set("yCrosshairDom",null))):"y"===t?(this.resetCrosshair("y",n),r&&(r.remove(),this.set("xCrosshairDom",null))):(this.resetCrosshair("x",n),this.resetCrosshair("y",n)),this.setCrossHairsVisible(this.get("visible"))}else this.clearCrosshairs()},t.prototype.resetCrosshair=function(e,t){var n=this.checkCrosshair(e),r=this.get(e);"x"===e?(0,l.modifyCSS)(n,{left:(0,u.toPx)(r),top:(0,u.toPx)(t.y),height:(0,u.toPx)(t.height)}):(0,l.modifyCSS)(n,{top:(0,u.toPx)(r),left:(0,u.toPx)(t.x),width:(0,u.toPx)(t.width)})},t.prototype.checkCrosshair=function(e){var t=e+"CrosshairDom",n=e+"CrosshairTpl",r="CROSSHAIR_"+e.toUpperCase(),o=d[r],i=this.get(t),a=this.get("parent");return i||(i=(0,l.createDom)(this.get(n)),this.applyStyle(o,i),a.appendChild(i),this.set(t,i)),i},t.prototype.renderItems=function(){this.clearItemDoms();var e=this.get("items"),t=this.get("itemTpl"),n=this.get("listDom");n&&((0,c.each)(e,(function(e){var r=a.default.toCSSGradient(e.color),o=(0,i.__assign)((0,i.__assign)({},e),{color:r}),s=(0,c.substitute)(t,o),u=(0,l.createDom)(s);n.appendChild(u)})),this.applyChildrenStyles(n,this.get("domStyles")))},t.prototype.clearItemDoms=function(){this.get("listDom")&&(0,u.clearDom)(this.get("listDom"))},t.prototype.clearCrosshairs=function(){var e=this.get("xCrosshairDom"),t=this.get("yCrosshairDom");e&&e.remove(),t&&t.remove(),this.set("xCrosshairDom",null),this.set("yCrosshairDom",null)},t}(s.default);t.default=g},function(e,t,n){"use strict";var r=n(2),o=n(6);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,a=r(n(58)),l=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!==typeof e)return{default:e};var n=c(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(r,a,l):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}(n(258));function c(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(c=function(e){return e?n:t})(e)}t.default=((i={})[""+l.CONTAINER_CLASS]={position:"absolute",visibility:"visible",zIndex:8,transition:"visibility 0.2s cubic-bezier(0.23, 1, 0.32, 1), left 0.4s cubic-bezier(0.23, 1, 0.32, 1), top 0.4s cubic-bezier(0.23, 1, 0.32, 1)",backgroundColor:"rgba(255, 255, 255, 0.9)",boxShadow:"0px 0px 10px #aeaeae",borderRadius:"3px",color:"rgb(87, 87, 87)",fontSize:"12px",fontFamily:a.default.fontFamily,lineHeight:"20px",padding:"10px 10px 6px 10px"},i[""+l.TITLE_CLASS]={marginBottom:"4px"},i[""+l.LIST_CLASS]={margin:"0px",listStyleType:"none",padding:"0px"},i[""+l.LIST_ITEM_CLASS]={listStyleType:"none",marginBottom:"4px"},i[""+l.MARKER_CLASS]={width:"8px",height:"8px",borderRadius:"50%",display:"inline-block",marginRight:"8px"},i[""+l.VALUE_CLASS]={display:"inline-block",float:"right",marginLeft:"30px"},i[""+l.CROSSHAIR_X]={position:"absolute",width:"1px",backgroundColor:"rgba(0, 0, 0, 0.25)"},i[""+l.CROSSHAIR_Y]={position:"absolute",height:"1px",backgroundColor:"rgba(0, 0, 0, 0.25)"},i)},function(e,t,n){"use strict";function r(e,t,n,r,o){return{left:e<o.x,right:e+n>o.x+o.width,top:t<o.y,bottom:t+r>o.y+o.height}}function o(e,t,n,r,o,i){var a=e,l=t;switch(i){case"left":a=e-r-n,l=t-o/2;break;case"right":a=e+n,l=t-o/2;break;case"top":a=e-r/2,l=t-o-n;break;case"bottom":a=e-r/2,l=t+n;break;default:a=e+n,l=t-o-n}return{x:a,y:l}}Object.defineProperty(t,"__esModule",{value:!0}),t.getAlignPoint=function(e,t,n,i,a,l,c){var s=o(e,t,n,i,a,l);if(c){var u=r(s.x,s.y,i,a,c);"auto"===l?(u.right&&(s.x=Math.max(0,e-i-n)),u.top&&(s.y=Math.max(0,t-a-n))):"top"===l||"bottom"===l?(u.left&&(s.x=c.x),u.right&&(s.x=c.x+c.width-i),"top"===l&&u.top&&(s.y=t+n),"bottom"===l&&u.bottom&&(s.y=t-a-n)):(u.top&&(s.y=c.y),u.bottom&&(s.y=c.y+c.height-a),"left"===l&&u.left&&(s.x=e+n),"right"===l&&u.right&&(s.x=e-i-n))}return s},t.getOutSides=r,t.getPointByPosition=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Slider",{enumerable:!0,get:function(){return r.Slider}});var r=n(893)},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Slider=void 0;var o=n(1),i=n(0),a=r(n(41)),l=n(894),c=n(897),s=n(898),u=t.Slider=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onMouseDown=function(e){return function(n){t.currentTarget=e;var r=n.originalEvent;r.stopPropagation(),r.preventDefault(),t.prevX=(0,i.get)(r,"touches.0.pageX",r.pageX),t.prevY=(0,i.get)(r,"touches.0.pageY",r.pageY);var o=t.getContainerDOM();o.addEventListener("mousemove",t.onMouseMove),o.addEventListener("mouseup",t.onMouseUp),o.addEventListener("mouseleave",t.onMouseUp),o.addEventListener("touchmove",t.onMouseMove),o.addEventListener("touchend",t.onMouseUp),o.addEventListener("touchcancel",t.onMouseUp)}},t.onMouseMove=function(e){var n=t.cfg.width,r=[t.get("start"),t.get("end")];e.stopPropagation(),e.preventDefault();var o=(0,i.get)(e,"touches.0.pageX",e.pageX),a=(0,i.get)(e,"touches.0.pageY",e.pageY),l=o-t.prevX,c=t.adjustOffsetRange(l/n);t.updateStartEnd(c),t.updateUI(t.getElementByLocalId("foreground"),t.getElementByLocalId("minText"),t.getElementByLocalId("maxText")),t.prevX=o,t.prevY=a,t.draw(),t.emit(s.SLIDER_CHANGE,[t.get("start"),t.get("end")].sort()),t.delegateEmit("valuechanged",{originValue:r,value:[t.get("start"),t.get("end")]})},t.onMouseUp=function(){t.currentTarget&&(t.currentTarget=void 0);var e=t.getContainerDOM();e&&(e.removeEventListener("mousemove",t.onMouseMove),e.removeEventListener("mouseup",t.onMouseUp),e.removeEventListener("mouseleave",t.onMouseUp),e.removeEventListener("touchmove",t.onMouseMove),e.removeEventListener("touchend",t.onMouseUp),e.removeEventListener("touchcancel",t.onMouseUp))},t}return(0,o.__extends)(t,e),t.prototype.setRange=function(e,t){this.set("minLimit",e),this.set("maxLimit",t);var n=this.get("start"),r=this.get("end"),o=(0,i.clamp)(n,e,t),a=(0,i.clamp)(r,e,t);this.get("isInit")||n===o&&r===a||this.setValue([o,a])},t.prototype.getRange=function(){return{min:this.get("minLimit")||0,max:this.get("maxLimit")||1}},t.prototype.setValue=function(e){var t=this.getRange();if((0,i.isArray)(e)&&2===e.length){var n=[this.get("start"),this.get("end")];this.update({start:(0,i.clamp)(e[0],t.min,t.max),end:(0,i.clamp)(e[1],t.min,t.max)}),this.get("updateAutoRender")||this.render(),this.delegateEmit("valuechanged",{originValue:n,value:e})}},t.prototype.getValue=function(){return[this.get("start"),this.get("end")]},t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,o.__assign)((0,o.__assign)({},t),{name:"slider",x:0,y:0,width:100,height:16,backgroundStyle:{},foregroundStyle:{},handlerStyle:{},textStyle:{},defaultCfg:{backgroundStyle:s.BACKGROUND_STYLE,foregroundStyle:s.FOREGROUND_STYLE,handlerStyle:s.HANDLER_STYLE,textStyle:s.TEXT_STYLE}})},t.prototype.update=function(t){var n=t.start,r=t.end,a=(0,o.__assign)({},t);(0,i.isNil)(n)||(a.start=(0,i.clamp)(n,0,1)),(0,i.isNil)(r)||(a.end=(0,i.clamp)(r,0,1)),e.prototype.update.call(this,a),this.minHandler=this.getChildComponentById(this.getElementId("minHandler")),this.maxHandler=this.getChildComponentById(this.getElementId("maxHandler")),this.trend=this.getChildComponentById(this.getElementId("trend"))},t.prototype.init=function(){this.set("start",(0,i.clamp)(this.get("start"),0,1)),this.set("end",(0,i.clamp)(this.get("end"),0,1)),e.prototype.init.call(this)},t.prototype.render=function(){e.prototype.render.call(this),this.updateUI(this.getElementByLocalId("foreground"),this.getElementByLocalId("minText"),this.getElementByLocalId("maxText"))},t.prototype.renderInner=function(e){var t=this.cfg,n=(t.start,t.end,t.width),r=t.height,a=t.trendCfg,u=void 0===a?{}:a,d=t.minText,f=t.maxText,p=t.backgroundStyle,h=void 0===p?{}:p,g=t.foregroundStyle,v=void 0===g?{}:g,m=t.textStyle,y=void 0===m?{}:m,b=(0,i.deepMix)({},c.DEFAULT_HANDLER_STYLE,this.cfg.handlerStyle);(0,i.size)((0,i.get)(u,"data"))&&(this.trend=this.addComponent(e,(0,o.__assign)({component:l.Trend,id:this.getElementId("trend"),x:0,y:0,width:n,height:r},u))),this.addShape(e,{id:this.getElementId("background"),type:"rect",attrs:(0,o.__assign)({x:0,y:0,width:n,height:r},h)}),this.addShape(e,{id:this.getElementId("minText"),type:"text",attrs:(0,o.__assign)({y:r/2,textAlign:"right",text:d,silent:!1},y)}),this.addShape(e,{id:this.getElementId("maxText"),type:"text",attrs:(0,o.__assign)({y:r/2,textAlign:"left",text:f,silent:!1},y)}),this.addShape(e,{id:this.getElementId("foreground"),name:"foreground",type:"rect",attrs:(0,o.__assign)({y:0,height:r},v)});var x=(0,i.get)(b,"width",s.DEFAULT_HANDLER_WIDTH),w=(0,i.get)(b,"height",24);this.minHandler=this.addComponent(e,{component:c.Handler,id:this.getElementId("minHandler"),name:"handler-min",x:0,y:(r-w)/2,width:x,height:w,cursor:"ew-resize",style:b}),this.maxHandler=this.addComponent(e,{component:c.Handler,id:this.getElementId("maxHandler"),name:"handler-max",x:0,y:(r-w)/2,width:x,height:w,cursor:"ew-resize",style:b})},t.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x"),y:this.get("y")})},t.prototype.initEvent=function(){this.bindEvents()},t.prototype.updateUI=function(e,t,n){var r=this.cfg,o=r.start,a=r.end,l=r.width,c=r.minText,u=r.maxText,d=r.handlerStyle,f=r.height,p=o*l,h=a*l;this.trend&&(this.trend.update({width:l,height:f}),this.get("updateAutoRender")||this.trend.render()),e.attr("x",p),e.attr("width",h-p);var g=(0,i.get)(d,"width",s.DEFAULT_HANDLER_WIDTH);t.attr("text",c),n.attr("text",u);var v=this._dodgeText([p,h],t,n),m=v[0],y=v[1];this.minHandler&&(this.minHandler.update({x:p-g/2}),this.get("updateAutoRender")||this.minHandler.render()),(0,i.each)(m,(function(e,n){return t.attr(n,e)})),this.maxHandler&&(this.maxHandler.update({x:h-g/2}),this.get("updateAutoRender")||this.maxHandler.render()),(0,i.each)(y,(function(e,t){return n.attr(t,e)}))},t.prototype.bindEvents=function(){var e=this.get("group");e.on("handler-min:mousedown",this.onMouseDown("minHandler")),e.on("handler-min:touchstart",this.onMouseDown("minHandler")),e.on("handler-max:mousedown",this.onMouseDown("maxHandler")),e.on("handler-max:touchstart",this.onMouseDown("maxHandler"));var t=e.findById(this.getElementId("foreground"));t.on("mousedown",this.onMouseDown("foreground")),t.on("touchstart",this.onMouseDown("foreground"))},t.prototype.adjustOffsetRange=function(e){var t=this.cfg,n=t.start,r=t.end;switch(this.currentTarget){case"minHandler":var o=0-n,i=1-n;return Math.min(i,Math.max(o,e));case"maxHandler":return o=0-r,i=1-r,Math.min(i,Math.max(o,e));case"foreground":return o=0-n,i=1-r,Math.min(i,Math.max(o,e))}},t.prototype.updateStartEnd=function(e){var t=this.cfg,n=t.start,r=t.end;switch(this.currentTarget){case"minHandler":n+=e;break;case"maxHandler":r+=e;break;case"foreground":n+=e,r+=e}this.set("start",n),this.set("end",r)},t.prototype._dodgeText=function(e,t,n){var r,o,a=this.cfg,l=a.handlerStyle,c=a.width,u=(0,i.get)(l,"width",s.DEFAULT_HANDLER_WIDTH),d=e[0],f=e[1],p=!1;d>f&&(d=(r=[f,d])[0],f=r[1],t=(o=[n,t])[0],n=o[1],p=!0);var h=t.getBBox(),g=n.getBBox(),v=h.width>d-2?{x:d+u/2+2,textAlign:"left"}:{x:d-u/2-2,textAlign:"right"},m=g.width>c-f-2?{x:f-u/2-2,textAlign:"right"}:{x:f+u/2+2,textAlign:"left"};return p?[m,v]:[v,m]},t.prototype.draw=function(){var e=this.get("container"),t=e&&e.get("canvas");t&&t.draw()},t.prototype.getContainerDOM=function(){var e=this.get("container"),t=e&&e.get("canvas");return t&&t.get("container")},t}(a.default);t.default=u},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Trend=void 0;var o=n(1),i=r(n(41)),a=n(895),l=n(896),c=t.Trend=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,o.__extends)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,o.__assign)((0,o.__assign)({},t),{name:"trend",x:0,y:0,width:200,height:16,smooth:!0,isArea:!1,data:[],backgroundStyle:a.BACKGROUND_STYLE,lineStyle:a.LINE_STYLE,areaStyle:a.AREA_STYLE})},t.prototype.renderInner=function(e){var t=this.cfg,n=t.width,r=t.height,i=t.data,a=t.smooth,c=t.isArea,s=t.backgroundStyle,u=t.lineStyle,d=t.areaStyle;this.addShape(e,{id:this.getElementId("background"),type:"rect",attrs:(0,o.__assign)({x:0,y:0,width:n,height:r},s)});var f=(0,l.dataToPath)(i,n,r,a);if(this.addShape(e,{id:this.getElementId("line"),type:"path",attrs:(0,o.__assign)({path:f},u)}),c){var p=(0,l.linePathToAreaPath)(f,n,r,i);this.addShape(e,{id:this.getElementId("area"),type:"path",attrs:(0,o.__assign)({path:p},d)})}},t.prototype.applyOffset=function(){var e=this.cfg,t=e.x,n=e.y;this.moveElementTo(this.get("group"),{x:t,y:n})},t}(i.default);t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LINE_STYLE=t.BACKGROUND_STYLE=t.AREA_STYLE=void 0,t.BACKGROUND_STYLE={opacity:0},t.LINE_STYLE={stroke:"#C5C5C5",strokeOpacity:.85},t.AREA_STYLE={fill:"#CACED4",opacity:.85}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dataToPath=function(e,t,n,r){void 0===r&&(r=!0);var o=new i.Linear({values:e}),s=new i.Category({values:(0,a.map)(e,(function(e,t){return t}))}),u=(0,a.map)(e,(function(e,r){return[s.scale(r)*t,n-o.scale(e)*n]}));return r?c(u):l(u)},t.getAreaLineY=s,t.getLinePath=l,t.getSmoothLinePath=c,t.linePathToAreaPath=function(e,t,n,o){var i=(0,r.__spreadArrays)(e),a=s(o,n);return i.push(["L",t,a]),i.push(["L",0,a]),i.push(["Z"]),i};var r=n(1),o=n(88),i=n(66),a=n(0);function l(e){return function(e){return(0,a.map)(e,(function(e,t){return[0===t?"M":"L",e[0],e[1]]}))}(e)}function c(e){if(e.length<=2)return l(e);var t=[];(0,a.each)(e,(function(e){(0,a.isEqual)(e,t.slice(t.length-2))||t.push(e[0],e[1])}));var n=(0,o.catmullRom2Bezier)(t,!1),r=(0,a.head)(e),i=r[0],c=r[1];return n.unshift(["M",i,c]),n}function s(e,t){var n=new i.Linear({values:e}),r=n.max<0?n.max:Math.max(0,n.min);return t-n.scale(r)*t}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Handler=t.DEFAULT_HANDLER_STYLE=void 0;var o=n(1),i=r(n(41)),a=t.DEFAULT_HANDLER_STYLE={fill:"#F7F7F7",stroke:"#BFBFBF",radius:2,opacity:1,cursor:"ew-resize",highLightFill:"#FFF"},l=t.Handler=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,o.__extends)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,o.__assign)((0,o.__assign)({},t),{name:"handler",x:0,y:0,width:10,height:24,style:a})},t.prototype.renderInner=function(e){var t=this.cfg,n=t.width,r=t.height,o=t.style,i=o.fill,a=o.stroke,l=o.radius,c=o.opacity,s=o.cursor;this.addShape(e,{type:"rect",id:this.getElementId("background"),attrs:{x:0,y:0,width:n,height:r,fill:i,stroke:a,radius:l,opacity:c,cursor:s}});var u=1/3*n,d=2/3*n,f=1/4*r,p=3/4*r;this.addShape(e,{id:this.getElementId("line-left"),type:"line",attrs:{x1:u,y1:f,x2:u,y2:p,stroke:a,cursor:s}}),this.addShape(e,{id:this.getElementId("line-right"),type:"line",attrs:{x1:d,y1:f,x2:d,y2:p,stroke:a,cursor:s}})},t.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x"),y:this.get("y")})},t.prototype.initEvent=function(){this.bindEvents()},t.prototype.bindEvents=function(){var e=this;this.get("group").on("mouseenter",(function(){var t=e.get("style").highLightFill;e.getElementByLocalId("background").attr("fill",t),e.draw()})),this.get("group").on("mouseleave",(function(){var t=e.get("style").fill;e.getElementByLocalId("background").attr("fill",t),e.draw()}))},t.prototype.draw=function(){var e=this.get("container").get("canvas");e&&e.draw()},t}(i.default);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TEXT_STYLE=t.SLIDER_CHANGE=t.HANDLER_STYLE=t.FOREGROUND_STYLE=t.DEFAULT_HANDLER_WIDTH=t.BACKGROUND_STYLE=void 0,t.BACKGROUND_STYLE={fill:"#416180",opacity:.05},t.FOREGROUND_STYLE={fill:"#5B8FF9",opacity:.15,cursor:"move"};var r=t.DEFAULT_HANDLER_WIDTH=10;t.HANDLER_STYLE={width:r,height:24},t.TEXT_STYLE={textBaseline:"middle",fill:"#000",opacity:.45},t.SLIDER_CHANGE="sliderchange"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(900);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}}))}))},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.Scrollbar=t.DEFAULT_THEME=void 0;var o=n(1),i=n(95),a=n(0),l=r(n(41)),c=t.DEFAULT_THEME={default:{trackColor:"rgba(0,0,0,0)",thumbColor:"rgba(0,0,0,0.15)",size:8,lineCap:"round"},hover:{thumbColor:"rgba(0,0,0,0.2)"}};t.Scrollbar=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.clearEvents=a.noop,t.onStartEvent=function(e){return function(n){t.isMobile=e,n.originalEvent.preventDefault();var r=e?(0,a.get)(n.originalEvent,"touches.0.clientX"):n.clientX,o=e?(0,a.get)(n.originalEvent,"touches.0.clientY"):n.clientY;t.startPos=t.cfg.isHorizontal?r:o,t.bindLaterEvent()}},t.bindLaterEvent=function(){var e=t.getContainerDOM(),n=[];n=t.isMobile?[(0,i.addEventListener)(e,"touchmove",t.onMouseMove),(0,i.addEventListener)(e,"touchend",t.onMouseUp),(0,i.addEventListener)(e,"touchcancel",t.onMouseUp)]:[(0,i.addEventListener)(e,"mousemove",t.onMouseMove),(0,i.addEventListener)(e,"mouseup",t.onMouseUp),(0,i.addEventListener)(e,"mouseleave",t.onMouseUp)],t.clearEvents=function(){n.forEach((function(e){e.remove()}))}},t.onMouseMove=function(e){var n=t.cfg,r=n.isHorizontal,o=n.thumbOffset;e.preventDefault();var i=t.isMobile?(0,a.get)(e,"touches.0.clientX"):e.clientX,l=t.isMobile?(0,a.get)(e,"touches.0.clientY"):e.clientY,c=r?i:l,s=c-t.startPos;t.startPos=c,t.updateThumbOffset(o+s)},t.onMouseUp=function(e){e.preventDefault(),t.clearEvents()},t.onTrackClick=function(e){var n=t.cfg,r=n.isHorizontal,o=n.x,i=n.y,a=n.thumbLen,l=t.getContainerDOM().getBoundingClientRect(),c=e.clientX,s=e.clientY,u=r?c-l.left-o-a/2:s-l.top-i-a/2,d=t.validateRange(u);t.updateThumbOffset(d)},t.onThumbMouseOver=function(){var e=t.cfg.theme.hover.thumbColor;t.getElementByLocalId("thumb").attr("stroke",e),t.draw()},t.onThumbMouseOut=function(){var e=t.cfg.theme.default.thumbColor;t.getElementByLocalId("thumb").attr("stroke",e),t.draw()},t}return(0,o.__extends)(t,e),t.prototype.setRange=function(e,t){this.set("minLimit",e),this.set("maxLimit",t);var n=this.getValue(),r=(0,a.clamp)(n,e,t);n===r||this.get("isInit")||this.setValue(r)},t.prototype.getRange=function(){return{min:this.get("minLimit")||0,max:this.get("maxLimit")||1}},t.prototype.setValue=function(e){var t=this.getRange(),n=this.getValue();this.update({thumbOffset:(this.get("trackLen")-this.get("thumbLen"))*(0,a.clamp)(e,t.min,t.max)}),this.delegateEmit("valuechange",{originalValue:n,value:this.getValue()})},t.prototype.getValue=function(){return(0,a.clamp)(this.get("thumbOffset")/(this.get("trackLen")-this.get("thumbLen")),0,1)},t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,o.__assign)((0,o.__assign)({},t),{name:"scrollbar",isHorizontal:!0,minThumbLen:20,thumbOffset:0,theme:c})},t.prototype.renderInner=function(e){this.renderTrackShape(e),this.renderThumbShape(e)},t.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x"),y:this.get("y")})},t.prototype.initEvent=function(){this.bindEvents()},t.prototype.renderTrackShape=function(e){var t=this.cfg,n=t.trackLen,r=t.theme,o=void 0===r?{default:{}}:r,i=(0,a.deepMix)({},c,o).default,l=i.lineCap,s=i.trackColor,u=i.size,d=(0,a.get)(this.cfg,"size",u),f=this.get("isHorizontal")?{x1:0+d/2,y1:d/2,x2:n-d/2,y2:d/2,lineWidth:d,stroke:s,lineCap:l}:{x1:d/2,y1:0+d/2,x2:d/2,y2:n-d/2,lineWidth:d,stroke:s,lineCap:l};return this.addShape(e,{id:this.getElementId("track"),name:"track",type:"line",attrs:f})},t.prototype.renderThumbShape=function(e){var t=this.cfg,n=t.thumbOffset,r=t.thumbLen,o=t.theme,i=(0,a.deepMix)({},c,o).default,l=i.size,s=i.lineCap,u=i.thumbColor,d=(0,a.get)(this.cfg,"size",l),f=this.get("isHorizontal")?{x1:n+d/2,y1:d/2,x2:n+r-d/2,y2:d/2,lineWidth:d,stroke:u,lineCap:s,cursor:"default"}:{x1:d/2,y1:n+d/2,x2:d/2,y2:n+r-d/2,lineWidth:d,stroke:u,lineCap:s,cursor:"default"};return this.addShape(e,{id:this.getElementId("thumb"),name:"thumb",type:"line",attrs:f})},t.prototype.bindEvents=function(){var e=this.get("group");e.on("mousedown",this.onStartEvent(!1)),e.on("mouseup",this.onMouseUp),e.on("touchstart",this.onStartEvent(!0)),e.on("touchend",this.onMouseUp),e.findById(this.getElementId("track")).on("click",this.onTrackClick);var t=e.findById(this.getElementId("thumb"));t.on("mouseover",this.onThumbMouseOver),t.on("mouseout",this.onThumbMouseOut)},t.prototype.getContainerDOM=function(){var e=this.get("container"),t=e&&e.get("canvas");return t&&t.get("container")},t.prototype.validateRange=function(e){var t=this.cfg,n=t.thumbLen,r=t.trackLen,o=e;return e+n>r?o=r-n:e+n<n&&(o=0),o},t.prototype.draw=function(){var e=this.get("container"),t=e&&e.get("canvas");t&&t.draw()},t.prototype.updateThumbOffset=function(e){var t=this.cfg,n=t.thumbOffset,r=t.isHorizontal,o=t.thumbLen,i=t.size,a=this.validateRange(e);if(a!==n){var l=this.getElementByLocalId("thumb");r?l.attr({x1:a+i/2,x2:a+o-i/2}):l.attr({y1:a+i/2,y2:a+o-i/2}),this.emitOffsetChange(a)}},t.prototype.emitOffsetChange=function(e){var t=this.cfg,n=t.thumbOffset,r=t.trackLen,o=t.thumbLen;this.cfg.thumbOffset=e,this.emit("scrollchange",{thumbOffset:e,ratio:(0,a.clamp)(e/(r-o),0,1)}),this.delegateEmit("valuechange",{originalValue:n,value:e})},t}(l.default)},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getNormalizedValue=void 0;var r=n(904);t.getNormalizedValue=function(e,t){if(!t)return null;var n;switch(e){case"start":return 0;case"center":return.5;case"end":return 1;case"median":n=t.isCategory?(0,r.getMedian)(t.values.map((function(e,t){return t}))):(0,r.getMedian)(t.values);break;case"mean":n=t.isCategory?(t.values.length-1)/2:(0,r.getMean)(t.values);break;case"min":n=t.isCategory?0:t[e];break;case"max":n=t.isCategory?t.values.length-1:t[e];break;default:n=e}return t.scale(n)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getMean=t.getMedian=void 0;var r=n(1),o=n(0);t.getMedian=function(e){var t=(0,r.__spreadArray)([],e,!0);t.sort((function(e,t){return e-t}));var n=t.length;return 0===n?0:n%2===1?t[(n-1)/2]:(t[n/2]+t[n/2-1])/2},t.getMean=function(e){var t=(0,o.reduce)(e,(function(e,t){return e+(isNaN(t)||!(0,o.isNumber)(t)?0:t)}),0);return 0===e.length?0:t/e.length}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(71),i=n(51),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return r.__assign(r.__assign({},t),{x:0,y:0,r:0})},t.prototype.isInStrokeOrPath=function(e,t,n,r,o){var a=this.attr(),l=a.x,c=a.y,s=a.r,u=o/2,d=i.distance(l,c,e,t);return r&&n?d<=s+u:r?d<=s:!!n&&d>=s-u&&d<=s+u},t.prototype.createPath=function(e){var t=this.attr(),n=t.x,r=t.y,o=t.r;e.beginPath(),e.arc(n,r,o,0,2*Math.PI,!1),e.closePath()},t}(o.default);t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1);function o(e,t,n,r){return e/(n*n)+t/(r*r)}var i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return r.__assign(r.__assign({},t),{x:0,y:0,rx:0,ry:0})},t.prototype.isInStrokeOrPath=function(e,t,n,r,i){var a=this.attr(),l=i/2,c=a.x,s=a.y,u=a.rx,d=a.ry,f=(e-c)*(e-c),p=(t-s)*(t-s);return r&&n?o(f,p,u+l,d+l)<=1:r?o(f,p,u,d)<=1:!!n&&o(f,p,u-l,d-l)>=1&&o(f,p,u+l,d+l)<=1},t.prototype.createPath=function(e){var t=this.attr(),n=t.x,r=t.y,o=t.rx,i=t.ry;if(e.beginPath(),e.ellipse)e.ellipse(n,r,o,i,0,0,2*Math.PI,!1);else{var a=o>i?o:i,l=o>i?1:o/i,c=o>i?i/o:1;e.save(),e.translate(n,r),e.scale(l,c),e.arc(0,0,a,0,2*Math.PI),e.restore(),e.closePath()}},t}(n(71).default);t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(71),i=n(51);function a(e){return e instanceof HTMLElement&&i.isString(e.nodeName)&&"CANVAS"===e.nodeName.toUpperCase()}var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return r.__assign(r.__assign({},t),{x:0,y:0,width:0,height:0})},t.prototype.initAttrs=function(e){this._setImage(e.img)},t.prototype.isStroke=function(){return!1},t.prototype.isOnlyHitBox=function(){return!0},t.prototype._afterLoading=function(){if(!0===this.get("toDraw")){var e=this.get("canvas");e?e.draw():this.createPath(this.get("context"))}},t.prototype._setImage=function(e){var t=this,n=this.attrs;if(i.isString(e)){var r=new Image;r.onload=function(){if(t.destroyed)return!1;t.attr("img",r),t.set("loading",!1),t._afterLoading();var e=t.get("callback");e&&e.call(t)},r.crossOrigin="Anonymous",r.src=e,this.set("loading",!0)}else e instanceof Image?(n.width||(n.width=e.width),n.height||(n.height=e.height)):a(e)&&(n.width||(n.width=Number(e.getAttribute("width"))),n.height||(n.height,Number(e.getAttribute("height"))))},t.prototype.onAttrChange=function(t,n,r){e.prototype.onAttrChange.call(this,t,n,r),"img"===t&&this._setImage(n)},t.prototype.createPath=function(e){if(this.get("loading"))return this.set("toDraw",!0),void this.set("context",e);var t=this.attr(),n=t.x,r=t.y,o=t.width,l=t.height,c=t.sx,s=t.sy,u=t.swidth,d=t.sheight,f=t.img;(f instanceof Image||a(f))&&(i.isNil(c)||i.isNil(s)||i.isNil(u)||i.isNil(d)?e.drawImage(f,n,r,o,l):e.drawImage(f,c,s,u,d,n,r,o,l))},t}(o.default);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(38),i=n(71),a=n(184),l=n(183),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return r.__assign(r.__assign({},t),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},t.prototype.initAttrs=function(e){this.setArrow()},t.prototype.onAttrChange=function(t,n,r){e.prototype.onAttrChange.call(this,t,n,r),this.setArrow()},t.prototype.setArrow=function(){var e=this.attr(),t=e.x1,n=e.y1,r=e.x2,o=e.y2,i=e.startArrow,a=e.endArrow;i&&l.addStartArrow(this,e,r,o,t,n),a&&l.addEndArrow(this,e,t,n,r,o)},t.prototype.isInStrokeOrPath=function(e,t,n,r,o){if(!n||!o)return!1;var i=this.attr(),l=i.x1,c=i.y1,s=i.x2,u=i.y2;return a.default(l,c,s,u,o,e,t)},t.prototype.createPath=function(e){var t=this.attr(),n=t.x1,r=t.y1,o=t.x2,i=t.y2,a=t.startArrow,c=t.endArrow,s={dx:0,dy:0},u={dx:0,dy:0};a&&a.d&&(s=l.getShortenOffset(n,r,o,i,t.startArrow.d)),c&&c.d&&(u=l.getShortenOffset(n,r,o,i,t.endArrow.d)),e.beginPath(),e.moveTo(n+s.dx,r+s.dy),e.lineTo(o-u.dx,i-u.dy)},t.prototype.afterDrawPath=function(e){var t=this.get("startArrowShape"),n=this.get("endArrowShape");t&&t.draw(e),n&&n.draw(e)},t.prototype.getTotalLength=function(){var e=this.attr(),t=e.x1,n=e.y1,r=e.x2,i=e.y2;return o.Line.length(t,n,r,i)},t.prototype.getPoint=function(e){var t=this.attr(),n=t.x1,r=t.y1,i=t.x2,a=t.y2;return o.Line.pointAt(n,r,i,a,e)},t}(i.default);t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(0),i=n(88),a=n(71),l=n(51),c=n(144),s={circle:function(e,t,n){return[["M",e-n,t],["A",n,n,0,1,0,e+n,t],["A",n,n,0,1,0,e-n,t]]},square:function(e,t,n){return[["M",e-n,t-n],["L",e+n,t-n],["L",e+n,t+n],["L",e-n,t+n],["Z"]]},diamond:function(e,t,n){return[["M",e-n,t],["L",e,t-n],["L",e+n,t],["L",e,t+n],["Z"]]},triangle:function(e,t,n){var r=n*Math.sin(1/3*Math.PI);return[["M",e-n,t+r],["L",e,t-r],["L",e+n,t+r],["Z"]]},"triangle-down":function(e,t,n){var r=n*Math.sin(1/3*Math.PI);return[["M",e-n,t-r],["L",e+n,t-r],["L",e,t+r],["Z"]]}},u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.initAttrs=function(e){this._resetParamsCache()},t.prototype._resetParamsCache=function(){this.set("paramsCache",{})},t.prototype.onAttrChange=function(t,n,r){e.prototype.onAttrChange.call(this,t,n,r),-1!==["symbol","x","y","r","radius"].indexOf(t)&&this._resetParamsCache()},t.prototype.isOnlyHitBox=function(){return!0},t.prototype._getR=function(e){return o.isNil(e.r)?e.radius:e.r},t.prototype._getPath=function(){var e,n,r=this.attr(),o=r.x,a=r.y,c=r.symbol||"circle",s=this._getR(r);if(l.isFunction(c))n=(e=c)(o,a,s),n=i.path2Absolute(n);else{if(!(e=t.Symbols[c]))return console.warn(c+" marker is not supported."),null;n=e(o,a,s)}return n},t.prototype.createPath=function(e){var t=this._getPath(),n=this.get("paramsCache");c.drawPath(this,e,{path:t},n)},t.Symbols=s,t}(a.default);t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(38),i=n(0),a=n(71),l=n(88),c=n(144),s=n(442),u=n(443),d=n(911),f=n(183);function p(e,t,n){for(var r=!1,o=0;o<e.length;o++){var i=e[o];if(r=u.default(i,t,n))break}return r}var h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return r.__assign(r.__assign({},t),{startArrow:!1,endArrow:!1})},t.prototype.initAttrs=function(e){this._setPathArr(e.path),this.setArrow()},t.prototype.onAttrChange=function(t,n,r){e.prototype.onAttrChange.call(this,t,n,r),"path"===t&&this._setPathArr(n),this.setArrow()},t.prototype._setPathArr=function(e){this.attrs.path=l.path2Absolute(e);var t=d.default.hasArc(e);this.set("hasArc",t),this.set("paramsCache",{}),this.set("segments",null),this.set("curve",null),this.set("tCache",null),this.set("totalLength",null)},t.prototype.getSegments=function(){var e=this.get("segements");return e||(e=l.path2Segments(this.attr("path")),this.set("segments",e)),e},t.prototype.setArrow=function(){var e=this.attr(),t=e.startArrow,n=e.endArrow;if(t){var r=this.getStartTangent();f.addStartArrow(this,e,r[0][0],r[0][1],r[1][0],r[1][1])}n&&(r=this.getEndTangent(),f.addEndArrow(this,e,r[0][0],r[0][1],r[1][0],r[1][1]))},t.prototype.isInStrokeOrPath=function(e,t,n,r,o){var i=this.getSegments(),a=this.get("hasArc"),l=!1;if(n){var c=this.getTotalLength();l=d.default.isPointInStroke(i,o,e,t,c)}if(!l&&r)if(a)l=s.default(this,e,t);else{var u=this.attr("path"),f=d.default.extractPolygons(u);l=p(f.polygons,e,t)||p(f.polylines,e,t)}return l},t.prototype.createPath=function(e){var t=this.attr(),n=this.get("paramsCache");c.drawPath(this,e,t,n)},t.prototype.afterDrawPath=function(e){var t=this.get("startArrowShape"),n=this.get("endArrowShape");t&&t.draw(e),n&&n.draw(e)},t.prototype.getTotalLength=function(){var e=this.get("totalLength");return i.isNil(e)?(this._calculateCurve(),this._setTcache(),this.get("totalLength")):e},t.prototype.getPoint=function(e){var t,n,r=this.get("tCache");r||(this._calculateCurve(),this._setTcache(),r=this.get("tCache"));var a=this.get("curve");if(!r||0===r.length)return a?{x:a[0][1],y:a[0][2]}:null;i.each(r,(function(r,o){e>=r[0]&&e<=r[1]&&(t=(e-r[0])/(r[1]-r[0]),n=o)}));var l=a[n];if(i.isNil(l)||i.isNil(n))return null;var c=l.length,s=a[n+1];return o.Cubic.pointAt(l[c-2],l[c-1],s[1],s[2],s[3],s[4],s[5],s[6],t)},t.prototype._calculateCurve=function(){var e=this.attr().path;this.set("curve",d.default.pathToCurve(e))},t.prototype._setTcache=function(){var e,t,n,r,a=0,l=0,c=[],s=this.get("curve");s&&(i.each(s,(function(e,t){n=s[t+1],r=e.length,n&&(a+=o.Cubic.length(e[r-2],e[r-1],n[1],n[2],n[3],n[4],n[5],n[6])||0)})),this.set("totalLength",a),0!==a?(i.each(s,(function(i,u){n=s[u+1],r=i.length,n&&((e=[])[0]=l/a,t=o.Cubic.length(i[r-2],i[r-1],n[1],n[2],n[3],n[4],n[5],n[6]),l+=t||0,e[1]=l/a,c.push(e))})),this.set("tCache",c)):this.set("tCache",[]))},t.prototype.getStartTangent=function(){var e,t=this.getSegments();if(t.length>1){var n=t[0].currentPoint,r=t[1].currentPoint,o=t[1].startTangent;e=[],o?(e.push([n[0]-o[0],n[1]-o[1]]),e.push([n[0],n[1]])):(e.push([r[0],r[1]]),e.push([n[0],n[1]]))}return e},t.prototype.getEndTangent=function(){var e,t=this.getSegments(),n=t.length;if(n>1){var r=t[n-2].currentPoint,o=t[n-1].currentPoint,i=t[n-1].endTangent;e=[],i?(e.push([o[0]-i[0],o[1]-i[1]]),e.push([o[0],o[1]])):(e.push([r[0],r[1]]),e.push([o[0],o[1]]))}return e},t}(a.default);t.default=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(26),i=n(38),a=n(38),l=n(32),c=n(171),s=n(51),u=n(184),d=n(444),f=l.ext.transform;t.default=r.__assign({hasArc:function(e){for(var t=!1,n=e.length,r=0;r<n;r++){var o=e[r][0];if("C"===o||"A"===o||"Q"===o){t=!0;break}}return t},extractPolygons:function(e){for(var t=e.length,n=[],r=[],o=[],i=0;i<t;i++){var a=e[i],l=a[0];"M"===l?(o.length&&(r.push(o),o=[]),o.push([a[1],a[2]])):"Z"===l?o.length&&(n.push(o),o=[]):o.push([a[1],a[2]])}return o.length>0&&r.push(o),{polygons:n,polylines:r}},isPointInStroke:function(e,t,n,r,o){for(var l=!1,p=t/2,h=0;h<e.length;h++){var g=e[h],v=g.currentPoint,m=g.params,y=g.prePoint,b=g.box;if(!b||s.inBox(b.x-p,b.y-p,b.width+t,b.height+t,n,r)){switch(g.command){case"L":case"Z":l=u.default(y[0],y[1],v[0],v[1],t,n,r);break;case"Q":l=i.Quad.pointDistance(y[0],y[1],m[1],m[2],m[3],m[4],n,r)<=t/2;break;case"C":l=a.Cubic.pointDistance(y[0],y[1],m[1],m[2],m[3],m[4],m[5],m[6],n,r,o)<=t/2;break;case"A":var x=g.arcParams,w=x.cx,S=x.cy,O=x.rx,_=x.ry,C=x.startAngle,E=x.endAngle,P=x.xRotation,M=[n,r,1],k=O>_?O:_,A=f(null,[["t",-w,-S],["r",-P],["s",1/(O>_?1:O/_),1/(O>_?_/O:1)]]);c.transformMat3(M,M,A),l=d.default(0,0,k,C,E,t,M[0],M[1])}if(l)break}}return l}},o.PathUtil)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(71),i=n(445),a=n(443),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.isInStrokeOrPath=function(e,t,n,r,o){var l=this.attr().points,c=!1;return n&&(c=i.default(l,o,e,t,!0)),!c&&r&&(c=a.default(l,e,t)),c},t.prototype.createPath=function(e){var t=this.attr().points;if(!(t.length<2)){e.beginPath();for(var n=0;n<t.length;n++){var r=t[n];0===n?e.moveTo(r[0],r[1]):e.lineTo(r[0],r[1])}e.closePath()}},t}(o.default);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(38),i=n(38),a=n(0),l=n(71),c=n(445),s=n(183),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return r.__assign(r.__assign({},t),{startArrow:!1,endArrow:!1})},t.prototype.initAttrs=function(e){this.setArrow()},t.prototype.onAttrChange=function(t,n,r){e.prototype.onAttrChange.call(this,t,n,r),this.setArrow(),-1!==["points"].indexOf(t)&&this._resetCache()},t.prototype._resetCache=function(){this.set("totalLength",null),this.set("tCache",null)},t.prototype.setArrow=function(){var e=this.attr(),t=this.attrs,n=t.points,r=t.startArrow,o=t.endArrow,i=n.length,a=n[0][0],l=n[0][1],c=n[i-1][0],u=n[i-1][1];r&&s.addStartArrow(this,e,n[1][0],n[1][1],a,l),o&&s.addEndArrow(this,e,n[i-2][0],n[i-2][1],c,u)},t.prototype.isFill=function(){return!1},t.prototype.isInStrokeOrPath=function(e,t,n,r,o){if(!n||!o)return!1;var i=this.attr().points;return c.default(i,o,e,t,!1)},t.prototype.isStroke=function(){return!0},t.prototype.createPath=function(e){var t=this.attr(),n=t.points,r=t.startArrow,o=t.endArrow,i=n.length;if(!(n.length<2)){var a,l=n[0][0],c=n[0][1],u=n[i-1][0],d=n[i-1][1];r&&r.d&&(l+=(a=s.getShortenOffset(l,c,n[1][0],n[1][1],r.d)).dx,c+=a.dy),o&&o.d&&(u-=(a=s.getShortenOffset(n[i-2][0],n[i-2][1],u,d,o.d)).dx,d-=a.dy),e.beginPath(),e.moveTo(l,c);for(var f=0;f<i-1;f++){var p=n[f];e.lineTo(p[0],p[1])}e.lineTo(u,d)}},t.prototype.afterDrawPath=function(e){var t=this.get("startArrowShape"),n=this.get("endArrowShape");t&&t.draw(e),n&&n.draw(e)},t.prototype.getTotalLength=function(){var e=this.attr().points,t=this.get("totalLength");return a.isNil(t)?(this.set("totalLength",i.Polyline.length(e)),this.get("totalLength")):t},t.prototype.getPoint=function(e){var t,n,r=this.attr().points,i=this.get("tCache");return i||(this._setTcache(),i=this.get("tCache")),a.each(i,(function(r,o){e>=r[0]&&e<=r[1]&&(t=(e-r[0])/(r[1]-r[0]),n=o)})),o.Line.pointAt(r[n][0],r[n][1],r[n+1][0],r[n+1][1],t)},t.prototype._setTcache=function(){var e=this.attr().points;if(e&&0!==e.length){var t=this.getTotalLength();if(!(t<=0)){var n,r,i=0,l=[];a.each(e,(function(a,c){e[c+1]&&((n=[])[0]=i/t,r=o.Line.length(a[0],a[1],e[c+1][0],e[c+1][1]),i+=r,n[1]=i/t,l.push(n))})),this.set("tCache",l)}}},t.prototype.getStartTangent=function(){var e=this.attr().points,t=[];return t.push([e[1][0],e[1][1]]),t.push([e[0][0],e[0][1]]),t},t.prototype.getEndTangent=function(){var e=this.attr().points,t=e.length-1,n=[];return n.push([e[t-1][0],e[t-1][1]]),n.push([e[t][0],e[t][1]]),n},t}(l.default);t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(71),i=n(440),a=n(51),l=n(915),c=n(916),s=n(442),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return r.__assign(r.__assign({},t),{x:0,y:0,width:0,height:0,radius:0})},t.prototype.isInStrokeOrPath=function(e,t,n,r,o){var i=this.attr(),u=i.x,d=i.y,f=i.width,p=i.height,h=i.radius;if(h){var g=!1;return n&&(g=c.default(u,d,f,p,h,o,e,t)),!g&&r&&(g=s.default(this,e,t)),g}var v=o/2;return r&&n?a.inBox(u-v,d-v,f+v,p+v,e,t):r?a.inBox(u,d,f,p,e,t):n?l.default(u,d,f,p,o,e,t):void 0},t.prototype.createPath=function(e){var t=this.attr(),n=t.x,r=t.y,o=t.width,a=t.height,l=t.radius;if(e.beginPath(),0===l)e.rect(n,r,o,a);else{var c=i.parseRadius(l),s=c[0],u=c[1],d=c[2],f=c[3];e.moveTo(n+s,r),e.lineTo(n+o-u,r),0!==u&&e.arc(n+o-u,r+u,u,-Math.PI/2,0),e.lineTo(n+o,r+a-d),0!==d&&e.arc(n+o-d,r+a-d,d,0,Math.PI/2),e.lineTo(n+f,r+a),0!==f&&e.arc(n+f,r+a-f,f,Math.PI/2,Math.PI),e.lineTo(n,r+s),0!==s&&e.arc(n+s,r+s,s,Math.PI,1.5*Math.PI),e.closePath()}},t}(o.default);t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(51);t.default=function(e,t,n,o,i,a,l){var c=i/2;return r.inBox(e-c,t-c,n,i,a,l)||r.inBox(e+n-c,t-c,i,o,a,l)||r.inBox(e+c,t+o-c,n,i,a,l)||r.inBox(e-c,t+c,i,o,a,l)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(184),o=n(444);t.default=function(e,t,n,i,a,l,c,s){return r.default(e+a,t,e+n-a,t,l,c,s)||r.default(e+n,t+a,e+n,t+i-a,l,c,s)||r.default(e+n-a,t+i,e+a,t+i,l,c,s)||r.default(e,t+i-a,e,t+a,l,c,s)||o.default(e+n-a,t+a,a,1.5*Math.PI,2*Math.PI,l,c,s)||o.default(e+n-a,t+i-a,a,0,.5*Math.PI,l,c,s)||o.default(e+a,t+i-a,a,.5*Math.PI,Math.PI,l,c,s)||o.default(e+a,t+a,a,Math.PI,1.5*Math.PI,l,c,s)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(71),i=n(51),a=n(26),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return r.__assign(r.__assign({},t),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},t.prototype.isOnlyHitBox=function(){return!0},t.prototype.initAttrs=function(e){this._assembleFont(),e.text&&this._setText(e.text)},t.prototype._assembleFont=function(){var e=this.attrs;e.font=a.assembleFont(e)},t.prototype._setText=function(e){var t=null;i.isString(e)&&-1!==e.indexOf("\n")&&(t=e.split("\n")),this.set("textArr",t)},t.prototype.onAttrChange=function(t,n,r){e.prototype.onAttrChange.call(this,t,n,r),t.startsWith("font")&&this._assembleFont(),"text"===t&&this._setText(n)},t.prototype._getSpaceingY=function(){var e=this.attrs,t=e.lineHeight,n=1*e.fontSize;return t?t-n:.14*n},t.prototype._drawTextArr=function(e,t,n){var r,o=this.attrs,l=o.textBaseline,c=o.x,s=o.y,u=1*o.fontSize,d=this._getSpaceingY(),f=a.getTextHeight(o.text,o.fontSize,o.lineHeight);i.each(t,(function(t,o){r=s+o*(d+u)-f+u,"middle"===l&&(r+=f-u-(f-u)/2),"top"===l&&(r+=f-u),i.isNil(t)||(n?e.fillText(t,c,r):e.strokeText(t,c,r))}))},t.prototype._drawText=function(e,t){var n=this.attr(),r=n.x,o=n.y,a=this.get("textArr");if(a)this._drawTextArr(e,a,t);else{var l=n.text;i.isNil(l)||(t?e.fillText(l,r,o):e.strokeText(l,r,o))}},t.prototype.strokeAndFill=function(e){var t=this.attrs,n=t.lineWidth,r=t.opacity,o=t.strokeOpacity,a=t.fillOpacity;this.isStroke()&&n>0&&(i.isNil(o)||1===o||(e.globalAlpha=r),this.stroke(e)),this.isFill()&&(i.isNil(a)||1===a?this.fill(e):(e.globalAlpha=a,this.fill(e),e.globalAlpha=r)),this.afterDrawPath(e)},t.prototype.fill=function(e){this._drawText(e,!0)},t.prototype.stroke=function(e){this._drawText(e,!1)},t}(o.default);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(26),i=n(919),a=n(143),l=n(259),c=n(51),s=n(144),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return t.renderer="canvas",t.autoDraw=!0,t.localRefresh=!0,t.refreshElements=[],t.clipView=!0,t.quickHit=!1,t},t.prototype.onCanvasChange=function(e){"attr"!==e&&"sort"!==e&&"changeSize"!==e||(this.set("refreshElements",[this]),this.draw())},t.prototype.getShapeBase=function(){return a},t.prototype.getGroupBase=function(){return l.default},t.prototype.getPixelRatio=function(){var e=this.get("pixelRatio")||c.getPixelRatio();return e>=1?Math.ceil(e):1},t.prototype.getViewRange=function(){return{minX:0,minY:0,maxX:this.cfg.width,maxY:this.cfg.height}},t.prototype.createDom=function(){var e=document.createElement("canvas"),t=e.getContext("2d");return this.set("context",t),e},t.prototype.setDOMSize=function(t,n){e.prototype.setDOMSize.call(this,t,n);var r=this.get("context"),o=this.get("el"),i=this.getPixelRatio();o.width=i*t,o.height=i*n,i>1&&r.scale(i,i)},t.prototype.clear=function(){e.prototype.clear.call(this),this._clearFrame();var t=this.get("context"),n=this.get("el");t.clearRect(0,0,n.width,n.height)},t.prototype.getShape=function(t,n){return this.get("quickHit")?i.getShape(this,t,n):e.prototype.getShape.call(this,t,n,null)},t.prototype._getRefreshRegion=function(){var e,t=this.get("refreshElements"),n=this.getViewRange();return t.length&&t[0]===this?e=n:(e=s.getMergedRegion(t))&&(e.minX=Math.floor(e.minX),e.minY=Math.floor(e.minY),e.maxX=Math.ceil(e.maxX),e.maxY=Math.ceil(e.maxY),e.maxY+=1,this.get("clipView")&&(e=s.mergeView(e,n))),e},t.prototype.refreshElement=function(e){this.get("refreshElements").push(e)},t.prototype._clearFrame=function(){var e=this.get("drawFrame");e&&(c.clearAnimationFrame(e),this.set("drawFrame",null),this.set("refreshElements",[]))},t.prototype.draw=function(){var e=this.get("drawFrame");this.get("autoDraw")&&e||this._startDraw()},t.prototype._drawAll=function(){var e=this.get("context"),t=this.get("el"),n=this.getChildren();e.clearRect(0,0,t.width,t.height),s.applyAttrsToContext(e,this),s.drawChildren(e,n),this.set("refreshElements",[])},t.prototype._drawRegion=function(){var e=this.get("context"),t=this.get("refreshElements"),n=this.getChildren(),r=this._getRefreshRegion();r?(e.clearRect(r.minX,r.minY,r.maxX-r.minX,r.maxY-r.minY),e.save(),e.beginPath(),e.rect(r.minX,r.minY,r.maxX-r.minX,r.maxY-r.minY),e.clip(),s.applyAttrsToContext(e,this),s.checkRefresh(this,n,r),s.drawChildren(e,n,r),e.restore()):t.length&&s.clearChanged(t),c.each(t,(function(e){e.get("hasChanged")&&e.set("hasChanged",!1)})),this.set("refreshElements",[])},t.prototype._startDraw=function(){var e=this,t=this.get("drawFrame");t||(t=c.requestAnimationFrame((function(){e.get("localRefresh")?e._drawRegion():e._drawAll(),e.set("drawFrame",null)})),this.set("drawFrame",t))},t.prototype.skipDraw=function(){},t.prototype.removeDom=function(){var e=this.get("el");e.width=0,e.height=0,e.parentNode.removeChild(e)},t}(o.AbstractCanvas);t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getShape=void 0;var r=n(26);function o(e,t,n){var o=e.getTotalMatrix();if(o){var i=function(e,t){if(t){var n=r.invert(t);return r.multiplyVec2(n,e)}return e}([t,n,1],o);return[i[0],i[1]]}return[t,n]}function i(e,t,n){if(e.isCanvas&&e.isCanvas())return!0;if(!r.isAllowCapture(e)||!1===e.cfg.isInView)return!1;if(e.cfg.clipShape){var i=o(e,t,n),a=i[0],l=i[1];if(e.isClipped(a,l))return!1}var c=e.cfg.cacheCanvasBBox||e.getCanvasBBox();return t>=c.minX&&t<=c.maxX&&n>=c.minY&&n<=c.maxY}t.getShape=function e(t,n,r){if(!i(t,n,r))return null;for(var a=null,l=t.getChildren(),c=l.length-1;c>=0;c--){var s=l[c];if(s.isGroup())a=e(s,n,r);else if(i(s,n,r)){var u=s,d=o(s,n,r),f=d[0],p=d[1];u.isInShape(f,p)&&(a=s)}if(a)break}return a}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(0),i=n(52),a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="circle",t.canFill=!0,t.canStroke=!0,t}return r.__extends(t,e),t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return r.__assign(r.__assign({},t),{x:0,y:0,r:0})},t.prototype.createPath=function(e,t){var n=this.attr(),r=this.get("el");o.each(t||n,(function(e,t){"x"===t||"y"===t?r.setAttribute("c"+t,e):i.SVG_ATTR_MAP[t]&&r.setAttribute(i.SVG_ATTR_MAP[t],e)}))},t}(n(62).default);t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(0),i=n(52),a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dom",t.canFill=!1,t.canStroke=!1,t}return r.__extends(t,e),t.prototype.createPath=function(e,t){var n=this.attr(),r=this.get("el");if(o.each(t||n,(function(e,t){i.SVG_ATTR_MAP[t]&&r.setAttribute(i.SVG_ATTR_MAP[t],e)})),"function"===typeof n.html){var a=n.html.call(this,n);if(a instanceof Element||a instanceof HTMLDocument){for(var l=r.childNodes,c=l.length-1;c>=0;c--)r.removeChild(l[c]);r.appendChild(a)}else r.innerHTML=a}else r.innerHTML=n.html},t}(n(62).default);t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(0),i=n(52),a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="ellipse",t.canFill=!0,t.canStroke=!0,t}return r.__extends(t,e),t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return r.__assign(r.__assign({},t),{x:0,y:0,rx:0,ry:0})},t.prototype.createPath=function(e,t){var n=this.attr(),r=this.get("el");o.each(t||n,(function(e,t){"x"===t||"y"===t?r.setAttribute("c"+t,e):i.SVG_ATTR_MAP[t]&&r.setAttribute(i.SVG_ATTR_MAP[t],e)}))},t}(n(62).default);t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(0),i=n(52),a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="image",t.canFill=!1,t.canStroke=!1,t}return r.__extends(t,e),t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return r.__assign(r.__assign({},t),{x:0,y:0,width:0,height:0})},t.prototype.createPath=function(e,t){var n=this,r=this.attr(),a=this.get("el");o.each(t||r,(function(e,t){"img"===t?n._setImage(r.img):i.SVG_ATTR_MAP[t]&&a.setAttribute(i.SVG_ATTR_MAP[t],e)}))},t.prototype.setAttr=function(e,t){this.attrs[e]=t,"img"===e&&this._setImage(t)},t.prototype._setImage=function(e){var t=this.attr(),n=this.get("el");if(o.isString(e))n.setAttribute("href",e);else if(e instanceof window.Image)t.width||(n.setAttribute("width",e.width),this.attr("width",e.width)),t.height||(n.setAttribute("height",e.height),this.attr("height",e.height)),n.setAttribute("href",e.src);else if(e instanceof HTMLElement&&o.isString(e.nodeName)&&"CANVAS"===e.nodeName.toUpperCase())n.setAttribute("href",e.toDataURL());else if(e instanceof ImageData){var r=document.createElement("canvas");r.setAttribute("width",""+e.width),r.setAttribute("height",""+e.height),r.getContext("2d").putImageData(e,0,0),t.width||(n.setAttribute("width",""+e.width),this.attr("width",e.width)),t.height||(n.setAttribute("height",""+e.height),this.attr("height",e.height)),n.setAttribute("href",r.toDataURL())}},t}(n(62).default);t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(38),i=n(0),a=n(52),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="line",t.canFill=!1,t.canStroke=!0,t}return r.__extends(t,e),t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return r.__assign(r.__assign({},t),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},t.prototype.createPath=function(e,t){var n=this.attr(),r=this.get("el");i.each(t||n,(function(t,o){if("startArrow"===o||"endArrow"===o)if(t){var l=i.isObject(t)?e.addArrow(n,a.SVG_ATTR_MAP[o]):e.getDefaultArrow(n,a.SVG_ATTR_MAP[o]);r.setAttribute(a.SVG_ATTR_MAP[o],"url(#"+l+")")}else r.removeAttribute(a.SVG_ATTR_MAP[o]);else a.SVG_ATTR_MAP[o]&&r.setAttribute(a.SVG_ATTR_MAP[o],t)}))},t.prototype.getTotalLength=function(){var e=this.attr(),t=e.x1,n=e.y1,r=e.x2,i=e.y2;return o.Line.length(t,n,r,i)},t.prototype.getPoint=function(e){var t=this.attr(),n=t.x1,r=t.y1,i=t.x2,a=t.y2;return o.Line.pointAt(n,r,i,a,e)},t}(n(62).default);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(0),i=n(62),a=n(926),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="marker",t.canFill=!0,t.canStroke=!0,t}return r.__extends(t,e),t.prototype.createPath=function(e){this.get("el").setAttribute("d",this._assembleMarker())},t.prototype._assembleMarker=function(){var e=this._getPath();return o.isArray(e)?e.map((function(e){return e.join(" ")})).join(""):e},t.prototype._getPath=function(){var e,t=this.attr(),n=t.x,r=t.y,i=t.r||t.radius,l=t.symbol||"circle";return(e=o.isFunction(l)?l:a.default.get(l))?e(n,r,i):(console.warn(e+" symbol is not exist."),null)},t.symbolsFactory=a.default,t}(i.default);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={circle:function(e,t,n){return[["M",e,t],["m",-n,0],["a",n,n,0,1,0,2*n,0],["a",n,n,0,1,0,2*-n,0]]},square:function(e,t,n){return[["M",e-n,t-n],["L",e+n,t-n],["L",e+n,t+n],["L",e-n,t+n],["Z"]]},diamond:function(e,t,n){return[["M",e-n,t],["L",e,t-n],["L",e+n,t],["L",e,t+n],["Z"]]},triangle:function(e,t,n){var r=n*Math.sin(1/3*Math.PI);return[["M",e-n,t+r],["L",e,t-r],["L",e+n,t+r],["z"]]},triangleDown:function(e,t,n){var r=n*Math.sin(1/3*Math.PI);return[["M",e-n,t-r],["L",e+n,t-r],["L",e,t+r],["Z"]]}};t.default={get:function(e){return r[e]},register:function(e,t){r[e]=t},remove:function(e){delete r[e]},getAll:function(){return r}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(0),i=n(52),a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="path",t.canFill=!0,t.canStroke=!0,t}return r.__extends(t,e),t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return r.__assign(r.__assign({},t),{startArrow:!1,endArrow:!1})},t.prototype.createPath=function(e,t){var n=this,r=this.attr(),a=this.get("el");o.each(t||r,(function(t,l){if("path"===l&&o.isArray(t))a.setAttribute("d",n._formatPath(t));else if("startArrow"===l||"endArrow"===l)if(t){var c=o.isObject(t)?e.addArrow(r,i.SVG_ATTR_MAP[l]):e.getDefaultArrow(r,i.SVG_ATTR_MAP[l]);a.setAttribute(i.SVG_ATTR_MAP[l],"url(#"+c+")")}else a.removeAttribute(i.SVG_ATTR_MAP[l]);else i.SVG_ATTR_MAP[l]&&a.setAttribute(i.SVG_ATTR_MAP[l],t)}))},t.prototype._formatPath=function(e){var t=e.map((function(e){return e.join(" ")})).join("");return~t.indexOf("NaN")?"":t},t.prototype.getTotalLength=function(){var e=this.get("el");return e?e.getTotalLength():null},t.prototype.getPoint=function(e){var t=this.get("el"),n=this.getTotalLength();if(0===n)return null;var r=t?t.getPointAtLength(e*n):null;return r?{x:r.x,y:r.y}:null},t}(n(62).default);t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(0),i=n(52),a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="polygon",t.canFill=!0,t.canStroke=!0,t}return r.__extends(t,e),t.prototype.createPath=function(e,t){var n=this.attr(),r=this.get("el");o.each(t||n,(function(e,t){"points"===t&&o.isArray(e)&&e.length>=2?r.setAttribute("points",e.map((function(e){return e[0]+","+e[1]})).join(" ")):i.SVG_ATTR_MAP[t]&&r.setAttribute(i.SVG_ATTR_MAP[t],e)}))},t}(n(62).default);t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(38),i=n(38),a=n(0),l=n(52),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="polyline",t.canFill=!0,t.canStroke=!0,t}return r.__extends(t,e),t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return r.__assign(r.__assign({},t),{startArrow:!1,endArrow:!1})},t.prototype.onAttrChange=function(t,n,r){e.prototype.onAttrChange.call(this,t,n,r),-1!==["points"].indexOf(t)&&this._resetCache()},t.prototype._resetCache=function(){this.set("totalLength",null),this.set("tCache",null)},t.prototype.createPath=function(e,t){var n=this.attr(),r=this.get("el");a.each(t||n,(function(e,t){"points"===t&&a.isArray(e)&&e.length>=2?r.setAttribute("points",e.map((function(e){return e[0]+","+e[1]})).join(" ")):l.SVG_ATTR_MAP[t]&&r.setAttribute(l.SVG_ATTR_MAP[t],e)}))},t.prototype.getTotalLength=function(){var e=this.attr().points,t=this.get("totalLength");return a.isNil(t)?(this.set("totalLength",o.Polyline.length(e)),this.get("totalLength")):t},t.prototype.getPoint=function(e){var t,n,r=this.attr().points,o=this.get("tCache");return o||(this._setTcache(),o=this.get("tCache")),a.each(o,(function(r,o){e>=r[0]&&e<=r[1]&&(t=(e-r[0])/(r[1]-r[0]),n=o)})),i.Line.pointAt(r[n][0],r[n][1],r[n+1][0],r[n+1][1],t)},t.prototype._setTcache=function(){var e=this.attr().points;if(e&&0!==e.length){var t=this.getTotalLength();if(!(t<=0)){var n,r,o=0,l=[];a.each(e,(function(a,c){e[c+1]&&((n=[])[0]=o/t,r=i.Line.length(a[0],a[1],e[c+1][0],e[c+1][1]),o+=r,n[1]=o/t,l.push(n))})),this.set("tCache",l)}}},t.prototype.getStartTangent=function(){var e=this.attr().points,t=[];return t.push([e[1][0],e[1][1]]),t.push([e[0][0],e[0][1]]),t},t.prototype.getEndTangent=function(){var e=this.attr().points,t=e.length-1,n=[];return n.push([e[t-1][0],e[t-1][1]]),n.push([e[t][0],e[t][1]]),n},t}(n(62).default);t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(0),i=n(62),a=n(52),l=n(931),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="rect",t.canFill=!0,t.canStroke=!0,t}return r.__extends(t,e),t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return r.__assign(r.__assign({},t),{x:0,y:0,width:0,height:0,radius:0})},t.prototype.createPath=function(e,t){var n=this,r=this.attr(),i=this.get("el"),l=!1,c=["x","y","width","height","radius"];o.each(t||r,(function(e,t){-1===c.indexOf(t)||l?-1===c.indexOf(t)&&a.SVG_ATTR_MAP[t]&&i.setAttribute(a.SVG_ATTR_MAP[t],e):(i.setAttribute("d",n._assembleRect(r)),l=!0)}))},t.prototype._assembleRect=function(e){var t=e.x,n=e.y,r=e.width,i=e.height,a=e.radius;if(!a)return"M "+t+","+n+" l "+r+",0 l 0,"+i+" l"+-r+" 0 z";var c=l.parseRadius(a);return o.isArray(a)?1===a.length?c.r1=c.r2=c.r3=c.r4=a[0]:2===a.length?(c.r1=c.r3=a[0],c.r2=c.r4=a[1]):3===a.length?(c.r1=a[0],c.r2=c.r4=a[1],c.r3=a[2]):(c.r1=a[0],c.r2=a[1],c.r3=a[2],c.r4=a[3]):c.r1=c.r2=c.r3=c.r4=a,[["M "+(t+c.r1)+","+n],["l "+(r-c.r1-c.r2)+",0"],["a "+c.r2+","+c.r2+",0,0,1,"+c.r2+","+c.r2],["l 0,"+(i-c.r2-c.r3)],["a "+c.r3+","+c.r3+",0,0,1,"+-c.r3+","+c.r3],["l "+(c.r3+c.r4-r)+",0"],["a "+c.r4+","+c.r4+",0,0,1,"+-c.r4+","+-c.r4],["l 0,"+(c.r4+c.r1-i)],["a "+c.r1+","+c.r1+",0,0,1,"+c.r1+","+-c.r1],["z"]].join(" ")},t}(i.default);t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parsePath=t.parseRadius=void 0;var r=n(0),o=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,i=/[^\s,]+/gi;t.parseRadius=function(e){var t=0,n=0,o=0,i=0;return r.isArray(e)?1===e.length?t=n=o=i=e[0]:2===e.length?(t=o=e[0],n=i=e[1]):3===e.length?(t=e[0],n=i=e[1],o=e[2]):(t=e[0],n=e[1],o=e[2],i=e[3]):t=n=o=i=e,{r1:t,r2:n,r3:o,r4:i}},t.parsePath=function(e){return e=e||[],r.isArray(e)?e:r.isString(e)?(e=e.match(o),r.each(e,(function(t,n){if((t=t.match(i))[0].length>1){var o=t[0].charAt(0);t.splice(1,0,t[0].substr(1)),t[0]=o}r.each(t,(function(e,n){isNaN(e)||(t[n]=+e)})),e[n]=t})),e):void 0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(0),i=n(241),a=n(145),l=n(52),c=n(62),s={top:"before-edge",middle:"central",bottom:"after-edge",alphabetic:"baseline",hanging:"hanging"},u={top:"text-before-edge",middle:"central",bottom:"text-after-edge",alphabetic:"alphabetic",hanging:"hanging"},d={left:"left",start:"left",center:"middle",right:"end",end:"end"},f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="text",t.canFill=!0,t.canStroke=!0,t}return r.__extends(t,e),t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return r.__assign(r.__assign({},t),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},t.prototype.createPath=function(e,t){var n=this,r=this.attr(),i=this.get("el");this._setFont(),o.each(t||r,(function(e,t){"text"===t?n._setText(""+e):"matrix"===t&&e?a.setTransform(n):l.SVG_ATTR_MAP[t]&&i.setAttribute(l.SVG_ATTR_MAP[t],e)})),i.setAttribute("paint-order","stroke"),i.setAttribute("style","stroke-linecap:butt; stroke-linejoin:miter;")},t.prototype._setFont=function(){var e=this.get("el"),t=this.attr(),n=t.textBaseline,r=t.textAlign,o=i.detect();o&&"firefox"===o.name?e.setAttribute("dominant-baseline",u[n]||"alphabetic"):e.setAttribute("alignment-baseline",s[n]||"baseline"),e.setAttribute("text-anchor",d[r]||"left")},t.prototype._setText=function(e){var t=this.get("el"),n=this.attr(),r=n.x,i=n.textBaseline,a=void 0===i?"bottom":i;if(e)if(~e.indexOf("\n")){var l=e.split("\n"),c=l.length-1,s="";o.each(l,(function(e,t){0===t?"alphabetic"===a?s+='<tspan x="'+r+'" dy="'+-c+'em">'+e+"</tspan>":"top"===a?s+='<tspan x="'+r+'" dy="0.9em">'+e+"</tspan>":"middle"===a?s+='<tspan x="'+r+'" dy="'+-(c-1)/2+'em">'+e+"</tspan>":"bottom"===a?s+='<tspan x="'+r+'" dy="-'+(c+.3)+'em">'+e+"</tspan>":"hanging"===a&&(s+='<tspan x="'+r+'" dy="'+(-(c-1)-.3)+'em">'+e+"</tspan>"):s+='<tspan x="'+r+'" dy="1em">'+e+"</tspan>"})),t.innerHTML=s}else t.innerHTML=e;else t.innerHTML=""},t}(c.default);t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(26),i=n(52),a=n(260),l=n(145),c=n(72),s=n(185),u=n(261),d=n(934),f=function(e){function t(t){return e.call(this,r.__assign(r.__assign({},t),{autoDraw:!0,renderer:"svg"}))||this}return r.__extends(t,e),t.prototype.getShapeBase=function(){return s},t.prototype.getGroupBase=function(){return u.default},t.prototype.getShape=function(e,t,n){var r=n.target||n.srcElement;if(!i.SHAPE_TO_TAGS[r.tagName]){for(var o=r.parentNode;o&&!i.SHAPE_TO_TAGS[o.tagName];)o=o.parentNode;r=o}return this.find((function(e){return e.get("el")===r}))},t.prototype.createDom=function(){var e=c.createSVGElement("svg"),t=new d.default(e);return e.setAttribute("width",""+this.get("width")),e.setAttribute("height",""+this.get("height")),this.set("context",t),e},t.prototype.onCanvasChange=function(e){var t=this.get("context"),n=this.get("el");if("sort"===e){var r=this.get("children");r&&r.length&&c.sortDom(this,(function(e,t){return r.indexOf(e)-r.indexOf(t)?1:0}))}else if("clear"===e){if(n){n.innerHTML="";var o=t.el;o.innerHTML="",n.appendChild(o)}}else"matrix"===e?l.setTransform(this):"clip"===e?l.setClip(this,t):"changeSize"===e&&(n.setAttribute("width",""+this.get("width")),n.setAttribute("height",""+this.get("height")))},t.prototype.draw=function(){var e=this.get("context"),t=this.getChildren();l.setClip(this,e),t.length&&a.drawChildren(e,t)},t}(o.AbstractCanvas);t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=n(935),i=n(936),a=n(937),l=n(938),c=n(939),s=n(72),u=function(){function e(e){var t=s.createSVGElement("defs"),n=r.uniqueId("defs_");t.id=n,e.appendChild(t),this.children=[],this.defaultArrow={},this.el=t,this.canvas=e}return e.prototype.find=function(e,t){for(var n=this.children,r=null,o=0;o<n.length;o++)if(n[o].match(e,t)){r=n[o].id;break}return r},e.prototype.findById=function(e){for(var t=this.children,n=null,r=0;r<t.length;r++)if(t[r].id===e){n=t[r];break}return n},e.prototype.add=function(e){this.children.push(e),e.canvas=this.canvas,e.parent=this},e.prototype.getDefaultArrow=function(e,t){var n=e.stroke||e.strokeStyle;if(this.defaultArrow[n])return this.defaultArrow[n].id;var r=new a.default(e,t);return this.defaultArrow[n]=r,this.el.appendChild(r.el),this.add(r),r.id},e.prototype.addGradient=function(e){var t=new o.default(e);return this.el.appendChild(t.el),this.add(t),t.id},e.prototype.addArrow=function(e,t){var n=new a.default(e,t);return this.el.appendChild(n.el),this.add(n),n.id},e.prototype.addShadow=function(e){var t=new i.default(e);return this.el.appendChild(t.el),this.add(t),t.id},e.prototype.addPattern=function(e){var t=new c.default(e);return this.el.appendChild(t.el),this.add(t),t.id},e.prototype.addClip=function(e){var t=new l.default(e);return this.el.appendChild(t.el),this.add(t),t.id},e}();t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=n(72),i=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,a=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,l=/[\d.]+:(#[^\s]+|[^)]+\))/gi;function c(e){var t=e.match(l);if(!t)return"";var n="";return t.sort((function(e,t){return e=e.split(":"),t=t.split(":"),Number(e[0])-Number(t[0])})),r.each(t,(function(e){e=e.split(":"),n+='<stop offset="'+e[0]+'" stop-color="'+e[1]+'"></stop>'})),n}var s=function(){function e(e){this.cfg={};var t=null,n=r.uniqueId("gradient_");return"l"===e.toLowerCase()[0]?function(e,t){var n,o,a=i.exec(e),l=r.mod(r.toRadian(parseFloat(a[1])),2*Math.PI),s=a[2];l>=0&&l<.5*Math.PI?(n={x:0,y:0},o={x:1,y:1}):.5*Math.PI<=l&&l<Math.PI?(n={x:1,y:0},o={x:0,y:1}):Math.PI<=l&&l<1.5*Math.PI?(n={x:1,y:1},o={x:0,y:0}):(n={x:0,y:1},o={x:1,y:0});var u=Math.tan(l),d=u*u,f=(o.x-n.x+u*(o.y-n.y))/(d+1)+n.x,p=u*(o.x-n.x+u*(o.y-n.y))/(d+1)+n.y;t.setAttribute("x1",n.x),t.setAttribute("y1",n.y),t.setAttribute("x2",f),t.setAttribute("y2",p),t.innerHTML=c(s)}(e,t=o.createSVGElement("linearGradient")):function(e,t){var n=a.exec(e),r=parseFloat(n[1]),o=parseFloat(n[2]),i=parseFloat(n[3]),l=n[4];t.setAttribute("cx",r),t.setAttribute("cy",o),t.setAttribute("r",i),t.innerHTML=c(l)}(e,t=o.createSVGElement("radialGradient")),t.setAttribute("id",n),this.el=t,this.id=n,this.cfg=e,this}return e.prototype.match=function(e,t){return this.cfg===t},e}();t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=n(72),i={shadowColor:"color",shadowOpacity:"opacity",shadowBlur:"blur",shadowOffsetX:"dx",shadowOffsetY:"dy"},a={x:"-40%",y:"-40%",width:"200%",height:"200%"},l=function(){function e(e){this.type="filter",this.cfg={},this.type="filter";var t=o.createSVGElement("filter");return r.each(a,(function(e,n){t.setAttribute(n,e)})),this.el=t,this.id=r.uniqueId("filter_"),this.el.id=this.id,this.cfg=e,this._parseShadow(e,t),this}return e.prototype.match=function(e,t){if(this.type!==e)return!1;var n=!0,o=this.cfg;return r.each(Object.keys(o),(function(e){if(o[e]!==t[e])return n=!1,!1})),n},e.prototype.update=function(e,t){var n=this.cfg;return n[i[e]]=t,this._parseShadow(n,this.el),this},e.prototype._parseShadow=function(e,t){var n='<feDropShadow\n      dx="'+(e.dx||0)+'"\n      dy="'+(e.dy||0)+'"\n      stdDeviation="'+(e.blur?e.blur/10:0)+'"\n      flood-color="'+(e.color?e.color:"#000")+'"\n      flood-opacity="'+(e.opacity?e.opacity:1)+'"\n      />';t.innerHTML=n},e}();t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=n(72),i=function(){function e(e,t){this.cfg={};var n=o.createSVGElement("marker"),i=r.uniqueId("marker_");n.setAttribute("id",i);var a=o.createSVGElement("path");a.setAttribute("stroke",e.stroke||"none"),a.setAttribute("fill",e.fill||"none"),n.appendChild(a),n.setAttribute("overflow","visible"),n.setAttribute("orient","auto-start-reverse"),this.el=n,this.child=a,this.id=i;var l=e["marker-start"===t?"startArrow":"endArrow"];return this.stroke=e.stroke||"#000",!0===l?this._setDefaultPath(t,a):(this.cfg=l,this._setMarker(e.lineWidth,a)),this}return e.prototype.match=function(){return!1},e.prototype._setDefaultPath=function(e,t){var n=this.el;t.setAttribute("d","M0,0 L"+10*Math.cos(Math.PI/6)+",5 L0,10"),n.setAttribute("refX",""+10*Math.cos(Math.PI/6)),n.setAttribute("refY","5")},e.prototype._setMarker=function(e,t){var n=this.el,o=this.cfg.path,i=this.cfg.d;r.isArray(o)&&(o=o.map((function(e){return e.join(" ")})).join("")),t.setAttribute("d",o),n.appendChild(t),i&&n.setAttribute("refX",""+i/e)},e.prototype.update=function(e){var t=this.child;t.attr?t.attr("fill",e):t.setAttribute("fill",e)},e}();t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=n(72),i=function(){function e(e){this.type="clip",this.cfg={};var t=o.createSVGElement("clipPath");this.el=t,this.id=r.uniqueId("clip_"),t.id=this.id;var n=e.cfg.el;return t.appendChild(n),this.cfg=e,this}return e.prototype.match=function(){return!1},e.prototype.remove=function(){var e=this.el;e.parentNode.removeChild(e)},e}();t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=n(72),i=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,a=function(){function e(e){this.cfg={};var t=o.createSVGElement("pattern");t.setAttribute("patternUnits","userSpaceOnUse");var n=o.createSVGElement("image");t.appendChild(n);var a=r.uniqueId("pattern_");t.id=a,this.el=t,this.id=a,this.cfg=e;var l=i.exec(e)[2];n.setAttribute("href",l);var c=new Image;function s(){t.setAttribute("width",""+c.width),t.setAttribute("height",""+c.height)}return l.match(/^data:/i)||(c.crossOrigin="Anonymous"),c.src=l,c.complete?s():(c.onload=s,c.src=c.src),this}return e.prototype.match=function(e,t){return this.cfg===t},e}();t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(0),i=n(21),a=n(446),l=n(160),c=function(e){function t(t){var n=this,c=t.container,s=t.width,u=t.height,d=t.autoFit,f=void 0!==d&&d,p=t.padding,h=t.appendPadding,g=t.renderer,v=void 0===g?"canvas":g,m=t.pixelRatio,y=t.localRefresh,b=void 0===y||y,x=t.visible,w=void 0===x||x,S=t.supportCSSTransform,O=void 0!==S&&S,_=t.defaultInteractions,C=void 0===_?["tooltip","legend-filter","legend-active","continuous-filter","ellipsis-text"]:_,E=t.options,P=t.limitInPlot,M=t.theme,k=t.syncViewPadding,A=(0,o.isString)(c)?document.getElementById(c):c,I=(0,l.createDom)('<div style="position:relative;"></div>');A.appendChild(I);var T=(0,l.getChartSize)(A,f,s,u),j=new((0,a.getEngine)(v).Canvas)((0,r.__assign)({container:I,pixelRatio:m,localRefresh:b,supportCSSTransform:O},T));return(n=e.call(this,{parent:null,canvas:j,backgroundGroup:j.addGroup({zIndex:i.GROUP_Z_INDEX.BG}),middleGroup:j.addGroup({zIndex:i.GROUP_Z_INDEX.MID}),foregroundGroup:j.addGroup({zIndex:i.GROUP_Z_INDEX.FORE}),padding:p,appendPadding:h,visible:w,options:E,limitInPlot:P,theme:M,syncViewPadding:k})||this).onResize=(0,o.debounce)((function(){n.forceFit()}),300),n.ele=A,n.canvas=j,n.width=T.width,n.height=T.height,n.autoFit=f,n.localRefresh=b,n.renderer=v,n.wrapperElement=I,n.updateCanvasStyle(),n.bindAutoFit(),n.initDefaultInteractions(C),n}return(0,r.__extends)(t,e),t.prototype.initDefaultInteractions=function(e){var t=this;(0,o.each)(e,(function(e){t.interaction(e)}))},t.prototype.aria=function(e){var t="aria-label";!1===e?this.ele.removeAttribute(t):this.ele.setAttribute(t,e.label)},t.prototype.changeSize=function(e,t){return this.width===e&&this.height===t||(this.emit(i.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_SIZE),this.width=e,this.height=t,this.canvas.changeSize(e,t),this.render(!0),this.emit(i.VIEW_LIFE_CIRCLE.AFTER_CHANGE_SIZE)),this},t.prototype.clear=function(){e.prototype.clear.call(this),this.aria(!1)},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.unbindAutoFit(),this.canvas.destroy(),(0,l.removeDom)(this.wrapperElement),this.wrapperElement=null},t.prototype.changeVisible=function(t){return e.prototype.changeVisible.call(this,t),this.wrapperElement.style.display=t?"":"none",this},t.prototype.forceFit=function(){if(!this.destroyed){var e=(0,l.getChartSize)(this.ele,!0,this.width,this.height),t=e.width,n=e.height;this.changeSize(t,n)}},t.prototype.updateCanvasStyle=function(){(0,l.modifyCSS)(this.canvas.get("el"),{display:"inline-block",verticalAlign:"middle"})},t.prototype.bindAutoFit=function(){this.autoFit&&window.addEventListener("resize",this.onResize)},t.prototype.unbindAutoFit=function(){this.autoFit&&window.removeEventListener("resize",this.onResize)},t}((0,r.__importDefault)(n(447)).default);t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseAction=void 0;var r=n(1),o=n(0),i=n(204),a=(0,r.__importDefault)(n(943)),l=(0,r.__importDefault)(n(448));function c(e,t,n){var r=e.split(":"),o=r[0],a=t.getAction(o)||(0,i.createAction)(o,t);if(!a)throw new Error("There is no action named "+o);return{action:a,methodName:r[1],arg:n}}function s(e){var t=e.action,n=e.methodName,r=e.arg;if(!t[n])throw new Error("Action("+t.name+") doesn't have a method called "+n);t[n](r)}t.parseAction=c;var u="start",d="showEnable",f="end",p="rollback",h="processing",g=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.callbackCaches={},r.emitCaches={},r.steps=n,r}return(0,r.__extends)(t,e),t.prototype.init=function(){this.initContext(),e.prototype.init.call(this)},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.steps=null,this.context&&(this.context.destroy(),this.context=null),this.callbackCaches=null,this.view=null},t.prototype.initEvents=function(){var e=this;(0,o.each)(this.steps,(function(t,n){(0,o.each)(t,(function(t){var r=e.getActionCallback(n,t);r&&e.bindEvent(t.trigger,r)}))}))},t.prototype.clearEvents=function(){var e=this;(0,o.each)(this.steps,(function(t,n){(0,o.each)(t,(function(t){var r=e.getActionCallback(n,t);r&&e.offEvent(t.trigger,r)}))}))},t.prototype.initContext=function(){var e=this.view,t=new a.default(e);this.context=t;var n=this.steps;(0,o.each)(n,(function(e){(0,o.each)(e,(function(e){if((0,o.isFunction)(e.action))e.actionObject={action:(0,i.createCallbackAction)(e.action,t),methodName:"execute"};else if((0,o.isString)(e.action))e.actionObject=c(e.action,t,e.arg);else if((0,o.isArray)(e.action)){var n=e.action,r=(0,o.isArray)(e.arg)?e.arg:[e.arg];e.actionObject=[],(0,o.each)(n,(function(n,o){e.actionObject.push(c(n,t,r[o]))}))}}))}))},t.prototype.isAllowStep=function(e){var t=this.currentStepName,n=this.steps;if(t===e)return!0;if(e===d)return!0;if(e===h)return t===u;if(e===u)return t!==h;if(e===f)return t===h||t===u;if(e===p){if(n[f])return t===f;if(t===u)return!0}return!1},t.prototype.isAllowExecute=function(e,t){if(this.isAllowStep(e)){var n=this.getKey(e,t);return(!t.once||!this.emitCaches[n])&&(!t.isEnable||t.isEnable(this.context))}return!1},t.prototype.enterStep=function(e){this.currentStepName=e,this.emitCaches={}},t.prototype.afterExecute=function(e,t){e!==d&&this.currentStepName!==e&&this.enterStep(e);var n=this.getKey(e,t);this.emitCaches[n]=!0},t.prototype.getKey=function(e,t){return e+t.trigger+t.action},t.prototype.getActionCallback=function(e,t){var n=this,r=this.context,i=this.callbackCaches,a=t.actionObject;if(t.action&&a){var l=this.getKey(e,t);if(!i[l]){var c=function(i){r.event=i,n.isAllowExecute(e,t)?((0,o.isArray)(a)?(0,o.each)(a,(function(e){r.event=i,s(e)})):(r.event=i,s(a)),n.afterExecute(e,t),t.callback&&(r.event=i,t.callback(r))):r.event=null};t.debounce?i[l]=(0,o.debounce)(c,t.debounce.wait,t.debounce.immediate):t.throttle?i[l]=(0,o.throttle)(c,t.throttle.wait,{leading:t.throttle.leading,trailing:t.throttle.trailing}):i[l]=c}return i[l]}return null},t.prototype.bindEvent=function(e,t){var n=e.split(":");"window"===n[0]?window.addEventListener(n[1],t):"document"===n[0]?document.addEventListener(n[1],t):this.view.on(e,t)},t.prototype.offEvent=function(e,t){var n=e.split(":");"window"===n[0]?window.removeEventListener(n[1],t):"document"===n[0]?document.removeEventListener(n[1],t):this.view.off(e,t)},t}(l.default);t.default=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.__extends)(t,e),t.prototype.execute=function(){this.callback&&this.callback(this.context)},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.callback=null},t}((0,r.__importDefault)(n(44)).default);t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=n(31),i=function(){function e(e){this.actions=[],this.event=null,this.cacheMap={},this.view=e}return e.prototype.cache=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(1===e.length)return this.cacheMap[e[0]];2===e.length&&(this.cacheMap[e[0]]=e[1])},e.prototype.getAction=function(e){return this.actions.find((function(t){return t.name===e}))},e.prototype.addAction=function(e){this.actions.push(e)},e.prototype.removeAction=function(e){var t=this.actions,n=this.actions.indexOf(e);n>=0&&t.splice(n,1)},e.prototype.getCurrentPoint=function(){var e=this.event;return e?e.target instanceof HTMLElement?this.view.getCanvas().getPointByClient(e.clientX,e.clientY):{x:e.x,y:e.y}:null},e.prototype.getCurrentShape=function(){return(0,r.get)(this.event,["gEvent","shape"])},e.prototype.isInPlot=function(){var e=this.getCurrentPoint();return!!e&&this.view.isPointInPlot(e)},e.prototype.isInShape=function(e){var t=this.getCurrentShape();return!!t&&t.get("name")===e},e.prototype.isInComponent=function(e){var t=(0,o.getComponents)(this.view),n=this.getCurrentPoint();return!!n&&!!t.find((function(t){var r=t.getBBox();return e?t.get("name")===e&&(0,o.isInBox)(r,n):(0,o.isInBox)(r,n)}))},e.prototype.destroy=function(){(0,r.each)(this.actions.slice(),(function(e){e.destroy()})),this.view=null,this.event=null,this.actions=null,this.cacheMap=null},e}();t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createTheme=void 0;var r=n(1),o=n(0),i=n(105),a=n(161);t.createTheme=function(e){var t=e.styleSheet,n=void 0===t?{}:t,l=(0,r.__rest)(e,["styleSheet"]),c=(0,a.createLightStyleSheet)(n);return(0,o.deepMix)({},(0,i.createThemeByStyleSheet)(c),l)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(0),i=n(69),a=function(){function e(e){this.option=this.wrapperOption(e)}return e.prototype.update=function(e){return this.option=this.wrapperOption(e),this},e.prototype.hasAction=function(e){var t=this.option.actions;return(0,o.some)(t,(function(t){return t[0]===e}))},e.prototype.create=function(e,t){var n=this.option,o=n.type,a=n.cfg,l="theta"===o,c=(0,r.__assign)({start:e,end:t},a),s=(0,i.getCoordinate)(l?"polar":o);return this.coordinate=new s(c),this.coordinate.type=o,l&&(this.hasAction("transpose")||this.transpose()),this.execActions(),this.coordinate},e.prototype.adjust=function(e,t){return this.coordinate.update({start:e,end:t}),this.coordinate.resetMatrix(),this.execActions(["scale","rotate","translate"]),this.coordinate},e.prototype.rotate=function(e){return this.option.actions.push(["rotate",e]),this},e.prototype.reflect=function(e){return this.option.actions.push(["reflect",e]),this},e.prototype.scale=function(e,t){return this.option.actions.push(["scale",e,t]),this},e.prototype.transpose=function(){return this.option.actions.push(["transpose"]),this},e.prototype.getOption=function(){return this.option},e.prototype.getCoordinate=function(){return this.coordinate},e.prototype.wrapperOption=function(e){return(0,r.__assign)({type:"rect",actions:[],cfg:{}},e)},e.prototype.execActions=function(e){var t=this,n=this.option.actions;(0,o.each)(n,(function(n){var r,i=n[0],a=n.slice(1);((0,o.isNil)(e)||e.includes(i))&&(r=t.coordinate)[i].apply(r,a)}))},e}();t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.getController("axis"),n=e.getController("legend"),r=e.getController("annotation");[t,e.getController("slider"),e.getController("scrollbar"),n,r].forEach((function(e){e&&e.layout()}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ScalePool=void 0;var r=n(0),o=n(110),i=function(){function e(){this.scales=new Map,this.syncScales=new Map}return e.prototype.createScale=function(e,t,n,i){var a=n,l=this.getScaleMeta(i);if(0===t.length&&l){var c=l.scale,s={type:c.type};c.isCategory&&(s.values=c.values),a=(0,r.deepMix)(s,l.scaleDef,n)}var u=(0,o.createScaleByField)(e,t,a);return this.cacheScale(u,n,i),u},e.prototype.sync=function(e,t){var n=this;this.syncScales.forEach((function(i,a){var l=Number.MAX_SAFE_INTEGER,c=Number.MIN_SAFE_INTEGER,s=[];(0,r.each)(i,(function(e){var t=n.getScale(e);c=(0,r.isNumber)(t.max)?Math.max(c,t.max):c,l=(0,r.isNumber)(t.min)?Math.min(l,t.min):l,(0,r.each)(t.values,(function(e){s.includes(e)||s.push(e)}))})),(0,r.each)(i,(function(i){var a=n.getScale(i);if(a.isContinuous)a.change({min:l,max:c,values:s});else if(a.isCategory){var u=a.range,d=n.getScaleMeta(i);s&&!(0,r.get)(d,["scaleDef","range"])&&(u=(0,o.getDefaultCategoryScaleRange)((0,r.deepMix)({},a,{values:s}),e,t)),a.change({values:s,range:u})}}))}))},e.prototype.cacheScale=function(e,t,n){var r=this.getScaleMeta(n);r&&r.scale.type===e.type?((0,o.syncScale)(r.scale,e),r.scaleDef=t):(r={key:n,scale:e,scaleDef:t},this.scales.set(n,r));var i=this.getSyncKey(r);if(r.syncKey=i,this.removeFromSyncScales(n),i){var a=this.syncScales.get(i);a||(a=[],this.syncScales.set(i,a)),a.push(n)}},e.prototype.getScale=function(e){var t=this.getScaleMeta(e);if(!t){var n=(0,r.last)(e.split("-")),o=this.syncScales.get(n);o&&o.length&&(t=this.getScaleMeta(o[0]))}return t&&t.scale},e.prototype.deleteScale=function(e){var t=this.getScaleMeta(e);if(t){var n=t.syncKey,r=this.syncScales.get(n);if(r&&r.length){var o=r.indexOf(e);-1!==o&&r.splice(o,1)}}this.scales.delete(e)},e.prototype.clear=function(){this.scales.clear(),this.syncScales.clear()},e.prototype.removeFromSyncScales=function(e){var t=this;this.syncScales.forEach((function(n,r){var o=n.indexOf(e);if(-1!==o)return n.splice(o,1),0===n.length&&t.syncScales.delete(r),!1}))},e.prototype.getSyncKey=function(e){var t=e.scale,n=e.scaleDef,o=t.field,i=(0,r.get)(n,["sync"]);return!0===i?o:!1===i?void 0:i},e.prototype.getScaleMeta=function(e){return this.scales.get(e)},e}();t.ScalePool=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.calculatePadding=void 0;var r=n(1),o=n(0),i=n(21),a=n(80),l=n(266),c=n(451);t.calculatePadding=function(e){var t=e.padding;if(!(0,l.isAutoPadding)(t))return new(c.PaddingCal.bind.apply(c.PaddingCal,(0,r.__spreadArray)([void 0],(0,l.parsePadding)(t),!1)));var n=e.viewBBox,s=new c.PaddingCal,u=[],d=[],f=[];return(0,o.each)(e.getComponents(),(function(e){var t=e.type;t===i.COMPONENT_TYPE.AXIS?u.push(e):[i.COMPONENT_TYPE.LEGEND,i.COMPONENT_TYPE.SLIDER,i.COMPONENT_TYPE.SCROLLBAR].includes(t)?d.push(e):t!==i.COMPONENT_TYPE.GRID&&t!==i.COMPONENT_TYPE.TOOLTIP&&f.push(e)})),(0,o.each)(u,(function(e){var t=e.component.getLayoutBBox(),r=new a.BBox(t.x,t.y,t.width,t.height).exceed(n);s.max(r)})),(0,o.each)(d,(function(e){var t=e.component,n=e.direction,r=t.getLayoutBBox(),o=t.get("padding"),i=new a.BBox(r.x,r.y,r.width,r.height).expand(o);s.inc(i,n)})),(0,o.each)(f,(function(e){var t=e.component,n=e.direction,r=t.getLayoutBBox(),o=new a.BBox(r.x,r.y,r.width,r.height);s.inc(o,n)})),s}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultSyncViewPadding=void 0,t.defaultSyncViewPadding=function(e,t,n){var r=n.instance();t.forEach((function(e){e.autoPadding=r.max(e.autoPadding.getPadding())}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.group=void 0;var r=n(0);t.group=function(e,t,n){if(void 0===n&&(n={}),!t)return[e];var o=(0,r.groupToMap)(e,t),i=[];if(1===t.length&&n[t[0]])for(var a=0,l=n[t[0]];a<l.length;a++){var c=o["_"+l[a]];c&&i.push(c)}else for(var s in o)if(o.hasOwnProperty(s)){var u=o[s];i.push(u)}return i}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseFields=void 0;var r=n(0);t.parseFields=function(e){return(0,r.isArray)(e)?e:e.split("*")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(0),i=n(96),a=n(270),l=n(112),c=n(46),s=n(113),u=n(21),d=n(953),f=function(){function e(e){this.shapesMap={},this.lastShapesMap={};var t=e.layout,n=e.container;this.layout=t,this.container=n}return e.prototype.render=function(e,t,n){var a=this;void 0===n&&(n=!1),this.shapesMap={};var l=this.container,c=this.createOffscreenGroup();if(e.length){for(var s=0,u=e;s<u.length;s++){var f=u[s];f&&this.renderLabel(f,c)}this.doLayout(e,t),this.renderLabelLine(e),this.renderLabelBackground(e),this.adjustLabel(e)}var p=this.lastShapesMap,h=this.shapesMap;(0,o.each)(h,(function(e,t){if(e.destroyed)delete h[t];else{if(p[t]){var c=e.get("data"),s=e.get("origin"),u=e.get("coordinate"),f=e.get("animateCfg"),g=p[t];(0,d.updateLabel)(g,h[t],{data:c,origin:s,animateCfg:f,coordinate:u}),a.shapesMap[t]=g}else{l.add(e);var v=(0,o.get)(e.get("animateCfg"),n?"enter":"appear");v&&(0,i.doAnimate)(e,v,{toAttrs:(0,r.__assign)({},e.attr()),coordinate:e.get("coordinate")})}delete p[t]}})),(0,o.each)(p,(function(e){var t=(0,o.get)(e.get("animateCfg"),"leave");t?(0,i.doAnimate)(e,t,{toAttrs:null,coordinate:e.get("coordinate")}):e.remove(!0)})),this.lastShapesMap=h,c.destroy()},e.prototype.clear=function(){this.container.clear(),this.shapesMap={},this.lastShapesMap={}},e.prototype.destroy=function(){this.container.destroy(),this.shapesMap=null,this.lastShapesMap=null},e.prototype.renderLabel=function(e,t){var n,i=e.id,a=e.elementId,l=e.data,c=e.mappingData,d=e.coordinate,f=e.animate,p=e.content,h={id:i,elementId:a,data:l,origin:(0,r.__assign)((0,r.__assign)({},c),{data:c[u.FIELD_ORIGIN]}),coordinate:d},g=t.addGroup((0,r.__assign)({name:"label",animateCfg:!1!==this.animate&&null!==f&&!1!==f&&(0,o.deepMix)({},this.animate,f)},h));if(p.isGroup&&p.isGroup()||p.isShape&&p.isShape()){var v=p.getCanvasBBox(),m=v.width,y=v.height,b=(0,o.get)(e,"textAlign","left"),x=e.x,w=e.y-y/2;"center"===b?x-=m/2:"right"!==b&&"end"!==b||(x-=m),(0,s.translate)(p,x,w),n=p,g.add(p)}else{var S=(0,o.get)(e,["style","fill"]);n=g.addShape("text",(0,r.__assign)({attrs:(0,r.__assign)((0,r.__assign)({x:e.x,y:e.y,textAlign:e.textAlign,textBaseline:(0,o.get)(e,"textBaseline","middle"),text:e.content},e.style),{fill:(0,o.isNull)(S)?e.color:S})},h))}e.rotate&&(0,s.rotate)(n,e.rotate),this.shapesMap[i]=g},e.prototype.doLayout=function(e,t){var n=this;if(this.layout){var r=(0,o.isArray)(this.layout)?this.layout:[this.layout];(0,o.each)(r,(function(r){var i=(0,a.getGeometryLabelLayout)((0,o.get)(r,"type",""));if(i){var l=[],c=[];(0,o.each)(n.shapesMap,(function(e,n){l.push(e),c.push(t[e.get("elementId")])})),i(e,l,c,n.region,r.cfg)}}))}},e.prototype.renderLabelLine=function(e){var t=this;(0,o.each)(e,(function(e){var n=(0,o.get)(e,"coordinate");if(e&&n){var i=n.getCenter(),a=n.getRadius();if(e.labelLine){var l=(0,o.get)(e,"labelLine",{}),s=e.id,u=l.path;if(!u){var d=(0,c.polarToCartesian)(i.x,i.y,a,e.angle);u=[["M",d.x,d.y],["L",e.x,e.y]]}var f=t.shapesMap[s];f.destroyed||f.addShape("path",{capture:!1,attrs:(0,r.__assign)({path:u,stroke:e.color?e.color:(0,o.get)(e,["style","fill"],"#000"),fill:null},l.style),id:s,origin:e.mappingData,data:e.data,coordinate:e.coordinate})}}}))},e.prototype.renderLabelBackground=function(e){var t=this;(0,o.each)(e,(function(e){var n=(0,o.get)(e,"coordinate"),i=(0,o.get)(e,"background");if(i&&n){var a=e.id,c=t.shapesMap[a];if(!c.destroyed){var s=c.getChildren()[0];if(s){var u=(0,l.getlLabelBackgroundInfo)(c,e,i.padding),d=u.rotation,f=(0,r.__rest)(u,["rotation"]),p=c.addShape("rect",{attrs:(0,r.__assign)((0,r.__assign)({},f),i.style||{}),id:a,origin:e.mappingData,data:e.data,coordinate:e.coordinate});if(p.setZIndex(-1),d){var h=s.getMatrix();p.setMatrix(h)}}}}}))},e.prototype.createOffscreenGroup=function(){return new(this.container.getGroupBase())({})},e.prototype.adjustLabel=function(e){var t=this;(0,o.each)(e,(function(e){if(e){var n=e.id,r=t.shapesMap[n];if(!r.destroyed){var i=r.findAll((function(e){return"path"!==e.get("type")}));(0,o.each)(i,(function(t){t&&(e.offsetX&&t.attr("x",t.attr("x")+e.offsetX),e.offsetY&&t.attr("y",t.attr("y")+e.offsetY))}))}}}))},e}();t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.updateLabel=void 0;var r=n(0),o=n(96),i=n(46);t.updateLabel=function e(t,n,a){var l=a.data,c=a.origin,s=a.animateCfg,u=a.coordinate,d=(0,r.get)(s,"update");t.set("data",l),t.set("origin",c),t.set("animateCfg",s),t.set("coordinate",u),t.set("visible",n.get("visible")),t.getChildren().forEach((function(r,f){var p=n.getChildByIndex(f);if(p){r.set("data",l),r.set("origin",c),r.set("animateCfg",s),r.set("coordinate",u);var h=(0,i.getReplaceAttrs)(r,p);d?(0,o.doAnimate)(r,d,{toAttrs:h,coordinate:u}):r.attr(h),p.isGroup()&&e(r,p,a)}else t.removeChild(r),r.remove(!0)})),(0,r.each)(n.getChildren(),(function(e,n){n>=t.getCount()&&(e.destroyed||t.add(e))}))}},function(e,t,n){"use strict";var r=n(5);e.exports=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=r(e)););return e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=n(223),o=n(167),i=n(162),a=n(320),l=n(224),c=n(321),s=n(322),u=n(225),d=n(25);Object(d.registerAnimation)("fade-in",r.fadeIn),Object(d.registerAnimation)("fade-out",r.fadeOut),Object(d.registerAnimation)("grow-in-x",o.growInX),Object(d.registerAnimation)("grow-in-xy",o.growInXY),Object(d.registerAnimation)("grow-in-y",o.growInY),Object(d.registerAnimation)("scale-in-x",l.scaleInX),Object(d.registerAnimation)("scale-in-y",l.scaleInY),Object(d.registerAnimation)("wave-in",s.waveIn),Object(d.registerAnimation)("zoom-in",u.zoomIn),Object(d.registerAnimation)("zoom-out",u.zoomOut),Object(d.registerAnimation)("position-update",a.positionUpdate),Object(d.registerAnimation)("sector-path-update",c.sectorPathUpdate),Object(d.registerAnimation)("path-in",i.pathIn)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.doScaleAnimate=t.transformShape=void 0;var r=n(32);function o(e,t,n){var o,i=t[0],a=t[1];return e.applyToMatrix([i,a,1]),"x"===n?(e.setMatrix(r.ext.transform(e.getMatrix(),[["t",-i,-a],["s",.01,1],["t",i,a]])),o=r.ext.transform(e.getMatrix(),[["t",-i,-a],["s",100,1],["t",i,a]])):"y"===n?(e.setMatrix(r.ext.transform(e.getMatrix(),[["t",-i,-a],["s",1,.01],["t",i,a]])),o=r.ext.transform(e.getMatrix(),[["t",-i,-a],["s",1,100],["t",i,a]])):"xy"===n&&(e.setMatrix(r.ext.transform(e.getMatrix(),[["t",-i,-a],["s",.01,.01],["t",i,a]])),o=r.ext.transform(e.getMatrix(),[["t",-i,-a],["s",100,100],["t",i,a]])),o}t.transformShape=o,t.doScaleAnimate=function(e,t,n,r,i){var a,l,c=n.start,s=n.end,u=n.getWidth(),d=n.getHeight();"y"===i?(a=c.x+u/2,l=r.y<c.y?r.y:c.y):"x"===i?(a=r.x>c.x?r.x:c.x,l=c.y+d/2):"xy"===i&&(n.isPolar?(a=n.getCenter().x,l=n.getCenter().y):(a=(c.x+s.x)/2,l=(c.y+s.y)/2));var f=o(e,[a,l],i);e.animate({matrix:f},t)}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(1),i=r(n(73)),a=n(53),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,o.__extends)(t,e),t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,o.__assign)((0,o.__assign)({},t),{x:0,y:0,r:0})},t.prototype.isInStrokeOrPath=function(e,t,n,r,o){var i=this.attr(),l=i.x,c=i.y,s=i.r,u=o/2,d=(0,a.distance)(l,c,e,t);return r&&n?d<=s+u:r?d<=s:!!n&&d>=s-u&&d<=s+u},t.prototype.createPath=function(e){var t=this.attr(),n=t.x,r=t.y,o=t.r;e.beginPath(),e.arc(n,r,o,0,2*Math.PI,!1),e.closePath()},t}(i.default);t.default=l},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(1);function i(e,t,n,r){return e/(n*n)+t/(r*r)}var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,o.__extends)(t,e),t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,o.__assign)((0,o.__assign)({},t),{x:0,y:0,rx:0,ry:0})},t.prototype.isInStrokeOrPath=function(e,t,n,r,o){var a=this.attr(),l=o/2,c=a.x,s=a.y,u=a.rx,d=a.ry,f=(e-c)*(e-c),p=(t-s)*(t-s);return r&&n?i(f,p,u+l,d+l)<=1:r?i(f,p,u,d)<=1:!!n&&i(f,p,u-l,d-l)>=1&&i(f,p,u+l,d+l)<=1},t.prototype.createPath=function(e){var t=this.attr(),n=t.x,r=t.y,o=t.rx,i=t.ry;if(e.beginPath(),e.ellipse)e.ellipse(n,r,o,i,0,0,2*Math.PI,!1);else{var a=o>i?o:i,l=o>i?1:o/i,c=o>i?i/o:1;e.save(),e.translate(n,r),e.scale(l,c),e.arc(0,0,a,0,2*Math.PI),e.restore(),e.closePath()}},t}(r(n(73)).default);t.default=a},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(1),i=r(n(73)),a=n(53);function l(e){return e instanceof HTMLElement&&(0,a.isString)(e.nodeName)&&"CANVAS"===e.nodeName.toUpperCase()}var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,o.__extends)(t,e),t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,o.__assign)((0,o.__assign)({},t),{x:0,y:0,width:0,height:0})},t.prototype.initAttrs=function(e){this._setImage(e.img)},t.prototype.isStroke=function(){return!1},t.prototype.isOnlyHitBox=function(){return!0},t.prototype._afterLoading=function(){if(!0===this.get("toDraw")){var e=this.get("canvas");e?e.draw():this.createPath(this.get("context"))}},t.prototype._setImage=function(e){var t=this,n=this.attrs;if((0,a.isString)(e)){var r=new Image;r.onload=function(){if(t.destroyed)return!1;t.attr("img",r),t.set("loading",!1),t._afterLoading();var e=t.get("callback");e&&e.call(t)},r.crossOrigin="Anonymous",r.src=e,this.set("loading",!0)}else e instanceof Image?(n.width||(n.width=e.width),n.height||(n.height=e.height)):l(e)&&(n.width||(n.width=Number(e.getAttribute("width"))),n.height||(n.height,Number(e.getAttribute("height"))))},t.prototype.onAttrChange=function(t,n,r){e.prototype.onAttrChange.call(this,t,n,r),"img"===t&&this._setImage(n)},t.prototype.createPath=function(e){if(this.get("loading"))return this.set("toDraw",!0),void this.set("context",e);var t=this.attr(),n=t.x,r=t.y,o=t.width,i=t.height,c=t.sx,s=t.sy,u=t.swidth,d=t.sheight,f=t.img;(f instanceof Image||l(f))&&((0,a.isNil)(c)||(0,a.isNil)(s)||(0,a.isNil)(u)||(0,a.isNil)(d)?e.drawImage(f,n,r,o,i):e.drawImage(f,c,s,u,d,n,r,o,i))},t}(i.default);t.default=c},function(e,t,n){"use strict";var r=n(2),o=n(6);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(1),a=n(38),l=r(n(73)),c=r(n(190)),s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!==typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(r,a,l):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}(n(189));function u(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}var d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,i.__extends)(t,e),t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},t),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},t.prototype.initAttrs=function(e){this.setArrow()},t.prototype.onAttrChange=function(t,n,r){e.prototype.onAttrChange.call(this,t,n,r),this.setArrow()},t.prototype.setArrow=function(){var e=this.attr(),t=e.x1,n=e.y1,r=e.x2,o=e.y2,i=e.startArrow,a=e.endArrow;i&&s.addStartArrow(this,e,r,o,t,n),a&&s.addEndArrow(this,e,t,n,r,o)},t.prototype.isInStrokeOrPath=function(e,t,n,r,o){if(!n||!o)return!1;var i=this.attr(),a=i.x1,l=i.y1,s=i.x2,u=i.y2;return(0,c.default)(a,l,s,u,o,e,t)},t.prototype.createPath=function(e){var t=this.attr(),n=t.x1,r=t.y1,o=t.x2,i=t.y2,a=t.startArrow,l=t.endArrow,c={dx:0,dy:0},u={dx:0,dy:0};a&&a.d&&(c=s.getShortenOffset(n,r,o,i,t.startArrow.d)),l&&l.d&&(u=s.getShortenOffset(n,r,o,i,t.endArrow.d)),e.beginPath(),e.moveTo(n+c.dx,r+c.dy),e.lineTo(o-u.dx,i-u.dy)},t.prototype.afterDrawPath=function(e){var t=this.get("startArrowShape"),n=this.get("endArrowShape");t&&t.draw(e),n&&n.draw(e)},t.prototype.getTotalLength=function(){var e=this.attr(),t=e.x1,n=e.y1,r=e.x2,o=e.y2;return a.Line.length(t,n,r,o)},t.prototype.getPoint=function(e){var t=this.attr(),n=t.x1,r=t.y1,o=t.x2,i=t.y2;return a.Line.pointAt(n,r,o,i,e)},t}(l.default);t.default=d},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(1),i=n(0),a=n(88),l=r(n(73)),c=n(53),s=n(148),u={circle:function(e,t,n){return[["M",e-n,t],["A",n,n,0,1,0,e+n,t],["A",n,n,0,1,0,e-n,t]]},square:function(e,t,n){return[["M",e-n,t-n],["L",e+n,t-n],["L",e+n,t+n],["L",e-n,t+n],["Z"]]},diamond:function(e,t,n){return[["M",e-n,t],["L",e,t-n],["L",e+n,t],["L",e,t+n],["Z"]]},triangle:function(e,t,n){var r=n*Math.sin(1/3*Math.PI);return[["M",e-n,t+r],["L",e,t-r],["L",e+n,t+r],["Z"]]},"triangle-down":function(e,t,n){var r=n*Math.sin(1/3*Math.PI);return[["M",e-n,t-r],["L",e+n,t-r],["L",e,t+r],["Z"]]}},d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,o.__extends)(t,e),t.prototype.initAttrs=function(e){this._resetParamsCache()},t.prototype._resetParamsCache=function(){this.set("paramsCache",{})},t.prototype.onAttrChange=function(t,n,r){e.prototype.onAttrChange.call(this,t,n,r),-1!==["symbol","x","y","r","radius"].indexOf(t)&&this._resetParamsCache()},t.prototype.isOnlyHitBox=function(){return!0},t.prototype._getR=function(e){return(0,i.isNil)(e.r)?e.radius:e.r},t.prototype._getPath=function(){var e,n,r=this.attr(),o=r.x,i=r.y,l=r.symbol||"circle",s=this._getR(r);if((0,c.isFunction)(l))n=(e=l)(o,i,s),n=(0,a.path2Absolute)(n);else{if(!(e=t.Symbols[l]))return console.warn(l+" marker is not supported."),null;n=e(o,i,s)}return n},t.prototype.createPath=function(e){var t=this._getPath(),n=this.get("paramsCache");(0,s.drawPath)(this,e,{path:t},n)},t.Symbols=u,t}(l.default);t.default=d},function(e,t,n){"use strict";var r=n(2),o=n(6);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(1),a=n(38),l=n(0),c=r(n(73)),s=n(88),u=n(148),d=r(n(458)),f=r(n(459)),p=r(n(963)),h=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!==typeof e)return{default:e};var n=g(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(r,a,l):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}(n(189));function g(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(g=function(e){return e?n:t})(e)}function v(e,t,n){for(var r=!1,o=0;o<e.length;o++){var i=e[o];if(r=(0,f.default)(i,t,n))break}return r}var m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,i.__extends)(t,e),t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},t),{startArrow:!1,endArrow:!1})},t.prototype.initAttrs=function(e){this._setPathArr(e.path),this.setArrow()},t.prototype.onAttrChange=function(t,n,r){e.prototype.onAttrChange.call(this,t,n,r),"path"===t&&this._setPathArr(n),this.setArrow()},t.prototype._setPathArr=function(e){this.attrs.path=(0,s.path2Absolute)(e);var t=p.default.hasArc(e);this.set("hasArc",t),this.set("paramsCache",{}),this.set("segments",null),this.set("curve",null),this.set("tCache",null),this.set("totalLength",null)},t.prototype.getSegments=function(){var e=this.get("segements");return e||(e=(0,s.path2Segments)(this.attr("path")),this.set("segments",e)),e},t.prototype.setArrow=function(){var e=this.attr(),t=e.startArrow,n=e.endArrow;if(t){var r=this.getStartTangent();h.addStartArrow(this,e,r[0][0],r[0][1],r[1][0],r[1][1])}n&&(r=this.getEndTangent(),h.addEndArrow(this,e,r[0][0],r[0][1],r[1][0],r[1][1]))},t.prototype.isInStrokeOrPath=function(e,t,n,r,o){var i=this.getSegments(),a=this.get("hasArc"),l=!1;if(n){var c=this.getTotalLength();l=p.default.isPointInStroke(i,o,e,t,c)}if(!l&&r)if(a)l=(0,d.default)(this,e,t);else{var s=this.attr("path"),u=p.default.extractPolygons(s);l=v(u.polygons,e,t)||v(u.polylines,e,t)}return l},t.prototype.createPath=function(e){var t=this.attr(),n=this.get("paramsCache");(0,u.drawPath)(this,e,t,n)},t.prototype.afterDrawPath=function(e){var t=this.get("startArrowShape"),n=this.get("endArrowShape");t&&t.draw(e),n&&n.draw(e)},t.prototype.getTotalLength=function(){var e=this.get("totalLength");return(0,l.isNil)(e)?(this._calculateCurve(),this._setTcache(),this.get("totalLength")):e},t.prototype.getPoint=function(e){var t,n,r=this.get("tCache");r||(this._calculateCurve(),this._setTcache(),r=this.get("tCache"));var o=this.get("curve");if(!r||0===r.length)return o?{x:o[0][1],y:o[0][2]}:null;(0,l.each)(r,(function(r,o){e>=r[0]&&e<=r[1]&&(t=(e-r[0])/(r[1]-r[0]),n=o)}));var i=o[n];if((0,l.isNil)(i)||(0,l.isNil)(n))return null;var c=i.length,s=o[n+1];return a.Cubic.pointAt(i[c-2],i[c-1],s[1],s[2],s[3],s[4],s[5],s[6],t)},t.prototype._calculateCurve=function(){var e=this.attr().path;this.set("curve",p.default.pathToCurve(e))},t.prototype._setTcache=function(){var e,t,n,r,o=0,i=0,c=[],s=this.get("curve");s&&((0,l.each)(s,(function(e,t){n=s[t+1],r=e.length,n&&(o+=a.Cubic.length(e[r-2],e[r-1],n[1],n[2],n[3],n[4],n[5],n[6])||0)})),this.set("totalLength",o),0!==o?((0,l.each)(s,(function(l,u){n=s[u+1],r=l.length,n&&((e=[])[0]=i/o,t=a.Cubic.length(l[r-2],l[r-1],n[1],n[2],n[3],n[4],n[5],n[6]),i+=t||0,e[1]=i/o,c.push(e))})),this.set("tCache",c)):this.set("tCache",[]))},t.prototype.getStartTangent=function(){var e,t=this.getSegments();if(t.length>1){var n=t[0].currentPoint,r=t[1].currentPoint,o=t[1].startTangent;e=[],o?(e.push([n[0]-o[0],n[1]-o[1]]),e.push([n[0],n[1]])):(e.push([r[0],r[1]]),e.push([n[0],n[1]]))}return e},t.prototype.getEndTangent=function(){var e,t=this.getSegments(),n=t.length;if(n>1){var r=t[n-2].currentPoint,o=t[n-1].currentPoint,i=t[n-1].endTangent;e=[],i?(e.push([o[0]-i[0],o[1]-i[1]]),e.push([o[0],o[1]])):(e.push([r[0],r[1]]),e.push([o[0],o[1]]))}return e},t}(c.default);t.default=m},function(e,t,n){"use strict";var r=n(2),o=n(6);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(1),a=n(26),l=n(38),c=n(32),s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!==typeof e)return{default:e};var n=p(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(r,a,l):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}(n(171)),u=n(53),d=r(n(190)),f=r(n(460));function p(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(p=function(e){return e?n:t})(e)}var h=c.ext.transform;t.default=(0,i.__assign)({hasArc:function(e){for(var t=!1,n=e.length,r=0;r<n;r++){var o=e[r][0];if("C"===o||"A"===o||"Q"===o){t=!0;break}}return t},extractPolygons:function(e){for(var t=e.length,n=[],r=[],o=[],i=0;i<t;i++){var a=e[i],l=a[0];"M"===l?(o.length&&(r.push(o),o=[]),o.push([a[1],a[2]])):"Z"===l?o.length&&(n.push(o),o=[]):o.push([a[1],a[2]])}return o.length>0&&r.push(o),{polygons:n,polylines:r}},isPointInStroke:function(e,t,n,r,o){for(var i=!1,a=t/2,c=0;c<e.length;c++){var p=e[c],g=p.currentPoint,v=p.params,m=p.prePoint,y=p.box;if(!y||(0,u.inBox)(y.x-a,y.y-a,y.width+t,y.height+t,n,r)){switch(p.command){case"L":case"Z":i=(0,d.default)(m[0],m[1],g[0],g[1],t,n,r);break;case"Q":i=l.Quad.pointDistance(m[0],m[1],v[1],v[2],v[3],v[4],n,r)<=t/2;break;case"C":i=l.Cubic.pointDistance(m[0],m[1],v[1],v[2],v[3],v[4],v[5],v[6],n,r,o)<=t/2;break;case"A":var b=p.arcParams,x=b.cx,w=b.cy,S=b.rx,O=b.ry,_=b.startAngle,C=b.endAngle,E=b.xRotation,P=[n,r,1],M=S>O?S:O,k=h(null,[["t",-x,-w],["r",-E],["s",1/(S>O?1:S/O),1/(S>O?O/S:1)]]);s.transformMat3(P,P,k),i=(0,f.default)(0,0,M,_,C,t,P[0],P[1])}if(i)break}}return i}},a.PathUtil)},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(1),i=r(n(73)),a=r(n(461)),l=r(n(459)),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,o.__extends)(t,e),t.prototype.isInStrokeOrPath=function(e,t,n,r,o){var i=this.attr().points,c=!1;return n&&(c=(0,a.default)(i,o,e,t,!0)),!c&&r&&(c=(0,l.default)(i,e,t)),c},t.prototype.createPath=function(e){var t=this.attr().points;if(!(t.length<2)){e.beginPath();for(var n=0;n<t.length;n++){var r=t[n];0===n?e.moveTo(r[0],r[1]):e.lineTo(r[0],r[1])}e.closePath()}},t}(i.default);t.default=c},function(e,t,n){"use strict";var r=n(2),o=n(6);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(1),a=n(38),l=n(0),c=r(n(73)),s=r(n(461)),u=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!==typeof e)return{default:e};var n=d(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(r,a,l):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}(n(189));function d(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(d=function(e){return e?n:t})(e)}var f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,i.__extends)(t,e),t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},t),{startArrow:!1,endArrow:!1})},t.prototype.initAttrs=function(e){this.setArrow()},t.prototype.onAttrChange=function(t,n,r){e.prototype.onAttrChange.call(this,t,n,r),this.setArrow(),-1!==["points"].indexOf(t)&&this._resetCache()},t.prototype._resetCache=function(){this.set("totalLength",null),this.set("tCache",null)},t.prototype.setArrow=function(){var e=this.attr(),t=this.attrs,n=t.points,r=t.startArrow,o=t.endArrow,i=n.length,a=n[0][0],l=n[0][1],c=n[i-1][0],s=n[i-1][1];r&&u.addStartArrow(this,e,n[1][0],n[1][1],a,l),o&&u.addEndArrow(this,e,n[i-2][0],n[i-2][1],c,s)},t.prototype.isFill=function(){return!1},t.prototype.isInStrokeOrPath=function(e,t,n,r,o){if(!n||!o)return!1;var i=this.attr().points;return(0,s.default)(i,o,e,t,!1)},t.prototype.isStroke=function(){return!0},t.prototype.createPath=function(e){var t=this.attr(),n=t.points,r=t.startArrow,o=t.endArrow,i=n.length;if(!(n.length<2)){var a,l=n[0][0],c=n[0][1],s=n[i-1][0],d=n[i-1][1];r&&r.d&&(l+=(a=u.getShortenOffset(l,c,n[1][0],n[1][1],r.d)).dx,c+=a.dy),o&&o.d&&(s-=(a=u.getShortenOffset(n[i-2][0],n[i-2][1],s,d,o.d)).dx,d-=a.dy),e.beginPath(),e.moveTo(l,c);for(var f=0;f<i-1;f++){var p=n[f];e.lineTo(p[0],p[1])}e.lineTo(s,d)}},t.prototype.afterDrawPath=function(e){var t=this.get("startArrowShape"),n=this.get("endArrowShape");t&&t.draw(e),n&&n.draw(e)},t.prototype.getTotalLength=function(){var e=this.attr().points,t=this.get("totalLength");return(0,l.isNil)(t)?(this.set("totalLength",a.Polyline.length(e)),this.get("totalLength")):t},t.prototype.getPoint=function(e){var t,n,r=this.attr().points,o=this.get("tCache");return o||(this._setTcache(),o=this.get("tCache")),(0,l.each)(o,(function(r,o){e>=r[0]&&e<=r[1]&&(t=(e-r[0])/(r[1]-r[0]),n=o)})),a.Line.pointAt(r[n][0],r[n][1],r[n+1][0],r[n+1][1],t)},t.prototype._setTcache=function(){var e=this.attr().points;if(e&&0!==e.length){var t=this.getTotalLength();if(!(t<=0)){var n,r,o=0,i=[];(0,l.each)(e,(function(l,c){e[c+1]&&((n=[])[0]=o/t,r=a.Line.length(l[0],l[1],e[c+1][0],e[c+1][1]),o+=r,n[1]=o/t,i.push(n))})),this.set("tCache",i)}}},t.prototype.getStartTangent=function(){var e=this.attr().points,t=[];return t.push([e[1][0],e[1][1]]),t.push([e[0][0],e[0][1]]),t},t.prototype.getEndTangent=function(){var e=this.attr().points,t=e.length-1,n=[];return n.push([e[t-1][0],e[t-1][1]]),n.push([e[t][0],e[t][1]]),n},t}(c.default);t.default=f},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(1),i=r(n(73)),a=n(456),l=n(53),c=r(n(967)),s=r(n(968)),u=r(n(458)),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,o.__extends)(t,e),t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,o.__assign)((0,o.__assign)({},t),{x:0,y:0,width:0,height:0,radius:0})},t.prototype.isInStrokeOrPath=function(e,t,n,r,o){var i=this.attr(),a=i.x,d=i.y,f=i.width,p=i.height,h=i.radius;if(h){var g=!1;return n&&(g=(0,s.default)(a,d,f,p,h,o,e,t)),!g&&r&&(g=(0,u.default)(this,e,t)),g}var v=o/2;return r&&n?(0,l.inBox)(a-v,d-v,f+v,p+v,e,t):r?(0,l.inBox)(a,d,f,p,e,t):n?(0,c.default)(a,d,f,p,o,e,t):void 0},t.prototype.createPath=function(e){var t=this.attr(),n=t.x,r=t.y,o=t.width,i=t.height,l=t.radius;if(e.beginPath(),0===l)e.rect(n,r,o,i);else{var c=(0,a.parseRadius)(l),s=c[0],u=c[1],d=c[2],f=c[3];e.moveTo(n+s,r),e.lineTo(n+o-u,r),0!==u&&e.arc(n+o-u,r+u,u,-Math.PI/2,0),e.lineTo(n+o,r+i-d),0!==d&&e.arc(n+o-d,r+i-d,d,0,Math.PI/2),e.lineTo(n+f,r+i),0!==f&&e.arc(n+f,r+i-f,f,Math.PI/2,Math.PI),e.lineTo(n,r+s),0!==s&&e.arc(n+s,r+s,s,Math.PI,1.5*Math.PI),e.closePath()}},t}(i.default);t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,o,i,a,l){var c=i/2;return(0,r.inBox)(e-c,t-c,n,i,a,l)||(0,r.inBox)(e+n-c,t-c,i,o,a,l)||(0,r.inBox)(e+c,t+o-c,n,i,a,l)||(0,r.inBox)(e-c,t+c,i,o,a,l)};var r=n(53)},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,r,a,l,c,s){return(0,o.default)(e+a,t,e+n-a,t,l,c,s)||(0,o.default)(e+n,t+a,e+n,t+r-a,l,c,s)||(0,o.default)(e+n-a,t+r,e+a,t+r,l,c,s)||(0,o.default)(e,t+r-a,e,t+a,l,c,s)||(0,i.default)(e+n-a,t+a,a,1.5*Math.PI,2*Math.PI,l,c,s)||(0,i.default)(e+n-a,t+r-a,a,0,.5*Math.PI,l,c,s)||(0,i.default)(e+a,t+r-a,a,.5*Math.PI,Math.PI,l,c,s)||(0,i.default)(e+a,t+a,a,Math.PI,1.5*Math.PI,l,c,s)};var o=r(n(190)),i=r(n(460))},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(1),i=r(n(73)),a=n(53),l=n(26),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,o.__extends)(t,e),t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,o.__assign)((0,o.__assign)({},t),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},t.prototype.isOnlyHitBox=function(){return!0},t.prototype.initAttrs=function(e){this._assembleFont(),e.text&&this._setText(e.text)},t.prototype._assembleFont=function(){var e=this.attrs;e.font=(0,l.assembleFont)(e)},t.prototype._setText=function(e){var t=null;(0,a.isString)(e)&&-1!==e.indexOf("\n")&&(t=e.split("\n")),this.set("textArr",t)},t.prototype.onAttrChange=function(t,n,r){e.prototype.onAttrChange.call(this,t,n,r),t.startsWith("font")&&this._assembleFont(),"text"===t&&this._setText(n)},t.prototype._getSpaceingY=function(){var e=this.attrs,t=e.lineHeight,n=1*e.fontSize;return t?t-n:.14*n},t.prototype._drawTextArr=function(e,t,n){var r,o=this.attrs,i=o.textBaseline,c=o.x,s=o.y,u=1*o.fontSize,d=this._getSpaceingY(),f=(0,l.getTextHeight)(o.text,o.fontSize,o.lineHeight);(0,a.each)(t,(function(t,o){r=s+o*(d+u)-f+u,"middle"===i&&(r+=f-u-(f-u)/2),"top"===i&&(r+=f-u),(0,a.isNil)(t)||(n?e.fillText(t,c,r):e.strokeText(t,c,r))}))},t.prototype._drawText=function(e,t){var n=this.attr(),r=n.x,o=n.y,i=this.get("textArr");if(i)this._drawTextArr(e,i,t);else{var l=n.text;(0,a.isNil)(l)||(t?e.fillText(l,r,o):e.strokeText(l,r,o))}},t.prototype.strokeAndFill=function(e){var t=this.attrs,n=t.lineWidth,r=t.opacity,o=t.strokeOpacity,i=t.fillOpacity;this.isStroke()&&n>0&&((0,a.isNil)(o)||1===o||(e.globalAlpha=r),this.stroke(e)),this.isFill()&&((0,a.isNil)(i)||1===i?this.fill(e):(e.globalAlpha=i,this.fill(e),e.globalAlpha=r)),this.afterDrawPath(e)},t.prototype.fill=function(e){this._drawText(e,!0)},t.prototype.stroke=function(e){this._drawText(e,!1)},t}(i.default);t.default=c},function(e,t,n){"use strict";var r=n(2),o=n(6);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(1),a=n(26),l=n(971),c=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!==typeof e)return{default:e};var n=f(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(r,a,l):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}(n(147)),s=r(n(272)),u=n(53),d=n(148);function f(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(f=function(e){return e?n:t})(e)}var p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,i.__extends)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return t.renderer="canvas",t.autoDraw=!0,t.localRefresh=!0,t.refreshElements=[],t.clipView=!0,t.quickHit=!1,t},t.prototype.onCanvasChange=function(e){"attr"!==e&&"sort"!==e&&"changeSize"!==e||(this.set("refreshElements",[this]),this.draw())},t.prototype.getShapeBase=function(){return c},t.prototype.getGroupBase=function(){return s.default},t.prototype.getPixelRatio=function(){var e=this.get("pixelRatio")||(0,u.getPixelRatio)();return e>=1?Math.ceil(e):1},t.prototype.getViewRange=function(){return{minX:0,minY:0,maxX:this.cfg.width,maxY:this.cfg.height}},t.prototype.createDom=function(){var e=document.createElement("canvas"),t=e.getContext("2d");return this.set("context",t),e},t.prototype.setDOMSize=function(t,n){e.prototype.setDOMSize.call(this,t,n);var r=this.get("context"),o=this.get("el"),i=this.getPixelRatio();o.width=i*t,o.height=i*n,i>1&&r.scale(i,i)},t.prototype.clear=function(){e.prototype.clear.call(this),this._clearFrame();var t=this.get("context"),n=this.get("el");t.clearRect(0,0,n.width,n.height)},t.prototype.getShape=function(t,n){return this.get("quickHit")?(0,l.getShape)(this,t,n):e.prototype.getShape.call(this,t,n,null)},t.prototype._getRefreshRegion=function(){var e,t=this.get("refreshElements"),n=this.getViewRange();return t.length&&t[0]===this?e=n:(e=(0,d.getMergedRegion)(t))&&(e.minX=Math.floor(e.minX),e.minY=Math.floor(e.minY),e.maxX=Math.ceil(e.maxX),e.maxY=Math.ceil(e.maxY),e.maxY+=1,this.get("clipView")&&(e=(0,d.mergeView)(e,n))),e},t.prototype.refreshElement=function(e){this.get("refreshElements").push(e)},t.prototype._clearFrame=function(){var e=this.get("drawFrame");e&&((0,u.clearAnimationFrame)(e),this.set("drawFrame",null),this.set("refreshElements",[]))},t.prototype.draw=function(){var e=this.get("drawFrame");this.get("autoDraw")&&e||this._startDraw()},t.prototype._drawAll=function(){var e=this.get("context"),t=this.get("el"),n=this.getChildren();e.clearRect(0,0,t.width,t.height),(0,d.applyAttrsToContext)(e,this),(0,d.drawChildren)(e,n),this.set("refreshElements",[])},t.prototype._drawRegion=function(){var e=this.get("context"),t=this.get("refreshElements"),n=this.getChildren(),r=this._getRefreshRegion();r?(e.clearRect(r.minX,r.minY,r.maxX-r.minX,r.maxY-r.minY),e.save(),e.beginPath(),e.rect(r.minX,r.minY,r.maxX-r.minX,r.maxY-r.minY),e.clip(),(0,d.applyAttrsToContext)(e,this),(0,d.checkRefresh)(this,n,r),(0,d.drawChildren)(e,n,r),e.restore()):t.length&&(0,d.clearChanged)(t),(0,u.each)(t,(function(e){e.get("hasChanged")&&e.set("hasChanged",!1)})),this.set("refreshElements",[])},t.prototype._startDraw=function(){var e=this,t=this.get("drawFrame");t||(t=(0,u.requestAnimationFrame)((function(){e.get("localRefresh")?e._drawRegion():e._drawAll(),e.set("drawFrame",null)})),this.set("drawFrame",t))},t.prototype.skipDraw=function(){},t.prototype.removeDom=function(){var e=this.get("el");e.width=0,e.height=0,e.parentNode.removeChild(e)},t}(a.AbstractCanvas);t.default=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getShape=function e(t,n,r){if(!i(t,n,r))return null;for(var a=null,l=t.getChildren(),c=l.length-1;c>=0;c--){var s=l[c];if(s.isGroup())a=e(s,n,r);else if(i(s,n,r)){var u=s,d=o(s,n,r),f=d[0],p=d[1];u.isInShape(f,p)&&(a=s)}if(a)break}return a};var r=n(26);function o(e,t,n){var o=e.getTotalMatrix();if(o){var i=function(e,t){if(t){var n=(0,r.invert)(t);return(0,r.multiplyVec2)(n,e)}return e}([t,n,1],o);return[i[0],i[1]]}return[t,n]}function i(e,t,n){if(e.isCanvas&&e.isCanvas())return!0;if(!(0,r.isAllowCapture)(e)||!1===e.cfg.isInView)return!1;if(e.cfg.clipShape){var i=o(e,t,n),a=i[0],l=i[1];if(e.isClipped(a,l))return!1}var c=e.cfg.cacheCanvasBBox||e.getCanvasBBox();return t>=c.minX&&t<=c.maxX&&n>=c.minY&&n<=c.maxY}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(1),i=n(0),a=n(54),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="circle",t.canFill=!0,t.canStroke=!0,t}return(0,o.__extends)(t,e),t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,o.__assign)((0,o.__assign)({},t),{x:0,y:0,r:0})},t.prototype.createPath=function(e,t){var n=this.attr(),r=this.get("el");(0,i.each)(t||n,(function(e,t){"x"===t||"y"===t?r.setAttribute("c"+t,e):a.SVG_ATTR_MAP[t]&&r.setAttribute(a.SVG_ATTR_MAP[t],e)}))},t}(r(n(63)).default);t.default=l},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(1),i=n(0),a=n(54),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dom",t.canFill=!1,t.canStroke=!1,t}return(0,o.__extends)(t,e),t.prototype.createPath=function(e,t){var n=this.attr(),r=this.get("el");if((0,i.each)(t||n,(function(e,t){a.SVG_ATTR_MAP[t]&&r.setAttribute(a.SVG_ATTR_MAP[t],e)})),"function"===typeof n.html){var o=n.html.call(this,n);if(o instanceof Element||o instanceof HTMLDocument){for(var l=r.childNodes,c=l.length-1;c>=0;c--)r.removeChild(l[c]);r.appendChild(o)}else r.innerHTML=o}else r.innerHTML=n.html},t}(r(n(63)).default);t.default=l},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(1),i=n(0),a=n(54),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="ellipse",t.canFill=!0,t.canStroke=!0,t}return(0,o.__extends)(t,e),t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,o.__assign)((0,o.__assign)({},t),{x:0,y:0,rx:0,ry:0})},t.prototype.createPath=function(e,t){var n=this.attr(),r=this.get("el");(0,i.each)(t||n,(function(e,t){"x"===t||"y"===t?r.setAttribute("c"+t,e):a.SVG_ATTR_MAP[t]&&r.setAttribute(a.SVG_ATTR_MAP[t],e)}))},t}(r(n(63)).default);t.default=l},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(1),i=n(0),a=n(54),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="image",t.canFill=!1,t.canStroke=!1,t}return(0,o.__extends)(t,e),t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,o.__assign)((0,o.__assign)({},t),{x:0,y:0,width:0,height:0})},t.prototype.createPath=function(e,t){var n=this,r=this.attr(),o=this.get("el");(0,i.each)(t||r,(function(e,t){"img"===t?n._setImage(r.img):a.SVG_ATTR_MAP[t]&&o.setAttribute(a.SVG_ATTR_MAP[t],e)}))},t.prototype.setAttr=function(e,t){this.attrs[e]=t,"img"===e&&this._setImage(t)},t.prototype._setImage=function(e){var t=this.attr(),n=this.get("el");if((0,i.isString)(e))n.setAttribute("href",e);else if(e instanceof window.Image)t.width||(n.setAttribute("width",e.width),this.attr("width",e.width)),t.height||(n.setAttribute("height",e.height),this.attr("height",e.height)),n.setAttribute("href",e.src);else if(e instanceof HTMLElement&&(0,i.isString)(e.nodeName)&&"CANVAS"===e.nodeName.toUpperCase())n.setAttribute("href",e.toDataURL());else if(e instanceof ImageData){var r=document.createElement("canvas");r.setAttribute("width",""+e.width),r.setAttribute("height",""+e.height),r.getContext("2d").putImageData(e,0,0),t.width||(n.setAttribute("width",""+e.width),this.attr("width",e.width)),t.height||(n.setAttribute("height",""+e.height),this.attr("height",e.height)),n.setAttribute("href",r.toDataURL())}},t}(r(n(63)).default);t.default=l},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(1),i=n(38),a=n(0),l=n(54),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="line",t.canFill=!1,t.canStroke=!0,t}return(0,o.__extends)(t,e),t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,o.__assign)((0,o.__assign)({},t),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},t.prototype.createPath=function(e,t){var n=this.attr(),r=this.get("el");(0,a.each)(t||n,(function(t,o){if("startArrow"===o||"endArrow"===o)if(t){var i=(0,a.isObject)(t)?e.addArrow(n,l.SVG_ATTR_MAP[o]):e.getDefaultArrow(n,l.SVG_ATTR_MAP[o]);r.setAttribute(l.SVG_ATTR_MAP[o],"url(#"+i+")")}else r.removeAttribute(l.SVG_ATTR_MAP[o]);else l.SVG_ATTR_MAP[o]&&r.setAttribute(l.SVG_ATTR_MAP[o],t)}))},t.prototype.getTotalLength=function(){var e=this.attr(),t=e.x1,n=e.y1,r=e.x2,o=e.y2;return i.Line.length(t,n,r,o)},t.prototype.getPoint=function(e){var t=this.attr(),n=t.x1,r=t.y1,o=t.x2,a=t.y2;return i.Line.pointAt(n,r,o,a,e)},t}(r(n(63)).default);t.default=c},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(1),i=n(0),a=r(n(63)),l=r(n(978)),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="marker",t.canFill=!0,t.canStroke=!0,t}return(0,o.__extends)(t,e),t.prototype.createPath=function(e){this.get("el").setAttribute("d",this._assembleMarker())},t.prototype._assembleMarker=function(){var e=this._getPath();return(0,i.isArray)(e)?e.map((function(e){return e.join(" ")})).join(""):e},t.prototype._getPath=function(){var e,t=this.attr(),n=t.x,r=t.y,o=t.r||t.radius,a=t.symbol||"circle";return(e=(0,i.isFunction)(a)?a:l.default.get(a))?e(n,r,o):(console.warn(e+" symbol is not exist."),null)},t.symbolsFactory=l.default,t}(a.default);t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={circle:function(e,t,n){return[["M",e,t],["m",-n,0],["a",n,n,0,1,0,2*n,0],["a",n,n,0,1,0,2*-n,0]]},square:function(e,t,n){return[["M",e-n,t-n],["L",e+n,t-n],["L",e+n,t+n],["L",e-n,t+n],["Z"]]},diamond:function(e,t,n){return[["M",e-n,t],["L",e,t-n],["L",e+n,t],["L",e,t+n],["Z"]]},triangle:function(e,t,n){var r=n*Math.sin(1/3*Math.PI);return[["M",e-n,t+r],["L",e,t-r],["L",e+n,t+r],["z"]]},triangleDown:function(e,t,n){var r=n*Math.sin(1/3*Math.PI);return[["M",e-n,t-r],["L",e+n,t-r],["L",e,t+r],["Z"]]}};t.default={get:function(e){return r[e]},register:function(e,t){r[e]=t},remove:function(e){delete r[e]},getAll:function(){return r}}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(1),i=n(0),a=n(54),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="path",t.canFill=!0,t.canStroke=!0,t}return(0,o.__extends)(t,e),t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,o.__assign)((0,o.__assign)({},t),{startArrow:!1,endArrow:!1})},t.prototype.createPath=function(e,t){var n=this,r=this.attr(),o=this.get("el");(0,i.each)(t||r,(function(t,l){if("path"===l&&(0,i.isArray)(t))o.setAttribute("d",n._formatPath(t));else if("startArrow"===l||"endArrow"===l)if(t){var c=(0,i.isObject)(t)?e.addArrow(r,a.SVG_ATTR_MAP[l]):e.getDefaultArrow(r,a.SVG_ATTR_MAP[l]);o.setAttribute(a.SVG_ATTR_MAP[l],"url(#"+c+")")}else o.removeAttribute(a.SVG_ATTR_MAP[l]);else a.SVG_ATTR_MAP[l]&&o.setAttribute(a.SVG_ATTR_MAP[l],t)}))},t.prototype._formatPath=function(e){var t=e.map((function(e){return e.join(" ")})).join("");return~t.indexOf("NaN")?"":t},t.prototype.getTotalLength=function(){var e=this.get("el");return e?e.getTotalLength():null},t.prototype.getPoint=function(e){var t=this.get("el"),n=this.getTotalLength();if(0===n)return null;var r=t?t.getPointAtLength(e*n):null;return r?{x:r.x,y:r.y}:null},t}(r(n(63)).default);t.default=l},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(1),i=n(0),a=n(54),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="polygon",t.canFill=!0,t.canStroke=!0,t}return(0,o.__extends)(t,e),t.prototype.createPath=function(e,t){var n=this.attr(),r=this.get("el");(0,i.each)(t||n,(function(e,t){"points"===t&&(0,i.isArray)(e)&&e.length>=2?r.setAttribute("points",e.map((function(e){return e[0]+","+e[1]})).join(" ")):a.SVG_ATTR_MAP[t]&&r.setAttribute(a.SVG_ATTR_MAP[t],e)}))},t}(r(n(63)).default);t.default=l},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(1),i=n(38),a=n(0),l=n(54),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="polyline",t.canFill=!0,t.canStroke=!0,t}return(0,o.__extends)(t,e),t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,o.__assign)((0,o.__assign)({},t),{startArrow:!1,endArrow:!1})},t.prototype.onAttrChange=function(t,n,r){e.prototype.onAttrChange.call(this,t,n,r),-1!==["points"].indexOf(t)&&this._resetCache()},t.prototype._resetCache=function(){this.set("totalLength",null),this.set("tCache",null)},t.prototype.createPath=function(e,t){var n=this.attr(),r=this.get("el");(0,a.each)(t||n,(function(e,t){"points"===t&&(0,a.isArray)(e)&&e.length>=2?r.setAttribute("points",e.map((function(e){return e[0]+","+e[1]})).join(" ")):l.SVG_ATTR_MAP[t]&&r.setAttribute(l.SVG_ATTR_MAP[t],e)}))},t.prototype.getTotalLength=function(){var e=this.attr().points,t=this.get("totalLength");return(0,a.isNil)(t)?(this.set("totalLength",i.Polyline.length(e)),this.get("totalLength")):t},t.prototype.getPoint=function(e){var t,n,r=this.attr().points,o=this.get("tCache");return o||(this._setTcache(),o=this.get("tCache")),(0,a.each)(o,(function(r,o){e>=r[0]&&e<=r[1]&&(t=(e-r[0])/(r[1]-r[0]),n=o)})),i.Line.pointAt(r[n][0],r[n][1],r[n+1][0],r[n+1][1],t)},t.prototype._setTcache=function(){var e=this.attr().points;if(e&&0!==e.length){var t=this.getTotalLength();if(!(t<=0)){var n,r,o=0,l=[];(0,a.each)(e,(function(a,c){e[c+1]&&((n=[])[0]=o/t,r=i.Line.length(a[0],a[1],e[c+1][0],e[c+1][1]),o+=r,n[1]=o/t,l.push(n))})),this.set("tCache",l)}}},t.prototype.getStartTangent=function(){var e=this.attr().points,t=[];return t.push([e[1][0],e[1][1]]),t.push([e[0][0],e[0][1]]),t},t.prototype.getEndTangent=function(){var e=this.attr().points,t=e.length-1,n=[];return n.push([e[t-1][0],e[t-1][1]]),n.push([e[t][0],e[t][1]]),n},t}(r(n(63)).default);t.default=c},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(1),i=n(0),a=r(n(63)),l=n(54),c=n(983),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="rect",t.canFill=!0,t.canStroke=!0,t}return(0,o.__extends)(t,e),t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,o.__assign)((0,o.__assign)({},t),{x:0,y:0,width:0,height:0,radius:0})},t.prototype.createPath=function(e,t){var n=this,r=this.attr(),o=this.get("el"),a=!1,c=["x","y","width","height","radius"];(0,i.each)(t||r,(function(e,t){-1===c.indexOf(t)||a?-1===c.indexOf(t)&&l.SVG_ATTR_MAP[t]&&o.setAttribute(l.SVG_ATTR_MAP[t],e):(o.setAttribute("d",n._assembleRect(r)),a=!0)}))},t.prototype._assembleRect=function(e){var t=e.x,n=e.y,r=e.width,o=e.height,a=e.radius;if(!a)return"M "+t+","+n+" l "+r+",0 l 0,"+o+" l"+-r+" 0 z";var l=(0,c.parseRadius)(a);return(0,i.isArray)(a)?1===a.length?l.r1=l.r2=l.r3=l.r4=a[0]:2===a.length?(l.r1=l.r3=a[0],l.r2=l.r4=a[1]):3===a.length?(l.r1=a[0],l.r2=l.r4=a[1],l.r3=a[2]):(l.r1=a[0],l.r2=a[1],l.r3=a[2],l.r4=a[3]):l.r1=l.r2=l.r3=l.r4=a,[["M "+(t+l.r1)+","+n],["l "+(r-l.r1-l.r2)+",0"],["a "+l.r2+","+l.r2+",0,0,1,"+l.r2+","+l.r2],["l 0,"+(o-l.r2-l.r3)],["a "+l.r3+","+l.r3+",0,0,1,"+-l.r3+","+l.r3],["l "+(l.r3+l.r4-r)+",0"],["a "+l.r4+","+l.r4+",0,0,1,"+-l.r4+","+-l.r4],["l 0,"+(l.r4+l.r1-o)],["a "+l.r1+","+l.r1+",0,0,1,"+l.r1+","+-l.r1],["z"]].join(" ")},t}(a.default);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parsePath=function(e){return e=e||[],(0,r.isArray)(e)?e:(0,r.isString)(e)?(e=e.match(o),(0,r.each)(e,(function(t,n){if((t=t.match(i))[0].length>1){var o=t[0].charAt(0);t.splice(1,0,t[0].substr(1)),t[0]=o}(0,r.each)(t,(function(e,n){isNaN(e)||(t[n]=+e)})),e[n]=t})),e):void 0},t.parseRadius=function(e){var t=0,n=0,o=0,i=0;return(0,r.isArray)(e)?1===e.length?t=n=o=i=e[0]:2===e.length?(t=o=e[0],n=i=e[1]):3===e.length?(t=e[0],n=i=e[1],o=e[2]):(t=e[0],n=e[1],o=e[2],i=e[3]):t=n=o=i=e,{r1:t,r2:n,r3:o,r4:i}};var r=n(0),o=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,i=/[^\s,]+/gi},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(1),i=n(0),a=n(241),l=n(149),c=n(54),s=r(n(63)),u={top:"before-edge",middle:"central",bottom:"after-edge",alphabetic:"baseline",hanging:"hanging"},d={top:"text-before-edge",middle:"central",bottom:"text-after-edge",alphabetic:"alphabetic",hanging:"hanging"},f={left:"left",start:"left",center:"middle",right:"end",end:"end"},p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="text",t.canFill=!0,t.canStroke=!0,t}return(0,o.__extends)(t,e),t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,o.__assign)((0,o.__assign)({},t),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},t.prototype.createPath=function(e,t){var n=this,r=this.attr(),o=this.get("el");this._setFont(),(0,i.each)(t||r,(function(e,t){"text"===t?n._setText(""+e):"matrix"===t&&e?(0,l.setTransform)(n):c.SVG_ATTR_MAP[t]&&o.setAttribute(c.SVG_ATTR_MAP[t],e)})),o.setAttribute("paint-order","stroke"),o.setAttribute("style","stroke-linecap:butt; stroke-linejoin:miter;")},t.prototype._setFont=function(){var e=this.get("el"),t=this.attr(),n=t.textBaseline,r=t.textAlign,o=(0,a.detect)();o&&"firefox"===o.name?e.setAttribute("dominant-baseline",d[n]||"alphabetic"):e.setAttribute("alignment-baseline",u[n]||"baseline"),e.setAttribute("text-anchor",f[r]||"left")},t.prototype._setText=function(e){var t=this.get("el"),n=this.attr(),r=n.x,o=n.textBaseline,a=void 0===o?"bottom":o;if(e)if(~e.indexOf("\n")){var l=e.split("\n"),c=l.length-1,s="";(0,i.each)(l,(function(e,t){0===t?"alphabetic"===a?s+='<tspan x="'+r+'" dy="'+-c+'em">'+e+"</tspan>":"top"===a?s+='<tspan x="'+r+'" dy="0.9em">'+e+"</tspan>":"middle"===a?s+='<tspan x="'+r+'" dy="'+-(c-1)/2+'em">'+e+"</tspan>":"bottom"===a?s+='<tspan x="'+r+'" dy="-'+(c+.3)+'em">'+e+"</tspan>":"hanging"===a&&(s+='<tspan x="'+r+'" dy="'+(-(c-1)-.3)+'em">'+e+"</tspan>"):s+='<tspan x="'+r+'" dy="1em">'+e+"</tspan>"})),t.innerHTML=s}else t.innerHTML=e;else t.innerHTML=""},t}(s.default);t.default=p},function(e,t,n){"use strict";var r=n(2),o=n(6);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(1),a=n(26),l=n(54),c=n(273),s=n(149),u=n(74),d=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!==typeof e)return{default:e};var n=h(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(r,a,l):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}(n(191)),f=r(n(274)),p=r(n(986));function h(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(h=function(e){return e?n:t})(e)}var g=function(e){function t(t){return e.call(this,(0,i.__assign)((0,i.__assign)({},t),{autoDraw:!0,renderer:"svg"}))||this}return(0,i.__extends)(t,e),t.prototype.getShapeBase=function(){return d},t.prototype.getGroupBase=function(){return f.default},t.prototype.getShape=function(e,t,n){var r=n.target||n.srcElement;if(!l.SHAPE_TO_TAGS[r.tagName]){for(var o=r.parentNode;o&&!l.SHAPE_TO_TAGS[o.tagName];)o=o.parentNode;r=o}return this.find((function(e){return e.get("el")===r}))},t.prototype.createDom=function(){var e=(0,u.createSVGElement)("svg"),t=new p.default(e);return e.setAttribute("width",""+this.get("width")),e.setAttribute("height",""+this.get("height")),this.set("context",t),e},t.prototype.onCanvasChange=function(e){var t=this.get("context"),n=this.get("el");if("sort"===e){var r=this.get("children");r&&r.length&&(0,u.sortDom)(this,(function(e,t){return r.indexOf(e)-r.indexOf(t)?1:0}))}else if("clear"===e){if(n){n.innerHTML="";var o=t.el;o.innerHTML="",n.appendChild(o)}}else"matrix"===e?(0,s.setTransform)(this):"clip"===e?(0,s.setClip)(this,t):"changeSize"===e&&(n.setAttribute("width",""+this.get("width")),n.setAttribute("height",""+this.get("height")))},t.prototype.draw=function(){var e=this.get("context"),t=this.getChildren();(0,s.setClip)(this,e),t.length&&(0,c.drawChildren)(e,t)},t}(a.AbstractCanvas);t.default=g},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(0),i=r(n(987)),a=r(n(988)),l=r(n(989)),c=r(n(990)),s=r(n(991)),u=n(74),d=function(){function e(e){var t=(0,u.createSVGElement)("defs"),n=(0,o.uniqueId)("defs_");t.id=n,e.appendChild(t),this.children=[],this.defaultArrow={},this.el=t,this.canvas=e}return e.prototype.find=function(e,t){for(var n=this.children,r=null,o=0;o<n.length;o++)if(n[o].match(e,t)){r=n[o].id;break}return r},e.prototype.findById=function(e){for(var t=this.children,n=null,r=0;r<t.length;r++)if(t[r].id===e){n=t[r];break}return n},e.prototype.add=function(e){this.children.push(e),e.canvas=this.canvas,e.parent=this},e.prototype.getDefaultArrow=function(e,t){var n=e.stroke||e.strokeStyle;if(this.defaultArrow[n])return this.defaultArrow[n].id;var r=new l.default(e,t);return this.defaultArrow[n]=r,this.el.appendChild(r.el),this.add(r),r.id},e.prototype.addGradient=function(e){var t=new i.default(e);return this.el.appendChild(t.el),this.add(t),t.id},e.prototype.addArrow=function(e,t){var n=new l.default(e,t);return this.el.appendChild(n.el),this.add(n),n.id},e.prototype.addShadow=function(e){var t=new a.default(e);return this.el.appendChild(t.el),this.add(t),t.id},e.prototype.addPattern=function(e){var t=new s.default(e);return this.el.appendChild(t.el),this.add(t),t.id},e.prototype.addClip=function(e){var t=new c.default(e);return this.el.appendChild(t.el),this.add(t),t.id},e}();t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(0),o=n(74),i=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,a=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,l=/[\d.]+:(#[^\s]+|[^)]+\))/gi;function c(e){var t=e.match(l);if(!t)return"";var n="";return t.sort((function(e,t){return e=e.split(":"),t=t.split(":"),Number(e[0])-Number(t[0])})),(0,r.each)(t,(function(e){e=e.split(":"),n+='<stop offset="'+e[0]+'" stop-color="'+e[1]+'"></stop>'})),n}var s=function(){function e(e){this.cfg={};var t=null,n=(0,r.uniqueId)("gradient_");return"l"===e.toLowerCase()[0]?function(e,t){var n,o,a=i.exec(e),l=(0,r.mod)((0,r.toRadian)(parseFloat(a[1])),2*Math.PI),s=a[2];l>=0&&l<.5*Math.PI?(n={x:0,y:0},o={x:1,y:1}):.5*Math.PI<=l&&l<Math.PI?(n={x:1,y:0},o={x:0,y:1}):Math.PI<=l&&l<1.5*Math.PI?(n={x:1,y:1},o={x:0,y:0}):(n={x:0,y:1},o={x:1,y:0});var u=Math.tan(l),d=u*u,f=(o.x-n.x+u*(o.y-n.y))/(d+1)+n.x,p=u*(o.x-n.x+u*(o.y-n.y))/(d+1)+n.y;t.setAttribute("x1",n.x),t.setAttribute("y1",n.y),t.setAttribute("x2",f),t.setAttribute("y2",p),t.innerHTML=c(s)}(e,t=(0,o.createSVGElement)("linearGradient")):function(e,t){var n=a.exec(e),r=parseFloat(n[1]),o=parseFloat(n[2]),i=parseFloat(n[3]),l=n[4];t.setAttribute("cx",r),t.setAttribute("cy",o),t.setAttribute("r",i),t.innerHTML=c(l)}(e,t=(0,o.createSVGElement)("radialGradient")),t.setAttribute("id",n),this.el=t,this.id=n,this.cfg=e,this}return e.prototype.match=function(e,t){return this.cfg===t},e}();t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(0),o=n(74),i={shadowColor:"color",shadowOpacity:"opacity",shadowBlur:"blur",shadowOffsetX:"dx",shadowOffsetY:"dy"},a={x:"-40%",y:"-40%",width:"200%",height:"200%"},l=function(){function e(e){this.type="filter",this.cfg={},this.type="filter";var t=(0,o.createSVGElement)("filter");return(0,r.each)(a,(function(e,n){t.setAttribute(n,e)})),this.el=t,this.id=(0,r.uniqueId)("filter_"),this.el.id=this.id,this.cfg=e,this._parseShadow(e,t),this}return e.prototype.match=function(e,t){if(this.type!==e)return!1;var n=!0,o=this.cfg;return(0,r.each)(Object.keys(o),(function(e){if(o[e]!==t[e])return n=!1,!1})),n},e.prototype.update=function(e,t){var n=this.cfg;return n[i[e]]=t,this._parseShadow(n,this.el),this},e.prototype._parseShadow=function(e,t){var n='<feDropShadow\n      dx="'+(e.dx||0)+'"\n      dy="'+(e.dy||0)+'"\n      stdDeviation="'+(e.blur?e.blur/10:0)+'"\n      flood-color="'+(e.color?e.color:"#000")+'"\n      flood-opacity="'+(e.opacity?e.opacity:1)+'"\n      />';t.innerHTML=n},e}();t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(0),o=n(74),i=function(){function e(e,t){this.cfg={};var n=(0,o.createSVGElement)("marker"),i=(0,r.uniqueId)("marker_");n.setAttribute("id",i);var a=(0,o.createSVGElement)("path");a.setAttribute("stroke",e.stroke||"none"),a.setAttribute("fill",e.fill||"none"),n.appendChild(a),n.setAttribute("overflow","visible"),n.setAttribute("orient","auto-start-reverse"),this.el=n,this.child=a,this.id=i;var l=e["marker-start"===t?"startArrow":"endArrow"];return this.stroke=e.stroke||"#000",!0===l?this._setDefaultPath(t,a):(this.cfg=l,this._setMarker(e.lineWidth,a)),this}return e.prototype.match=function(){return!1},e.prototype._setDefaultPath=function(e,t){var n=this.el;t.setAttribute("d","M0,0 L"+10*Math.cos(Math.PI/6)+",5 L0,10"),n.setAttribute("refX",""+10*Math.cos(Math.PI/6)),n.setAttribute("refY","5")},e.prototype._setMarker=function(e,t){var n=this.el,o=this.cfg.path,i=this.cfg.d;(0,r.isArray)(o)&&(o=o.map((function(e){return e.join(" ")})).join("")),t.setAttribute("d",o),n.appendChild(t),i&&n.setAttribute("refX",""+i/e)},e.prototype.update=function(e){var t=this.child;t.attr?t.attr("fill",e):t.setAttribute("fill",e)},e}();t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(0),o=n(74),i=function(){function e(e){this.type="clip",this.cfg={};var t=(0,o.createSVGElement)("clipPath");this.el=t,this.id=(0,r.uniqueId)("clip_"),t.id=this.id;var n=e.cfg.el;return t.appendChild(n),this.cfg=e,this}return e.prototype.match=function(){return!1},e.prototype.remove=function(){var e=this.el;e.parentNode.removeChild(e)},e}();t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(0),o=n(74),i=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,a=function(){function e(e){this.cfg={};var t=(0,o.createSVGElement)("pattern");t.setAttribute("patternUnits","userSpaceOnUse");var n=(0,o.createSVGElement)("image");t.appendChild(n);var a=(0,r.uniqueId)("pattern_");t.id=a,this.el=t,this.id=a,this.cfg=e;var l=i.exec(e)[2];n.setAttribute("href",l);var c=new Image;function s(){t.setAttribute("width",""+c.width),t.setAttribute("height",""+c.height)}return l.match(/^data:/i)||(c.crossOrigin="Anonymous"),c.src=l,c.complete?s():(c.onload=s,c.src=c.src),this}return e.prototype.match=function(e,t){return this.cfg===t},e}();t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(27),i=n(269),a=n(33),l=n(150),c=(0,o.registerShapeFactory)("interval",{defaultShapeType:"rect",getDefaultPoints:function(e){return(0,l.getRectPoints)(e)}});(0,o.registerShape)("interval","rect",{draw:function(e,t){var n,o=(0,a.getStyle)(e,!1,!0),c=t,s=null===e||void 0===e?void 0:e.background;if(s){c=t.addGroup();var u=(0,a.getBackgroundRectStyle)(e),d=(0,l.getBackgroundRectPath)(e,this.parsePoints(e.points),this.coordinate);c.addShape("path",{attrs:(0,r.__assign)((0,r.__assign)({},u),{path:d}),zIndex:-1,name:i.BACKGROUND_SHAPE})}n=o.radius&&this.coordinate.isRect?(0,l.getRectWithCornerRadius)(this.parsePoints(e.points),this.coordinate,o.radius):this.parsePath((0,l.getIntervalRectPath)(e.points,o.lineCap,this.coordinate));var f=c.addShape("path",{attrs:(0,r.__assign)((0,r.__assign)({},o),{path:n}),name:"interval"});return s?c:f},getMarker:function(e){var t=e.color;return e.isInPolar?{symbol:"circle",style:{r:4.5,fill:t}}:{symbol:"square",style:{r:4,fill:t}}}}),t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=n(146),i=n(27),a=n(276),l=n(279),c=(0,i.registerShapeFactory)("point",{defaultShapeType:"hollow-circle",getDefaultPoints:function(e){return(0,a.splitPoints)(e)}});(0,r.each)(l.SHAPES,(function(e){(0,i.registerShape)("point","hollow-"+e,{draw:function(t,n){return(0,l.drawPoints)(this,t,n,e,!0)},getMarker:function(t){var n=t.color;return{symbol:o.MarkerSymbols[e]||e,style:{r:4.5,stroke:n,fill:null}}}})})),t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(0),i=n(21),a=n(48),l=n(278),c=(0,r.__importDefault)(n(90));n(995);var s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="violin",t.shapeType="violin",t.generatePoints=!0,t}return(0,r.__extends)(t,e),t.prototype.createShapePointsCfg=function(t){var n,r=e.prototype.createShapePointsCfg.call(this,t),c=this.getAttribute("size");if(c){n=this.getAttributeValues(c,t)[0];var s=this.coordinate;n/=(0,a.getXDimensionLength)(s)}else this.defaultSize||(this.defaultSize=(0,l.getDefaultSize)(this)),n=this.defaultSize;return r.size=n,r._size=(0,o.get)(t[i.FIELD_ORIGIN],[this._sizeField]),r},t.prototype.initAttributes=function(){var t=this.attributeOption,n=t.size?t.size.fields[0]:this._sizeField?this._sizeField:"size";this._sizeField=n,delete t.size,e.prototype.initAttributes.call(this)},t}(c.default);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(0),i=n(27),a=n(114),l=n(33),c=(0,i.registerShapeFactory)("violin",{defaultShapeType:"violin",getDefaultPoints:function(e){var t=e.size/2,n=[],r=function(e){if(!(0,o.isArray)(e))return[];var t=(0,o.max)(e);return(0,o.map)(e,(function(e){return e/t}))}(e._size);return(0,o.each)(e.y,(function(o,i){var a=r[i]*t,l=0===i,c=i===e.y.length-1;n.push({isMin:l,isMax:c,x:e.x-a,y:o}),n.unshift({isMin:l,isMax:c,x:e.x+a,y:o})})),n}});(0,i.registerShape)("violin","violin",{draw:function(e,t){var n=(0,l.getStyle)(e,!0,!0),o=this.parsePath((0,a.getViolinPath)(e.points));return t.addShape("path",{attrs:(0,r.__assign)((0,r.__assign)({},n),{path:o}),name:"violin"})},getMarker:function(e){return{symbol:"circle",style:{r:4,fill:e.color}}}}),t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(27),o=n(100);(0,r.registerShape)("area","line",{draw:function(e,t){var n=(0,o.getShapeAttrs)(e,!0,!1,this);return t.addShape({type:"path",attrs:n,name:"area"})},getMarker:function(e){return{symbol:function(e,t,n){return void 0===n&&(n=5.5),[["M",e-n,t-4],["L",e+n,t-4],["L",e+n,t+4],["L",e-n,t+4],["Z"]]},style:{r:5,stroke:e.color,fill:null}}}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(27),o=n(100);(0,r.registerShape)("area","smooth",{draw:function(e,t){var n=this.coordinate,r=(0,o.getShapeAttrs)(e,!1,!0,this,(0,o.getConstraint)(n));return t.addShape({type:"path",attrs:r,name:"area"})},getMarker:function(e){return{symbol:function(e,t,n){return void 0===n&&(n=5.5),[["M",e-n,t-4],["L",e+n,t-4],["L",e+n,t+4],["L",e-n,t+4],["Z"]]},style:{r:5,fill:e.color}}}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(27),o=n(100);(0,r.registerShape)("area","smooth-line",{draw:function(e,t){var n=this.coordinate,r=(0,o.getShapeAttrs)(e,!0,!0,this,(0,o.getConstraint)(n));return t.addShape({type:"path",attrs:r,name:"area"})},getMarker:function(e){return{symbol:function(e,t,n){return void 0===n&&(n=5.5),[["M",e-n,t-4],["L",e+n,t-4],["L",e+n,t+4],["L",e-n,t+4],["Z"]]},style:{r:5,stroke:e.color,fill:null}}}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(46),i=n(27),a=n(33),l=n(467);(0,i.registerShape)("edge","arc",{draw:function(e,t){var n,i=(0,a.getStyle)(e,!0,!1,"lineWidth"),c=e.points,s=c.length>2?"weight":"normal";if(e.isInCircle){var u={x:0,y:1};return"normal"===s?n=function(e,t,n){var r=(0,l.getQPath)(t,n),o=[["M",e.x,e.y]];return o.push(r),o}(c[0],c[1],u):(i.fill=i.stroke,n=function(e,t){var n=(0,l.getQPath)(e[1],t),r=(0,l.getQPath)(e[3],t),o=[["M",e[0].x,e[0].y]];return o.push(r),o.push(["L",e[3].x,e[3].y]),o.push(["L",e[2].x,e[2].y]),o.push(n),o.push(["L",e[1].x,e[1].y]),o.push(["L",e[0].x,e[0].y]),o.push(["Z"]),o}(c,u)),n=this.parsePath(n),t.addShape("path",{attrs:(0,r.__assign)((0,r.__assign)({},i),{path:n})})}if("normal"===s)return c=this.parsePoints(c),n=(0,o.getArcPath)((c[1].x+c[0].x)/2,c[0].y,Math.abs(c[1].x-c[0].x)/2,Math.PI,2*Math.PI),t.addShape("path",{attrs:(0,r.__assign)((0,r.__assign)({},i),{path:n})});var d=(0,l.getCPath)(c[1],c[3]),f=(0,l.getCPath)(c[2],c[0]);return n=[["M",c[0].x,c[0].y],["L",c[1].x,c[1].y],d,["L",c[3].x,c[3].y],["L",c[2].x,c[2].y],f,["Z"]],n=this.parsePath(n),i.fill=i.stroke,t.addShape("path",{attrs:(0,r.__assign)((0,r.__assign)({},i),{path:n})})},getMarker:function(e){return{symbol:"circle",style:{r:4.5,fill:e.color}}}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(27),i=n(33),a=n(467);(0,o.registerShape)("edge","smooth",{draw:function(e,t){var n=(0,i.getStyle)(e,!0,!1,"lineWidth"),o=e.points,l=this.parsePath(function(e,t){var n=(0,a.getCPath)(e,t),r=[["M",e.x,e.y]];return r.push(n),r}(o[0],o[1]));return t.addShape("path",{attrs:(0,r.__assign)((0,r.__assign)({},n),{path:l})})},getMarker:function(e){return{symbol:"circle",style:{r:4.5,fill:e.color}}}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(0),i=n(27),a=n(33),l=1/3;(0,i.registerShape)("edge","vhv",{draw:function(e,t){var n=(0,a.getStyle)(e,!0,!1,"lineWidth"),i=e.points,c=this.parsePath(function(e,t){var n=[];n.push({x:e.x,y:e.y*(1-l)+t.y*l}),n.push({x:t.x,y:e.y*(1-l)+t.y*l}),n.push(t);var r=[["M",e.x,e.y]];return(0,o.each)(n,(function(e){r.push(["L",e.x,e.y])})),r}(i[0],i[1]));return t.addShape("path",{attrs:(0,r.__assign)((0,r.__assign)({},n),{path:c})})},getMarker:function(e){return{symbol:"circle",style:{r:4.5,fill:e.color}}}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(27),i=n(114),a=n(33);(0,o.registerShape)("violin","smooth",{draw:function(e,t){var n=(0,a.getStyle)(e,!0,!0),o=this.parsePath((0,i.getSmoothViolinPath)(e.points));return t.addShape("path",{attrs:(0,r.__assign)((0,r.__assign)({},n),{path:o})})},getMarker:function(e){return{symbol:"circle",style:{stroke:null,r:4,fill:e.color}}}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(27),i=n(114),a=n(33);(0,o.registerShape)("violin","hollow",{draw:function(e,t){var n=(0,a.getStyle)(e,!0,!1),o=this.parsePath((0,i.getViolinPath)(e.points));return t.addShape("path",{attrs:(0,r.__assign)((0,r.__assign)({},n),{path:o})})},getMarker:function(e){return{symbol:"circle",style:{r:4,fill:null,stroke:e.color}}}}),(0,o.registerShape)("violin","hollow-smooth",{draw:function(e,t){var n=(0,a.getStyle)(e,!0,!1),o=this.parsePath((0,i.getSmoothViolinPath)(e.points));return t.addShape("path",{attrs:(0,r.__assign)((0,r.__assign)({},n),{path:o})})},getMarker:function(e){return{symbol:"circle",style:{r:4,fill:null,stroke:e.color}}}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pieOuterLabelLayout=void 0;var r=n(0),o=n(46),i=n(479),a=4;t.pieOuterLabelLayout=function(e,t,n,l){var c=(0,r.filter)(e,(function(e){return!(0,r.isNil)(e)})),s=t[0]&&t[0].get("coordinate");if(s){for(var u=s.getCenter(),d=s.getRadius(),f={},p=0,h=t;p<h.length;p++){var g=h[p];f[g.get("id")]=g}var v=(0,r.get)(c[0],"labelHeight",14),m=(0,r.get)(c[0],"offset",0);if(!(m<=0)){var y="right",b=(0,r.groupBy)(c,(function(e){return e.x<u.x?"left":y})),x=s.start,w=s.end,S=Math.min(2*(d+m+v),s.getHeight()),O=S/2,_={minX:x.x,maxX:w.x,minY:u.y-O,maxY:u.y+O};(0,r.each)(b,(function(e,t){var n=Math.floor(S/v);e.length>n&&(e.sort((function(e,t){return t.percent-e.percent})),(0,r.each)(e,(function(e,t){t+1>n&&(f[e.id].set("visible",!1),e.invisible=!0)}))),(0,i.antiCollision)(e,v,_)})),(0,r.each)(b,(function(e,t){(0,r.each)(e,(function(e){var n=t===y,i=f[e.id].getChildByIndex(0);if(i){var l=d+m,c=e.y-u.y,p=Math.pow(l,2),h=Math.pow(c,2),g=p-h>0?p-h:0,v=Math.sqrt(g),b=Math.abs(Math.cos(e.angle)*l);e.x=n?u.x+Math.max(v,b):u.x-Math.max(v,b)}i&&(i.attr("y",e.y),i.attr("x",e.x)),function(e,t){var n=t.getCenter(),i=t.getRadius();if(e&&e.labelLine){var l=e.angle,c=e.offset,s=(0,o.polarToCartesian)(n.x,n.y,i,l),u=e.x+(0,r.get)(e,"offsetX",0)*(Math.cos(l)>0?1:-1),d=e.y+(0,r.get)(e,"offsetY",0)*(Math.sin(l)>0?1:-1),f={x:u-Math.cos(l)*a,y:d-Math.sin(l)*a},p=e.labelLine.smooth,h=[],g=f.x-n.x,v=f.y-n.y,m=Math.atan(v/g);if(g<0&&(m+=Math.PI),!1===p){(0,r.isObject)(e.labelLine)||(e.labelLine={});var y=0;(l<0&&l>-Math.PI/2||l>1.5*Math.PI)&&f.y>s.y&&(y=1),l>=0&&l<Math.PI/2&&f.y>s.y&&(y=1),l>=Math.PI/2&&l<Math.PI&&s.y>f.y&&(y=1),(l<-Math.PI/2||l>=Math.PI&&l<1.5*Math.PI)&&s.y>f.y&&(y=1);var b=c/2>4?4:Math.max(c/2-1,0),x=(0,o.polarToCartesian)(n.x,n.y,i+b,l),w=(0,o.polarToCartesian)(n.x,n.y,i+c/2,m);h.push("M "+s.x+" "+s.y),h.push("L "+x.x+" "+x.y),h.push("A "+n.x+" "+n.y+" 0 0 "+y+" "+w.x+" "+w.y),h.push("L "+f.x+" "+f.y)}else{x=(0,o.polarToCartesian)(n.x,n.y,i+(c/2>4?4:Math.max(c/2-1,0)),l);var S=s.x<n.x?1:-1;h.push("M "+f.x+" "+f.y);var O=(s.y-n.y)/(s.x-n.x),_=(f.y-n.y)/(f.x-n.x);Math.abs(O-_)>Math.pow(Math.E,-16)&&h.push.apply(h,["C",f.x+4*S,f.y,2*x.x-s.x,2*x.y-s.y,s.x,s.y]),h.push("L "+s.x+" "+s.y)}e.labelLine.path=h.join(" ")}}(e,s)}))}))}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pieSpiderLabelLayout=void 0;var r=n(0),o=n(46),i=n(479),a=n(113),l=4,c=4;t.pieSpiderLabelLayout=function(e,t,n,s){var u=t[0]&&t[0].get("coordinate");if(u){for(var d=u.getCenter(),f=u.getRadius(),p={},h=0,g=t;h<g.length;h++){var v=g[h];p[v.get("id")]=v}var m=(0,r.get)(e[0],"labelHeight",14),y=Math.max((0,r.get)(e[0],"offset",0),l);(0,r.each)(e,(function(e){if((0,r.get)(p,[e.id])){var t=e.x>d.x||e.x===d.x&&e.y>d.y,n=(0,r.isNil)(e.offsetX)?4:e.offsetX,i=(0,o.polarToCartesian)(d.x,d.y,f+l,e.angle),a=y+n;e.x=d.x+(t?1:-1)*(f+a),e.y=i.y}}));var b=u.start,x=u.end,w="right",S=(0,r.groupBy)(e,(function(e){return e.x<d.x?"left":w})),O=2*(f+y)+m;(0,r.each)(S,(function(e){var t=e.length*m;t>O&&(O=Math.min(t,Math.abs(b.y-x.y)))}));var _={minX:b.x,maxX:x.x,minY:d.y-O/2,maxY:d.y+O/2};(0,r.each)(S,(function(e,t){var n=O/m;e.length>n&&(e.sort((function(e,t){return t.percent-e.percent})),(0,r.each)(e,(function(e,t){t>n&&(p[e.id].set("visible",!1),e.invisible=!0)}))),(0,i.antiCollision)(e,m,_)}));var C=_.minY,E=_.maxY;(0,r.each)(S,(function(e,t){var n=t===w;(0,r.each)(e,(function(e){var t=(0,r.get)(p,e&&[e.id]);if(t)if(e.y<C||e.y>E)t.set("visible",!1);else{var i=t.getChildByIndex(0),s=i.getCanvasBBox(),d=n?s.x:s.maxX,f=s.y+s.height/2;(0,a.translate)(i,e.x-d,e.y-f),e.labelLine&&function(e,t,n){var i,a=t.getCenter(),s=t.getRadius(),u={x:e.x-(n?c:-c),y:e.y},d=(0,o.polarToCartesian)(a.x,a.y,s+l,e.angle),f={x:u.x,y:u.y},p={x:d.x,y:d.y},h=(0,o.polarToCartesian)(a.x,a.y,s,e.angle);if(u.y!==d.y){var g=n?4:-4;f.y=u.y,e.angle<0&&e.angle>=-Math.PI/2&&(f.x=Math.max(d.x,u.x-g),u.y<d.y?p.y=f.y:(p.y=d.y,p.x=Math.max(p.x,f.x-g))),e.angle>0&&e.angle<Math.PI/2&&(f.x=Math.max(d.x,u.x-g),u.y>d.y?p.y=f.y:(p.y=d.y,p.x=Math.max(p.x,f.x-g))),e.angle>Math.PI/2&&(f.x=Math.min(d.x,u.x-g),u.y>d.y?p.y=f.y:(p.y=d.y,p.x=Math.min(p.x,f.x-g))),e.angle<-Math.PI/2&&(f.x=Math.min(d.x,u.x-g),u.y<d.y?p.y=f.y:(p.y=d.y,p.x=Math.min(p.x,f.x-g)))}i=["M "+u.x+","+u.y,"L "+f.x+","+f.y,"L "+p.x+","+p.y,"L "+d.x+","+d.y,"L "+h.x+","+h.y].join(" "),e.labelLine=(0,r.deepMix)({},e.labelLine,{path:i})}(e,u,n)}}))}))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hideOverlap=void 0;var r=n(0),o=n(1007),i=n(112);t.hideOverlap=function(e,t,n,a){for(var l=0;l<t.length;l++){var c=t[l];if(t[l].get("visible"))for(var s=l+1;s<t.length;s++){var u=t[s];if(c&&u&&c!==u&&u.get("visible")){var d=(0,i.getlLabelBackgroundInfo)(c,e[l],(0,r.get)(e[l],"background.padding")),f=(0,i.getlLabelBackgroundInfo)(u,e[s],(0,r.get)(e[s],"background.padding"));(0,o.isIntersect)(d,f)&&t[s].set("visible",!1)}}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isIntersect=t.isIntersectRect=void 0;var r=n(1),o=n(0),i=n(32).vec2.dot;function a(e){if(e.length>4)return[];var t=function(e,t){return[t.x-e.x,t.y-e.y]};return[t(e[0],e[1]),t(e[1],e[2])]}function l(e,t,n){void 0===t&&(t=0),void 0===n&&(n={x:0,y:0});var r=e.x,o=e.y;return{x:(r-n.x)*Math.cos(-t)+(o-n.y)*Math.sin(-t)+n.x,y:(n.x-r)*Math.sin(-t)+(o-n.y)*Math.cos(-t)+n.y}}function c(e){var t=[{x:e.x,y:e.y},{x:e.x+e.width,y:e.y},{x:e.x+e.width,y:e.y+e.height},{x:e.x,y:e.y+e.height}],n=e.rotation;return n?[l(t[0],n,t[0]),l(t[1],n,t[0]),l(t[2],n,t[0]),l(t[3],n,t[0])]:t}function s(e,t){if(e.length>4)return{min:0,max:0};var n=[];return e.forEach((function(e){n.push(i([e.x,e.y],t))})),{min:Math.min.apply(Math,n),max:Math.max.apply(Math,n)}}function u(e,t){return e.max>t.min&&e.min<t.max}function d(e){return(0,o.isNumber)(e)&&!Number.isNaN(e)&&e!==1/0&&e!==-1/0}function f(e){return Object.values(e).every(d)}function p(e,t,n){return void 0===n&&(n=0),!(t.x>e.x+e.width+n||t.x+t.width<e.x-n||t.y>e.y+e.height+n||t.y+t.height<e.y-n)}t.isIntersectRect=p,t.isIntersect=function(e,t){if(!f(e)||!f(t))return!1;if(!e.rotation&&!t.rotation)return p(e,t);for(var n=c(e),o=c(t),i=(0,r.__spreadArray)((0,r.__spreadArray)([],a(n),!0),a(o),!0),l=0;l<i.length;l++){var d=i[l];if(!u(s(n,d),s(o,d)))return!1}return!0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.adjustColor=void 0;var r=n(80),o=n(1009);t.adjustColor=function(e,t,n){if(0!==n.length){var i=n[0].get("element").geometry.theme,a=i.labels||{},l=a.fillColorLight,c=a.fillColorDark;n.forEach((function(e,n){var a=t[n].find((function(e){return"text"===e.get("type")})),s=r.BBox.fromObject(e.getBBox()),u=r.BBox.fromObject(a.getCanvasBBox()),d=!s.contains(u),f=e.attr("fill"),p=(0,o.isContrastColorWhite)(f);d?a.attr(i.overflowLabels.style):p?l&&a.attr("fill",l):c&&a.attr("fill",c)}))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isContrastColorWhite=void 0;var r=(0,n(1).__importDefault)(n(140)),o={"#5B8FF9":!0};t.isContrastColorWhite=function(e){var t=r.default.toRGB(e).toUpperCase();if(o[t])return o[t];var n=r.default.rgb2arr(t);return(299*n[0]+587*n[1]+114*n[2])/1e3<128}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.intervalAdjustPosition=void 0;var r=n(80),o=n(112);function i(e,t,n){return!!e.getAdjust("stack")||t.every((function(t,i){var a=n[i];return function(e,t,n){var i=e.coordinate,a=(0,o.findLabelTextShape)(t),l=r.BBox.fromObject(a.getCanvasBBox()),c=r.BBox.fromObject(n.getBBox());return i.isTransposed?c.height>=l.height:c.width>=l.width}(e,t,a)}))}t.intervalAdjustPosition=function(e,t,n){var a;if(0!==n.length){var l=null===(a=n[0])||void 0===a?void 0:a.get("element"),c=null===l||void 0===l?void 0:l.geometry;c&&"interval"===c.type&&i(c,t,n)&&n.forEach((function(e,n){var i=t[n];!function(e,t,n){var i=e.coordinate,a=r.BBox.fromObject(n.getBBox()),l=(0,o.findLabelTextShape)(t);i.isTransposed?l.attr({x:a.minX+a.width/2,textAlign:"center"}):l.attr({y:a.minY+a.height/2,textBaseline:"middle"})}(c,i,e)}))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.intervalHideOverlap=void 0;var r=n(0),o=n(112);t.intervalHideOverlap=function(e,t,n){var i;if(0!==n.length){var a=null===(i=n[0])||void 0===i?void 0:i.get("element"),l=null===a||void 0===a?void 0:a.geometry;if(l&&"interval"===l.type){var c,s=function(e){var t=[],n=Math.max(Math.floor(e.length/500),1);return(0,r.each)(e,(function(e,r){r%n===0?t.push(e):e.set("visible",!1)})),t}(t),u=l.getXYFields()[0],d=[],f=[],p=(0,r.groupBy)(s,(function(e){return e.get("data")[u]})),h=(0,r.uniq)((0,r.map)(s,(function(e){return e.get("data")[u]})));s.forEach((function(e){e.set("visible",!0)}));var g=function(e){e&&(e.length&&f.push(e.pop()),f.push.apply(f,e))};for((0,r.size)(h)>0&&(c=h.shift(),g(p[c])),(0,r.size)(h)>0&&(c=h.pop(),g(p[c])),(0,r.each)(h.reverse(),(function(e){g(p[e])}));f.length>0;){var v=f.shift();v.get("visible")&&((0,o.checkShapeOverlap)(v,d)?v.set("visible",!1):d.push(v))}}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pointAdjustPosition=void 0;var r=n(0),o=n(112);function i(e,t,n){return e.some((function(e){return n(e,t)}))}function a(e,t){return i(e,t,(function(e,t){var n,r,i,a=(0,o.findLabelTextShape)(e),l=(0,o.findLabelTextShape)(t);return n=a.getCanvasBBox(),r=l.getCanvasBBox(),void 0===(i=2)&&(i=0),Math.max(0,Math.min(n.x+n.width+i,r.x+r.width+i)-Math.max(n.x-i,r.x-i))*Math.max(0,Math.min(n.y+n.height+i,r.y+r.height+i)-Math.max(n.y-i,r.y-i))>0}))}t.pointAdjustPosition=function(e,t,n,l,c){var s,u;if(0!==n.length){var d=null===(s=n[0])||void 0===s?void 0:s.get("element"),f=null===d||void 0===d?void 0:d.geometry;if(f&&"point"===f.type){var p=f.getXYFields(),h=p[0],g=p[1],v=(0,r.groupBy)(t,(function(e){return e.get("data")[h]})),m=[],y=c&&c.offset||(null===(u=e[0])||void 0===u?void 0:u.offset)||12;(0,r.map)((0,r.keys)(v).reverse(),(function(e){for(var t=function(e,t){var n=e.getXYFields()[1],r=[],o=t.sort((function(e,t){return e.get("data")[n]-e.get("data")[n]}));return o.length>0&&r.push(o.shift()),o.length>0&&r.push(o.pop()),r.push.apply(r,o),r}(f,v[e]);t.length;){var n=t.shift(),r=(0,o.findLabelTextShape)(n);if(i(m,n,(function(e,t){return e.get("data")[h]===t.get("data")[h]&&e.get("data")[g]===t.get("data")[g]})))r.set("visible",!1);else{var l=!1;a(m,n)&&(r.attr("y",r.attr("y")+2*y),l=a(m,n)),l?r.set("visible",!1):m.push(n)}}}))}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pathAdjustPosition=void 0;var r=n(0),o=n(112);function i(e,t,n){return e.some((function(e){return n(e,t)}))}function a(e,t){return i(e,t,(function(e,t){var n,r,i,a=(0,o.findLabelTextShape)(e),l=(0,o.findLabelTextShape)(t);return n=a.getCanvasBBox(),r=l.getCanvasBBox(),void 0===(i=2)&&(i=0),Math.max(0,Math.min(n.x+n.width+i,r.x+r.width+i)-Math.max(n.x-i,r.x-i))*Math.max(0,Math.min(n.y+n.height+i,r.y+r.height+i)-Math.max(n.y-i,r.y-i))>0}))}t.pathAdjustPosition=function(e,t,n,l,c){var s,u;if(0!==n.length){var d=null===(s=n[0])||void 0===s?void 0:s.get("element"),f=null===d||void 0===d?void 0:d.geometry;if(f&&!(["path","line","area"].indexOf(f.type)<0)){var p=f.getXYFields(),h=p[0],g=p[1],v=(0,r.groupBy)(t,(function(e){return e.get("data")[h]})),m=[],y=c&&c.offset||(null===(u=e[0])||void 0===u?void 0:u.offset)||12;(0,r.map)((0,r.keys)(v).reverse(),(function(e){for(var t=function(e,t){var n=e.getXYFields()[1],r=[],o=t.sort((function(e,t){return e.get("data")[n]-e.get("data")[n]}));return o.length>0&&r.push(o.shift()),o.length>0&&r.push(o.pop()),r.push.apply(r,o),r}(f,v[e]);t.length;){var n=t.shift(),r=(0,o.findLabelTextShape)(n);if(i(m,n,(function(e,t){return e.get("data")[h]===t.get("data")[h]&&e.get("data")[g]===t.get("data")[g]})))r.set("visible",!1);else{var l=!1;a(m,n)&&(r.attr("y",r.attr("y")+2*y),l=a(m,n)),l?r.set("visible",!1):m.push(n)}}}))}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.limitInPlot=void 0;var r=n(0),o=n(48),i=n(1015),a=n(113);t.limitInPlot=function(e,t,n,l,c){if(!(t.length<=0)){var s=(null===c||void 0===c?void 0:c.direction)||["top","right","bottom","left"],u=(null===c||void 0===c?void 0:c.action)||"translate",d=(null===c||void 0===c?void 0:c.margin)||0,f=t[0].get("coordinate");if(f){var p=(0,o.getCoordinateBBox)(f,d),h=p.minX,g=p.minY,v=p.maxX,m=p.maxY;(0,r.each)(t,(function(e){var t=e.getCanvasBBox(),n=t.minX,o=t.minY,l=t.maxX,c=t.maxY,d=t.x,f=t.y,p=t.width,y=t.height,b=d,x=f;if(s.indexOf("left")>=0&&(n<h||l<h)&&(b=h),s.indexOf("top")>=0&&(o<g||c<g)&&(x=g),s.indexOf("right")>=0&&(n>v?b=v-p:l>v&&(b-=l-v)),s.indexOf("bottom")>=0&&(o>m?x=m-y:c>m&&(x-=c-m)),b!==d||x!==f){var w=b-d;"translate"===u?(0,a.translate)(e,w,x-f):"ellipsis"===u?e.findAll((function(e){return"text"===e.get("type")})).forEach((function(e){var t=(0,r.pick)(e.attr(),["fontSize","fontFamily","fontWeight","fontStyle","fontVariant"]),n=e.getCanvasBBox(),o=(0,i.getEllipsisText)(e.attr("text"),n.width-Math.abs(w),t);e.attr("text",o)})):e.hide()}}))}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getEllipsisText=t.measureTextWidth=void 0;var r=n(1),o=n(0),i=n(1016);t.measureTextWidth=(0,o.memoize)((function(e,t){void 0===t&&(t={});var n=t.fontSize,r=t.fontFamily,a=t.fontWeight,l=t.fontStyle,c=t.fontVariant,s=(0,i.getCanvasContext)();return s.font=[l,c,a,n+"px",r].join(" "),s.measureText((0,o.isString)(e)?e:"").width}),(function(e,t){return void 0===t&&(t={}),(0,r.__spreadArray)([e],(0,o.values)(t),!0).join("")})),t.getEllipsisText=function(e,n,r){var i,a=(0,t.measureTextWidth)("...",r);i=(0,o.isString)(e)?e:(0,o.toString)(e);var l,c,s=n,u=[];if((0,t.measureTextWidth)(e,r)<=n)return e;for(;l=i.substr(0,16),!((c=(0,t.measureTextWidth)(l,r))+a>s&&c>s);)if(u.push(l),s-=c,!(i=i.substr(16)))return u.join("");for(;l=i.substr(0,1),!((c=(0,t.measureTextWidth)(l,r))+a>s);)if(u.push(l),s-=c,!(i=i.substr(1)))return u.join("");return u.join("")+"..."}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.getCanvasContext=void 0,t.getCanvasContext=function(){return r||(r=document.createElement("canvas").getContext("2d")),r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.showGrid=t.getCircleGridItems=t.getLineGridItems=t.getGridThemeCfg=void 0;var r=n(0);t.getGridThemeCfg=function(e,t){var n=(0,r.deepMix)({},(0,r.get)(e,["components","axis","common"]),(0,r.get)(e,["components","axis",t]));return(0,r.get)(n,["grid"],{})},t.getLineGridItems=function(e,t,n,r){var o=[],i=t.getTicks();return e.isPolar&&i.push({value:1,text:"",tickValue:""}),i.reduce((function(t,i,a){var l=i.value;if(r)o.push({points:[e.convert("y"===n?{x:0,y:l}:{x:l,y:0}),e.convert("y"===n?{x:1,y:l}:{x:l,y:1})]});else if(a){var c=(t.value+l)/2;o.push({points:[e.convert("y"===n?{x:0,y:c}:{x:c,y:0}),e.convert("y"===n?{x:1,y:c}:{x:c,y:1})]})}return i}),i[0]),o},t.getCircleGridItems=function(e,t,n,o,i){var a=t.values.length,l=[],c=n.getTicks();return c.reduce((function(t,n){var c=t?t.value:n.value,s=n.value,u=(c+s)/2;return"x"===i?l.push({points:[e.convert({x:o?s:u,y:0}),e.convert({x:o?s:u,y:1})]}):l.push({points:(0,r.map)(Array(a+1),(function(t,n){return e.convert({x:n/a,y:o?s:u})}))}),n}),c[0]),l},t.showGrid=function(e,t){var n=(0,r.get)(t,"grid");if(null===n)return!1;var o=(0,r.get)(e,"grid");return!(void 0===n&&null===o)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(103),i=n(69),a=n(80),l=n(281),c=n(21),s=n(0),u=n(70),d=function(e){function t(t){var n=e.call(this,t)||this;return n.onChangeFn=s.noop,n.resetMeasure=function(){n.clear()},n.onValueChange=function(e){var t=e.ratio,r=n.getValidScrollbarCfg().animate;n.ratio=(0,s.clamp)(t,0,1);var o=n.view.getOptions().animate;r||n.view.animate(!1),n.changeViewData(n.getScrollRange(),!0),n.view.animate(o)},n.container=n.view.getLayer(c.LAYER.FORE).addGroup(),n.onChangeFn=(0,s.throttle)(n.onValueChange,20,{leading:!0}),n.trackLen=0,n.thumbLen=0,n.ratio=0,n.view.on(c.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA,n.resetMeasure),n.view.on(c.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_SIZE,n.resetMeasure),n}return(0,r.__extends)(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return"scrollbar"},enumerable:!1,configurable:!0}),t.prototype.destroy=function(){e.prototype.destroy.call(this),this.view.off(c.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA,this.resetMeasure),this.view.off(c.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_SIZE,this.resetMeasure)},t.prototype.init=function(){},t.prototype.render=function(){this.option=this.view.getOptions().scrollbar,this.option?this.scrollbar?this.scrollbar=this.updateScrollbar():(this.scrollbar=this.createScrollbar(),this.scrollbar.component.on("scrollchange",this.onChangeFn)):this.scrollbar&&(this.scrollbar.component.destroy(),this.scrollbar=void 0)},t.prototype.layout=function(){var e=this;if(this.option&&!this.trackLen&&(this.measureScrollbar(),setTimeout((function(){e.view.destroyed||e.changeViewData(e.getScrollRange(),!0)}))),this.scrollbar){var t=this.view.coordinateBBox.width,n=this.scrollbar.component.get("padding"),o=this.scrollbar.component.getLayoutBBox(),i=new a.BBox(o.x,o.y,Math.min(o.width,t),o.height).expand(n),s=this.getScrollbarComponentCfg(),u=void 0,d=void 0;if(s.isHorizontal){var f=(0,l.directionToPosition)(this.view.viewBBox,i,c.DIRECTION.BOTTOM),p=(f[0],f[1]),h=(0,l.directionToPosition)(this.view.coordinateBBox,i,c.DIRECTION.BOTTOM),g=h[0];h[1],u=g,d=p}else{var v=(0,l.directionToPosition)(this.view.viewBBox,i,c.DIRECTION.RIGHT),m=(v[0],p=v[1],(0,l.directionToPosition)(this.view.viewBBox,i,c.DIRECTION.RIGHT));g=m[0],m[1],u=g,d=p}u+=n[3],d+=n[0],this.trackLen?this.scrollbar.component.update((0,r.__assign)((0,r.__assign)({},s),{x:u,y:d,trackLen:this.trackLen,thumbLen:this.thumbLen,thumbOffset:(this.trackLen-this.thumbLen)*this.ratio})):this.scrollbar.component.update((0,r.__assign)((0,r.__assign)({},s),{x:u,y:d})),this.view.viewBBox=this.view.viewBBox.cut(i,s.isHorizontal?c.DIRECTION.BOTTOM:c.DIRECTION.RIGHT)}},t.prototype.update=function(){this.render()},t.prototype.getComponents=function(){return this.scrollbar?[this.scrollbar]:[]},t.prototype.clear=function(){this.scrollbar&&(this.scrollbar.component.destroy(),this.scrollbar=void 0),this.trackLen=0,this.thumbLen=0,this.ratio=0,this.cnt=0,this.step=0,this.data=void 0,this.xScaleCfg=void 0,this.yScalesCfg=[]},t.prototype.setValue=function(e){this.onValueChange({ratio:e})},t.prototype.getValue=function(){return this.ratio},t.prototype.getThemeOptions=function(){var e=this.view.getTheme();return(0,s.get)(e,["components","scrollbar","common"],{})},t.prototype.getScrollbarTheme=function(e){var t=(0,s.get)(this.view.getTheme(),["components","scrollbar"]),n=e||{},o=n.thumbHighlightColor,i=(0,r.__rest)(n,["thumbHighlightColor"]);return{default:(0,s.deepMix)({},(0,s.get)(t,["default","style"],{}),i),hover:(0,s.deepMix)({},(0,s.get)(t,["hover","style"],{}),{thumbColor:o})}},t.prototype.measureScrollbar=function(){var e=this.view.getXScale(),t=this.view.getYScales().slice();this.data=this.getScrollbarData(),this.step=this.getStep(),this.cnt=this.getCnt();var n=this.getScrollbarComponentCfg(),r=n.trackLen,o=n.thumbLen;this.trackLen=r,this.thumbLen=o,this.xScaleCfg={field:e.field,values:e.values||[]},this.yScalesCfg=t},t.prototype.getScrollRange=function(){var e=Math.floor((this.cnt-this.step)*(0,s.clamp)(this.ratio,0,1));return[e,Math.min(e+this.step-1,this.cnt-1)]},t.prototype.changeViewData=function(e,t){var n=this,r=e[0],o=e[1],i="vertical"!==this.getValidScrollbarCfg().type,a=(0,s.valuesOfKey)(this.data,this.xScaleCfg.field),l=i?a:a.reverse();this.yScalesCfg.forEach((function(e){n.view.scale(e.field,{formatter:e.formatter,type:e.type,min:e.min,max:e.max})})),this.view.filter(this.xScaleCfg.field,(function(e){var t=l.indexOf(e);return!(t>-1)||(0,u.isBetween)(t,r,o)})),this.view.render(!0)},t.prototype.createScrollbar=function(){var e="vertical"!==this.getValidScrollbarCfg().type,t=new i.Scrollbar((0,r.__assign)((0,r.__assign)({container:this.container},this.getScrollbarComponentCfg()),{x:0,y:0}));return t.init(),{component:t,layer:c.LAYER.FORE,direction:e?c.DIRECTION.BOTTOM:c.DIRECTION.RIGHT,type:c.COMPONENT_TYPE.SCROLLBAR}},t.prototype.updateScrollbar=function(){var e=this.getScrollbarComponentCfg(),t=this.trackLen?(0,r.__assign)((0,r.__assign)({},e),{trackLen:this.trackLen,thumbLen:this.thumbLen,thumbOffset:(this.trackLen-this.thumbLen)*this.ratio}):(0,r.__assign)({},e);return this.scrollbar.component.update(t),this.scrollbar},t.prototype.getStep=function(){if(this.step)return this.step;var e=this.view.coordinateBBox,t=this.getValidScrollbarCfg(),n=t.type,r=t.categorySize,o="vertical"!==n;return Math.floor((o?e.width:e.height)/r)},t.prototype.getCnt=function(){if(this.cnt)return this.cnt;var e=this.view.getXScale(),t=this.getScrollbarData(),n=(0,s.valuesOfKey)(t,e.field);return(0,s.size)(n)},t.prototype.getScrollbarComponentCfg=function(){var e=this.view,t=e.coordinateBBox,n=e.viewBBox,o=this.getValidScrollbarCfg(),i=o.type,a=o.padding,l=o.width,c=o.height,u=o.style,d="vertical"!==i,f=a[0],p=a[1],h=a[2],g=a[3],v=d?{x:t.minX+g,y:n.maxY-c-h}:{x:n.maxX-l-p,y:t.minY+f},m=this.getStep(),y=this.getCnt(),b=d?t.width-g-p:t.height-f-h,x=Math.max(b*(0,s.clamp)(m/y,0,1),20);return(0,r.__assign)((0,r.__assign)({},this.getThemeOptions()),{x:v.x,y:v.y,size:d?c:l,isHorizontal:d,trackLen:b,thumbLen:x,thumbOffset:0,theme:this.getScrollbarTheme(u)})},t.prototype.getValidScrollbarCfg=function(){var e={type:"horizontal",categorySize:32,width:8,height:8,padding:[0,0,0,0],animate:!0,style:{}};return(0,s.isObject)(this.option)&&(e=(0,r.__assign)((0,r.__assign)({},e),this.option)),(0,s.isObject)(this.option)&&this.option.padding||(e.padding=(e.type,[0,0,0,0])),e},t.prototype.getScrollbarData=function(){var e=this.view.getCoordinate(),t=this.getValidScrollbarCfg(),n=this.view.getOptions().data||[];return e.isReflect("y")&&"vertical"===t.type&&(n=(0,r.__spreadArray)([],n,!0).reverse()),n},t}(o.Controller);t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.clearList=void 0;var r=n(0),o="inactive",i="active";t.clearList=function(e){var t=e.getItems();(0,r.each)(t,(function(t){e.hasState(t,i)&&e.setItemState(t,i,!1),e.hasState(t,o)&&e.setItemState(t,o,!1)}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(0),i=(0,r.__importDefault)(n(151)),a="unchecked",l="checked",c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.stateName=l,t}return(0,r.__extends)(t,e),t.prototype.setItemState=function(e,t,n){this.setCheckedBy(e,(function(e){return e===t}),n)},t.prototype.setCheckedBy=function(e,t,n){var r=e.getItems();n&&(0,o.each)(r,(function(n){t(n)?(e.hasState(n,a)&&e.setItemState(n,a,!1),e.setItemState(n,l,!0)):e.hasState(n,l)||e.setItemState(n,a,!0)}))},t.prototype.toggle=function(){var e=this.getTriggerListInfo();if(e&&e.item){var t=e.list,n=e.item;!(0,o.some)(t.getItems(),(function(e){return t.hasState(e,a)}))||t.hasState(n,a)?this.setItemState(t,n,!0):this.reset()}},t.prototype.checked=function(){this.setState()},t.prototype.reset=function(){var e=this.getAllowComponents();(0,o.each)(e,(function(e){e.clearItemsState(l),e.clearItemsState(a)}))},t}(i.default);t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(0),i=n(31),a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.shapeType="circle",t}return(0,r.__extends)(t,e),t.prototype.getMaskAttrs=function(){var e=this.points,t=(0,o.last)(this.points),n=0,r=0,a=0;if(e.length){var l=e[0];n=(0,i.distance)(l,t)/2,r=(t.x+l.x)/2,a=(t.y+l.y)/2}return{x:r,y:a,r:n}},t}((0,r.__importDefault)(n(287)).default);t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(0);function i(e){e.x=(0,o.clamp)(e.x,0,1),e.y=(0,o.clamp)(e.y,0,1)}var a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.dim="x",t.inPlot=!0,t}return(0,r.__extends)(t,e),t.prototype.getRegion=function(){var e=null,t=null,n=this.points,r=this.dim,a=this.context.view.getCoordinate(),l=a.invert((0,o.head)(n)),c=a.invert((0,o.last)(n));return this.inPlot&&(i(l),i(c)),"x"===r?(e=a.convert({x:l.x,y:0}),t=a.convert({x:c.x,y:1})):(e=a.convert({x:0,y:l.y}),t=a.convert({x:1,y:c.y})),{start:e,end:t}},t}((0,r.__importDefault)(n(480)).default);t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(31),i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.__extends)(t,e),t.prototype.getMaskPath=function(){var e=this.points;return(0,o.getSpline)(e,!0)},t}((0,r.__importDefault)(n(481)).default);t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(0),i=(0,r.__importDefault)(n(482)),a=n(31),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.__extends)(t,e),t.prototype.filterView=function(e,t,n){var r=(0,a.getSilbings)(e);(0,o.each)(r,(function(e){e.filter(t,n)}))},t.prototype.reRender=function(e){var t=(0,a.getSilbings)(e);(0,o.each)(t,(function(e){e.render(!0)}))},t}(i.default);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(0),i=(0,r.__importDefault)(n(44)),a=n(31),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.__extends)(t,e),t.prototype.filter=function(){var e=(0,a.getDelegationObject)(this.context),t=this.context.view,n=(0,a.getElements)(t);if((0,a.isMask)(this.context)){var r=(0,a.getMaskedElements)(this.context,10);r&&(0,o.each)(n,(function(e){r.includes(e)?e.show():e.hide()}))}else if(e){var i=e.component,l=i.get("field");if((0,a.isList)(e)){if(l){var c=i.getItemsByState("unchecked"),s=(0,a.getScaleByField)(t,l),u=c.map((function(e){return e.name}));(0,o.each)(n,(function(e){var t=(0,a.getElementValue)(e,l),n=s.getText(t);u.indexOf(n)>=0?e.hide():e.show()}))}}else if((0,a.isSlider)(e)){var d=i.getValue(),f=d[0],p=d[1];(0,o.each)(n,(function(e){var t=(0,a.getElementValue)(e,l);t>=f&&t<=p?e.show():e.hide()}))}}},t.prototype.clear=function(){var e=(0,a.getElements)(this.context.view);(0,o.each)(e,(function(e){e.show()}))},t.prototype.reset=function(){this.clear()},t}(i.default);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(0),i=(0,r.__importDefault)(n(44)),a=n(31),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.byRecord=!1,t}return(0,r.__extends)(t,e),t.prototype.filter=function(){(0,a.isMask)(this.context)&&(this.byRecord?this.filterByRecord():this.filterByBBox())},t.prototype.filterByRecord=function(){var e=this.context.view,t=(0,a.getMaskedElements)(this.context,10);if(t){var n=e.getXScale().field,r=e.getYScales()[0].field,i=t.map((function(e){return e.getModel().data})),l=(0,a.getSilbings)(e);(0,o.each)(l,(function(e){var t=(0,a.getElements)(e);(0,o.each)(t,(function(e){var t=e.getModel().data;(0,a.isInRecords)(i,t,n,r)?e.show():e.hide()}))}))}},t.prototype.filterByBBox=function(){var e=this,t=this.context.view,n=(0,a.getSilbings)(t);(0,o.each)(n,(function(t){var n=(0,a.getSiblingMaskElements)(e.context,t,10),r=(0,a.getElements)(t);n&&(0,o.each)(r,(function(e){n.includes(e)?e.show():e.hide()}))}))},t.prototype.reset=function(){var e=(0,a.getSilbings)(this.context.view);(0,o.each)(e,(function(e){var t=(0,a.getElements)(e);(0,o.each)(t,(function(e){e.show()}))}))},t}(i.default);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(32),i=n(0),a=n(266),l=(0,r.__importDefault)(n(44)),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.buttonGroup=null,t.buttonCfg={name:"button",text:"button",textStyle:{x:0,y:0,fontSize:12,fill:"#333333",cursor:"pointer"},padding:[8,10],style:{fill:"#f7f7f7",stroke:"#cccccc",cursor:"pointer"},activeStyle:{fill:"#e6e6e6"}},t}return(0,r.__extends)(t,e),t.prototype.getButtonCfg=function(){return(0,i.deepMix)(this.buttonCfg,this.cfg)},t.prototype.drawButton=function(){var e=this.getButtonCfg(),t=this.context.view.foregroundGroup.addGroup({name:e.name}),n=t.addShape({type:"text",name:"button-text",attrs:(0,r.__assign)({text:e.text},e.textStyle)}).getBBox(),o=(0,a.parsePadding)(e.padding),i=t.addShape({type:"rect",name:"button-rect",attrs:(0,r.__assign)({x:n.x-o[3],y:n.y-o[0],width:n.width+o[1]+o[3],height:n.height+o[0]+o[2]},e.style)});i.toBack(),t.on("mouseenter",(function(){i.attr(e.activeStyle)})),t.on("mouseleave",(function(){i.attr(e.style)})),this.buttonGroup=t},t.prototype.resetPosition=function(){var e=this.context.view.getCoordinate().convert({x:1,y:1}),t=this.buttonGroup,n=t.getBBox(),r=o.ext.transform(null,[["t",e.x-n.width-10,e.y+n.height+5]]);t.setMatrix(r)},t.prototype.show=function(){this.buttonGroup||this.drawButton(),this.resetPosition(),this.buttonGroup.show()},t.prototype.hide=function(){this.buttonGroup&&this.buttonGroup.hide()},t.prototype.destroy=function(){var t=this.buttonGroup;t&&t.remove(),e.prototype.destroy.call(this)},t}(l.default);t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=(0,r.__importDefault)(n(44)),i=n(31),a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.starting=!1,t.dragStart=!1,t}return(0,r.__extends)(t,e),t.prototype.start=function(){this.starting=!0,this.startPoint=this.context.getCurrentPoint()},t.prototype.drag=function(){if(this.startPoint){var e=this.context.getCurrentPoint(),t=this.context.view,n=this.context.event;this.dragStart?t.emit("drag",{target:n.target,x:n.x,y:n.y}):(0,i.distance)(e,this.startPoint)>4&&(t.emit("dragstart",{target:n.target,x:n.x,y:n.y}),this.dragStart=!0)}},t.prototype.end=function(){if(this.dragStart){var e=this.context.view,t=this.context.event;e.emit("dragend",{target:t.target,x:t.x,y:t.y})}this.starting=!1,this.dragStart=!1},t}(o.default);t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(32),i=n(186),a=n(31),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.starting=!1,t.isMoving=!1,t.startPoint=null,t.startMatrix=null,t}return(0,r.__extends)(t,e),t.prototype.start=function(){this.starting=!0,this.startPoint=this.context.getCurrentPoint(),this.startMatrix=this.context.view.middleGroup.getMatrix()},t.prototype.move=function(){if(this.starting){var e=this.startPoint,t=this.context.getCurrentPoint();if((0,a.distance)(e,t)>5&&!this.isMoving&&(this.isMoving=!0),this.isMoving){var n=this.context.view,r=o.ext.transform(this.startMatrix,[["t",t.x-e.x,t.y-e.y]]);n.backgroundGroup.setMatrix(r),n.foregroundGroup.setMatrix(r),n.middleGroup.setMatrix(r)}}},t.prototype.end=function(){this.isMoving&&(this.isMoving=!1),this.startMatrix=null,this.starting=!1,this.startPoint=null},t.prototype.reset=function(){this.starting=!1,this.startPoint=null,this.isMoving=!1;var e=this.context.view;e.backgroundGroup.resetMatrix(),e.foregroundGroup.resetMatrix(),e.middleGroup.resetMatrix(),this.isMoving=!1},t}(i.Action);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(0),i=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.startPoint=null,t.starting=!1,t.startCache={},t}return(0,r.__extends)(t,e),t.prototype.start=function(){var e=this;this.startPoint=this.context.getCurrentPoint(),this.starting=!0;var t=this.dims;(0,o.each)(t,(function(t){var n=e.getScale(t),r=n.min,o=n.max,i=n.values;e.startCache[t]={min:r,max:o,values:i}}))},t.prototype.end=function(){this.startPoint=null,this.starting=!1,this.startCache={}},t.prototype.translate=function(){var e=this;if(this.starting){var t=this.startPoint,n=this.context.view.getCoordinate(),r=this.context.getCurrentPoint(),i=n.invert(t),a=n.invert(r),l=a.x-i.x,c=a.y-i.y,s=this.context.view,u=this.dims;(0,o.each)(u,(function(t){e.translateDim(t,{x:-1*l,y:-1*c})})),s.render(!0)}},t.prototype.translateDim=function(e,t){if(this.hasDim(e)){var n=this.getScale(e);n.isLinear&&this.translateLinear(e,n,t)}},t.prototype.translateLinear=function(e,t,n){var r=this.context.view,o=this.startCache[e],i=o.min,a=o.max,l=a-i,c=n[e]*l;this.cacheScaleDefs[e]||(this.cacheScaleDefs[e]={nice:t.nice,min:i,max:a}),r.scale(t.field,{nice:!1,min:i+c,max:a+c})},t.prototype.reset=function(){e.prototype.reset.call(this),this.startPoint=null,this.starting=!1},t}((0,r.__importDefault)(n(483)).default);t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(0),i=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.zoomRatio=.05,t}return(0,r.__extends)(t,e),t.prototype.zoomIn=function(){this.zoom(this.zoomRatio)},t.prototype.zoom=function(e){var t=this,n=this.dims;(0,o.each)(n,(function(n){t.zoomDim(n,e)})),this.context.view.render(!0)},t.prototype.zoomOut=function(){this.zoom(-1*this.zoomRatio)},t.prototype.zoomDim=function(e,t){if(this.hasDim(e)){var n=this.getScale(e);n.isLinear&&this.zoomLinear(e,n,t)}},t.prototype.zoomLinear=function(e,t,n){var r=this.context.view;this.cacheScaleDefs[e]||(this.cacheScaleDefs[e]={nice:t.nice,min:t.min,max:t.max});var o=this.cacheScaleDefs[e],i=o.max-o.min,a=t.min,l=t.max,c=n*i,s=a-c,u=l+c,d=(u-s)/i;u>s&&d<100&&d>.01&&r.scale(t.field,{nice:!1,min:a-c,max:l+c})},t}((0,r.__importDefault)(n(483)).default);t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(0),i=n(186),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.__extends)(t,e),t.prototype.scroll=function(e){var t=this.context,n=t.view,r=t.event;if(n.getOptions().scrollbar){var i=(null===e||void 0===e?void 0:e.wheelDelta)||1,a=n.getController("scrollbar"),l=n.getXScale(),c=n.getOptions().data,s=(0,o.size)((0,o.valuesOfKey)(c,l.field)),u=(0,o.size)(l.values),d=a.getValue(),f=Math.floor((s-u)*d)+(function(e){return e.gEvent.originalEvent.deltaY>0}(r)?i:-i),p=i/(s-u)/1e4,h=(0,o.clamp)(f/(s-u)+p,0,1);a.setValue(h)}},t}(i.Action);t.default=a},function(e,t,n){"use strict";(function(e){var t=n(2)(n(6));e.exports=function r(o){var i=n(1035),a=n(3),l=n(1036);function c(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var s=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;s.hasOwnProperty("ReactCurrentDispatcher")||(s.ReactCurrentDispatcher={current:null}),s.hasOwnProperty("ReactCurrentBatchConfig")||(s.ReactCurrentBatchConfig={suspense:null});var u="function"===typeof Symbol&&Symbol.for,d=u?Symbol.for("react.element"):60103,f=u?Symbol.for("react.portal"):60106,p=u?Symbol.for("react.fragment"):60107,h=u?Symbol.for("react.strict_mode"):60108,g=u?Symbol.for("react.profiler"):60114,v=u?Symbol.for("react.provider"):60109,m=u?Symbol.for("react.context"):60110,y=u?Symbol.for("react.concurrent_mode"):60111,b=u?Symbol.for("react.forward_ref"):60112,x=u?Symbol.for("react.suspense"):60113,w=u?Symbol.for("react.suspense_list"):60120,S=u?Symbol.for("react.memo"):60115,O=u?Symbol.for("react.lazy"):60116,_=u?Symbol.for("react.block"):60121,C="function"===typeof Symbol&&Symbol.iterator;function E(e){return null===e||"object"!==(0,t.default)(e)?null:"function"===typeof(e=C&&e[C]||e["@@iterator"])?e:null}function P(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case p:return"Fragment";case f:return"Portal";case g:return"Profiler";case h:return"StrictMode";case x:return"Suspense";case w:return"SuspenseList"}if("object"===(0,t.default)(e))switch(e.$$typeof){case m:return"Context.Consumer";case v:return"Context.Provider";case b:var n=e.render;return n=n.displayName||n.name||"",e.displayName||(""!==n?"ForwardRef("+n+")":"ForwardRef");case S:return P(e.type);case _:return P(e.render);case O:if(e=1===e._status?e._result:null)return P(e)}return null}function M(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(1026&(t=e).effectTag)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function k(e){if(M(e)!==e)throw Error(c(188))}function A(e){var t=e.alternate;if(!t){if(null===(t=M(e)))throw Error(c(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(r=o.return)){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return k(o),e;if(i===r)return k(o),t;i=i.sibling}throw Error(c(188))}if(n.return!==r.return)n=o,r=i;else{for(var a=!1,l=o.child;l;){if(l===n){a=!0,n=o,r=i;break}if(l===r){a=!0,r=o,n=i;break}l=l.sibling}if(!a){for(l=i.child;l;){if(l===n){a=!0,n=i,r=o;break}if(l===r){a=!0,r=i,n=o;break}l=l.sibling}if(!a)throw Error(c(189))}}if(n.alternate!==r)throw Error(c(190))}if(3!==n.tag)throw Error(c(188));return n.stateNode.current===n?e:t}function I(e){if(!(e=A(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}var T=o.getPublicInstance,j=o.getRootHostContext,L=o.getChildHostContext,R=o.prepareForCommit,D=o.resetAfterCommit,N=o.createInstance,F=o.appendInitialChild,B=o.finalizeInitialChildren,z=o.prepareUpdate,H=o.shouldSetTextContent,W=o.shouldDeprioritizeSubtree,V=o.createTextInstance,G=o.setTimeout,Y=o.clearTimeout,U=o.noTimeout,X=o.isPrimaryRenderer,q=o.supportsMutation,K=o.supportsPersistence,$=o.supportsHydration,Q=o.appendChild,Z=o.appendChildToContainer,J=o.commitTextUpdate,ee=o.commitMount,te=o.commitUpdate,ne=o.insertBefore,re=o.insertInContainerBefore,oe=o.removeChild,ie=o.removeChildFromContainer,ae=o.resetTextContent,le=o.hideInstance,ce=o.hideTextInstance,se=o.unhideInstance,ue=o.unhideTextInstance,de=o.cloneInstance,fe=o.createContainerChildSet,pe=o.appendChildToContainerChildSet,he=o.finalizeContainerChildren,ge=o.replaceContainerChildren,ve=o.cloneHiddenInstance,me=o.cloneHiddenTextInstance,ye=o.canHydrateInstance,be=o.canHydrateTextInstance,xe=o.isSuspenseInstancePending,we=o.isSuspenseInstanceFallback,Se=o.getNextHydratableSibling,Oe=o.getFirstHydratableChild,_e=o.hydrateInstance,Ce=o.hydrateTextInstance,Ee=o.getNextHydratableInstanceAfterSuspenseInstance,Pe=o.commitHydratedContainer,Me=o.commitHydratedSuspenseInstance,ke=/^(.*)[\\\/]/;function Ae(e){var t="";do{e:switch(e.tag){case 3:case 4:case 6:case 7:case 10:case 9:var n="";break e;default:var r=e._debugOwner,o=e._debugSource,i=P(e.type);n=null,r&&(n=P(r.type)),r=i,i="",o?i=" (at "+o.fileName.replace(ke,"")+":"+o.lineNumber+")":n&&(i=" (created by "+n+")"),n="\n    in "+(r||"Unknown")+i}t+=n,e=e.return}while(e);return t}var Ie=[],Te=-1;function je(e){0>Te||(e.current=Ie[Te],Ie[Te]=null,Te--)}function Le(e,t){Te++,Ie[Te]=e.current,e.current=t}var Re={},De={current:Re},Ne={current:!1},Fe=Re;function Be(e,t){var n=e.type.contextTypes;if(!n)return Re;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function ze(e){return null!==(e=e.childContextTypes)&&void 0!==e}function He(){je(Ne),je(De)}function We(e,t,n){if(De.current!==Re)throw Error(c(168));Le(De,t),Le(Ne,n)}function Ve(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in e))throw Error(c(108,P(t)||"Unknown",o));return i({},n,{},r)}function Ge(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Re,Fe=De.current,Le(De,e),Le(Ne,Ne.current),!0}function Ye(e,t,n){var r=e.stateNode;if(!r)throw Error(c(169));n?(e=Ve(e,t,Fe),r.__reactInternalMemoizedMergedChildContext=e,je(Ne),je(De),Le(De,e)):je(Ne),Le(Ne,n)}var Ue=l.unstable_runWithPriority,Xe=l.unstable_scheduleCallback,qe=l.unstable_cancelCallback,Ke=l.unstable_requestPaint,$e=l.unstable_now,Qe=l.unstable_getCurrentPriorityLevel,Ze=l.unstable_ImmediatePriority,Je=l.unstable_UserBlockingPriority,et=l.unstable_NormalPriority,tt=l.unstable_LowPriority,nt=l.unstable_IdlePriority,rt={},ot=l.unstable_shouldYield,it=void 0!==Ke?Ke:function(){},at=null,lt=null,ct=!1,st=$e(),ut=1e4>st?$e:function(){return $e()-st};function dt(){switch(Qe()){case Ze:return 99;case Je:return 98;case et:return 97;case tt:return 96;case nt:return 95;default:throw Error(c(332))}}function ft(e){switch(e){case 99:return Ze;case 98:return Je;case 97:return et;case 96:return tt;case 95:return nt;default:throw Error(c(332))}}function pt(e,t){return e=ft(e),Ue(e,t)}function ht(e,t,n){return e=ft(e),Xe(e,t,n)}function gt(e){return null===at?(at=[e],lt=Xe(Ze,mt)):at.push(e),rt}function vt(){if(null!==lt){var e=lt;lt=null,qe(e)}mt()}function mt(){if(!ct&&null!==at){ct=!0;var e=0;try{var t=at;pt(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),at=null}catch(n){throw null!==at&&(at=at.slice(e+1)),Xe(Ze,vt),n}finally{ct=!1}}}function yt(e,t,n){return 1073741821-(1+((1073741821-e+t/10)/(n/=10)|0))*n}var bt="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},xt=Object.prototype.hasOwnProperty;function wt(e,n){if(bt(e,n))return!0;if("object"!==(0,t.default)(e)||null===e||"object"!==(0,t.default)(n)||null===n)return!1;var r=Object.keys(e),o=Object.keys(n);if(r.length!==o.length)return!1;for(o=0;o<r.length;o++)if(!xt.call(n,r[o])||!bt(e[r[o]],n[r[o]]))return!1;return!0}function St(e,t){if(e&&e.defaultProps)for(var n in t=i({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}var Ot={current:null},_t=null,Ct=null,Et=null;function Pt(){Et=Ct=_t=null}function Mt(e,t){e=e.type._context,X?(Le(Ot,e._currentValue),e._currentValue=t):(Le(Ot,e._currentValue2),e._currentValue2=t)}function kt(e){var t=Ot.current;je(Ot),e=e.type._context,X?e._currentValue=t:e._currentValue2=t}function At(e,t){for(;null!==e;){var n=e.alternate;if(e.childExpirationTime<t)e.childExpirationTime=t,null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t);else{if(!(null!==n&&n.childExpirationTime<t))break;n.childExpirationTime=t}e=e.return}}function It(e,t){_t=e,Et=Ct=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(e.expirationTime>=t&&(ir=!0),e.firstContext=null)}function Tt(e,t){if(Et!==e&&!1!==t&&0!==t)if("number"===typeof t&&1073741823!==t||(Et=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Ct){if(null===_t)throw Error(c(308));Ct=t,_t.dependencies={expirationTime:0,firstContext:t,responders:null}}else Ct=Ct.next=t;return X?e._currentValue:e._currentValue2}var jt=!1;function Lt(e){e.updateQueue={baseState:e.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}function Rt(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,baseQueue:e.baseQueue,shared:e.shared,effects:e.effects})}function Dt(e,t){return(e={expirationTime:e,suspenseConfig:t,tag:0,payload:null,callback:null,next:null}).next=e}function Nt(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function Ft(e,t){var n=e.alternate;null!==n&&Rt(n,e),null===(n=(e=e.updateQueue).baseQueue)?(e.baseQueue=t.next=t,t.next=t):(t.next=n.next,n.next=t)}function Bt(e,t,n,r){var o=e.updateQueue;jt=!1;var a=o.baseQueue,l=o.shared.pending;if(null!==l){if(null!==a){var c=a.next;a.next=l.next,l.next=c}a=l,o.shared.pending=null,null!==(c=e.alternate)&&null!==(c=c.updateQueue)&&(c.baseQueue=l)}if(null!==a){c=a.next;var s=o.baseState,u=0,d=null,f=null,p=null;if(null!==c)for(var h=c;;){if((l=h.expirationTime)<r){var g={expirationTime:h.expirationTime,suspenseConfig:h.suspenseConfig,tag:h.tag,payload:h.payload,callback:h.callback,next:null};null===p?(f=p=g,d=s):p=p.next=g,l>u&&(u=l)}else{null!==p&&(p=p.next={expirationTime:1073741823,suspenseConfig:h.suspenseConfig,tag:h.tag,payload:h.payload,callback:h.callback,next:null}),$o(l,h.suspenseConfig);e:{var v=e,m=h;switch(l=t,g=n,m.tag){case 1:if("function"===typeof(v=m.payload)){s=v.call(g,s,l);break e}s=v;break e;case 3:v.effectTag=-4097&v.effectTag|64;case 0:if(null===(l="function"===typeof(v=m.payload)?v.call(g,s,l):v)||void 0===l)break e;s=i({},s,l);break e;case 2:jt=!0}}null!==h.callback&&(e.effectTag|=32,null===(l=o.effects)?o.effects=[h]:l.push(h))}if(null===(h=h.next)||h===c){if(null===(l=o.shared.pending))break;h=a.next=l.next,l.next=c,o.baseQueue=a=l,o.shared.pending=null}}null===p?d=s:p.next=f,o.baseState=d,o.baseQueue=p,Qo(u),e.expirationTime=u,e.memoizedState=s}}function zt(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=o,o=n,"function"!==typeof r)throw Error(c(191,r));r.call(o)}}}var Ht=s.ReactCurrentBatchConfig,Wt=(new a.Component).refs;function Vt(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:i({},t,n),e.memoizedState=n,0===e.expirationTime&&(e.updateQueue.baseState=n)}var Gt={isMounted:function(e){return!!(e=e._reactInternalFiber)&&M(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var r=No(),o=Ht.suspense;(o=Dt(r=Fo(r,e,o),o)).payload=t,void 0!==n&&null!==n&&(o.callback=n),Nt(e,o),Bo(e,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var r=No(),o=Ht.suspense;(o=Dt(r=Fo(r,e,o),o)).tag=1,o.payload=t,void 0!==n&&null!==n&&(o.callback=n),Nt(e,o),Bo(e,r)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=No(),r=Ht.suspense;(r=Dt(n=Fo(n,e,r),r)).tag=2,void 0!==t&&null!==t&&(r.callback=t),Nt(e,r),Bo(e,n)}};function Yt(e,t,n,r,o,i,a){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||!wt(n,r)||!wt(o,i)}function Ut(e,n,r){var o=!1,i=Re,a=n.contextType;return"object"===(0,t.default)(a)&&null!==a?a=Tt(a):(i=ze(n)?Fe:De.current,a=(o=null!==(o=n.contextTypes)&&void 0!==o)?Be(e,i):Re),n=new n(r,a),e.memoizedState=null!==n.state&&void 0!==n.state?n.state:null,n.updater=Gt,e.stateNode=n,n._reactInternalFiber=e,o&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),n}function Xt(e,t,n,r){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Gt.enqueueReplaceState(t,t.state,null)}function qt(e,n,r,o){var i=e.stateNode;i.props=r,i.state=e.memoizedState,i.refs=Wt,Lt(e);var a=n.contextType;"object"===(0,t.default)(a)&&null!==a?i.context=Tt(a):(a=ze(n)?Fe:De.current,i.context=Be(e,a)),Bt(e,r,i,o),i.state=e.memoizedState,"function"===typeof(a=n.getDerivedStateFromProps)&&(Vt(e,n,a,r),i.state=e.memoizedState),"function"===typeof n.getDerivedStateFromProps||"function"===typeof i.getSnapshotBeforeUpdate||"function"!==typeof i.UNSAFE_componentWillMount&&"function"!==typeof i.componentWillMount||(n=i.state,"function"===typeof i.componentWillMount&&i.componentWillMount(),"function"===typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),n!==i.state&&Gt.enqueueReplaceState(i,i.state,null),Bt(e,r,i,o),i.state=e.memoizedState),"function"===typeof i.componentDidMount&&(e.effectTag|=4)}var Kt=Array.isArray;function $t(e,n,r){if(null!==(e=r.ref)&&"function"!==typeof e&&"object"!==(0,t.default)(e)){if(r._owner){if(r=r._owner){if(1!==r.tag)throw Error(c(309));var o=r.stateNode}if(!o)throw Error(c(147,e));var i=""+e;return null!==n&&null!==n.ref&&"function"===typeof n.ref&&n.ref._stringRef===i?n.ref:(n=function(e){var t=o.refs;t===Wt&&(t=o.refs={}),null===e?delete t[i]:t[i]=e},n._stringRef=i,n)}if("string"!==typeof e)throw Error(c(284));if(!r._owner)throw Error(c(290,e))}return e}function Qt(e,t){if("textarea"!==e.type)throw Error(c(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,""))}function Zt(e){function n(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.effectTag=8}}function r(t,r){if(!e)return null;for(;null!==r;)n(t,r),r=r.sibling;return null}function o(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=yi(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.effectTag=2,n):r:(t.effectTag=2,n):n}function l(t){return e&&null===t.alternate&&(t.effectTag=2),t}function s(e,t,n,r){return null===t||6!==t.tag?((t=wi(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function u(e,t,n,r){return null!==t&&t.elementType===n.type?((r=i(t,n.props)).ref=$t(e,t,n),r.return=e,r):((r=bi(n.type,n.key,n.props,null,e.mode,r)).ref=$t(e,t,n),r.return=e,r)}function h(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Si(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function g(e,t,n,r,o){return null===t||7!==t.tag?((t=xi(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function v(e,n,r){if("string"===typeof n||"number"===typeof n)return(n=wi(""+n,e.mode,r)).return=e,n;if("object"===(0,t.default)(n)&&null!==n){switch(n.$$typeof){case d:return(r=bi(n.type,n.key,n.props,null,e.mode,r)).ref=$t(e,null,n),r.return=e,r;case f:return(n=Si(n,e.mode,r)).return=e,n}if(Kt(n)||E(n))return(n=xi(n,e.mode,r,null)).return=e,n;Qt(e,n)}return null}function m(e,n,r,o){var i=null!==n?n.key:null;if("string"===typeof r||"number"===typeof r)return null!==i?null:s(e,n,""+r,o);if("object"===(0,t.default)(r)&&null!==r){switch(r.$$typeof){case d:return r.key===i?r.type===p?g(e,n,r.props.children,o,i):u(e,n,r,o):null;case f:return r.key===i?h(e,n,r,o):null}if(Kt(r)||E(r))return null!==i?null:g(e,n,r,o,null);Qt(e,r)}return null}function y(e,n,r,o,i){if("string"===typeof o||"number"===typeof o)return s(n,e=e.get(r)||null,""+o,i);if("object"===(0,t.default)(o)&&null!==o){switch(o.$$typeof){case d:return e=e.get(null===o.key?r:o.key)||null,o.type===p?g(n,e,o.props.children,i,o.key):u(n,e,o,i);case f:return h(n,e=e.get(null===o.key?r:o.key)||null,o,i)}if(Kt(o)||E(o))return g(n,e=e.get(r)||null,o,i,null);Qt(n,o)}return null}function b(t,i,l,c){for(var s=null,u=null,d=i,f=i=0,p=null;null!==d&&f<l.length;f++){d.index>f?(p=d,d=null):p=d.sibling;var h=m(t,d,l[f],c);if(null===h){null===d&&(d=p);break}e&&d&&null===h.alternate&&n(t,d),i=a(h,i,f),null===u?s=h:u.sibling=h,u=h,d=p}if(f===l.length)return r(t,d),s;if(null===d){for(;f<l.length;f++)null!==(d=v(t,l[f],c))&&(i=a(d,i,f),null===u?s=d:u.sibling=d,u=d);return s}for(d=o(t,d);f<l.length;f++)null!==(p=y(d,t,f,l[f],c))&&(e&&null!==p.alternate&&d.delete(null===p.key?f:p.key),i=a(p,i,f),null===u?s=p:u.sibling=p,u=p);return e&&d.forEach((function(e){return n(t,e)})),s}function x(t,i,l,s){var u=E(l);if("function"!==typeof u)throw Error(c(150));if(null==(l=u.call(l)))throw Error(c(151));for(var d=u=null,f=i,p=i=0,h=null,g=l.next();null!==f&&!g.done;p++,g=l.next()){f.index>p?(h=f,f=null):h=f.sibling;var b=m(t,f,g.value,s);if(null===b){null===f&&(f=h);break}e&&f&&null===b.alternate&&n(t,f),i=a(b,i,p),null===d?u=b:d.sibling=b,d=b,f=h}if(g.done)return r(t,f),u;if(null===f){for(;!g.done;p++,g=l.next())null!==(g=v(t,g.value,s))&&(i=a(g,i,p),null===d?u=g:d.sibling=g,d=g);return u}for(f=o(t,f);!g.done;p++,g=l.next())null!==(g=y(f,t,p,g.value,s))&&(e&&null!==g.alternate&&f.delete(null===g.key?p:g.key),i=a(g,i,p),null===d?u=g:d.sibling=g,d=g);return e&&f.forEach((function(e){return n(t,e)})),u}return function(e,o,a,s){var u="object"===(0,t.default)(a)&&null!==a&&a.type===p&&null===a.key;u&&(a=a.props.children);var h="object"===(0,t.default)(a)&&null!==a;if(h)switch(a.$$typeof){case d:e:{for(h=a.key,u=o;null!==u;){if(u.key===h){if(7===u.tag){if(a.type===p){r(e,u.sibling),(o=i(u,a.props.children)).return=e,e=o;break e}}else if(u.elementType===a.type){r(e,u.sibling),(o=i(u,a.props)).ref=$t(e,u,a),o.return=e,e=o;break e}r(e,u);break}n(e,u),u=u.sibling}a.type===p?((o=xi(a.props.children,e.mode,s,a.key)).return=e,e=o):((s=bi(a.type,a.key,a.props,null,e.mode,s)).ref=$t(e,o,a),s.return=e,e=s)}return l(e);case f:e:{for(u=a.key;null!==o;){if(o.key===u){if(4===o.tag&&o.stateNode.containerInfo===a.containerInfo&&o.stateNode.implementation===a.implementation){r(e,o.sibling),(o=i(o,a.children||[])).return=e,e=o;break e}r(e,o);break}n(e,o),o=o.sibling}(o=Si(a,e.mode,s)).return=e,e=o}return l(e)}if("string"===typeof a||"number"===typeof a)return a=""+a,null!==o&&6===o.tag?(r(e,o.sibling),(o=i(o,a)).return=e,e=o):(r(e,o),(o=wi(a,e.mode,s)).return=e,e=o),l(e);if(Kt(a))return b(e,o,a,s);if(E(a))return x(e,o,a,s);if(h&&Qt(e,a),"undefined"===typeof a&&!u)switch(e.tag){case 1:case 0:throw e=e.type,Error(c(152,e.displayName||e.name||"Component"))}return r(e,o)}}var Jt=Zt(!0),en=Zt(!1),tn={},nn={current:tn},rn={current:tn},on={current:tn};function an(e){if(e===tn)throw Error(c(174));return e}function ln(e,t){Le(on,t),Le(rn,e),Le(nn,tn),e=j(t),je(nn),Le(nn,e)}function cn(){je(nn),je(rn),je(on)}function sn(e){var t=an(on.current),n=an(nn.current);n!==(t=L(n,e.type,t))&&(Le(rn,e),Le(nn,t))}function un(e){rn.current===e&&(je(nn),je(rn))}var dn={current:0};function fn(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||xe(n)||we(n)))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(64&t.effectTag))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function pn(e,t){return{responder:e,props:t}}var hn=s.ReactCurrentDispatcher,gn=s.ReactCurrentBatchConfig,vn=0,mn=null,yn=null,bn=null,xn=!1;function wn(){throw Error(c(321))}function Sn(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!bt(e[n],t[n]))return!1;return!0}function On(e,t,n,r,o,i){if(vn=i,mn=t,t.memoizedState=null,t.updateQueue=null,t.expirationTime=0,hn.current=null===e||null===e.memoizedState?Un:Xn,e=n(r,o),t.expirationTime===vn){i=0;do{if(t.expirationTime=0,!(25>i))throw Error(c(301));i+=1,bn=yn=null,t.updateQueue=null,hn.current=qn,e=n(r,o)}while(t.expirationTime===vn)}if(hn.current=Yn,t=null!==yn&&null!==yn.next,vn=0,bn=yn=mn=null,xn=!1,t)throw Error(c(300));return e}function _n(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===bn?mn.memoizedState=bn=e:bn=bn.next=e,bn}function Cn(){if(null===yn){var e=mn.alternate;e=null!==e?e.memoizedState:null}else e=yn.next;var t=null===bn?mn.memoizedState:bn.next;if(null!==t)bn=t,yn=e;else{if(null===e)throw Error(c(310));e={memoizedState:(yn=e).memoizedState,baseState:yn.baseState,baseQueue:yn.baseQueue,queue:yn.queue,next:null},null===bn?mn.memoizedState=bn=e:bn=bn.next=e}return bn}function En(e,t){return"function"===typeof t?t(e):t}function Pn(e){var t=Cn(),n=t.queue;if(null===n)throw Error(c(311));n.lastRenderedReducer=e;var r=yn,o=r.baseQueue,i=n.pending;if(null!==i){if(null!==o){var a=o.next;o.next=i.next,i.next=a}r.baseQueue=o=i,n.pending=null}if(null!==o){o=o.next,r=r.baseState;var l=a=i=null,s=o;do{var u=s.expirationTime;if(u<vn){var d={expirationTime:s.expirationTime,suspenseConfig:s.suspenseConfig,action:s.action,eagerReducer:s.eagerReducer,eagerState:s.eagerState,next:null};null===l?(a=l=d,i=r):l=l.next=d,u>mn.expirationTime&&(mn.expirationTime=u,Qo(u))}else null!==l&&(l=l.next={expirationTime:1073741823,suspenseConfig:s.suspenseConfig,action:s.action,eagerReducer:s.eagerReducer,eagerState:s.eagerState,next:null}),$o(u,s.suspenseConfig),r=s.eagerReducer===e?s.eagerState:e(r,s.action);s=s.next}while(null!==s&&s!==o);null===l?i=r:l.next=a,bt(r,t.memoizedState)||(ir=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=l,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function Mn(e){var t=Cn(),n=t.queue;if(null===n)throw Error(c(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(null!==o){n.pending=null;var a=o=o.next;do{i=e(i,a.action),a=a.next}while(a!==o);bt(i,t.memoizedState)||(ir=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function kn(e){var t=_n();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:En,lastRenderedState:e}).dispatch=Gn.bind(null,mn,e),[t.memoizedState,e]}function An(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=mn.updateQueue)?(t={lastEffect:null},mn.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function In(){return Cn().memoizedState}function Tn(e,t,n,r){var o=_n();mn.effectTag|=e,o.memoizedState=An(1|t,n,void 0,void 0===r?null:r)}function jn(e,t,n,r){var o=Cn();r=void 0===r?null:r;var i=void 0;if(null!==yn){var a=yn.memoizedState;if(i=a.destroy,null!==r&&Sn(r,a.deps))return void An(t,n,i,r)}mn.effectTag|=e,o.memoizedState=An(1|t,n,i,r)}function Ln(e,t){return Tn(516,4,e,t)}function Rn(e,t){return jn(516,4,e,t)}function Dn(e,t){return jn(4,2,e,t)}function Nn(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Fn(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,jn(4,2,Nn.bind(null,t,e),n)}function Bn(){}function zn(e,t){return _n().memoizedState=[e,void 0===t?null:t],e}function Hn(e,t){var n=Cn();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Sn(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Wn(e,t){var n=Cn();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Sn(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Vn(e,t,n){var r=dt();pt(98>r?98:r,(function(){e(!0)})),pt(97<r?97:r,(function(){var r=gn.suspense;gn.suspense=void 0===t?null:t;try{e(!1),n()}finally{gn.suspense=r}}))}function Gn(e,t,n){var r=No(),o=Ht.suspense;o={expirationTime:r=Fo(r,e,o),suspenseConfig:o,action:n,eagerReducer:null,eagerState:null,next:null};var i=t.pending;if(null===i?o.next=o:(o.next=i.next,i.next=o),t.pending=o,i=e.alternate,e===mn||null!==i&&i===mn)xn=!0,o.expirationTime=vn,mn.expirationTime=vn;else{if(0===e.expirationTime&&(null===i||0===i.expirationTime)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,l=i(a,n);if(o.eagerReducer=i,o.eagerState=l,bt(l,a))return}catch(c){}Bo(e,r)}}var Yn={readContext:Tt,useCallback:wn,useContext:wn,useEffect:wn,useImperativeHandle:wn,useLayoutEffect:wn,useMemo:wn,useReducer:wn,useRef:wn,useState:wn,useDebugValue:wn,useResponder:wn,useDeferredValue:wn,useTransition:wn},Un={readContext:Tt,useCallback:zn,useContext:Tt,useEffect:Ln,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Tn(4,2,Nn.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Tn(4,2,e,t)},useMemo:function(e,t){var n=_n();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=_n();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=Gn.bind(null,mn,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},_n().memoizedState=e},useState:kn,useDebugValue:Bn,useResponder:pn,useDeferredValue:function(e,t){var n=kn(e),r=n[0],o=n[1];return Ln((function(){var n=gn.suspense;gn.suspense=void 0===t?null:t;try{o(e)}finally{gn.suspense=n}}),[e,t]),r},useTransition:function(e){var t=kn(!1),n=t[0];return t=t[1],[zn(Vn.bind(null,t,e),[t,e]),n]}},Xn={readContext:Tt,useCallback:Hn,useContext:Tt,useEffect:Rn,useImperativeHandle:Fn,useLayoutEffect:Dn,useMemo:Wn,useReducer:Pn,useRef:In,useState:function(){return Pn(En)},useDebugValue:Bn,useResponder:pn,useDeferredValue:function(e,t){var n=Pn(En),r=n[0],o=n[1];return Rn((function(){var n=gn.suspense;gn.suspense=void 0===t?null:t;try{o(e)}finally{gn.suspense=n}}),[e,t]),r},useTransition:function(e){var t=Pn(En),n=t[0];return t=t[1],[Hn(Vn.bind(null,t,e),[t,e]),n]}},qn={readContext:Tt,useCallback:Hn,useContext:Tt,useEffect:Rn,useImperativeHandle:Fn,useLayoutEffect:Dn,useMemo:Wn,useReducer:Mn,useRef:In,useState:function(){return Mn(En)},useDebugValue:Bn,useResponder:pn,useDeferredValue:function(e,t){var n=Mn(En),r=n[0],o=n[1];return Rn((function(){var n=gn.suspense;gn.suspense=void 0===t?null:t;try{o(e)}finally{gn.suspense=n}}),[e,t]),r},useTransition:function(e){var t=Mn(En),n=t[0];return t=t[1],[Hn(Vn.bind(null,t,e),[t,e]),n]}},Kn=null,$n=null,Qn=!1;function Zn(e,t){var n=vi(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Jn(e,t){switch(e.tag){case 5:return null!==(t=ye(t,e.type,e.pendingProps))&&(e.stateNode=t,!0);case 6:return null!==(t=be(t,e.pendingProps))&&(e.stateNode=t,!0);default:return!1}}function er(e){if(Qn){var t=$n;if(t){var n=t;if(!Jn(e,t)){if(!(t=Se(n))||!Jn(e,t))return e.effectTag=-1025&e.effectTag|2,Qn=!1,void(Kn=e);Zn(Kn,n)}Kn=e,$n=Oe(t)}else e.effectTag=-1025&e.effectTag|2,Qn=!1,Kn=e}}function tr(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Kn=e}function nr(e){if(!$||e!==Kn)return!1;if(!Qn)return tr(e),Qn=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!H(t,e.memoizedProps))for(t=$n;t;)Zn(e,t),t=Se(t);if(tr(e),13===e.tag){if(!$)throw Error(c(316));if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(c(317));$n=Ee(e)}else $n=Kn?Se(e.stateNode):null;return!0}function rr(){$&&($n=Kn=null,Qn=!1)}var or=s.ReactCurrentOwner,ir=!1;function ar(e,t,n,r){t.child=null===e?en(t,null,n,r):Jt(t,e.child,n,r)}function lr(e,t,n,r,o){n=n.render;var i=t.ref;return It(t,o),r=On(e,t,n,r,i,o),null===e||ir?(t.effectTag|=1,ar(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=o&&(e.expirationTime=0),_r(e,t,o))}function cr(e,t,n,r,o,i){if(null===e){var a=n.type;return"function"!==typeof a||mi(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=bi(n.type,null,r,null,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,sr(e,t,a,r,o,i))}return a=e.child,o<i&&(o=a.memoizedProps,(n=null!==(n=n.compare)?n:wt)(o,r)&&e.ref===t.ref)?_r(e,t,i):(t.effectTag|=1,(e=yi(a,r)).ref=t.ref,e.return=t,t.child=e)}function sr(e,t,n,r,o,i){return null!==e&&wt(e.memoizedProps,r)&&e.ref===t.ref&&(ir=!1,o<i)?(t.expirationTime=e.expirationTime,_r(e,t,i)):dr(e,t,n,r,i)}function ur(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=128)}function dr(e,t,n,r,o){var i=ze(n)?Fe:De.current;return i=Be(t,i),It(t,o),n=On(e,t,n,r,i,o),null===e||ir?(t.effectTag|=1,ar(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=o&&(e.expirationTime=0),_r(e,t,o))}function fr(e,n,r,o,i){if(ze(r)){var a=!0;Ge(n)}else a=!1;if(It(n,i),null===n.stateNode)null!==e&&(e.alternate=null,n.alternate=null,n.effectTag|=2),Ut(n,r,o),qt(n,r,o,i),o=!0;else if(null===e){var l=n.stateNode,c=n.memoizedProps;l.props=c;var s=l.context,u=r.contextType;u="object"===(0,t.default)(u)&&null!==u?Tt(u):Be(n,u=ze(r)?Fe:De.current);var d=r.getDerivedStateFromProps,f="function"===typeof d||"function"===typeof l.getSnapshotBeforeUpdate;f||"function"!==typeof l.UNSAFE_componentWillReceiveProps&&"function"!==typeof l.componentWillReceiveProps||(c!==o||s!==u)&&Xt(n,l,o,u),jt=!1;var p=n.memoizedState;l.state=p,Bt(n,o,l,i),s=n.memoizedState,c!==o||p!==s||Ne.current||jt?("function"===typeof d&&(Vt(n,r,d,o),s=n.memoizedState),(c=jt||Yt(n,r,c,o,p,s,u))?(f||"function"!==typeof l.UNSAFE_componentWillMount&&"function"!==typeof l.componentWillMount||("function"===typeof l.componentWillMount&&l.componentWillMount(),"function"===typeof l.UNSAFE_componentWillMount&&l.UNSAFE_componentWillMount()),"function"===typeof l.componentDidMount&&(n.effectTag|=4)):("function"===typeof l.componentDidMount&&(n.effectTag|=4),n.memoizedProps=o,n.memoizedState=s),l.props=o,l.state=s,l.context=u,o=c):("function"===typeof l.componentDidMount&&(n.effectTag|=4),o=!1)}else l=n.stateNode,Rt(e,n),c=n.memoizedProps,l.props=n.type===n.elementType?c:St(n.type,c),s=l.context,u=r.contextType,u="object"===(0,t.default)(u)&&null!==u?Tt(u):Be(n,u=ze(r)?Fe:De.current),(f="function"===typeof(d=r.getDerivedStateFromProps)||"function"===typeof l.getSnapshotBeforeUpdate)||"function"!==typeof l.UNSAFE_componentWillReceiveProps&&"function"!==typeof l.componentWillReceiveProps||(c!==o||s!==u)&&Xt(n,l,o,u),jt=!1,s=n.memoizedState,l.state=s,Bt(n,o,l,i),p=n.memoizedState,c!==o||s!==p||Ne.current||jt?("function"===typeof d&&(Vt(n,r,d,o),p=n.memoizedState),(d=jt||Yt(n,r,c,o,s,p,u))?(f||"function"!==typeof l.UNSAFE_componentWillUpdate&&"function"!==typeof l.componentWillUpdate||("function"===typeof l.componentWillUpdate&&l.componentWillUpdate(o,p,u),"function"===typeof l.UNSAFE_componentWillUpdate&&l.UNSAFE_componentWillUpdate(o,p,u)),"function"===typeof l.componentDidUpdate&&(n.effectTag|=4),"function"===typeof l.getSnapshotBeforeUpdate&&(n.effectTag|=256)):("function"!==typeof l.componentDidUpdate||c===e.memoizedProps&&s===e.memoizedState||(n.effectTag|=4),"function"!==typeof l.getSnapshotBeforeUpdate||c===e.memoizedProps&&s===e.memoizedState||(n.effectTag|=256),n.memoizedProps=o,n.memoizedState=p),l.props=o,l.state=p,l.context=u,o=d):("function"!==typeof l.componentDidUpdate||c===e.memoizedProps&&s===e.memoizedState||(n.effectTag|=4),"function"!==typeof l.getSnapshotBeforeUpdate||c===e.memoizedProps&&s===e.memoizedState||(n.effectTag|=256),o=!1);return pr(e,n,r,o,a,i)}function pr(e,t,n,r,o,i){ur(e,t);var a=0!==(64&t.effectTag);if(!r&&!a)return o&&Ye(t,n,!1),_r(e,t,i);r=t.stateNode,or.current=t;var l=a&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.effectTag|=1,null!==e&&a?(t.child=Jt(t,e.child,null,i),t.child=Jt(t,null,l,i)):ar(e,t,l,i),t.memoizedState=r.state,o&&Ye(t,n,!0),t.child}function hr(e){var t=e.stateNode;t.pendingContext?We(0,t.pendingContext,t.pendingContext!==t.context):t.context&&We(0,t.context,!1),ln(e,t.containerInfo)}var gr,vr,mr,yr,br={dehydrated:null,retryTime:0};function xr(e,t,n){var r,o=t.mode,i=t.pendingProps,a=dn.current,l=!1;if((r=0!==(64&t.effectTag))||(r=0!==(2&a)&&(null===e||null!==e.memoizedState)),r?(l=!0,t.effectTag&=-65):null!==e&&null===e.memoizedState||void 0===i.fallback||!0===i.unstable_avoidThisFallback||(a|=1),Le(dn,1&a),null===e){if(void 0!==i.fallback&&er(t),l){if(l=i.fallback,(i=xi(null,o,0,null)).return=t,0===(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,i.child=e;null!==e;)e.return=i,e=e.sibling;return(n=xi(l,o,n,null)).return=t,i.sibling=n,t.memoizedState=br,t.child=i,n}return o=i.children,t.memoizedState=null,t.child=en(t,null,o,n)}if(null!==e.memoizedState){if(o=(e=e.child).sibling,l){if(i=i.fallback,(n=yi(e,e.pendingProps)).return=t,0===(2&t.mode)&&(l=null!==t.memoizedState?t.child.child:t.child)!==e.child)for(n.child=l;null!==l;)l.return=n,l=l.sibling;return(o=yi(o,i)).return=t,n.sibling=o,n.childExpirationTime=0,t.memoizedState=br,t.child=n,o}return n=Jt(t,e.child,i.children,n),t.memoizedState=null,t.child=n}if(e=e.child,l){if(l=i.fallback,(i=xi(null,o,0,null)).return=t,i.child=e,null!==e&&(e.return=i),0===(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,i.child=e;null!==e;)e.return=i,e=e.sibling;return(n=xi(l,o,n,null)).return=t,i.sibling=n,n.effectTag|=2,i.childExpirationTime=0,t.memoizedState=br,t.child=i,n}return t.memoizedState=null,t.child=Jt(t,e,i.children,n)}function wr(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t),At(e.return,t)}function Sr(e,t,n,r,o,i){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailExpiration:0,tailMode:o,lastEffect:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailExpiration=0,a.tailMode=o,a.lastEffect=i)}function Or(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(ar(e,t,r.children,n),0!==(2&(r=dn.current)))r=1&r|2,t.effectTag|=64;else{if(null!==e&&0!==(64&e.effectTag))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&wr(e,n);else if(19===e.tag)wr(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Le(dn,r),0===(2&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===fn(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Sr(t,!1,o,n,i,t.lastEffect);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===fn(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Sr(t,!0,n,null,i,t.lastEffect);break;case"together":Sr(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function _r(e,t,n){null!==e&&(t.dependencies=e.dependencies);var r=t.expirationTime;if(0!==r&&Qo(r),t.childExpirationTime<n)return null;if(null!==e&&t.child!==e.child)throw Error(c(153));if(null!==t.child){for(n=yi(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=yi(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Cr(e){e.effectTag|=4}if(q)gr=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)F(e,n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},vr=function(){},mr=function(e,t,n,r,o){if((e=e.memoizedProps)!==r){var i=t.stateNode,a=an(nn.current);n=z(i,n,e,r,o,a),(t.updateQueue=n)&&Cr(t)}},yr=function(e,t,n,r){n!==r&&Cr(t)};else if(K){gr=function(e,t,n,r){for(var o=t.child;null!==o;){if(5===o.tag){var i=o.stateNode;n&&r&&(i=ve(i,o.type,o.memoizedProps,o)),F(e,i)}else if(6===o.tag)i=o.stateNode,n&&r&&(i=me(i,o.memoizedProps,o)),F(e,i);else if(4!==o.tag){if(13===o.tag&&0!==(4&o.effectTag)&&(i=null!==o.memoizedState)){var a=o.child;if(null!==a&&(null!==a.child&&(a.child.return=a,gr(e,a,!0,i)),null!==(i=a.sibling))){i.return=o,o=i;continue}}if(null!==o.child){o.child.return=o,o=o.child;continue}}if(o===t)break;for(;null===o.sibling;){if(null===o.return||o.return===t)return;o=o.return}o.sibling.return=o.return,o=o.sibling}};var Er=function e(t,n,r,o){for(var i=n.child;null!==i;){if(5===i.tag){var a=i.stateNode;r&&o&&(a=ve(a,i.type,i.memoizedProps,i)),pe(t,a)}else if(6===i.tag)a=i.stateNode,r&&o&&(a=me(a,i.memoizedProps,i)),pe(t,a);else if(4!==i.tag){if(13===i.tag&&0!==(4&i.effectTag)&&(a=null!==i.memoizedState)){var l=i.child;if(null!==l&&(null!==l.child&&(l.child.return=l,e(t,l,!0,a)),null!==(a=l.sibling))){a.return=i,i=a;continue}}if(null!==i.child){i.child.return=i,i=i.child;continue}}if(i===n)break;for(;null===i.sibling;){if(null===i.return||i.return===n)return;i=i.return}i.sibling.return=i.return,i=i.sibling}};vr=function(e){var t=e.stateNode;if(null!==e.firstEffect){var n=t.containerInfo,r=fe(n);Er(r,e,!1,!1),t.pendingChildren=r,Cr(e),he(n,r)}},mr=function(e,t,n,r,o){var i=e.stateNode,a=e.memoizedProps;if((e=null===t.firstEffect)&&a===r)t.stateNode=i;else{var l=t.stateNode,c=an(nn.current),s=null;a!==r&&(s=z(l,n,a,r,o,c)),e&&null===s?t.stateNode=i:(i=de(i,s,n,a,r,t,e,l),B(i,n,r,o,c)&&Cr(t),t.stateNode=i,e?Cr(t):gr(i,t,!1,!1))}},yr=function(e,t,n,r){n!==r?(e=an(on.current),n=an(nn.current),t.stateNode=V(r,e,n,t),Cr(t)):t.stateNode=e.stateNode}}else vr=function(){},mr=function(){},yr=function(){};function Pr(e,t){switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Mr(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:case 17:return ze(t.type)&&He(),null;case 3:return cn(),je(Ne),je(De),(r=t.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(null===e||null===e.child)&&nr(t)&&Cr(t),vr(t),null;case 5:un(t);var o=an(on.current);if(n=t.type,null!==e&&null!=t.stateNode)mr(e,t,n,r,o),e.ref!==t.ref&&(t.effectTag|=128);else{if(!r){if(null===t.stateNode)throw Error(c(166));return null}if(e=an(nn.current),nr(t)){if(!$)throw Error(c(175));e=_e(t.stateNode,t.type,t.memoizedProps,o,e,t),t.updateQueue=e,null!==e&&Cr(t)}else{var i=N(n,r,o,e,t);gr(i,t,!1,!1),t.stateNode=i,B(i,n,r,o,e)&&Cr(t)}null!==t.ref&&(t.effectTag|=128)}return null;case 6:if(e&&null!=t.stateNode)yr(e,t,e.memoizedProps,r);else{if("string"!==typeof r&&null===t.stateNode)throw Error(c(166));if(e=an(on.current),o=an(nn.current),nr(t)){if(!$)throw Error(c(176));Ce(t.stateNode,t.memoizedProps,t)&&Cr(t)}else t.stateNode=V(r,e,o,t)}return null;case 13:return je(dn),r=t.memoizedState,0!==(64&t.effectTag)?(t.expirationTime=n,t):(r=null!==r,o=!1,null===e?void 0!==t.memoizedProps.fallback&&nr(t):(o=null!==(n=e.memoizedState),r||null===n||null!==(n=e.child.sibling)&&(null!==(i=t.firstEffect)?(t.firstEffect=n,n.nextEffect=i):(t.firstEffect=t.lastEffect=n,n.nextEffect=null),n.effectTag=8)),r&&!o&&0!==(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!==(1&dn.current)?mo===ao&&(mo=so):(mo!==ao&&mo!==so||(mo=uo),0!==So&&null!==ho&&(Ci(ho,vo),Ei(ho,So)))),K&&r&&(t.effectTag|=4),q&&(r||o)&&(t.effectTag|=4),null);case 4:return cn(),vr(t),null;case 10:return kt(t),null;case 19:if(je(dn),null===(r=t.memoizedState))return null;if(o=0!==(64&t.effectTag),null===(i=r.rendering)){if(o)Pr(r,!1);else if(mo!==ao||null!==e&&0!==(64&e.effectTag))for(e=t.child;null!==e;){if(null!==(i=fn(e))){for(t.effectTag|=64,Pr(r,!1),null!==(e=i.updateQueue)&&(t.updateQueue=e,t.effectTag|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,e=n,r=t.child;null!==r;)n=e,(o=r).effectTag&=2,o.nextEffect=null,o.firstEffect=null,o.lastEffect=null,null===(i=o.alternate)?(o.childExpirationTime=0,o.expirationTime=n,o.child=null,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null):(o.childExpirationTime=i.childExpirationTime,o.expirationTime=i.expirationTime,o.child=i.child,o.memoizedProps=i.memoizedProps,o.memoizedState=i.memoizedState,o.updateQueue=i.updateQueue,n=i.dependencies,o.dependencies=null===n?null:{expirationTime:n.expirationTime,firstContext:n.firstContext,responders:n.responders}),r=r.sibling;return Le(dn,1&dn.current|2),t.child}e=e.sibling}}else{if(!o)if(null!==(e=fn(i))){if(t.effectTag|=64,o=!0,null!==(e=e.updateQueue)&&(t.updateQueue=e,t.effectTag|=4),Pr(r,!0),null===r.tail&&"hidden"===r.tailMode&&!i.alternate)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*ut()-r.renderingStartTime>r.tailExpiration&&1<n&&(t.effectTag|=64,o=!0,Pr(r,!1),t.expirationTime=t.childExpirationTime=n-1);r.isBackwards?(i.sibling=t.child,t.child=i):(null!==(e=r.last)?e.sibling=i:t.child=i,r.last=i)}return null!==r.tail?(0===r.tailExpiration&&(r.tailExpiration=ut()+500),e=r.tail,r.rendering=e,r.tail=e.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=ut(),e.sibling=null,t=dn.current,Le(dn,o?1&t|2:1&t),e):null}throw Error(c(156,t.tag))}function kr(e){switch(e.tag){case 1:ze(e.type)&&He();var t=e.effectTag;return 4096&t?(e.effectTag=-4097&t|64,e):null;case 3:if(cn(),je(Ne),je(De),0!==(64&(t=e.effectTag)))throw Error(c(285));return e.effectTag=-4097&t|64,e;case 5:return un(e),null;case 13:return je(dn),4096&(t=e.effectTag)?(e.effectTag=-4097&t|64,e):null;case 19:return je(dn),null;case 4:return cn(),null;case 10:return kt(e),null;default:return null}}function Ar(e,t){return{value:e,source:t,stack:Ae(t)}}var Ir="function"===typeof WeakSet?WeakSet:Set;function Tr(e,t){var n=t.source,r=t.stack;null===r&&null!==n&&(r=Ae(n)),null!==n&&P(n.type),t=t.value,null!==e&&1===e.tag&&P(e.type);try{console.error(t)}catch(o){setTimeout((function(){throw o}))}}function jr(e){var t=e.ref;if(null!==t)if("function"===typeof t)try{t(null)}catch(n){si(e,n)}else t.current=null}function Lr(e,t){switch(t.tag){case 0:case 11:case 15:case 22:case 3:case 5:case 6:case 4:case 17:return;case 1:if(256&t.effectTag&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:St(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return}throw Error(c(163))}function Rr(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.destroy;n.destroy=void 0,void 0!==r&&r()}n=n.next}while(n!==t)}}function Dr(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Nr(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:return void Dr(3,n);case 1:if(e=n.stateNode,4&n.effectTag)if(null===t)e.componentDidMount();else{var r=n.elementType===n.type?t.memoizedProps:St(n.type,t.memoizedProps);e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate)}return void(null!==(t=n.updateQueue)&&zt(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:e=T(n.child.stateNode);break;case 1:e=n.child.stateNode}zt(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.effectTag&&ee(e,n.type,n.memoizedProps,n));case 6:case 4:case 12:case 19:case 17:case 20:case 21:return;case 13:return void($&&null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&Me(n)))))}throw Error(c(163))}function Fr(e,t,n){switch("function"===typeof hi&&hi(t),t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var r=e.next;pt(97<n?97:n,(function(){var e=r;do{var n=e.destroy;if(void 0!==n){var o=t;try{n()}catch(i){si(o,i)}}e=e.next}while(e!==r)}))}break;case 1:jr(t),"function"===typeof(n=t.stateNode).componentWillUnmount&&function(e,t){try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(n){si(e,n)}}(t,n);break;case 5:jr(t);break;case 4:q?Yr(e,t,n):K&&function(e){if(K){e=e.stateNode.containerInfo;var t=fe(e);ge(e,t)}}(t)}}function Br(e,t,n){for(var r=t;;)if(Fr(e,r,n),null===r.child||q&&4===r.tag){if(r===t)break;for(;null===r.sibling;){if(null===r.return||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}else r.child.return=r,r=r.child}function zr(e){var t=e.alternate;e.return=null,e.child=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.alternate=null,e.firstEffect=null,e.lastEffect=null,e.pendingProps=null,e.memoizedProps=null,e.stateNode=null,null!==t&&zr(t)}function Hr(e){return 5===e.tag||3===e.tag||4===e.tag}function Wr(e){if(q){e:{for(var t=e.return;null!==t;){if(Hr(t)){var n=t;break e}t=t.return}throw Error(c(160))}switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(c(161))}16&n.effectTag&&(ae(t),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||Hr(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.effectTag)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break e}}r?Vr(e,n,t):Gr(e,n,t)}}function Vr(e,t,n){var r=e.tag,o=5===r||6===r;if(o)e=o?e.stateNode:e.stateNode.instance,t?re(n,e,t):Z(n,e);else if(4!==r&&null!==(e=e.child))for(Vr(e,t,n),e=e.sibling;null!==e;)Vr(e,t,n),e=e.sibling}function Gr(e,t,n){var r=e.tag,o=5===r||6===r;if(o)e=o?e.stateNode:e.stateNode.instance,t?ne(n,e,t):Q(n,e);else if(4!==r&&null!==(e=e.child))for(Gr(e,t,n),e=e.sibling;null!==e;)Gr(e,t,n),e=e.sibling}function Yr(e,t,n){for(var r,o,i=t,a=!1;;){if(!a){a=i.return;e:for(;;){if(null===a)throw Error(c(160));switch(r=a.stateNode,a.tag){case 5:o=!1;break e;case 3:case 4:r=r.containerInfo,o=!0;break e}a=a.return}a=!0}if(5===i.tag||6===i.tag)Br(e,i,n),o?ie(r,i.stateNode):oe(r,i.stateNode);else if(4===i.tag){if(null!==i.child){r=i.stateNode.containerInfo,o=!0,i.child.return=i,i=i.child;continue}}else if(Fr(e,i,n),null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;4===(i=i.return).tag&&(a=!1)}i.sibling.return=i.return,i=i.sibling}}function Ur(e,t){if(q){switch(t.tag){case 0:case 11:case 14:case 15:case 22:return void Rr(3,t);case 1:case 12:case 17:return;case 5:var n=t.stateNode;if(null!=n){var r=t.memoizedProps;e=null!==e?e.memoizedProps:r;var o=t.type,i=t.updateQueue;t.updateQueue=null,null!==i&&te(n,i,o,e,r,t)}return;case 6:if(null===t.stateNode)throw Error(c(162));return n=t.memoizedProps,void J(t.stateNode,null!==e?e.memoizedProps:n,n);case 3:return void($&&(t=t.stateNode,t.hydrate&&(t.hydrate=!1,Pe(t.containerInfo))));case 13:return Xr(t),void qr(t);case 19:return void qr(t)}throw Error(c(163))}switch(t.tag){case 0:case 11:case 14:case 15:case 22:return void Rr(3,t);case 12:return;case 13:return Xr(t),void qr(t);case 19:return void qr(t);case 3:$&&(n=t.stateNode).hydrate&&(n.hydrate=!1,Pe(n.containerInfo))}e:if(K){switch(t.tag){case 1:case 5:case 6:case 20:break e;case 3:case 4:t=t.stateNode,ge(t.containerInfo,t.pendingChildren);break e}throw Error(c(163))}}function Xr(e){var t=e;if(null===e.memoizedState)var n=!1;else n=!0,t=e.child,_o=ut();if(q&&null!==t)e:if(e=t,q)for(t=e;;){if(5===t.tag){var r=t.stateNode;n?le(r):se(t.stateNode,t.memoizedProps)}else if(6===t.tag)r=t.stateNode,n?ce(r):ue(r,t.memoizedProps);else{if(13===t.tag&&null!==t.memoizedState&&null===t.memoizedState.dehydrated){(r=t.child.sibling).return=t,t=r;continue}if(null!==t.child){t.child.return=t,t=t.child;continue}}if(t===e)break e;for(;null===t.sibling;){if(null===t.return||t.return===e)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}}function qr(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Ir),t.forEach((function(t){var r=di.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}var Kr="function"===typeof WeakMap?WeakMap:Map;function $r(e,t,n){(n=Dt(n,null)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Po||(Po=!0,Mo=r),Tr(e,t)},n}function Qr(e,t,n){(n=Dt(n,null)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var o=t.value;n.payload=function(){return Tr(e,t),r(o)}}var i=e.stateNode;return null!==i&&"function"===typeof i.componentDidCatch&&(n.callback=function(){"function"!==typeof r&&(null===ko?ko=new Set([this]):ko.add(this),Tr(e,t));var n=t.stack;this.componentDidCatch(t.value,{componentStack:null!==n?n:""})}),n}var Zr,Jr=Math.ceil,eo=s.ReactCurrentDispatcher,to=s.ReactCurrentOwner,no=0,ro=8,oo=16,io=32,ao=0,lo=1,co=2,so=3,uo=4,fo=5,po=no,ho=null,go=null,vo=0,mo=ao,yo=null,bo=1073741823,xo=1073741823,wo=null,So=0,Oo=!1,_o=0,Co=500,Eo=null,Po=!1,Mo=null,ko=null,Ao=!1,Io=null,To=90,jo=null,Lo=0,Ro=null,Do=0;function No(){return(po&(oo|io))!==no?1073741821-(ut()/10|0):0!==Do?Do:Do=1073741821-(ut()/10|0)}function Fo(e,t,n){if(0===(2&(t=t.mode)))return 1073741823;var r=dt();if(0===(4&t))return 99===r?1073741823:1073741822;if((po&oo)!==no)return vo;if(null!==n)e=yt(e,0|n.timeoutMs||5e3,250);else switch(r){case 99:e=1073741823;break;case 98:e=yt(e,150,100);break;case 97:case 96:e=yt(e,5e3,250);break;case 95:e=2;break;default:throw Error(c(326))}return null!==ho&&e===vo&&--e,e}function Bo(e,t){if(50<Lo)throw Lo=0,Ro=null,Error(c(185));if(null!==(e=zo(e,t))){var n=dt();1073741823===t?(po&ro)!==no&&(po&(oo|io))===no?Go(e):(Wo(e),po===no&&vt()):Wo(e),(4&po)===no||98!==n&&99!==n||(null===jo?jo=new Map([[e,t]]):(void 0===(n=jo.get(e))||n>t)&&jo.set(e,t))}}function zo(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t);var r=e.return,o=null;if(null===r&&3===e.tag)o=e.stateNode;else for(;null!==r;){if(n=r.alternate,r.childExpirationTime<t&&(r.childExpirationTime=t),null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t),null===r.return&&3===r.tag){o=r.stateNode;break}r=r.return}return null!==o&&(ho===o&&(Qo(t),mo===uo&&Ci(o,vo)),Ei(o,t)),o}function Ho(e){var t=e.lastExpiredTime;if(0!==t)return t;if(!_i(e,t=e.firstPendingTime))return t;var n=e.lastPingedTime;return 2>=(e=n>(e=e.nextKnownPendingLevel)?n:e)&&t!==e?0:e}function Wo(e){if(0!==e.lastExpiredTime)e.callbackExpirationTime=1073741823,e.callbackPriority=99,e.callbackNode=gt(Go.bind(null,e));else{var t=Ho(e),n=e.callbackNode;if(0===t)null!==n&&(e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90);else{var r=No();if(r=1073741823===t?99:1===t||2===t?95:0>=(r=10*(1073741821-t)-10*(1073741821-r))?99:250>=r?98:5250>=r?97:95,null!==n){var o=e.callbackPriority;if(e.callbackExpirationTime===t&&o>=r)return;n!==rt&&qe(n)}e.callbackExpirationTime=t,e.callbackPriority=r,t=1073741823===t?gt(Go.bind(null,e)):ht(r,Vo.bind(null,e),{timeout:10*(1073741821-t)-ut()}),e.callbackNode=t}}}function Vo(e,t){if(Do=0,t)return Pi(e,t=No()),Wo(e),null;var n=Ho(e);if(0!==n){if(t=e.callbackNode,(po&(oo|io))!==no)throw Error(c(327));if(ai(),e===ho&&n===vo||Xo(e,n),null!==go){var r=po;po|=oo;for(var o=Ko();;)try{Jo();break}catch(l){qo(e,l)}if(Pt(),po=r,eo.current=o,mo===lo)throw t=yo,Xo(e,n),Ci(e,n),Wo(e),t;if(null===go)switch(o=e.finishedWork=e.current.alternate,e.finishedExpirationTime=n,r=mo,ho=null,r){case ao:case lo:throw Error(c(345));case co:Pi(e,2<n?2:n);break;case so:if(Ci(e,n),n===(r=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=ni(o)),1073741823===bo&&10<(o=_o+Co-ut())){if(Oo){var i=e.lastPingedTime;if(0===i||i>=n){e.lastPingedTime=n,Xo(e,n);break}}if(0!==(i=Ho(e))&&i!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}e.timeoutHandle=G(ri.bind(null,e),o);break}ri(e);break;case uo:if(Ci(e,n),n===(r=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=ni(o)),Oo&&(0===(o=e.lastPingedTime)||o>=n)){e.lastPingedTime=n,Xo(e,n);break}if(0!==(o=Ho(e))&&o!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}if(1073741823!==xo?r=10*(1073741821-xo)-ut():1073741823===bo?r=0:(r=10*(1073741821-bo)-5e3,0>(r=(o=ut())-r)&&(r=0),(n=10*(1073741821-n)-o)<(r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Jr(r/1960))-r)&&(r=n)),10<r){e.timeoutHandle=G(ri.bind(null,e),r);break}ri(e);break;case fo:if(1073741823!==bo&&null!==wo){i=bo;var a=wo;if(0>=(r=0|a.busyMinDurationMs)?r=0:(o=0|a.busyDelayMs,r=(i=ut()-(10*(1073741821-i)-(0|a.timeoutMs||5e3)))<=o?0:o+r-i),10<r){Ci(e,n),e.timeoutHandle=G(ri.bind(null,e),r);break}}ri(e);break;default:throw Error(c(329))}if(Wo(e),e.callbackNode===t)return Vo.bind(null,e)}}return null}function Go(e){var t=e.lastExpiredTime;if(t=0!==t?t:1073741823,(po&(oo|io))!==no)throw Error(c(327));if(ai(),e===ho&&t===vo||Xo(e,t),null!==go){var n=po;po|=oo;for(var r=Ko();;)try{Zo();break}catch(o){qo(e,o)}if(Pt(),po=n,eo.current=r,mo===lo)throw n=yo,Xo(e,t),Ci(e,t),Wo(e),n;if(null!==go)throw Error(c(261));e.finishedWork=e.current.alternate,e.finishedExpirationTime=t,ho=null,ri(e),Wo(e)}return null}function Yo(e,t){var n=po;po|=1;try{return e(t)}finally{(po=n)===no&&vt()}}function Uo(e,t){if((po&(oo|io))!==no)throw Error(c(187));var n=po;po|=1;try{return pt(99,e.bind(null,t))}finally{po=n,vt()}}function Xo(e,t){e.finishedWork=null,e.finishedExpirationTime=0;var n=e.timeoutHandle;if(n!==U&&(e.timeoutHandle=U,Y(n)),null!==go)for(n=go.return;null!==n;){var r=n;switch(r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&He();break;case 3:cn(),je(Ne),je(De);break;case 5:un(r);break;case 4:cn();break;case 13:case 19:je(dn);break;case 10:kt(r)}n=n.return}ho=e,go=yi(e.current,null),vo=t,mo=ao,yo=null,xo=bo=1073741823,wo=null,So=0,Oo=!1}function qo(e,n){for(;;){try{if(Pt(),hn.current=Yn,xn)for(var r=mn.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}if(vn=0,bn=yn=mn=null,xn=!1,null===go||null===go.return)return mo=lo,yo=n,go=null;e:{var i=e,a=go.return,l=go,c=n;if(n=vo,l.effectTag|=2048,l.firstEffect=l.lastEffect=null,null!==c&&"object"===(0,t.default)(c)&&"function"===typeof c.then){var s=c;if(0===(2&l.mode)){var u=l.alternate;u?(l.updateQueue=u.updateQueue,l.memoizedState=u.memoizedState,l.expirationTime=u.expirationTime):(l.updateQueue=null,l.memoizedState=null)}var d=0!==(1&dn.current),f=a;do{var p;if(p=13===f.tag){var h=f.memoizedState;if(null!==h)p=null!==h.dehydrated;else{var g=f.memoizedProps;p=void 0!==g.fallback&&(!0!==g.unstable_avoidThisFallback||!d)}}if(p){var v=f.updateQueue;if(null===v){var m=new Set;m.add(s),f.updateQueue=m}else v.add(s);if(0===(2&f.mode)){if(f.effectTag|=64,l.effectTag&=-2981,1===l.tag)if(null===l.alternate)l.tag=17;else{var y=Dt(1073741823,null);y.tag=2,Nt(l,y)}l.expirationTime=1073741823;break e}c=void 0,l=n;var b=i.pingCache;if(null===b?(b=i.pingCache=new Kr,c=new Set,b.set(s,c)):void 0===(c=b.get(s))&&(c=new Set,b.set(s,c)),!c.has(l)){c.add(l);var x=ui.bind(null,i,s,l);s.then(x,x)}f.effectTag|=4096,f.expirationTime=n;break e}f=f.return}while(null!==f);c=Error((P(l.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."+Ae(l))}mo!==fo&&(mo=co),c=Ar(c,l),f=a;do{switch(f.tag){case 3:s=c,f.effectTag|=4096,f.expirationTime=n,Ft(f,$r(f,s,n));break e;case 1:s=c;var w=f.type,S=f.stateNode;if(0===(64&f.effectTag)&&("function"===typeof w.getDerivedStateFromError||null!==S&&"function"===typeof S.componentDidCatch&&(null===ko||!ko.has(S)))){f.effectTag|=4096,f.expirationTime=n,Ft(f,Qr(f,s,n));break e}}f=f.return}while(null!==f)}go=ti(go)}catch(O){n=O;continue}break}}function Ko(){var e=eo.current;return eo.current=Yn,null===e?Yn:e}function $o(e,t){e<bo&&2<e&&(bo=e),null!==t&&e<xo&&2<e&&(xo=e,wo=t)}function Qo(e){e>So&&(So=e)}function Zo(){for(;null!==go;)go=ei(go)}function Jo(){for(;null!==go&&!ot();)go=ei(go)}function ei(e){var t=Zr(e.alternate,e,vo);return e.memoizedProps=e.pendingProps,null===t&&(t=ti(e)),to.current=null,t}function ti(e){go=e;do{var t=go.alternate;if(e=go.return,0===(2048&go.effectTag)){if(t=Mr(t,go,vo),1===vo||1!==go.childExpirationTime){for(var n=0,r=go.child;null!==r;){var o=r.expirationTime,i=r.childExpirationTime;o>n&&(n=o),i>n&&(n=i),r=r.sibling}go.childExpirationTime=n}if(null!==t)return t;null!==e&&0===(2048&e.effectTag)&&(null===e.firstEffect&&(e.firstEffect=go.firstEffect),null!==go.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=go.firstEffect),e.lastEffect=go.lastEffect),1<go.effectTag&&(null!==e.lastEffect?e.lastEffect.nextEffect=go:e.firstEffect=go,e.lastEffect=go))}else{if(null!==(t=kr(go)))return t.effectTag&=2047,t;null!==e&&(e.firstEffect=e.lastEffect=null,e.effectTag|=2048)}if(null!==(t=go.sibling))return t;go=e}while(null!==go);return mo===ao&&(mo=fo),null}function ni(e){var t=e.expirationTime;return t>(e=e.childExpirationTime)?t:e}function ri(e){var t=dt();return pt(99,oi.bind(null,e,t)),null}function oi(e,t){do{ai()}while(null!==Io);if((po&(oo|io))!==no)throw Error(c(327));var n=e.finishedWork,r=e.finishedExpirationTime;if(null===n)return null;if(e.finishedWork=null,e.finishedExpirationTime=0,n===e.current)throw Error(c(177));e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90,e.nextKnownPendingLevel=0;var o=ni(n);if(e.firstPendingTime=o,r<=e.lastSuspendedTime?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:r<=e.firstSuspendedTime&&(e.firstSuspendedTime=r-1),r<=e.lastPingedTime&&(e.lastPingedTime=0),r<=e.lastExpiredTime&&(e.lastExpiredTime=0),e===ho&&(go=ho=null,vo=0),1<n.effectTag?null!==n.lastEffect?(n.lastEffect.nextEffect=n,o=n.firstEffect):o=n:o=n.firstEffect,null!==o){var i=po;po|=io,to.current=null,R(e.containerInfo),Eo=o;do{try{ii()}catch(y){if(null===Eo)throw Error(c(330));si(Eo,y),Eo=Eo.nextEffect}}while(null!==Eo);Eo=o;do{try{for(var a=e,l=t;null!==Eo;){var s=Eo.effectTag;if(16&s&&q&&ae(Eo.stateNode),128&s){var u=Eo.alternate;if(null!==u){var d=u.ref;null!==d&&("function"===typeof d?d(null):d.current=null)}}switch(1038&s){case 2:Wr(Eo),Eo.effectTag&=-3;break;case 6:Wr(Eo),Eo.effectTag&=-3,Ur(Eo.alternate,Eo);break;case 1024:Eo.effectTag&=-1025;break;case 1028:Eo.effectTag&=-1025,Ur(Eo.alternate,Eo);break;case 4:Ur(Eo.alternate,Eo);break;case 8:var f=a,p=Eo,h=l;q?Yr(f,p,h):Br(f,p,h),zr(p)}Eo=Eo.nextEffect}}catch(y){if(null===Eo)throw Error(c(330));si(Eo,y),Eo=Eo.nextEffect}}while(null!==Eo);D(e.containerInfo),e.current=n,Eo=o;do{try{for(s=e;null!==Eo;){var g=Eo.effectTag;if(36&g&&Nr(s,Eo.alternate,Eo),128&g){u=void 0;var v=Eo.ref;if(null!==v){var m=Eo.stateNode;u=5===Eo.tag?T(m):m,"function"===typeof v?v(u):v.current=u}}Eo=Eo.nextEffect}}catch(y){if(null===Eo)throw Error(c(330));si(Eo,y),Eo=Eo.nextEffect}}while(null!==Eo);Eo=null,it(),po=i}else e.current=n;if(Ao)Ao=!1,Io=e,To=t;else for(Eo=o;null!==Eo;)t=Eo.nextEffect,Eo.nextEffect=null,Eo=t;if(0===(t=e.firstPendingTime)&&(ko=null),1073741823===t?e===Ro?Lo++:(Lo=0,Ro=e):Lo=0,"function"===typeof pi&&pi(n.stateNode,r),Wo(e),Po)throw Po=!1,e=Mo,Mo=null,e;return(po&ro)!==no||vt(),null}function ii(){for(;null!==Eo;){var e=Eo.effectTag;0!==(256&e)&&Lr(Eo.alternate,Eo),0===(512&e)||Ao||(Ao=!0,ht(97,(function(){return ai(),null}))),Eo=Eo.nextEffect}}function ai(){if(90!==To){var e=97<To?97:To;return To=90,pt(e,li)}}function li(){if(null===Io)return!1;var e=Io;if(Io=null,(po&(oo|io))!==no)throw Error(c(331));var t=po;for(po|=io,e=e.current.firstEffect;null!==e;){try{var n=e;if(0!==(512&n.effectTag))switch(n.tag){case 0:case 11:case 15:case 22:Rr(5,n),Dr(5,n)}}catch(r){if(null===e)throw Error(c(330));si(e,r)}n=e.nextEffect,e.nextEffect=null,e=n}return po=t,vt(),!0}function ci(e,t,n){Nt(e,t=$r(e,t=Ar(n,t),1073741823)),null!==(e=zo(e,1073741823))&&Wo(e)}function si(e,t){if(3===e.tag)ci(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){ci(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"===typeof n.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===ko||!ko.has(r))){Nt(n,e=Qr(n,e=Ar(t,e),1073741823)),null!==(n=zo(n,1073741823))&&Wo(n);break}}n=n.return}}function ui(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),ho===e&&vo===n?mo===uo||mo===so&&1073741823===bo&&ut()-_o<Co?Xo(e,vo):Oo=!0:_i(e,n)&&(0!==(t=e.lastPingedTime)&&t<n||(e.lastPingedTime=n,Wo(e)))}function di(e,t){var n=e.stateNode;null!==n&&n.delete(t),0===(t=0)&&(t=Fo(t=No(),e,null)),null!==(e=zo(e,t))&&Wo(e)}Zr=function(e,n,r){var o=n.expirationTime;if(null!==e){var i=n.pendingProps;if(e.memoizedProps!==i||Ne.current)ir=!0;else{if(o<r){switch(ir=!1,n.tag){case 3:hr(n),rr();break;case 5:if(sn(n),4&n.mode&&1!==r&&W(n.type,i))return n.expirationTime=n.childExpirationTime=1,null;break;case 1:ze(n.type)&&Ge(n);break;case 4:ln(n,n.stateNode.containerInfo);break;case 10:Mt(n,n.memoizedProps.value);break;case 13:if(null!==n.memoizedState)return 0!==(o=n.child.childExpirationTime)&&o>=r?xr(e,n,r):(Le(dn,1&dn.current),null!==(n=_r(e,n,r))?n.sibling:null);Le(dn,1&dn.current);break;case 19:if(o=n.childExpirationTime>=r,0!==(64&e.effectTag)){if(o)return Or(e,n,r);n.effectTag|=64}if(null!==(i=n.memoizedState)&&(i.rendering=null,i.tail=null),Le(dn,dn.current),!o)return null}return _r(e,n,r)}ir=!1}}else ir=!1;switch(n.expirationTime=0,n.tag){case 2:if(o=n.type,null!==e&&(e.alternate=null,n.alternate=null,n.effectTag|=2),e=n.pendingProps,i=Be(n,De.current),It(n,r),i=On(null,n,o,e,i,r),n.effectTag|=1,"object"===(0,t.default)(i)&&null!==i&&"function"===typeof i.render&&void 0===i.$$typeof){if(n.tag=1,n.memoizedState=null,n.updateQueue=null,ze(o)){var a=!0;Ge(n)}else a=!1;n.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,Lt(n);var l=o.getDerivedStateFromProps;"function"===typeof l&&Vt(n,o,l,e),i.updater=Gt,n.stateNode=i,i._reactInternalFiber=n,qt(n,o,e,r),n=pr(null,n,o,!0,a,r)}else n.tag=0,ar(null,n,i,r),n=n.child;return n;case 16:e:{if(i=n.elementType,null!==e&&(e.alternate=null,n.alternate=null,n.effectTag|=2),e=n.pendingProps,function(e){if(-1===e._status){e._status=0;var t=e._ctor;t=t(),e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}}(i),1!==i._status)throw i._result;switch(i=i._result,n.type=i,a=n.tag=function(e){if("function"===typeof e)return mi(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===b)return 11;if(e===S)return 14}return 2}(i),e=St(i,e),a){case 0:n=dr(null,n,i,e,r);break e;case 1:n=fr(null,n,i,e,r);break e;case 11:n=lr(null,n,i,e,r);break e;case 14:n=cr(null,n,i,St(i.type,e),o,r);break e}throw Error(c(306,i,""))}return n;case 0:return o=n.type,i=n.pendingProps,dr(e,n,o,i=n.elementType===o?i:St(o,i),r);case 1:return o=n.type,i=n.pendingProps,fr(e,n,o,i=n.elementType===o?i:St(o,i),r);case 3:if(hr(n),o=n.updateQueue,null===e||null===o)throw Error(c(282));if(o=n.pendingProps,i=null!==(i=n.memoizedState)?i.element:null,Rt(e,n),Bt(n,o,null,r),(o=n.memoizedState.element)===i)rr(),n=_r(e,n,r);else{if((i=n.stateNode.hydrate)&&($?($n=Oe(n.stateNode.containerInfo),Kn=n,i=Qn=!0):i=!1),i)for(r=en(n,null,o,r),n.child=r;r;)r.effectTag=-3&r.effectTag|1024,r=r.sibling;else ar(e,n,o,r),rr();n=n.child}return n;case 5:return sn(n),null===e&&er(n),o=n.type,i=n.pendingProps,a=null!==e?e.memoizedProps:null,l=i.children,H(o,i)?l=null:null!==a&&H(o,a)&&(n.effectTag|=16),ur(e,n),4&n.mode&&1!==r&&W(o,i)?(n.expirationTime=n.childExpirationTime=1,n=null):(ar(e,n,l,r),n=n.child),n;case 6:return null===e&&er(n),null;case 13:return xr(e,n,r);case 4:return ln(n,n.stateNode.containerInfo),o=n.pendingProps,null===e?n.child=Jt(n,null,o,r):ar(e,n,o,r),n.child;case 11:return o=n.type,i=n.pendingProps,lr(e,n,o,i=n.elementType===o?i:St(o,i),r);case 7:return ar(e,n,n.pendingProps,r),n.child;case 8:case 12:return ar(e,n,n.pendingProps.children,r),n.child;case 10:e:{if(o=n.type._context,i=n.pendingProps,l=n.memoizedProps,Mt(n,a=i.value),null!==l){var s=l.value;if(0===(a=bt(s,a)?0:0|("function"===typeof o._calculateChangedBits?o._calculateChangedBits(s,a):1073741823))){if(l.children===i.children&&!Ne.current){n=_r(e,n,r);break e}}else for(null!==(s=n.child)&&(s.return=n);null!==s;){var u=s.dependencies;if(null!==u){l=s.child;for(var d=u.firstContext;null!==d;){if(d.context===o&&0!==(d.observedBits&a)){1===s.tag&&((d=Dt(r,null)).tag=2,Nt(s,d)),s.expirationTime<r&&(s.expirationTime=r),null!==(d=s.alternate)&&d.expirationTime<r&&(d.expirationTime=r),At(s.return,r),u.expirationTime<r&&(u.expirationTime=r);break}d=d.next}}else l=10===s.tag&&s.type===n.type?null:s.child;if(null!==l)l.return=s;else for(l=s;null!==l;){if(l===n){l=null;break}if(null!==(s=l.sibling)){s.return=l.return,l=s;break}l=l.return}s=l}}ar(e,n,i.children,r),n=n.child}return n;case 9:return i=n.type,o=(a=n.pendingProps).children,It(n,r),o=o(i=Tt(i,a.unstable_observedBits)),n.effectTag|=1,ar(e,n,o,r),n.child;case 14:return a=St(i=n.type,n.pendingProps),cr(e,n,i,a=St(i.type,a),o,r);case 15:return sr(e,n,n.type,n.pendingProps,o,r);case 17:return o=n.type,i=n.pendingProps,i=n.elementType===o?i:St(o,i),null!==e&&(e.alternate=null,n.alternate=null,n.effectTag|=2),n.tag=1,ze(o)?(e=!0,Ge(n)):e=!1,It(n,r),Ut(n,o,i),qt(n,o,i,r),pr(null,n,o,!0,e,r);case 19:return Or(e,n,r)}throw Error(c(156,n.tag))};var fi={current:!1},pi=null,hi=null;function gi(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function vi(e,t,n,r){return new gi(e,t,n,r)}function mi(e){return!(!(e=e.prototype)||!e.isReactComponent)}function yi(e,t){var n=e.alternate;return null===n?((n=vi(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.effectTag=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childExpirationTime=e.childExpirationTime,n.expirationTime=e.expirationTime,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{expirationTime:t.expirationTime,firstContext:t.firstContext,responders:t.responders},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function bi(e,n,r,o,i,a){var l=2;if(o=e,"function"===typeof e)mi(e)&&(l=1);else if("string"===typeof e)l=5;else e:switch(e){case p:return xi(r.children,i,a,n);case y:l=8,i|=7;break;case h:l=8,i|=1;break;case g:return(e=vi(12,r,n,8|i)).elementType=g,e.type=g,e.expirationTime=a,e;case x:return(e=vi(13,r,n,i)).type=x,e.elementType=x,e.expirationTime=a,e;case w:return(e=vi(19,r,n,i)).elementType=w,e.expirationTime=a,e;default:if("object"===(0,t.default)(e)&&null!==e)switch(e.$$typeof){case v:l=10;break e;case m:l=9;break e;case b:l=11;break e;case S:l=14;break e;case O:l=16,o=null;break e;case _:l=22;break e}throw Error(c(130,null==e?e:(0,t.default)(e),""))}return(n=vi(l,r,n,i)).elementType=e,n.type=o,n.expirationTime=a,n}function xi(e,t,n,r){return(e=vi(7,e,r,t)).expirationTime=n,e}function wi(e,t,n){return(e=vi(6,e,null,t)).expirationTime=n,e}function Si(e,t,n){return(t=vi(4,null!==e.children?e.children:[],e.key,t)).expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Oi(e,t,n){this.tag=t,this.current=null,this.containerInfo=e,this.pingCache=this.pendingChildren=null,this.finishedExpirationTime=0,this.finishedWork=null,this.timeoutHandle=U,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=90,this.lastExpiredTime=this.lastPingedTime=this.nextKnownPendingLevel=this.lastSuspendedTime=this.firstSuspendedTime=this.firstPendingTime=0}function _i(e,t){var n=e.firstSuspendedTime;return e=e.lastSuspendedTime,0!==n&&n>=t&&e<=t}function Ci(e,t){var n=e.firstSuspendedTime,r=e.lastSuspendedTime;n<t&&(e.firstSuspendedTime=t),(r>t||0===n)&&(e.lastSuspendedTime=t),t<=e.lastPingedTime&&(e.lastPingedTime=0),t<=e.lastExpiredTime&&(e.lastExpiredTime=0)}function Ei(e,t){t>e.firstPendingTime&&(e.firstPendingTime=t);var n=e.firstSuspendedTime;0!==n&&(t>=n?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:t>=e.lastSuspendedTime&&(e.lastSuspendedTime=t+1),t>e.nextKnownPendingLevel&&(e.nextKnownPendingLevel=t))}function Pi(e,t){var n=e.lastExpiredTime;(0===n||n>t)&&(e.lastExpiredTime=t)}var Mi=null;function ki(e){var t=e._reactInternalFiber;if(void 0===t){if("function"===typeof e.render)throw Error(c(188));throw Error(c(268,Object.keys(e)))}return null===(e=I(t))?null:e.stateNode}function Ai(e,t){null!==(e=e.memoizedState)&&null!==e.dehydrated&&e.retryTime<t&&(e.retryTime=t)}function Ii(e,t){Ai(e,t),(e=e.alternate)&&Ai(e,t)}var Ti=s.IsSomeRendererActing,ji="function"===typeof l.unstable_flushAllWithoutAsserting,Li=l.unstable_flushAllWithoutAsserting||function(){for(var e=!1;ai();)e=!0;return e};function Ri(t){try{Li(),function(t){if(null===Mi)try{var n=("require"+Math.random()).slice(0,7);Mi=(e&&e[n])("timers").setImmediate}catch(r){Mi=function(e){var t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(void 0)}}Mi(t)}((function(){Li()?Ri(t):t()}))}catch(n){t(n)}}var Di=0,Ni=!1,Fi={__proto__:null,createContainer:function(e,t,n){return e=new Oi(e,t,n),t=vi(3,null,null,2===t?7:1===t?3:0),e.current=t,t.stateNode=e,Lt(t),e},updateContainer:function(e,t,n,r){var o=t.current,i=No(),a=Ht.suspense;i=Fo(i,o,a);e:if(n){t:{if(M(n=n._reactInternalFiber)!==n||1!==n.tag)throw Error(c(170));var l=n;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(ze(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(null!==l);throw Error(c(171))}if(1===n.tag){var s=n.type;if(ze(s)){n=Ve(n,s,l);break e}}n=l}else n=Re;return null===t.context?t.context=n:t.pendingContext=n,(t=Dt(i,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),Nt(o,t),Bo(o,i),i},batchedEventUpdates:function(e,t){var n=po;po|=2;try{return e(t)}finally{(po=n)===no&&vt()}},batchedUpdates:Yo,unbatchedUpdates:function(e,t){var n=po;po&=-2,po|=ro;try{return e(t)}finally{(po=n)===no&&vt()}},deferredUpdates:function(e){return pt(97,e)},syncUpdates:function(e,t,n,r){return pt(99,e.bind(null,t,n,r))},discreteUpdates:function(e,t,n,r,o){var i=po;po|=4;try{return pt(98,e.bind(null,t,n,r,o))}finally{(po=i)===no&&vt()}},flushDiscreteUpdates:function(){(po&(1|oo|io))===no&&(function(){if(null!==jo){var e=jo;jo=null,e.forEach((function(e,t){Pi(t,e),Wo(t)})),vt()}}(),ai())},flushControlled:function(e){var t=po;po|=1;try{pt(99,e)}finally{(po=t)===no&&vt()}},flushSync:Uo,flushPassiveEffects:ai,IsThisRendererActing:fi,getPublicRootInstance:function(e){return(e=e.current).child?5===e.child.tag?T(e.child.stateNode):e.child.stateNode:null},attemptSynchronousHydration:function(e){switch(e.tag){case 3:var t=e.stateNode;t.hydrate&&function(e,t){Pi(e,t),Wo(e),(po&(oo|io))===no&&vt()}(t,t.firstPendingTime);break;case 13:Uo((function(){return Bo(e,1073741823)})),t=yt(No(),150,100),Ii(e,t)}},attemptUserBlockingHydration:function(e){if(13===e.tag){var t=yt(No(),150,100);Bo(e,t),Ii(e,t)}},attemptContinuousHydration:function(e){13===e.tag&&(Bo(e,3),Ii(e,3))},attemptHydrationAtCurrentPriority:function(e){if(13===e.tag){var t=No();Bo(e,t=Fo(t,e,null)),Ii(e,t)}},findHostInstance:ki,findHostInstanceWithWarning:function(e){return ki(e)},findHostInstanceWithNoPortals:function(e){return null===(e=function(e){if(!(e=A(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child&&4!==t.tag)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}(e))?null:20===e.tag?e.stateNode.instance:e.stateNode},shouldSuspend:function(){return!1},injectIntoDevTools:function(e){var t=e.findFiberByHostInstance;return function(e){if("undefined"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var n=t.inject(e);pi=function(e){try{t.onCommitFiberRoot(n,e,void 0,64===(64&e.current.effectTag))}catch(r){}},hi=function(e){try{t.onCommitFiberUnmount(n,e)}catch(r){}}}catch(r){}return!0}(i({},e,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:s.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=I(e))?null:e.stateNode},findFiberByHostInstance:function(e){return t?t(e):null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null}))},act:function(e){function n(){Di--,Ti.current=r,fi.current=o}!1===Ni&&(Ni=!0,console.error("act(...) is not supported in production builds of React, and might not behave as expected.")),Di++;var r=Ti.current,o=fi.current;Ti.current=!0,fi.current=!0;try{var i=Yo(e)}catch(a){throw n(),a}if(null!==i&&"object"===(0,t.default)(i)&&"function"===typeof i.then)return{then:function(e,t){i.then((function(){1<Di||!0===ji&&!0===r?(n(),e()):Ri((function(r){n(),r?t(r):e()}))}),(function(e){n(),t(e)}))}};try{1!==Di||!1!==ji&&!1!==r||Li(),n()}catch(a){throw n(),a}return{then:function(e){e()}}}},Bi=Fi&&Fi.default||Fi;e.exports=Bi.default||Bi;var zi=e.exports;return e.exports=r,zi}}).call(this,n(1034)(e))},function(e,t,n){"use strict";e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){"use strict";var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(o){return!1}}()?Object.assign:function(e,t){for(var n,a,l=function(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),c=1;c<arguments.length;c++){for(var s in n=Object(arguments[c]))o.call(n,s)&&(l[s]=n[s]);if(r){a=r(n);for(var u=0;u<a.length;u++)i.call(n,a[u])&&(l[a[u]]=n[a[u]])}}return l}},function(e,t,n){"use strict";e.exports=n(1037)},function(e,t,n){"use strict";var r,o,i,a,l,c=n(2)(n(6));if("undefined"===typeof window||"function"!==typeof MessageChannel){var s=null,u=null,d=function e(){if(null!==s)try{var n=t.unstable_now();s(!0,n),s=null}catch(r){throw setTimeout(e,0),r}},f=Date.now();t.unstable_now=function(){return Date.now()-f},r=function(e){null!==s?setTimeout(r,0,e):(s=e,setTimeout(d,0))},o=function(e,t){u=setTimeout(e,t)},i=function(){clearTimeout(u)},a=function(){return!1},l=t.unstable_forceFrameRate=function(){}}else{var p=window.performance,h=window.Date,g=window.setTimeout,v=window.clearTimeout;if("undefined"!==typeof console){var m=window.cancelAnimationFrame;"function"!==typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!==typeof m&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"===(0,c.default)(p)&&"function"===typeof p.now)t.unstable_now=function(){return p.now()};else{var y=h.now();t.unstable_now=function(){return h.now()-y}}var b=!1,x=null,w=-1,S=5,O=0;a=function(){return t.unstable_now()>=O},l=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):S=0<e?Math.floor(1e3/e):5};var _=new MessageChannel,C=_.port2;_.port1.onmessage=function(){if(null!==x){var e=t.unstable_now();O=e+S;try{x(!0,e)?C.postMessage(null):(b=!1,x=null)}catch(n){throw C.postMessage(null),n}}else b=!1},r=function(e){x=e,b||(b=!0,C.postMessage(null))},o=function(e,n){w=g((function(){e(t.unstable_now())}),n)},i=function(){v(w),w=-1}}function E(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,o=e[r];if(!(void 0!==o&&0<k(o,t)))break e;e[r]=t,e[n]=o,n=r}}function P(e){return void 0===(e=e[0])?null:e}function M(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length;r<o;){var i=2*(r+1)-1,a=e[i],l=i+1,c=e[l];if(void 0!==a&&0>k(a,n))void 0!==c&&0>k(c,a)?(e[r]=c,e[l]=n,r=l):(e[r]=a,e[i]=n,r=i);else{if(!(void 0!==c&&0>k(c,n)))break e;e[r]=c,e[l]=n,r=l}}}return t}return null}function k(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var A=[],I=[],T=1,j=null,L=3,R=!1,D=!1,N=!1;function F(e){for(var t=P(I);null!==t;){if(null===t.callback)M(I);else{if(!(t.startTime<=e))break;M(I),t.sortIndex=t.expirationTime,E(A,t)}t=P(I)}}function B(e){if(N=!1,F(e),!D)if(null!==P(A))D=!0,r(z);else{var t=P(I);null!==t&&o(B,t.startTime-e)}}function z(e,n){D=!1,N&&(N=!1,i()),R=!0;var r=L;try{for(F(n),j=P(A);null!==j&&(!(j.expirationTime>n)||e&&!a());){var l=j.callback;if(null!==l){j.callback=null,L=j.priorityLevel;var c=l(j.expirationTime<=n);n=t.unstable_now(),"function"===typeof c?j.callback=c:j===P(A)&&M(A),F(n)}else M(A);j=P(A)}if(null!==j)var s=!0;else{var u=P(I);null!==u&&o(B,u.startTime-n),s=!1}return s}finally{j=null,L=r,R=!1}}function H(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var W=l;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){D||R||(D=!0,r(z))},t.unstable_getCurrentPriorityLevel=function(){return L},t.unstable_getFirstCallbackNode=function(){return P(A)},t.unstable_next=function(e){switch(L){case 1:case 2:case 3:var t=3;break;default:t=L}var n=L;L=t;try{return e()}finally{L=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=W,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=L;L=e;try{return t()}finally{L=n}},t.unstable_scheduleCallback=function(e,n,a){var l=t.unstable_now();if("object"===(0,c.default)(a)&&null!==a){var s=a.delay;s="number"===typeof s&&0<s?l+s:l,a="number"===typeof a.timeout?a.timeout:H(e)}else a=H(e),s=l;return e={id:T++,callback:n,priorityLevel:e,startTime:s,expirationTime:a=s+a,sortIndex:-1},s>l?(e.sortIndex=s,E(I,e),null===P(A)&&e===P(I)&&(N?i():N=!0,o(B,s-l))):(e.sortIndex=a,E(A,e),D||R||(D=!0,r(z))),e},t.unstable_shouldYield=function(){var e=t.unstable_now();F(e);var n=P(A);return n!==j&&null!==j&&null!==n&&null!==n.callback&&n.startTime<=e&&n.expirationTime<j.expirationTime||a()},t.unstable_wrapCallback=function(e){var t=L;return function(){var n=L;L=t;try{return e.apply(this,arguments)}finally{L=n}}}},function(e,t,n){"use strict";e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";e.exports=function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=n(485);e.exports=function(e){if(Array.isArray(e))return r(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";e.exports=function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";e.exports=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.")},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ResizeObserver=void 0;var r=n(1045),o=n(193);t.ResizeObserver=function(){function e(e){if(0===arguments.length)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if("function"!==typeof e)throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");r.ResizeObserverController.connect(this,e)}return e.prototype.observe=function(e,t){if(0===arguments.length)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!(0,o.isElement)(e))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");r.ResizeObserverController.observe(this,e,t)},e.prototype.unobserve=function(e){if(0===arguments.length)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!(0,o.isElement)(e))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");r.ResizeObserverController.unobserve(this,e)},e.prototype.disconnect=function(){r.ResizeObserverController.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ResizeObserverController=void 0;var r=n(1046),o=n(1056),i=n(1057),a=n(152),l=new WeakMap,c=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1};t.ResizeObserverController=function(){function e(){}return e.connect=function(e,t){var n=new i.ResizeObserverDetail(e,t);l.set(e,n)},e.observe=function(e,t,n){var i=l.get(e),s=0===i.observationTargets.length;c(i.observationTargets,t)<0&&(s&&a.resizeObservers.push(i),i.observationTargets.push(new o.ResizeObservation(t,n&&n.box)),(0,r.updateCount)(1),r.scheduler.schedule())},e.unobserve=function(e,t){var n=l.get(e),o=c(n.observationTargets,t),i=1===n.observationTargets.length;o>=0&&(i&&a.resizeObservers.splice(a.resizeObservers.indexOf(n),1),n.observationTargets.splice(o,1),(0,r.updateCount)(-1))},e.disconnect=function(e){var t=this,n=l.get(e);n.observationTargets.slice().forEach((function(n){return t.unobserve(e,n.target)})),n.activeTargets.splice(0,n.activeTargets.length)},e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.updateCount=t.scheduler=void 0;var r=n(1047),o=n(489),i=n(1054),a=0,l={attributes:!0,characterData:!0,childList:!0,subtree:!0},c=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],s=function(e){return void 0===e&&(e=0),Date.now()+e},u=!1,d=function(){function e(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return e.prototype.run=function(e){var t=this;if(void 0===e&&(e=250),!u){u=!0;var n=s(e);(0,i.queueResizeObserver)((function(){var o=!1;try{o=(0,r.process)()}finally{if(u=!1,e=n-s(),!a)return;o?t.run(1e3):e>0?t.run(e):t.start()}}))}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var e=this,t=function(){return e.observer&&e.observer.observe(document.body,l)};document.body?t():o.global.addEventListener("DOMContentLoaded",t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),c.forEach((function(t){return o.global.addEventListener(t,e.listener,!0)})))},e.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),c.forEach((function(t){return o.global.removeEventListener(t,e.listener,!0)})),this.stopped=!0)},e}(),f=t.scheduler=new d;t.updateCount=function(e){!a&&e>0&&f.start(),!(a+=e)&&f.stop()}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.process=void 0;var r=n(1048),o=n(1049),i=n(1050),a=n(1051),l=n(1053);t.process=function(){var e=0;for((0,l.gatherActiveObservationsAtDepth)(e);(0,r.hasActiveObservations)();)e=(0,a.broadcastActiveObservations)(),(0,l.gatherActiveObservationsAtDepth)(e);return(0,o.hasSkippedObservations)()&&(0,i.deliverResizeLoopError)(),e>0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hasActiveObservations=void 0;var r=n(152);t.hasActiveObservations=function(){return r.resizeObservers.some((function(e){return e.activeTargets.length>0}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hasSkippedObservations=void 0;var r=n(152);t.hasSkippedObservations=function(){return r.resizeObservers.some((function(e){return e.skippedTargets.length>0}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.deliverResizeLoopError=void 0;var r="ResizeObserver loop completed with undelivered notifications.";t.deliverResizeLoopError=function(){var e;"function"===typeof ErrorEvent?e=new ErrorEvent("error",{message:r}):((e=document.createEvent("Event")).initEvent("error",!1,!1),e.message=r),window.dispatchEvent(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.broadcastActiveObservations=void 0;var r=n(152),o=n(486),i=n(490),a=n(288);t.broadcastActiveObservations=function(){var e=1/0,t=[];r.resizeObservers.forEach((function(n){if(0!==n.activeTargets.length){var r=[];n.activeTargets.forEach((function(t){var n=new o.ResizeObserverEntry(t.target),l=(0,i.calculateDepthForNode)(t.target);r.push(n),t.lastReportedSize=(0,a.calculateBoxSize)(t.target,t.observedBox),l<e&&(e=l)})),t.push((function(){n.callback.call(n.observer,r,n.observer)})),n.activeTargets.splice(0,n.activeTargets.length)}}));for(var n=0,l=t;n<l.length;n++)(0,l[n])();return e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DOMRectReadOnly=void 0;var r=n(192);t.DOMRectReadOnly=function(){function e(e,t,n,o){return this.x=e,this.y=t,this.width=n,this.height=o,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,(0,r.freeze)(this)}return e.prototype.toJSON=function(){var e=this;return{x:e.x,y:e.y,top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.gatherActiveObservationsAtDepth=void 0;var r=n(152),o=n(490);t.gatherActiveObservationsAtDepth=function(e){r.resizeObservers.forEach((function(t){t.activeTargets.splice(0,t.activeTargets.length),t.skippedTargets.splice(0,t.skippedTargets.length),t.observationTargets.forEach((function(n){n.isActive()&&((0,o.calculateDepthForNode)(n.target)>e?t.activeTargets.push(n):t.skippedTargets.push(n))}))}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.queueResizeObserver=void 0;var r=n(1055);t.queueResizeObserver=function(e){(0,r.queueMicroTask)((function(){requestAnimationFrame(e)}))}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.queueMicroTask=void 0;var o=[];t.queueMicroTask=function(e){if(!r){var t=0,n=document.createTextNode("");new MutationObserver((function(){return o.splice(0).forEach((function(e){return e()}))})).observe(n,{characterData:!0}),r=function(){n.textContent="".concat(t?t--:t++)}}o.push(e),r()}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ResizeObservation=void 0;var r=n(487),o=n(288),i=n(193);t.ResizeObservation=function(){function e(e,t){this.target=e,this.observedBox=t||r.ResizeObserverBoxOptions.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var e,t=(0,o.calculateBoxSize)(this.target,this.observedBox,!0);return e=this.target,(0,i.isSVG)(e)||(0,i.isReplacedElement)(e)||"inline"!==getComputedStyle(e).display||(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ResizeObserverDetail=void 0,t.ResizeObserverDetail=function(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return null!==e&&"function"!==typeof e&&isFinite(e.length)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(491),o=n(116);t.default=function(e){if(!r.default(e)||!o.default(e,"Object"))return!1;if(null===Object.getPrototypeOf(e))return!0;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(116);t.default=function(e){return r.default(e,"Number")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.flow=void 0,t.flow=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return e.reduce((function(e,t){return t(e)}),t)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.template=void 0;var r=n(0);t.template=function(e,t){return t?r.reduce(t,(function(e,t,n){return e.replace(new RegExp("{\\s*"+n+"\\s*}","g"),t)}),e):e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getContainerSize=void 0,t.getContainerSize=function(e){if(!e)return{width:0,height:0};var t=getComputedStyle(e);return{width:(e.clientWidth||parseInt(t.width,10))-parseInt(t.paddingLeft,10)-parseInt(t.paddingRight,10),height:(e.clientHeight||parseInt(t.height,10))-parseInt(t.paddingTop,10)-parseInt(t.paddingBottom,10)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getAllGeometriesRecursively=t.getAllElementsRecursively=t.getAllElements=t.findGeometry=void 0;var r=n(0);function o(e){return r.reduce(e.geometries,(function(e,t){return e.concat(t.elements)}),[])}t.findGeometry=function(e,t){return e.geometries.find((function(e){return e.type===t}))},t.getAllElements=o,t.getAllElementsRecursively=function e(t){return r.get(t,["views","length"],0)<=0?o(t):r.reduce(t.views,(function(t,n){return t.concat(e(n))}),o(t))},t.getAllGeometriesRecursively=function(e){return r.get(e,["views","length"],0)<=0?e.geometries:r.reduce(e.views,(function(e,t){return e.concat(t.geometries)}),e.geometries)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.transformLabel=void 0;var r=n(1),o=n(0);t.transformLabel=function(e){if(!o.isType(e,"Object"))return e;var t=r.__assign({},e);return t.formatter&&!t.content&&(t.content=t.formatter),t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSplinePath=t.catmullRom2bezier=t.smoothBezier=t.points2Path=void 0;var r=n(32);function o(e,t){var n=[];if(e.length){n.push(["M",e[0].x,e[0].y]);for(var r=1,o=e.length;r<o;r+=1){var i=e[r];n.push(["L",i.x,i.y])}t&&n.push(["Z"])}return n}function i(e,n,r){for(var o=!!n,i=[],a=0,l=e.length;a<l;a+=2)i.push([e[a],e[a+1]]);var c,s,u,d=t.smoothBezier(i,.4,o,r),f=i.length,p=[];for(a=0;a<f-1;a++)c=d[2*a],s=d[2*a+1],u=i[a+1],p.push(["C",c[0],c[1],s[0],s[1],u[0],u[1]]);return o&&(c=d[f],s=d[f+1],u=i[0],p.push(["C",c[0],c[1],s[0],s[1],u[0],u[1]])),p}t.points2Path=o,t.smoothBezier=function(e,t,n,o){var i,a,l,c,s=[],u=!!o;if(u){l=[1/0,1/0],c=[-1/0,-1/0];for(var d=0,f=e.length;d<f;d++){var p=e[d];l=r.vec2.min([0,0],l,p),c=r.vec2.max([0,0],c,p)}l=r.vec2.min([0,0],l,o[0]),c=r.vec2.max([0,0],c,o[1])}d=0;for(var h=e.length;d<h;d++){if(p=e[d],n)i=e[d?d-1:h-1],a=e[(d+1)%h];else{if(0===d||d===h-1){s.push(p);continue}i=e[d-1],a=e[d+1]}var g=[0,0];g=r.vec2.sub(g,a,i),g=r.vec2.scale(g,g,t);var v=r.vec2.distance(p,i),m=r.vec2.distance(p,a),y=v+m;0!==y&&(v/=y,m/=y);var b=r.vec2.scale([0,0],g,-v),x=r.vec2.scale([0,0],g,m),w=r.vec2.add([0,0],p,b),S=r.vec2.add([0,0],p,x);u&&(w=r.vec2.max([0,0],w,l),w=r.vec2.min([0,0],w,c),S=r.vec2.max([0,0],S,l),S=r.vec2.min([0,0],S,c)),s.push(w),s.push(S)}return n&&s.push(s.shift()),s},t.catmullRom2bezier=i,t.getSplinePath=function(e,t,n){var r=[],a=e[0],l=null;if(e.length<=2)return o(e,t);for(var c=0,s=e.length;c<s;c++){var u=e[c];l&&l.x===u.x&&l.y===u.y||(r.push(u.x),r.push(u.y),l=u)}var d=i(r,t,n||[[0,0],[1,1]]);return d.unshift(["M",a.x,a.y]),d}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.kebabCase=void 0,t.kebabCase=function(e){return e?e.match(/(([A-Z]{0,1}[a-z]*[^A-Z])|([A-Z]{1}))/g).map((function(e){return e.toLowerCase()})).join("-"):e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.measureTextWidth=void 0;var r=n(1),o=n(0),i=n(1069);t.measureTextWidth=o.memoize((function(e,t){void 0===t&&(t={});var n=t.fontSize,r=t.fontFamily,a=void 0===r?"sans-serif":r,l=t.fontWeight,c=t.fontStyle,s=t.fontVariant,u=i.getCanvasContext();return u.font=[c,l,s,n+"px",a].join(" "),u.measureText(o.isString(e)?e:"").width}),(function(e,t){return void 0===t&&(t={}),r.__spreadArrays([e],o.values(t)).join("")}))},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.getCanvasContext=void 0,t.getCanvasContext=function(){return r||(r=document.createElement("canvas").getContext("2d")),r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.removeSensor=t.getSensor=t.Sensors=void 0;var r,o=(r=n(1071))&&r.__esModule?r:{default:r},i=n(1072),a=n(293),l={};function c(e){e&&l[e]&&delete l[e]}t.Sensors=l,t.getSensor=function(e){var t=e.getAttribute(a.SizeSensorId);if(t&&l[t])return l[t];var n=(0,o.default)();e.setAttribute(a.SizeSensorId,n);var r=(0,i.createSensor)(e,(function(){return c(n)}));return l[n]=r,r},t.removeSensor=function(e){var t=e.element.getAttribute(a.SizeSensorId);e.destroy(),c(t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=1;t.default=function(){return"".concat(r++)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createSensor=void 0;var r=n(1073),o=n(1074),i="undefined"!==typeof ResizeObserver?o.createSensor:r.createSensor;t.createSensor=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createSensor=void 0;var r,o=(r=n(509))&&r.__esModule?r:{default:r},i=n(293);t.createSensor=function(e,t){var n=void 0,r=[],a=(0,o.default)((function(){r.forEach((function(t){t(e)}))})),l=function(){n&&n.parentNode&&(n.contentDocument&&n.contentDocument.defaultView.removeEventListener("resize",a),n.parentNode.removeChild(n),e.removeAttribute(i.SizeSensorId),n=void 0,r=[],t&&t())};return{element:e,bind:function(t){n||(n=function(){"static"===getComputedStyle(e).position&&(e.style.position="relative");var t=document.createElement("object");return t.onload=function(){t.contentDocument.defaultView.addEventListener("resize",a),a()},t.style.display="block",t.style.position="absolute",t.style.top="0",t.style.left="0",t.style.height="100%",t.style.width="100%",t.style.overflow="hidden",t.style.pointerEvents="none",t.style.zIndex="-1",t.style.opacity="0",t.setAttribute("class",i.SensorClassName),t.setAttribute("tabindex",i.SensorTabIndex),t.type="text/html",e.appendChild(t),t.data="about:blank",t}()),-1===r.indexOf(t)&&r.push(t)},destroy:l,unbind:function(e){var t=r.indexOf(e);-1!==t&&r.splice(t,1),0===r.length&&n&&l()}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createSensor=void 0;var r,o=n(293),i=(r=n(509))&&r.__esModule?r:{default:r};t.createSensor=function(e,t){var n=void 0,r=[],a=(0,i.default)((function(){r.forEach((function(t){t(e)}))})),l=function(){n.disconnect(),r=[],n=void 0,e.removeAttribute(o.SizeSensorId),t&&t()};return{element:e,bind:function(t){n||(n=function(){var t=new ResizeObserver(a);return t.observe(e),a(),t}()),-1===r.indexOf(t)&&r.push(t)},destroy:l,unbind:function(e){var t=r.indexOf(e);-1!==t&&r.splice(t,1),0===r.length&&n&&l()}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getCanvasPattern=void 0;var r=n(1076),o=n(1077),i=n(1078);t.getCanvasPattern=function(e){var t,n=e.type,a=e.cfg;switch(n){case"dot":t=r.createDotPattern(a);break;case"line":t=o.createLinePattern(a);break;case"square":t=i.createSquarePattern(a)}return t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createDotPattern=t.drawDot=t.defaultDotPatternCfg=void 0;var r=n(15),o=n(294);function i(e,t,n,r){var o=t.size,i=t.fill,a=t.lineWidth,l=t.stroke,c=t.fillOpacity;e.beginPath(),e.globalAlpha=c,e.fillStyle=i,e.strokeStyle=l,e.lineWidth=a,e.arc(n,r,o/2,0,2*Math.PI,!1),e.fill(),a&&e.stroke(),e.closePath()}t.defaultDotPatternCfg={size:6,padding:2,backgroundColor:"transparent",opacity:1,rotation:0,fill:"#fff",fillOpacity:.5,stroke:"transparent",lineWidth:0,isStagger:!0},t.drawDot=i,t.createDotPattern=function(e){var n=r.deepAssign({},t.defaultDotPatternCfg,e),a=n.size,l=n.padding,c=n.isStagger,s=n.rotation,u=o.getUnitPatternSize(a,l,c),d=o.getSymbolsPosition(u,c),f=o.initCanvas(u,u),p=f.getContext("2d");o.drawBackground(p,n,u);for(var h=0,g=d;h<g.length;h++){var v=g[h];i(p,n,v[0],v[1])}var m=p.createPattern(f,"repeat");if(m){var y=o.getPixelRatio(),b=o.transformMatrix(y,s);m.setTransform(b)}return m}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createLinePattern=t.drawLine=t.defaultLinePatternCfg=void 0;var r=n(15),o=n(294);function i(e,t,n){var r=t.stroke,o=t.lineWidth,i=t.strokeOpacity,a=new Path2D(n);e.globalAlpha=i,e.lineCap="square",e.strokeStyle=o?r:"transparent",e.lineWidth=o,e.stroke(a)}t.defaultLinePatternCfg={rotation:45,spacing:5,opacity:1,backgroundColor:"transparent",strokeOpacity:.5,stroke:"#fff",lineWidth:2},t.drawLine=i,t.createLinePattern=function(e){var n=r.deepAssign({},t.defaultLinePatternCfg,e),a=n.spacing,l=n.rotation,c=n.lineWidth,s=a+c||1,u=a+c||1,d="\n            M 0 0 L "+s+" 0\n            M 0 "+u+" L "+s+" "+u+"\n            ",f=o.initCanvas(s,u),p=f.getContext("2d");o.drawBackground(p,n,s,u),i(p,n,d);var h=p.createPattern(f,"repeat");if(h){var g=o.getPixelRatio(),v=o.transformMatrix(g,l);h.setTransform(v)}return h}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createSquarePattern=t.drawSquare=t.defaultSquarePatternCfg=void 0;var r=n(15),o=n(294);function i(e,t,n,r){var o=t.stroke,i=t.size,a=t.fill,l=t.lineWidth,c=t.fillOpacity;e.globalAlpha=c,e.strokeStyle=o,e.lineWidth=l,e.fillStyle=a,e.strokeRect(n-i/2,r-i/2,i,i),e.fillRect(n-i/2,r-i/2,i,i)}t.defaultSquarePatternCfg={size:6,padding:1,isStagger:!0,backgroundColor:"transparent",opacity:1,rotation:0,fill:"#fff",fillOpacity:.5,stroke:"transparent",lineWidth:0},t.drawSquare=i,t.createSquarePattern=function(e){var n=r.deepAssign({},t.defaultSquarePatternCfg,e),a=n.size,l=n.padding,c=n.isStagger,s=n.rotation,u=o.getUnitPatternSize(a,l,c),d=o.getSymbolsPosition(u,c),f=o.initCanvas(u,u),p=f.getContext("2d");o.drawBackground(p,n,u);for(var h=0,g=d;h<g.length;h++){var v=g[h];i(p,n,v[0],v[1])}var m=p.createPattern(f,"repeat");if(m){var y=o.getPixelRatio(),b=o.transformMatrix(y,s);m.setTransform(b)}return m}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.area=void 0;var r=n(1),o=n(64),i=n(15),a=n(59);t.area=function(e){var t=e.options,n=t.area,l=t.xField,c=t.yField,s=t.seriesField,u=t.smooth,d=t.tooltip,f=o.getTooltipMapping(d,[l,c,s]),p=f.fields,h=f.formatter;return n?a.geometry(i.deepAssign({},e,{options:{type:"area",colorField:s,tooltipFields:p,mapping:r.__assign({shape:u?"smooth":"area",tooltip:h},n)}})):e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.line=void 0;var r=n(0),o=n(64),i=n(15),a=n(59);t.line=function(e){var t=e.options,n=t.line,l=t.stepType,c=t.xField,s=t.yField,u=t.seriesField,d=t.smooth,f=t.connectNulls,p=t.tooltip,h=o.getTooltipMapping(p,[c,s,u]),g=h.fields,v=h.formatter;return n?a.geometry(i.deepAssign({},e,{options:{type:"line",colorField:u,tooltipFields:g,mapping:r.deepMix({shape:l||(d?"smooth":"line"),tooltip:v},n),args:{connectNulls:f}}})):e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.point=void 0;var r=n(1),o=n(64),i=n(15),a=n(59);t.point=function(e){var t=e.options,n=t.point,l=t.xField,c=t.yField,s=t.seriesField,u=t.sizeField,d=t.shapeField,f=t.tooltip,p=o.getTooltipMapping(f,[l,c,s,u,d]),h=p.fields,g=p.formatter;return n?a.geometry(i.deepAssign({},e,{options:{type:"point",colorField:s,shapeField:d,tooltipFields:h,mapping:r.__assign({tooltip:g},n)}})):e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.interval=void 0;var r=n(1),o=n(14),i=n(0),a=n(15),l=n(64),c=n(59);t.interval=function(e){var t=e.options,n=t.xField,s=t.yField,u=t.interval,d=t.seriesField,f=t.tooltip,p=t.minColumnWidth,h=t.maxColumnWidth,g=t.columnBackground,v=t.dodgePadding,m=t.intervalPadding,y=l.getTooltipMapping(f,[n,s,d]),b=y.fields,x=y.formatter,w=(u?c.geometry(a.deepAssign({},e,{options:{type:"interval",colorField:d,tooltipFields:b,mapping:r.__assign({tooltip:x},u),args:{dodgePadding:v,intervalPadding:m,minColumnWidth:p,maxColumnWidth:h,background:g}}})):e).ext;return function(e){var t=e.chart,n=e.options,r=e.ext,l=n.seriesField,c=n.isGroup,s=n.isStack,u=n.marginRatio,d=n.widthRatio,f=n.groupField,p=n.theme,h=[];return l&&(c&&h.push({type:"dodge",dodgeBy:f||l,marginRatio:u}),s&&h.push({type:"stack",marginRatio:u})),h.length&&(null===r||void 0===r?void 0:r.geometry)&&(null===r||void 0===r?void 0:r.geometry).adjust(h),i.isNil(d)||t.theme(a.deepAssign({},i.isObject(p)?p:o.getTheme(p),{columnWidthRatio:d})),e}(r.__assign(r.__assign({},e),{ext:w}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.edge=void 0;var r=n(1),o=n(64),i=n(15),a=n(59);t.edge=function(e){var t=e.options,n=t.edge,l=t.xField,c=t.yField,s=t.seriesField,u=t.tooltip,d=o.getTooltipMapping(u,[l,c,s]),f=d.fields,p=d.formatter;return n?a.geometry(i.deepAssign({},e,{options:{type:"edge",colorField:s,tooltipFields:f,mapping:r.__assign({tooltip:p},n)}})):e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.schema=void 0;var r=n(1),o=n(64),i=n(15),a=n(59);t.schema=function(e){var t=e.options,n=t.schema,l=t.xField,c=t.yField,s=t.seriesField,u=t.tooltip,d=o.getTooltipMapping(u,[l,c,s]),f=d.fields,p=d.formatter;return n?a.geometry(i.deepAssign({},e,{options:{type:"schema",colorField:s,tooltipFields:f,mapping:r.__assign({tooltip:p},n)}})):e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.violin=void 0;var r=n(1),o=n(64),i=n(15),a=n(59);t.violin=function(e){var t=e.options,n=t.violin,l=t.xField,c=t.yField,s=t.seriesField,u=t.sizeField,d=t.tooltip,f=o.getTooltipMapping(d,[l,c,s,u]),p=f.fields,h=f.formatter;return n?a.geometry(i.deepAssign({},e,{options:{type:"violin",colorField:s,tooltipFields:p,mapping:r.__assign({tooltip:h},n)}})):e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.adaptor=t.statistic=void 0;var r=n(1),o=n(0),i=n(15),a=n(34),l=n(510);function c(e){var t=e.chart,n=e.options,r=n.innerRadius,o=n.radius;return t.coordinate("theta",{innerRadius:r,radius:o}),e}function s(e,t){var n=e.chart,a=e.options,l=a.innerRadius,c=a.statistic,s=a.percent,u=a.meta;if(n.getController("annotation").clear(!0),l&&c){var d=o.get(u,["percent","formatter"])||function(e){return(100*e).toFixed(2)+"%"},f=c.content;f&&(f=i.deepAssign({},f,{content:o.isNil(f.content)?d(s):f.content})),i.renderStatistic(n,{statistic:r.__assign(r.__assign({},c),{content:f}),plotType:"ring-progress"},{percent:s})}return t&&n.render(!0),e}t.statistic=s,t.adaptor=function(e){return i.flow(l.geometry,a.scale({}),c,s,a.animation,a.theme,a.annotation())(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_OPTIONS=void 0,t.DEFAULT_OPTIONS={percent:.2,innerRadius:.8,radius:.98,color:["#FAAD14","#E8EDF3"],statistic:{title:!1,content:{style:{fontSize:"14px",fontWeight:300,fill:"#4D4D4D",textAlign:"center",textBaseline:"middle"}}},animation:{}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.adaptor=t.meta=void 0;var r=n(34),o=n(15),i=n(43),a=n(154),l=n(117),c=n(296);function s(e){var t=e.chart,n=e.options,r=n.data,c=n.color,s=n.columnStyle,u=n.columnWidthRatio,d=l.getTinyData(r);t.data(d);var f=o.deepAssign({},e,{options:{xField:a.X_FIELD,yField:a.Y_FIELD,widthRatio:u,interval:{style:s,color:c}}});return i.interval(f),t.axis(!1),t.legend(!1),t.interaction("element-active"),e}Object.defineProperty(t,"meta",{enumerable:!0,get:function(){return c.meta}}),t.adaptor=function(e){return o.flow(r.theme,r.pattern("columnStyle"),s,c.meta,r.tooltip,r.animation,r.annotation())(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_OPTIONS=t.DEFAULT_TOOLTIP_OPTIONS=void 0;var r=n(1),o=n(0);t.DEFAULT_TOOLTIP_OPTIONS={showTitle:!1,shared:!0,showMarkers:!1,customContent:function(e,t){return""+o.get(t,[0,"data","y"],0)},containerTpl:'<div class="g2-tooltip"><div class="g2-tooltip-list"></div></div>',itemTpl:"<span>{value}</span>",domStyles:{"g2-tooltip":{padding:"2px 4px",fontSize:"10px"}}},t.DEFAULT_OPTIONS={appendPadding:2,tooltip:r.__assign({},t.DEFAULT_TOOLTIP_OPTIONS),animation:{}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_OPTIONS=void 0;var r=n(1),o=n(154);t.DEFAULT_OPTIONS={appendPadding:2,tooltip:r.__assign({},o.DEFAULT_TOOLTIP_OPTIONS),color:"l(90) 0:#E5EDFE 1:#ffffff",areaStyle:{fillOpacity:.6},line:{size:1,color:"#5B8FF9"},animation:{}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.adaptor=t.meta=void 0;var r=n(15),o=n(34),i=n(43),a=n(296);Object.defineProperty(t,"meta",{enumerable:!0,get:function(){return a.meta}});var l=n(117),c=n(154);function s(e){var t=e.chart,n=e.options,o=n.data,a=n.color,s=n.lineStyle,u=n.point,d=null===u||void 0===u?void 0:u.state,f=l.getTinyData(o);t.data(f);var p=r.deepAssign({},e,{options:{xField:c.X_FIELD,yField:c.Y_FIELD,line:{color:a,style:s},point:u}}),h=r.deepAssign({},p,{options:{tooltip:!1,state:d}});return i.line(p),i.point(h),t.axis(!1),t.legend(!1),e}t.adaptor=function(e){return r.flow(s,a.meta,o.theme,o.tooltip,o.animation,o.annotation())(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_OPTIONS=void 0;var r=n(24),o=n(15);t.DEFAULT_OPTIONS=o.deepAssign({},r.Plot.getDefaultOptions(),{tooltip:{shared:!0,showMarkers:!0,showCrosshairs:!0,crosshairs:{type:"x"}},legend:{position:"top-left"},isStack:!1})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(14),o=n(1094);r.registerAction("marker-active",o.MarkerActiveAction),r.registerInteraction("marker-active",{start:[{trigger:"tooltip:show",action:"marker-active:active"}],end:[{trigger:"tooltip:hide",action:"marker-active:reset"}]})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MarkerActiveAction=void 0;var r=n(1),o=n(0),i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.active=function(){var e=this.getView(),t=this.context.event;if(t.data){var n=t.data.items,r=e.geometries.filter((function(e){return"point"===e.type}));o.each(r,(function(e){o.each(e.elements,(function(e){var t=-1!==o.findIndex(n,(function(t){return t.data===e.data}));e.setState("active",t)}))}))}},t.prototype.reset=function(){var e=this.getView().geometries.filter((function(e){return"point"===e.type}));o.each(e,(function(e){o.each(e.elements,(function(e){e.setState("active",!1)}))}))},t.prototype.getView=function(){return this.context.view},t}(n(14).InteractionAction);t.MarkerActiveAction=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.adaptor=t.interaction=void 0;var r=n(1),o=n(0),i=n(512),a=n(34),l=n(153),c=n(15),s=n(292),u=n(515);function d(e){var t=e.options.colorField;return c.deepAssign({options:{rawFields:["value"],tooltip:{fields:["name","value",t,"path"],formatter:function(e){return{name:e.name,value:e.value}}}}},e)}function f(e){var t=e.chart,n=e.options,r=n.color,o=n.colorField,a=n.rectStyle,l=n.hierarchyConfig,s=n.rawFields,d=u.transformData({data:n.data,colorField:n.colorField,enableDrillDown:u.enableDrillInteraction(n),hierarchyConfig:l});return t.data(d),i.polygon(c.deepAssign({},e,{options:{xField:"x",yField:"y",seriesField:o,rawFields:s,polygon:{color:r,style:a}}})),t.coordinate().reflect("y"),e}function p(e){return e.chart.axis(!1),e}function h(e){var t=e.drilldown,n=e.interactions,o=void 0===n?[]:n;return u.enableDrillInteraction(e)?c.deepAssign({},e,{interactions:r.__spreadArrays(o,[{type:"drill-down",cfg:{drillDownConfig:t,transformData:u.transformData}}])}):e}function g(e){var t=e.chart,n=e.options,r=n.interactions,i=n.drilldown;a.interaction({chart:t,options:h(n)});var l=u.findInteraction(r,"view-zoom");return l&&(!1!==l.enable?t.getCanvas().on("mousewheel",(function(e){e.preventDefault()})):t.getCanvas().off("mousewheel")),u.enableDrillInteraction(n)&&(t.appendPadding=s.getAdjustAppendPadding(t.appendPadding,o.get(i,["breadCrumb","position"]))),e}t.interaction=g,t.adaptor=function(e){return c.flow(d,a.theme,l.pattern("rectStyle"),f,p,a.legend,a.tooltip,g,a.animation,a.annotation())(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.treemap=t.getTileMethod=void 0;var r=n(1).__importStar(n(194)),o=n(0),i=n(1121),a={field:"value",tile:"treemapSquarify",size:[1,1],round:!1,ignoreParentValue:!0,padding:0,paddingInner:0,paddingOuter:0,paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0,as:["x","y"],sort:function(e,t){return t.value-e.value},ratio:.5*(1+Math.sqrt(5))};function l(e,t){return"treemapSquarify"===e?r[e].ratio(t):r[e]}t.getTileMethod=l,t.treemap=function(e,t){var n,c=(t=o.assign({},a,t)).as;if(!o.isArray(c)||2!==c.length)throw new TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "x", "y" ])!');try{n=i.getField(t)}catch(p){console.warn(p)}var s=l(t.tile,t.ratio),u=function(e){return r.treemap().tile(s).size(t.size).round(t.round).padding(t.padding).paddingInner(t.paddingInner).paddingOuter(t.paddingOuter).paddingTop(t.paddingTop).paddingRight(t.paddingRight).paddingBottom(t.paddingBottom).paddingLeft(t.paddingLeft)(r.hierarchy(e).sum((function(e){return t.ignoreParentValue&&e.children?0:e[n]})).sort(t.sort))}(e),d=c[0],f=c[1];return u.each((function(e){e[d]=[e.x0,e.x1,e.x1,e.x0],e[f]=[e.y1,e.y1,e.y0,e.y0],["x0","x1","y0","y1"].forEach((function(t){-1===c.indexOf(t)&&delete e[t]}))})),i.getAllNodes(u)}},function(e,t,n){"use strict";function r(e,t){return e.parent===t.parent?1:2}function o(e,t){return e+t.x}function i(e,t){return Math.max(e,t.y)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=r,t=1,n=1,a=!1;function l(r){var l,c=0;r.eachAfter((function(t){var n=t.children;n?(t.x=function(e){return e.reduce(o,0)/e.length}(n),t.y=function(e){return 1+e.reduce(i,0)}(n)):(t.x=l?c+=e(t,l):0,t.y=0,l=t)}));var s=function(e){for(var t;t=e.children;)e=t[0];return e}(r),u=function(e){for(var t;t=e.children;)e=t[t.length-1];return e}(r),d=s.x-e(s,u)/2,f=u.x+e(u,s)/2;return r.eachAfter(a?function(e){e.x=(e.x-r.x)*t,e.y=(r.y-e.y)*n}:function(e){e.x=(e.x-d)/(f-d)*t,e.y=(1-(r.y?e.y/r.y:1))*n})}return l.separation=function(t){return arguments.length?(e=t,l):e},l.size=function(e){return arguments.length?(a=!1,t=+e[0],n=+e[1],l):a?null:[t,n]},l.nodeSize=function(e){return arguments.length?(a=!0,t=+e[0],n=+e[1],l):a?[t,n]:null},l}},function(e,t,n){"use strict";function r(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return this.eachAfter(r)}},function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n,o=-1,i=function(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"===typeof e)return r(e,t);var n=Object.prototype.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)?r(e,t):void 0}}(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var o=0,i=function(){};return{s:i,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,l=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return l=e.done,e},e:function(e){c=!0,a=e},f:function(){try{l||null==n.return||n.return()}finally{if(c)throw a}}}}(this);try{for(i.s();!(n=i.n()).done;){var a=n.value;e.call(t,a,++o,this)}}catch(l){i.e(l)}finally{i.f()}return this}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){for(var n,r,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),n=o.children)for(r=n.length-1;r>=0;--r)i.push(n[r]);return this}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){for(var n,r,o,i=this,a=[i],l=[],c=-1;i=a.pop();)if(l.push(i),n=i.children)for(r=0,o=n.length;r<o;++r)a.push(n[r]);for(;i=l.pop();)e.call(t,i,++c,this);return this}},function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n,o=-1,i=function(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"===typeof e)return r(e,t);var n=Object.prototype.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)?r(e,t):void 0}}(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var o=0,i=function(){};return{s:i,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,l=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return l=e.done,e},e:function(e){c=!0,a=e},f:function(){try{l||null==n.return||n.return()}finally{if(c)throw a}}}}(this);try{for(i.s();!(n=i.n()).done;){var a=n.value;if(e.call(t,a,++o,this))return a}}catch(l){i.e(l)}finally{i.f()}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return this.eachAfter((function(t){for(var n=+e(t.data)||0,r=t.children,o=r&&r.length;--o>=0;)n+=r[o].value;t.value=n}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),o=null;for(e=n.pop(),t=r.pop();e===t;)o=e,e=n.pop(),t=r.pop();return o}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var o=r.length;e!==n;)r.splice(o,0,e),e=e.parent;return r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return Array.from(this)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=this,t=[];return e.each((function(n){n!==e&&t.push({source:n.parent,target:n})})),t}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var o=r(n(1111)),i=o.default.mark(a);function a(){var e,t,n,r,a,l;return o.default.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:n=[e=this];case 1:t=n.reverse(),n=[];case 2:if(!(e=t.pop())){o.next=8;break}return o.next=5,e;case 5:if(r=e.children)for(a=0,l=r.length;a<l;++a)n.push(r[a]);o.next=2;break;case 8:if(n.length){o.next=1;break}case 9:case"end":return o.stop()}}),i,this)}},function(e,t,n){"use strict";var r=n(2)(n(6)),o=n(1112)();e.exports=o;try{regeneratorRuntime=o}catch(i){"object"===("undefined"===typeof globalThis?"undefined":(0,r.default)(globalThis))?globalThis.regeneratorRuntime=o:Function("r","regeneratorRuntime = r")(o)}},function(e,t,n){"use strict";var r=n(6).default;function o(){e.exports=o=function(){return n},e.exports.__esModule=!0,e.exports.default=e.exports;var t,n={},i=Object.prototype,a=i.hasOwnProperty,l=Object.defineProperty||function(e,t,n){e[t]=n.value},c="function"==typeof Symbol?Symbol:{},s=c.iterator||"@@iterator",u=c.asyncIterator||"@@asyncIterator",d=c.toStringTag||"@@toStringTag";function f(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{f({},"")}catch(t){f=function(e,t,n){return e[t]=n}}function p(e,t,n,r){var o=t&&t.prototype instanceof x?t:x,i=Object.create(o.prototype),a=new j(r||[]);return l(i,"_invoke",{value:k(e,n,a)}),i}function h(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}n.wrap=p;var g="suspendedStart",v="suspendedYield",m="executing",y="completed",b={};function x(){}function w(){}function S(){}var O={};f(O,s,(function(){return this}));var _=Object.getPrototypeOf,C=_&&_(_(L([])));C&&C!==i&&a.call(C,s)&&(O=C);var E=S.prototype=x.prototype=Object.create(O);function P(e){["next","throw","return"].forEach((function(t){f(e,t,(function(e){return this._invoke(t,e)}))}))}function M(e,t){function n(o,i,l,c){var s=h(e[o],e,i);if("throw"!==s.type){var u=s.arg,d=u.value;return d&&"object"==r(d)&&a.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,l,c)}),(function(e){n("throw",e,l,c)})):t.resolve(d).then((function(e){u.value=e,l(u)}),(function(e){return n("throw",e,l,c)}))}c(s.arg)}var o;l(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}})}function k(e,n,r){var o=g;return function(i,a){if(o===m)throw new Error("Generator is already running");if(o===y){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var l=r.delegate;if(l){var c=A(l,r);if(c){if(c===b)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===g)throw o=y,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=m;var s=h(e,n,r);if("normal"===s.type){if(o=r.done?y:v,s.arg===b)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o=y,r.method="throw",r.arg=s.arg)}}}function A(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,A(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),b;var i=h(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,b;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,b):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,b)}function I(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 T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(I,this),this.reset(!0)}function L(e){if(e||""===e){var n=e[s];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(a.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(r(e)+" is not iterable")}return w.prototype=S,l(E,"constructor",{value:S,configurable:!0}),l(S,"constructor",{value:w,configurable:!0}),w.displayName=f(S,d,"GeneratorFunction"),n.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===w||"GeneratorFunction"===(t.displayName||t.name))},n.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,S):(e.__proto__=S,f(e,d,"GeneratorFunction")),e.prototype=Object.create(E),e},n.awrap=function(e){return{__await:e}},P(M.prototype),f(M.prototype,u,(function(){return this})),n.AsyncIterator=M,n.async=function(e,t,r,o,i){void 0===i&&(i=Promise);var a=new M(p(e,t,r,o),i);return n.isGeneratorFunction(t)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},P(E),f(E,d,"Generator"),f(E,s,(function(){return this})),f(E,"toString",(function(){return"[object Generator]"})),n.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}},n.values=L,j.prototype={constructor:j,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(T),!e)for(var n in this)"t"===n.charAt(0)&&a.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(r,o){return l.type="throw",l.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],l=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=a.call(i,"catchLoc"),s=a.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,b):this.complete(i)},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),b},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),T(n),b}},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;T(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:L(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),b}},n}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=n(6);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=null,t=1,n=1,r=a.constantZero;function o(o){return o.x=t/2,o.y=n/2,e?o.eachBefore(s(e)).eachAfter(u(r,.5)).eachBefore(d(1)):o.eachBefore(s(c)).eachAfter(u(a.constantZero,1)).eachAfter(u(r,o.r/Math.min(t,n))).eachBefore(d(Math.min(t,n)/(2*o.r))),o}return o.radius=function(t){return arguments.length?(e=(0,i.optional)(t),o):e},o.size=function(e){return arguments.length?(t=+e[0],n=+e[1],o):[t,n]},o.padding=function(e){return arguments.length?(r="function"===typeof e?e:(0,a.default)(+e),o):r},o};var o=n(517),i=n(298),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var c=i?Object.getOwnPropertyDescriptor(e,a):null;c&&(c.get||c.set)?Object.defineProperty(o,a,c):o[a]=e[a]}return o.default=e,n&&n.set(e,o),o}(n(520));function l(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}function c(e){return Math.sqrt(e.value)}function s(e){return function(t){t.children||(t.r=Math.max(0,+e(t)||0))}}function u(e,t){return function(n){if(r=n.children){var r,i,a,l=r.length,c=e(n)*t||0;if(c)for(i=0;i<l;++i)r[i].r+=c;if(a=(0,o.packEnclose)(r),c)for(i=0;i<l;++i)r[i].r-=c;n.r=a+c}}}function d(e){return function(t){var n=t.parent;t.r*=e,n&&(t.x=n.x+e*t.x,t.y=n.y+e*t.y)}}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=1,t=1,n=0,r=!1;function a(a){var l=a.height+1;return a.x0=a.y0=n,a.x1=e,a.y1=t/l,a.eachBefore(function(e,t){return function(r){r.children&&(0,i.default)(r,r.x0,e*(r.depth+1)/t,r.x1,e*(r.depth+2)/t);var o=r.x0,a=r.y0,l=r.x1-n,c=r.y1-n;l<o&&(o=l=(o+l)/2),c<a&&(a=c=(a+c)/2),r.x0=o,r.y0=a,r.x1=l,r.y1=c}}(t,l)),r&&a.eachBefore(o.default),a}return a.round=function(e){return arguments.length?(r=!!e,a):r},a.size=function(n){return arguments.length?(e=+n[0],t=+n[1],a):[e,t]},a.padding=function(e){return arguments.length?(n=+e,a):n},a};var o=r(n(521)),i=r(n(155))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=l,t=c;function n(n){var r,l,c,s,u,d,f,p=Array.from(n),h=p.length,g=new Map;for(l=0;l<h;++l)r=p[l],u=p[l]=new o.Node(r),null!=(d=e(r,l,n))&&(d+="")&&(f=u.id=d,g.set(f,g.has(f)?a:u)),null!=(d=t(r,l,n))&&(d+="")&&(u.parent=d);for(l=0;l<h;++l)if(d=(u=p[l]).parent){if(!(s=g.get(d)))throw new Error("missing: "+d);if(s===a)throw new Error("ambiguous: "+d);s.children?s.children.push(u):s.children=[u],u.parent=s}else{if(c)throw new Error("multiple roots");c=u}if(!c)throw new Error("no root");if(c.parent=i,c.eachBefore((function(e){e.depth=e.parent.depth+1,--h})).eachBefore(o.computeHeight),c.parent=null,h>0)throw new Error("cycle");return c}return n.id=function(t){return arguments.length?(e=(0,r.required)(t),n):e},n.parentId=function(e){return arguments.length?(t=(0,r.required)(e),n):t},n};var r=n(298),o=n(297),i={depth:-1},a={};function l(e){return e.id}function c(e){return e.parentId}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=o,t=1,n=1,r=null;function u(o){var i=function(e){for(var t,n,r,o,i,a=new s(e,0),l=[a];t=l.pop();)if(r=t._.children)for(t.children=new Array(i=r.length),o=i-1;o>=0;--o)l.push(n=t.children[o]=new s(r[o],o)),n.parent=t;return(a.parent=new s(null,0)).children=[a],a}(o);if(i.eachAfter(d),i.parent.m=-i.z,i.eachBefore(f),r)o.eachBefore(p);else{var a=o,l=o,c=o;o.eachBefore((function(e){e.x<a.x&&(a=e),e.x>l.x&&(l=e),e.depth>c.depth&&(c=e)}));var u=a===l?1:e(a,l)/2,h=u-a.x,g=t/(l.x+u+h),v=n/(c.depth||1);o.eachBefore((function(e){e.x=(e.x+h)*g,e.y=e.depth*v}))}return o}function d(t){var n=t.children,r=t.parent.children,o=t.i?r[t.i-1]:null;if(n){!function(e){for(var t,n=0,r=0,o=e.children,i=o.length;--i>=0;)(t=o[i]).z+=n,t.m+=n,n+=t.s+(r+=t.c)}(t);var s=(n[0].z+n[n.length-1].z)/2;o?(t.z=o.z+e(t._,o._),t.m=t.z-s):t.z=s}else o&&(t.z=o.z+e(t._,o._));t.parent.A=function(t,n,r){if(n){for(var o,s=t,u=t,d=n,f=s.parent.children[0],p=s.m,h=u.m,g=d.m,v=f.m;d=a(d),s=i(s),d&&s;)f=i(f),(u=a(u)).a=t,(o=d.z+g-s.z-p+e(d._,s._))>0&&(l(c(d,t,r),t,o),p+=o,h+=o),g+=d.m,p+=s.m,v+=f.m,h+=u.m;d&&!a(u)&&(u.t=d,u.m+=g-h),s&&!i(f)&&(f.t=s,f.m+=p-v,r=t)}return r}(t,o,t.parent.A||r[0])}function f(e){e._.x=e.z+e.parent.m,e.m+=e.parent.m}function p(e){e.x*=t,e.y=e.depth*n}return u.separation=function(t){return arguments.length?(e=t,u):e},u.size=function(e){return arguments.length?(r=!1,t=+e[0],n=+e[1],u):r?null:[t,n]},u.nodeSize=function(e){return arguments.length?(r=!0,t=+e[0],n=+e[1],u):r?[t,n]:null},u};var r=n(297);function o(e,t){return e.parent===t.parent?1:2}function i(e){var t=e.children;return t?t[0]:e.t}function a(e){var t=e.children;return t?t[t.length-1]:e.t}function l(e,t,n){var r=n/(t.i-e.i);t.c-=r,t.s+=n,e.c+=r,t.z+=n,t.m+=n}function c(e,t,n){return e.a.parent===t.parent?e.a:n}function s(e,t){this._=e,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=t}s.prototype=Object.create(r.Node.prototype)},function(e,t,n){"use strict";var r=n(2),o=n(6);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=a.default,t=!1,n=1,r=1,o=[0],s=c.constantZero,u=c.constantZero,d=c.constantZero,f=c.constantZero,p=c.constantZero;function h(e){return e.x0=e.y0=0,e.x1=n,e.y1=r,e.eachBefore(g),o=[0],t&&e.eachBefore(i.default),e}function g(t){var n=o[t.depth],r=t.x0+n,i=t.y0+n,a=t.x1-n,l=t.y1-n;a<r&&(r=a=(r+a)/2),l<i&&(i=l=(i+l)/2),t.x0=r,t.y0=i,t.x1=a,t.y1=l,t.children&&(n=o[t.depth+1]=s(t)/2,r+=p(t)-n,i+=u(t)-n,(a-=d(t)-n)<r&&(r=a=(r+a)/2),(l-=f(t)-n)<i&&(i=l=(i+l)/2),e(t,r,i,a,l))}return h.round=function(e){return arguments.length?(t=!!e,h):t},h.size=function(e){return arguments.length?(n=+e[0],r=+e[1],h):[n,r]},h.tile=function(t){return arguments.length?(e=(0,l.required)(t),h):e},h.padding=function(e){return arguments.length?h.paddingInner(e).paddingOuter(e):h.paddingInner()},h.paddingInner=function(e){return arguments.length?(s="function"===typeof e?e:(0,c.default)(+e),h):s},h.paddingOuter=function(e){return arguments.length?h.paddingTop(e).paddingRight(e).paddingBottom(e).paddingLeft(e):h.paddingTop()},h.paddingTop=function(e){return arguments.length?(u="function"===typeof e?e:(0,c.default)(+e),h):u},h.paddingRight=function(e){return arguments.length?(d="function"===typeof e?e:(0,c.default)(+e),h):d},h.paddingBottom=function(e){return arguments.length?(f="function"===typeof e?e:(0,c.default)(+e),h):f},h.paddingLeft=function(e){return arguments.length?(p="function"===typeof e?e:(0,c.default)(+e),h):p},h};var i=r(n(521)),a=r(n(299)),l=n(298),c=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!==typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(r,a,l):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}(n(520));function s(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,r,o){var i,a,l=e.children,c=l.length,s=new Array(c+1);for(s[0]=a=i=0;i<c;++i)s[i+1]=a+=l[i].value;!function e(t,n,r,o,i,a,c){if(t>=n-1){var u=l[t];return u.x0=o,u.y0=i,u.x1=a,void(u.y1=c)}for(var d=s[t],f=r/2+d,p=t+1,h=n-1;p<h;){var g=p+h>>>1;s[g]<f?p=g+1:h=g}f-s[p-1]<s[p]-f&&t+1<p&&--p;var v=s[p]-d,m=r-v;if(a-o>c-i){var y=r?(o*m+a*v)/r:a;e(t,p,v,o,i,y,c),e(p,n,m,y,i,a,c)}else{var b=r?(i*m+c*v)/r:c;e(t,p,v,o,i,a,b),e(p,n,m,o,b,a,c)}}(0,c,e.value,t,n,r,o)}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,r,a){(1&e.depth?i.default:o.default)(e,t,n,r,a)};var o=r(n(155)),i=r(n(195))},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(155)),i=r(n(195)),a=n(299);t.default=function e(t){function n(e,n,r,l,c){if((s=e._squarify)&&s.ratio===t)for(var s,u,d,f,p,h=-1,g=s.length,v=e.value;++h<g;){for(d=(u=s[h]).children,f=u.value=0,p=d.length;f<p;++f)u.value+=d[f].value;u.dice?(0,o.default)(u,n,r,l,v?r+=(c-r)*u.value/v:c):(0,i.default)(u,n,r,v?n+=(l-n)*u.value/v:l,c),v-=u.value}else e._squarify=s=(0,a.squarifyRatio)(t,e,n,r,l,c),s.ratio=t}return n.ratio=function(t){return e((t=+t)>1?t:1)},n}(a.phi)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getAllNodes=t.getField=t.NODE_ANCESTORS_FIELD=t.CHILD_NODE_COUNT=t.NODE_INDEX_FIELD=void 0;var r=n(0);t.NODE_INDEX_FIELD="nodeIndex",t.CHILD_NODE_COUNT="childNodeCount",t.NODE_ANCESTORS_FIELD="nodeAncestor";var o="Invalid field: it must be a string!";t.getField=function(e,t){var n=e.field,i=e.fields;if(r.isString(n))return n;if(r.isArray(n))return console.warn(o),n[0];if(console.warn(o+" will try to get fields instead."),r.isString(i))return i;if(r.isArray(i)&&i.length)return i[0];if(t)return t;throw new TypeError(o)},t.getAllNodes=function(e){var n,o,i=[];return e&&e.each?e.each((function(e){var a,l;e.parent!==n?(n=e.parent,o=0):o+=1;var c=r.filter(((null===(a=e.ancestors)||void 0===a?void 0:a.call(e))||[]).map((function(e){return i.find((function(t){return t.name===e.name}))||e})),(function(t){var n=t.depth;return n>0&&n<e.depth}));e[t.NODE_ANCESTORS_FIELD]=c,e[t.CHILD_NODE_COUNT]=(null===(l=e.children)||void 0===l?void 0:l.length)||0,e[t.NODE_INDEX_FIELD]=o,i.push(e)})):e&&e.eachNode&&e.eachNode((function(e){i.push(e)})),i}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_OPTIONS=void 0,t.DEFAULT_OPTIONS={colorField:"name",rectStyle:{lineWidth:1,stroke:"#fff"},hierarchyConfig:{tile:"treemapSquarify"},label:{fields:["name"],layout:{type:"limit-in-shape"}},tooltip:{showMarkers:!1,showTitle:!1},drilldown:{enabled:!1,breadCrumb:{position:"bottom-left",rootText:"\u521d\u59cb",dividerText:"/",textStyle:{fontSize:12,fill:"rgba(0, 0, 0, 0.65)",cursor:"pointer"},activeTextStyle:{fill:"#87B5FF"}}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n(522),n(1124)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isParentNode=void 0;var r=n(14),o=n(0),i=n(516);function a(e){var t=o.get(e,["event","data","data"],{});return o.isArray(t.children)&&t.children.length>0}function l(e){var t=e.view.getCoordinate(),n=t.innerRadius;if(n){var r=e.event,o=r.x,i=r.y,a=t.center,l=a.x,c=a.y,s=t.getRadius()*n;return Math.sqrt(Math.pow(l-o,2)+Math.pow(c-i,2))<s}return!1}t.isParentNode=a,r.registerAction("drill-down-action",i.DrillDownAction),r.registerInteraction("drill-down",{showEnable:[{trigger:"element:mouseenter",action:"cursor:pointer",isEnable:a},{trigger:"element:mouseleave",action:"cursor:default"},{trigger:"element:mouseleave",action:"cursor:pointer",isEnable:l}],start:[{trigger:"element:click",isEnable:a,action:["drill-down-action:click"]},{trigger:"afterchangesize",action:["drill-down-action:resetPosition"]},{trigger:"click",isEnable:l,action:["drill-down-action:back"]}]})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.adaptor=void 0;var r=n(1),o=n(196),i=n(526),a=n(196);Object.defineProperty(t,"meta",{enumerable:!0,get:function(){return a.meta}}),t.adaptor=function(e){var t=e.chart,n=e.options,a=n.xField,l=n.yField,c=n.xAxis,s=n.yAxis,u=n.barStyle,d=n.barWidthRatio,f=n.label,p=n.data,h=n.seriesField,g=n.isStack,v=n.minBarWidth,m=n.maxBarWidth;f&&!f.position&&(f.position="left",f.layout||(f.layout=[{type:"interval-adjust-position"},{type:"interval-hide-overlap"},{type:"adjust-color"},{type:"limit-in-plot",cfg:{action:"hide"}}]));var y=n.legend;h?!1!==y&&(y=r.__assign({position:g?"top-left":"right-top",reversed:!g},y||{})):y=!1,e.options.legend=y;var b=n.tooltip;return h&&!1!==b&&(b=r.__assign({reversed:!g},b||{})),e.options.tooltip=b,t.coordinate().transpose(),o.adaptor({chart:t,options:r.__assign(r.__assign({},n),{label:f,xField:l,yField:a,xAxis:s,yAxis:c,columnStyle:u,columnWidthRatio:d,minColumnWidth:v,maxColumnWidth:m,columnBackground:n.barBackground,data:i.transformBarData(p)})},!0)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.conversionTag=void 0;var r=n(1),o=n(0),i=n(14),a=n(15),l=n(523);function c(e,t){return a.deepAssign({size:t?32:80,spacing:t?8:12,offset:t?32:0,arrow:!1!==e.arrow&&{headSize:12,style:{fill:"rgba(0, 0, 0, 0.05)"}},text:!1!==e.text&&{style:{fontSize:12,fill:"rgba(0, 0, 0, 0.85)",textAlign:"center",textBaseline:"middle"},formatter:l.conversionTagFormatter}},e)}function s(e,t){return o.map(t.getModel().points,(function(t){return e.convertPoint(t)}))}function u(e,t,n){!function(e,t,n){var o=e.view,i=e.geometry,a=e.group,l=e.options,c=e.horizontal,u=l.offset,d=l.size,f=l.arrow,p=o.getCoordinate(),h=s(p,t)[c?3:0],g=s(p,n)[c?0:3],v=g.y-h.y,m=g.x-h.x;if("boolean"!==typeof f){var y,b=f.headSize,x=l.spacing;c?(m-b)/2<x?(x=Math.max(1,(m-b)/2),y=[[h.x+x,h.y-u],[h.x+x,h.y-u-d],[g.x-x,g.y-u-d/2]]):y=[[h.x+x,h.y-u],[h.x+x,h.y-u-d],[g.x-x-b,g.y-u-d],[g.x-x,g.y-u-d/2],[g.x-x-b,g.y-u]]:(v-b)/2<x?(x=Math.max(1,(v-b)/2),y=[[h.x+u,h.y+x],[h.x+u+d,h.y+x],[g.x+u+d/2,g.y-x]]):y=[[h.x+u,h.y+x],[h.x+u+d,h.y+x],[g.x+u+d,g.y-x-b],[g.x+u+d/2,g.y-x],[g.x+u,g.y-x-b]],a.addShape("polygon",{id:o.id+"-conversion-tag-arrow-"+i.getElementId(t.getModel().mappingData),name:"conversion-tag-arrow",origin:{element:t,nextElement:n},attrs:r.__assign(r.__assign({},f.style||{}),{points:y})})}}(e,t,n),function(e,t,n){var o,i,a,l=e.view,c=e.geometry,u=e.group,d=e.options,f=e.field,p=e.horizontal,h=d.offset,g=d.size;if("boolean"!==typeof d.text){var v=l.getCoordinate(),m=(null===(o=d.text)||void 0===o?void 0:o.formatter)&&(null===(i=d.text)||void 0===i?void 0:i.formatter(t.getData()[f],n.getData()[f])),y=s(v,t)[p?3:0],b=s(v,n)[p?0:3],x=u.addShape("text",{id:l.id+"-conversion-tag-text-"+c.getElementId(t.getModel().mappingData),name:"conversion-tag-text",origin:{element:t,nextElement:n},attrs:r.__assign(r.__assign({},(null===(a=d.text)||void 0===a?void 0:a.style)||{}),{text:m,x:p?(y.x+b.x)/2:y.x+h+g/2,y:p?y.y-h-g/2:(y.y+b.y)/2})});if(p){var w=b.x-y.x,S=x.getBBox().width;if(S>w){var O=S/m.length,_=Math.max(1,Math.ceil(w/O)-1),C=m.slice(0,_)+"...";x.attr("text",C)}}}}(e,t,n)}t.conversionTag=function(e,t,n){return void 0===t&&(t=!0),void 0===n&&(n=!1),function(r){var l=r.options,s=r.chart,d=l.conversionTag,f=l.theme;return d&&!n&&(s.theme(a.deepAssign({},o.isObject(f)?f:i.getTheme(f),{columnWidthRatio:1/3})),s.annotation().shape({render:function(n,r){var i=n.addGroup({id:s.id+"-conversion-tag-group",name:"conversion-tag-group"}),a=o.find(s.geometries,(function(e){return"interval"===e.type})),l={view:r,geometry:a,group:i,field:e,horizontal:t,options:c(d,t)},f=t?a.elements:a.elements.slice().reverse();o.each(f,(function(e,t){t>0&&u(l,f[t-1],e)}))}})),r}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.connectedArea=void 0;var r=n(14),o={hover:"__interval-connected-area-hover__",click:"__interval-connected-area-click__"},i=function(e,t){return"hover"===e?[{trigger:"interval:mouseenter",action:["element-highlight-by-color:highlight","element-link-by-color:link"],arg:[null,{style:t}]}]:[{trigger:"interval:click",action:["element-highlight-by-color:clear","element-highlight-by-color:highlight","element-link-by-color:clear","element-link-by-color:unlink","element-link-by-color:link"],arg:[null,null,null,null,{style:t}]}]};r.registerInteraction(o.hover,{start:i(o.hover),end:[{trigger:"interval:mouseleave",action:["element-highlight-by-color:reset","element-link-by-color:unlink"]}]}),r.registerInteraction(o.click,{start:i(o.click),end:[{trigger:"document:mousedown",action:["element-highlight-by-color:clear","element-link-by-color:clear"]}]}),t.connectedArea=function(e){return void 0===e&&(e=!1),function(t){var n=t.chart,r=t.options.connectedArea,a=function(){n.removeInteraction(o.hover),n.removeInteraction(o.click)};if(!e&&r){var l=r.trigger||"hover";a(),n.interaction(o[l],{start:i(l,r.style)})}else a();return t}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ButtonAction=t.BUTTON_ACTION_CONFIG=void 0;var r=n(1),o=n(14),i=n(0),a=n(15);t.BUTTON_ACTION_CONFIG={padding:[8,10],text:"reset",textStyle:{default:{x:0,y:0,fontSize:12,fill:"#333333",cursor:"pointer"}},buttonStyle:{default:{fill:"#f7f7f7",stroke:"#cccccc",cursor:"pointer"},active:{fill:"#e6e6e6"}}};var l=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.buttonGroup=null,n.buttonCfg=r.__assign({name:"button"},t.BUTTON_ACTION_CONFIG),n}return r.__extends(n,e),n.prototype.getButtonCfg=function(){var e=this.context.view,t=i.get(e,["interactions","filter-action","cfg","buttonConfig"]);return a.deepAssign(this.buttonCfg,t,this.cfg)},n.prototype.drawButton=function(){var e=this.getButtonCfg(),t=this.context.view.foregroundGroup.addGroup({name:e.name}),n=this.drawText(t);this.drawBackground(t,n.getBBox()),this.buttonGroup=t},n.prototype.drawText=function(e){var t,n=this.getButtonCfg();return e.addShape({type:"text",name:"button-text",attrs:r.__assign({text:n.text},null===(t=n.textStyle)||void 0===t?void 0:t.default)})},n.prototype.drawBackground=function(e,t){var n,o=this.getButtonCfg(),i=a.normalPadding(o.padding),l=e.addShape({type:"rect",name:"button-rect",attrs:r.__assign({x:t.x-i[3],y:t.y-i[0],width:t.width+i[1]+i[3],height:t.height+i[0]+i[2]},null===(n=o.buttonStyle)||void 0===n?void 0:n.default)});return l.toBack(),e.on("mouseenter",(function(){var e;l.attr(null===(e=o.buttonStyle)||void 0===e?void 0:e.active)})),e.on("mouseleave",(function(){var e;l.attr(null===(e=o.buttonStyle)||void 0===e?void 0:e.default)})),l},n.prototype.resetPosition=function(){var e=this.context.view.getCoordinate().convert({x:1,y:1}),t=this.buttonGroup,n=t.getBBox(),r=o.Util.transform(null,[["t",e.x-n.width-10,e.y+n.height+5]]);t.setMatrix(r)},n.prototype.show=function(){this.buttonGroup||this.drawButton(),this.resetPosition(),this.buttonGroup.show()},n.prototype.hide=function(){this.buttonGroup&&this.buttonGroup.hide()},n.prototype.destroy=function(){var t=this.buttonGroup;t&&t.remove(),e.prototype.destroy.call(this)},n}(o.Action);t.ButtonAction=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_OPTIONS=void 0;var r=n(24),o=n(15);t.DEFAULT_OPTIONS=o.deepAssign({},r.Plot.getDefaultOptions(),{barWidthRatio:.6,marginRatio:1/32,tooltip:{shared:!0,showMarkers:!1,offset:20},interactions:[{type:"active-region"}]})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.adaptor=t.meta=void 0;var r=n(1),o=n(0),i=n(34),a=n(15),l=n(43),c=n(15),s=n(118),u=n(514);function d(e){var t=e.chart,n=e.options,o=n.data,i=n.areaStyle,a=n.color,u=n.point,d=n.line,f=n.isPercent,p=n.xField,h=n.yField,g=n.tooltip,v=n.seriesField,m=n.startOnZero,y=null===u||void 0===u?void 0:u.state,b=s.getDataWhetherPecentage(o,h,p,h,f);t.data(b);var x=f?r.__assign({formatter:function(e){return{name:e[v]||e[p],value:(100*Number(e[h])).toFixed(2)+"%"}}},g):g,w=c.deepAssign({},e,{options:{area:{color:a,style:i},line:d&&r.__assign({color:a},d),point:u&&r.__assign({color:a},u),tooltip:x,label:void 0,args:{startOnZero:m}}}),S=c.deepAssign({options:{line:{size:2}}},w,{options:{sizeField:v,tooltip:!1}}),O=c.deepAssign({},w,{options:{tooltip:!1,state:y}});return l.area(w),l.line(S),l.point(O),e}function f(e){var t=e.chart,n=e.options,o=n.label,i=n.yField,l=a.findGeometry(t,"area");if(o){var s=o.callback,u=r.__rest(o,["callback"]);l.label({fields:[i],callback:s,cfg:r.__assign({layout:[{type:"limit-in-plot"},{type:"path-adjust-position"},{type:"point-adjust-position"},{type:"limit-in-plot",cfg:{action:"hide"}}]},c.transformLabel(u))})}else l.label(!1);return e}function p(e){var t=e.chart,n=e.options,r=n.isStack,i=n.isPercent,a=n.seriesField;return(i||r)&&a&&o.each(t.geometries,(function(e){e.adjust("stack")})),e}Object.defineProperty(t,"meta",{enumerable:!0,get:function(){return u.meta}}),t.adaptor=function(e){return c.flow(i.theme,i.pattern("areaStyle"),d,u.meta,p,u.axis,u.legend,i.tooltip,f,i.slider,i.annotation(),i.interaction,i.animation,i.limitInPlot)(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_OPTIONS=void 0;var r=n(24),o=n(15);t.DEFAULT_OPTIONS=o.deepAssign({},r.Plot.getDefaultOptions(),{tooltip:{shared:!0,showMarkers:!0,showCrosshairs:!0,crosshairs:{type:"x"}},isStack:!0,line:{},legend:{position:"top-left"}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_OPTIONS=void 0;var r=n(24),o=n(15);t.DEFAULT_OPTIONS=o.deepAssign({},r.Plot.getDefaultOptions(),{columnWidthRatio:.6,marginRatio:1/32,tooltip:{shared:!0,showMarkers:!1,offset:20},interactions:[{type:"active-region"}]})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.adaptor=t.interaction=t.pieAnnotation=t.transformStatisticOptions=void 0;var r=n(1),o=n(0),i=n(34),a=n(59),l=n(43),c=n(153),s=n(130),u=n(15),d=n(527),f=n(528),p=n(529);function h(e){var t=e.chart,n=e.options,o=n.data,i=n.angleField,a=n.colorField,c=n.color,s=n.pieStyle,d=u.processIllegalData(o,i);if(f.isAllZero(d,i)){var p="$$percentage$$";d=d.map((function(e){var t;return r.__assign(r.__assign({},e),((t={})[p]=1/d.length,t))})),t.data(d);var h=u.deepAssign({},e,{options:{xField:"1",yField:p,seriesField:a,isStack:!0,interval:{color:c,style:s},args:{zIndexReversed:!0}}});l.interval(h)}else t.data(d),h=u.deepAssign({},e,{options:{xField:"1",yField:i,seriesField:a,isStack:!0,interval:{color:c,style:s},args:{zIndexReversed:!0}}}),l.interval(h);return e}function g(e){var t,n=e.chart,r=e.options,o=r.meta,i=r.colorField,a=u.deepAssign({},o);return n.scale(a,((t={})[i]={type:"cat"},t)),e}function v(e){var t=e.chart,n=e.options,r=n.radius,o=n.innerRadius,i=n.startAngle,a=n.endAngle;return t.coordinate({type:"theta",cfg:{radius:r,innerRadius:o,startAngle:i,endAngle:a}}),e}function m(e){var t=e.chart,n=e.options,i=n.label,a=n.colorField,l=n.angleField,c=t.geometries[0];if(i){var s=i.callback,d=r.__rest(i,["callback"]),p=u.transformLabel(d);if(p.content){var h=p.content;p.content=function(e,n,i){var c=e[a],s=e[l],d=t.getScaleByField(l),f=null===d||void 0===d?void 0:d.scale(s);return o.isFunction(h)?h(r.__assign(r.__assign({},e),{percent:f}),n,i):o.isString(h)?u.template(h,{value:s,name:c,percentage:o.isNumber(f)&&!o.isNil(s)?(100*f).toFixed(2)+"%":null}):h}}var g=p.type?{inner:"",outer:"pie-outer",spider:"pie-spider"}[p.type]:"pie-outer",v=p.layout?o.isArray(p.layout)?p.layout:[p.layout]:[];p.layout=(g?[{type:g}]:[]).concat(v),c.label({fields:a?[l,a]:[l],callback:s,cfg:r.__assign(r.__assign({},p),{offset:f.adaptOffset(p.type,p.offset),type:"pie"})})}else c.label(!1);return e}function y(e){var t=e.innerRadius,n=e.statistic,r=e.angleField,i=e.colorField,a=e.meta,l=e.locale,c=s.getLocale(l);if(t&&n){var p=u.deepAssign({},d.DEFAULT_OPTIONS.statistic,n),h=p.title,g=p.content;return!1!==h&&(h=u.deepAssign({},{formatter:function(e){return e?e[i]:o.isNil(h.content)?c.get(["statistic","total"]):h.content}},h)),!1!==g&&(g=u.deepAssign({},{formatter:function(e,t){var n=e?e[r]:f.getTotalValue(t,r),i=o.get(a,[r,"formatter"])||function(e){return e};return e||o.isNil(g.content)?i(n):g.content}},g)),u.deepAssign({},{statistic:{title:h,content:g}},e)}return e}function b(e){var t=e.chart,n=y(e.options),r=n.innerRadius,o=n.statistic;return t.getController("annotation").clear(!0),u.flow(i.annotation())(e),r&&o&&u.renderStatistic(t,{statistic:o,plotType:"pie"}),e}function x(e){var t=e.chart,n=e.options,r=n.tooltip,i=n.colorField,l=n.angleField,c=n.data;if(!1===r)t.tooltip(r);else if(t.tooltip(u.deepAssign({},r,{shared:!1})),f.isAllZero(c,l)){var s=o.get(r,"fields"),d=o.get(r,"formatter");o.isEmpty(o.get(r,"fields"))&&(s=[i,l],d=d||function(e){return{name:e[i],value:o.toString(e[l])}}),t.geometries[0].tooltip(s.join("*"),a.getMappingFunction(s,d))}return e}function w(e){var t=e.chart,n=y(e.options),i=n.interactions,a=n.statistic,l=n.annotations;return o.each(i,(function(e){var n,i;if(!1===e.enable)t.removeInteraction(e.type);else if("pie-statistic-active"===e.type){var c=[];(null===(n=e.cfg)||void 0===n?void 0:n.start)||(c=[{trigger:"element:mouseenter",action:p.PIE_STATISTIC+":change",arg:{statistic:a,annotations:l}}]),o.each(null===(i=e.cfg)||void 0===i?void 0:i.start,(function(e){c.push(r.__assign(r.__assign({},e),{arg:{statistic:a,annotations:l}}))})),t.interaction(e.type,u.deepAssign({},e.cfg,{start:c}))}else t.interaction(e.type,e.cfg||{})})),e}t.transformStatisticOptions=y,t.pieAnnotation=b,t.interaction=w,t.adaptor=function(e){return u.flow(c.pattern("pieStyle"),h,g,i.theme,v,i.legend,x,m,i.state,b,w,i.animation)(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PieLegendAction=void 0;var r=n(1),o=n(14),i=n(0),a=n(530),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.getActiveElements=function(){var e=o.Util.getDelegationObject(this.context);if(e){var t=this.context.view,n=e.component,r=e.item,i=n.get("field");if(i)return t.geometries[0].elements.filter((function(e){return e.getModel().data[i]===r.value}))}return[]},t.prototype.getActiveElementLabels=function(){var e=this.context.view,t=this.getActiveElements();return e.geometries[0].labelsContainer.getChildren().filter((function(e){return t.find((function(t){return i.isEqual(t.getData(),e.get("data"))}))}))},t.prototype.transfrom=function(e){void 0===e&&(e=7.5);var t=this.getActiveElements(),n=this.getActiveElementLabels();t.forEach((function(t,r){var i=n[r],l=t.geometry.coordinate;if(l.isPolar&&l.isTransposed){var c=o.Util.getAngle(t.getModel(),l),s=(c.startAngle+c.endAngle)/2,u=e,d=u*Math.cos(s),f=u*Math.sin(s);t.shape.setMatrix(a.transform([["t",d,f]])),i.setMatrix(a.transform([["t",d,f]]))}}))},t.prototype.active=function(){this.transfrom()},t.prototype.reset=function(){this.transfrom(0)},t}(o.Action);t.PieLegendAction=l},function(e,t,n){"use strict";var r=n(2)(n(6));Object.defineProperty(t,"__esModule",{value:!0}),t.StatisticAction=void 0;var o=n(1),i=n(14),a=n(0),l=n(506),c=n(1136),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o.__extends(t,e),t.prototype.getAnnotations=function(e){return(e||this.context.view).getController("annotation").option},t.prototype.getInitialAnnotation=function(){return this.initialAnnotation},t.prototype.init=function(){var e=this,t=this.context.view;t.removeInteraction("tooltip"),t.on("afterchangesize",(function(){var n=e.getAnnotations(t);e.initialAnnotation=n}))},t.prototype.change=function(e){var t=this.context,n=t.view,o=t.event;this.initialAnnotation||(this.initialAnnotation=this.getAnnotations());var s=a.get(o,["data","data"]);if(o.type.match("legend-item")){var u=i.Util.getDelegationObject(this.context),d=n.getGroupedFields()[0];if(u&&d){var f=u.item;s=n.getData().find((function(e){return e[d]===f.value}))}}if(s){var p=a.get(e,"annotations",[]),h=a.get(e,"statistic",{});n.getController("annotation").clear(!0),a.each(p,(function(e){"object"===(0,r.default)(e)&&n.annotation()[e.type](e)})),l.renderStatistic(n,{statistic:h,plotType:"pie"},s),n.render(!0)}var g=c.getCurrentElement(this.context);g&&g.shape.toFront()},t.prototype.reset=function(){var e=this.context.view;e.getController("annotation").clear(!0);var t=this.getInitialAnnotation();a.each(t,(function(t){e.annotation()[t.type](t)})),e.render(!0)},t}(i.Action);t.StatisticAction=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getCurrentElement=void 0,t.getCurrentElement=function(e){var t,n=e.event.target;return n&&(t=n.get("element")),t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.adaptor=void 0;var r=n(1),o=n(0),i=n(15),a=n(15),l=n(34),c=n(59),s=n(64);function u(e){var t=e.chart,n=e.options,r=n.data,a=n.type,l=n.xField,u=n.yField,d=n.colorField,f=n.sizeField,p=n.sizeRatio,h=n.shape,g=n.color,v=n.tooltip,m=n.heatmapStyle;t.data(r);var y="polygon";"density"===a&&(y="heatmap");var b=s.getTooltipMapping(v,[l,u,d]),x=b.fields,w=b.formatter,S=1;return(p||0===p)&&(h||f?p<0||p>1?console.warn("sizeRatio is not in effect: It must be a number in [0,1]"):S=p:console.warn("sizeRatio is not in effect: Must define shape or sizeField first")),c.geometry(i.deepAssign({},e,{options:{type:y,colorField:d,tooltipFields:x,shapeField:f||"",label:void 0,mapping:{tooltip:w,shape:h&&(f?function(e){var t=r.map((function(e){return e[f]})),n=Math.min.apply(Math,t),i=Math.max.apply(Math,t);return[h,(o.get(e,f)-n)/(i-n),S]}:function(){return[h,1,S]}),color:g||d&&t.getTheme().sequenceColors.join("-"),style:m}}})),e}function d(e){var t,n=e.options,r=n.xAxis,o=n.yAxis,i=n.xField,c=n.yField;return a.flow(l.scale(((t={})[i]=r,t[c]=o,t)))(e)}function f(e){var t=e.chart,n=e.options,r=n.xAxis,o=n.yAxis,i=n.xField,a=n.yField;return!1===r?t.axis(i,!1):t.axis(i,r),!1===o?t.axis(a,!1):t.axis(a,o),e}function p(e){var t=e.chart,n=e.options,r=n.legend,o=n.colorField,i=n.sizeField,a=n.sizeLegend,l=!1!==r;return o&&t.legend(o,!!l&&r),i&&t.legend(i,void 0===a?r:a),l||a||t.legend(!1),e}function h(e){var t=e.chart,n=e.options,o=n.label,l=n.colorField,c=n.type,s=i.findGeometry(t,"density"===c?"heatmap":"polygon");if(o){if(l){var u=o.callback,d=r.__rest(o,["callback"]);s.label({fields:[l],callback:u,cfg:a.transformLabel(d)})}}else s.label(!1);return e}function g(e){var t=e.chart,n=e.options,r=n.coordinate,o=n.reflect;return r&&t.coordinate({type:r.type||"rect",cfg:r.cfg}),o&&t.coordinate().reflect(o),e}t.adaptor=function(e){return a.flow(l.theme,l.pattern("heatmapStyle"),d,g,u,f,p,l.tooltip,h,l.annotation(),l.interaction,l.animation,l.state)(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_OPTIONS=void 0;var r=n(24),o=n(15);t.DEFAULT_OPTIONS=o.deepAssign({},r.Plot.getDefaultOptions(),{type:"polygon",legend:!1,coordinate:{type:"rect"},xAxis:{tickLine:null,line:null,grid:{alignTick:!1,line:{style:{lineWidth:1,lineDash:null,stroke:"#f0f0f0"}}}},yAxis:{grid:{alignTick:!1,line:{style:{lineWidth:1,lineDash:null,stroke:"#f0f0f0"}}}}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1);n(14).registerShape("polygon","circle",{draw:function(e,t){var n,o,i=e.x,a=e.y,l=this.parsePoints(e.points),c=Math.abs(l[2].x-l[1].x),s=Math.abs(l[1].y-l[0].y),u=Math.min(c,s)/2,d=Number(e.shape[1]),f=Number(e.shape[2]),p=u*Math.sqrt(f)*Math.sqrt(d),h=(null===(n=e.style)||void 0===n?void 0:n.fill)||e.color||(null===(o=e.defaultStyle)||void 0===o?void 0:o.fill);return t.addShape("circle",{attrs:r.__assign(r.__assign(r.__assign({x:i,y:a,r:p},e.defaultStyle),e.style),{fill:h})})}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1);n(14).registerShape("polygon","square",{draw:function(e,t){var n,o,i=e.x,a=e.y,l=this.parsePoints(e.points),c=Math.abs(l[2].x-l[1].x),s=Math.abs(l[1].y-l[0].y),u=Math.min(c,s),d=Number(e.shape[1]),f=Number(e.shape[2]),p=u*Math.sqrt(f)*Math.sqrt(d),h=(null===(n=e.style)||void 0===n?void 0:n.fill)||e.color||(null===(o=e.defaultStyle)||void 0===o?void 0:o.fill);return t.addShape("rect",{attrs:r.__assign(r.__assign(r.__assign({x:i-p/2,y:a-p/2,width:p,height:p},e.defaultStyle),e.style),{fill:h})})}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.adaptor=t.legend=void 0;var r=n(1),o=n(0),i=n(34),a=n(15),l=n(43),c=n(531),s=n(532);function u(e){var t=e.chart,n=e.options,i=n.colorField,u=n.color,d=c.transform(e);t.data(d);var f=a.deepAssign({},e,{options:{xField:"x",yField:"y",seriesField:i&&s.WORD_CLOUD_COLOR_FIELD,rawFields:o.isFunction(u)&&r.__spreadArrays(o.get(n,"rawFields",[]),["datum"]),point:{color:u,shape:"word-cloud"}}});return l.point(f).ext.geometry.label(!1),t.coordinate().reflect("y"),t.axis(!1),e}function d(e){return a.flow(i.scale({x:{nice:!1},y:{nice:!1}}))(e)}function f(e){var t=e.chart,n=e.options,r=n.legend,o=n.colorField;return!1===r?t.legend(!1):o&&t.legend(s.WORD_CLOUD_COLOR_FIELD,r),e}t.legend=f,t.adaptor=function(e){a.flow(u,d,i.tooltip,f,i.interaction,i.animation,i.theme,i.state)(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.functor=t.transform=t.wordCloud=void 0;var r=n(0),o={font:function(){return"serif"},padding:1,size:[500,500],spiral:"archimedean",timeInterval:3e3};function i(e,t){var n=function(){var e=[256,256],t=u,n=f,r=d,o=p,i=h,a=b,_=Math.random,C=[],E=1/0,P=s,M=d,k=w,A={};function I(e){e.width=e.height=1;var t=Math.sqrt(e.getContext("2d").getImageData(0,0,1,1).data.length>>2);e.width=(l<<5)/t,e.height=c/t;var n=e.getContext("2d");return n.fillStyle=n.strokeStyle="red",n.textAlign="center",{context:n,ratio:t}}function T(t,n,r){for(var o,i,l,c=n.x,s=n.y,u=Math.sqrt(e[0]*e[0]+e[1]*e[1]),d=a(e),f=_()<.5?1:-1,p=-f;(o=d(p+=f))&&(i=~~o[0],l=~~o[1],!(Math.min(Math.abs(i),Math.abs(l))>=u));)if(n.x=c+i,n.y=s+l,!(n.x+n.x0<0||n.y+n.y0<0||n.x+n.x1>e[0]||n.y+n.y1>e[1])&&(!r||!v(n,t,e[0]))&&(!r||y(n,r))){for(var h=n.sprite,g=n.width>>5,m=e[0]>>5,b=n.x-(g<<4),x=127&b,w=32-x,S=n.y1-n.y0,O=void 0,C=(n.y+n.y0)*m+(b>>5),E=0;E<S;E++){O=0;for(var P=0;P<=g;P++)t[C+P]|=O<<w|(P<g?(O=h[E*g+P])>>>x:0);C+=m}return delete n.sprite,!0}return!1}return A.start=function(){var a=e[0],l=e[1],c=I(k()),s=A.board?A.board:x((e[0]>>5)*e[1]),u=C.length,d=[],f=C.map((function(e,a,l){return e.text=P.call(this,e,a,l),e.font=t.call(this,e,a,l),e.style=M.call(this,e,a,l),e.weight=r.call(this,e,a,l),e.rotate=o.call(this,e,a,l),e.size=~~n.call(this,e,a,l),e.padding=i.call(this,e,a,l),e})).sort((function(e,t){return t.size-e.size})),p=-1,h=A.board?[{x:0,y:0},{x:a,y:l}]:null;function v(){for(var t=Date.now();Date.now()-t<E&&++p<u;){var n=f[p];n.x=a*(_()+.5)>>1,n.y=l*(_()+.5)>>1,g(c,n,f,p),n.hasText&&T(s,n,h)&&(d.push(n),h?A.hasImage||m(h,n):h=[{x:n.x+n.x0,y:n.y+n.y0},{x:n.x+n.x1,y:n.y+n.y1}],n.x-=e[0]>>1,n.y-=e[1]>>1)}A._tags=d,A._bounds=h}return v(),A},A.createMask=function(t){var n=document.createElement("canvas"),r=e[0],o=e[1];if(r&&o){var i=r>>5,a=x((r>>5)*o);n.width=r,n.height=o;var l=n.getContext("2d");l.drawImage(t,0,0,t.width,t.height,0,0,r,o);for(var c=l.getImageData(0,0,r,o).data,s=0;s<o;s++)for(var u=0;u<r;u++){var d=i*s+(u>>5),f=s*r+u<<2,p=c[f]>=250&&c[f+1]>=250&&c[f+2]>=250?1<<31-u%32:0;a[d]|=p}A.board=a,A.hasImage=!0}},A.timeInterval=function(e){E=null==e?1/0:e},A.words=function(e){C=e},A.size=function(t){e=[+t[0],+t[1]]},A.font=function(e){t=S(e)},A.fontWeight=function(e){r=S(e)},A.rotate=function(e){o=S(e)},A.spiral=function(e){a=O[e]||e},A.fontSize=function(e){n=S(e)},A.padding=function(e){i=S(e)},A.random=function(e){_=S(e)},A}();["font","fontSize","fontWeight","padding","rotate","size","spiral","timeInterval","random"].forEach((function(e){r.isNil(t[e])||n[e](t[e])})),n.words(e),t.imageMask&&n.createMask(t.imageMask);var o=n.start()._tags;o.forEach((function(e){e.x+=t.size[0]/2,e.y+=t.size[1]/2}));var i=t.size,a=i[0],_=i[1];return o.push({text:"",value:0,x:0,y:0,opacity:0}),o.push({text:"",value:0,x:a,y:_,opacity:0}),o}t.wordCloud=function(e,t){return i(e,t=r.assign({},o,t))},t.transform=i;var a=Math.PI/180,l=64,c=2048;function s(e){return e.text}function u(){return"serif"}function d(){return"normal"}function f(e){return e.value}function p(){return 90*~~(2*Math.random())}function h(){return 1}function g(e,t,n,r){if(!t.sprite){var o=e.context,i=e.ratio;o.clearRect(0,0,(l<<5)/i,c/i);var s=0,u=0,d=0,f=n.length;for(--r;++r<f;){t=n[r],o.save(),o.font=t.style+" "+t.weight+" "+~~((t.size+1)/i)+"px "+t.font;var p=o.measureText(t.text+"m").width*i,h=t.size<<1;if(t.rotate){var g=Math.sin(t.rotate*a),v=Math.cos(t.rotate*a),m=p*v,y=p*g,b=h*v,x=h*g;p=Math.max(Math.abs(m+x),Math.abs(m-x))+31>>5<<5,h=~~Math.max(Math.abs(y+b),Math.abs(y-b))}else p=p+31>>5<<5;if(h>d&&(d=h),s+p>=l<<5&&(s=0,u+=d,d=0),u+h>=c)break;o.translate((s+(p>>1))/i,(u+(h>>1))/i),t.rotate&&o.rotate(t.rotate*a),o.fillText(t.text,0,0),t.padding&&(o.lineWidth=2*t.padding,o.strokeText(t.text,0,0)),o.restore(),t.width=p,t.height=h,t.xoff=s,t.yoff=u,t.x1=p>>1,t.y1=h>>1,t.x0=-t.x1,t.y0=-t.y1,t.hasText=!0,s+=p}for(var w=o.getImageData(0,0,(l<<5)/i,c/i).data,S=[];--r>=0;)if((t=n[r]).hasText){for(var O=(p=t.width)>>5,_=(h=t.y1-t.y0,0);_<h*O;_++)S[_]=0;if(null==(s=t.xoff))return;u=t.yoff;for(var C=0,E=-1,P=0;P<h;P++){for(_=0;_<p;_++){var M=O*P+(_>>5),k=w[(u+P)*(l<<5)+(s+_)<<2]?1<<31-_%32:0;S[M]|=k,C|=k}C?E=P:(t.y0++,h--,P--,u++)}t.y1=t.y0+E,t.sprite=S.slice(0,(t.y1-t.y0)*O)}}}function v(e,t,n){n>>=5;for(var r,o=e.sprite,i=e.width>>5,a=e.x-(i<<4),l=127&a,c=32-l,s=e.y1-e.y0,u=(e.y+e.y0)*n+(a>>5),d=0;d<s;d++){r=0;for(var f=0;f<=i;f++)if((r<<c|(f<i?(r=o[d*i+f])>>>l:0))&t[u+f])return!0;u+=n}return!1}function m(e,t){var n=e[0],r=e[1];t.x+t.x0<n.x&&(n.x=t.x+t.x0),t.y+t.y0<n.y&&(n.y=t.y+t.y0),t.x+t.x1>r.x&&(r.x=t.x+t.x1),t.y+t.y1>r.y&&(r.y=t.y+t.y1)}function y(e,t){return e.x+e.x1>t[0].x&&e.x+e.x0<t[1].x&&e.y+e.y1>t[0].y&&e.y+e.y0<t[1].y}function b(e){var t=e[0]/e[1];return function(e){return[t*(e*=.1)*Math.cos(e),e*Math.sin(e)]}}function x(e){for(var t=[],n=-1;++n<e;)t[n]=0;return t}function w(){return document.createElement("canvas")}function S(e){return r.isFunction(e)?e:function(){return e}}t.functor=S;var O={archimedean:b,rectangular:function(e){var t=4*e[0]/e[1],n=0,r=0;return function(e){var o=e<0?-1:1;switch(Math.sqrt(1+4*o*e)-o&3){case 0:n+=t;break;case 1:r+=4;break;case 2:n-=t;break;default:r-=4}return[n,r]}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(14);function i(e){return{fontSize:e.data.size,text:e.data.text,textAlign:"center",fontFamily:e.data.font,fontWeight:e.data.weight,fill:e.color||e.defaultStyle.stroke,textBaseline:"alphabetic"}}o.registerShape("point","word-cloud",{draw:function(e,t){var n=e.x,a=e.y,l=t.addShape("text",{attrs:r.__assign(r.__assign({},i(e)),{x:n,y:a})}),c=e.data.rotate;return"number"===typeof c&&o.Util.rotate(l,c*Math.PI/180),l}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.adaptor=t.legend=void 0;var r=n(1),o=n(0),i=n(15),a=n(34),l=n(43);function c(e){var t=e.chart,n=e.options,r=n.data,o=n.sectorStyle,a=n.color;return t.data(r),i.flow(l.interval)(i.deepAssign({},e,{options:{marginRatio:1,interval:{style:o,color:a}}})),e}function s(e){var t=e.chart,n=e.options,a=n.label,l=n.xField,c=i.findGeometry(t,"interval");if(!1===a)c.label(!1);else if(o.isObject(a)){var s=a.callback,u=a.fields,d=r.__rest(a,["callback","fields"]),f=d.offset,p=d.layout;(void 0===f||f>=0)&&(p=p?o.isArray(p)?p:[p]:[],d.layout=o.filter(p,(function(e){return"limit-in-shape"!==e.type})),d.layout.length||delete d.layout),c.label({fields:u||[l],callback:s,cfg:i.transformLabel(d)})}else i.log(i.LEVEL.WARN,null===a,"the label option must be an Object."),c.label({fields:[l]});return e}function u(e){var t=e.chart,n=e.options,r=n.legend,o=n.seriesField;return!1===r?t.legend(!1):o&&t.legend(o,r),e}function d(e){var t=e.chart,n=e.options,r=n.radius,o=n.innerRadius,i=n.startAngle,a=n.endAngle;return t.coordinate({type:"polar",cfg:{radius:r,innerRadius:o,startAngle:i,endAngle:a}}),e}function f(e){var t,n=e.options,r=n.xAxis,o=n.yAxis,l=n.xField,c=n.yField;return i.flow(a.scale(((t={})[l]=r,t[c]=o,t)))(e)}function p(e){var t=e.chart,n=e.options,r=n.xAxis,o=n.yAxis,i=n.xField,a=n.yField;return r?t.axis(i,r):t.axis(i,!1),o?t.axis(a,o):t.axis(a,!1),e}t.legend=u,t.adaptor=function(e){i.flow(a.pattern("sectorStyle"),c,f,s,d,p,u,a.tooltip,a.interaction,a.animation,a.theme,a.annotation(),a.state)(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_OPTIONS=void 0;var r=n(24),o=n(15);t.DEFAULT_OPTIONS=o.deepAssign({},r.Plot.getDefaultOptions(),{xAxis:!1,yAxis:!1,legend:{position:"right"},sectorStyle:{stroke:"#fff",lineWidth:1},label:{layout:{type:"limit-in-shape"}},tooltip:{shared:!0,showMarkers:!1},interactions:[{type:"active-region"}]})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.adaptor=t.meta=void 0;var r=n(0),o=n(34),i=n(130),a=n(15),l=n(523),c=n(533),s=n(1147),u=n(1148),d=n(1149),f=n(119);function p(e){var t,n=e.options,o=n.compareField,c=n.xField,s=n.yField,u=n.locale,d=n.funnelStyle,p=n.data,h=i.getLocale(u),g={label:o?{fields:[c,s,o,f.FUNNEL_PERCENT,f.FUNNEL_CONVERSATION],formatter:function(e){return""+e[s]}}:{fields:[c,s,f.FUNNEL_PERCENT,f.FUNNEL_CONVERSATION],offset:0,position:"middle",formatter:function(e){return e[c]+" "+e[s]}},tooltip:{title:c,formatter:function(e){return{name:e[c],value:e[s]}}},conversionTag:{formatter:function(e){return h.get(["conversionTag","label"])+": "+l.conversionTagFormatter.apply(void 0,e[f.FUNNEL_CONVERSATION])}}};return(o||d)&&(t=function(e){return a.deepAssign({},o&&{lineWidth:1,stroke:"#fff"},r.isFunction(d)?d(e):d)}),a.deepAssign({options:g},e,{options:{funnelStyle:t,data:r.clone(p)}})}function h(e){var t=e.options,n=t.compareField,r=t.dynamicHeight;return t.seriesField?u.facetFunnel(e):n?s.compareFunnel(e):r?d.dynamicHeightFunnel(e):c.basicFunnel(e)}function g(e){var t,n=e.options,r=n.xAxis,i=n.yAxis,l=n.xField,c=n.yField;return a.flow(o.scale(((t={})[l]=r,t[c]=i,t)))(e)}function v(e){return e.chart.axis(!1),e}function m(e){var t=e.chart,n=e.options.legend;return!1===n?t.legend(!1):t.legend(n),e}t.meta=g,t.adaptor=function(e){return a.flow(p,h,g,v,o.tooltip,o.interaction,m,o.animation,o.theme,o.annotation())(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compareFunnel=void 0;var r=n(0),o=n(15),i=n(64),a=n(59),l=n(119),c=n(300);function s(e){var t,n=e.chart,r=e.options,o=r.data,i=void 0===o?[]:o,a=r.yField;return n.data(i),n.scale(((t={})[a]={sync:!0},t)),e}function u(e){var t=e.chart,n=e.options,s=n.data,u=n.xField,d=n.yField,f=n.color,p=n.compareField,h=n.isTransposed,g=n.tooltip,v=n.maxSize,m=n.minSize,y=n.label,b=n.funnelStyle,x=n.state;return t.facet("mirror",{fields:[p],transpose:!h,padding:h?0:[32,0,0,0],eachView:function(e,t){var n=h?t.rowIndex:t.columnIndex;h||e.coordinate({type:"rect",actions:[["transpose"],["scale",0===n?-1:1,-1]]});var w=c.transformData(t.data,s,{yField:d,maxSize:v,minSize:m});e.data(w);var S=i.getTooltipMapping(g,[u,d,p]),O=S.fields,_=S.formatter,C=h?{offset:0===n?10:-23,position:0===n?"bottom":"top"}:{offset:10,position:"left",style:{textAlign:0===n?"end":"start"}};a.geometry({chart:e,options:{type:"interval",xField:u,yField:l.FUNNEL_MAPPING_VALUE,colorField:u,tooltipFields:r.isArray(O)&&O.concat([l.FUNNEL_PERCENT,l.FUNNEL_CONVERSATION]),mapping:{shape:"funnel",tooltip:_,color:f,style:b},label:!1!==y&&o.deepAssign({},C,y),state:x}})}}),e}function d(e){var t=e.chart,n=e.options,r=n.conversionTag,i=n.isTransposed;return t.once("beforepaint",(function(){t.views.forEach((function(e,t){c.conversionTagComponent((function(e,n,a,c){var s=0===t?-1:1;return o.deepAssign({},c,{start:[n-.5,e[l.FUNNEL_MAPPING_VALUE]],end:[n-.5,e[l.FUNNEL_MAPPING_VALUE]+.05],text:i?{style:{textAlign:"start"}}:{offsetX:!1!==r?s*r.offsetX:0,style:{textAlign:0===t?"end":"start"}}})}))(o.deepAssign({},{chart:e,options:n}))}))})),e}t.compareFunnel=function(e){return o.flow(s,u,d)(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.facetFunnel=void 0;var r=n(15),o=n(533);function i(e){var t,n=e.chart,r=e.options,o=r.data,i=void 0===o?[]:o,a=r.yField;return n.data(i),n.scale(((t={})[a]={sync:!0},t)),e}function a(e){var t=e.chart,n=e.options,i=n.seriesField,a=n.isTransposed;return t.facet("rect",{fields:[i],padding:[a?0:32,10,0,10],eachView:function(t,n){o.basicFunnel(r.deepAssign({},e,{chart:t,options:{data:n.data}}))}}),e}t.facetFunnel=function(e){return r.flow(i,a)(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dynamicHeightFunnel=void 0;var r=n(1),o=n(0),i=n(15),a=n(119),l=n(59),c=n(64),s=n(300);function u(e){var t=e.chart,n=e.options,r=n.data,i=void 0===r?[]:r,l=n.yField,c=o.reduce(i,(function(e,t){return e+(t[l]||0)}),0),s=o.maxBy(i,l)[l],u=o.map(i,(function(e,t){var n=[],r=[];if(e[a.FUNNEL_TOTAL_PERCENT]=(e[l]||0)/c,t){var u=i[t-1][a.PLOYGON_X],d=i[t-1][a.PLOYGON_Y];n[0]=u[3],r[0]=d[3],n[1]=u[2],r[1]=d[2]}else n[0]=-.5,r[0]=1,n[1]=.5,r[1]=1;return r[2]=r[1]-e[a.FUNNEL_TOTAL_PERCENT],n[2]=(r[2]+1)/4,r[3]=r[2],n[3]=-n[2],e[a.PLOYGON_X]=n,e[a.PLOYGON_Y]=r,e[a.FUNNEL_PERCENT]=(e[l]||0)/s,e[a.FUNNEL_CONVERSATION]=[o.get(i,[t-1,l]),e[l]],e}));return t.data(u),e}function d(e){var t=e.chart,n=e.options,r=n.xField,i=n.yField,s=n.color,u=n.tooltip,d=n.label,f=n.funnelStyle,p=n.state,h=c.getTooltipMapping(u,[r,i]),g=h.fields,v=h.formatter;return l.geometry({chart:t,options:{type:"polygon",xField:a.PLOYGON_X,yField:a.PLOYGON_Y,colorField:r,tooltipFields:o.isArray(g)&&g.concat([a.FUNNEL_PERCENT,a.FUNNEL_CONVERSATION]),label:d,state:p,mapping:{tooltip:v,color:s,style:f}}}),e}function f(e){var t=e.chart,n=e.options.isTransposed;return t.coordinate({type:"rect",actions:n?[["transpose"],["reflect","x"]]:[]}),e}function p(e){return s.conversionTagComponent((function(e,t,n,o){return r.__assign(r.__assign({},o),{start:[e[a.PLOYGON_X][1],e[a.PLOYGON_Y][1]],end:[e[a.PLOYGON_X][1]+.05,e[a.PLOYGON_Y][1]]})}))(e),e}t.dynamicHeightFunnel=function(e){return i.flow(u,d,f,p)(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.adaptor=void 0;var r=n(1),o=n(34),i=n(43),a=n(15);function l(e){var t=e.chart,n=e.options,o=n.data,l=n.lineStyle,c=n.color,s=n.point,u=n.area;t.data(o);var d=a.deepAssign({},e,{options:{line:{style:l,color:c},point:s?r.__assign({color:c},s):s,area:u?r.__assign({color:c},u):u,label:void 0}}),f=a.deepAssign({},d,{options:{tooltip:!1}}),p=(null===s||void 0===s?void 0:s.state)||n.state,h=a.deepAssign({},d,{options:{tooltip:!1,state:p}});return i.line(d),i.point(h),i.area(f),e}function c(e){var t,n=e.options,r=n.xAxis,i=n.yAxis,l=n.xField,c=n.yField;return a.flow(o.scale(((t={})[l]=r,t[c]=i,t)))(e)}function s(e){var t=e.chart,n=e.options,r=n.radius,o=n.startAngle,i=n.endAngle;return t.coordinate("polar",{radius:r,startAngle:o,endAngle:i}),e}function u(e){var t=e.chart,n=e.options,r=n.xField,o=n.xAxis,i=n.yField,a=n.yAxis;return t.axis(r,o),t.axis(i,a),e}function d(e){var t=e.chart,n=e.options,o=n.label,i=n.yField,l=a.findGeometry(t,"line");if(o){var c=o.callback,s=r.__rest(o,["callback"]);l.label({fields:[i],callback:c,cfg:a.transformLabel(s)})}else l.label(!1);return e}t.adaptor=function(e){return a.flow(l,c,o.theme,s,u,o.legend,o.tooltip,d,o.interaction,o.animation,o.annotation())(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(14),o=n(1152);r.registerAction("radar-tooltip",o.RadarTooltipAction),r.registerInteraction("radar-tooltip",{start:[{trigger:"plot:mousemove",action:"radar-tooltip:show"}],end:[{trigger:"plot:mouseleave",action:"radar-tooltip:hide"}]})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RadarTooltipAction=t.RadarTooltipController=void 0;var r=n(1),o=n(14),i=n(0),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return"radar-tooltip"},enumerable:!1,configurable:!0}),t.prototype.getTooltipItems=function(t){var n=this.getTooltipCfg(),a=n.shared,l=n.title,c=e.prototype.getTooltipItems.call(this,t);if(c.length>0){var s=this.view.geometries[0],u=s.dataArray,d=c[0].name,f=[];return u.forEach((function(e){e.forEach((function(e){var t=o.Util.getTooltipItems(e,s)[0];if(!a&&t&&t.name===d){var n=i.isNil(l)?d:l;f.push(r.__assign(r.__assign({},t),{name:t.title,title:n}))}else a&&t&&(n=i.isNil(l)?t.name||d:l,f.push(r.__assign(r.__assign({},t),{name:t.title,title:n})))}))})),f}return[]},t}(o.TooltipController);t.RadarTooltipController=a,o.registerComponentController("radar-tooltip",a);var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.init=function(){this.context.view.removeInteraction("tooltip")},t.prototype.show=function(){var e=this.context.event;this.getTooltipController().showTooltip({x:e.x,y:e.y})},t.prototype.hide=function(){this.getTooltipController().hideTooltip()},t.prototype.getTooltipController=function(){return this.context.view.getController("radar-tooltip")},t}(o.Action);t.RadarTooltipAction=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.adaptor=t.statistic=void 0;var r=n(1),o=n(0),i=n(34),a=n(15),l=n(43),c=n(534);function s(e){var t=e.chart,n=e.options,r=n.percent,o=n.liquidStyle,i=n.radius,s=n.outline,u=n.wave,d=n.shape;t.scale({percent:{min:0,max:1}}),t.data(c.getLiquidData(r));var f=n.color||t.getTheme().defaultColor,p=a.deepAssign({},e,{options:{xField:"type",yField:"percent",widthRatio:i,interval:{color:f,style:o,shape:"liquid-fill-gauge"}}}),h=l.interval(p).ext.geometry,g={radius:i,outline:s,wave:u,shape:d,background:t.getTheme().background};return h.customInfo(g),t.legend(!1),t.axis(!1),t.tooltip(!1),e}function u(e,t){var n=e.chart,i=e.options,l=i.statistic,c=i.percent,s=i.meta;n.getController("annotation").clear(!0);var u=o.get(s,["percent","formatter"])||function(e){return(100*e).toFixed(2)+"%"},d=l.content;return d&&(d=a.deepAssign({},d,{content:o.isNil(d.content)?u(c):d.content})),a.renderStatistic(n,{statistic:r.__assign(r.__assign({},l),{content:d}),plotType:"liquid"},{percent:c}),t&&n.render(!0),e}t.statistic=u,t.adaptor=function(e){return a.flow(i.theme,i.pattern("liquidStyle"),s,u,i.scale({}),i.animation,i.interaction)(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_OPTIONS=void 0,t.DEFAULT_OPTIONS={radius:.9,statistic:{title:!1,content:{style:{opacity:.75,fontSize:"30px",lineHeight:"30px",textAlign:"center"}}},outline:{border:2,distance:0},wave:{count:3,length:192},shape:"circle"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(14),i=n(0),a=n(530);function l(e,t,n){return e+(t-e)*n}function c(e,t,n,r){return 0===t?[[e+.5*n/Math.PI/2,r/2],[e+.5*n/Math.PI,r],[e+n/4,r]]:1===t?[[e+.5*n/Math.PI/2*(Math.PI-2),r],[e+.5*n/Math.PI/2*(Math.PI-1),r/2],[e+n/4,0]]:2===t?[[e+.5*n/Math.PI/2,-r/2],[e+.5*n/Math.PI,-r],[e+n/4,-r]]:[[e+.5*n/Math.PI/2*(Math.PI-2),-r],[e+.5*n/Math.PI/2*(Math.PI-1),-r/2],[e+n/4,0]]}function s(e,t,n,r,o,i,a){for(var l=4*Math.ceil(2*e/n*4),s=[],u=r;u<2*-Math.PI;)u+=2*Math.PI;for(;u>0;)u-=2*Math.PI;var d=i-e+(u=u/Math.PI/2*n)-2*e;s.push(["M",d,t]);for(var f=0,p=0;p<l;++p){var h=c(p*n/4,p%4,n,o);s.push(["C",h[0][0]+d,-h[0][1]+t,h[1][0]+d,-h[1][1]+t,h[2][0]+d,-h[2][1]+t]),p===l-1&&(f=h[2][0])}return s.push(["L",f+d,a+e]),s.push(["L",d,a+e]),s.push(["Z"]),s}function u(e,t,n,r){var o=2*n/3,i=Math.max(o,r),a=o/2,l=e,c=a+t-i/2,s=Math.asin(a/(.85*(i-a))),u=Math.sin(s)*a,d=Math.cos(s)*a,f=l-d,p=c+u,h=e,g=c+a/Math.sin(s);return"\n      M "+f+" "+p+"\n      A "+a+" "+a+" 0 1 1 "+(f+2*d)+" "+p+"\n      Q "+h+" "+g+" "+e+" "+(t+i/2)+"\n      Q "+h+" "+g+" "+f+" "+p+"\n      Z \n    "}function d(e,t,n,r){var o=n/2,i=r/2;return"\n      M "+e+" "+(t-i)+" \n      a "+o+" "+i+" 0 1 0 0 "+2*i+"\n      a "+o+" "+i+" 0 1 0 0 "+2*-i+"\n      Z\n    "}function f(e,t,n,r){var o=r/2,i=n/2;return"\n      M "+e+" "+(t-o)+"\n      L "+(e+i)+" "+t+"\n      L "+e+" "+(t+o)+"\n      L "+(e-i)+" "+t+"\n      Z\n    "}function p(e,t,n,r){var o=r/2,i=n/2;return"\n      M "+e+" "+(t-o)+"\n      L "+(e+i)+" "+(t+o)+"\n      L "+(e-i)+" "+(t+o)+"\n      Z\n    "}function h(e,t,n,r){var o=r/2,i=n/2*.618;return"\n      M "+(e-i)+" "+(t-o)+"\n      L "+(e+i)+" "+(t-o)+"\n      L "+(e+i)+" "+(t+o)+"\n      L "+(e-i)+" "+(t+o)+"\n      Z\n    "}o.registerShape("interval","liquid-fill-gauge",{draw:function(e,t){var n=e.customInfo,o=n,c=o.radius,g=o.shape,v=o.background,m=n.outline,y=n.wave,b=m.border,x=m.distance,w=y.count,S=y.length,O=i.reduce(e.points,(function(e,t){return Math.min(e,t.x)}),1/0),_=this.parsePoint({x:.5,y:.5}),C=this.parsePoint({x:O,y:.5}),E=_.x-C.x,P=Math.min(E,C.y*c),M=function(e){var t=r.__assign({opacity:1},e.style);return e.color&&!t.fill&&(t.fill=e.color),t}(e),k=function(e){var t=i.mix({},{fill:"#fff",fillOpacity:0,lineWidth:4},e.style);return e.color&&!t.stroke&&(t.stroke=e.color),i.isNumber(e.opacity)&&(t.opacity=t.strokeOpacity=e.opacity),t}(i.mix({},e,m)),A=P-b/2,I={pin:u,circle:d,diamond:f,triangle:p,rect:h},T=("function"===typeof g?g:I[g]||I.circle)(_.x,_.y,2*A,2*A),j=t.addGroup({name:"waves"}),L=j.setClip({type:"path",attrs:{path:T}});return function(e,t,n,r,o,i,c,u,d){for(var f=o.fill,p=o.opacity,h=c.getBBox(),g=h.maxX-h.minX,v=h.maxY-h.minY,m=0;m<r;m++){var y=r<=1?0:m/(r-1),b=i.addShape("path",{name:"waterwave-path",attrs:{path:s(u,h.minY+v*n,d,0,g/32,e,t),fill:f,opacity:l(.2,.9,y)*p}});try{var x=a.transform([["t",d,0]]);b.stopAnimate(),b.animate({matrix:x},{duration:l(2500,5e3,y),repeat:!0})}catch(w){console.warn("off-screen group animate error!")}}}(_.x,_.y,1-e.points[1].y,w,M,j,L,2*P,S),t.addShape("path",{name:"distance",attrs:{path:T,fill:"transparent",lineWidth:b+2*x,stroke:"transparent"===v?"#fff":v}}),t.addShape("path",{name:"wrap",attrs:i.mix(k,{path:T,fill:"transparent",lineWidth:b})}),t}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.adaptor=void 0;var r=n(1),o=n(34),i=n(153),a=n(15),l=n(15),c=n(43),s=n(535),u=n(536);function d(e){var t=e.chart,n=e.options,r=n.data,o=n.binField,i=n.binNumber,l=n.binWidth,d=n.color,f=n.stackField,p=n.legend,h=n.columnStyle,g=s.binHistogram(r,o,l,i,f);t.data(g);var v=a.deepAssign({},e,{options:{xField:u.HISTOGRAM_X_FIELD,yField:u.HISTOGRAM_Y_FIELD,seriesField:f,isStack:!0,interval:{color:d,style:h}}});return c.interval(v),p&&f&&t.legend(f,p),e}function f(e){var t,n=e.options,r=n.xAxis,i=n.yAxis;return l.flow(o.scale(((t={})[u.HISTOGRAM_X_FIELD]=r,t[u.HISTOGRAM_Y_FIELD]=i,t)))(e)}function p(e){var t=e.chart,n=e.options,r=n.xAxis,o=n.yAxis;return!1===r?t.axis(u.HISTOGRAM_X_FIELD,!1):t.axis(u.HISTOGRAM_X_FIELD,r),!1===o?t.axis(u.HISTOGRAM_Y_FIELD,!1):t.axis(u.HISTOGRAM_Y_FIELD,o),e}function h(e){var t=e.chart,n=e.options.label,o=a.findGeometry(t,"interval");if(n){var i=n.callback,c=r.__rest(n,["callback"]);o.label({fields:[u.HISTOGRAM_Y_FIELD],callback:i,cfg:l.transformLabel(c)})}else o.label(!1);return e}t.adaptor=function(e){return l.flow(o.theme,i.pattern("columnStyle"),d,f,p,o.state,h,o.tooltip,o.interaction,o.animation)(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.adaptor=t.tooltip=void 0;var r=n(1),o=n(0),i=n(34),a=n(43),l=n(130),c=n(15),s=n(301),u=n(537);function d(e){var t=e.options,n=t.locale,r=t.total,o=l.getLocale(n).get(["waterfall","total"]);return r&&"string"!==typeof r.label&&o&&(e.options.total.label=o),e}function f(e){var t=e.chart,n=e.options,r=n.data,i=n.xField,l=n.yField,d=n.total,f=n.leaderLine,p=n.columnWidthRatio,h=n.waterfallStyle,g=n.risingFill,v=n.fallingFill,m=n.color;t.data(u.transformData(r,i,l,d));var y=m||function(e){return o.get(e,[s.IS_TOTAL])?o.get(d,["style","fill"],""):o.get(e,[s.Y_FIELD,1])-o.get(e,[s.Y_FIELD,0])>0?g:v},b=c.deepAssign({},e,{options:{xField:i,yField:s.Y_FIELD,seriesField:i,rawFields:[l,s.DIFF_FIELD,s.IS_TOTAL,s.Y_FIELD],widthRatio:p,interval:{style:h,shape:"waterfall",color:y}}});return a.interval(b).ext.geometry.customInfo({leaderLine:f}),e}function p(e){var t,n,r=e.options,a=r.xAxis,l=r.yAxis,u=r.xField,d=r.yField,f=r.meta,p=c.deepAssign({},{alias:d},o.get(f,d));return c.flow(i.scale(((t={})[u]=a,t[d]=l,t[s.Y_FIELD]=l,t),c.deepAssign({},f,((n={})[s.Y_FIELD]=p,n[s.DIFF_FIELD]=p,n[s.ABSOLUTE_FIELD]=p,n))))(e)}function h(e){var t=e.chart,n=e.options,r=n.xAxis,o=n.yAxis,i=n.xField,a=n.yField;return!1===r?t.axis(i,!1):t.axis(i,r),!1===o?(t.axis(a,!1),t.axis(s.Y_FIELD,!1)):(t.axis(a,o),t.axis(s.Y_FIELD,o)),e}function g(e){var t=e.chart,n=e.options,r=n.legend,i=n.total,a=n.risingFill,s=n.fallingFill,u=n.locale,d=l.getLocale(u);if(!1===r)t.legend(!1);else{var f=[{name:d.get(["general","increase"]),value:"increase",marker:{symbol:"square",style:{r:5,fill:a}}},{name:d.get(["general","decrease"]),value:"decrease",marker:{symbol:"square",style:{r:5,fill:s}}}];i&&f.push({name:i.label||"",value:"total",marker:{symbol:"square",style:c.deepAssign({},{r:5},o.get(i,"style"))}}),t.legend(c.deepAssign({},{custom:!0,position:"top",items:f},r)),t.removeInteraction("legend-filter")}return e}function v(e){var t=e.chart,n=e.options,o=n.label,i=n.labelMode,a=n.xField,l=c.findGeometry(t,"interval");if(o){var u=o.callback,d=r.__rest(o,["callback"]);l.label({fields:"absolute"===i?[s.ABSOLUTE_FIELD,a]:[s.DIFF_FIELD,a],callback:u,cfg:c.transformLabel(d)})}else l.label(!1);return e}function m(e){var t=e.chart,n=e.options,o=n.tooltip,i=n.xField,a=n.yField;if(!1!==o){t.tooltip(r.__assign({showCrosshairs:!1,showMarkers:!1,shared:!0,fields:[a]},o));var l=t.geometries[0];(null===o||void 0===o?void 0:o.formatter)?l.tooltip(i+"*"+a,o.formatter):l.tooltip(a)}else t.tooltip(!1);return e}n(1158),t.tooltip=m,t.adaptor=function(e){return c.flow(d,i.theme,f,p,h,g,m,v,i.state,i.interaction,i.animation,i.annotation())(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(14),i=n(0),a=n(15);o.registerShape("interval","waterfall",{draw:function(e,t){var n=e.customInfo,o=e.points,l=e.nextPoints,c=t.addGroup(),s=this.parsePath(function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];if(r){var o=0===n?"M":"L";t.push([o,r.x,r.y])}}var i=e[0];return t.push(["L",i.x,i.y]),t.push(["z"]),t}(o)),u=function(e){return a.deepAssign({},e.defaultStyle,e.style,{fill:e.color})}(e);c.addShape("path",{attrs:r.__assign(r.__assign({},u),{path:s})});var d=i.get(n,"leaderLine");if(d&&l){var f=[["M",o[2].x,o[2].y],["L",l[0].x,l[0].y]];o[2].y===l[1].y&&(f[1]=["L",l[1].x,l[1].y]),f=this.parsePath(f),c.addShape("path",{attrs:r.__assign({path:f},d.style||{})})}return c}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.adaptor=t.tooltip=t.meta=t.transformOptions=void 0;var r=n(1),o=n(0),i=n(15),a=n(43),l=n(524),c=n(34),s=n(15),u=n(1160);function d(e){var t=e.data,n=void 0===t?[]:t,r=e.xField,o=e.yField;if(n.length){for(var a=!0,l=!0,c=n[0],s=void 0,d=1;d<n.length&&(s=n[d],c[r]!==s[r]&&(a=!1),c[o]!==s[o]&&(l=!1),a||l);d++)c=s;var f=[];a&&f.push(r),l&&f.push(o);var p=i.pick(u.getMeta(e),f);return i.deepAssign({},e,{meta:p})}return e}function f(e){var t=e.chart,n=e.options,l=n.data,c=n.type,u=n.color,d=n.shape,f=n.pointStyle,p=n.shapeField,h=n.colorField,g=n.xField,v=n.yField,m=n.sizeField,y=n.size,b=n.tooltip;m&&(y||(y=[2,8]),o.isNumber(y)&&(y=[y,y])),b&&!b.fields&&(b=r.__assign(r.__assign({},b),{fields:[g,v,h,m,p]})),t.data(l),a.point(i.deepAssign({},e,{options:{seriesField:h,point:{color:u,shape:d,size:y,style:f},tooltip:b}}));var x=s.findGeometry(t,"point");return c&&x.adjust(c),e}function p(e){var t,n=e.options,r=n.xAxis,o=n.yAxis,a=n.xField,l=n.yField,s=d(n);return i.flow(c.scale(((t={})[a]=r,t[l]=o,t)))(i.deepAssign({},e,{options:s}))}function h(e){var t=e.chart,n=e.options,r=n.xAxis,o=n.yAxis,i=n.xField,a=n.yField;return t.axis(i,r),t.axis(a,o),e}function g(e){var t=e.chart,n=e.options,r=n.legend,o=n.colorField,i=n.shapeField,a=n.sizeField,l=n.shapeLegend,c=n.sizeLegend,s=!1!==r;return o&&t.legend(o,!!s&&r),i&&(l?t.legend(i,l):t.legend(i,!1!==l&&r)),a&&t.legend(a,c||!1),s||l||c||t.legend(!1),e}function v(e){var t=e.chart,n=e.options,o=n.label,i=n.yField,a=s.findGeometry(t,"point");if(o){var l=o.callback,c=r.__rest(o,["callback"]);a.label({fields:[i],callback:l,cfg:s.transformLabel(c)})}else a.label(!1);return e}function m(e){var t=e.options.quadrant,n=[];if(t){var o=t.xBaseline,a=void 0===o?0:o,l=t.yBaseline,s=void 0===l?0:l,d=t.labels,f=t.regionStyle,p=t.lineStyle,h=u.getQuadrantDefaultConfig(a,s);new Array(4).join(",").split(",").forEach((function(e,t){n.push(r.__assign(r.__assign({type:"region",top:!1},h.regionStyle[t].position),{style:i.deepAssign({},h.regionStyle[t].style,null===f||void 0===f?void 0:f[t])}),r.__assign({type:"text",top:!0},i.deepAssign({},h.labelStyle[t],null===d||void 0===d?void 0:d[t])))})),n.push({type:"line",top:!1,start:["min",s],end:["max",s],style:i.deepAssign({},h.lineStyle,p)},{type:"line",top:!1,start:[a,"min"],end:[a,"max"],style:i.deepAssign({},h.lineStyle,p)})}return i.flow(c.annotation(n))(e)}function y(e){var t=e.options,n=e.chart,o=t.regressionLine;if(o){var i=o.style,a=o.top,l=void 0!==a&&a,c={stroke:"#9ba29a",lineWidth:2,opacity:.5};n.annotation().shape({top:l,render:function(e,o){var a=e.addGroup({id:n.id+"-regression-line",name:"regression-line-group"}),l=u.getPath({view:o,options:t});a.addShape("path",{name:"regression-line",attrs:r.__assign(r.__assign({path:l},c),i)})}})}return e}function b(e){var t=e.chart,n=e.options.tooltip;return n?t.tooltip(n):!1===n&&t.tooltip(!1),e}t.transformOptions=d,t.meta=p,t.tooltip=b,t.adaptor=function(e){return i.flow(f,p,h,g,b,v,l.brushInteraction,c.interaction,m,c.animation,c.theme,y)(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getMeta=t.getPath=t.getQuadrantDefaultConfig=void 0;var r=n(1),o=n(538),i=n(0),a=n(15),l={exp:o.regressionExp,linear:o.regressionLinear,loess:o.regressionLoess,log:o.regressionLog,poly:o.regressionPoly,pow:o.regressionPow,quad:o.regressionQuad};t.getQuadrantDefaultConfig=function(e,t){var n=10;return{regionStyle:[{position:{start:[e,"max"],end:["max",t]},style:{fill:"#d8d0c0",opacity:.4}},{position:{start:["min","max"],end:[e,t]},style:{fill:"#a3dda1",opacity:.4}},{position:{start:["min",t],end:[e,"min"]},style:{fill:"#d8d0c0",opacity:.4}},{position:{start:[e,t],end:["max","min"]},style:{fill:"#a3dda1",opacity:.4}}],lineStyle:{stroke:"#9ba29a",lineWidth:1},labelStyle:[{position:["max",t],offsetX:-10,offsetY:-10,style:{textAlign:"right",textBaseline:"bottom",fontSize:14,fill:"#ccc"}},{position:["min",t],offsetX:n,offsetY:-10,style:{textAlign:"left",textBaseline:"bottom",fontSize:14,fill:"#ccc"}},{position:["min",t],offsetX:n,offsetY:n,style:{textAlign:"left",textBaseline:"top",fontSize:14,fill:"#ccc"}},{position:["max",t],offsetX:-10,offsetY:n,style:{textAlign:"right",textBaseline:"top",fontSize:14,fill:"#ccc"}}]}},t.getPath=function(e){var t=e.options,n=t.xField,r=t.yField,o=t.data,c=t.regressionLine,s=c.type,u=void 0===s?"linear":s,d=c.algorithm;return function(e,t){var n=t.view,r=t.options,o=r.xField,i=r.yField,l=n.getScaleByField(o),c=n.getScaleByField(i),s=e.map((function(e){return n.getCoordinate().convert({x:l.scale(e[0]),y:c.scale(e[1])})}));return a.getSplinePath(s,!1)}(d?i.isArray(d)?d:d(o):l[u]().x((function(e){return e[n]})).y((function(e){return e[r]}))(o),e)},t.getMeta=function(e){var t,n=e.meta,o=void 0===n?{}:n,a=e.xField,l=e.yField,c=e.data,s=c[0][a],u=c[0][l],d=s>0,f=u>0;function p(e,t){var n=i.get(o,[e]);function r(e){return i.get(n,e)}var a={};return"x"===t?(i.isNumber(s)&&(i.isNumber(r("min"))||(a.min=d?0:2*s),i.isNumber(r("max"))||(a.max=d?2*s:0)),a):(i.isNumber(u)&&(i.isNumber(r("min"))||(a.min=f?0:2*u),i.isNumber(r("max"))||(a.max=f?2*u:0)),a)}return r.__assign(r.__assign({},o),((t={})[a]=r.__assign(r.__assign({},o[a]),p(a,"x")),t[l]=r.__assign(r.__assign({},o[l]),p(l,"y")),t))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_OPTIONS=void 0;var r=n(24),o=n(15);t.DEFAULT_OPTIONS=o.deepAssign({},r.Plot.getDefaultOptions(),{size:4,tooltip:{showTitle:!1,showMarkers:!1,showCrosshairs:!0,crosshairs:{type:"xy"}}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n(522)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.adaptor=t.meta=void 0;var r=n(1),o=n(0),i=n(34),a=n(15),l=n(43),c=n(539);function s(e){var t=e.chart,n=e.options,i=n.bulletStyle,s=n.targetField,u=n.rangeField,d=n.measureField,f=n.xField,p=n.color,h=n.layout,g=n.size,v=n.label,m=c.transformData(n),y=m.min,b=m.max,x=m.ds;t.data(x);var w=a.deepAssign({},e,{options:{xField:f,yField:u,seriesField:"rKey",isStack:!0,label:o.get(v,"range"),interval:{color:o.get(p,"range"),style:o.get(i,"range"),size:o.get(g,"range")}}});l.interval(w),t.geometries[0].tooltip(!1);var S=a.deepAssign({},e,{options:{xField:f,yField:d,seriesField:"mKey",isStack:!0,label:o.get(v,"measure"),interval:{color:o.get(p,"measure"),style:o.get(i,"measure"),size:o.get(g,"measure")}}});l.interval(S);var O=a.deepAssign({},e,{options:{xField:f,yField:s,seriesField:"tKey",label:o.get(v,"target"),point:{color:o.get(p,"target"),style:o.get(i,"target"),size:o.isFunction(o.get(g,"target"))?function(e){return o.get(g,"target")(e)/2}:o.get(g,"target")/2,shape:"horizontal"===h?"line":"hyphen"}}});return l.point(O),"horizontal"===h&&t.coordinate().transpose(),r.__assign(r.__assign({},e),{ext:{data:{min:y,max:b}}})}function u(e){var t,n,r=e.options,o=e.ext,l=r.xAxis,c=r.yAxis,s=r.targetField,u=r.rangeField,d=r.measureField,f=r.xField,p=o.data;return a.flow(i.scale(((t={})[f]=l,t[d]=c,t),((n={})[d]={min:null===p||void 0===p?void 0:p.min,max:null===p||void 0===p?void 0:p.max,sync:!0},n[s]={sync:""+d},n[u]={sync:""+d},n)))(e)}function d(e){var t=e.chart,n=e.options,r=n.xAxis,o=n.yAxis,i=n.xField,a=n.measureField,l=n.rangeField,c=n.targetField;return t.axis(""+l,!1),t.axis(""+c,!1),!1===r?t.axis(""+i,!1):t.axis(""+i,r),!1===o?t.axis(""+a,!1):t.axis(""+a,o),e}function f(e){var t=e.chart,n=e.options.legend;return t.removeInteraction("legend-filter"),t.legend(n),t.legend("rKey",!1),t.legend("mKey",!1),t.legend("tKey",!1),e}function p(e){var t=e.chart,n=e.options,i=n.label,l=n.measureField,c=n.targetField,s=n.rangeField,u=t.geometries,d=u[0],f=u[1],p=u[2];return o.get(i,"range")?d.label(""+s,r.__assign({layout:[{type:"limit-in-plot"}]},a.transformLabel(i.range))):d.label(!1),o.get(i,"measure")?f.label(""+l,r.__assign({layout:[{type:"limit-in-plot"}]},a.transformLabel(i.measure))):f.label(!1),o.get(i,"target")?p.label(""+c,r.__assign({layout:[{type:"limit-in-plot"}]},a.transformLabel(i.target))):p.label(!1),e}t.meta=u,t.adaptor=function(e){a.flow(s,u,d,f,i.theme,p,i.tooltip,i.interaction,i.animation)(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_OPTIONS=void 0;var r=n(24),o=n(15);t.DEFAULT_OPTIONS=o.deepAssign({},r.Plot.getDefaultOptions(),{layout:"horizontal",size:{range:30,measure:20,target:20},xAxis:{tickLine:!1,line:null},bulletStyle:{range:{fillOpacity:.5}},label:{measure:{position:"right"}},tooltip:{showMarkers:!1}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.flow=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return e.reduce((function(e,t){return t(e)}),t)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.template=function(e,t){return t?(0,r.reduce)(t,(function(e,t,n){return e.replace(new RegExp("{\\s*"+n+"\\s*}","g"),t)}),e):e};var r=n(0)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getContainerSize=function(e){if(!e)return{width:0,height:0};var t=getComputedStyle(e);return{width:(e.clientWidth||parseInt(t.width,10))-parseInt(t.paddingLeft,10)-parseInt(t.paddingRight,10),height:(e.clientHeight||parseInt(t.height,10))-parseInt(t.paddingTop,10)-parseInt(t.paddingBottom,10)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.findGeometry=function(e,t){return e.geometries.find((function(e){return e.type===t}))},t.getAllElements=o,t.getAllElementsRecursively=function e(t){return(0,r.get)(t,["views","length"],0)<=0?o(t):(0,r.reduce)(t.views,(function(t,n){return t.concat(e(n))}),o(t))},t.getAllGeometriesRecursively=function(e){return(0,r.get)(e,["views","length"],0)<=0?e.geometries:(0,r.reduce)(e.views,(function(e,t){return e.concat(t.geometries)}),e.geometries)};var r=n(0);function o(e){return(0,r.reduce)(e.geometries,(function(e,t){return e.concat(t.elements)}),[])}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.transformLabel=function(e){if(!(0,o.isType)(e,"Object"))return e;var t=(0,r.__assign)({},e);return t.formatter&&!t.content&&(t.content=t.formatter),t};var r=n(1),o=n(0)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.catmullRom2bezier=a,t.getSplinePath=function(e,t,n){var r=[],i=e[0],l=null;if(e.length<=2)return o(e,t);for(var c=0,s=e.length;c<s;c++){var u=e[c];l&&l.x===u.x&&l.y===u.y||(r.push(u.x),r.push(u.y),l=u)}var d=a(r,t,n||[[0,0],[1,1]]);return d.unshift(["M",i.x,i.y]),d},t.points2Path=o,t.smoothBezier=void 0;var r=n(32);function o(e,t){var n=[];if(e.length){n.push(["M",e[0].x,e[0].y]);for(var r=1,o=e.length;r<o;r+=1){var i=e[r];n.push(["L",i.x,i.y])}t&&n.push(["Z"])}return n}var i=t.smoothBezier=function(e,t,n,o){var i,a,l,c,s=[],u=!!o;if(u){l=[1/0,1/0],c=[-1/0,-1/0];for(var d=0,f=e.length;d<f;d++){var p=e[d];l=r.vec2.min([0,0],l,p),c=r.vec2.max([0,0],c,p)}l=r.vec2.min([0,0],l,o[0]),c=r.vec2.max([0,0],c,o[1])}d=0;for(var h=e.length;d<h;d++){if(p=e[d],n)i=e[d?d-1:h-1],a=e[(d+1)%h];else{if(0===d||d===h-1){s.push(p);continue}i=e[d-1],a=e[d+1]}var g=[0,0];g=r.vec2.sub(g,a,i),g=r.vec2.scale(g,g,t);var v=r.vec2.distance(p,i),m=r.vec2.distance(p,a),y=v+m;0!==y&&(v/=y,m/=y);var b=r.vec2.scale([0,0],g,-v),x=r.vec2.scale([0,0],g,m),w=r.vec2.add([0,0],p,b),S=r.vec2.add([0,0],p,x);u&&(w=r.vec2.max([0,0],w,l),w=r.vec2.min([0,0],w,c),S=r.vec2.max([0,0],S,l),S=r.vec2.min([0,0],S,c)),s.push(w),s.push(S)}return n&&s.push(s.shift()),s};function a(e,t,n){for(var r=!!t,o=[],a=0,l=e.length;a<l;a+=2)o.push([e[a],e[a+1]]);var c,s,u,d=i(o,.4,r,n),f=o.length,p=[];for(a=0;a<f-1;a++)c=d[2*a],s=d[2*a+1],u=o[a+1],p.push(["C",c[0],c[1],s[0],s[1],u[0],u[1]]);return r&&(c=d[f],s=d[f+1],u=o[0],p.push(["C",c[0],c[1],s[0],s[1],u[0],u[1]])),p}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.kebabCase=function(e){return e?e.match(/(([A-Z]{0,1}[a-z]*[^A-Z])|([A-Z]{1}))/g).map((function(e){return e.toLowerCase()})).join("-"):e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.measureTextWidth=void 0;var r=n(1),o=n(0),i=n(1173);t.measureTextWidth=(0,o.memoize)((function(e,t){void 0===t&&(t={});var n=t.fontSize,r=t.fontFamily,a=void 0===r?"sans-serif":r,l=t.fontWeight,c=t.fontStyle,s=t.fontVariant,u=(0,i.getCanvasContext)();return u.font=[c,l,s,n+"px",a].join(" "),u.measureText((0,o.isString)(e)?e:"").width}),(function(e,t){return void 0===t&&(t={}),(0,r.__spreadArrays)([e],(0,o.values)(t)).join("")}))},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.getCanvasContext=function(){return r||(r=document.createElement("canvas").getContext("2d")),r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EN_US_LOCALE=void 0,t.EN_US_LOCALE={locale:"en-US",general:{increase:"Increase",decrease:"Decrease",root:"Root"},statistic:{total:"Total"},conversionTag:{label:"Rate"},legend:{},tooltip:{},slider:{},scrollbar:{},waterfall:{total:"Total"}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ZH_CN_LOCALE=void 0,t.ZH_CN_LOCALE={locale:"zh-CN",general:{increase:"\u589e\u52a0",decrease:"\u51cf\u5c11",root:"\u521d\u59cb"},statistic:{total:"\u603b\u8ba1"},conversionTag:{label:"\u8f6c\u5316\u7387"},legend:{},tooltip:{},slider:{},scrollbar:{},waterfall:{total:"\u603b\u8ba1"}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1177);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}}))}));var o=n(1178);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===o[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))}));var i=n(1179);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))}));var a=n(1180);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===a[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}}))}));var l=n(1181);Object.keys(l).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===l[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}}))}));var c=n(1182);Object.keys(c).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===c[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return c[e]}}))}));var s=n(1183);Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===s[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}}))}));var u=n(1184);Object.keys(u).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===u[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return u[e]}}))}));var d=n(1185);Object.keys(d).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===d[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return d[e]}}))}));var f=n(1186);Object.keys(f).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===f[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return f[e]}}))}));var p=n(1187);Object.keys(p).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===p[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return p[e]}}))}))},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createDotPattern=function(e){var t=(0,r.deepAssign)({},i,e),n=t.size,l=t.padding,c=t.isStagger,s=t.rotation,u=(0,o.getUnitPatternSize)(n,l,c),d=(0,o.getSymbolsPosition)(u,c),f=(0,o.initCanvas)(u,u),p=f.getContext("2d");(0,o.drawBackground)(p,t,u);for(var h=0,g=d;h<g.length;h++){var v=g[h];a(p,t,v[0],v[1])}var m=p.createPattern(f,"repeat");if(m){var y=(0,o.getPixelRatio)(),b=(0,o.transformMatrix)(y,s);m.setTransform(b)}return m},t.defaultDotPatternCfg=void 0,t.drawDot=a;var r=n(7),o=n(304),i=t.defaultDotPatternCfg={size:6,padding:2,backgroundColor:"transparent",opacity:1,rotation:0,fill:"#fff",fillOpacity:.5,stroke:"transparent",lineWidth:0,isStagger:!0};function a(e,t,n,r){var o=t.size,i=t.fill,a=t.lineWidth,l=t.stroke,c=t.fillOpacity;e.beginPath(),e.globalAlpha=c,e.fillStyle=i,e.strokeStyle=l,e.lineWidth=a,e.arc(n,r,o/2,0,2*Math.PI,!1),e.fill(),a&&e.stroke(),e.closePath()}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createLinePattern=function(e){var t=(0,r.deepAssign)({},i,e),n=t.spacing,l=t.rotation,c=t.lineWidth,s=n+c||1,u=n+c||1,d="\n            M 0 0 L "+s+" 0\n            M 0 "+u+" L "+s+" "+u+"\n            ",f=(0,o.initCanvas)(s,u),p=f.getContext("2d");(0,o.drawBackground)(p,t,s,u),a(p,t,d);var h=p.createPattern(f,"repeat");if(h){var g=(0,o.getPixelRatio)(),v=(0,o.transformMatrix)(g,l);h.setTransform(v)}return h},t.defaultLinePatternCfg=void 0,t.drawLine=a;var r=n(7),o=n(304),i=t.defaultLinePatternCfg={rotation:45,spacing:5,opacity:1,backgroundColor:"transparent",strokeOpacity:.5,stroke:"#fff",lineWidth:2};function a(e,t,n){var r=t.stroke,o=t.lineWidth,i=t.strokeOpacity,a=new Path2D(n);e.globalAlpha=i,e.lineCap="square",e.strokeStyle=o?r:"transparent",e.lineWidth=o,e.stroke(a)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createSquarePattern=function(e){var t=(0,r.deepAssign)({},i,e),n=t.size,l=t.padding,c=t.isStagger,s=t.rotation,u=(0,o.getUnitPatternSize)(n,l,c),d=(0,o.getSymbolsPosition)(u,c),f=(0,o.initCanvas)(u,u),p=f.getContext("2d");(0,o.drawBackground)(p,t,u);for(var h=0,g=d;h<g.length;h++){var v=g[h];a(p,t,v[0],v[1])}var m=p.createPattern(f,"repeat");if(m){var y=(0,o.getPixelRatio)(),b=(0,o.transformMatrix)(y,s);m.setTransform(b)}return m},t.defaultSquarePatternCfg=void 0,t.drawSquare=a;var r=n(7),o=n(304),i=t.defaultSquarePatternCfg={size:6,padding:1,isStagger:!0,backgroundColor:"transparent",opacity:1,rotation:0,fill:"#fff",fillOpacity:.5,stroke:"transparent",lineWidth:0};function a(e,t,n,r){var o=t.stroke,i=t.size,a=t.fill,l=t.lineWidth,c=t.fillOpacity;e.globalAlpha=c,e.strokeStyle=o,e.lineWidth=l,e.fillStyle=a,e.strokeRect(n-i/2,r-i/2,i,i),e.fillRect(n-i/2,r-i/2,i,i)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.area=function(e){var t=e.options,n=t.area,l=t.xField,c=t.yField,s=t.seriesField,u=t.smooth,d=t.tooltip,f=(0,o.getTooltipMapping)(d,[l,c,s]),p=f.fields,h=f.formatter;return n?(0,a.geometry)((0,i.deepAssign)({},e,{options:{type:"area",colorField:s,tooltipFields:p,mapping:(0,r.__assign)({shape:u?"smooth":"area",tooltip:h},n)}})):e};var r=n(1),o=n(65),i=n(7),a=n(49)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.line=function(e){var t=e.options,n=t.line,l=t.stepType,c=t.xField,s=t.yField,u=t.seriesField,d=t.smooth,f=t.connectNulls,p=t.tooltip,h=(0,o.getTooltipMapping)(p,[c,s,u]),g=h.fields,v=h.formatter;return n?(0,a.geometry)((0,i.deepAssign)({},e,{options:{type:"line",colorField:u,tooltipFields:g,mapping:(0,r.deepMix)({shape:l||(d?"smooth":"line"),tooltip:v},n),args:{connectNulls:f}}})):e};var r=n(0),o=n(65),i=n(7),a=n(49)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.interval=function(e){var t=e.options,n=t.xField,s=t.yField,u=t.interval,d=t.seriesField,f=t.tooltip,p=t.minColumnWidth,h=t.maxColumnWidth,g=t.columnBackground,v=t.dodgePadding,m=t.intervalPadding,y=(0,l.getTooltipMapping)(f,[n,s,d]),b=y.fields,x=y.formatter,w=(u?(0,c.geometry)((0,a.deepAssign)({},e,{options:{type:"interval",colorField:d,tooltipFields:b,mapping:(0,r.__assign)({tooltip:x},u),args:{dodgePadding:v,intervalPadding:m,minColumnWidth:p,maxColumnWidth:h,background:g}}})):e).ext;return function(e){var t=e.chart,n=e.options,r=e.ext,l=n.seriesField,c=n.isGroup,s=n.isStack,u=n.marginRatio,d=n.widthRatio,f=n.groupField,p=n.theme,h=[];return l&&(c&&h.push({type:"dodge",dodgeBy:f||l,marginRatio:u}),s&&h.push({type:"stack",marginRatio:u})),h.length&&(null===r||void 0===r?void 0:r.geometry)&&(null===r||void 0===r?void 0:r.geometry).adjust(h),(0,i.isNil)(d)||t.theme((0,a.deepAssign)({},(0,i.isObject)(p)?p:(0,o.getTheme)(p),{columnWidthRatio:d})),e}((0,r.__assign)((0,r.__assign)({},e),{ext:w}))};var r=n(1),o=n(14),i=n(0),a=n(7),l=n(65),c=n(49)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.edge=function(e){var t=e.options,n=t.edge,l=t.xField,c=t.yField,s=t.seriesField,u=t.tooltip,d=(0,o.getTooltipMapping)(u,[l,c,s]),f=d.fields,p=d.formatter;return n?(0,a.geometry)((0,i.deepAssign)({},e,{options:{type:"edge",colorField:s,tooltipFields:f,mapping:(0,r.__assign)({tooltip:p},n)}})):e};var r=n(1),o=n(65),i=n(7),a=n(49)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.schema=function(e){var t=e.options,n=t.schema,l=t.xField,c=t.yField,s=t.seriesField,u=t.tooltip,d=(0,o.getTooltipMapping)(u,[l,c,s]),f=d.fields,p=d.formatter;return n?(0,a.geometry)((0,i.deepAssign)({},e,{options:{type:"schema",colorField:s,tooltipFields:f,mapping:(0,r.__assign)({tooltip:p},n)}})):e};var r=n(1),o=n(65),i=n(7),a=n(49)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.violin=function(e){var t=e.options,n=t.violin,l=t.xField,c=t.yField,s=t.seriesField,u=t.sizeField,d=t.tooltip,f=(0,o.getTooltipMapping)(d,[l,c,s,u]),p=f.fields,h=f.formatter;return n?(0,a.geometry)((0,i.deepAssign)({},e,{options:{type:"violin",colorField:s,tooltipFields:p,mapping:(0,r.__assign)({tooltip:h},n)}})):e};var r=n(1),o=n(65),i=n(7),a=n(49)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_OPTIONS=void 0;var r=n(19),o=n(7);t.DEFAULT_OPTIONS=(0,o.deepAssign)({},r.Plot.getDefaultOptions(),{tooltip:{shared:!0,showMarkers:!0,showCrosshairs:!0,crosshairs:{type:"x"}},legend:{position:"top-left"},isStack:!1})},function(e,t,n){"use strict";var r=n(14),o=n(1199);(0,r.registerAction)("marker-active",o.MarkerActiveAction),(0,r.registerInteraction)("marker-active",{start:[{trigger:"tooltip:show",action:"marker-active:active"}],end:[{trigger:"tooltip:hide",action:"marker-active:reset"}]})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MarkerActiveAction=void 0;var r=n(1),o=n(0),i=n(14);t.MarkerActiveAction=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.__extends)(t,e),t.prototype.active=function(){var e=this.getView(),t=this.context.event;if(t.data){var n=t.data.items,r=e.geometries.filter((function(e){return"point"===e.type}));(0,o.each)(r,(function(e){(0,o.each)(e.elements,(function(e){var t=-1!==(0,o.findIndex)(n,(function(t){return t.data===e.data}));e.setState("active",t)}))}))}},t.prototype.reset=function(){var e=this.getView().geometries.filter((function(e){return"point"===e.type}));(0,o.each)(e,(function(e){(0,o.each)(e.elements,(function(e){e.setState("active",!1)}))}))},t.prototype.getView=function(){return this.context.view},t}(i.InteractionAction)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_OPTIONS=void 0;var r=n(19),o=n(7);t.DEFAULT_OPTIONS=(0,o.deepAssign)({},r.Plot.getDefaultOptions(),{tooltip:{shared:!0,showMarkers:!0,showCrosshairs:!0,crosshairs:{type:"x"}},isStack:!0,line:{},legend:{position:"top-left"}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.conversionTag=function(e,t,n){return void 0===t&&(t=!0),void 0===n&&(n=!1),function(l){var u=l.options,d=l.chart,f=u.conversionTag,p=u.theme;return f&&!n&&(d.theme((0,a.deepAssign)({},(0,o.isObject)(p)?p:(0,i.getTheme)(p),{columnWidthRatio:1/3})),d.annotation().shape({render:function(n,i){var a=n.addGroup({id:d.id+"-conversion-tag-group",name:"conversion-tag-group"}),l=(0,o.find)(d.geometries,(function(e){return"interval"===e.type})),u={view:i,geometry:l,group:a,field:e,horizontal:t,options:c(f,t)},p=t?l.elements:l.elements.slice().reverse();(0,o.each)(p,(function(e,t){t>0&&function(e,t,n){(function(e,t,n){var o=e.view,i=e.geometry,a=e.group,l=e.options,c=e.horizontal,u=l.offset,d=l.size,f=l.arrow,p=o.getCoordinate(),h=s(p,t)[c?3:0],g=s(p,n)[c?0:3],v=g.y-h.y,m=g.x-h.x;if("boolean"!==typeof f){var y,b=f.headSize,x=l.spacing;c?(m-b)/2<x?(x=Math.max(1,(m-b)/2),y=[[h.x+x,h.y-u],[h.x+x,h.y-u-d],[g.x-x,g.y-u-d/2]]):y=[[h.x+x,h.y-u],[h.x+x,h.y-u-d],[g.x-x-b,g.y-u-d],[g.x-x,g.y-u-d/2],[g.x-x-b,g.y-u]]:(v-b)/2<x?(x=Math.max(1,(v-b)/2),y=[[h.x+u,h.y+x],[h.x+u+d,h.y+x],[g.x+u+d/2,g.y-x]]):y=[[h.x+u,h.y+x],[h.x+u+d,h.y+x],[g.x+u+d,g.y-x-b],[g.x+u+d/2,g.y-x],[g.x+u,g.y-x-b]],a.addShape("polygon",{id:o.id+"-conversion-tag-arrow-"+i.getElementId(t.getModel().mappingData),name:"conversion-tag-arrow",origin:{element:t,nextElement:n},attrs:(0,r.__assign)((0,r.__assign)({},f.style||{}),{points:y})})}})(e,t,n),function(e,t,n){var o,i,a,l=e.view,c=e.geometry,u=e.group,d=e.options,f=e.field,p=e.horizontal,h=d.offset,g=d.size;if("boolean"!==typeof d.text){var v=l.getCoordinate(),m=(null===(o=d.text)||void 0===o?void 0:o.formatter)&&(null===(i=d.text)||void 0===i?void 0:i.formatter(t.getData()[f],n.getData()[f])),y=s(v,t)[p?3:0],b=s(v,n)[p?0:3],x=u.addShape("text",{id:l.id+"-conversion-tag-text-"+c.getElementId(t.getModel().mappingData),name:"conversion-tag-text",origin:{element:t,nextElement:n},attrs:(0,r.__assign)((0,r.__assign)({},(null===(a=d.text)||void 0===a?void 0:a.style)||{}),{text:m,x:p?(y.x+b.x)/2:y.x+h+g/2,y:p?y.y-h-g/2:(y.y+b.y)/2})});if(p){var w=b.x-y.x,S=x.getBBox().width;if(S>w){var O=S/m.length,_=Math.max(1,Math.ceil(w/O)-1),C=m.slice(0,_)+"...";x.attr("text",C)}}}}(e,t,n)}(u,p[t-1],e)}))}})),l}};var r=n(1),o=n(0),i=n(14),a=n(7),l=n(553);function c(e,t){return(0,a.deepAssign)({size:t?32:80,spacing:t?8:12,offset:t?32:0,arrow:!1!==e.arrow&&{headSize:12,style:{fill:"rgba(0, 0, 0, 0.05)"}},text:!1!==e.text&&{style:{fontSize:12,fill:"rgba(0, 0, 0, 0.85)",textAlign:"center",textBaseline:"middle"},formatter:l.conversionTagFormatter}},e)}function s(e,t){return(0,o.map)(t.getModel().points,(function(t){return e.convertPoint(t)}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.connectedArea=function(e){return void 0===e&&(e=!1),function(t){var n=t.chart,r=t.options.connectedArea,a=function(){n.removeInteraction(o.hover),n.removeInteraction(o.click)};if(!e&&r){var l=r.trigger||"hover";a(),n.interaction(o[l],{start:i(l,r.style)})}else a();return t}};var r=n(14),o={hover:"__interval-connected-area-hover__",click:"__interval-connected-area-click__"},i=function(e,t){return"hover"===e?[{trigger:"interval:mouseenter",action:["element-highlight-by-color:highlight","element-link-by-color:link"],arg:[null,{style:t}]}]:[{trigger:"interval:click",action:["element-highlight-by-color:clear","element-highlight-by-color:highlight","element-link-by-color:clear","element-link-by-color:unlink","element-link-by-color:link"],arg:[null,null,null,null,{style:t}]}]};(0,r.registerInteraction)(o.hover,{start:i(o.hover),end:[{trigger:"interval:mouseleave",action:["element-highlight-by-color:reset","element-link-by-color:unlink"]}]}),(0,r.registerInteraction)(o.click,{start:i(o.click),end:[{trigger:"document:mousedown",action:["element-highlight-by-color:clear","element-link-by-color:clear"]}]})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getInteractionCfg=a;var r=n(14),o=n(1204);function i(e){return e.isInPlot()}function a(e,t,n){var r=t||"rect";switch(e){case"brush":return{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:i,action:["brush:start",r+"-mask:start",r+"-mask:show"],arg:[null,{maskStyle:null===n||void 0===n?void 0:n.style}]}],processing:[{trigger:"mousemove",isEnable:i,action:[r+"-mask:resize"]}],end:[{trigger:"mouseup",isEnable:i,action:["brush:filter","brush:end",r+"-mask:end",r+"-mask:hide","brush-reset-button:show"]}],rollback:[{trigger:"brush-reset-button:click",action:["brush:reset","brush-reset-button:hide","cursor:crosshair"]}]};case"brush-highlight":case"brush-x-highlight":case"brush-y-highlight":return{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"mask:mouseenter",action:"cursor:move"},{trigger:"plot:mouseleave",action:"cursor:default"},{trigger:"mask:mouseleave",action:"cursor:crosshair"}],start:[{trigger:"plot:mousedown",isEnable:function(e){return!e.isInShape("mask")},action:[r+"-mask:start",r+"-mask:show"],arg:[{maskStyle:null===n||void 0===n?void 0:n.style}]},{trigger:"mask:dragstart",action:[r+"-mask:moveStart"]}],processing:[{trigger:"plot:mousemove",action:[r+"-mask:resize"]},{trigger:"mask:drag",action:[r+"-mask:move"]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:[r+"-mask:end"]},{trigger:"mask:dragend",action:[r+"-mask:moveEnd"]},{trigger:"document:mouseup",isEnable:function(e){return!e.isInPlot()},action:["element-range-highlight:clear",r+"-mask:end",r+"-mask:hide"]}],rollback:[{trigger:"dblclick",action:["element-range-highlight:clear",r+"-mask:hide"]}]};case"brush-x":return{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:i,action:["brush-x:start",r+"-mask:start",r+"-mask:show"],arg:[null,{maskStyle:null===n||void 0===n?void 0:n.style}]}],processing:[{trigger:"mousemove",isEnable:i,action:[r+"-mask:resize"]}],end:[{trigger:"mouseup",isEnable:i,action:["brush-x:filter","brush-x:end",r+"-mask:end",r+"-mask:hide"]}],rollback:[{trigger:"dblclick",action:["brush-x:reset"]}]};case"brush-y":return{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:i,action:["brush-y:start",r+"-mask:start",r+"-mask:show"],arg:[null,{maskStyle:null===n||void 0===n?void 0:n.style}]}],processing:[{trigger:"mousemove",isEnable:i,action:[r+"-mask:resize"]}],end:[{trigger:"mouseup",isEnable:i,action:["brush-y:filter","brush-y:end",r+"-mask:end",r+"-mask:hide"]}],rollback:[{trigger:"dblclick",action:["brush-y:reset"]}]};default:return{}}}(0,r.registerAction)("brush-reset-button",o.ButtonAction,{name:"brush-reset-button"}),(0,r.registerInteraction)("filter-action",{}),(0,r.registerInteraction)("brush",a("brush")),(0,r.registerInteraction)("brush-highlight",a("brush-highlight")),(0,r.registerInteraction)("brush-x",a("brush-x","x-rect")),(0,r.registerInteraction)("brush-y",a("brush-y","y-rect")),(0,r.registerInteraction)("brush-x-highlight",a("brush-x-highlight","x-rect")),(0,r.registerInteraction)("brush-y-highlight",a("brush-y-highlight","y-rect"))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ButtonAction=t.BUTTON_ACTION_CONFIG=void 0;var r=n(1),o=n(14),i=n(0),a=n(7),l=t.BUTTON_ACTION_CONFIG={padding:[8,10],text:"reset",textStyle:{default:{x:0,y:0,fontSize:12,fill:"#333333",cursor:"pointer"}},buttonStyle:{default:{fill:"#f7f7f7",stroke:"#cccccc",cursor:"pointer"},active:{fill:"#e6e6e6"}}};t.ButtonAction=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.buttonGroup=null,t.buttonCfg=(0,r.__assign)({name:"button"},l),t}return(0,r.__extends)(t,e),t.prototype.getButtonCfg=function(){var e=this.context.view,t=(0,i.get)(e,["interactions","filter-action","cfg","buttonConfig"]);return(0,a.deepAssign)(this.buttonCfg,t,this.cfg)},t.prototype.drawButton=function(){var e=this.getButtonCfg(),t=this.context.view.foregroundGroup.addGroup({name:e.name}),n=this.drawText(t);this.drawBackground(t,n.getBBox()),this.buttonGroup=t},t.prototype.drawText=function(e){var t,n=this.getButtonCfg();return e.addShape({type:"text",name:"button-text",attrs:(0,r.__assign)({text:n.text},null===(t=n.textStyle)||void 0===t?void 0:t.default)})},t.prototype.drawBackground=function(e,t){var n,o=this.getButtonCfg(),i=(0,a.normalPadding)(o.padding),l=e.addShape({type:"rect",name:"button-rect",attrs:(0,r.__assign)({x:t.x-i[3],y:t.y-i[0],width:t.width+i[1]+i[3],height:t.height+i[0]+i[2]},null===(n=o.buttonStyle)||void 0===n?void 0:n.default)});return l.toBack(),e.on("mouseenter",(function(){var e;l.attr(null===(e=o.buttonStyle)||void 0===e?void 0:e.active)})),e.on("mouseleave",(function(){var e;l.attr(null===(e=o.buttonStyle)||void 0===e?void 0:e.default)})),l},t.prototype.resetPosition=function(){var e=this.context.view.getCoordinate().convert({x:1,y:1}),t=this.buttonGroup,n=t.getBBox(),r=o.Util.transform(null,[["t",e.x-n.width-10,e.y+n.height+5]]);t.setMatrix(r)},t.prototype.show=function(){this.buttonGroup||this.drawButton(),this.resetPosition(),this.buttonGroup.show()},t.prototype.hide=function(){this.buttonGroup&&this.buttonGroup.hide()},t.prototype.destroy=function(){var t=this.buttonGroup;t&&t.remove(),e.prototype.destroy.call(this)},t}(o.Action)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_OPTIONS=void 0;var r=n(19),o=n(7);t.DEFAULT_OPTIONS=(0,o.deepAssign)({},r.Plot.getDefaultOptions(),{columnWidthRatio:.6,marginRatio:1/32,tooltip:{shared:!0,showMarkers:!1,offset:20},interactions:[{type:"active-region"}]})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_OPTIONS=void 0;var r=n(19),o=n(7);t.DEFAULT_OPTIONS=(0,o.deepAssign)({},r.Plot.getDefaultOptions(),{barWidthRatio:.6,marginRatio:1/32,tooltip:{shared:!0,showMarkers:!1,offset:20},interactions:[{type:"active-region"}]})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PieLegendAction=void 0;var r=n(1),o=n(14),i=n(0),a=n(563);t.PieLegendAction=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.__extends)(t,e),t.prototype.getActiveElements=function(){var e=o.Util.getDelegationObject(this.context);if(e){var t=this.context.view,n=e.component,r=e.item,i=n.get("field");if(i)return t.geometries[0].elements.filter((function(e){return e.getModel().data[i]===r.value}))}return[]},t.prototype.getActiveElementLabels=function(){var e=this.context.view,t=this.getActiveElements();return e.geometries[0].labelsContainer.getChildren().filter((function(e){return t.find((function(t){return(0,i.isEqual)(t.getData(),e.get("data"))}))}))},t.prototype.transfrom=function(e){void 0===e&&(e=7.5);var t=this.getActiveElements(),n=this.getActiveElementLabels();t.forEach((function(t,r){var i=n[r],l=t.geometry.coordinate;if(l.isPolar&&l.isTransposed){var c=o.Util.getAngle(t.getModel(),l),s=(c.startAngle+c.endAngle)/2,u=e,d=u*Math.cos(s),f=u*Math.sin(s);t.shape.setMatrix((0,a.transform)([["t",d,f]])),i.setMatrix((0,a.transform)([["t",d,f]]))}}))},t.prototype.active=function(){this.transfrom()},t.prototype.reset=function(){this.transfrom(0)},t}(o.Action)},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.StatisticAction=void 0;var o=r(n(6)),i=n(1),a=n(14),l=n(0),c=n(544),s=n(1209);t.StatisticAction=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,i.__extends)(t,e),t.prototype.getAnnotations=function(e){return(e||this.context.view).getController("annotation").option},t.prototype.getInitialAnnotation=function(){return this.initialAnnotation},t.prototype.init=function(){var e=this,t=this.context.view;t.removeInteraction("tooltip"),t.on("afterchangesize",(function(){var n=e.getAnnotations(t);e.initialAnnotation=n}))},t.prototype.change=function(e){var t=this.context,n=t.view,r=t.event;this.initialAnnotation||(this.initialAnnotation=this.getAnnotations());var i=(0,l.get)(r,["data","data"]);if(r.type.match("legend-item")){var u=a.Util.getDelegationObject(this.context),d=n.getGroupedFields()[0];if(u&&d){var f=u.item;i=n.getData().find((function(e){return e[d]===f.value}))}}if(i){var p=(0,l.get)(e,"annotations",[]),h=(0,l.get)(e,"statistic",{});n.getController("annotation").clear(!0),(0,l.each)(p,(function(e){"object"===(0,o.default)(e)&&n.annotation()[e.type](e)})),(0,c.renderStatistic)(n,{statistic:h,plotType:"pie"},i),n.render(!0)}var g=(0,s.getCurrentElement)(this.context);g&&g.shape.toFront()},t.prototype.reset=function(){var e=this.context.view;e.getController("annotation").clear(!0);var t=this.getInitialAnnotation();(0,l.each)(t,(function(t){e.annotation()[t.type](t)})),e.render(!0)},t}(a.Action)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getCurrentElement=function(e){var t,n=e.event.target;return n&&(t=n.get("element")),t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Rose=void 0;var r=n(1),o=n(19),i=n(1211),a=n(1212);t.Rose=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="rose",t}return(0,r.__extends)(t,e),t.getDefaultOptions=function(){return a.DEFAULT_OPTIONS},t.prototype.changeData=function(e){this.updateOption({data:e}),this.chart.changeData(e)},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return i.adaptor},t}(o.Plot)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.adaptor=function(e){(0,i.flow)((0,a.pattern)("sectorStyle"),c,f,s,d,p,u,a.tooltip,a.interaction,a.animation,a.theme,(0,a.annotation)(),a.state)(e)},t.legend=u;var r=n(1),o=n(0),i=n(7),a=n(22),l=n(30);function c(e){var t=e.chart,n=e.options,r=n.data,o=n.sectorStyle,a=n.color;return t.data(r),(0,i.flow)(l.interval)((0,i.deepAssign)({},e,{options:{marginRatio:1,interval:{style:o,color:a}}})),e}function s(e){var t=e.chart,n=e.options,a=n.label,l=n.xField,c=(0,i.findGeometry)(t,"interval");if(!1===a)c.label(!1);else if((0,o.isObject)(a)){var s=a.callback,u=a.fields,d=(0,r.__rest)(a,["callback","fields"]),f=d.offset,p=d.layout;(void 0===f||f>=0)&&(p=p?(0,o.isArray)(p)?p:[p]:[],d.layout=(0,o.filter)(p,(function(e){return"limit-in-shape"!==e.type})),d.layout.length||delete d.layout),c.label({fields:u||[l],callback:s,cfg:(0,i.transformLabel)(d)})}else(0,i.log)(i.LEVEL.WARN,null===a,"the label option must be an Object."),c.label({fields:[l]});return e}function u(e){var t=e.chart,n=e.options,r=n.legend,o=n.seriesField;return!1===r?t.legend(!1):o&&t.legend(o,r),e}function d(e){var t=e.chart,n=e.options,r=n.radius,o=n.innerRadius,i=n.startAngle,a=n.endAngle;return t.coordinate({type:"polar",cfg:{radius:r,innerRadius:o,startAngle:i,endAngle:a}}),e}function f(e){var t,n=e.options,r=n.xAxis,o=n.yAxis,l=n.xField,c=n.yField;return(0,i.flow)((0,a.scale)(((t={})[l]=r,t[c]=o,t)))(e)}function p(e){var t=e.chart,n=e.options,r=n.xAxis,o=n.yAxis,i=n.xField,a=n.yField;return r?t.axis(i,r):t.axis(i,!1),o?t.axis(a,o):t.axis(a,!1),e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_OPTIONS=void 0;var r=n(19),o=n(7);t.DEFAULT_OPTIONS=(0,o.deepAssign)({},r.Plot.getDefaultOptions(),{xAxis:!1,yAxis:!1,legend:{position:"right"},sectorStyle:{stroke:"#fff",lineWidth:1},label:{layout:{type:"limit-in-shape"}},tooltip:{shared:!0,showMarkers:!1},interactions:[{type:"active-region"}]})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WordCloud=void 0;var r=n(1),o=n(19),i=n(1214),a=n(565),l=n(564);n(1216),t.WordCloud=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="word-cloud",t}return(0,r.__extends)(t,e),t.getDefaultOptions=function(){return a.DEFAULT_OPTIONS},t.prototype.changeData=function(e){this.updateOption({data:e}),this.options.imageMask?this.render():this.chart.changeData((0,l.transform)({chart:this.chart,options:this.options}))},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.render=function(){var t=this;return new Promise((function(n){var o=t.options.imageMask;if(!o)return e.prototype.render.call(t),void n();var i=function(o){t.options=(0,r.__assign)((0,r.__assign)({},t.options),{imageMask:o||null}),e.prototype.render.call(t),n()};(0,l.processImageMask)(o).then(i).catch(i)}))},t.prototype.getSchemaAdaptor=function(){return i.adaptor},t.prototype.triggerResize=function(){var t=this;this.chart.destroyed||(this.execAdaptor(),window.setTimeout((function(){e.prototype.triggerResize.call(t)})))},t}(o.Plot)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.adaptor=function(e){(0,a.flow)(u,d,i.tooltip,f,i.interaction,i.animation,i.theme,i.state)(e)},t.legend=f;var r=n(1),o=n(0),i=n(22),a=n(7),l=n(30),c=n(564),s=n(565);function u(e){var t=e.chart,n=e.options,i=n.colorField,u=n.color,d=(0,c.transform)(e);t.data(d);var f=(0,a.deepAssign)({},e,{options:{xField:"x",yField:"y",seriesField:i&&s.WORD_CLOUD_COLOR_FIELD,rawFields:(0,o.isFunction)(u)&&(0,r.__spreadArrays)((0,o.get)(n,"rawFields",[]),["datum"]),point:{color:u,shape:"word-cloud"}}});return(0,l.point)(f).ext.geometry.label(!1),t.coordinate().reflect("y"),t.axis(!1),e}function d(e){return(0,a.flow)((0,i.scale)({x:{nice:!1},y:{nice:!1}}))(e)}function f(e){var t=e.chart,n=e.options,r=n.legend,o=n.colorField;return!1===r?t.legend(!1):o&&t.legend(s.WORD_CLOUD_COLOR_FIELD,r),e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.functor=S,t.transform=i,t.wordCloud=function(e,t){return t=(0,r.assign)({},o,t),i(e,t)};var r=n(0),o={font:function(){return"serif"},padding:1,size:[500,500],spiral:"archimedean",timeInterval:3e3};function i(e,t){var n=function(){var e=[256,256],t=u,n=f,r=d,o=p,i=h,a=b,_=Math.random,C=[],E=1/0,P=s,M=d,k=w,A={};function I(e){e.width=e.height=1;var t=Math.sqrt(e.getContext("2d").getImageData(0,0,1,1).data.length>>2);e.width=(l<<5)/t,e.height=c/t;var n=e.getContext("2d");return n.fillStyle=n.strokeStyle="red",n.textAlign="center",{context:n,ratio:t}}function T(t,n,r){for(var o,i,l,c=n.x,s=n.y,u=Math.sqrt(e[0]*e[0]+e[1]*e[1]),d=a(e),f=_()<.5?1:-1,p=-f;(o=d(p+=f))&&(i=~~o[0],l=~~o[1],!(Math.min(Math.abs(i),Math.abs(l))>=u));)if(n.x=c+i,n.y=s+l,!(n.x+n.x0<0||n.y+n.y0<0||n.x+n.x1>e[0]||n.y+n.y1>e[1])&&(!r||!v(n,t,e[0]))&&(!r||y(n,r))){for(var h=n.sprite,g=n.width>>5,m=e[0]>>5,b=n.x-(g<<4),x=127&b,w=32-x,S=n.y1-n.y0,O=void 0,C=(n.y+n.y0)*m+(b>>5),E=0;E<S;E++){O=0;for(var P=0;P<=g;P++)t[C+P]|=O<<w|(P<g?(O=h[E*g+P])>>>x:0);C+=m}return delete n.sprite,!0}return!1}return A.start=function(){var a=e[0],l=e[1],c=I(k()),s=A.board?A.board:x((e[0]>>5)*e[1]),u=C.length,d=[],f=C.map((function(e,a,l){return e.text=P.call(this,e,a,l),e.font=t.call(this,e,a,l),e.style=M.call(this,e,a,l),e.weight=r.call(this,e,a,l),e.rotate=o.call(this,e,a,l),e.size=~~n.call(this,e,a,l),e.padding=i.call(this,e,a,l),e})).sort((function(e,t){return t.size-e.size})),p=-1,h=A.board?[{x:0,y:0},{x:a,y:l}]:null;function v(){for(var t=Date.now();Date.now()-t<E&&++p<u;){var n=f[p];n.x=a*(_()+.5)>>1,n.y=l*(_()+.5)>>1,g(c,n,f,p),n.hasText&&T(s,n,h)&&(d.push(n),h?A.hasImage||m(h,n):h=[{x:n.x+n.x0,y:n.y+n.y0},{x:n.x+n.x1,y:n.y+n.y1}],n.x-=e[0]>>1,n.y-=e[1]>>1)}A._tags=d,A._bounds=h}return v(),A},A.createMask=function(t){var n=document.createElement("canvas"),r=e[0],o=e[1];if(r&&o){var i=r>>5,a=x((r>>5)*o);n.width=r,n.height=o;var l=n.getContext("2d");l.drawImage(t,0,0,t.width,t.height,0,0,r,o);for(var c=l.getImageData(0,0,r,o).data,s=0;s<o;s++)for(var u=0;u<r;u++){var d=i*s+(u>>5),f=s*r+u<<2,p=c[f]>=250&&c[f+1]>=250&&c[f+2]>=250?1<<31-u%32:0;a[d]|=p}A.board=a,A.hasImage=!0}},A.timeInterval=function(e){E=null==e?1/0:e},A.words=function(e){C=e},A.size=function(t){e=[+t[0],+t[1]]},A.font=function(e){t=S(e)},A.fontWeight=function(e){r=S(e)},A.rotate=function(e){o=S(e)},A.spiral=function(e){a=O[e]||e},A.fontSize=function(e){n=S(e)},A.padding=function(e){i=S(e)},A.random=function(e){_=S(e)},A}();["font","fontSize","fontWeight","padding","rotate","size","spiral","timeInterval","random"].forEach((function(e){(0,r.isNil)(t[e])||n[e](t[e])})),n.words(e),t.imageMask&&n.createMask(t.imageMask);var o=n.start()._tags;o.forEach((function(e){e.x+=t.size[0]/2,e.y+=t.size[1]/2}));var i=t.size,a=i[0],_=i[1];return o.push({text:"",value:0,x:0,y:0,opacity:0}),o.push({text:"",value:0,x:a,y:_,opacity:0}),o}var a=Math.PI/180,l=64,c=2048;function s(e){return e.text}function u(){return"serif"}function d(){return"normal"}function f(e){return e.value}function p(){return 90*~~(2*Math.random())}function h(){return 1}function g(e,t,n,r){if(!t.sprite){var o=e.context,i=e.ratio;o.clearRect(0,0,(l<<5)/i,c/i);var s=0,u=0,d=0,f=n.length;for(--r;++r<f;){t=n[r],o.save(),o.font=t.style+" "+t.weight+" "+~~((t.size+1)/i)+"px "+t.font;var p=o.measureText(t.text+"m").width*i,h=t.size<<1;if(t.rotate){var g=Math.sin(t.rotate*a),v=Math.cos(t.rotate*a),m=p*v,y=p*g,b=h*v,x=h*g;p=Math.max(Math.abs(m+x),Math.abs(m-x))+31>>5<<5,h=~~Math.max(Math.abs(y+b),Math.abs(y-b))}else p=p+31>>5<<5;if(h>d&&(d=h),s+p>=l<<5&&(s=0,u+=d,d=0),u+h>=c)break;o.translate((s+(p>>1))/i,(u+(h>>1))/i),t.rotate&&o.rotate(t.rotate*a),o.fillText(t.text,0,0),t.padding&&(o.lineWidth=2*t.padding,o.strokeText(t.text,0,0)),o.restore(),t.width=p,t.height=h,t.xoff=s,t.yoff=u,t.x1=p>>1,t.y1=h>>1,t.x0=-t.x1,t.y0=-t.y1,t.hasText=!0,s+=p}for(var w=o.getImageData(0,0,(l<<5)/i,c/i).data,S=[];--r>=0;)if((t=n[r]).hasText){for(var O=(p=t.width)>>5,_=(h=t.y1-t.y0,0);_<h*O;_++)S[_]=0;if(null==(s=t.xoff))return;u=t.yoff;for(var C=0,E=-1,P=0;P<h;P++){for(_=0;_<p;_++){var M=O*P+(_>>5),k=w[(u+P)*(l<<5)+(s+_)<<2]?1<<31-_%32:0;S[M]|=k,C|=k}C?E=P:(t.y0++,h--,P--,u++)}t.y1=t.y0+E,t.sprite=S.slice(0,(t.y1-t.y0)*O)}}}function v(e,t,n){n>>=5;for(var r,o=e.sprite,i=e.width>>5,a=e.x-(i<<4),l=127&a,c=32-l,s=e.y1-e.y0,u=(e.y+e.y0)*n+(a>>5),d=0;d<s;d++){r=0;for(var f=0;f<=i;f++)if((r<<c|(f<i?(r=o[d*i+f])>>>l:0))&t[u+f])return!0;u+=n}return!1}function m(e,t){var n=e[0],r=e[1];t.x+t.x0<n.x&&(n.x=t.x+t.x0),t.y+t.y0<n.y&&(n.y=t.y+t.y0),t.x+t.x1>r.x&&(r.x=t.x+t.x1),t.y+t.y1>r.y&&(r.y=t.y+t.y1)}function y(e,t){return e.x+e.x1>t[0].x&&e.x+e.x0<t[1].x&&e.y+e.y1>t[0].y&&e.y+e.y0<t[1].y}function b(e){var t=e[0]/e[1];return function(e){return[t*(e*=.1)*Math.cos(e),e*Math.sin(e)]}}function x(e){for(var t=[],n=-1;++n<e;)t[n]=0;return t}function w(){return document.createElement("canvas")}function S(e){return(0,r.isFunction)(e)?e:function(){return e}}var O={archimedean:b,rectangular:function(e){var t=4*e[0]/e[1],n=0,r=0;return function(e){var o=e<0?-1:1;switch(Math.sqrt(1+4*o*e)-o&3){case 0:n+=t;break;case 1:r+=4;break;case 2:n-=t;break;default:r-=4}return[n,r]}}}},function(e,t,n){"use strict";var r=n(1),o=n(14);function i(e){return{fontSize:e.data.size,text:e.data.text,textAlign:"center",fontFamily:e.data.font,fontWeight:e.data.weight,fill:e.color||e.defaultStyle.stroke,textBaseline:"alphabetic"}}(0,o.registerShape)("point","word-cloud",{draw:function(e,t){var n=e.x,a=e.y,l=t.addShape("text",{attrs:(0,r.__assign)((0,r.__assign)({},i(e)),{x:n,y:a})}),c=e.data.rotate;return"number"===typeof c&&o.Util.rotate(l,c*Math.PI/180),l}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getPath=t.getMeta=void 0,t.getQuadrantDefaultConfig=function(e,t){var n=10;return{regionStyle:[{position:{start:[e,"max"],end:["max",t]},style:{fill:"#d8d0c0",opacity:.4}},{position:{start:["min","max"],end:[e,t]},style:{fill:"#a3dda1",opacity:.4}},{position:{start:["min",t],end:[e,"min"]},style:{fill:"#d8d0c0",opacity:.4}},{position:{start:[e,t],end:["max","min"]},style:{fill:"#a3dda1",opacity:.4}}],lineStyle:{stroke:"#9ba29a",lineWidth:1},labelStyle:[{position:["max",t],offsetX:-10,offsetY:-10,style:{textAlign:"right",textBaseline:"bottom",fontSize:14,fill:"#ccc"}},{position:["min",t],offsetX:n,offsetY:-10,style:{textAlign:"left",textBaseline:"bottom",fontSize:14,fill:"#ccc"}},{position:["min",t],offsetX:n,offsetY:n,style:{textAlign:"left",textBaseline:"top",fontSize:14,fill:"#ccc"}},{position:["max",t],offsetX:-10,offsetY:n,style:{textAlign:"right",textBaseline:"top",fontSize:14,fill:"#ccc"}}]}};var r=n(1),o=n(538),i=n(0),a=n(7),l={exp:o.regressionExp,linear:o.regressionLinear,loess:o.regressionLoess,log:o.regressionLog,poly:o.regressionPoly,pow:o.regressionPow,quad:o.regressionQuad};t.getPath=function(e){var t=e.options,n=t.xField,r=t.yField,o=t.data,c=t.regressionLine,s=c.type,u=void 0===s?"linear":s,d=c.algorithm;return function(e,t){var n=t.view,r=t.options,o=r.xField,i=r.yField,l=n.getScaleByField(o),c=n.getScaleByField(i),s=e.map((function(e){return n.getCoordinate().convert({x:l.scale(e[0]),y:c.scale(e[1])})}));return(0,a.getSplinePath)(s,!1)}(d?(0,i.isArray)(d)?d:d(o):l[u]().x((function(e){return e[n]})).y((function(e){return e[r]}))(o),e)},t.getMeta=function(e){var t,n=e.meta,o=void 0===n?{}:n,a=e.xField,l=e.yField,c=e.data,s=c[0][a],u=c[0][l],d=s>0,f=u>0;function p(e,t){var n=(0,i.get)(o,[e]);function r(e){return(0,i.get)(n,e)}var a={};return"x"===t?((0,i.isNumber)(s)&&((0,i.isNumber)(r("min"))||(a.min=d?0:2*s),(0,i.isNumber)(r("max"))||(a.max=d?2*s:0)),a):((0,i.isNumber)(u)&&((0,i.isNumber)(r("min"))||(a.min=f?0:2*u),(0,i.isNumber)(r("max"))||(a.max=f?2*u:0)),a)}return(0,r.__assign)((0,r.__assign)({},o),((t={})[a]=(0,r.__assign)((0,r.__assign)({},o[a]),p(a,"x")),t[l]=(0,r.__assign)((0,r.__assign)({},o[l]),p(l,"y")),t))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_OPTIONS=void 0;var r=n(19),o=n(7);t.DEFAULT_OPTIONS=(0,o.deepAssign)({},r.Plot.getDefaultOptions(),{size:4,tooltip:{showTitle:!1,showMarkers:!1,showCrosshairs:!0,crosshairs:{type:"xy"}}})},function(e,t,n){"use strict";n(568)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Radar=void 0;var r=n(1),o=n(19),i=n(7),a=n(1221);n(1222),t.Radar=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="radar",t}return(0,r.__extends)(t,e),t.prototype.changeData=function(e){this.updateOption({data:e}),this.chart.changeData(e)},t.prototype.getDefaultOptions=function(){return(0,i.deepAssign)({},e.prototype.getDefaultOptions.call(this),{xAxis:{label:{offset:15},grid:{line:{type:"line"}}},yAxis:{grid:{line:{type:"circle"}}},legend:{position:"top"},tooltip:{shared:!0,showCrosshairs:!0,showMarkers:!0,crosshairs:{type:"xy",line:{style:{stroke:"#565656",lineDash:[4]}},follow:!0}}})},t.prototype.getSchemaAdaptor=function(){return a.adaptor},t}(o.Plot)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.adaptor=function(e){return(0,a.flow)(l,c,o.theme,s,u,o.legend,o.tooltip,d,o.interaction,o.animation,(0,o.annotation)())(e)};var r=n(1),o=n(22),i=n(30),a=n(7);function l(e){var t=e.chart,n=e.options,o=n.data,l=n.lineStyle,c=n.color,s=n.point,u=n.area;t.data(o);var d=(0,a.deepAssign)({},e,{options:{line:{style:l,color:c},point:s?(0,r.__assign)({color:c},s):s,area:u?(0,r.__assign)({color:c},u):u,label:void 0}}),f=(0,a.deepAssign)({},d,{options:{tooltip:!1}}),p=(null===s||void 0===s?void 0:s.state)||n.state,h=(0,a.deepAssign)({},d,{options:{tooltip:!1,state:p}});return(0,i.line)(d),(0,i.point)(h),(0,i.area)(f),e}function c(e){var t,n=e.options,r=n.xAxis,i=n.yAxis,l=n.xField,c=n.yField;return(0,a.flow)((0,o.scale)(((t={})[l]=r,t[c]=i,t)))(e)}function s(e){var t=e.chart,n=e.options,r=n.radius,o=n.startAngle,i=n.endAngle;return t.coordinate("polar",{radius:r,startAngle:o,endAngle:i}),e}function u(e){var t=e.chart,n=e.options,r=n.xField,o=n.xAxis,i=n.yField,a=n.yAxis;return t.axis(r,o),t.axis(i,a),e}function d(e){var t=e.chart,n=e.options,o=n.label,i=n.yField,l=(0,a.findGeometry)(t,"line");if(o){var c=o.callback,s=(0,r.__rest)(o,["callback"]);l.label({fields:[i],callback:c,cfg:(0,a.transformLabel)(s)})}else l.label(!1);return e}},function(e,t,n){"use strict";var r=n(14),o=n(1223);(0,r.registerAction)("radar-tooltip",o.RadarTooltipAction),(0,r.registerInteraction)("radar-tooltip",{start:[{trigger:"plot:mousemove",action:"radar-tooltip:show"}],end:[{trigger:"plot:mouseleave",action:"radar-tooltip:hide"}]})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RadarTooltipController=t.RadarTooltipAction=void 0;var r=n(1),o=n(14),i=n(0),a=t.RadarTooltipController=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.__extends)(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return"radar-tooltip"},enumerable:!1,configurable:!0}),t.prototype.getTooltipItems=function(t){var n=this.getTooltipCfg(),a=n.shared,l=n.title,c=e.prototype.getTooltipItems.call(this,t);if(c.length>0){var s=this.view.geometries[0],u=s.dataArray,d=c[0].name,f=[];return u.forEach((function(e){e.forEach((function(e){var t=o.Util.getTooltipItems(e,s)[0];if(!a&&t&&t.name===d){var n=(0,i.isNil)(l)?d:l;f.push((0,r.__assign)((0,r.__assign)({},t),{name:t.title,title:n}))}else a&&t&&(n=(0,i.isNil)(l)?t.name||d:l,f.push((0,r.__assign)((0,r.__assign)({},t),{name:t.title,title:n})))}))})),f}return[]},t}(o.TooltipController);(0,o.registerComponentController)("radar-tooltip",a),t.RadarTooltipAction=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.__extends)(t,e),t.prototype.init=function(){this.context.view.removeInteraction("tooltip")},t.prototype.show=function(){var e=this.context.event;this.getTooltipController().showTooltip({x:e.x,y:e.y})},t.prototype.hide=function(){this.getTooltipController().hideTooltip()},t.prototype.getTooltipController=function(){return this.context.view.getController("radar-tooltip")},t}(o.Action)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DualAxes=void 0;var r=n(1),o=n(19),i=n(7),a=n(1225);t.DualAxes=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dual-axes",t}return(0,r.__extends)(t,e),t.prototype.getDefaultOptions=function(){return(0,i.deepAssign)({},e.prototype.getDefaultOptions.call(this),{yAxis:[],syncViewPadding:!0})},t.prototype.getSchemaAdaptor=function(){return a.adaptor},t}(o.Plot)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.adaptor=function(e){return(0,l.flow)(g,v,_,m,b,x,E,w,S,O,C,y,P,M)(e)},t.animation=C,t.annotation=O,t.axis=x,t.color=y,t.interaction=S,t.legend=P,t.limitInPlot=E,t.meta=b,t.slider=M,t.theme=_,t.tooltip=w,t.transformOptions=g;var r=n(1),o=n(0),i=n(22),a=n(122),l=n(7),c=n(542),s=n(305),u=n(1226),d=n(1227),f=n(1228),p=n(569),h=n(570);function g(e){var t,n=e.options,r=n.geometryOptions,i=void 0===r?[]:r,a=n.xField,c=n.yField,u=(0,o.every)(i,(function(e){var t=e.geometry;return t===p.DualAxesGeometry.Line||void 0===t}));return(0,l.deepAssign)({},{options:{geometryOptions:[],meta:(t={},t[a]={type:"cat",sync:!0,range:u?[0,1]:void 0},t),tooltip:{showMarkers:u,showCrosshairs:u,shared:!0,crosshairs:{type:"x"}},interactions:u?[{type:"legend-visible-filter"}]:[{type:"legend-visible-filter"},{type:"active-region"}],legend:{position:"top-left"}}},e,{options:{yAxis:(0,s.transformObjectToArray)(c,n.yAxis),geometryOptions:[(0,s.getGeometryOption)(a,c[0],i[0]),(0,s.getGeometryOption)(a,c[1],i[1])],annotations:(0,s.transformObjectToArray)(c,n.annotations)}})}function v(e){var t,n,r=e.chart,o=e.options.geometryOptions,i={line:0,column:1};return[{type:null===(t=o[0])||void 0===t?void 0:t.geometry,id:h.LEFT_AXES_VIEW},{type:null===(n=o[1])||void 0===n?void 0:n.geometry,id:h.RIGHT_AXES_VIEW}].sort((function(e,t){return-i[e.type]+i[t.type]})).forEach((function(e){return r.createView({id:e.id})})),e}function m(e){var t=e.chart,n=e.options,o=n.xField,i=n.yField,l=n.geometryOptions,u=n.data,f=n.tooltip;return[(0,r.__assign)((0,r.__assign)({},l[0]),{id:h.LEFT_AXES_VIEW,data:u[0],yField:i[0]}),(0,r.__assign)((0,r.__assign)({},l[1]),{id:h.RIGHT_AXES_VIEW,data:u[1],yField:i[1]})].forEach((function(e){var n=e.id,i=e.data,l=e.yField,u=(0,s.isColumn)(e)&&e.isPercent,p=u?(0,a.percent)(i,l,o,l):i,h=(0,c.findViewById)(t,n).data(p),g=u?(0,r.__assign)({formatter:function(t){return{name:t[e.seriesField]||l,value:(100*Number(t[l])).toFixed(2)+"%"}}},f):f;(0,d.drawSingleGeometry)({chart:h,options:{xField:o,yField:l,tooltip:g,geometryOption:e}})})),e}function y(e){var t,n=e.chart,r=e.options.geometryOptions,i=(null===(t=n.getTheme())||void 0===t?void 0:t.colors10)||[],a=0;return n.once("beforepaint",(function(){(0,o.each)(r,(function(e,t){var r=(0,c.findViewById)(n,0===t?h.LEFT_AXES_VIEW:h.RIGHT_AXES_VIEW);if(!e.color){var l=r.getGroupScales(),s=(0,o.get)(l,[0,"values","length"],1),u=i.slice(a,a+s).concat(0===t?[]:i);r.geometries.forEach((function(t){e.seriesField?t.color(e.seriesField,u):t.color(u[0])})),a+=s}})),n.render(!0)})),e}function b(e){var t,n,r=e.chart,o=e.options,a=o.xAxis,s=o.yAxis,u=o.xField,d=o.yField;return(0,i.scale)(((t={})[u]=a,t[d[0]]=s[0],t))((0,l.deepAssign)({},e,{chart:(0,c.findViewById)(r,h.LEFT_AXES_VIEW)})),(0,i.scale)(((n={})[u]=a,n[d[1]]=s[1],n))((0,l.deepAssign)({},e,{chart:(0,c.findViewById)(r,h.RIGHT_AXES_VIEW)})),e}function x(e){var t=e.chart,n=e.options,r=(0,c.findViewById)(t,h.LEFT_AXES_VIEW),o=(0,c.findViewById)(t,h.RIGHT_AXES_VIEW),i=n.xField,a=n.yField,l=n.xAxis,u=n.yAxis;return t.axis(i,!1),t.axis(a[0],!1),t.axis(a[1],!1),r.axis(i,l),r.axis(a[0],(0,s.getYAxisWithDefault)(u[0],p.AxisType.Left)),o.axis(i,!1),o.axis(a[1],(0,s.getYAxisWithDefault)(u[1],p.AxisType.Right)),e}function w(e){var t=e.chart,n=e.options.tooltip,r=(0,c.findViewById)(t,h.LEFT_AXES_VIEW),o=(0,c.findViewById)(t,h.RIGHT_AXES_VIEW);return t.tooltip(n),r.tooltip({shared:!0}),o.tooltip({shared:!0}),e}function S(e){var t=e.chart;return(0,i.interaction)((0,l.deepAssign)({},e,{chart:(0,c.findViewById)(t,h.LEFT_AXES_VIEW)})),(0,i.interaction)((0,l.deepAssign)({},e,{chart:(0,c.findViewById)(t,h.RIGHT_AXES_VIEW)})),e}function O(e){var t=e.chart,n=e.options.annotations,r=(0,o.get)(n,[0]),a=(0,o.get)(n,[1]);return(0,i.annotation)(r)((0,l.deepAssign)({},e,{chart:(0,c.findViewById)(t,h.LEFT_AXES_VIEW),options:{annotations:r}})),(0,i.annotation)(a)((0,l.deepAssign)({},e,{chart:(0,c.findViewById)(t,h.RIGHT_AXES_VIEW),options:{annotations:a}})),e}function _(e){var t=e.chart;return(0,i.theme)((0,l.deepAssign)({},e,{chart:(0,c.findViewById)(t,h.LEFT_AXES_VIEW)})),(0,i.theme)((0,l.deepAssign)({},e,{chart:(0,c.findViewById)(t,h.RIGHT_AXES_VIEW)})),(0,i.theme)(e),e}function C(e){var t=e.chart;return(0,i.animation)((0,l.deepAssign)({},e,{chart:(0,c.findViewById)(t,h.LEFT_AXES_VIEW)})),(0,i.animation)((0,l.deepAssign)({},e,{chart:(0,c.findViewById)(t,h.RIGHT_AXES_VIEW)})),e}function E(e){var t=e.chart,n=e.options.yAxis;return(0,i.limitInPlot)((0,l.deepAssign)({},e,{chart:(0,c.findViewById)(t,h.LEFT_AXES_VIEW),options:{yAxis:n[0]}})),(0,i.limitInPlot)((0,l.deepAssign)({},e,{chart:(0,c.findViewById)(t,h.RIGHT_AXES_VIEW),options:{yAxis:n[1]}})),e}function P(e){var t=e.chart,n=e.options,r=n.legend,i=n.geometryOptions,a=n.yField,s=n.data,d=(0,c.findViewById)(t,h.LEFT_AXES_VIEW),f=(0,c.findViewById)(t,h.RIGHT_AXES_VIEW);if(!1===r)t.legend(!1);else if((0,o.isObject)(r)&&!0===r.custom)t.legend(r);else{var p=(0,o.get)(i,[0,"legend"],r),g=(0,o.get)(i,[1,"legend"],r);t.once("beforepaint",(function(){var e=s[0].length?(0,u.getViewLegendItems)({view:d,geometryOption:i[0],yField:a[0],legend:p}):[],n=s[1].length?(0,u.getViewLegendItems)({view:f,geometryOption:i[1],yField:a[1],legend:g}):[];t.legend((0,l.deepAssign)({},r,{custom:!0,items:e.concat(n)}))})),i[0].seriesField&&d.legend(i[0].seriesField,p),i[1].seriesField&&f.legend(i[1].seriesField,g),t.on("legend-item:click",(function(e){var n=(0,o.get)(e,"gEvent.delegateObject",{});if(n&&n.item){var r=n.item,i=r.value,l=r.isGeometry,s=r.viewId;if(l){if((0,o.findIndex)(a,(function(e){return e===i}))>-1){var u=(0,o.get)((0,c.findViewById)(t,s),"geometries");(0,o.each)(u,(function(e){e.changeVisible(!n.item.unchecked)}))}}else{var d=(0,o.get)(t.getController("legend"),"option.items",[]);(0,o.each)(t.views,(function(e){var n=e.getGroupScales();(0,o.each)(n,(function(t){t.values&&t.values.indexOf(i)>-1&&e.filter(t.field,(function(e){return!(0,o.find)(d,(function(t){return t.value===e})).unchecked}))})),t.render(!0)}))}}}))}return e}function M(e){var t=e.chart,n=e.options.slider,r=(0,c.findViewById)(t,h.LEFT_AXES_VIEW),i=(0,c.findViewById)(t,h.RIGHT_AXES_VIEW);return n&&(r.option("slider",n),r.on("slider:valuechanged",(function(e){var t=e.event,n=t.value,r=t.originValue;(0,o.isEqual)(n,r)||(0,f.doSliderFilter)(i,n)})),t.once("afterpaint",(function(){if(!(0,o.isBoolean)(n)){var e=n.start,t=n.end;(e||t)&&(0,f.doSliderFilter)(i,[e,t])}}))),e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getViewLegendItems=function(e){var t=e.view,n=e.geometryOption,l=e.yField,c=e.legend,s=(0,r.get)(c,"marker"),u=(0,i.findGeometry)(t,(0,a.isLine)(n)?"line":"interval");if(!n.seriesField){var d=(0,r.get)(t,"options.scales."+l+".alias")||l,f=u.getAttribute("color"),p=t.getTheme().defaultColor;return f&&(p=o.Util.getMappingValue(f,d,(0,r.get)(f,["values",0],p))),[{value:l,name:d,marker:((0,r.isFunction)(s)?s:!(0,r.isEmpty)(s)&&(0,i.deepAssign)({},{style:{stroke:p,fill:p}},s))||((0,a.isLine)(n)?{symbol:function(e,t,n){return[["M",e-n,t],["L",e+n,t]]},style:{lineWidth:2,r:6,stroke:p}}:{symbol:"square",style:{fill:p}}),isGeometry:!0,viewId:t.id}]}var h=u.getGroupAttributes();return(0,r.reduce)(h,(function(e,n){var r=o.Util.getLegendItems(t,u,n,t.getTheme(),s);return e.concat(r)}),[])};var r=n(0),o=n(14),i=n(7),a=n(305)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.drawSingleGeometry=function(e){var t=e.options,n=e.chart,s=t.geometryOption,u=s.isStack,d=s.color,f=s.seriesField,p=s.groupField,h=s.isGroup,g=["xField","yField"];if((0,c.isLine)(s)){(0,i.line)((0,a.deepAssign)({},e,{options:(0,r.__assign)((0,r.__assign)((0,r.__assign)({},(0,a.pick)(t,g)),s),{line:{color:s.color,style:s.lineStyle}})})),(0,i.point)((0,a.deepAssign)({},e,{options:(0,r.__assign)((0,r.__assign)((0,r.__assign)({},(0,a.pick)(t,g)),s),{point:s.point&&(0,r.__assign)({color:d,shape:"circle"},s.point)})}));var v=[];h&&v.push({type:"dodge",dodgeBy:p||f,customOffset:0}),u&&v.push({type:"stack"}),v.length&&(0,o.each)(n.geometries,(function(e){e.adjust(v)}))}return(0,c.isColumn)(s)&&(0,l.adaptor)((0,a.deepAssign)({},e,{options:(0,r.__assign)((0,r.__assign)((0,r.__assign)({},(0,a.pick)(t,g)),s),{widthRatio:s.columnWidthRatio,interval:(0,r.__assign)((0,r.__assign)({},(0,a.pick)(s,["color"])),{style:s.columnStyle})})})),e};var r=n(1),o=n(0),i=n(30),a=n(7),l=n(199),c=n(305)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.doSliderFilter=void 0;var r=n(0),o=n(7);t.doSliderFilter=function(e,t){var n=t[0],i=t[1],a=e.getOptions().data,l=e.getXScale(),c=(0,r.size)(a);if(l&&c){var s=(0,r.valuesOfKey)(a,l.field),u=s,d=(0,r.size)(u),f=Math.floor(n*(d-1)),p=Math.floor(i*(d-1));e.filter(l.field,(function(e){var t=u.indexOf(e);return!(t>-1)||(0,o.isBetween)(t,f,p)})),e.render(!0)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_TOOLTIP_OPTIONS=t.DEFAULT_OPTIONS=void 0;var r=n(1),o=n(0),i=t.DEFAULT_TOOLTIP_OPTIONS={showTitle:!1,shared:!0,showMarkers:!1,customContent:function(e,t){return""+(0,o.get)(t,[0,"data","y"],0)},containerTpl:'<div class="g2-tooltip"><div class="g2-tooltip-list"></div></div>',itemTpl:"<span>{value}</span>",domStyles:{"g2-tooltip":{padding:"2px 4px",fontSize:"10px"}}};t.DEFAULT_OPTIONS={appendPadding:2,tooltip:(0,r.__assign)({},i),animation:{}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_OPTIONS=void 0;var r=n(1),o=n(156);t.DEFAULT_OPTIONS={appendPadding:2,tooltip:(0,r.__assign)({},o.DEFAULT_TOOLTIP_OPTIONS),color:"l(90) 0:#E5EDFE 1:#ffffff",areaStyle:{fillOpacity:.6},line:{size:1,color:"#5B8FF9"},animation:{}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_OPTIONS=void 0,t.DEFAULT_OPTIONS={percent:.2,innerRadius:.8,radius:.98,color:["#FAAD14","#E8EDF3"],statistic:{title:!1,content:{style:{fontSize:"14px",fontWeight:300,fill:"#4D4D4D",textAlign:"center",textBaseline:"middle"}}},animation:{}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Heatmap=void 0;var r=n(1),o=n(19),i=n(1233),a=n(1234);n(1235),n(1236),t.Heatmap=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="heatmap",t}return(0,r.__extends)(t,e),t.getDefaultOptions=function(){return a.DEFAULT_OPTIONS},t.prototype.getSchemaAdaptor=function(){return i.adaptor},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t}(o.Plot)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.adaptor=function(e){return(0,i.flow)(a.theme,(0,a.pattern)("heatmapStyle"),u,h,s,d,f,a.tooltip,p,(0,a.annotation)(),a.interaction,a.animation,a.state)(e)};var r=n(1),o=n(0),i=n(7),a=n(22),l=n(49),c=n(65);function s(e){var t=e.chart,n=e.options,r=n.data,a=n.type,s=n.xField,u=n.yField,d=n.colorField,f=n.sizeField,p=n.sizeRatio,h=n.shape,g=n.color,v=n.tooltip,m=n.heatmapStyle;t.data(r);var y="polygon";"density"===a&&(y="heatmap");var b=(0,c.getTooltipMapping)(v,[s,u,d]),x=b.fields,w=b.formatter,S=1;return(p||0===p)&&(h||f?p<0||p>1?console.warn("sizeRatio is not in effect: It must be a number in [0,1]"):S=p:console.warn("sizeRatio is not in effect: Must define shape or sizeField first")),(0,l.geometry)((0,i.deepAssign)({},e,{options:{type:y,colorField:d,tooltipFields:x,shapeField:f||"",label:void 0,mapping:{tooltip:w,shape:h&&(f?function(e){var t=r.map((function(e){return e[f]})),n=Math.min.apply(Math,t),i=Math.max.apply(Math,t);return[h,((0,o.get)(e,f)-n)/(i-n),S]}:function(){return[h,1,S]}),color:g||d&&t.getTheme().sequenceColors.join("-"),style:m}}})),e}function u(e){var t,n=e.options,r=n.xAxis,o=n.yAxis,l=n.xField,c=n.yField;return(0,i.flow)((0,a.scale)(((t={})[l]=r,t[c]=o,t)))(e)}function d(e){var t=e.chart,n=e.options,r=n.xAxis,o=n.yAxis,i=n.xField,a=n.yField;return!1===r?t.axis(i,!1):t.axis(i,r),!1===o?t.axis(a,!1):t.axis(a,o),e}function f(e){var t=e.chart,n=e.options,r=n.legend,o=n.colorField,i=n.sizeField,a=n.sizeLegend,l=!1!==r;return o&&t.legend(o,!!l&&r),i&&t.legend(i,void 0===a?r:a),l||a||t.legend(!1),e}function p(e){var t=e.chart,n=e.options,o=n.label,a=n.colorField,l=n.type,c=(0,i.findGeometry)(t,"density"===l?"heatmap":"polygon");if(o){if(a){var s=o.callback,u=(0,r.__rest)(o,["callback"]);c.label({fields:[a],callback:s,cfg:(0,i.transformLabel)(u)})}}else c.label(!1);return e}function h(e){var t=e.chart,n=e.options,r=n.coordinate,o=n.reflect;return r&&t.coordinate({type:r.type||"rect",cfg:r.cfg}),o&&t.coordinate().reflect(o),e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_OPTIONS=void 0;var r=n(19),o=n(7);t.DEFAULT_OPTIONS=(0,o.deepAssign)({},r.Plot.getDefaultOptions(),{type:"polygon",legend:!1,coordinate:{type:"rect"},xAxis:{tickLine:null,line:null,grid:{alignTick:!1,line:{style:{lineWidth:1,lineDash:null,stroke:"#f0f0f0"}}}},yAxis:{grid:{alignTick:!1,line:{style:{lineWidth:1,lineDash:null,stroke:"#f0f0f0"}}}}})},function(e,t,n){"use strict";var r=n(1);(0,n(14).registerShape)("polygon","circle",{draw:function(e,t){var n,o,i=e.x,a=e.y,l=this.parsePoints(e.points),c=Math.abs(l[2].x-l[1].x),s=Math.abs(l[1].y-l[0].y),u=Math.min(c,s)/2,d=Number(e.shape[1]),f=Number(e.shape[2]),p=u*Math.sqrt(f)*Math.sqrt(d),h=(null===(n=e.style)||void 0===n?void 0:n.fill)||e.color||(null===(o=e.defaultStyle)||void 0===o?void 0:o.fill);return t.addShape("circle",{attrs:(0,r.__assign)((0,r.__assign)((0,r.__assign)({x:i,y:a,r:p},e.defaultStyle),e.style),{fill:h})})}})},function(e,t,n){"use strict";var r=n(1);(0,n(14).registerShape)("polygon","square",{draw:function(e,t){var n,o,i=e.x,a=e.y,l=this.parsePoints(e.points),c=Math.abs(l[2].x-l[1].x),s=Math.abs(l[1].y-l[0].y),u=Math.min(c,s),d=Number(e.shape[1]),f=Number(e.shape[2]),p=u*Math.sqrt(f)*Math.sqrt(d),h=(null===(n=e.style)||void 0===n?void 0:n.fill)||e.color||(null===(o=e.defaultStyle)||void 0===o?void 0:o.fill);return t.addShape("rect",{attrs:(0,r.__assign)((0,r.__assign)((0,r.__assign)({x:i-p/2,y:a-p/2,width:p,height:p},e.defaultStyle),e.style),{fill:h})})}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Box=void 0;var r=n(1),o=n(19),i=n(1238),a=n(584),l=n(308);t.Box=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="box",t}return(0,r.__extends)(t,e),t.getDefaultOptions=function(){return l.DEFAULT_OPTIONS},t.prototype.changeData=function(e){this.updateOption({data:e});var t=this.options.yField,n=this.chart.views.find((function(e){return e.id===l.OUTLIERS_VIEW_ID}));n&&n.data(e),this.chart.changeData((0,a.transformData)(e,t))},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return i.adaptor},t}(o.Plot)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.adaptor=function(e){return(0,l.flow)(d,f,p,h,g,i.tooltip,i.interaction,i.animation,i.theme)(e)},t.legend=g;var r=n(1),o=n(0),i=n(22),a=n(30),l=n(7),c=n(98),s=n(308),u=n(584);function d(e){var t=e.chart,n=e.options,r=n.xField,i=n.yField,c=n.groupField,d=n.color,f=n.tooltip,p=n.boxStyle;t.data((0,u.transformData)(n.data,i));var h=(0,o.isArray)(i)?s.BOX_RANGE:i,g=i?(0,o.isArray)(i)?i:[i]:[],v=f;!1!==v&&(v=(0,l.deepAssign)({},{fields:(0,o.isArray)(i)?i:[]},v));var m=(0,a.schema)((0,l.deepAssign)({},e,{options:{xField:r,yField:h,seriesField:c,tooltip:v,rawFields:g,label:!1,schema:{shape:"box",color:d,style:p}}})).ext;return c&&m.geometry.adjust("dodge"),e}function f(e){var t=e.chart,n=e.options,o=n.xField,i=n.data,l=n.outliersField,c=n.outliersStyle,u=n.padding,d=n.label;if(!l)return e;var f=t.createView({padding:u,id:s.OUTLIERS_VIEW_ID}),p=i.reduce((function(e,t){return t[l].forEach((function(n){var o;return e.push((0,r.__assign)((0,r.__assign)({},t),((o={})[l]=n,o)))})),e}),[]);return f.data(p),(0,a.point)({chart:f,options:{xField:o,yField:l,point:{shape:"circle",style:c},label:d}}),f.axis(!1),e}function p(e){var t,n,r=e.chart,o=e.options,i=o.meta,a=o.xAxis,u=o.yAxis,d=o.xField,f=o.yField,p=o.outliersField,h=Array.isArray(f)?s.BOX_RANGE:f,g={};if(p){var v=s.BOX_SYNC_NAME;(t={})[p]={sync:v,nice:!0},t[h]={sync:v,nice:!0},g=t}var m=(0,l.deepAssign)(g,i,((n={})[d]=(0,l.pick)(a,c.AXIS_META_CONFIG_KEYS),n[h]=(0,l.pick)(u,c.AXIS_META_CONFIG_KEYS),n));return r.scale(m),e}function h(e){var t=e.chart,n=e.options,r=n.xAxis,o=n.yAxis,i=n.xField,a=n.yField,l=Array.isArray(a)?s.BOX_RANGE:a;return!1===r?t.axis(i,!1):t.axis(i,r),!1===o?t.axis(s.BOX_RANGE,!1):t.axis(l,o),e}function g(e){var t=e.chart,n=e.options,r=n.legend,o=n.groupField;return o?r?t.legend(o,r):t.legend(o,{position:"bottom"}):t.legend(!1),e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Violin=void 0;var r=n(1),o=n(19),i=n(1240),a=n(586),l=n(585);t.Violin=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="violin",t}return(0,r.__extends)(t,e),t.getDefaultOptions=function(){return a.DEFAULT_OPTIONS},t.prototype.changeData=function(e){this.updateOption({data:e}),this.chart.changeData((0,l.transformViolinData)(this.options))},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return i.adaptor},t}(o.Plot)},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.adaptor=function(e){return(0,s.flow)(l.theme,g,v,m,y,l.tooltip,b,x,l.interaction,w,S)(e)},t.animation=S;var o=r(n(6)),i=n(1),a=n(0),l=n(22),c=n(30),s=n(7),u=n(98),d=n(585),f=n(586),p=["low","high","q1","q3","median"],h=[{type:"dodge",marginRatio:1/32}];function g(e){var t=e.chart,n=e.options;return t.data((0,d.transformViolinData)(n)),e}function v(e){var t=e.chart,n=e.options,r=n.seriesField,o=n.color,a=n.shape,l=void 0===a?"violin":a,s=n.violinStyle,u=n.tooltip,d=n.state,g=t.createView({id:f.VIOLIN_VIEW_ID});return(0,c.violin)({chart:g,options:{xField:f.X_FIELD,yField:f.VIOLIN_Y_FIELD,seriesField:r||f.X_FIELD,sizeField:f.VIOLIN_SIZE_FIELD,tooltip:(0,i.__assign)({fields:p},u),violin:{style:s,color:o,shape:l},state:d}}),g.geometries[0].adjust(h),e}function m(e){var t=e.chart,n=e.options,r=n.seriesField,a=n.color,l=n.tooltip,s=n.box;if(!1===s)return e;var u=t.createView({id:f.MIN_MAX_VIEW_ID});(0,c.interval)({chart:u,options:{xField:f.X_FIELD,yField:f.MIN_MAX_FIELD,seriesField:r||f.X_FIELD,tooltip:(0,i.__assign)({fields:p},l),state:"object"===(0,o.default)(s)?s.state:{},interval:{color:a,size:1,style:{lineWidth:0}}}}),u.geometries[0].adjust(h);var d=t.createView({id:f.QUANTILE_VIEW_ID});(0,c.interval)({chart:d,options:{xField:f.X_FIELD,yField:f.QUANTILE_FIELD,seriesField:r||f.X_FIELD,tooltip:(0,i.__assign)({fields:p},l),state:"object"===(0,o.default)(s)?s.state:{},interval:{color:a,size:8,style:{fillOpacity:1}}}}),d.geometries[0].adjust(h);var g=t.createView({id:f.MEDIAN_VIEW_ID});return(0,c.point)({chart:g,options:{xField:f.X_FIELD,yField:f.MEDIAN_FIELD,seriesField:r||f.X_FIELD,tooltip:(0,i.__assign)({fields:p},l),state:"object"===(0,o.default)(s)?s.state:{},point:{color:a,size:1,style:{fill:"white",lineWidth:0}}}}),g.geometries[0].adjust(h),d.axis(!1),u.axis(!1),g.axis(!1),g.legend(!1),u.legend(!1),d.legend(!1),e}function y(e){var t,n=e.chart,r=e.options,o=r.meta,a=r.xAxis,l=r.yAxis,c=(0,s.deepAssign)({},o,((t={})[f.X_FIELD]=(0,i.__assign)((0,i.__assign)({sync:!0},(0,s.pick)(a,u.AXIS_META_CONFIG_KEYS)),{type:"cat"}),t[f.VIOLIN_Y_FIELD]=(0,i.__assign)({sync:!0},(0,s.pick)(l,u.AXIS_META_CONFIG_KEYS)),t[f.MIN_MAX_FIELD]=(0,i.__assign)({sync:f.VIOLIN_Y_FIELD},(0,s.pick)(l,u.AXIS_META_CONFIG_KEYS)),t[f.QUANTILE_FIELD]=(0,i.__assign)({sync:f.VIOLIN_Y_FIELD},(0,s.pick)(l,u.AXIS_META_CONFIG_KEYS)),t[f.MEDIAN_FIELD]=(0,i.__assign)({sync:f.VIOLIN_Y_FIELD},(0,s.pick)(l,u.AXIS_META_CONFIG_KEYS)),t));return n.scale(c),e}function b(e){var t=e.chart,n=e.options,r=n.xAxis,o=n.yAxis,i=(0,s.findViewById)(t,f.VIOLIN_VIEW_ID);return!1===r?i.axis(f.X_FIELD,!1):i.axis(f.X_FIELD,r),!1===o?i.axis(f.VIOLIN_Y_FIELD,!1):i.axis(f.VIOLIN_Y_FIELD,o),t.axis(!1),e}function x(e){var t=e.chart,n=e.options,r=n.legend,o=n.seriesField,i=n.shape;if(!1===r)t.legend(!1);else{var l=o||f.X_FIELD,c=(0,a.omit)(r,["selected"]);i&&i.startsWith("hollow")||(0,a.get)(c,["marker","style","lineWidth"])||(0,a.set)(c,["marker","style","lineWidth"],0),t.legend(l,c),(0,a.get)(r,"selected")&&(0,a.each)(t.views,(function(e){return e.legend(l,r)}))}return e}function w(e){var t=e.chart,n=(0,s.findViewById)(t,f.VIOLIN_VIEW_ID);return(0,l.annotation)()((0,i.__assign)((0,i.__assign)({},e),{chart:n})),e}function S(e){var t=e.chart,n=e.options.animation;return(0,a.each)(t.views,(function(e){"boolean"===typeof n?e.animate(n):e.animate(!0),(0,a.each)(e.geometries,(function(e){e.animate(n)}))})),e}},function(e,t,n){"use strict";var r=Math.log(2),o=e.exports,i=n(1242);function a(e){return 1-Math.abs(e)}e.exports.getUnifiedMinMax=function(e,t){return o.getUnifiedMinMaxMulti([e],t)},e.exports.getUnifiedMinMaxMulti=function(e,t){t=t||{};var n=!1,r=!1,o=i.isNumber(t.width)?t.width:2,a=i.isNumber(t.size)?t.size:50,l=i.isNumber(t.min)?t.min:(n=!0,i.findMinMulti(e)),c=i.isNumber(t.max)?t.max:(r=!0,i.findMaxMulti(e)),s=(c-l)/(a-1);return n&&(l-=2*o*s),r&&(c+=2*o*s),{min:l,max:c}},e.exports.create=function(e,t){if(t=t||{},!e||0===e.length)return[];var n=i.isNumber(t.size)?t.size:50,r=i.isNumber(t.width)?t.width:2,l=o.getUnifiedMinMax(e,{size:n,width:r,min:t.min,max:t.max}),c=l.min,s=l.max-c,u=s/(n-1);if(0===s)return[{x:c,y:1}];for(var d=[],f=0;f<n;f++)d.push({x:c+f*u,y:0});var p=function(e,t){for(var n={},r=0,o=-t;o<=t;o++)r+=e(o/t),n[o]=r;return n}(a,r),h=p[r],g=p[r-1]-p[r-2],v=0;e.forEach((function(e){var t=function(e){return Math.floor((e-c)/u)}(e);if(!(t+r<0||t-r>=d.length)){var n=Math.max(t-r,0),o=t,a=Math.min(t+r,d.length-1),l=n-(t-r),s=t+r-a,f=p[-r-1+l]||0,m=p[-r-1+s]||0,y=h/(h-f-m);l>0&&(v+=y*(l-1)*g);var b=Math.max(0,t-r+1);i.inside(0,d.length-1,b)&&(d[b].y+=1*y*g),i.inside(0,d.length-1,o+1)&&(d[o+1].y-=2*y*g),i.inside(0,d.length-1,a+1)&&(d[a+1].y+=1*y*g)}}));var m=v,y=0,b=0;return d.forEach((function(e){y+=e.y,m+=y,e.y=m,b+=m})),b>0&&d.forEach((function(e){e.y/=b})),d},e.exports.getExpectedValueFromPdf=function(e){if(e&&0!==e.length){var t=0;return e.forEach((function(e){t+=e.x*e.y})),t}},e.exports.getXWithLeftTailArea=function(e,t){if(e&&0!==e.length){for(var n=0,r=0,o=0;o<e.length&&(r=o,!((n+=e[o].y)>=t));o++);return e[r].x}},e.exports.getPerplexity=function(e){if(e&&0!==e.length){var t=0;return e.forEach((function(e){var n=Math.log(e.y);isFinite(n)&&(t+=e.y*n)})),t=-t/r,Math.pow(2,t)}}},function(e,t,n){"use strict";var r=e.exports;e.exports.isNumber=function(e){return"number"===typeof e},e.exports.findMin=function(e){if(0===e.length)return 1/0;for(var t=e[0],n=1;n<e.length;n++)t=Math.min(t,e[n]);return t},e.exports.findMax=function(e){if(0===e.length)return-1/0;for(var t=e[0],n=1;n<e.length;n++)t=Math.max(t,e[n]);return t},e.exports.findMinMulti=function(e){for(var t=r.findMin(e[0]),n=1;n<e.length;n++)t=Math.min(t,r.findMin(e[n]));return t},e.exports.findMaxMulti=function(e){for(var t=r.findMax(e[0]),n=1;n<e.length;n++)t=Math.max(t,r.findMax(e[n]));return t},e.exports.inside=function(e,t,n){return e<=n&&n<=t}},function(e,t,n){"use strict";function r(e,t){var n=e.length*t;if(0===e.length)throw new Error("quantile requires at least one data point.");if(t<0||t>1)throw new Error("quantiles must be between 0 and 1");return 1===t?e[e.length-1]:0===t?e[0]:n%1!==0?e[Math.ceil(n)-1]:e.length%2===0?(e[n-1]+e[n])/2:e[n]}function o(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function i(e,t,n,r){for(n=n||0,r=r||e.length-1;r>n;){if(r-n>600){var a=r-n+1,l=t-n+1,c=Math.log(a),s=.5*Math.exp(2*c/3),u=.5*Math.sqrt(c*s*(a-s)/a);l-a/2<0&&(u*=-1),i(e,t,Math.max(n,Math.floor(t-l*s/a+u)),Math.min(r,Math.floor(t+(a-l)*s/a+u)))}var d=e[t],f=n,p=r;for(o(e,n,t),e[r]>d&&o(e,n,r);f<p;){for(o(e,f,p),f++,p--;e[f]<d;)f++;for(;e[p]>d;)p--}e[n]===d?o(e,n,p):o(e,++p,r),p<=t&&(n=p+1),t<=p&&(r=p-1)}}function a(e,t,n,r){t%1===0?i(e,t,n,r):(i(e,t=Math.floor(t),n,r),i(e,t+1,t+1,r))}function l(e,t){return e-t}function c(e,t){var n=e*t;return 1===t?e-1:0===t?0:n%1!==0?Math.ceil(n)-1:e%2===0?n-.5:n}Object.defineProperty(t,"__esModule",{value:!0}),t.quantile=function(e,t){var n=e.slice();if(Array.isArray(t)){!function(e,t){for(var n=[0],r=0;r<t.length;r++)n.push(c(e.length,t[r]));n.push(e.length-1),n.sort(l);for(var o=[0,n.length-1];o.length;){var i=Math.ceil(o.pop()),s=Math.floor(o.pop());if(!(i-s<=1)){var u=Math.floor((s+i)/2);a(e,n[u],Math.floor(n[s]),Math.ceil(n[i])),o.push(s,u,u,i)}}}(n,t);for(var o=[],i=0;i<t.length;i++)o[i]=r(n,t[i]);return o}return a(n,c(n.length,t),0,n.length-1),r(n,t)},t.quantileSorted=r,t.quickselect=i,t.swap=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Venn=void 0;var r=n(1),o=n(19),i=n(1245),a=n(201);t.Venn=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="venn",t}return(0,r.__extends)(t,e),t.getDefaultOptions=function(){return a.DEFAULT_OPTIONS},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return i.adaptor},t.prototype.triggerResize=function(){this.chart.destroyed||(this.chart.forceFit(),this.chart.clear(),this.execAdaptor(),this.chart.render(!0))},t}(o.Plot)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LEGEND_SPACE=void 0,t.adaptor=function(e){return(0,l.flow)(f,i.theme,p,h,g,(0,i.scale)({}),v,m,i.tooltip,y,i.animation)(e)},t.axis=m,t.legend=v;var r=n(1),o=n(0),i=n(22),a=n(30),l=n(7),c=n(1246),s=n(201);n(1250),n(1251),n(1252);var u=t.LEGEND_SPACE=40;function d(e,t,n){var r=e.chart,i=e.options,a=i.blendMode,l=i.setsField,s=r.getTheme(),u=s.colors10,d=s.colors20,f=n;(0,o.isArray)(f)||(f=t.filter((function(e){return 1===e[l].length})).length<=10?u:d);var p=(0,c.getColorMap)(f,t,a,l);return function(e){return p.get(e)||f[0]}}function f(e){var t=e.chart,n=e.options,r=n.legend,i=n.appendPadding,a=n.padding,c=(0,l.normalPadding)(i);return!1!==r&&(c=(0,l.getAdjustAppendPadding)(i,(0,o.get)(r,"position"),u)),t.appendPadding=(0,l.resolveAllPadding)([c,a]),e}function p(e){var t=e.options.data;t||((0,l.log)(l.LEVEL.WARN,!1,"warn: %s","\u6570\u636e\u4e0d\u80fd\u4e3a\u7a7a"),t=[]);var n=t.filter((function(e){return 1===e.sets.length})).map((function(e){return e.sets[0]})),r=t.filter((function(e){var t=e.sets;return(0,c.islegalSets)(n,t)}));return(0,o.isEqual)(r,t)||(0,l.log)(l.LEVEL.WARN,!1,"warn: %s","\u4ea4\u96c6\u4e2d\u4e0d\u80fd\u51fa\u73b0\u4e0d\u5b58\u5728\u7684\u96c6\u5408, \u8bf7\u8f93\u5165\u5408\u6cd5\u6570\u636e"),(0,o.deepMix)({},e,{options:{data:r}})}function h(e){var t=e.chart,n=e.options,r=n.pointStyle,o=n.setsField,i=n.sizeField,u=(0,l.normalPadding)(t.appendPadding),f=u[0],p=u[1],h=u[2],g=u[3],v={offsetX:g,offsetY:f},m=t.viewBBox,y=m.width,b=m.height,x=(0,c.layoutVennData)(n,Math.max(y-(p+g),0),Math.max(b-(f+h),0),0);t.data(x);var w=(0,a.schema)((0,l.deepAssign)({},e,{options:{xField:"x",yField:"y",sizeField:i,seriesField:s.ID_FIELD,rawFields:[o,i],schema:{shape:"venn",style:r}}})).ext.geometry;w.customInfo(v);var S=function(e,t){var n=e.options.color;if("function"!==typeof n){var r=d(e,t,"string"===typeof n?[n]:n);return function(e){return r(e[s.ID_FIELD])}}return n}(e,x);return"function"===typeof S&&w.color(s.ID_FIELD,(function(t){var n=x.find((function(e){return e[s.ID_FIELD]===t})),r=d(e,x)(t);return S(n,r)})),e}function g(e){var t=e.chart,n=e.options.label,i=(0,l.normalPadding)(t.appendPadding),a=i[0],c={offsetX:i[3],offsetY:a},s=(0,l.findGeometry)(t,"schema");if(n){var u=n.callback,d=(0,r.__rest)(n,["callback"]);s.label({fields:["id"],callback:u,cfg:(0,o.deepMix)({},(0,l.transformLabel)(d),{type:"venn",customLabelInfo:c})})}else s.label(!1);return e}function v(e){var t=e.chart,n=e.options,r=n.legend,o=n.sizeField;return t.legend(s.ID_FIELD,r),t.legend(o,!1),e}function m(e){return e.chart.axis(!1),e}function y(e){var t=e.options,n=e.chart,o=t.interactions;if(o){var a={"legend-active":"venn-legend-active","legend-highlight":"venn-legend-highlight"};(0,i.interaction)((0,l.deepAssign)({},e,{options:{interactions:o.map((function(e){return(0,r.__assign)((0,r.__assign)({},e),{type:a[e.type]||e.type})}))}}))}return n.removeInteraction("legend-active"),n.removeInteraction("legend-highlight"),e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getColorMap=void 0,t.islegalSets=function(e,t){for(var n=0;n<t.length;n++)if(!e.includes(t[n]))return!1;return!0},t.layoutVennData=function(e,t,n,i){void 0===i&&(i=0);var u=e.data,d=e.setsField,f=e.sizeField;if(0===u.length)return(0,a.log)(a.LEVEL.WARN,!1,"warn: %s","\u6570\u636e\u4e0d\u80fd\u4e3a\u7a7a"),[];var p=u.map((function(e){var t;return(0,r.__assign)((0,r.__assign)({},e),((t={sets:e[d]||[],size:e[f]})[s.PATH_FIELD]="",t[s.ID_FIELD]="",t))}));p.sort((function(e,t){return e.sets.length-t.sets.length}));var h=(0,l.venn)(p),g=(0,l.scaleSolution)(h,t,n,i),v=(0,c.computeTextCentres)(g,p);return p.forEach((function(e){var t=e.sets,n=t.join(",");e[s.ID_FIELD]=n;var r=t.map((function(e){return g[e]})),i=(0,c.intersectionAreaPath)(r);/[zZ]$/.test(i)||(i+=" Z"),e[s.PATH_FIELD]=i;var a=v[n]||{x:0,y:0};(0,o.assign)(e,a)})),p};var r=n(1),o=n(0),i=n(1247),a=n(7),l=n(1248),c=n(1249),s=n(201);t.getColorMap=(0,o.memoize)((function(e,t,n,r){var o=new Map,a=e.length;return t.forEach((function(t,l){if(1===t[r].length)o.set(t[s.ID_FIELD],e[(l+a)%a]);else{var c=t[r].map((function(e){return o.get(e)}));o.set(t[s.ID_FIELD],c.slice(1).reduce((function(e,t){return(0,i.blend)(e,t,n)}),c[0]))}})),o}),(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return JSON.stringify(e)}))},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.blend=function(e,t,n){void 0===n&&(n="normal");var r=i(l(n))(c(e),c(t)),o=c(e),a=o[0],s=o[1],u=o[2],d=o[3],f=c(t),p=f[0],h=f[1],g=f[2],v=f[3],m=Number((d+v*(1-d)).toFixed(2)),y=Math.round((d*(1-v)*(a/255)+d*v*(r[0]/255)+(1-d)*v*(p/255))/m*255),b=Math.round((d*(1-v)*(s/255)+d*v*(r[1]/255)+(1-d)*v*(h/255))/m*255),x=Math.round((d*(1-v)*(u/255)+d*v*(r[2]/255)+(1-d)*v*(g/255))/m*255);return"rgba("+y+", "+b+", "+x+", "+m+")"},t.colorToArr=c,t.innerBlend=void 0;var o=r(n(140)),i=function(e){return function(t,n){var r=[];return r[0]=e(t[0],n[0]),r[1]=e(t[1],n[1]),r[2]=e(t[2],n[2]),r}},a={normal:function(e){return e},multiply:function(e,t){return e*t/255},screen:function(e,t){return 255*(1-(1-e/255)*(1-t/255))},overlay:function(e,t){return t<128?2*e*t/255:255*(1-2*(1-e/255)*(1-t/255))},darken:function(e,t){return e>t?t:e},lighten:function(e,t){return e>t?e:t},dodge:function(e,t){return 255===e||(e=t/255*255/(1-e/255))>255?255:e},burn:function(e,t){return 255===t?255:0===e?0:255*(1-Math.min(1,(1-t/255)/(e/255)))}},l=t.innerBlend=function(e){if(!a[e])throw new Error("unknown blend mode "+e);return a[e]};function c(e){var t,n=e.replace("/s+/g","");return"string"!==typeof n||n.startsWith("rgba")||n.startsWith("#")?(n.startsWith("rgba")&&(t=n.replace("rgba(","").replace(")","").split(",")),n.startsWith("#")&&(t=o.default.rgb2arr(n).concat([1])),t.map((function(e,t){return 3===t?Number(e):0|e}))):o.default.rgb2arr(o.default.toRGB(n)).concat([1])}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bestInitialLayout=c,t.constrainedMDSLayout=s,t.disjointCluster=p,t.distanceFromIntersectArea=a,t.getDistanceMatrices=l,t.greedyLayout=u,t.lossFunction=d,t.normalizeSolution=function(e,t,n){null===t&&(t=Math.PI/2);var r,o,i=[];for(o in e)if(e.hasOwnProperty(o)){var a=e[o];i.push({x:a.x,y:a.y,radius:a.radius,setid:o})}var l=p(i);for(r=0;r<l.length;++r){f(l[r],t,n);var c=h(l[r]);l[r].size=(c.xRange.max-c.xRange.min)*(c.yRange.max-c.yRange.min),l[r].bounds=c}l.sort((function(e,t){return t.size-e.size}));var s=(i=l[0]).bounds,u=(s.xRange.max-s.xRange.min)/50;function d(e,t,n){if(e){var r,o,a,l=e.bounds;t?r=s.xRange.max-l.xRange.min+u:(r=s.xRange.max-l.xRange.max,(a=(l.xRange.max-l.xRange.min)/2-(s.xRange.max-s.xRange.min)/2)<0&&(r+=a)),n?o=s.yRange.max-l.yRange.min+u:(o=s.yRange.max-l.yRange.max,(a=(l.yRange.max-l.yRange.min)/2-(s.yRange.max-s.yRange.min)/2)<0&&(o+=a));for(var c=0;c<e.length;++c)e[c].x+=r,e[c].y+=o,i.push(e[c])}}for(var g=1;g<l.length;)d(l[g],!0,!1),d(l[g+1],!1,!0),d(l[g+2],!0,!0),g+=3,s=h(i);var v={};for(r=0;r<i.length;++r)v[i[r].setid]=i[r];return v},t.scaleSolution=function(e,t,n,r){var o=[],i=[];for(var a in e)e.hasOwnProperty(a)&&(i.push(a),o.push(e[a]));t-=2*r,n-=2*r;var l=h(o),c=l.xRange,s=l.yRange;if(c.max==c.min||s.max==s.min)return console.log("not scaling solution: zero size detected"),e;for(var u=t/(c.max-c.min),d=n/(s.max-s.min),f=Math.min(d,u),p=(t-(c.max-c.min)*f)/2,g=(n-(s.max-s.min)*f)/2,v={},m=0;m<o.length;++m){var y=o[m];v[i[m]]={radius:f*y.radius,x:r+p+(y.x-c.min)*f,y:r+g+(y.y-s.min)*f}}return v},t.venn=function(e,t){(t=t||{}).maxIterations=t.maxIterations||500;var n=t.initialLayout||c,o=t.lossFunction||d;e=function(e){e=e.slice();var t,n,r,o,i=[],a={};for(t=0;t<e.length;++t){var l=e[t];1==l.sets.length?i.push(l.sets[0]):2==l.sets.length&&(a[[r=l.sets[0],o=l.sets[1]]]=!0,a[[o,r]]=!0)}for(i.sort((function(e,t){return e>t?1:-1})),t=0;t<i.length;++t)for(r=i[t],n=t+1;n<i.length;++n)[r,o=i[n]]in a||e.push({sets:[r,o],size:0});return e}(e);var i,a=n(e,t),l=[],s=[];for(i in a)a.hasOwnProperty(i)&&(l.push(a[i].x),l.push(a[i].y),s.push(i));for(var u=(0,r.nelderMead)((function(t){for(var n={},r=0;r<s.length;++r){var i=s[r];n[i]={x:t[2*r],y:t[2*r+1],radius:a[i].radius}}return o(n,e)}),l,t),f=u.x,p=0;p<s.length;++p)i=s[p],a[i].x=f[2*p],a[i].y=f[2*p+1];return a};var r=n(587),o=n(588),i=1e-10;function a(e,t,n){return Math.min(e,t)*Math.min(e,t)*Math.PI<=n+i?Math.abs(e-t):(0,r.bisect)((function(r){return(0,o.circleOverlap)(e,t,r)-n}),0,e+t)}function l(e,t,n){var o=(0,r.zerosM)(t.length,t.length),i=(0,r.zerosM)(t.length,t.length);return e.filter((function(e){return 2==e.sets.length})).map((function(e){var r=n[e.sets[0]],l=n[e.sets[1]],c=a(Math.sqrt(t[r].size/Math.PI),Math.sqrt(t[l].size/Math.PI),e.size);o[r][l]=o[l][r]=c;var s=0;e.size+1e-10>=Math.min(t[r].size,t[l].size)?s=1:e.size<=1e-10&&(s=-1),i[r][l]=i[l][r]=s})),{distances:o,constraints:i}}function c(e,t){var n=u(e,t),r=t.lossFunction||d;if(e.length>=8){var o=s(e,t);r(o,e)+1e-8<r(n,e)&&(n=o)}return n}function s(e,t){var n,o=(t=t||{}).restarts||10,i=[],a={};for(n=0;n<e.length;++n){var c=e[n];1==c.sets.length&&(a[c.sets[0]]=i.length,i.push(c))}var s=l(e,i,a),u=s.distances,d=s.constraints,f=(0,r.norm2)(u.map(r.norm2))/u.length;u=u.map((function(e){return e.map((function(e){return e/f}))}));var p,h,g=function(e,t){return function(e,t,n,r){var o,i=0;for(o=0;o<t.length;++o)t[o]=0;for(o=0;o<n.length;++o)for(var a=e[2*o],l=e[2*o+1],c=o+1;c<n.length;++c){var s=e[2*c],u=e[2*c+1],d=n[o][c],f=r[o][c],p=(s-a)*(s-a)+(u-l)*(u-l),h=Math.sqrt(p),g=p-d*d;f>0&&h<=d||f<0&&h>=d||(i+=2*g*g,t[2*o]+=4*g*(a-s),t[2*o+1]+=4*g*(l-u),t[2*c]+=4*g*(s-a),t[2*c+1]+=4*g*(u-l))}return i}(e,t,u,d)};for(n=0;n<o;++n){var v=(0,r.zeros)(2*u.length).map(Math.random);h=(0,r.conjugateGradient)(g,v,t),(!p||h.fx<p.fx)&&(p=h)}var m=p.x,y={};for(n=0;n<i.length;++n){var b=i[n];y[b.sets[0]]={x:m[2*n]*f,y:m[2*n+1]*f,radius:Math.sqrt(b.size/Math.PI)}}if(t.history)for(n=0;n<t.history.length;++n)(0,r.scale)(t.history[n].x,f);return y}function u(e,t){for(var n,r=t&&t.lossFunction?t.lossFunction:d,l={},c={},s=0;s<e.length;++s){var u=e[s];1==u.sets.length&&(n=u.sets[0],l[n]={x:1e10,y:1e10,rowid:Object.keys(l).length,size:u.size,radius:Math.sqrt(u.size/Math.PI)},c[n]=[])}for(e=e.filter((function(e){return 2==e.sets.length})),s=0;s<e.length;++s){var f=e[s],p=f.hasOwnProperty("weight")?f.weight:1,h=f.sets[0],g=f.sets[1];f.size+i>=Math.min(l[h].size,l[g].size)&&(p=0),c[h].push({set:g,size:f.size,weight:p}),c[g].push({set:h,size:f.size,weight:p})}var v=[];for(n in c)if(c.hasOwnProperty(n)){var m=0;for(s=0;s<c[n].length;++s)m+=c[n][s].size*c[n][s].weight;v.push({set:n,size:m})}function y(e,t){return t.size-e.size}v.sort(y);var b={};function x(e){return e.set in b}function w(e,t){l[t].x=e.x,l[t].y=e.y,b[t]=!0}for(w({x:0,y:0},v[0].set),s=1;s<v.length;++s){var S=v[s].set,O=c[S].filter(x);if(n=l[S],O.sort(y),0===O.length)throw"ERROR: missing pairwise overlap information";for(var _=[],C=0;C<O.length;++C){var E=l[O[C].set],P=a(n.radius,E.radius,O[C].size);_.push({x:E.x+P,y:E.y}),_.push({x:E.x-P,y:E.y}),_.push({y:E.y+P,x:E.x}),_.push({y:E.y-P,x:E.x});for(var M=C+1;M<O.length;++M)for(var k=l[O[M].set],A=a(n.radius,k.radius,O[M].size),I=(0,o.circleCircleIntersection)({x:E.x,y:E.y,radius:P},{x:k.x,y:k.y,radius:A}),T=0;T<I.length;++T)_.push(I[T])}var j=1e50,L=_[0];for(C=0;C<_.length;++C){l[S].x=_[C].x,l[S].y=_[C].y;var R=r(l,e);R<j&&(j=R,L=_[C])}w(L,S)}return l}function d(e,t){for(var n=0,r=0;r<t.length;++r){var i=t[r],a=void 0;if(1!=i.sets.length){if(2==i.sets.length){var l=e[i.sets[0]],c=e[i.sets[1]];a=(0,o.circleOverlap)(l.radius,c.radius,(0,o.distance)(l,c))}else a=(0,o.intersectionArea)(i.sets.map((function(t){return e[t]})));n+=(i.hasOwnProperty("weight")?i.weight:1)*(a-i.size)*(a-i.size)}}return n}function f(e,t,n){var r;if(null===n?e.sort((function(e,t){return t.radius-e.radius})):e.sort(n),e.length>0){var i=e[0].x,a=e[0].y;for(r=0;r<e.length;++r)e[r].x-=i,e[r].y-=a}if(2==e.length&&(0,o.distance)(e[0],e[1])<Math.abs(e[1].radius-e[0].radius)&&(e[1].x=e[0].x+e[0].radius-e[1].radius-1e-10,e[1].y=e[0].y),e.length>1){var l=Math.atan2(e[1].x,e[1].y)-t,c=void 0,s=void 0,u=Math.cos(l),d=Math.sin(l);for(r=0;r<e.length;++r)c=e[r].x,s=e[r].y,e[r].x=u*c-d*s,e[r].y=d*c+u*s}if(e.length>2){for(var f=Math.atan2(e[2].x,e[2].y)-t;f<0;)f+=2*Math.PI;for(;f>2*Math.PI;)f-=2*Math.PI;if(f>Math.PI){var p=e[1].y/(1e-10+e[1].x);for(r=0;r<e.length;++r){var h=(e[r].x+p*e[r].y)/(1+p*p);e[r].x=2*h-e[r].x,e[r].y=2*h*p-e[r].y}}}}function p(e){function t(e){return e.parent!==e&&(e.parent=t(e.parent)),e.parent}function n(e,n){var r=t(e),o=t(n);r.parent=o}e.map((function(e){e.parent=e}));for(var r=0;r<e.length;++r)for(var i=r+1;i<e.length;++i){var a=e[r].radius+e[i].radius;(0,o.distance)(e[r],e[i])+1e-10<a&&n(e[i],e[r])}var l,c={};for(r=0;r<e.length;++r)(l=t(e[r]).parent.setid)in c||(c[l]=[]),c[l].push(e[r]);e.map((function(e){delete e.parent}));var s=[];for(l in c)c.hasOwnProperty(l)&&s.push(c[l]);return s}function h(e){var t=function(t){return{max:Math.max.apply(null,e.map((function(e){return e[t]+e.radius}))),min:Math.min.apply(null,e.map((function(e){return e[t]-e.radius})))}};return{xRange:t("x"),yRange:t("y")}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.circleFromPath=function(e){var t=e.split(" ");return{x:parseFloat(t[1]),y:parseFloat(t[2]),radius:-parseFloat(t[4])}},t.circlePath=l,t.computeTextCentre=a,t.computeTextCentres=function(e,t){for(var n={},r=function(e){var t={},n=[];for(var r in e)n.push(r),t[r]=[];for(var i=0;i<n.length;i++)for(var a=e[n[i]],l=i+1;l<n.length;++l){var c=e[n[l]],s=(0,o.distance)(a,c);s+c.radius<=a.radius+1e-10?t[n[l]].push(n[i]):s+a.radius<=c.radius+1e-10&&t[n[i]].push(n[l])}return t}(e),i=0;i<t.length;++i){for(var l=t[i].sets,c={},s={},u=0;u<l.length;++u){c[l[u]]=!0;for(var d=r[l[u]],f=0;f<d.length;++f)s[d[f]]=!0}var p=[],h=[];for(var g in e)g in c?p.push(e[g]):g in s||h.push(e[g]);var v=a(p,h);n[l]=v,v.disjoint&&t[i].size>0&&console.log("WARNING: area "+l+" not represented on screen")}return n},t.intersectionAreaPath=function(e){var t={};(0,o.intersectionArea)(e,t);var n=t.arcs;if(0===n.length)return"M 0 0";if(1==n.length){var r=n[0].circle;return l(r.x,r.y,r.radius)}for(var i=["\nM",n[0].p2.x,n[0].p2.y],a=0;a<n.length;++a){var c=n[a],s=c.circle.radius,u=c.width>s;i.push("\nA",s,s,0,u?1:0,1,c.p1.x,c.p1.y)}return i.join(" ")};var r=n(587),o=n(588);function i(e,t,n){var r,i,a=t[0].radius-(0,o.distance)(t[0],e);for(r=1;r<t.length;++r)(i=t[r].radius-(0,o.distance)(t[r],e))<=a&&(a=i);for(r=0;r<n.length;++r)(i=(0,o.distance)(n[r],e)-n[r].radius)<=a&&(a=i);return a}function a(e,t){var n,l=[];for(n=0;n<e.length;++n){var c=e[n];l.push({x:c.x,y:c.y}),l.push({x:c.x+c.radius/2,y:c.y}),l.push({x:c.x-c.radius/2,y:c.y}),l.push({x:c.x,y:c.y+c.radius/2}),l.push({x:c.x,y:c.y-c.radius/2})}var s=l[0],u=i(l[0],e,t);for(n=1;n<l.length;++n){var d=i(l[n],e,t);d>=u&&(s=l[n],u=d)}var f=(0,r.nelderMead)((function(n){return-1*i({x:n[0],y:n[1]},e,t)}),[s.x,s.y],{maxIterations:500,minErrorDelta:1e-10}).x,p={x:f[0],y:f[1]},h=!0;for(n=0;n<e.length;++n)if((0,o.distance)(p,e[n])>e[n].radius){h=!1;break}for(n=0;n<t.length;++n)if((0,o.distance)(p,t[n])<t[n].radius){h=!1;break}if(!h)if(1==e.length)p={x:e[0].x,y:e[0].y};else{var g={};(0,o.intersectionArea)(e,g),p=0===g.arcs.length?{x:0,y:-1e3,disjoint:!0}:1==g.arcs.length?{x:g.arcs[0].circle.x,y:g.arcs[0].circle.y}:t.length?a(e,[]):(0,o.getCenter)(g.arcs.map((function(e){return e.p1})))}return p}function l(e,t,n){var r=[],o=e-n,i=t;return r.push("M",o,i),r.push("A",n,n,0,1,0,o+2*n,i),r.push("A",n,n,0,1,0,o,i),r.join(" ")}},function(e,t,n){"use strict";var r=n(1),o=n(14),i=n(88),a=n(7),l=n(201);(0,o.registerShape)("schema","venn",{draw:function(e,t){var n=e.data,c=(0,i.parsePathString)(n[l.PATH_FIELD]),s=function(e){return(0,a.deepAssign)({},e.defaultStyle,{fill:e.color},e.style)}(e),u=t.addGroup({name:"venn-shape"});u.addShape("path",{attrs:(0,r.__assign)((0,r.__assign)({},s),{path:c}),name:"venn-path"});var d=e.customInfo,f=d.offsetX,p=d.offsetY,h=o.Util.transform(null,[["t",f,p]]);return u.setMatrix(h),u},getMarker:function(e){var t=e.color;return{symbol:"circle",style:{lineWidth:0,stroke:t,fill:t,r:4}}}})},function(e,t,n){"use strict";var r=n(1),o=n(14),i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.__extends)(t,e),t.prototype.getLabelPoint=function(e,t,n){var r=e.data,o=r.x,i=r.y,a=e.customLabelInfo,l=a.offsetX,c=a.offsetY;return{content:e.content[n],x:o+l,y:i+c}},t}(o.GeometryLabel);(0,o.registerGeometryLabel)("venn",i)},function(e,t,n){"use strict";var r=n(14),o=n(1253),i=n(1254),a=n(1255);(0,r.registerAction)("venn-element-active",o.VennElementActive),(0,r.registerAction)("venn-element-highlight",i.VennElementHighlight),(0,r.registerAction)("venn-element-selected",a.VennElementSelected),(0,r.registerAction)("venn-element-single-selected",a.VennElementSingleSelected),(0,r.registerInteraction)("venn-element-active",{start:[{trigger:"element:mouseenter",action:"venn-element-active:active"}],end:[{trigger:"element:mouseleave",action:"venn-element-active:reset"}]}),(0,r.registerInteraction)("venn-element-highlight",{start:[{trigger:"element:mouseenter",action:"venn-element-highlight:highlight"}],end:[{trigger:"element:mouseleave",action:"venn-element-highlight:reset"}]}),(0,r.registerInteraction)("venn-element-selected",{start:[{trigger:"element:click",action:"venn-element-selected:toggle"}],rollback:[{trigger:"dblclick",action:["venn-element-selected:reset"]}]}),(0,r.registerInteraction)("venn-element-single-selected",{start:[{trigger:"element:click",action:"venn-element-single-selected:toggle"}],rollback:[{trigger:"dblclick",action:["venn-element-single-selected:reset"]}]}),(0,r.registerInteraction)("venn-legend-active",{start:[{trigger:"legend-item:mouseenter",action:["list-active:active","venn-element-active:active"]}],end:[{trigger:"legend-item:mouseleave",action:["list-active:reset","venn-element-active:reset"]}]}),(0,r.registerInteraction)("venn-legend-highlight",{start:[{trigger:"legend-item:mouseenter",action:["legend-item-highlight:highlight","venn-element-highlight:highlight"]}],end:[{trigger:"legend-item:mouseleave",action:["legend-item-highlight:reset","venn-element-highlight:reset"]}]})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VennElementActive=void 0;var r=n(1),o=n(14),i=n(309),a=(0,o.getActionClass)("element-active");t.VennElementActive=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.__extends)(t,e),t.prototype.syncElementsPos=function(){(0,i.placeElementsOrdered)(this.context.view)},t.prototype.active=function(){e.prototype.active.call(this),this.syncElementsPos()},t.prototype.toggle=function(){e.prototype.toggle.call(this),this.syncElementsPos()},t.prototype.reset=function(){e.prototype.reset.call(this),this.syncElementsPos()},t}(a)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VennElementHighlight=void 0;var r=n(1),o=n(14),i=n(309),a=(0,o.getActionClass)("element-highlight");t.VennElementHighlight=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.__extends)(t,e),t.prototype.syncElementsPos=function(){(0,i.placeElementsOrdered)(this.context.view)},t.prototype.highlight=function(){e.prototype.highlight.call(this),this.syncElementsPos()},t.prototype.toggle=function(){e.prototype.toggle.call(this),this.syncElementsPos()},t.prototype.clear=function(){e.prototype.clear.call(this),this.syncElementsPos()},t.prototype.reset=function(){e.prototype.reset.call(this),this.syncElementsPos()},t}(a)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VennElementSingleSelected=t.VennElementSelected=void 0;var r=n(1),o=n(14),i=n(309),a=(0,o.getActionClass)("element-selected"),l=(0,o.getActionClass)("element-single-selected");t.VennElementSelected=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.__extends)(t,e),t.prototype.syncElementsPos=function(){(0,i.placeElementsOrdered)(this.context.view)},t.prototype.selected=function(){e.prototype.selected.call(this),this.syncElementsPos()},t.prototype.toggle=function(){e.prototype.toggle.call(this),this.syncElementsPos()},t.prototype.reset=function(){e.prototype.reset.call(this),this.syncElementsPos()},t}(a),t.VennElementSingleSelected=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.__extends)(t,e),t.prototype.syncElementsPos=function(){(0,i.placeElementsOrdered)(this.context.view)},t.prototype.selected=function(){e.prototype.selected.call(this),this.syncElementsPos()},t.prototype.toggle=function(){e.prototype.toggle.call(this),this.syncElementsPos()},t.prototype.reset=function(){e.prototype.reset.call(this),this.syncElementsPos()},t}(l)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Stock=void 0;var r=n(1),o=n(19),i=n(1257),a=n(589),l=n(310);t.Stock=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="stock",t}return(0,r.__extends)(t,e),t.getDefaultOptions=function(){return l.DEFAULT_OPTIONS},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return i.adaptor},t.prototype.changeData=function(e){this.updateOption({data:e});var t=this.options.yField;this.chart.changeData((0,a.getStockData)(e,t))},t}(o.Plot)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.adaptor=function(e){(0,i.flow)(r.theme,s,u,d,f,p,r.interaction,r.animation,(0,r.annotation)(),r.slider)(e)},t.axis=d,t.legend=p,t.meta=u,t.tooltip=f;var r=n(22),o=n(30),i=n(7),a=n(98),l=n(310),c=n(589);function s(e){var t=e.chart,n=e.options,r=n.yField,a=n.data,s=n.risingFill,u=n.fallingFill,d=n.tooltip,f=n.stockStyle;t.data((0,c.getStockData)(a,r));var p=d;return!1!==p&&(p=(0,i.deepAssign)({},{fields:r},p)),(0,o.schema)((0,i.deepAssign)({},e,{options:{schema:{shape:"candle",color:[s,u],style:f},yField:l.Y_FIELD,seriesField:l.TREND_FIELD,rawFields:r,tooltip:p}})),e}function u(e){var t,n,r=e.chart,o=e.options,c=o.meta,s=o.xAxis,u=o.yAxis,d=o.xField,f=((t={})[d]={type:"timeCat",tickCount:6},t[l.TREND_FIELD]={values:[l.TREND_UP,l.TREND_DOWN]},t),p=(0,i.deepAssign)(f,c,((n={})[d]=(0,i.pick)(s,a.AXIS_META_CONFIG_KEYS),n[l.Y_FIELD]=(0,i.pick)(u,a.AXIS_META_CONFIG_KEYS),n));return r.scale(p),e}function d(e){var t=e.chart,n=e.options,r=n.xAxis,o=n.yAxis,i=n.xField;return!1===r?t.axis(i,!1):t.axis(i,r),!1===o?t.axis(l.Y_FIELD,!1):t.axis(l.Y_FIELD,o),e}function f(e){var t=e.chart,n=e.options.tooltip;return!1!==n?t.tooltip(n):t.tooltip(!1),e}function p(e){var t=e.chart,n=e.options.legend;return n?t.legend(l.TREND_FIELD,n):!1===n&&t.legend(!1),e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compareFunnel=function(e){return(0,o.flow)(s,u,d)(e)};var r=n(0),o=n(7),i=n(65),a=n(49),l=n(124),c=n(311);function s(e){var t,n=e.chart,r=e.options,o=r.data,i=void 0===o?[]:o,a=r.yField;return n.data(i),n.scale(((t={})[a]={sync:!0},t)),e}function u(e){var t=e.chart,n=e.options,s=n.data,u=n.xField,d=n.yField,f=n.color,p=n.compareField,h=n.isTransposed,g=n.tooltip,v=n.maxSize,m=n.minSize,y=n.label,b=n.funnelStyle,x=n.state;return t.facet("mirror",{fields:[p],transpose:!h,padding:h?0:[32,0,0,0],eachView:function(e,t){var n=h?t.rowIndex:t.columnIndex;h||e.coordinate({type:"rect",actions:[["transpose"],["scale",0===n?-1:1,-1]]});var w=(0,c.transformData)(t.data,s,{yField:d,maxSize:v,minSize:m});e.data(w);var S=(0,i.getTooltipMapping)(g,[u,d,p]),O=S.fields,_=S.formatter,C=h?{offset:0===n?10:-23,position:0===n?"bottom":"top"}:{offset:10,position:"left",style:{textAlign:0===n?"end":"start"}};(0,a.geometry)({chart:e,options:{type:"interval",xField:u,yField:l.FUNNEL_MAPPING_VALUE,colorField:u,tooltipFields:(0,r.isArray)(O)&&O.concat([l.FUNNEL_PERCENT,l.FUNNEL_CONVERSATION]),mapping:{shape:"funnel",tooltip:_,color:f,style:b},label:!1!==y&&(0,o.deepAssign)({},C,y),state:x}})}}),e}function d(e){var t=e.chart,n=e.options,r=n.conversionTag,i=n.isTransposed;return t.once("beforepaint",(function(){t.views.forEach((function(e,t){(0,c.conversionTagComponent)((function(e,n,a,c){var s=0===t?-1:1;return(0,o.deepAssign)({},c,{start:[n-.5,e[l.FUNNEL_MAPPING_VALUE]],end:[n-.5,e[l.FUNNEL_MAPPING_VALUE]+.05],text:i?{style:{textAlign:"start"}}:{offsetX:!1!==r?s*r.offsetX:0,style:{textAlign:0===t?"end":"start"}}})}))((0,o.deepAssign)({},{chart:e,options:n}))}))})),e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.facetFunnel=function(e){return(0,r.flow)(i,a)(e)};var r=n(7),o=n(592);function i(e){var t,n=e.chart,r=e.options,o=r.data,i=void 0===o?[]:o,a=r.yField;return n.data(i),n.scale(((t={})[a]={sync:!0},t)),e}function a(e){var t=e.chart,n=e.options,i=n.seriesField,a=n.isTransposed;return t.facet("rect",{fields:[i],padding:[a?0:32,10,0,10],eachView:function(t,n){(0,o.basicFunnel)((0,r.deepAssign)({},e,{chart:t,options:{data:n.data}}))}}),e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dynamicHeightFunnel=function(e){return(0,i.flow)(u,d,f,p)(e)};var r=n(1),o=n(0),i=n(7),a=n(124),l=n(49),c=n(65),s=n(311);function u(e){var t=e.chart,n=e.options,r=n.data,i=void 0===r?[]:r,l=n.yField,c=(0,o.reduce)(i,(function(e,t){return e+(t[l]||0)}),0),s=(0,o.maxBy)(i,l)[l],u=(0,o.map)(i,(function(e,t){var n=[],r=[];if(e[a.FUNNEL_TOTAL_PERCENT]=(e[l]||0)/c,t){var u=i[t-1][a.PLOYGON_X],d=i[t-1][a.PLOYGON_Y];n[0]=u[3],r[0]=d[3],n[1]=u[2],r[1]=d[2]}else n[0]=-.5,r[0]=1,n[1]=.5,r[1]=1;return r[2]=r[1]-e[a.FUNNEL_TOTAL_PERCENT],n[2]=(r[2]+1)/4,r[3]=r[2],n[3]=-n[2],e[a.PLOYGON_X]=n,e[a.PLOYGON_Y]=r,e[a.FUNNEL_PERCENT]=(e[l]||0)/s,e[a.FUNNEL_CONVERSATION]=[(0,o.get)(i,[t-1,l]),e[l]],e}));return t.data(u),e}function d(e){var t=e.chart,n=e.options,r=n.xField,i=n.yField,s=n.color,u=n.tooltip,d=n.label,f=n.funnelStyle,p=n.state,h=(0,c.getTooltipMapping)(u,[r,i]),g=h.fields,v=h.formatter;return(0,l.geometry)({chart:t,options:{type:"polygon",xField:a.PLOYGON_X,yField:a.PLOYGON_Y,colorField:r,tooltipFields:(0,o.isArray)(g)&&g.concat([a.FUNNEL_PERCENT,a.FUNNEL_CONVERSATION]),label:d,state:p,mapping:{tooltip:v,color:s,style:f}}}),e}function f(e){var t=e.chart,n=e.options.isTransposed;return t.coordinate({type:"rect",actions:n?[["transpose"],["reflect","x"]]:[]}),e}function p(e){return(0,s.conversionTagComponent)((function(e,t,n,o){return(0,r.__assign)((0,r.__assign)({},o),{start:[e[a.PLOYGON_X][1],e[a.PLOYGON_Y][1]],end:[e[a.PLOYGON_X][1]+.05,e[a.PLOYGON_Y][1]]})}))(e),e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Liquid=void 0;var r=n(1),o=n(14),i=n(19),a=n(1262),l=n(1263),c=n(593);n(1264),t.Liquid=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="liquid",t}return(0,r.__extends)(t,e),t.getDefaultOptions=function(){return l.DEFAULT_OPTIONS},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.changeData=function(e){this.chart.emit(o.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA,o.Event.fromData(this.chart,o.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA,null)),this.updateOption({percent:e}),this.chart.data((0,c.getLiquidData)(e)),(0,a.statistic)({chart:this.chart,options:this.options},!0),this.chart.emit(o.VIEW_LIFE_CIRCLE.AFTER_CHANGE_DATA,o.Event.fromData(this.chart,o.VIEW_LIFE_CIRCLE.AFTER_CHANGE_DATA,null))},t.prototype.getSchemaAdaptor=function(){return a.adaptor},t}(i.Plot)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.adaptor=function(e){return(0,a.flow)(i.theme,(0,i.pattern)("liquidStyle"),s,u,(0,i.scale)({}),i.animation,i.interaction)(e)},t.statistic=u;var r=n(1),o=n(0),i=n(22),a=n(7),l=n(30),c=n(593);function s(e){var t=e.chart,n=e.options,r=n.percent,o=n.liquidStyle,i=n.radius,s=n.outline,u=n.wave,d=n.shape;t.scale({percent:{min:0,max:1}}),t.data((0,c.getLiquidData)(r));var f=n.color||t.getTheme().defaultColor,p=(0,a.deepAssign)({},e,{options:{xField:"type",yField:"percent",widthRatio:i,interval:{color:f,style:o,shape:"liquid-fill-gauge"}}}),h=(0,l.interval)(p).ext.geometry,g={radius:i,outline:s,wave:u,shape:d,background:t.getTheme().background};return h.customInfo(g),t.legend(!1),t.axis(!1),t.tooltip(!1),e}function u(e,t){var n=e.chart,i=e.options,l=i.statistic,c=i.percent,s=i.meta;n.getController("annotation").clear(!0);var u=(0,o.get)(s,["percent","formatter"])||function(e){return(100*e).toFixed(2)+"%"},d=l.content;return d&&(d=(0,a.deepAssign)({},d,{content:(0,o.isNil)(d.content)?u(c):d.content})),(0,a.renderStatistic)(n,{statistic:(0,r.__assign)((0,r.__assign)({},l),{content:d}),plotType:"liquid"},{percent:c}),t&&n.render(!0),e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_OPTIONS=void 0,t.DEFAULT_OPTIONS={radius:.9,statistic:{title:!1,content:{style:{opacity:.75,fontSize:"30px",lineHeight:"30px",textAlign:"center"}}},outline:{border:2,distance:0},wave:{count:3,length:192},shape:"circle"}},function(e,t,n){"use strict";var r=n(1),o=n(14),i=n(0),a=n(563);function l(e,t,n){return e+(t-e)*n}function c(e,t,n,r){return 0===t?[[e+.5*n/Math.PI/2,r/2],[e+.5*n/Math.PI,r],[e+n/4,r]]:1===t?[[e+.5*n/Math.PI/2*(Math.PI-2),r],[e+.5*n/Math.PI/2*(Math.PI-1),r/2],[e+n/4,0]]:2===t?[[e+.5*n/Math.PI/2,-r/2],[e+.5*n/Math.PI,-r],[e+n/4,-r]]:[[e+.5*n/Math.PI/2*(Math.PI-2),-r],[e+.5*n/Math.PI/2*(Math.PI-1),-r/2],[e+n/4,0]]}function s(e,t,n,r,o,i,a){for(var l=4*Math.ceil(2*e/n*4),s=[],u=r;u<2*-Math.PI;)u+=2*Math.PI;for(;u>0;)u-=2*Math.PI;var d=i-e+(u=u/Math.PI/2*n)-2*e;s.push(["M",d,t]);for(var f=0,p=0;p<l;++p){var h=c(p*n/4,p%4,n,o);s.push(["C",h[0][0]+d,-h[0][1]+t,h[1][0]+d,-h[1][1]+t,h[2][0]+d,-h[2][1]+t]),p===l-1&&(f=h[2][0])}return s.push(["L",f+d,a+e]),s.push(["L",d,a+e]),s.push(["Z"]),s}function u(e,t,n,r){var o=2*n/3,i=Math.max(o,r),a=o/2,l=e,c=a+t-i/2,s=Math.asin(a/(.85*(i-a))),u=Math.sin(s)*a,d=Math.cos(s)*a,f=l-d,p=c+u,h=e,g=c+a/Math.sin(s);return"\n      M "+f+" "+p+"\n      A "+a+" "+a+" 0 1 1 "+(f+2*d)+" "+p+"\n      Q "+h+" "+g+" "+e+" "+(t+i/2)+"\n      Q "+h+" "+g+" "+f+" "+p+"\n      Z \n    "}function d(e,t,n,r){var o=n/2,i=r/2;return"\n      M "+e+" "+(t-i)+" \n      a "+o+" "+i+" 0 1 0 0 "+2*i+"\n      a "+o+" "+i+" 0 1 0 0 "+2*-i+"\n      Z\n    "}function f(e,t,n,r){var o=r/2,i=n/2;return"\n      M "+e+" "+(t-o)+"\n      L "+(e+i)+" "+t+"\n      L "+e+" "+(t+o)+"\n      L "+(e-i)+" "+t+"\n      Z\n    "}function p(e,t,n,r){var o=r/2,i=n/2;return"\n      M "+e+" "+(t-o)+"\n      L "+(e+i)+" "+(t+o)+"\n      L "+(e-i)+" "+(t+o)+"\n      Z\n    "}function h(e,t,n,r){var o=r/2,i=n/2*.618;return"\n      M "+(e-i)+" "+(t-o)+"\n      L "+(e+i)+" "+(t-o)+"\n      L "+(e+i)+" "+(t+o)+"\n      L "+(e-i)+" "+(t+o)+"\n      Z\n    "}(0,o.registerShape)("interval","liquid-fill-gauge",{draw:function(e,t){var n=e.customInfo,o=n,c=o.radius,g=o.shape,v=o.background,m=n.outline,y=n.wave,b=m.border,x=m.distance,w=y.count,S=y.length,O=(0,i.reduce)(e.points,(function(e,t){return Math.min(e,t.x)}),1/0),_=this.parsePoint({x:.5,y:.5}),C=this.parsePoint({x:O,y:.5}),E=_.x-C.x,P=Math.min(E,C.y*c),M=function(e){var t=(0,r.__assign)({opacity:1},e.style);return e.color&&!t.fill&&(t.fill=e.color),t}(e),k=function(e){var t=(0,i.mix)({},{fill:"#fff",fillOpacity:0,lineWidth:4},e.style);return e.color&&!t.stroke&&(t.stroke=e.color),(0,i.isNumber)(e.opacity)&&(t.opacity=t.strokeOpacity=e.opacity),t}((0,i.mix)({},e,m)),A=P-b/2,I={pin:u,circle:d,diamond:f,triangle:p,rect:h},T=("function"===typeof g?g:I[g]||I.circle)(_.x,_.y,2*A,2*A),j=t.addGroup({name:"waves"}),L=j.setClip({type:"path",attrs:{path:T}});return function(e,t,n,r,o,i,c,u,d){for(var f=o.fill,p=o.opacity,h=c.getBBox(),g=h.maxX-h.minX,v=h.maxY-h.minY,m=0;m<r;m++){var y=r<=1?0:m/(r-1),b=i.addShape("path",{name:"waterwave-path",attrs:{path:s(u,h.minY+v*n,d,0,g/32,e,t),fill:f,opacity:l(.2,.9,y)*p}});try{var x=(0,a.transform)([["t",d,0]]);b.stopAnimate(),b.animate({matrix:x},{duration:l(2500,5e3,y),repeat:!0})}catch(w){console.warn("off-screen group animate error!")}}}(_.x,_.y,1-e.points[1].y,w,M,j,L,2*P,S),t.addShape("path",{name:"distance",attrs:{path:T,fill:"transparent",lineWidth:b+2*x,stroke:"transparent"===v?"#fff":v}}),t.addShape("path",{name:"wrap",attrs:(0,i.mix)(k,{path:T,fill:"transparent",lineWidth:b})}),t}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Bullet=void 0;var r=n(1),o=n(19),i=n(1266),a=n(594),l=n(1267);t.Bullet=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="bullet",t}return(0,r.__extends)(t,e),t.getDefaultOptions=function(){return l.DEFAULT_OPTIONS},t.prototype.changeData=function(e){this.updateOption({data:e});var t=(0,a.transformData)(this.options),n=t.min,r=t.max,o=t.ds;(0,i.meta)({options:this.options,ext:{data:{min:n,max:r}},chart:this.chart}),this.chart.changeData(o)},t.prototype.getSchemaAdaptor=function(){return i.adaptor},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t}(o.Plot)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.adaptor=function(e){(0,a.flow)(s,u,d,f,i.theme,p,i.tooltip,i.interaction,i.animation)(e)},t.meta=u;var r=n(1),o=n(0),i=n(22),a=n(7),l=n(30),c=n(594);function s(e){var t=e.chart,n=e.options,i=n.bulletStyle,s=n.targetField,u=n.rangeField,d=n.measureField,f=n.xField,p=n.color,h=n.layout,g=n.size,v=n.label,m=(0,c.transformData)(n),y=m.min,b=m.max,x=m.ds;t.data(x);var w=(0,a.deepAssign)({},e,{options:{xField:f,yField:u,seriesField:"rKey",isStack:!0,label:(0,o.get)(v,"range"),interval:{color:(0,o.get)(p,"range"),style:(0,o.get)(i,"range"),size:(0,o.get)(g,"range")}}});(0,l.interval)(w),t.geometries[0].tooltip(!1);var S=(0,a.deepAssign)({},e,{options:{xField:f,yField:d,seriesField:"mKey",isStack:!0,label:(0,o.get)(v,"measure"),interval:{color:(0,o.get)(p,"measure"),style:(0,o.get)(i,"measure"),size:(0,o.get)(g,"measure")}}});(0,l.interval)(S);var O=(0,a.deepAssign)({},e,{options:{xField:f,yField:s,seriesField:"tKey",label:(0,o.get)(v,"target"),point:{color:(0,o.get)(p,"target"),style:(0,o.get)(i,"target"),size:(0,o.isFunction)((0,o.get)(g,"target"))?function(e){return(0,o.get)(g,"target")(e)/2}:(0,o.get)(g,"target")/2,shape:"horizontal"===h?"line":"hyphen"}}});return(0,l.point)(O),"horizontal"===h&&t.coordinate().transpose(),(0,r.__assign)((0,r.__assign)({},e),{ext:{data:{min:y,max:b}}})}function u(e){var t,n,r=e.options,o=e.ext,l=r.xAxis,c=r.yAxis,s=r.targetField,u=r.rangeField,d=r.measureField,f=r.xField,p=o.data;return(0,a.flow)((0,i.scale)(((t={})[f]=l,t[d]=c,t),((n={})[d]={min:null===p||void 0===p?void 0:p.min,max:null===p||void 0===p?void 0:p.max,sync:!0},n[s]={sync:""+d},n[u]={sync:""+d},n)))(e)}function d(e){var t=e.chart,n=e.options,r=n.xAxis,o=n.yAxis,i=n.xField,a=n.measureField,l=n.rangeField,c=n.targetField;return t.axis(""+l,!1),t.axis(""+c,!1),!1===r?t.axis(""+i,!1):t.axis(""+i,r),!1===o?t.axis(""+a,!1):t.axis(""+a,o),e}function f(e){var t=e.chart,n=e.options.legend;return t.removeInteraction("legend-filter"),t.legend(n),t.legend("rKey",!1),t.legend("mKey",!1),t.legend("tKey",!1),e}function p(e){var t=e.chart,n=e.options,i=n.label,l=n.measureField,c=n.targetField,s=n.rangeField,u=t.geometries,d=u[0],f=u[1],p=u[2];return(0,o.get)(i,"range")?d.label(""+s,(0,r.__assign)({layout:[{type:"limit-in-plot"}]},(0,a.transformLabel)(i.range))):d.label(!1),(0,o.get)(i,"measure")?f.label(""+l,(0,r.__assign)({layout:[{type:"limit-in-plot"}]},(0,a.transformLabel)(i.measure))):f.label(!1),(0,o.get)(i,"target")?p.label(""+c,(0,r.__assign)({layout:[{type:"limit-in-plot"}]},(0,a.transformLabel)(i.target))):p.label(!1),e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_OPTIONS=void 0;var r=n(19),o=n(7);t.DEFAULT_OPTIONS=(0,o.deepAssign)({},r.Plot.getDefaultOptions(),{layout:"horizontal",size:{range:30,measure:20,target:20},xAxis:{tickLine:!1,line:null},bulletStyle:{range:{fillOpacity:.5}},label:{measure:{position:"right"}},tooltip:{showMarkers:!1}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Sunburst=void 0;var r=n(1),o=n(19),i=n(157),a=n(1269),l=n(312);n(1272),t.Sunburst=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="sunburst",t}return(0,r.__extends)(t,e),t.getDefaultOptions=function(){return l.DEFAULT_OPTIONS},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return a.adaptor},t.SUNBURST_ANCESTOR_FIELD=l.SUNBURST_ANCESTOR_FIELD,t.SUNBURST_PATH_FIELD=l.SUNBURST_PATH_FIELD,t.NODE_ANCESTORS_FIELD=i.NODE_ANCESTORS_FIELD,t}(o.Plot)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.adaptor=function(e){return(0,l.flow)(a.theme,(0,a.pattern)("sunburstStyle"),d,f,v,p,g,m,h,b,a.animation,(0,a.annotation)())(e)},t.axis=f,t.meta=v,t.tooltip=m;var r=n(1),o=n(0),i=n(30),a=n(22),l=n(7),c=n(120),s=n(312),u=n(1270);function d(e){var t,n=e.chart,a=e.options,c=a.color,d=a.colorField,f=void 0===d?s.SUNBURST_ANCESTOR_FIELD:d,p=a.sunburstStyle,h=a.rawFields,g=void 0===h?[]:h,v=(0,u.transformData)(a);return n.data(v),p&&(t=function(e){return(0,l.deepAssign)({},{fillOpacity:Math.pow(.85,e.depth)},(0,o.isFunction)(p)?p(e):p)}),(0,i.polygon)((0,l.deepAssign)({},e,{options:{xField:"x",yField:"y",seriesField:f,rawFields:(0,o.uniq)((0,r.__spreadArrays)(s.RAW_FIELDS,g)),polygon:{color:c,style:t}}})),e}function f(e){return e.chart.axis(!1),e}function p(e){return e.chart.legend(!1),e}function h(e){var t=e.chart,n=e.options.label,o=(0,l.findGeometry)(t,"polygon");if(n){var i=n.fields,a=void 0===i?["name"]:i,c=n.callback,s=(0,r.__rest)(n,["fields","callback"]);o.label({fields:a,callback:c,cfg:(0,l.transformLabel)(s)})}else o.label(!1);return e}function g(e){var t=e.chart,n=e.options,r=n.innerRadius,o=n.radius,i=n.reflect,a=t.coordinate({type:"polar",cfg:{innerRadius:r,radius:o}});return i&&a.reflect(i),e}function v(e){var t,n=e.options,r=n.hierarchyConfig,i=n.meta;return(0,l.flow)((0,a.scale)({},((t={})[s.SUNBURST_Y_FIELD]=(0,o.get)(i,(0,o.get)(r,["field"],"value")),t)))(e)}function m(e){var t=e.chart,n=e.options.tooltip;if(!1===n)t.tooltip(!1);else{var i=n;(0,o.get)(n,"fields")||(i=(0,l.deepAssign)({},{customItems:function(e){return e.map((function(e){var n=(0,o.get)(t.getOptions(),"scales"),i=(0,o.get)(n,[s.SUNBURST_PATH_FIELD,"formatter"],(function(e){return e})),a=(0,o.get)(n,[s.SUNBURST_Y_FIELD,"formatter"],(function(e){return e}));return(0,r.__assign)((0,r.__assign)({},e),{name:i(e.data[s.SUNBURST_PATH_FIELD]),value:a(e.data.value)})}))}},i)),t.tooltip(i)}return e}function y(e){var t=e.drilldown,n=e.interactions,o=void 0===n?[]:n;return(null===t||void 0===t?void 0:t.enabled)?(0,l.deepAssign)({},e,{interactions:(0,r.__spreadArrays)(o,[{type:"drill-down",cfg:{drillDownConfig:t,transformData:u.transformData}}])}):e}function b(e){var t=e.chart,n=e.options,r=n.drilldown;return(0,a.interaction)({chart:t,options:y(n)}),(null===r||void 0===r?void 0:r.enabled)&&(t.appendPadding=(0,c.getAdjustAppendPadding)(t.appendPadding,(0,o.get)(r,["breadCrumb","position"]))),e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.transformData=function(e){var t=e.data,n=e.colorField,u=e.rawFields,d=e.hierarchyConfig,f=void 0===d?{}:d,p=f.activeDepth,h={partition:l.partition,treemap:c.treemap},g=e.seriesField,v=e.type||"partition",m=h[v](t,(0,r.__assign)((0,r.__assign)({field:g||"value"},(0,o.omit)(f,["activeDepth"])),{type:"hierarchy."+v,as:["x","y"]})),y=[];return m.forEach((function(e){var t,o,l,c,d,h;if(0===e.depth)return null;if(p>0&&e.depth>p)return null;for(var v=e.data.name,m=(0,r.__assign)({},e);m.depth>1;)v=(null===(o=m.parent.data)||void 0===o?void 0:o.name)+" / "+v,m=m.parent;var b=(0,r.__assign)((0,r.__assign)((0,r.__assign)({},(0,a.pick)(e.data,(0,r.__spreadArrays)(u||[],[f.field]))),((t={})[s.SUNBURST_PATH_FIELD]=v,t[s.SUNBURST_ANCESTOR_FIELD]=m.data.name,t)),e);g&&(b[g]=e.data[g]||(null===(c=null===(l=e.parent)||void 0===l?void 0:l.data)||void 0===c?void 0:c[g])),n&&(b[n]=e.data[n]||(null===(h=null===(d=e.parent)||void 0===d?void 0:d.data)||void 0===h?void 0:h[n])),b.ext=f,b[i.HIERARCHY_DATA_TRANSFORM_PARAMS]={hierarchyConfig:f,colorField:n,rawFields:u},y.push(b)})),y};var r=n(1),o=n(0),i=n(202),a=n(7),l=n(1271),c=n(595),s=n(312)},function(e,t,n){"use strict";var r=n(6);Object.defineProperty(t,"__esModule",{value:!0}),t.partition=function(e,t){var n,r=(t=(0,i.assign)({},c,t)).as;if(!(0,i.isArray)(r)||2!==r.length)throw new TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "x", "y" ])!');try{n=(0,a.getField)(t)}catch(d){console.warn(d)}var l=function(e){return o.partition().size(t.size).round(t.round).padding(t.padding)(o.hierarchy(e).sum((function(e){return(0,i.size)(e.children)?t.ignoreParentValue?0:e[n]-(0,i.reduce)(e.children,(function(e,t){return e+t[n]}),0):e[n]})).sort(t.sort))}(e),s=r[0],u=r[1];return l.each((function(e){var t,n;e[s]=[e.x0,e.x1,e.x1,e.x0],e[u]=[e.y1,e.y1,e.y0,e.y0],e.name=e.name||(null===(t=e.data)||void 0===t?void 0:t.name)||(null===(n=e.data)||void 0===n?void 0:n.label),e.data.name=e.name,["x0","x1","y0","y1"].forEach((function(t){-1===r.indexOf(t)&&delete e[t]}))})),(0,a.getAllNodes)(l)};var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var c=i?Object.getOwnPropertyDescriptor(e,a):null;c&&(c.get||c.set)?Object.defineProperty(o,a,c):o[a]=e[a]}return o.default=e,n&&n.set(e,o),o}(n(194)),i=n(0),a=n(157);function l(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}var c={field:"value",size:[1,1],round:!1,padding:0,sort:function(e,t){return t.value-e.value},as:["x","y"],ignoreParentValue:!0}},function(e,t,n){"use strict";n(313)},function(e,t,n){"use strict";var r=n(1);(0,n(14).registerShape)("point","gauge-indicator",{draw:function(e,t){var n=e.customInfo,o=n.indicator,i=n.defaultColor,a=o,l=a.pointer,c=a.pin,s=t.addGroup(),u=this.parsePoint({x:0,y:0});return l&&s.addShape("line",{name:"pointer",attrs:(0,r.__assign)({x1:u.x,y1:u.y,x2:e.x,y2:e.y,stroke:i},l.style)}),c&&s.addShape("circle",{name:"pin",attrs:(0,r.__assign)({x:u.x,y:u.y,stroke:i},c.style)}),s}})},function(e,t,n){"use strict";var r=n(14),o=n(0);(0,r.registerShape)("interval","meter-gauge",{draw:function(e,t){var n=e.customInfo.meter,i=void 0===n?{}:n,a=i.steps,l=void 0===a?50:a,c=i.stepRatio,s=void 0===c?.5:c;l=l<1?1:l,s=(0,o.clamp)(s,0,1);var u=this.coordinate,d=u.startAngle,f=u.endAngle,p=0;s>0&&s<1&&(p=(f-d)/l/(s/(1-s)+1-1/l));for(var h=p/(1-s)*s,g=t.addGroup(),v=this.coordinate.getCenter(),m=this.coordinate.getRadius(),y=r.Util.getAngle(e,this.coordinate),b=y.startAngle,x=y.endAngle,w=b;w<x;){var S=void 0,O=(w-d)%(h+p);S=O<h?w+(h-O):(w+=h+p-O)+h;var _=r.Util.getSectorPath(v.x,v.y,m,w,Math.min(S,x),m*this.coordinate.innerRadius);g.addShape("path",{name:"meter-gauge",attrs:{path:_,fill:e.color,stroke:e.color,lineWidth:.5}}),w=S+p}return g}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Waterfall=void 0;var r=n(1),o=n(19),i=n(1276),a=n(315),l=n(599);t.Waterfall=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="waterfall",t}return(0,r.__extends)(t,e),t.getDefaultOptions=function(){return a.DEFAULT_OPTIONS},t.prototype.changeData=function(e){var t=this.options,n=t.xField,r=t.yField,o=t.total;this.updateOption({data:e}),this.chart.changeData((0,l.transformData)(e,n,r,o))},t.prototype.getSchemaAdaptor=function(){return i.adaptor},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t}(o.Plot)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.adaptor=function(e){return(0,c.flow)(d,i.theme,f,p,h,g,m,v,i.state,i.interaction,i.animation,(0,i.annotation)())(e)},t.tooltip=m;var r=n(1),o=n(0),i=n(22),a=n(30),l=n(197),c=n(7),s=n(315),u=n(599);function d(e){var t=e.options,n=t.locale,r=t.total,o=(0,l.getLocale)(n).get(["waterfall","total"]);return r&&"string"!==typeof r.label&&o&&(e.options.total.label=o),e}function f(e){var t=e.chart,n=e.options,r=n.data,i=n.xField,l=n.yField,d=n.total,f=n.leaderLine,p=n.columnWidthRatio,h=n.waterfallStyle,g=n.risingFill,v=n.fallingFill,m=n.color;t.data((0,u.transformData)(r,i,l,d));var y=m||function(e){return(0,o.get)(e,[s.IS_TOTAL])?(0,o.get)(d,["style","fill"],""):(0,o.get)(e,[s.Y_FIELD,1])-(0,o.get)(e,[s.Y_FIELD,0])>0?g:v},b=(0,c.deepAssign)({},e,{options:{xField:i,yField:s.Y_FIELD,seriesField:i,rawFields:[l,s.DIFF_FIELD,s.IS_TOTAL,s.Y_FIELD],widthRatio:p,interval:{style:h,shape:"waterfall",color:y}}});return(0,a.interval)(b).ext.geometry.customInfo({leaderLine:f}),e}function p(e){var t,n,r=e.options,a=r.xAxis,l=r.yAxis,u=r.xField,d=r.yField,f=r.meta,p=(0,c.deepAssign)({},{alias:d},(0,o.get)(f,d));return(0,c.flow)((0,i.scale)(((t={})[u]=a,t[d]=l,t[s.Y_FIELD]=l,t),(0,c.deepAssign)({},f,((n={})[s.Y_FIELD]=p,n[s.DIFF_FIELD]=p,n[s.ABSOLUTE_FIELD]=p,n))))(e)}function h(e){var t=e.chart,n=e.options,r=n.xAxis,o=n.yAxis,i=n.xField,a=n.yField;return!1===r?t.axis(i,!1):t.axis(i,r),!1===o?(t.axis(a,!1),t.axis(s.Y_FIELD,!1)):(t.axis(a,o),t.axis(s.Y_FIELD,o)),e}function g(e){var t=e.chart,n=e.options,r=n.legend,i=n.total,a=n.risingFill,s=n.fallingFill,u=n.locale,d=(0,l.getLocale)(u);if(!1===r)t.legend(!1);else{var f=[{name:d.get(["general","increase"]),value:"increase",marker:{symbol:"square",style:{r:5,fill:a}}},{name:d.get(["general","decrease"]),value:"decrease",marker:{symbol:"square",style:{r:5,fill:s}}}];i&&f.push({name:i.label||"",value:"total",marker:{symbol:"square",style:(0,c.deepAssign)({},{r:5},(0,o.get)(i,"style"))}}),t.legend((0,c.deepAssign)({},{custom:!0,position:"top",items:f},r)),t.removeInteraction("legend-filter")}return e}function v(e){var t=e.chart,n=e.options,o=n.label,i=n.labelMode,a=n.xField,l=(0,c.findGeometry)(t,"interval");if(o){var u=o.callback,d=(0,r.__rest)(o,["callback"]);l.label({fields:"absolute"===i?[s.ABSOLUTE_FIELD,a]:[s.DIFF_FIELD,a],callback:u,cfg:(0,c.transformLabel)(d)})}else l.label(!1);return e}function m(e){var t=e.chart,n=e.options,o=n.tooltip,i=n.xField,a=n.yField;if(!1!==o){t.tooltip((0,r.__assign)({showCrosshairs:!1,showMarkers:!1,shared:!0,fields:[a]},o));var l=t.geometries[0];(null===o||void 0===o?void 0:o.formatter)?l.tooltip(i+"*"+a,o.formatter):l.tooltip(a)}else t.tooltip(!1);return e}n(1277)},function(e,t,n){"use strict";var r=n(1),o=n(14),i=n(0),a=n(7);(0,o.registerShape)("interval","waterfall",{draw:function(e,t){var n=e.customInfo,o=e.points,l=e.nextPoints,c=t.addGroup(),s=this.parsePath(function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];if(r){var o=0===n?"M":"L";t.push([o,r.x,r.y])}}var i=e[0];return t.push(["L",i.x,i.y]),t.push(["z"]),t}(o)),u=function(e){return(0,a.deepAssign)({},e.defaultStyle,e.style,{fill:e.color})}(e);c.addShape("path",{attrs:(0,r.__assign)((0,r.__assign)({},u),{path:s})});var d=(0,i.get)(n,"leaderLine");if(d&&l){var f=[["M",o[2].x,o[2].y],["L",l[0].x,l[0].y]];o[2].y===l[1].y&&(f[1]=["L",l[1].x,l[1].y]),f=this.parsePath(f),c.addShape("path",{attrs:(0,r.__assign)({path:f},d.style||{})})}return c}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RadialBar=void 0;var r=n(1),o=n(19),i=n(1279),a=n(1281);t.RadialBar=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="radial-bar",t}return(0,r.__extends)(t,e),t.getDefaultOptions=function(){return a.DEFAULT_OPTIONS},t.prototype.changeData=function(e){this.updateOption({data:e}),(0,i.meta)({chart:this.chart,options:this.options}),this.chart.changeData(e)},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return i.adaptor},t}(o.Plot)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.adaptor=function(e){return(0,i.flow)((0,l.pattern)("barStyle"),s,u,f,d,o.interaction,o.animation,o.theme,o.tooltip,o.legend,(0,o.annotation)(),p)(e)},t.axis=f,t.meta=u;var r=n(1),o=n(22),i=n(7),a=n(30),l=n(121),c=n(1280);function s(e){var t=e.chart,n=e.options,r=n.barStyle,o=n.color,l=n.tooltip,c=n.colorField,s=n.type,u=n.xField,d=n.yField,f=n.data,p=(0,i.processIllegalData)(f,d);t.data(p);var h=(0,i.deepAssign)({},e,{options:{tooltip:l,seriesField:c,interval:{style:r,color:o,shape:"line"===s?"line":"intervel"},minColumnWidth:n.minBarWidth,maxColumnWidth:n.maxBarWidth,columnBackground:n.barBackground}});return(0,a.interval)(h),"line"===s&&(0,a.point)({chart:t,options:{xField:u,yField:d,seriesField:c,point:{shape:"circle",color:o}}}),e}function u(e){var t,n=e.options,r=n.yField,a=n.xField,l=n.data,s=n.isStack,u=n.isGroup,d=n.colorField,f=n.maxAngle,p=s&&!u&&d?(0,c.getStackedData)(l,a,r):l,h=(0,i.processIllegalData)(p,r);return(0,i.flow)((0,o.scale)(((t={})[r]={min:0,max:(0,c.getScaleMax)(f,r,h)},t)))(e)}function d(e){var t=e.chart,n=e.options,r=n.radius,o=n.innerRadius,i=n.startAngle,a=n.endAngle;return t.coordinate({type:"polar",cfg:{radius:r,innerRadius:o,startAngle:i,endAngle:a}}).transpose(),e}function f(e){var t=e.chart,n=e.options,r=n.xField,o=n.xAxis;return t.axis(r,o),e}function p(e){var t=e.chart,n=e.options,o=n.label,a=n.yField,l=(0,i.findGeometry)(t,"interval");if(o){var c=o.callback,s=(0,r.__rest)(o,["callback"]);l.label({fields:[a],callback:c,cfg:(0,r.__assign)((0,r.__assign)({},(0,i.transformLabel)(s)),{type:"polar"})})}else l.label(!1);return e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getScaleMax=function(e,t,n){var r=n.map((function(e){return e[t]})).filter((function(e){return void 0!==e})),o=r.length>0?Math.max.apply(Math,r):0,i=Math.abs(e)%360;return i?360*o/i:o},t.getStackedData=function(e,t,n){var o=[];return e.forEach((function(e){var i=o.find((function(n){return n[t]===e[t]}));i?i[n]+=e[n]||null:o.push((0,r.__assign)({},e))})),o};var r=n(1)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_OPTIONS=void 0;var r=n(19),o=n(7);t.DEFAULT_OPTIONS=(0,o.deepAssign)({},r.Plot.getDefaultOptions(),{interactions:[{type:"element-active"}],legend:!1,tooltip:{showMarkers:!1},xAxis:{grid:null,tickLine:null,line:null},maxAngle:240})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BidirectionalBar=void 0;var r=n(1),o=n(14),i=n(19),a=n(7),l=n(1283),c=n(601),s=n(600);t.BidirectionalBar=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="bidirectional-bar",t}return(0,r.__extends)(t,e),t.getDefaultOptions=function(){return(0,a.deepAssign)({},e.getDefaultOptions.call(this),{syncViewPadding:c.syncViewPadding})},t.prototype.changeData=function(e){void 0===e&&(e=[]),this.chart.emit(o.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA,o.Event.fromData(this.chart,o.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA,null)),this.updateOption({data:e});var t=this.options,n=t.xField,r=t.yField,i=t.layout,l=(0,c.transformData)(n,r,s.SERIES_FIELD_KEY,e,(0,c.isHorizontal)(i)),u=l[0],d=l[1],f=(0,a.findViewById)(this.chart,s.FIRST_AXES_VIEW),p=(0,a.findViewById)(this.chart,s.SECOND_AXES_VIEW);f.data(u),p.data(d),this.chart.render(!0),this.chart.emit(o.VIEW_LIFE_CIRCLE.AFTER_CHANGE_DATA,o.Event.fromData(this.chart,o.VIEW_LIFE_CIRCLE.AFTER_CHANGE_DATA,null))},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return l.adaptor},t.SERIES_FIELD_KEY=s.SERIES_FIELD_KEY,t}(i.Plot)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.adaptor=function(e){return(0,l.flow)(u,d,f,h,g,m,i.tooltip,p,v)(e)},t.animation=v,t.interaction=p,t.limitInPlot=h,t.theme=g;var r=n(1),o=n(0),i=n(22),a=n(30),l=n(7),c=n(600),s=n(601);function u(e){var t,n,r=e.chart,o=e.options,i=o.data,u=o.xField,d=o.yField,f=o.color,p=o.barStyle,h=o.widthRatio,g=o.legend,v=o.layout,m=(0,s.transformData)(u,d,c.SERIES_FIELD_KEY,i,(0,s.isHorizontal)(v));g?r.legend(c.SERIES_FIELD_KEY,g):!1===g&&r.legend(!1);var y=m[0],b=m[1];(0,s.isHorizontal)(v)?((t=r.createView({region:{start:{x:0,y:0},end:{x:.5,y:1}},id:c.FIRST_AXES_VIEW})).coordinate().transpose().reflect("x"),(n=r.createView({region:{start:{x:.5,y:0},end:{x:1,y:1}},id:c.SECOND_AXES_VIEW})).coordinate().transpose(),t.data(y),n.data(b)):(t=r.createView({region:{start:{x:0,y:0},end:{x:1,y:.5}},id:c.FIRST_AXES_VIEW}),(n=r.createView({region:{start:{x:0,y:.5},end:{x:1,y:1}},id:c.SECOND_AXES_VIEW})).coordinate().reflect("y"),t.data(y),n.data(b));var x=(0,l.deepAssign)({},e,{chart:t,options:{widthRatio:h,xField:u,yField:d[0],seriesField:c.SERIES_FIELD_KEY,interval:{color:f,style:p}}});(0,a.interval)(x);var w=(0,l.deepAssign)({},e,{chart:n,options:{xField:u,yField:d[1],seriesField:c.SERIES_FIELD_KEY,widthRatio:h,interval:{color:f,style:p}}});return(0,a.interval)(w),e}function d(e){var t,n,r,a=e.options,s=e.chart,u=a.xAxis,d=a.yAxis,f=a.xField,p=a.yField,h=(0,l.findViewById)(s,c.FIRST_AXES_VIEW),g=(0,l.findViewById)(s,c.SECOND_AXES_VIEW),v={};return(0,o.keys)((null===a||void 0===a?void 0:a.meta)||{}).map((function(e){(0,o.get)(null===a||void 0===a?void 0:a.meta,[e,"alias"])&&(v[e]=a.meta[e].alias)})),s.scale(((t={})[c.SERIES_FIELD_KEY]={sync:!0,formatter:function(e){return(0,o.get)(v,e,e)}},t)),(0,i.scale)(((n={})[f]=u,n[p[0]]=d[p[0]],n))((0,l.deepAssign)({},e,{chart:h})),(0,i.scale)(((r={})[f]=u,r[p[1]]=d[p[1]],r))((0,l.deepAssign)({},e,{chart:g})),e}function f(e){var t=e.chart,n=e.options,o=n.xAxis,i=n.yAxis,a=n.xField,u=n.yField,d=n.layout,f=(0,l.findViewById)(t,c.FIRST_AXES_VIEW),p=(0,l.findViewById)(t,c.SECOND_AXES_VIEW);return"bottom"===(null===o||void 0===o?void 0:o.position)?p.axis(a,(0,r.__assign)((0,r.__assign)({},o),{label:{formatter:function(){return""}}})):p.axis(a,!1),!1===o?f.axis(a,!1):f.axis(a,(0,r.__assign)({position:(0,s.isHorizontal)(d)?"top":"bottom"},o)),!1===i?(f.axis(u[0],!1),p.axis(u[1],!1)):(f.axis(u[0],i[u[0]]),p.axis(u[1],i[u[1]])),t.__axisPosition={position:f.getOptions().axes[a].position,layout:d},e}function p(e){var t=e.chart;return(0,i.interaction)((0,l.deepAssign)({},e,{chart:(0,l.findViewById)(t,c.FIRST_AXES_VIEW)})),(0,i.interaction)((0,l.deepAssign)({},e,{chart:(0,l.findViewById)(t,c.SECOND_AXES_VIEW)})),e}function h(e){var t=e.chart,n=e.options,r=n.yField,o=n.yAxis;return(0,i.limitInPlot)((0,l.deepAssign)({},e,{chart:(0,l.findViewById)(t,c.FIRST_AXES_VIEW),options:{yAxis:o[r[0]]}})),(0,i.limitInPlot)((0,l.deepAssign)({},e,{chart:(0,l.findViewById)(t,c.SECOND_AXES_VIEW),options:{yAxis:o[r[1]]}})),e}function g(e){var t=e.chart;return(0,i.theme)((0,l.deepAssign)({},e,{chart:(0,l.findViewById)(t,c.FIRST_AXES_VIEW)})),(0,i.theme)((0,l.deepAssign)({},e,{chart:(0,l.findViewById)(t,c.SECOND_AXES_VIEW)})),e}function v(e){var t=e.chart;return(0,i.animation)((0,l.deepAssign)({},e,{chart:(0,l.findViewById)(t,c.FIRST_AXES_VIEW)})),(0,i.animation)((0,l.deepAssign)({},e,{chart:(0,l.findViewById)(t,c.SECOND_AXES_VIEW)})),e}function m(e){var t,n,o=this,i=e.chart,a=e.options,u=a.label,d=a.yField,f=a.layout,p=(0,l.findViewById)(i,c.FIRST_AXES_VIEW),h=(0,l.findViewById)(i,c.SECOND_AXES_VIEW),g=(0,l.findGeometry)(p,"interval"),v=(0,l.findGeometry)(h,"interval");if(u){var m=u.callback,y=(0,r.__rest)(u,["callback"]);y.position||(y.position="middle"),void 0===y.offset&&(y.offset=2);var b=(0,r.__assign)({},y);if((0,s.isHorizontal)(f)){var x=(null===(t=b.style)||void 0===t?void 0:t.textAlign)||("middle"===y.position?"center":"left");y.style=(0,l.deepAssign)({},y.style,{textAlign:x}),b.style=(0,l.deepAssign)({},b.style,{textAlign:{left:"right",right:"left",center:"center"}[x]})}else{var w={top:"bottom",bottom:"top",middle:"middle"};"string"===typeof y.position?y.position=w[y.position]:"function"===typeof y.position&&(y.position=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return w[y.position.apply(o,e)]});var S=(null===(n=b.style)||void 0===n?void 0:n.textBaseline)||"bottom";b.style=(0,l.deepAssign)({},b.style,{textBaseline:S}),y.style=(0,l.deepAssign)({},y.style,{textBaseline:{top:"bottom",bottom:"top",middle:"middle"}[S]})}g.label({fields:[d[0]],callback:m,cfg:(0,l.transformLabel)(b)}),v.label({fields:[d[1]],callback:m,cfg:(0,l.transformLabel)(y)})}else g.label(!1),v.label(!1);return e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Treemap=void 0;var r=n(1),o=n(19),i=n(1285),a=n(1286),l=n(602);n(1287),t.Treemap=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="treemap",t}return(0,r.__extends)(t,e),t.getDefaultOptions=function(){return a.DEFAULT_OPTIONS},t.prototype.changeData=function(e){var t=this.options,n=t.colorField,r=t.interactions,o=t.hierarchyConfig;this.updateOption({data:e});var i=(0,l.transformData)({data:e,colorField:n,enableDrillDown:(0,l.enableInteraction)(r,"treemap-drill-down"),hierarchyConfig:o});this.chart.changeData(i),(0,l.resetDrillDown)(this.chart)},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return i.adaptor},t}(o.Plot)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.adaptor=function(e){return(0,c.flow)(d,a.theme,(0,l.pattern)("rectStyle"),f,p,a.legend,a.tooltip,g,a.animation,(0,a.annotation)())(e)},t.interaction=g;var r=n(1),o=n(0),i=n(549),a=n(22),l=n(121),c=n(7),s=n(120),u=n(602);function d(e){var t=e.options.colorField;return(0,c.deepAssign)({options:{rawFields:["value"],tooltip:{fields:["name","value",t,"path"],formatter:function(e){return{name:e.name,value:e.value}}}}},e)}function f(e){var t=e.chart,n=e.options,r=n.color,o=n.colorField,a=n.rectStyle,l=n.hierarchyConfig,s=n.rawFields,d=(0,u.transformData)({data:n.data,colorField:n.colorField,enableDrillDown:(0,u.enableDrillInteraction)(n),hierarchyConfig:l});return t.data(d),(0,i.polygon)((0,c.deepAssign)({},e,{options:{xField:"x",yField:"y",seriesField:o,rawFields:s,polygon:{color:r,style:a}}})),t.coordinate().reflect("y"),e}function p(e){return e.chart.axis(!1),e}function h(e){var t=e.drilldown,n=e.interactions,o=void 0===n?[]:n;return(0,u.enableDrillInteraction)(e)?(0,c.deepAssign)({},e,{interactions:(0,r.__spreadArrays)(o,[{type:"drill-down",cfg:{drillDownConfig:t,transformData:u.transformData}}])}):e}function g(e){var t=e.chart,n=e.options,r=n.interactions,i=n.drilldown;(0,a.interaction)({chart:t,options:h(n)});var l=(0,u.findInteraction)(r,"view-zoom");return l&&(!1!==l.enable?t.getCanvas().on("mousewheel",(function(e){e.preventDefault()})):t.getCanvas().off("mousewheel")),(0,u.enableDrillInteraction)(n)&&(t.appendPadding=(0,s.getAdjustAppendPadding)(t.appendPadding,(0,o.get)(i,["breadCrumb","position"]))),e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_OPTIONS=void 0,t.DEFAULT_OPTIONS={colorField:"name",rectStyle:{lineWidth:1,stroke:"#fff"},hierarchyConfig:{tile:"treemapSquarify"},label:{fields:["name"],layout:{type:"limit-in-shape"}},tooltip:{showMarkers:!1,showTitle:!1},drilldown:{enabled:!1,breadCrumb:{position:"bottom-left",rootText:"\u521d\u59cb",dividerText:"/",textStyle:{fontSize:12,fill:"rgba(0, 0, 0, 0.65)",cursor:"pointer"},activeTextStyle:{fill:"#87B5FF"}}}}},function(e,t,n){"use strict";n(568),n(313)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Sankey=void 0;var r=n(1),o=n(0),i=n(19),a=n(7),l=n(1289),c=n(603),s=n(316);n(1295),t.Sankey=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="sankey",t}return(0,r.__extends)(t,e),t.getDefaultOptions=function(){return{appendPadding:8,syncViewPadding:!0,nodeStyle:{opacity:1,fillOpacity:1,lineWidth:1},edgeStyle:{opacity:.3,lineWidth:0},edgeState:{active:{style:{opacity:.8,lineWidth:0}}},label:{formatter:function(e){return e.name},callback:function(e){var t=1===e[1];return{style:{fill:"#545454",textAlign:t?"end":"start"},offsetX:t?-8:8}},layout:[{type:"hide-overlap"}]},tooltip:{showTitle:!1,showMarkers:!1,shared:!1,showContent:function(e){return!(0,o.get)(e,[0,"data","isNode"])},formatter:function(e){return{name:e.source+" -> "+e.target,value:e.value}}},nodeWidthRatio:.008,nodePaddingRatio:.01,animation:{appear:{animation:"wave-in"},enter:{animation:"wave-in"}}}},t.prototype.changeData=function(e){this.updateOption({data:e});var t=(0,c.transformToViewsData)(this.options,this.chart.width,this.chart.height),n=t.nodes,r=t.edges,o=(0,a.findViewById)(this.chart,s.NODES_VIEW_ID),i=(0,a.findViewById)(this.chart,s.EDGES_VIEW_ID);o.changeData(n),i.changeData(r)},t.prototype.getSchemaAdaptor=function(){return l.adaptor},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t}(i.Plot)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.adaptor=function(e){return(0,a.flow)(u,d,i.interaction,p,f,i.theme)(e)},t.animation=f,t.nodeDraggable=p;var r=n(1),o=n(0),i=n(22),a=n(7),l=n(30),c=n(603),s=n(316);function u(e){var t=e.options.rawFields,n=void 0===t?[]:t;return(0,a.deepAssign)({},{options:{tooltip:{fields:(0,o.uniq)((0,r.__spreadArrays)(["name","source","target","value","isNode"],n))},label:{fields:(0,o.uniq)((0,r.__spreadArrays)(["x","name"],n))}}},e)}function d(e){var t=e.chart,n=e.options,r=n.color,o=n.nodeStyle,i=n.edgeStyle,a=n.label,u=n.tooltip,d=n.nodeState,f=n.edgeState;t.legend(!1),t.tooltip(u),t.axis(!1),t.coordinate().reflect("y");var p=(0,c.transformToViewsData)(n,t.width,t.height),h=p.nodes,g=p.edges,v=t.createView({id:s.EDGES_VIEW_ID});v.data(g),(0,l.edge)({chart:v,options:{xField:s.X_FIELD,yField:s.Y_FIELD,seriesField:s.COLOR_FIELD,edge:{color:r,style:i,shape:"arc"},tooltip:u,state:f}});var m=t.createView({id:s.NODES_VIEW_ID});return m.data(h),(0,l.polygon)({chart:m,options:{xField:s.X_FIELD,yField:s.Y_FIELD,seriesField:s.COLOR_FIELD,polygon:{color:r,style:o},label:a,tooltip:u,state:d}}),t.interaction("element-active"),t.scale({x:{sync:!0,nice:!0,min:0,max:1,minLimit:0,maxLimit:1},y:{sync:!0,nice:!0,min:0,max:1,minLimit:0,maxLimit:1},name:{sync:"color",type:"cat"}}),e}function f(e){var t=e.chart,n=e.options.animation;return"boolean"===typeof n?t.animate(n):t.animate(!0),(0,r.__spreadArrays)(t.views[0].geometries,t.views[1].geometries).forEach((function(e){e.animate(n)})),e}function p(e){var t=e.chart,n="sankey-node-draggable";return e.options.nodeDraggable?t.interaction(n):t.removeInteraction(n),e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getDefaultOptions=c,t.getNodeAlignFunction=l,t.sankeyLayout=function(e,t){var n=c(e),r=n.nodeId,i=n.nodeSort,a=n.nodeAlign,s=n.nodeWidth,u=n.nodePadding,d=n.nodeDepth,f=(0,o.sankey)().nodeSort(i).nodeWidth(s).nodePadding(u).nodeDepth(d).nodeAlign(l(a)).extent([[0,0],[1,1]]).nodeId(r)(t);return f.nodes.forEach((function(e){var t=e.x0,n=e.x1,r=e.y0,o=e.y1;e.x=[t,n,n,t],e.y=[r,r,o,o]})),f.links.forEach((function(e){var t=e.source,n=e.target,r=t.x1,o=n.x0;e.x=[r,r,o,o];var i=e.width/2;e.y=[e.y0+i,e.y0-i,e.y1+i,e.y1-i]})),f};var r=n(0),o=n(1291),i={left:o.left,right:o.right,center:o.center,justify:o.justify},a={nodeId:function(e){return e.index},nodeAlign:"justify",nodeWidth:.008,nodePadding:.03,nodeSort:void 0};function l(e){return((0,r.isString)(e)?i[e]:(0,r.isFunction)(e)?e:null)||o.justify}function c(e){return(0,r.assign)({},a,e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"center",{enumerable:!0,get:function(){return o.center}}),Object.defineProperty(t,"justify",{enumerable:!0,get:function(){return o.justify}}),Object.defineProperty(t,"left",{enumerable:!0,get:function(){return o.left}}),Object.defineProperty(t,"right",{enumerable:!0,get:function(){return o.right}}),Object.defineProperty(t,"sankey",{enumerable:!0,get:function(){return r.Sankey}});var r=n(1292),o=n(604)},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.Sankey=function(){var e,t,n,r,v=0,m=0,y=1,b=1,x=24,w=8,S=d,O=i.justify,_=f,C=p,E=6;function P(i){var l={nodes:_(i),links:C(i)};return function(e){var t=e.nodes,n=e.links;t.forEach((function(e,t){e.index=t,e.sourceLinks=[],e.targetLinks=[]}));var i=new Map(t.map((function(e){return[S(e),e]})));if(n.forEach((function(e,t){e.index=t;var n=e.source,r=e.target;"object"!==(0,o.default)(n)&&(n=e.source=h(i,n)),"object"!==(0,o.default)(r)&&(r=e.target=h(i,r)),n.sourceLinks.push(e),r.targetLinks.push(e)})),null!=r)for(var a=0,l=t;a<l.length;a++){var c=l[a],s=c.sourceLinks,u=c.targetLinks;s.sort(r),u.sort(r)}}(l),function(e){for(var t=e.nodes,n=0,r=t;n<r.length;n++){var o=r[n];o.value=void 0===o.fixedValue?Math.max((0,a.sumBy)(o.sourceLinks,u),(0,a.sumBy)(o.targetLinks,u)):o.fixedValue}}(l),function(e){for(var n=e.nodes,r=n.length,o=new Set(n),i=new Set,l=0;o.size;){if(o.forEach((function(e){e.depth=l;for(var t=0,n=e.sourceLinks;t<n.length;t++){var r=n[t].target;i.add(r)}})),++l>r)throw new Error("circular link");o=i,i=new Set}if(t)for(var c=Math.max((0,a.maxValueBy)(n,(function(e){return e.depth}))+1,0),s=void 0,u=0;u<n.length;u++)(s=n[u]).depth=t.call(null,s,c)}(l),function(e){for(var t=e.nodes,n=t.length,r=new Set(t),o=new Set,i=0;r.size;){if(r.forEach((function(e){e.height=i;for(var t=0,n=e.targetLinks;t<n.length;t++){var r=n[t].source;o.add(r)}})),++i>n)throw new Error("circular link");r=o,o=new Set}}(l),function(t){var r=function(e){for(var t=e.nodes,r=Math.max((0,a.maxValueBy)(t,(function(e){return e.depth}))+1,0),o=(y-v-x)/(r-1),i=new Array(r).fill(0).map((function(){return[]})),l=0,c=t;l<c.length;l++){var s=c[l],u=Math.max(0,Math.min(r-1,Math.floor(O.call(null,s,r))));s.layer=u,s.x0=v+u*o,s.x1=s.x0+x,i[u]?i[u].push(s):i[u]=[s]}if(n)for(var d=0,f=i;d<f.length;d++)f[d].sort(n);return i}(t);e=Math.min(w,(b-m)/((0,a.maxValueBy)(r,(function(e){return e.length}))-1)),function(t){for(var n=(0,a.minValueBy)(t,(function(t){return(b-m-(t.length-1)*e)/(0,a.sumBy)(t,u)})),r=0,o=t;r<o.length;r++){for(var i=o[r],l=m,c=0,s=i;c<s.length;c++){(g=s[c]).y0=l,g.y1=l+g.value*n,l=g.y1+e;for(var d=0,f=g.sourceLinks;d<f.length;d++){var p=f[d];p.width=p.value*n}}l=(b-l+e)/(i.length+1);for(var h=0;h<i.length;++h){var g;(g=i[h]).y0+=l*(h+1),g.y1+=l*(h+1)}L(i)}}(r);for(var o=0;o<E;++o){var i=Math.pow(.99,o),l=Math.max(1-i,(o+1)/E);k(r,i,l),M(r,i,l)}}(l),g(l),l}function M(e,t,r){for(var o=1,i=e.length;o<i;++o){for(var a=e[o],l=0,c=a;l<c.length;l++){for(var u=c[l],d=0,f=0,p=0,h=u.targetLinks;p<h.length;p++){var g=h[p],v=g.source,m=g.value*(u.layer-v.layer);d+=R(v,u)*m,f+=m}if(f>0){var y=(d/f-u.y0)*t;u.y0+=y,u.y1+=y,j(u)}}void 0===n&&a.sort(s),a.length&&A(a,r)}}function k(e,t,r){for(var o=e.length-2;o>=0;--o){for(var i=e[o],a=0,l=i;a<l.length;a++){for(var c=l[a],u=0,d=0,f=0,p=c.sourceLinks;f<p.length;f++){var h=p[f],g=h.target,v=h.value*(g.layer-c.layer);u+=D(c,g)*v,d+=v}if(d>0){var m=(u/d-c.y0)*t;c.y0+=m,c.y1+=m,j(c)}}void 0===n&&i.sort(s),i.length&&A(i,r)}}function A(t,n){var r=t.length>>1,o=t[r];T(t,o.y0-e,r-1,n),I(t,o.y1+e,r+1,n),T(t,b,t.length-1,n),I(t,m,0,n)}function I(t,n,r,o){for(;r<t.length;++r){var i=t[r],a=(n-i.y0)*o;a>1e-6&&(i.y0+=a,i.y1+=a),n=i.y1+e}}function T(t,n,r,o){for(;r>=0;--r){var i=t[r],a=(i.y1-n)*o;a>1e-6&&(i.y0-=a,i.y1-=a),n=i.y0-e}}function j(e){var t=e.sourceLinks,n=e.targetLinks;if(void 0===r){for(var o=0,i=n;o<i.length;o++)i[o].source.sourceLinks.sort(c);for(var a=0,s=t;a<s.length;a++)s[a].target.targetLinks.sort(l)}}function L(e){if(void 0===r)for(var t=0,n=e;t<n.length;t++){var o=n[t],i=o.sourceLinks,a=o.targetLinks;i.sort(c),a.sort(l)}}function R(t,n){for(var r=t.y0-(t.sourceLinks.length-1)*e/2,o=0,i=t.sourceLinks;o<i.length;o++){var a=i[o],l=a.target,c=a.width;if(l===n)break;r+=c+e}for(var s=0,u=n.targetLinks;s<u.length;s++){var d=u[s];if(l=d.source,c=d.width,l===t)break;r-=c}return r}function D(t,n){for(var r=n.y0-(n.targetLinks.length-1)*e/2,o=0,i=n.targetLinks;o<i.length;o++){var a=i[o],l=a.source,c=a.width;if(l===t)break;r+=c+e}for(var s=0,u=t.sourceLinks;s<u.length;s++){var d=u[s];if(l=d.target,c=d.width,l===n)break;r-=c}return r}return P.update=function(e){return g(e),e},P.nodeId=function(e){return arguments.length?(S="function"===typeof e?e:(0,a.constant)(e),P):S},P.nodeAlign=function(e){return arguments.length?(O="function"===typeof e?e:(0,a.constant)(e),P):O},P.nodeDepth=function(e){return arguments.length?(t=e,P):t},P.nodeSort=function(e){return arguments.length?(n=e,P):n},P.nodeWidth=function(e){return arguments.length?(x=+e,P):x},P.nodePadding=function(t){return arguments.length?(w=e=+t,P):w},P.nodes=function(e){return arguments.length?(_="function"===typeof e?e:(0,a.constant)(e),P):_},P.links=function(e){return arguments.length?(C="function"===typeof e?e:(0,a.constant)(e),P):C},P.linkSort=function(e){return arguments.length?(r=e,P):r},P.size=function(e){return arguments.length?(v=m=0,y=+e[0],b=+e[1],P):[y-v,b-m]},P.extent=function(e){return arguments.length?(v=+e[0][0],y=+e[1][0],m=+e[0][1],b=+e[1][1],P):[[v,m],[y,b]]},P.iterations=function(e){return arguments.length?(E=+e,P):E},P};var o=r(n(6)),i=n(604),a=n(1293);function l(e,t){return s(e.source,t.source)||e.index-t.index}function c(e,t){return s(e.target,t.target)||e.index-t.index}function s(e,t){return e.y0-t.y0}function u(e){return e.value}function d(e){return e.index}function f(e){return e.nodes}function p(e){return e.links}function h(e,t){var n=e.get(t);if(!n)throw new Error("missing: "+t);return n}function g(e){for(var t=0,n=e.nodes;t<n.length;t++){for(var r=n[t],o=r.y0,i=o,a=0,l=r.sourceLinks;a<l.length;a++)(u=l[a]).y0=o+u.width/2,o+=u.width;for(var c=0,s=r.targetLinks;c<s.length;c++){var u;(u=s[c]).y1=i+u.width/2,i+=u.width}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.constant=function(e){return function(){return e}},t.maxValueBy=function(e,t){for(var n=-1/0,r=0;r<e.length;r++)n=Math.max(t(e[r]),n);return n},t.minValueBy=function(e,t){for(var n=1/0,r=0;r<e.length;r++)n=Math.min(t(e[r]),n);return n},t.sumBy=function(e,t){for(var n=0,r=0;r<e.length;r++)n+=t(e[r]);return n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.cutoffCircle=function(e,t,n){if(!(0,r.isArray)(e))return[];var a=[],l=o(e,t,n),c=i(e,l,t,n),s={};function u(e){s[e]=1,l.forEach((function(t){if(0!=c[e][t])if(1==s[t])a.push(e+"_"+t);else{if(-1==s[t])return;u(t)}})),s[e]=-1}return l.forEach((function(e){s[e]=0})),l.forEach((function(e){-1!=s[e]&&u(e)})),0!==a.length&&console.warn("sankey data contains circle, "+a.length+" records removed.",a),e.filter((function(e){return a.findIndex((function(r){return r===e[t]+"_"+e[n]}))<0}))},t.getMatrix=i,t.getNodes=o;var r=n(0);function o(e,t,n){var r=[];return e.forEach((function(e){var o=e[t],i=e[n];r.includes(o)||r.push(o),r.includes(i)||r.push(i)})),r}function i(e,t,n,r){var o={};return t.forEach((function(e){o[e]={},t.forEach((function(t){o[e][t]=0}))})),e.forEach((function(e){o[e[n]][e[r]]=1})),o}},function(e,t,n){"use strict";n(1296)},function(e,t,n){"use strict";var r=n(14),o=n(1297);(0,r.registerAction)("sankey-node-drag",o.SankeyNodeDragAction),(0,r.registerInteraction)("sankey-node-draggable",{showEnable:[{trigger:"polygon:mouseenter",action:"cursor:pointer"},{trigger:"polygon:mouseleave",action:"cursor:default"}],start:[{trigger:"polygon:mousedown",action:"sankey-node-drag:start"}],processing:[{trigger:"plot:mousemove",action:"sankey-node-drag:translate"},{isEnable:function(e){return e.isDragging},trigger:"plot:mousemove",action:"cursor:move"}],end:[{trigger:"plot:mouseup",action:"sankey-node-drag:end"}]})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SankeyNodeDragAction=void 0;var r=n(1),o=n(14),i=n(0),a=n(7),l=n(316);t.SankeyNodeDragAction=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isDragging=!1,t}return(0,r.__extends)(t,e),t.prototype.isNodeElement=function(){var e=(0,i.get)(this.context,"event.target");if(e){var t=e.get("element");return t&&t.getModel().data.isNode}return!1},t.prototype.getNodeView=function(){return(0,a.findViewById)(this.context.view,l.NODES_VIEW_ID)},t.prototype.getEdgeView=function(){return(0,a.findViewById)(this.context.view,l.EDGES_VIEW_ID)},t.prototype.getCurrentDatumIdx=function(e){return this.getNodeView().geometries[0].elements.indexOf(e)},t.prototype.start=function(){if(this.isNodeElement()){this.prevPoint={x:(0,i.get)(this.context,"event.x"),y:(0,i.get)(this.context,"event.y")};var e=this.context.event.target.get("element"),t=this.getCurrentDatumIdx(e);if(-1===t)return;this.currentElementIdx=t,this.context.isDragging=!0,this.isDragging=!0,this.prevNodeAnimateCfg=this.getNodeView().getOptions().animate,this.prevEdgeAnimateCfg=this.getEdgeView().getOptions().animate,this.getNodeView().animate(!1),this.getEdgeView().animate(!1)}},t.prototype.translate=function(){if(this.isDragging){var e=this.context.view,t={x:(0,i.get)(this.context,"event.x"),y:(0,i.get)(this.context,"event.y")},n=t.x-this.prevPoint.x,o=t.y-this.prevPoint.y,a=this.getNodeView(),l=a.geometries[0].elements[this.currentElementIdx];if(l&&l.getModel()){var c=l.getModel().data,s=a.getOptions().data,u=a.getCoordinate(),d={x:n/u.getWidth(),y:o/u.getHeight()},f=(0,r.__assign)((0,r.__assign)({},c),{x:c.x.map((function(e){return e+d.x})),y:c.y.map((function(e){return e+d.y}))}),p=(0,r.__spreadArrays)(s);p[this.currentElementIdx]=f,a.data(p);var h=c.name,g=this.getEdgeView(),v=g.getOptions().data;v.forEach((function(e){e.source===h&&(e.x[0]+=d.x,e.x[1]+=d.x,e.y[0]+=d.y,e.y[1]+=d.y),e.target===h&&(e.x[2]+=d.x,e.x[3]+=d.x,e.y[2]+=d.y,e.y[3]+=d.y)})),g.data(v),this.prevPoint=t,e.render(!0)}}},t.prototype.end=function(){this.isDragging=!1,this.context.isDragging=!1,this.prevPoint=null,this.currentElementIdx=null,this.getNodeView().animate(this.prevNodeAnimateCfg),this.getEdgeView().animate(this.prevEdgeAnimateCfg)},t}(o.Action)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Chord=void 0;var r=n(1),o=n(19),i=n(1299),a=n(605);t.Chord=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="chord",t}return(0,r.__extends)(t,e),t.getDefaultOptions=function(){return a.DEFAULT_OPTIONS},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return i.adaptor},t}(o.Plot)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.adaptor=function(e){return(0,a.flow)(i.theme,u,g,d,f,p,h,m,v,i.interaction,i.state,y)(e)};var r=n(1),o=n(0),i=n(22),a=n(7),l=n(30),c=n(1300),s=n(605);function u(e){var t=e.options,n=t.data,o=t.sourceField,i=t.targetField,l=t.weightField,s=t.nodePaddingRatio,u=t.nodeWidthRatio,d=t.rawFields,f=void 0===d?[]:d,p=(0,a.transformDataToNodeLinkData)(n,o,i,l),h=(0,c.chordLayout)({weight:!0,nodePaddingRatio:s,nodeWidthRatio:u},p),g=h.nodes,v=h.links,m=g.map((function(e){return(0,r.__assign)((0,r.__assign)({},(0,a.pick)(e,(0,r.__spreadArrays)(["id","x","y","name"],f))),{isNode:!0})})),y=v.map((function(e){return(0,r.__assign)((0,r.__assign)({source:e.source.name,target:e.target.name,name:e.source.name||e.target.name},(0,a.pick)(e,(0,r.__spreadArrays)(["x","y","value"],f))),{isNode:!1})}));return(0,r.__assign)((0,r.__assign)({},e),{ext:(0,r.__assign)((0,r.__assign)({},e.ext),{chordData:{nodesData:m,edgesData:y}})})}function d(e){var t;return e.chart.scale(((t={x:{sync:!0,nice:!0},y:{sync:!0,nice:!0,max:1}})[s.NODE_COLOR_FIELD]={sync:"color"},t[s.EDGE_COLOR_FIELD]={sync:"color"},t)),e}function f(e){return e.chart.axis(!1),e}function p(e){return e.chart.legend(!1),e}function h(e){var t=e.chart,n=e.options.tooltip;return t.tooltip(n),e}function g(e){return e.chart.coordinate("polar").reflect("y"),e}function v(e){var t=e.chart,n=e.options,r=e.ext.chordData.nodesData,o=n.nodeStyle,i=n.label,a=n.tooltip,c=t.createView();return c.data(r),(0,l.polygon)({chart:c,options:{xField:s.X_FIELD,yField:s.Y_FIELD,seriesField:s.NODE_COLOR_FIELD,polygon:{style:o},label:i,tooltip:a}}),e}function m(e){var t=e.chart,n=e.options,r=e.ext.chordData.edgesData,o=n.edgeStyle,i=n.tooltip,a=t.createView();a.data(r);var c={xField:s.X_FIELD,yField:s.Y_FIELD,seriesField:s.EDGE_COLOR_FIELD,edge:{style:o,shape:"arc"},tooltip:i};return(0,l.edge)({chart:a,options:c}),e}function y(e){var t=e.chart,n=e.options.animation;return"boolean"===typeof n?t.animate(n):t.animate(!0),(0,o.each)((0,a.getAllGeometriesRecursively)(t),(function(e){e.animate(n)})),e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.chordLayout=function(e,t){var n=i(e),o={},a=t.nodes,l=t.links;a.forEach((function(e){var t=n.id(e);o[t]=e})),function(e,t,n){(0,r.forIn)(e,(function(e,r){e.inEdges=t.filter((function(e){return""+n.target(e)===""+r})),e.outEdges=t.filter((function(e){return""+n.source(e)===""+r})),e.edges=e.outEdges.concat(e.inEdges),e.frequency=e.edges.length,e.value=0,e.inEdges.forEach((function(t){e.value+=n.targetWeight(t)})),e.outEdges.forEach((function(t){e.value+=n.sourceWeight(t)}))}))}(o,l,n),function(e,t){var n={weight:function(e,t){return t.value-e.value},frequency:function(e,t){return t.frequency-e.frequency},id:function(e,n){return(""+t.id(e)).localeCompare(""+t.id(n))}},o=n[t.sortBy];!o&&(0,r.isFunction)(t.sortBy)&&(o=t.sortBy),o&&e.sort(o)}(a,n);var c=function(e,t){var n=e.length;if(!n)throw new TypeError("Invalid nodes: it's empty!");if(t.weight){var r=t.nodePaddingRatio;if(r<0||r>=1)throw new TypeError("Invalid nodePaddingRatio: it must be in range [0, 1)!");var o=r/(2*n),i=t.nodeWidthRatio;if(i<=0||i>=1)throw new TypeError("Invalid nodeWidthRatio: it must be in range (0, 1)!");var a=0;e.forEach((function(e){a+=e.value})),e.forEach((function(e){e.weight=e.value/a,e.width=e.weight*(1-r),e.height=i})),e.forEach((function(n,r){for(var a=0,l=r-1;l>=0;l--)a+=e[l].width+2*o;var c=n.minX=o+a,s=n.maxX=n.minX+n.width,u=n.minY=t.y-i/2,d=n.maxY=u+i;n.x=[c,s,s,c],n.y=[u,u,d,d]}))}else{var l=1/n;e.forEach((function(e,n){e.x=(n+.5)*l,e.y=t.y}))}return e}(a,n),s=function(e,t,n){if(n.weight){var o={};(0,r.forIn)(e,(function(e,t){o[t]=e.value})),t.forEach((function(t){var r=n.source(t),i=n.target(t),a=e[r],l=e[i];if(a&&l){var c=o[r],s=n.sourceWeight(t),u=a.minX+(a.value-c)/a.value*a.width,d=u+s/a.value*a.width;o[r]-=s;var f=o[i],p=n.targetWeight(t),h=l.minX+(l.value-f)/l.value*l.width,g=h+p/l.value*l.width;o[i]-=p;var v=n.y;t.x=[u,d,h,g],t.y=[v,v,v,v],t.source=a,t.target=l}}))}else t.forEach((function(t){var r=e[n.source(t)],o=e[n.target(t)];r&&o&&(t.x=[r.x,o.x],t.y=[r.y,o.y],t.source=r,t.target=o)}));return t}(o,l,n);return{nodes:c,links:s}},t.getDefaultOptions=i;var r=n(0),o={y:0,nodeWidthRatio:.05,weight:!1,nodePaddingRatio:.1,id:function(e){return e.id},source:function(e){return e.source},target:function(e){return e.target},sourceWeight:function(e){return e.value||1},targetWeight:function(e){return e.value||1},sortBy:null};function i(e){return(0,r.assign)({},o,e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CirclePacking=void 0;var r=n(1),o=n(19),i=n(1302),a=n(606);n(1305),t.CirclePacking=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="circle-packing",t}return(0,r.__extends)(t,e),t.getDefaultOptions=function(){return a.DEFAULT_OPTIONS},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return i.adaptor},t.prototype.triggerResize=function(){this.chart.destroyed||(this.chart.forceFit(),this.chart.clear(),this.execAdaptor(),this.chart.render(!0))},t}(o.Plot)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.adaptor=function(e){return(0,l.flow)((0,a.pattern)("pointStyle"),d,f,a.theme,h,p,v,a.legend,g,y,a.animation,(0,a.annotation)())(e)},t.meta=h;var r=n(1),o=n(0),i=n(548),a=n(22),l=n(7),c=n(120),s=n(1303),u=n(606);function d(e){var t=e.chart,n=Math.min(t.viewBBox.width,t.viewBBox.height);return(0,l.deepAssign)({options:{size:function(e){return e.r*n}}},e)}function f(e){var t=e.options,n=e.chart,r=n.viewBBox,i=t.padding,a=t.appendPadding,l=t.drilldown,u=a;if(null===l||void 0===l?void 0:l.enabled){var d=(0,c.getAdjustAppendPadding)(n.appendPadding,(0,o.get)(l,["breadCrumb","position"]));u=(0,c.resolveAllPadding)([d,a])}var f=(0,s.resolvePaddingForCircle)(i,u,r).finalPadding;return n.padding=f,n.appendPadding=0,e}function p(e){var t=e.chart,n=e.options,o=t.padding,a=t.appendPadding,c=n.color,d=n.colorField,f=n.pointStyle,p=n.hierarchyConfig,h=n.sizeField,g=n.rawFields,v=void 0===g?[]:g,m=n.drilldown,y=(0,s.transformData)({data:n.data,hierarchyConfig:p,enableDrillDown:null===m||void 0===m?void 0:m.enabled,rawFields:v});t.data(y);var b=t.viewBBox,x=(0,s.resolvePaddingForCircle)(o,a,b).finalSize,w=function(e){return e.r*x};return h&&(w=function(e){return e[h]*x}),(0,i.point)((0,l.deepAssign)({},e,{options:{xField:"x",yField:"y",seriesField:d,sizeField:h,rawFields:(0,r.__spreadArrays)(u.RAW_FIELDS,v),point:{color:c,style:f,shape:"circle",size:w}}})),e}function h(e){return(0,l.flow)((0,a.scale)({},{x:{min:0,max:1,minLimit:0,maxLimit:1,nice:!0},y:{min:0,max:1,minLimit:0,maxLimit:1,nice:!0}}))(e)}function g(e){var t=e.chart,n=e.options.tooltip;if(!1===n)t.tooltip(!1);else{var i=n;(0,o.get)(n,"fields")||(i=(0,l.deepAssign)({},{customItems:function(e){return e.map((function(e){var n=(0,o.get)(t.getOptions(),"scales"),i=(0,o.get)(n,["name","formatter"],(function(e){return e})),a=(0,o.get)(n,["value","formatter"],(function(e){return e}));return(0,r.__assign)((0,r.__assign)({},e),{name:i(e.data.name),value:a(e.data.value)})}))}},i)),t.tooltip(i)}return e}function v(e){return e.chart.axis(!1),e}function m(e){var t=e.drilldown,n=e.interactions,o=void 0===n?[]:n;return(null===t||void 0===t?void 0:t.enabled)?(0,l.deepAssign)({},e,{interactions:(0,r.__spreadArrays)(o,[{type:"drill-down",cfg:{drillDownConfig:t,transformData:s.transformData,enableDrillDown:!0}}])}):e}function y(e){var t=e.chart,n=e.options;return(0,a.interaction)({chart:t,options:m(n)}),e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resolvePaddingForCircle=function(e,t,n){var r=(0,l.resolveAllPadding)([e,t]),o=r[0],i=r[1],a=r[2],c=r[3],s=n.width,u=n.height,d=s-(c+i),f=u-(o+a),p=Math.min(d,f),h=(d-p)/2,g=(f-p)/2;return{finalPadding:[o+g,i+h,a+g,c+h],finalSize:p<0?0:p}},t.transformData=function(e){var t=e.data,n=e.hierarchyConfig,l=e.rawFields,c=void 0===l?[]:l,s=e.enableDrillDown,u=(0,o.pack)(t,(0,r.__assign)((0,r.__assign)({},n),{field:"value",as:["x","y","r"]})),d=[];return u.forEach((function(e){for(var t,o=e.data.name,l=(0,r.__assign)({},e);l.depth>1;)o=(null===(t=l.parent.data)||void 0===t?void 0:t.name)+" / "+o,l=l.parent;if(s&&e.depth>2)return null;var u=(0,i.deepAssign)({},e.data,(0,r.__assign)((0,r.__assign)((0,r.__assign)({},(0,i.pick)(e.data,c)),{path:o}),e));u.ext=n,u[a.HIERARCHY_DATA_TRANSFORM_PARAMS]={hierarchyConfig:n,rawFields:c,enableDrillDown:s},d.push(u)})),d};var r=n(1),o=n(1304),i=n(7),a=n(202),l=n(120)},function(e,t,n){"use strict";var r=n(6);Object.defineProperty(t,"__esModule",{value:!0}),t.pack=function(e,t){var n,r=(t=(0,i.assign)({},c,t)).as;if(!(0,i.isArray)(r)||3!==r.length)throw new TypeError('Invalid as: it must be an array with 3 strings (e.g. [ "x", "y", "r" ])!');try{n=(0,a.getField)(t)}catch(f){console.warn(f)}var l=function(e){return o.pack().size(t.size).padding(t.padding)(o.hierarchy(e).sum((function(e){return e[n]})).sort(t.sort))}(e),s=r[0],u=r[1],d=r[2];return l.each((function(e){e[s]=e.x,e[u]=e.y,e[d]=e.r})),(0,a.getAllNodes)(l)};var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var c=i?Object.getOwnPropertyDescriptor(e,a):null;c&&(c.get||c.set)?Object.defineProperty(o,a,c):o[a]=e[a]}return o.default=e,n&&n.set(e,o),o}(n(194)),i=n(0),a=n(157);function l(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}var c={field:"value",as:["x","y","r"],sort:function(e,t){return t.value-e.value}}},function(e,t,n){"use strict";n(313)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.P=void 0;var r=n(1),o=n(7),i=n(19);t.P=function(e){function t(t,n,r,i){var a=e.call(this,t,(0,o.deepAssign)({},i,n))||this;return a.type="g2-plot",a.defaultOptions=i,a.adaptor=r,a}return(0,r.__extends)(t,e),t.prototype.getDefaultOptions=function(){return this.defaultOptions},t.prototype.getSchemaAdaptor=function(){return this.adaptor},t}(i.Plot)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.adaptor=function(e){return(0,s.flow)(a.animation,d,f,a.interaction,a.animation,a.theme,a.tooltip)(e)};var r=n(1),o=n(0),i=n(49),a=n(22),l=n(19),c=n(98),s=n(7),u=n(608);function d(e){var t=e.chart,n=e.options,a=n.views,l=n.legend;return(0,o.each)(a,(function(e){var n=e.region,a=e.data,l=e.meta,u=e.axes,d=e.coordinate,f=e.interactions,p=e.annotations,h=e.tooltip,g=e.geometries,v=t.createView({region:n});v.data(a);var m={};u&&(0,o.each)(u,(function(e,t){m[t]=(0,s.pick)(e,c.AXIS_META_CONFIG_KEYS)})),m=(0,s.deepAssign)({},l,m),v.scale(m),u?(0,o.each)(u,(function(e,t){v.axis(t,e)})):v.axis(!1),v.coordinate(d),(0,o.each)(g,(function(e){var t=(0,i.geometry)({chart:v,options:e}).ext,n=e.adjust;n&&t.geometry.adjust(n)})),(0,o.each)(f,(function(e){!1===e.enable?v.removeInteraction(e.type):v.interaction(e.type,e.cfg)})),(0,o.each)(p,(function(e){v.annotation()[e.type]((0,r.__assign)({},e))})),"boolean"===typeof e.animation?v.animate(!1):(v.animate(!0),(0,o.each)(v.geometries,(function(t){t.animate(e.animation)}))),h&&(v.interaction("tooltip"),v.tooltip(h))})),l?(0,o.each)(l,(function(e,n){t.legend(n,e)})):t.legend(!1),t.tooltip(n.tooltip),e}function f(e){var t=e.chart,n=e.options.plots;return(0,o.each)(n,(function(e){var n=e.type,o=e.region,i=e.options,a=void 0===i?{}:i,c=a.tooltip,d=t.createView((0,r.__assign)({region:o},(0,s.pick)(a,l.PLOT_CONTAINER_OPTIONS)));c&&d.interaction("tooltip"),(0,u.execPlotAdaptor)(n,d,a)})),e}},function(e,t,n){"use strict";n(1309)},function(e,t,n){"use strict";var r=n(1),o=n(0),i=n(14),a=n(7),l=n(1310),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.__extends)(t,e),t.prototype.getAssociationItems=function(e,t){var n,r=this.context.event,i=t||{},c=i.linkField,s=i.dim,u=[];if(null===(n=r.data)||void 0===n?void 0:n.data){var d=r.data.data;(0,o.each)(e,(function(e){var t,n,r=c;if("x"===s?r=e.getXScale().field:"y"===s?r=null===(t=e.getYScales().find((function(e){return e.field===r})))||void 0===t?void 0:t.field:r||(r=null===(n=e.getGroupScales()[0])||void 0===n?void 0:n.field),r){var i=(0,o.map)((0,a.getAllElements)(e),(function(t){var n=!1,i=!1,a=(0,o.isArray)(d)?(0,o.get)(d[0],r):(0,o.get)(d,r);return(0,l.getElementValue)(t,r)===a?n=!0:i=!0,{element:t,view:e,active:n,inactive:i}}));u.push.apply(u,i)}}))}return u},t.prototype.showTooltip=function(e){var t=(0,a.getSiblingViews)(this.context.view),n=this.getAssociationItems(t,e);(0,o.each)(n,(function(e){if(e.active){var t=e.element.shape.getCanvasBBox();e.view.showTooltip({x:t.minX+t.width/2,y:t.minY+t.height/2})}}))},t.prototype.hideTooltip=function(){var e=(0,a.getSiblingViews)(this.context.view);(0,o.each)(e,(function(e){e.hideTooltip()}))},t.prototype.active=function(e){var t=(0,a.getViews)(this.context.view),n=this.getAssociationItems(t,e);(0,o.each)(n,(function(e){var t=e.active,n=e.element;t&&n.setState("active",!0)}))},t.prototype.selected=function(e){var t=(0,a.getViews)(this.context.view),n=this.getAssociationItems(t,e);(0,o.each)(n,(function(e){var t=e.active,n=e.element;t&&n.setState("selected",!0)}))},t.prototype.highlight=function(e){var t=(0,a.getViews)(this.context.view),n=this.getAssociationItems(t,e);(0,o.each)(n,(function(e){var t=e.inactive,n=e.element;t&&n.setState("inactive",!0)}))},t.prototype.reset=function(){var e=(0,a.getViews)(this.context.view);(0,o.each)(e,(function(e){(0,l.clearHighlight)(e)}))},t}(i.Action);(0,i.registerAction)("association",c),(0,i.registerInteraction)("association-active",{start:[{trigger:"element:mouseenter",action:"association:active"}],end:[{trigger:"element:mouseleave",action:"association:reset"}]}),(0,i.registerInteraction)("association-selected",{start:[{trigger:"element:mouseenter",action:"association:selected"}],end:[{trigger:"element:mouseleave",action:"association:reset"}]}),(0,i.registerInteraction)("association-highlight",{start:[{trigger:"element:mouseenter",action:"association:highlight"}],end:[{trigger:"element:mouseleave",action:"association:reset"}]}),(0,i.registerInteraction)("association-tooltip",{start:[{trigger:"element:mousemove",action:"association:showTooltip"}],end:[{trigger:"element:mouseleave",action:"association:hideTooltip"}]})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.clearHighlight=function(e){var t=(0,o.getAllElements)(e);(0,r.each)(t,(function(e){e.hasState("active")&&e.setState("active",!1),e.hasState("selected")&&e.setState("selected",!1),e.hasState("inactive")&&e.setState("inactive",!1)}))},t.getElementValue=function(e,t){var n=e.getModel().data;return(0,r.isArray)(n)?n[0][t]:n[t]};var r=n(0),o=n(7)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Facet=void 0;var r=n(1),o=n(19),i=n(1312),a=n(1314);t.Facet=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="area",t}return(0,r.__extends)(t,e),t.getDefaultOptions=function(){return a.DEFAULT_OPTIONS},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return i.adaptor},t}(o.Plot)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.adaptor=function(e){return(0,l.flow)(i.theme,u,d)(e)};var r=n(1),o=n(0),i=n(22),a=n(98),l=n(7),c=n(608),s=n(1313);function u(e){var t=e.chart,n=e.options,i=n.type,a=n.data,l=n.fields,u=n.eachView,d=(0,o.omit)(n,["type","data","fields","eachView","axes","meta","tooltip","coordinate","theme","legend","interactions","annotations"]);return t.data(a),t.facet(i,(0,r.__assign)((0,r.__assign)({},d),{fields:l,eachView:function(e,t){var n=u(e,t);if(n.geometries)(0,s.execViewAdaptor)(e,n);else{var r=n,o=r.options;o.tooltip&&e.interaction("tooltip"),(0,c.execPlotAdaptor)(r.type,e,o)}}})),e}function d(e){var t=e.chart,n=e.options,i=n.axes,c=n.meta,s=n.tooltip,u=n.coordinate,d=n.theme,f=n.legend,p=n.interactions,h=n.annotations,g={};return i&&(0,o.each)(i,(function(e,t){g[t]=(0,l.pick)(e,a.AXIS_META_CONFIG_KEYS)})),g=(0,l.deepAssign)({},c,g),t.scale(g),t.coordinate(u),i?(0,o.each)(i,(function(e,n){t.axis(n,e)})):t.axis(!1),s?(t.interaction("tooltip"),t.tooltip(s)):!1===s&&t.removeInteraction("tooltip"),t.legend(f),d&&t.theme(d),(0,o.each)(p,(function(e){!1===e.enable?t.removeInteraction(e.type):t.interaction(e.type,e.cfg)})),(0,o.each)(h,(function(e){t.annotation()[e.type]((0,r.__assign)({},e))})),e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.execViewAdaptor=function(e,t){var n=t.data,c=t.coordinate,s=t.interactions,u=t.annotations,d=t.animation,f=t.tooltip,p=t.axes,h=t.meta,g=t.geometries;n&&e.data(n);var v={};p&&(0,o.each)(p,(function(e,t){v[t]=(0,l.pick)(e,a.AXIS_META_CONFIG_KEYS)})),v=(0,l.deepAssign)({},h,v),e.scale(v),c&&e.coordinate(c),!1===p?e.axis(!1):(0,o.each)(p,(function(t,n){e.axis(n,t)})),(0,o.each)(g,(function(t){var n=(0,i.geometry)({chart:e,options:t}).ext,r=t.adjust;r&&n.geometry.adjust(r)})),(0,o.each)(s,(function(t){!1===t.enable?e.removeInteraction(t.type):e.interaction(t.type,t.cfg)})),(0,o.each)(u,(function(t){e.annotation()[t.type]((0,r.__assign)({},t))})),"boolean"===typeof d?e.animate(!1):(e.animate(!0),(0,o.each)(e.geometries,(function(e){e.animate(d)}))),f?(e.interaction("tooltip"),e.tooltip(f)):!1===f&&e.removeInteraction("tooltip")};var r=n(1),o=n(0),i=n(49),a=n(98),l=n(7)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_OPTIONS=void 0,t.DEFAULT_OPTIONS={title:{style:{fontSize:12,fill:"rgba(0,0,0,0.65)"}},rowTitle:{style:{fontSize:12,fill:"rgba(0,0,0,0.65)"}},columnTitle:{style:{fontSize:12,fill:"rgba(0,0,0,0.65)"}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Stage=t.Lab=void 0,t.notice=i;var r,o=n(607);function i(e,t){console.warn(e===r.DEV?"Plot '"+t+"' is in DEV stage, just give us issues.":e===r.BETA?"Plot '"+t+"' is in BETA stage, DO NOT use it in production env.":e===r.STABLE?"Plot '"+t+"' is in STABLE stage, import it by \"import { "+t+" } from '@antv/g2plot'\".":"invalid Stage type.")}!function(e){e.DEV="DEV",e.BETA="BETA",e.STABLE="STABLE"}(r||(t.Stage=r={})),t.Lab=function(){function e(){}return Object.defineProperty(e,"MultiView",{get:function(){return i(r.STABLE,"MultiView"),o.Mix},enumerable:!1,configurable:!0}),e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.adaptor=t.statistic=void 0;var r=n(1),o=n(0),i=n(34),a=n(43),l=n(511),c=n(15),s=n(317),u=n(609);function d(e){var t=e.chart,n=e.options,r=n.percent,i=n.range,d=n.radius,f=n.innerRadius,p=n.startAngle,h=n.endAngle,g=n.axis,v=n.indicator,m=n.gaugeStyle,y=n.type,b=n.meter,x=i.color,w=i.width;if(v){var S=u.getIndicatorData(r),O=t.createView({id:s.INDICATEOR_VIEW_ID});O.data(S),O.point().position(s.PERCENT+"*1").shape(v.shape||"gauge-indicator").customInfo({defaultColor:t.getTheme().defaultColor,indicator:v}),O.coordinate("polar",{startAngle:p,endAngle:h,radius:f*d}),O.axis(s.PERCENT,g),O.scale(s.PERCENT,c.pick(g,l.AXIS_META_CONFIG_KEYS))}var _=u.getRangeData(r,n.range),C=t.createView({id:s.RANGE_VIEW_ID});C.data(_);var E=o.isString(x)?[x,s.DEFAULT_COLOR]:x;return a.interval({chart:C,options:{xField:"1",yField:s.RANGE_VALUE,seriesField:s.RANGE_TYPE,rawFields:[s.PERCENT],isStack:!0,interval:{color:E,style:m,shape:"meter"===y?"meter-gauge":null},args:{zIndexReversed:!0},minColumnWidth:w,maxColumnWidth:w}}).ext.geometry.customInfo({meter:b}),C.coordinate("polar",{innerRadius:f,radius:d,startAngle:p,endAngle:h}).transpose(),e}function f(e){var t;return c.flow(i.scale(((t={range:{min:0,max:1,maxLimit:1,minLimit:0}})[s.PERCENT]={},t)))(e)}function p(e,t){var n=e.chart,o=e.options,i=o.statistic,a=o.percent;if(n.getController("annotation").clear(!0),i){var l=i.content,s=void 0;l&&(s=c.deepAssign({},{content:(100*a).toFixed(2)+"%",style:{opacity:.75,fontSize:"30px",lineHeight:1,textAlign:"center",color:"rgba(44,53,66,0.85)"}},l)),c.renderGaugeStatistic(n,{statistic:r.__assign(r.__assign({},i),{content:s})},{percent:a})}return t&&n.render(!0),e}function h(e){var t=e.chart;return t.legend(!1),t.tooltip(!1),e}t.statistic=p,t.adaptor=function(e){return c.flow(i.theme,i.animation,d,f,p,i.interaction,i.annotation(),h)(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1);n(14).registerShape("point","gauge-indicator",{draw:function(e,t){var n=e.customInfo,o=n.indicator,i=n.defaultColor,a=o,l=a.pointer,c=a.pin,s=t.addGroup(),u=this.parsePoint({x:0,y:0});return l&&s.addShape("line",{name:"pointer",attrs:r.__assign({x1:u.x,y1:u.y,x2:e.x,y2:e.y,stroke:i},l.style)}),c&&s.addShape("circle",{name:"pin",attrs:r.__assign({x:u.x,y:u.y,stroke:i},c.style)}),s}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(14),o=n(0);r.registerShape("interval","meter-gauge",{draw:function(e,t){var n=e.customInfo.meter,i=void 0===n?{}:n,a=i.steps,l=void 0===a?50:a,c=i.stepRatio,s=void 0===c?.5:c;l=l<1?1:l,s=o.clamp(s,0,1);var u=this.coordinate,d=u.startAngle,f=u.endAngle,p=0;s>0&&s<1&&(p=(f-d)/l/(s/(1-s)+1-1/l));for(var h=p/(1-s)*s,g=t.addGroup(),v=this.coordinate.getCenter(),m=this.coordinate.getRadius(),y=r.Util.getAngle(e,this.coordinate),b=y.startAngle,x=y.endAngle,w=b;w<x;){var S=void 0,O=(w-d)%(h+p);S=O<h?w+(h-O):(w+=h+p-O)+h;var _=r.Util.getSectorPath(v.x,v.y,m,w,Math.min(S,x),m*this.coordinate.innerRadius);g.addShape("path",{name:"meter-gauge",attrs:{path:_,fill:e.color,stroke:e.color,lineWidth:.5}}),w=S+p}return g}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.adaptor=t.slider=t.legend=t.limitInPlot=t.animation=t.theme=t.annotation=t.interaction=t.tooltip=t.axis=t.meta=t.color=t.transformOptions=void 0;var r=n(1),o=n(0),i=n(34),a=n(118),l=n(15),c=n(504),s=n(318),u=n(1320),d=n(1321),f=n(1322),p=n(610),h=n(611);function g(e){var t,n=e.options,r=n.geometryOptions,i=void 0===r?[]:r,a=n.xField,c=n.yField,u=o.every(i,(function(e){var t=e.geometry;return t===p.DualAxesGeometry.Line||void 0===t}));return l.deepAssign({},{options:{geometryOptions:[],meta:(t={},t[a]={type:"cat",sync:!0,range:u?[0,1]:void 0},t),tooltip:{showMarkers:u,showCrosshairs:u,shared:!0,crosshairs:{type:"x"}},interactions:u?[{type:"legend-visible-filter"}]:[{type:"legend-visible-filter"},{type:"active-region"}],legend:{position:"top-left"}}},e,{options:{yAxis:s.transformObjectToArray(c,n.yAxis),geometryOptions:[s.getGeometryOption(a,c[0],i[0]),s.getGeometryOption(a,c[1],i[1])],annotations:s.transformObjectToArray(c,n.annotations)}})}function v(e){var t,n,r=e.chart,o=e.options.geometryOptions,i={line:0,column:1};return[{type:null===(t=o[0])||void 0===t?void 0:t.geometry,id:h.LEFT_AXES_VIEW},{type:null===(n=o[1])||void 0===n?void 0:n.geometry,id:h.RIGHT_AXES_VIEW}].sort((function(e,t){return-i[e.type]+i[t.type]})).forEach((function(e){return r.createView({id:e.id})})),e}function m(e){var t=e.chart,n=e.options,o=n.xField,i=n.yField,l=n.geometryOptions,u=n.data,f=n.tooltip;return[r.__assign(r.__assign({},l[0]),{id:h.LEFT_AXES_VIEW,data:u[0],yField:i[0]}),r.__assign(r.__assign({},l[1]),{id:h.RIGHT_AXES_VIEW,data:u[1],yField:i[1]})].forEach((function(e){var n=e.id,i=e.data,l=e.yField,u=s.isColumn(e)&&e.isPercent,p=u?a.percent(i,l,o,l):i,h=c.findViewById(t,n).data(p),g=u?r.__assign({formatter:function(t){return{name:t[e.seriesField]||l,value:(100*Number(t[l])).toFixed(2)+"%"}}},f):f;d.drawSingleGeometry({chart:h,options:{xField:o,yField:l,tooltip:g,geometryOption:e}})})),e}function y(e){var t,n=e.chart,r=e.options.geometryOptions,i=(null===(t=n.getTheme())||void 0===t?void 0:t.colors10)||[],a=0;return n.once("beforepaint",(function(){o.each(r,(function(e,t){var r=c.findViewById(n,0===t?h.LEFT_AXES_VIEW:h.RIGHT_AXES_VIEW);if(!e.color){var l=r.getGroupScales(),s=o.get(l,[0,"values","length"],1),u=i.slice(a,a+s).concat(0===t?[]:i);r.geometries.forEach((function(t){e.seriesField?t.color(e.seriesField,u):t.color(u[0])})),a+=s}})),n.render(!0)})),e}function b(e){var t,n,r=e.chart,o=e.options,a=o.xAxis,s=o.yAxis,u=o.xField,d=o.yField;return i.scale(((t={})[u]=a,t[d[0]]=s[0],t))(l.deepAssign({},e,{chart:c.findViewById(r,h.LEFT_AXES_VIEW)})),i.scale(((n={})[u]=a,n[d[1]]=s[1],n))(l.deepAssign({},e,{chart:c.findViewById(r,h.RIGHT_AXES_VIEW)})),e}function x(e){var t=e.chart,n=e.options,r=c.findViewById(t,h.LEFT_AXES_VIEW),o=c.findViewById(t,h.RIGHT_AXES_VIEW),i=n.xField,a=n.yField,l=n.xAxis,u=n.yAxis;return t.axis(i,!1),t.axis(a[0],!1),t.axis(a[1],!1),r.axis(i,l),r.axis(a[0],s.getYAxisWithDefault(u[0],p.AxisType.Left)),o.axis(i,!1),o.axis(a[1],s.getYAxisWithDefault(u[1],p.AxisType.Right)),e}function w(e){var t=e.chart,n=e.options.tooltip,r=c.findViewById(t,h.LEFT_AXES_VIEW),o=c.findViewById(t,h.RIGHT_AXES_VIEW);return t.tooltip(n),r.tooltip({shared:!0}),o.tooltip({shared:!0}),e}function S(e){var t=e.chart;return i.interaction(l.deepAssign({},e,{chart:c.findViewById(t,h.LEFT_AXES_VIEW)})),i.interaction(l.deepAssign({},e,{chart:c.findViewById(t,h.RIGHT_AXES_VIEW)})),e}function O(e){var t=e.chart,n=e.options.annotations,r=o.get(n,[0]),a=o.get(n,[1]);return i.annotation(r)(l.deepAssign({},e,{chart:c.findViewById(t,h.LEFT_AXES_VIEW),options:{annotations:r}})),i.annotation(a)(l.deepAssign({},e,{chart:c.findViewById(t,h.RIGHT_AXES_VIEW),options:{annotations:a}})),e}function _(e){var t=e.chart;return i.theme(l.deepAssign({},e,{chart:c.findViewById(t,h.LEFT_AXES_VIEW)})),i.theme(l.deepAssign({},e,{chart:c.findViewById(t,h.RIGHT_AXES_VIEW)})),i.theme(e),e}function C(e){var t=e.chart;return i.animation(l.deepAssign({},e,{chart:c.findViewById(t,h.LEFT_AXES_VIEW)})),i.animation(l.deepAssign({},e,{chart:c.findViewById(t,h.RIGHT_AXES_VIEW)})),e}function E(e){var t=e.chart,n=e.options.yAxis;return i.limitInPlot(l.deepAssign({},e,{chart:c.findViewById(t,h.LEFT_AXES_VIEW),options:{yAxis:n[0]}})),i.limitInPlot(l.deepAssign({},e,{chart:c.findViewById(t,h.RIGHT_AXES_VIEW),options:{yAxis:n[1]}})),e}function P(e){var t=e.chart,n=e.options,r=n.legend,i=n.geometryOptions,a=n.yField,s=n.data,d=c.findViewById(t,h.LEFT_AXES_VIEW),f=c.findViewById(t,h.RIGHT_AXES_VIEW);if(!1===r)t.legend(!1);else if(o.isObject(r)&&!0===r.custom)t.legend(r);else{var p=o.get(i,[0,"legend"],r),g=o.get(i,[1,"legend"],r);t.once("beforepaint",(function(){var e=s[0].length?u.getViewLegendItems({view:d,geometryOption:i[0],yField:a[0],legend:p}):[],n=s[1].length?u.getViewLegendItems({view:f,geometryOption:i[1],yField:a[1],legend:g}):[];t.legend(l.deepAssign({},r,{custom:!0,items:e.concat(n)}))})),i[0].seriesField&&d.legend(i[0].seriesField,p),i[1].seriesField&&f.legend(i[1].seriesField,g),t.on("legend-item:click",(function(e){var n=o.get(e,"gEvent.delegateObject",{});if(n&&n.item){var r=n.item,i=r.value,l=r.isGeometry,s=r.viewId;if(l){if(o.findIndex(a,(function(e){return e===i}))>-1){var u=o.get(c.findViewById(t,s),"geometries");o.each(u,(function(e){e.changeVisible(!n.item.unchecked)}))}}else{var d=o.get(t.getController("legend"),"option.items",[]);o.each(t.views,(function(e){var n=e.getGroupScales();o.each(n,(function(t){t.values&&t.values.indexOf(i)>-1&&e.filter(t.field,(function(e){return!o.find(d,(function(t){return t.value===e})).unchecked}))})),t.render(!0)}))}}}))}return e}function M(e){var t=e.chart,n=e.options.slider,r=c.findViewById(t,h.LEFT_AXES_VIEW),i=c.findViewById(t,h.RIGHT_AXES_VIEW);return n&&(r.option("slider",n),r.on("slider:valuechanged",(function(e){var t=e.event,n=t.value,r=t.originValue;o.isEqual(n,r)||f.doSliderFilter(i,n)})),t.once("afterpaint",(function(){if(!o.isBoolean(n)){var e=n.start,t=n.end;(e||t)&&f.doSliderFilter(i,[e,t])}}))),e}t.transformOptions=g,t.color=y,t.meta=b,t.axis=x,t.tooltip=w,t.interaction=S,t.annotation=O,t.theme=_,t.animation=C,t.limitInPlot=E,t.legend=P,t.slider=M,t.adaptor=function(e){return l.flow(g,v,_,m,b,x,E,w,S,O,C,y,P,M)(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getViewLegendItems=void 0;var r=n(0),o=n(14),i=n(15),a=n(318);t.getViewLegendItems=function(e){var t=e.view,n=e.geometryOption,l=e.yField,c=e.legend,s=r.get(c,"marker"),u=i.findGeometry(t,a.isLine(n)?"line":"interval");if(!n.seriesField){var d=r.get(t,"options.scales."+l+".alias")||l,f=u.getAttribute("color"),p=t.getTheme().defaultColor;return f&&(p=o.Util.getMappingValue(f,d,r.get(f,["values",0],p))),[{value:l,name:d,marker:(r.isFunction(s)?s:!r.isEmpty(s)&&i.deepAssign({},{style:{stroke:p,fill:p}},s))||(a.isLine(n)?{symbol:function(e,t,n){return[["M",e-n,t],["L",e+n,t]]},style:{lineWidth:2,r:6,stroke:p}}:{symbol:"square",style:{fill:p}}),isGeometry:!0,viewId:t.id}]}var h=u.getGroupAttributes();return r.reduce(h,(function(e,n){var r=o.Util.getLegendItems(t,u,n,t.getTheme(),s);return e.concat(r)}),[])}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.drawSingleGeometry=void 0;var r=n(1),o=n(0),i=n(43),a=n(15),l=n(196),c=n(318);t.drawSingleGeometry=function(e){var t=e.options,n=e.chart,s=t.geometryOption,u=s.isStack,d=s.color,f=s.seriesField,p=s.groupField,h=s.isGroup,g=["xField","yField"];if(c.isLine(s)){i.line(a.deepAssign({},e,{options:r.__assign(r.__assign(r.__assign({},a.pick(t,g)),s),{line:{color:s.color,style:s.lineStyle}})})),i.point(a.deepAssign({},e,{options:r.__assign(r.__assign(r.__assign({},a.pick(t,g)),s),{point:s.point&&r.__assign({color:d,shape:"circle"},s.point)})}));var v=[];h&&v.push({type:"dodge",dodgeBy:p||f,customOffset:0}),u&&v.push({type:"stack"}),v.length&&o.each(n.geometries,(function(e){e.adjust(v)}))}return c.isColumn(s)&&l.adaptor(a.deepAssign({},e,{options:r.__assign(r.__assign(r.__assign({},a.pick(t,g)),s),{widthRatio:s.columnWidthRatio,interval:r.__assign(r.__assign({},a.pick(s,["color"])),{style:s.columnStyle})})})),e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.doSliderFilter=void 0;var r=n(0),o=n(15);t.doSliderFilter=function(e,t){var n=t[0],i=t[1],a=e.getOptions().data,l=e.getXScale(),c=r.size(a);if(l&&c){var s=r.valuesOfKey(a,l.field),u=s,d=r.size(u),f=Math.floor(n*(d-1)),p=Math.floor(i*(d-1));e.filter(l.field,(function(e){var t=u.indexOf(e);return!(t>-1)||o.isBetween(t,f,p)})),e.render(!0)}}},function(e,t,n){"use strict";var r=n(9),o=n.n(r),i=n(10),a=n.n(i),l=n(363),c=n.n(l),s=n(12),u=n.n(s),d=n(13),f=n.n(d),p=n(5),h=n.n(p),g=n(66),v=[1,1.2,1.5,2,2.2,2.4,2.5,3,4,5,6,7.5,8,10],m=12;function y(e){var t=1;if(0===(e=Math.abs(e)))return t;if(e<1){for(var n=0;e<1;)t/=10,e*=10,n++;return t.toString().length>m&&(t=parseFloat(t.toFixed(n))),t}for(;e>10;)t*=10,e/=10;return t}function b(e,t,n,r){for(var o=!1,i=v[e],a=e;a<v.length;a++)if(x({interval:v[a],tickCount:t,max:r,min:n})){i=v[a],o=!0;break}return o?i:10*b(0,t,n/10,r/10)}function x(e){var t=e.interval,n=e.tickCount,r=e.max,o=e.min;return Math.floor(o/t)*t+(n-1)*t>=r}function w(e){var t=e.toString(),n=t.indexOf("."),r=t.indexOf("e-"),o=r>=0?parseInt(t.substr(r+2),10):t.substr(n+1).length;return o>20&&(o=20),o}function S(e,t){return parseFloat(e.toFixed(t))}function O(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=h()(e);if(t){var o=h()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f()(this,n)}}Object(g.registerTickMethod)("linear-strict-tick-method",(function(e){var t=e||{},n=t.tickCount,r=t.tickInterval,o=e||{},i=o.min,a=o.max;i=isNaN(i)?0:i,a=isNaN(a)?0:a;var l=n&&n>=2?n:5,c=r||function(e){var t=e.tickCount,n=e.min,r=e.max;if(n===r)return 1*y(r);for(var o=(r-n)/(t-1),i=y(o),a=o/i,l=r/i,c=n/i,s=0,u=0;u<v.length;u++)if(a<=v[u]){s=u;break}var d=b(s,t,c,l),f=w(d)+w(i);return S(d*i,f)}({tickCount:l,max:a,min:i}),s=Math.floor(i/c)*c;if(r){var u=Math.abs(Math.ceil((a-s)/r))+1;l=Math.max(l,u)}for(var d=[],f=0,p=w(c);f<l;)d.push(S(s+f*c,p)),f++;return d}));var _=function(e){u()(n,e);var t=O(n);function n(e){var r;return o()(this,n),(r=t.call(this,e)).type="linear-strict",r}return a()(n,[{key:"initCfg",value:function(){c()(h()(n.prototype),"initCfg",this).call(this),this.tickMethod="linear-strict-tick-method"}},{key:"calculateTicks",value:function(){var e=this.nice;this.nice=!0;var t=c()(h()(n.prototype),"calculateTicks",this).call(this);return this.nice=e,t.length&&(this.min=t[0],this.max=t[t.length-1]),t}}]),n}(g.Linear);Object(g.getScale)("linear-strict")||Object(g.registerScale)("linear-strict",_)}])},e.exports=r(n(5043),n(7950))},5270:(e,t,n)=>{"use strict";var r=n(139),o={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,i,a,l,c,s,u=!1;t||(t={}),n=t.debug||!1;try{if(a=r(),l=document.createRange(),c=document.getSelection(),(s=document.createElement("span")).textContent=e,s.ariaHidden="true",s.style.all="unset",s.style.position="fixed",s.style.top=0,s.style.clip="rect(0, 0, 0, 0)",s.style.whiteSpace="pre",s.style.webkitUserSelect="text",s.style.MozUserSelect="text",s.style.msUserSelect="text",s.style.userSelect="text",s.addEventListener("copy",(function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),"undefined"===typeof r.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var i=o[t.format]||o.default;window.clipboardData.setData(i,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))})),document.body.appendChild(s),l.selectNodeContents(s),c.addRange(l),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");u=!0}catch(d){n&&console.error("unable to copy using execCommand: ",d),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),u=!0}catch(d){n&&console.error("unable to copy using clipboardData: ",d),n&&console.error("falling back to prompt"),i=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(i,e)}}finally{c&&("function"==typeof c.removeRange?c.removeRange(l):c.removeAllRanges()),s&&document.body.removeChild(s),a()}return u}},4488:function(e,t,n){e.exports=function(){var e=e||function(e,t){var r;if("undefined"!==typeof window&&window.crypto&&(r=window.crypto),"undefined"!==typeof self&&self.crypto&&(r=self.crypto),"undefined"!==typeof globalThis&&globalThis.crypto&&(r=globalThis.crypto),!r&&"undefined"!==typeof window&&window.msCrypto&&(r=window.msCrypto),!r&&"undefined"!==typeof n.g&&n.g.crypto&&(r=n.g.crypto),!r)try{r=n(477)}catch(v){}var o=function(){if(r){if("function"===typeof r.getRandomValues)try{return r.getRandomValues(new Uint32Array(1))[0]}catch(v){}if("function"===typeof r.randomBytes)try{return r.randomBytes(4).readInt32LE()}catch(v){}}throw new Error("Native crypto module could not be used to get secure random number.")},i=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),a={},l=a.lib={},c=l.Base={extend:function(e){var t=i(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},s=l.WordArray=c.extend({init:function(e,n){e=this.words=e||[],this.sigBytes=n!=t?n:4*e.length},toString:function(e){return(e||d).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,o=e.sigBytes;if(this.clamp(),r%4)for(var i=0;i<o;i++){var a=n[i>>>2]>>>24-i%4*8&255;t[r+i>>>2]|=a<<24-(r+i)%4*8}else for(var l=0;l<o;l+=4)t[r+l>>>2]=n[l>>>2];return this.sigBytes+=o,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=c.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],n=0;n<e;n+=4)t.push(o());return new s.init(t,e)}}),u=a.enc={},d=u.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o<n;o++){var i=t[o>>>2]>>>24-o%4*8&255;r.push((i>>>4).toString(16)),r.push((15&i).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n[r>>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new s.init(n,t/2)}},f=u.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o<n;o++){var i=t[o>>>2]>>>24-o%4*8&255;r.push(String.fromCharCode(i))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r++)n[r>>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new s.init(n,t)}},p=u.Utf8={stringify:function(e){try{return decodeURIComponent(escape(f.stringify(e)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(e){return f.parse(unescape(encodeURIComponent(e)))}},h=l.BufferedBlockAlgorithm=c.extend({reset:function(){this._data=new s.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=p.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n,r=this._data,o=r.words,i=r.sigBytes,a=this.blockSize,l=i/(4*a),c=(l=t?e.ceil(l):e.max((0|l)-this._minBufferSize,0))*a,u=e.min(4*c,i);if(c){for(var d=0;d<c;d+=a)this._doProcessBlock(o,d);n=o.splice(0,c),r.sigBytes-=u}return new s.init(n,u)},clone:function(){var e=c.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0}),g=(l.Hasher=h.extend({cfg:c.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){h.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new g.HMAC.init(e,n).finalize(t)}}}),a.algo={});return a}(Math);return e}()},4199:function(e,t,n){!function(t,r){var o;e.exports=(o=n(4488),function(e){var t=o,n=t.lib,r=n.WordArray,i=n.Hasher,a=t.algo,l=[];!function(){for(var t=0;t<64;t++)l[t]=4294967296*e.abs(e.sin(t+1))|0}();var c=a.MD5=i.extend({_doReset:function(){this._hash=new r.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var r=t+n,o=e[r];e[r]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}var i=this._hash.words,a=e[t+0],c=e[t+1],p=e[t+2],h=e[t+3],g=e[t+4],v=e[t+5],m=e[t+6],y=e[t+7],b=e[t+8],x=e[t+9],w=e[t+10],S=e[t+11],O=e[t+12],_=e[t+13],C=e[t+14],E=e[t+15],P=i[0],M=i[1],k=i[2],A=i[3];P=s(P,M,k,A,a,7,l[0]),A=s(A,P,M,k,c,12,l[1]),k=s(k,A,P,M,p,17,l[2]),M=s(M,k,A,P,h,22,l[3]),P=s(P,M,k,A,g,7,l[4]),A=s(A,P,M,k,v,12,l[5]),k=s(k,A,P,M,m,17,l[6]),M=s(M,k,A,P,y,22,l[7]),P=s(P,M,k,A,b,7,l[8]),A=s(A,P,M,k,x,12,l[9]),k=s(k,A,P,M,w,17,l[10]),M=s(M,k,A,P,S,22,l[11]),P=s(P,M,k,A,O,7,l[12]),A=s(A,P,M,k,_,12,l[13]),k=s(k,A,P,M,C,17,l[14]),P=u(P,M=s(M,k,A,P,E,22,l[15]),k,A,c,5,l[16]),A=u(A,P,M,k,m,9,l[17]),k=u(k,A,P,M,S,14,l[18]),M=u(M,k,A,P,a,20,l[19]),P=u(P,M,k,A,v,5,l[20]),A=u(A,P,M,k,w,9,l[21]),k=u(k,A,P,M,E,14,l[22]),M=u(M,k,A,P,g,20,l[23]),P=u(P,M,k,A,x,5,l[24]),A=u(A,P,M,k,C,9,l[25]),k=u(k,A,P,M,h,14,l[26]),M=u(M,k,A,P,b,20,l[27]),P=u(P,M,k,A,_,5,l[28]),A=u(A,P,M,k,p,9,l[29]),k=u(k,A,P,M,y,14,l[30]),P=d(P,M=u(M,k,A,P,O,20,l[31]),k,A,v,4,l[32]),A=d(A,P,M,k,b,11,l[33]),k=d(k,A,P,M,S,16,l[34]),M=d(M,k,A,P,C,23,l[35]),P=d(P,M,k,A,c,4,l[36]),A=d(A,P,M,k,g,11,l[37]),k=d(k,A,P,M,y,16,l[38]),M=d(M,k,A,P,w,23,l[39]),P=d(P,M,k,A,_,4,l[40]),A=d(A,P,M,k,a,11,l[41]),k=d(k,A,P,M,h,16,l[42]),M=d(M,k,A,P,m,23,l[43]),P=d(P,M,k,A,x,4,l[44]),A=d(A,P,M,k,O,11,l[45]),k=d(k,A,P,M,E,16,l[46]),P=f(P,M=d(M,k,A,P,p,23,l[47]),k,A,a,6,l[48]),A=f(A,P,M,k,y,10,l[49]),k=f(k,A,P,M,C,15,l[50]),M=f(M,k,A,P,v,21,l[51]),P=f(P,M,k,A,O,6,l[52]),A=f(A,P,M,k,h,10,l[53]),k=f(k,A,P,M,w,15,l[54]),M=f(M,k,A,P,c,21,l[55]),P=f(P,M,k,A,b,6,l[56]),A=f(A,P,M,k,E,10,l[57]),k=f(k,A,P,M,m,15,l[58]),M=f(M,k,A,P,_,21,l[59]),P=f(P,M,k,A,g,6,l[60]),A=f(A,P,M,k,S,10,l[61]),k=f(k,A,P,M,p,15,l[62]),M=f(M,k,A,P,x,21,l[63]),i[0]=i[0]+P|0,i[1]=i[1]+M|0,i[2]=i[2]+k|0,i[3]=i[3]+A|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,o=8*t.sigBytes;n[o>>>5]|=128<<24-o%32;var i=e.floor(r/4294967296),a=r;n[15+(o+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),n[14+(o+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),t.sigBytes=4*(n.length+1),this._process();for(var l=this._hash,c=l.words,s=0;s<4;s++){var u=c[s];c[s]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return l},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});function s(e,t,n,r,o,i,a){var l=e+(t&n|~t&r)+o+a;return(l<<i|l>>>32-i)+t}function u(e,t,n,r,o,i,a){var l=e+(t&r|n&~r)+o+a;return(l<<i|l>>>32-i)+t}function d(e,t,n,r,o,i,a){var l=e+(t^n^r)+o+a;return(l<<i|l>>>32-i)+t}function f(e,t,n,r,o,i,a){var l=e+(n^(t|~r))+o+a;return(l<<i|l>>>32-i)+t}t.MD5=i._createHelper(c),t.HmacMD5=i._createHmacHelper(c)}(Math),o.MD5)}()},446:function(e){e.exports=function(){"use strict";var e=1e3,t=6e4,n=36e5,r="millisecond",o="second",i="minute",a="hour",l="day",c="week",s="month",u="quarter",d="year",f="date",p="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,v={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},m=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},y={s:m,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),o=n%60;return(t<=0?"+":"-")+m(r,2,"0")+":"+m(o,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),o=t.clone().add(r,s),i=n-o<0,a=t.clone().add(r+(i?-1:1),s);return+(-(r+(n-o)/(i?o-a:a-o))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:s,y:d,w:c,d:l,D:f,h:a,m:i,s:o,ms:r,Q:u}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},b="en",x={};x[b]=v;var w="$isDayjsObject",S=function(e){return e instanceof E||!(!e||!e[w])},O=function e(t,n,r){var o;if(!t)return b;if("string"==typeof t){var i=t.toLowerCase();x[i]&&(o=i),n&&(x[i]=n,o=i);var a=t.split("-");if(!o&&a.length>1)return e(a[0])}else{var l=t.name;x[l]=t,o=l}return!r&&o&&(b=o),o||!r&&b},_=function(e,t){if(S(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new E(n)},C=y;C.l=O,C.i=S,C.w=function(e,t){return _(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function v(e){this.$L=O(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[w]=!0}var m=v.prototype;return m.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(C.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(h);if(r){var o=r[2]-1||0,i=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)):new Date(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)}}return new Date(t)}(e),this.init()},m.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},m.$utils=function(){return C},m.isValid=function(){return!(this.$d.toString()===p)},m.isSame=function(e,t){var n=_(e);return this.startOf(t)<=n&&n<=this.endOf(t)},m.isAfter=function(e,t){return _(e)<this.startOf(t)},m.isBefore=function(e,t){return this.endOf(t)<_(e)},m.$g=function(e,t,n){return C.u(e)?this[t]:this.set(n,e)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(e,t){var n=this,r=!!C.u(t)||t,u=C.p(e),p=function(e,t){var o=C.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?o:o.endOf(l)},h=function(e,t){return C.w(n.toDate()[e].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},g=this.$W,v=this.$M,m=this.$D,y="set"+(this.$u?"UTC":"");switch(u){case d:return r?p(1,0):p(31,11);case s:return r?p(1,v):p(0,v+1);case c:var b=this.$locale().weekStart||0,x=(g<b?g+7:g)-b;return p(r?m-x:m+(6-x),v);case l:case f:return h(y+"Hours",0);case a:return h(y+"Minutes",1);case i:return h(y+"Seconds",2);case o:return h(y+"Milliseconds",3);default:return this.clone()}},m.endOf=function(e){return this.startOf(e,!1)},m.$set=function(e,t){var n,c=C.p(e),u="set"+(this.$u?"UTC":""),p=(n={},n[l]=u+"Date",n[f]=u+"Date",n[s]=u+"Month",n[d]=u+"FullYear",n[a]=u+"Hours",n[i]=u+"Minutes",n[o]=u+"Seconds",n[r]=u+"Milliseconds",n)[c],h=c===l?this.$D+(t-this.$W):t;if(c===s||c===d){var g=this.clone().set(f,1);g.$d[p](h),g.init(),this.$d=g.set(f,Math.min(this.$D,g.daysInMonth())).$d}else p&&this.$d[p](h);return this.init(),this},m.set=function(e,t){return this.clone().$set(e,t)},m.get=function(e){return this[C.p(e)]()},m.add=function(r,u){var f,p=this;r=Number(r);var h=C.p(u),g=function(e){var t=_(p);return C.w(t.date(t.date()+Math.round(e*r)),p)};if(h===s)return this.set(s,this.$M+r);if(h===d)return this.set(d,this.$y+r);if(h===l)return g(1);if(h===c)return g(7);var v=(f={},f[i]=t,f[a]=n,f[o]=e,f)[h]||1,m=this.$d.getTime()+r*v;return C.w(m,this)},m.subtract=function(e,t){return this.add(-1*e,t)},m.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||"YYYY-MM-DDTHH:mm:ssZ",o=C.z(this),i=this.$H,a=this.$m,l=this.$M,c=n.weekdays,s=n.months,u=n.meridiem,d=function(e,n,o,i){return e&&(e[n]||e(t,r))||o[n].slice(0,i)},f=function(e){return C.s(i%12||12,e,"0")},h=u||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(g,(function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return C.s(t.$y,4,"0");case"M":return l+1;case"MM":return C.s(l+1,2,"0");case"MMM":return d(n.monthsShort,l,s,3);case"MMMM":return d(s,l);case"D":return t.$D;case"DD":return C.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return d(n.weekdaysMin,t.$W,c,2);case"ddd":return d(n.weekdaysShort,t.$W,c,3);case"dddd":return c[t.$W];case"H":return String(i);case"HH":return C.s(i,2,"0");case"h":return f(1);case"hh":return f(2);case"a":return h(i,a,!0);case"A":return h(i,a,!1);case"m":return String(a);case"mm":return C.s(a,2,"0");case"s":return String(t.$s);case"ss":return C.s(t.$s,2,"0");case"SSS":return C.s(t.$ms,3,"0");case"Z":return o}return null}(e)||o.replace(":","")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(r,f,p){var h,g=this,v=C.p(f),m=_(r),y=(m.utcOffset()-this.utcOffset())*t,b=this-m,x=function(){return C.m(g,m)};switch(v){case d:h=x()/12;break;case s:h=x();break;case u:h=x()/3;break;case c:h=(b-y)/6048e5;break;case l:h=(b-y)/864e5;break;case a:h=b/n;break;case i:h=b/t;break;case o:h=b/e;break;default:h=b}return p?h:C.a(h)},m.daysInMonth=function(){return this.endOf(s).$D},m.$locale=function(){return x[this.$L]},m.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=O(e,t,!0);return r&&(n.$L=r),n},m.clone=function(){return C.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},v}(),P=E.prototype;return _.prototype=P,[["$ms",r],["$s",o],["$m",i],["$H",a],["$W",l],["$M",s],["$y",d],["$D",f]].forEach((function(e){P[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),_.extend=function(e,t){return e.$i||(e(t,E,_),e.$i=!0),_},_.locale=O,_.isDayjs=S,_.unix=function(e){return _(1e3*e)},_.en=x[b],_.Ls=x,_.p={},_}()},6484:function(e,t,n){e.exports=function(e){"use strict";function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=t(e),r={name:"zh-cn",weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u5468\u65e5_\u5468\u4e00_\u5468\u4e8c_\u5468\u4e09_\u5468\u56db_\u5468\u4e94_\u5468\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),ordinal:function(e,t){return"W"===t?e+"\u5468":e+"\u65e5"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5Ah\u70b9mm\u5206",LLLL:"YYYY\u5e74M\u6708D\u65e5ddddAh\u70b9mm\u5206",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},relativeTime:{future:"%s\u5185",past:"%s\u524d",s:"\u51e0\u79d2",m:"1 \u5206\u949f",mm:"%d \u5206\u949f",h:"1 \u5c0f\u65f6",hh:"%d \u5c0f\u65f6",d:"1 \u5929",dd:"%d \u5929",M:"1 \u4e2a\u6708",MM:"%d \u4e2a\u6708",y:"1 \u5e74",yy:"%d \u5e74"},meridiem:function(e,t){var n=100*e+t;return n<600?"\u51cc\u6668":n<900?"\u65e9\u4e0a":n<1100?"\u4e0a\u5348":n<1300?"\u4e2d\u5348":n<1800?"\u4e0b\u5348":"\u665a\u4e0a"}};return n.default.locale(r,null,!0),r}(n(446))},109:function(e){e.exports=function(){"use strict";var e,t,n=1e3,r=6e4,o=36e5,i=864e5,a=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,l=31536e6,c=2628e6,s=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,u={years:l,months:c,days:i,hours:o,minutes:r,seconds:n,milliseconds:1,weeks:6048e5},d=function(e){return e instanceof y},f=function(e,t,n){return new y(e,n,t.$l)},p=function(e){return t.p(e)+"s"},h=function(e){return e<0},g=function(e){return h(e)?Math.ceil(e):Math.floor(e)},v=function(e){return Math.abs(e)},m=function(e,t){return e?h(e)?{negative:!0,format:""+v(e)+t}:{negative:!1,format:""+e+t}:{negative:!1,format:""}},y=function(){function h(e,t,n){var r=this;if(this.$d={},this.$l=n,void 0===e&&(this.$ms=0,this.parseFromMilliseconds()),t)return f(e*u[p(t)],this);if("number"==typeof e)return this.$ms=e,this.parseFromMilliseconds(),this;if("object"==typeof e)return Object.keys(e).forEach((function(t){r.$d[p(t)]=e[t]})),this.calMilliseconds(),this;if("string"==typeof e){var o=e.match(s);if(o){var i=o.slice(2).map((function(e){return null!=e?Number(e):0}));return this.$d.years=i[0],this.$d.months=i[1],this.$d.weeks=i[2],this.$d.days=i[3],this.$d.hours=i[4],this.$d.minutes=i[5],this.$d.seconds=i[6],this.calMilliseconds(),this}}return this}var v=h.prototype;return v.calMilliseconds=function(){var e=this;this.$ms=Object.keys(this.$d).reduce((function(t,n){return t+(e.$d[n]||0)*u[n]}),0)},v.parseFromMilliseconds=function(){var e=this.$ms;this.$d.years=g(e/l),e%=l,this.$d.months=g(e/c),e%=c,this.$d.days=g(e/i),e%=i,this.$d.hours=g(e/o),e%=o,this.$d.minutes=g(e/r),e%=r,this.$d.seconds=g(e/n),e%=n,this.$d.milliseconds=e},v.toISOString=function(){var e=m(this.$d.years,"Y"),t=m(this.$d.months,"M"),n=+this.$d.days||0;this.$d.weeks&&(n+=7*this.$d.weeks);var r=m(n,"D"),o=m(this.$d.hours,"H"),i=m(this.$d.minutes,"M"),a=this.$d.seconds||0;this.$d.milliseconds&&(a+=this.$d.milliseconds/1e3,a=Math.round(1e3*a)/1e3);var l=m(a,"S"),c=e.negative||t.negative||r.negative||o.negative||i.negative||l.negative,s=o.format||i.format||l.format?"T":"",u=(c?"-":"")+"P"+e.format+t.format+r.format+s+o.format+i.format+l.format;return"P"===u||"-P"===u?"P0D":u},v.toJSON=function(){return this.toISOString()},v.format=function(e){var n=e||"YYYY-MM-DDTHH:mm:ss",r={Y:this.$d.years,YY:t.s(this.$d.years,2,"0"),YYYY:t.s(this.$d.years,4,"0"),M:this.$d.months,MM:t.s(this.$d.months,2,"0"),D:this.$d.days,DD:t.s(this.$d.days,2,"0"),H:this.$d.hours,HH:t.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:t.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:t.s(this.$d.seconds,2,"0"),SSS:t.s(this.$d.milliseconds,3,"0")};return n.replace(a,(function(e,t){return t||String(r[e])}))},v.as=function(e){return this.$ms/u[p(e)]},v.get=function(e){var t=this.$ms,n=p(e);return"milliseconds"===n?t%=1e3:t="weeks"===n?g(t/u[n]):this.$d[n],t||0},v.add=function(e,t,n){var r;return r=t?e*u[p(t)]:d(e)?e.$ms:f(e,this).$ms,f(this.$ms+r*(n?-1:1),this)},v.subtract=function(e,t){return this.add(e,t,!0)},v.locale=function(e){var t=this.clone();return t.$l=e,t},v.clone=function(){return f(this.$ms,this)},v.humanize=function(t){return e().add(this.$ms,"ms").locale(this.$l).fromNow(!t)},v.valueOf=function(){return this.asMilliseconds()},v.milliseconds=function(){return this.get("milliseconds")},v.asMilliseconds=function(){return this.as("milliseconds")},v.seconds=function(){return this.get("seconds")},v.asSeconds=function(){return this.as("seconds")},v.minutes=function(){return this.get("minutes")},v.asMinutes=function(){return this.as("minutes")},v.hours=function(){return this.get("hours")},v.asHours=function(){return this.as("hours")},v.days=function(){return this.get("days")},v.asDays=function(){return this.as("days")},v.weeks=function(){return this.get("weeks")},v.asWeeks=function(){return this.as("weeks")},v.months=function(){return this.get("months")},v.asMonths=function(){return this.as("months")},v.years=function(){return this.get("years")},v.asYears=function(){return this.as("years")},h}(),b=function(e,t,n){return e.add(t.years()*n,"y").add(t.months()*n,"M").add(t.days()*n,"d").add(t.hours()*n,"h").add(t.minutes()*n,"m").add(t.seconds()*n,"s").add(t.milliseconds()*n,"ms")};return function(n,r,o){e=o,t=o().$utils(),o.duration=function(e,t){var n=o.locale();return f(e,{$l:n},t)},o.isDuration=d;var i=r.prototype.add,a=r.prototype.subtract;r.prototype.add=function(e,t){return d(e)?b(this,e,1):i.bind(this)(e,t)},r.prototype.subtract=function(e,t){return d(e)?b(this,e,-1):a.bind(this)(e,t)}}}()},199:function(e){e.exports=function(){"use strict";return function(e,t,n){var r=t.prototype,o=function(e){return e&&(e.indexOf?e:e.s)},i=function(e,t,n,r,i){var a=e.name?e:e.$locale(),l=o(a[t]),c=o(a[n]),s=l||c.map((function(e){return e.slice(0,r)}));if(!i)return s;var u=a.weekStart;return s.map((function(e,t){return s[(t+(u||0))%7]}))},a=function(){return n.Ls[n.locale()]},l=function(e,t){return e.formats[t]||function(e){return e.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}(e.formats[t.toUpperCase()])},c=function(){var e=this;return{months:function(t){return t?t.format("MMMM"):i(e,"months")},monthsShort:function(t){return t?t.format("MMM"):i(e,"monthsShort","months",3)},firstDayOfWeek:function(){return e.$locale().weekStart||0},weekdays:function(t){return t?t.format("dddd"):i(e,"weekdays")},weekdaysMin:function(t){return t?t.format("dd"):i(e,"weekdaysMin","weekdays",2)},weekdaysShort:function(t){return t?t.format("ddd"):i(e,"weekdaysShort","weekdays",3)},longDateFormat:function(t){return l(e.$locale(),t)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return c.bind(this)()},n.localeData=function(){var e=a();return{firstDayOfWeek:function(){return e.weekStart||0},weekdays:function(){return n.weekdays()},weekdaysShort:function(){return n.weekdaysShort()},weekdaysMin:function(){return n.weekdaysMin()},months:function(){return n.months()},monthsShort:function(){return n.monthsShort()},longDateFormat:function(t){return l(e,t)},meridiem:e.meridiem,ordinal:e.ordinal}},n.months=function(){return i(a(),"months")},n.monthsShort=function(){return i(a(),"monthsShort","months",3)},n.weekdays=function(e){return i(a(),"weekdays",null,null,e)},n.weekdaysShort=function(e){return i(a(),"weekdaysShort","weekdays",3,e)},n.weekdaysMin=function(e){return i(a(),"weekdaysMin","weekdays",2,e)}}}()},9223:function(e){e.exports=function(){"use strict";return function(e,t){t.prototype.weekday=function(e){var t=this.$locale().weekStart||0,n=this.$W,r=(n<t?n+7:n)-t;return this.$utils().u(e)?r:this.subtract(r,"day").add(e,"day")}}}()},5360:function(e,t,n){var r,o;r=function(){var e={version:"0.2.0"},t=e.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};function n(e,t,n){return e<t?t:e>n?n:e}function r(e){return 100*(-1+e)}function o(e,n,o){var i;return(i="translate3d"===t.positionUsing?{transform:"translate3d("+r(e)+"%,0,0)"}:"translate"===t.positionUsing?{transform:"translate("+r(e)+"%,0)"}:{"margin-left":r(e)+"%"}).transition="all "+n+"ms "+o,i}e.configure=function(e){var n,r;for(n in e)void 0!==(r=e[n])&&e.hasOwnProperty(n)&&(t[n]=r);return this},e.status=null,e.set=function(r){var l=e.isStarted();r=n(r,t.minimum,1),e.status=1===r?null:r;var c=e.render(!l),s=c.querySelector(t.barSelector),u=t.speed,d=t.easing;return c.offsetWidth,i((function(n){""===t.positionUsing&&(t.positionUsing=e.getPositioningCSS()),a(s,o(r,u,d)),1===r?(a(c,{transition:"none",opacity:1}),c.offsetWidth,setTimeout((function(){a(c,{transition:"all "+u+"ms linear",opacity:0}),setTimeout((function(){e.remove(),n()}),u)}),u)):setTimeout(n,u)})),this},e.isStarted=function(){return"number"===typeof e.status},e.start=function(){e.status||e.set(0);var n=function(){setTimeout((function(){e.status&&(e.trickle(),n())}),t.trickleSpeed)};return t.trickle&&n(),this},e.done=function(t){return t||e.status?e.inc(.3+.5*Math.random()).set(1):this},e.inc=function(t){var r=e.status;return r?("number"!==typeof t&&(t=(1-r)*n(Math.random()*r,.1,.95)),r=n(r+t,0,.994),e.set(r)):e.start()},e.trickle=function(){return e.inc(Math.random()*t.trickleRate)},function(){var t=0,n=0;e.promise=function(r){return r&&"resolved"!==r.state()?(0===n&&e.start(),t++,n++,r.always((function(){0===--n?(t=0,e.done()):e.set((t-n)/t)})),this):this}}(),e.render=function(n){if(e.isRendered())return document.getElementById("nprogress");c(document.documentElement,"nprogress-busy");var o=document.createElement("div");o.id="nprogress",o.innerHTML=t.template;var i,l=o.querySelector(t.barSelector),s=n?"-100":r(e.status||0),u=document.querySelector(t.parent);return a(l,{transition:"all 0 linear",transform:"translate3d("+s+"%,0,0)"}),t.showSpinner||(i=o.querySelector(t.spinnerSelector))&&d(i),u!=document.body&&c(u,"nprogress-custom-parent"),u.appendChild(o),o},e.remove=function(){s(document.documentElement,"nprogress-busy"),s(document.querySelector(t.parent),"nprogress-custom-parent");var e=document.getElementById("nprogress");e&&d(e)},e.isRendered=function(){return!!document.getElementById("nprogress")},e.getPositioningCSS=function(){var e=document.body.style,t="WebkitTransform"in e?"Webkit":"MozTransform"in e?"Moz":"msTransform"in e?"ms":"OTransform"in e?"O":"";return t+"Perspective"in e?"translate3d":t+"Transform"in e?"translate":"margin"};var i=function(){var e=[];function t(){var n=e.shift();n&&n(t)}return function(n){e.push(n),1==e.length&&t()}}(),a=function(){var e=["Webkit","O","Moz","ms"],t={};function n(e){return e.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,(function(e,t){return t.toUpperCase()}))}function r(t){var n=document.body.style;if(t in n)return t;for(var r,o=e.length,i=t.charAt(0).toUpperCase()+t.slice(1);o--;)if((r=e[o]+i)in n)return r;return t}function o(e){return e=n(e),t[e]||(t[e]=r(e))}function i(e,t,n){t=o(t),e.style[t]=n}return function(e,t){var n,r,o=arguments;if(2==o.length)for(n in t)void 0!==(r=t[n])&&t.hasOwnProperty(n)&&i(e,n,r);else i(e,o[1],o[2])}}();function l(e,t){return("string"==typeof e?e:u(e)).indexOf(" "+t+" ")>=0}function c(e,t){var n=u(e),r=n+t;l(n,t)||(e.className=r.substring(1))}function s(e,t){var n,r=u(e);l(e,t)&&(n=r.replace(" "+t+" "," "),e.className=n.substring(1,n.length-1))}function u(e){return(" "+(e.className||"")+" ").replace(/\s+/gi," ")}function d(e){e&&e.parentNode&&e.parentNode.removeChild(e)}return e},void 0===(o="function"===typeof r?r.call(t,n,t,e):r)||(e.exports=o)},1497:(e,t,n)=>{"use strict";var r=n(3218);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},5173:(e,t,n)=>{e.exports=n(1497)()},3218:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},338:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return!("undefined"===typeof window||!window.document||!window.document.createElement)}},284:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(!e)return!1;if(e.contains)return e.contains(t);var n=t;for(;n;){if(n===e)return!0;n=n.parentNode}return!1}},557:(e,t,n)=>{"use strict";var r=n(4994).default;Object.defineProperty(t,"__esModule",{value:!0}),t.clearContainerCache=function(){u.clear()},t.injectCSS=h,t.removeCSS=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=g(e,t);if(n){f(t).removeChild(n)}},t.updateCSS=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=f(n),i=p(r),l=(0,o.default)((0,o.default)({},n),{},{styles:i});!function(e,t){var n=u.get(e);if(!n||!(0,a.default)(document,n)){var r=h("",t),o=r.parentNode;u.set(e,o),e.removeChild(r)}}(r,l);var c=g(t,l);if(c){var s,v,m;if(null!==(s=l.csp)&&void 0!==s&&s.nonce&&c.nonce!==(null===(v=l.csp)||void 0===v?void 0:v.nonce))c.nonce=null===(m=l.csp)||void 0===m?void 0:m.nonce;return c.innerHTML!==e&&(c.innerHTML=e),c}var y=h(e,l);return y.setAttribute(d(l),t),y};var o=r(n(2897)),i=r(n(338)),a=r(n(284)),l="data-rc-order",c="data-rc-priority",s="rc-util-key",u=new Map;function d(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).mark;return e?e.startsWith("data-")?e:"data-".concat(e):s}function f(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function p(e){return Array.from((u.get(e)||e).children).filter((function(e){return"STYLE"===e.tagName}))}function h(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(0,i.default)())return null;var n=t.csp,r=t.prepend,o=t.priority,a=void 0===o?0:o,s=function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(r),u="prependQueue"===s,d=document.createElement("style");d.setAttribute(l,s),u&&a&&d.setAttribute(c,"".concat(a)),null!==n&&void 0!==n&&n.nonce&&(d.nonce=null===n||void 0===n?void 0:n.nonce),d.innerHTML=e;var h=f(t),g=h.firstChild;if(r){if(u){var v=(t.styles||p(h)).filter((function(e){if(!["prepend","prependQueue"].includes(e.getAttribute(l)))return!1;var t=Number(e.getAttribute(c)||0);return a>=t}));if(v.length)return h.insertBefore(d,v[v.length-1].nextSibling),d}h.insertBefore(d,g)}else h.appendChild(d);return d}function g(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=f(t);return(t.styles||p(n)).find((function(n){return n.getAttribute(d(t))===e}))}},245:(e,t)=>{"use strict";function n(e){var t;return null===e||void 0===e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function r(e){return n(e)instanceof ShadowRoot}Object.defineProperty(t,"__esModule",{value:!0}),t.getShadowRoot=function(e){return r(e)?n(e):null},t.inShadow=r},8158:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.call=c,t.default=void 0,t.note=a,t.noteOnce=u,t.preMessage=void 0,t.resetWarned=l,t.warning=i,t.warningOnce=s;var n={},r=[],o=t.preMessage=function(e){r.push(e)};function i(e,t){}function a(e,t){}function l(){n={}}function c(e,t,r){t||n[r]||(e(!1,r),n[r]=!0)}function s(e,t){c(i,e,t)}function u(e,t){c(a,e,t)}s.preMessage=o,s.resetWarned=l,s.noteOnce=u;t.default=s},2730:(e,t,n)=>{"use strict";var r=n(5043),o=n(8853);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,l={};function c(e,t){s(e,t),s(e+"Capture",t)}function s(e,t){for(l[e]=t,e=0;e<t.length;e++)a.add(t[e])}var u=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),d=Object.prototype.hasOwnProperty,f=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p={},h={};function g(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var v={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){v[e]=new g(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];v[t]=new g(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){v[e]=new g(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){v[e]=new g(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){v[e]=new g(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){v[e]=new g(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){v[e]=new g(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){v[e]=new g(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){v[e]=new g(e,5,!1,e.toLowerCase(),null,!1,!1)}));var m=/[\-:]([a-z])/g;function y(e){return e[1].toUpperCase()}function b(e,t,n,r){var o=v.hasOwnProperty(t)?v[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null===t||"undefined"===typeof t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!d.call(h,e)||!d.call(p,e)&&(f.test(e)?h[e]=!0:(p[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(m,y);v[t]=new g(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(m,y);v[t]=new g(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(m,y);v[t]=new g(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){v[e]=new g(e,1,!1,e.toLowerCase(),null,!1,!1)})),v.xlinkHref=new g("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){v[e]=new g(e,1,!1,e.toLowerCase(),null,!0,!0)}));var x=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,w=Symbol.for("react.element"),S=Symbol.for("react.portal"),O=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),E=Symbol.for("react.provider"),P=Symbol.for("react.context"),M=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),A=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),T=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var j=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var L=Symbol.iterator;function R(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=L&&e[L]||e["@@iterator"])?e:null}var D,N=Object.assign;function F(e){if(void 0===D)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);D=t&&t[1]||""}return"\n"+D+e}var B=!1;function z(e,t){if(!e||B)return"";B=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(s){var r=s}Reflect.construct(e,[],t)}else{try{t.call()}catch(s){r=s}e.call(t.prototype)}else{try{throw Error()}catch(s){r=s}e()}}catch(s){if(s&&r&&"string"===typeof s.stack){for(var o=s.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,l=i.length-1;1<=a&&0<=l&&o[a]!==i[l];)l--;for(;1<=a&&0<=l;a--,l--)if(o[a]!==i[l]){if(1!==a||1!==l)do{if(a--,0>--l||o[a]!==i[l]){var c="\n"+o[a].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}}while(1<=a&&0<=l);break}}}finally{B=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?F(e):""}function H(e){switch(e.tag){case 5:return F(e.type);case 16:return F("Lazy");case 13:return F("Suspense");case 19:return F("SuspenseList");case 0:case 2:case 15:return e=z(e.type,!1);case 11:return e=z(e.type.render,!1);case 1:return e=z(e.type,!0);default:return""}}function W(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case O:return"Fragment";case S:return"Portal";case C:return"Profiler";case _:return"StrictMode";case k:return"Suspense";case A:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case P:return(e.displayName||"Context")+".Consumer";case E:return(e._context.displayName||"Context")+".Provider";case M:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case I:return null!==(t=e.displayName||null)?t:W(e.type)||"Memo";case T:t=e._payload,e=e._init;try{return W(e(t))}catch(n){}}return null}function V(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return W(t);case 8:return t===_?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"===typeof t)return t.displayName||t.name||null;if("string"===typeof t)return t}return null}function G(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function Y(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function U(e){e._valueTracker||(e._valueTracker=function(e){var t=Y(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function X(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Y(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function q(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function K(e,t){var n=t.checked;return N({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function $(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=G(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Q(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function Z(e,t){Q(e,t);var n=G(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,G(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function J(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&q(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+G(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(i(91));return N({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function oe(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(i(92));if(te(n)){if(1<n.length)throw Error(i(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:G(n)}}function ie(e,t){var n=G(t.value),r=G(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ae(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function le(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ce(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?le(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var se,ue,de=(ue=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((se=se||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=se.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ue(e,t)}))}:ue);function fe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var pe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},he=["Webkit","ms","Moz","O"];function ge(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||pe.hasOwnProperty(e)&&pe[e]?(""+t).trim():t+"px"}function ve(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=ge(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(pe).forEach((function(e){he.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pe[t]=pe[e]}))}));var me=N({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ye(e,t){if(t){if(me[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(i(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(i(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(i(62))}}function be(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var xe=null;function we(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Se=null,Oe=null,_e=null;function Ce(e){if(e=xo(e)){if("function"!==typeof Se)throw Error(i(280));var t=e.stateNode;t&&(t=So(t),Se(e.stateNode,e.type,t))}}function Ee(e){Oe?_e?_e.push(e):_e=[e]:Oe=e}function Pe(){if(Oe){var e=Oe,t=_e;if(_e=Oe=null,Ce(e),t)for(e=0;e<t.length;e++)Ce(t[e])}}function Me(e,t){return e(t)}function ke(){}var Ae=!1;function Ie(e,t,n){if(Ae)return e(t,n);Ae=!0;try{return Me(e,t,n)}finally{Ae=!1,(null!==Oe||null!==_e)&&(ke(),Pe())}}function Te(e,t){var n=e.stateNode;if(null===n)return null;var r=So(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(i(231,t,typeof n));return n}var je=!1;if(u)try{var Le={};Object.defineProperty(Le,"passive",{get:function(){je=!0}}),window.addEventListener("test",Le,Le),window.removeEventListener("test",Le,Le)}catch(ue){je=!1}function Re(e,t,n,r,o,i,a,l,c){var s=Array.prototype.slice.call(arguments,3);try{t.apply(n,s)}catch(u){this.onError(u)}}var De=!1,Ne=null,Fe=!1,Be=null,ze={onError:function(e){De=!0,Ne=e}};function He(e,t,n,r,o,i,a,l,c){De=!1,Ne=null,Re.apply(ze,arguments)}function We(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Ve(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Ge(e){if(We(e)!==e)throw Error(i(188))}function Ye(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=We(e)))throw Error(i(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var a=o.alternate;if(null===a){if(null!==(r=o.return)){n=r;continue}break}if(o.child===a.child){for(a=o.child;a;){if(a===n)return Ge(o),e;if(a===r)return Ge(o),t;a=a.sibling}throw Error(i(188))}if(n.return!==r.return)n=o,r=a;else{for(var l=!1,c=o.child;c;){if(c===n){l=!0,n=o,r=a;break}if(c===r){l=!0,r=o,n=a;break}c=c.sibling}if(!l){for(c=a.child;c;){if(c===n){l=!0,n=a,r=o;break}if(c===r){l=!0,r=a,n=o;break}c=c.sibling}if(!l)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(3!==n.tag)throw Error(i(188));return n.stateNode.current===n?e:t}(e))?Ue(e):null}function Ue(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ue(e);if(null!==t)return t;e=e.sibling}return null}var Xe=o.unstable_scheduleCallback,qe=o.unstable_cancelCallback,Ke=o.unstable_shouldYield,$e=o.unstable_requestPaint,Qe=o.unstable_now,Ze=o.unstable_getCurrentPriorityLevel,Je=o.unstable_ImmediatePriority,et=o.unstable_UserBlockingPriority,tt=o.unstable_NormalPriority,nt=o.unstable_LowPriority,rt=o.unstable_IdlePriority,ot=null,it=null;var at=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(lt(e)/ct|0)|0},lt=Math.log,ct=Math.LN2;var st=64,ut=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ft(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=268435455&n;if(0!==a){var l=a&~o;0!==l?r=dt(l):0!==(i&=a)&&(r=dt(i))}else 0!==(a=n&~o)?r=dt(a):0!==i&&(r=dt(i));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&o)&&((o=r&-r)>=(i=t&-t)||16===o&&0!==(4194240&i)))return t;if(0!==(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-at(t)),r|=e[n],t&=~o;return r}function pt(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function ht(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function gt(){var e=st;return 0===(4194240&(st<<=1))&&(st=64),e}function vt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function mt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=n}function yt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-at(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var bt=0;function xt(e){return 1<(e&=-e)?4<e?0!==(268435455&e)?16:536870912:4:1}var wt,St,Ot,_t,Ct,Et=!1,Pt=[],Mt=null,kt=null,At=null,It=new Map,Tt=new Map,jt=[],Lt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Rt(e,t){switch(e){case"focusin":case"focusout":Mt=null;break;case"dragenter":case"dragleave":kt=null;break;case"mouseover":case"mouseout":At=null;break;case"pointerover":case"pointerout":It.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Tt.delete(t.pointerId)}}function Dt(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&(null!==(t=xo(t))&&St(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function Nt(e){var t=bo(e.target);if(null!==t){var n=We(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ve(n)))return e.blockedOn=t,void Ct(e.priority,(function(){Ot(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Ft(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Kt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=xo(n))&&St(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);xe=r,n.target.dispatchEvent(r),xe=null,t.shift()}return!0}function Bt(e,t,n){Ft(e)&&n.delete(t)}function zt(){Et=!1,null!==Mt&&Ft(Mt)&&(Mt=null),null!==kt&&Ft(kt)&&(kt=null),null!==At&&Ft(At)&&(At=null),It.forEach(Bt),Tt.forEach(Bt)}function Ht(e,t){e.blockedOn===t&&(e.blockedOn=null,Et||(Et=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,zt)))}function Wt(e){function t(t){return Ht(t,e)}if(0<Pt.length){Ht(Pt[0],e);for(var n=1;n<Pt.length;n++){var r=Pt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Mt&&Ht(Mt,e),null!==kt&&Ht(kt,e),null!==At&&Ht(At,e),It.forEach(t),Tt.forEach(t),n=0;n<jt.length;n++)(r=jt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<jt.length&&null===(n=jt[0]).blockedOn;)Nt(n),null===n.blockedOn&&jt.shift()}var Vt=x.ReactCurrentBatchConfig,Gt=!0;function Yt(e,t,n,r){var o=bt,i=Vt.transition;Vt.transition=null;try{bt=1,Xt(e,t,n,r)}finally{bt=o,Vt.transition=i}}function Ut(e,t,n,r){var o=bt,i=Vt.transition;Vt.transition=null;try{bt=4,Xt(e,t,n,r)}finally{bt=o,Vt.transition=i}}function Xt(e,t,n,r){if(Gt){var o=Kt(e,t,n,r);if(null===o)Gr(e,t,r,qt,n),Rt(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Mt=Dt(Mt,e,t,n,r,o),!0;case"dragenter":return kt=Dt(kt,e,t,n,r,o),!0;case"mouseover":return At=Dt(At,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return It.set(i,Dt(It.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Tt.set(i,Dt(Tt.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(Rt(e,r),4&t&&-1<Lt.indexOf(e)){for(;null!==o;){var i=xo(o);if(null!==i&&wt(i),null===(i=Kt(e,t,n,r))&&Gr(e,t,r,qt,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else Gr(e,t,r,null,n)}}var qt=null;function Kt(e,t,n,r){if(qt=null,null!==(e=bo(e=we(r))))if(null===(t=We(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Ve(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return qt=e,null}function $t(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Ze()){case Je:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Qt=null,Zt=null,Jt=null;function en(){if(Jt)return Jt;var e,t,n=Zt,r=n.length,o="value"in Qt?Qt.value:Qt.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return Jt=o.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function on(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return N(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var an,ln,cn,sn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},un=on(sn),dn=N({},sn,{view:0,detail:0}),fn=on(dn),pn=N({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Cn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==cn&&(cn&&"mousemove"===e.type?(an=e.screenX-cn.screenX,ln=e.screenY-cn.screenY):ln=an=0,cn=e),an)},movementY:function(e){return"movementY"in e?e.movementY:ln}}),hn=on(pn),gn=on(N({},pn,{dataTransfer:0})),vn=on(N({},dn,{relatedTarget:0})),mn=on(N({},sn,{animationName:0,elapsedTime:0,pseudoElement:0})),yn=N({},sn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bn=on(yn),xn=on(N({},sn,{data:0})),wn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Sn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},On={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function _n(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=On[e])&&!!t[e]}function Cn(){return _n}var En=N({},dn,{key:function(e){if(e.key){var t=wn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Sn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Cn,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Pn=on(En),Mn=on(N({},pn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),kn=on(N({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cn})),An=on(N({},sn,{propertyName:0,elapsedTime:0,pseudoElement:0})),In=N({},pn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Tn=on(In),jn=[9,13,27,32],Ln=u&&"CompositionEvent"in window,Rn=null;u&&"documentMode"in document&&(Rn=document.documentMode);var Dn=u&&"TextEvent"in window&&!Rn,Nn=u&&(!Ln||Rn&&8<Rn&&11>=Rn),Fn=String.fromCharCode(32),Bn=!1;function zn(e,t){switch(e){case"keyup":return-1!==jn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Hn(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var Wn=!1;var Vn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Gn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Vn[e.type]:"textarea"===t}function Yn(e,t,n,r){Ee(r),0<(t=Ur(t,"onChange")).length&&(n=new un("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Un=null,Xn=null;function qn(e){Fr(e,0)}function Kn(e){if(X(wo(e)))return e}function $n(e,t){if("change"===e)return t}var Qn=!1;if(u){var Zn;if(u){var Jn="oninput"in document;if(!Jn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Jn="function"===typeof er.oninput}Zn=Jn}else Zn=!1;Qn=Zn&&(!document.documentMode||9<document.documentMode)}function tr(){Un&&(Un.detachEvent("onpropertychange",nr),Xn=Un=null)}function nr(e){if("value"===e.propertyName&&Kn(Xn)){var t=[];Yn(t,Xn,e,we(e)),Ie(qn,t)}}function rr(e,t,n){"focusin"===e?(tr(),Xn=n,(Un=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function or(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Kn(Xn)}function ir(e,t){if("click"===e)return Kn(t)}function ar(e,t){if("input"===e||"change"===e)return Kn(t)}var lr="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t};function cr(e,t){if(lr(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!d.call(t,o)||!lr(e[o],t[o]))return!1}return!0}function sr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ur(e,t){var n,r=sr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=sr(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function fr(){for(var e=window,t=q();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=q((e=t.contentWindow).document)}return t}function pr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function hr(e){var t=fr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dr(n.ownerDocument.documentElement,n)){if(null!==r&&pr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=void 0===r.end?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=ur(n,i);var a=ur(n,r);o&&a&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"===typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var gr=u&&"documentMode"in document&&11>=document.documentMode,vr=null,mr=null,yr=null,br=!1;function xr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==vr||vr!==q(r)||("selectionStart"in(r=vr)&&pr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},yr&&cr(yr,r)||(yr=r,0<(r=Ur(mr,"onSelect")).length&&(t=new un("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=vr)))}function wr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Sr={animationend:wr("Animation","AnimationEnd"),animationiteration:wr("Animation","AnimationIteration"),animationstart:wr("Animation","AnimationStart"),transitionend:wr("Transition","TransitionEnd")},Or={},_r={};function Cr(e){if(Or[e])return Or[e];if(!Sr[e])return e;var t,n=Sr[e];for(t in n)if(n.hasOwnProperty(t)&&t in _r)return Or[e]=n[t];return e}u&&(_r=document.createElement("div").style,"AnimationEvent"in window||(delete Sr.animationend.animation,delete Sr.animationiteration.animation,delete Sr.animationstart.animation),"TransitionEvent"in window||delete Sr.transitionend.transition);var Er=Cr("animationend"),Pr=Cr("animationiteration"),Mr=Cr("animationstart"),kr=Cr("transitionend"),Ar=new Map,Ir="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Tr(e,t){Ar.set(e,t),c(t,[e])}for(var jr=0;jr<Ir.length;jr++){var Lr=Ir[jr];Tr(Lr.toLowerCase(),"on"+(Lr[0].toUpperCase()+Lr.slice(1)))}Tr(Er,"onAnimationEnd"),Tr(Pr,"onAnimationIteration"),Tr(Mr,"onAnimationStart"),Tr("dblclick","onDoubleClick"),Tr("focusin","onFocus"),Tr("focusout","onBlur"),Tr(kr,"onTransitionEnd"),s("onMouseEnter",["mouseout","mouseover"]),s("onMouseLeave",["mouseout","mouseover"]),s("onPointerEnter",["pointerout","pointerover"]),s("onPointerLeave",["pointerout","pointerover"]),c("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),c("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),c("onBeforeInput",["compositionend","keypress","textInput","paste"]),c("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Rr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Dr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Rr));function Nr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,a,l,c,s){if(He.apply(this,arguments),De){if(!De)throw Error(i(198));var u=Ne;De=!1,Ne=null,Fe||(Fe=!0,Be=u)}}(r,t,void 0,e),e.currentTarget=null}function Fr(e,t){t=0!==(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var l=r[a],c=l.instance,s=l.currentTarget;if(l=l.listener,c!==i&&o.isPropagationStopped())break e;Nr(o,l,s),i=c}else for(a=0;a<r.length;a++){if(c=(l=r[a]).instance,s=l.currentTarget,l=l.listener,c!==i&&o.isPropagationStopped())break e;Nr(o,l,s),i=c}}}if(Fe)throw e=Be,Fe=!1,Be=null,e}function Br(e,t){var n=t[vo];void 0===n&&(n=t[vo]=new Set);var r=e+"__bubble";n.has(r)||(Vr(t,e,2,!1),n.add(r))}function zr(e,t,n){var r=0;t&&(r|=4),Vr(n,e,r,t)}var Hr="_reactListening"+Math.random().toString(36).slice(2);function Wr(e){if(!e[Hr]){e[Hr]=!0,a.forEach((function(t){"selectionchange"!==t&&(Dr.has(t)||zr(t,!1,e),zr(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Hr]||(t[Hr]=!0,zr("selectionchange",!1,t))}}function Vr(e,t,n,r){switch($t(t)){case 1:var o=Yt;break;case 4:o=Ut;break;default:o=Xt}n=o.bind(null,t,n,e),o=void 0,!je||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Gr(e,t,n,r,o){var i=r;if(0===(1&t)&&0===(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var l=r.stateNode.containerInfo;if(l===o||8===l.nodeType&&l.parentNode===o)break;if(4===a)for(a=r.return;null!==a;){var c=a.tag;if((3===c||4===c)&&((c=a.stateNode.containerInfo)===o||8===c.nodeType&&c.parentNode===o))return;a=a.return}for(;null!==l;){if(null===(a=bo(l)))return;if(5===(c=a.tag)||6===c){r=i=a;continue e}l=l.parentNode}}r=r.return}Ie((function(){var r=i,o=we(n),a=[];e:{var l=Ar.get(e);if(void 0!==l){var c=un,s=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":c=Pn;break;case"focusin":s="focus",c=vn;break;case"focusout":s="blur",c=vn;break;case"beforeblur":case"afterblur":c=vn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":c=hn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":c=gn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":c=kn;break;case Er:case Pr:case Mr:c=mn;break;case kr:c=An;break;case"scroll":c=fn;break;case"wheel":c=Tn;break;case"copy":case"cut":case"paste":c=bn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":c=Mn}var u=0!==(4&t),d=!u&&"scroll"===e,f=u?null!==l?l+"Capture":null:l;u=[];for(var p,h=r;null!==h;){var g=(p=h).stateNode;if(5===p.tag&&null!==g&&(p=g,null!==f&&(null!=(g=Te(h,f))&&u.push(Yr(h,g,p)))),d)break;h=h.return}0<u.length&&(l=new c(l,s,null,n,o),a.push({event:l,listeners:u}))}}if(0===(7&t)){if(c="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||n===xe||!(s=n.relatedTarget||n.fromElement)||!bo(s)&&!s[go])&&(c||l)&&(l=o.window===o?o:(l=o.ownerDocument)?l.defaultView||l.parentWindow:window,c?(c=r,null!==(s=(s=n.relatedTarget||n.toElement)?bo(s):null)&&(s!==(d=We(s))||5!==s.tag&&6!==s.tag)&&(s=null)):(c=null,s=r),c!==s)){if(u=hn,g="onMouseLeave",f="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(u=Mn,g="onPointerLeave",f="onPointerEnter",h="pointer"),d=null==c?l:wo(c),p=null==s?l:wo(s),(l=new u(g,h+"leave",c,n,o)).target=d,l.relatedTarget=p,g=null,bo(o)===r&&((u=new u(f,h+"enter",s,n,o)).target=p,u.relatedTarget=d,g=u),d=g,c&&s)e:{for(f=s,h=0,p=u=c;p;p=Xr(p))h++;for(p=0,g=f;g;g=Xr(g))p++;for(;0<h-p;)u=Xr(u),h--;for(;0<p-h;)f=Xr(f),p--;for(;h--;){if(u===f||null!==f&&u===f.alternate)break e;u=Xr(u),f=Xr(f)}u=null}else u=null;null!==c&&qr(a,l,c,u,!1),null!==s&&null!==d&&qr(a,d,s,u,!0)}if("select"===(c=(l=r?wo(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===c&&"file"===l.type)var v=$n;else if(Gn(l))if(Qn)v=ar;else{v=or;var m=rr}else(c=l.nodeName)&&"input"===c.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(v=ir);switch(v&&(v=v(e,r))?Yn(a,v,n,o):(m&&m(e,l,r),"focusout"===e&&(m=l._wrapperState)&&m.controlled&&"number"===l.type&&ee(l,"number",l.value)),m=r?wo(r):window,e){case"focusin":(Gn(m)||"true"===m.contentEditable)&&(vr=m,mr=r,yr=null);break;case"focusout":yr=mr=vr=null;break;case"mousedown":br=!0;break;case"contextmenu":case"mouseup":case"dragend":br=!1,xr(a,n,o);break;case"selectionchange":if(gr)break;case"keydown":case"keyup":xr(a,n,o)}var y;if(Ln)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Wn?zn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Nn&&"ko"!==n.locale&&(Wn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Wn&&(y=en()):(Zt="value"in(Qt=o)?Qt.value:Qt.textContent,Wn=!0)),0<(m=Ur(r,b)).length&&(b=new xn(b,e,null,n,o),a.push({event:b,listeners:m}),y?b.data=y:null!==(y=Hn(n))&&(b.data=y))),(y=Dn?function(e,t){switch(e){case"compositionend":return Hn(t);case"keypress":return 32!==t.which?null:(Bn=!0,Fn);case"textInput":return(e=t.data)===Fn&&Bn?null:e;default:return null}}(e,n):function(e,t){if(Wn)return"compositionend"===e||!Ln&&zn(e,t)?(e=en(),Jt=Zt=Qt=null,Wn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Nn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Ur(r,"onBeforeInput")).length&&(o=new xn("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=y))}Fr(a,t)}))}function Yr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ur(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=Te(e,n))&&r.unshift(Yr(e,i,o)),null!=(i=Te(e,t))&&r.push(Yr(e,i,o))),e=e.return}return r}function Xr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function qr(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var l=n,c=l.alternate,s=l.stateNode;if(null!==c&&c===r)break;5===l.tag&&null!==s&&(l=s,o?null!=(c=Te(n,i))&&a.unshift(Yr(n,c,l)):o||null!=(c=Te(n,i))&&a.push(Yr(n,c,l))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var Kr=/\r\n?/g,$r=/\u0000|\uFFFD/g;function Qr(e){return("string"===typeof e?e:""+e).replace(Kr,"\n").replace($r,"")}function Zr(e,t,n){if(t=Qr(t),Qr(e)!==t&&n)throw Error(i(425))}function Jr(){}var eo=null,to=null;function no(e,t){return"textarea"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ro="function"===typeof setTimeout?setTimeout:void 0,oo="function"===typeof clearTimeout?clearTimeout:void 0,io="function"===typeof Promise?Promise:void 0,ao="function"===typeof queueMicrotask?queueMicrotask:"undefined"!==typeof io?function(e){return io.resolve(null).then(e).catch(lo)}:ro;function lo(e){setTimeout((function(){throw e}))}function co(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void Wt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);Wt(t)}function so(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function uo(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var fo=Math.random().toString(36).slice(2),po="__reactFiber$"+fo,ho="__reactProps$"+fo,go="__reactContainer$"+fo,vo="__reactEvents$"+fo,mo="__reactListeners$"+fo,yo="__reactHandles$"+fo;function bo(e){var t=e[po];if(t)return t;for(var n=e.parentNode;n;){if(t=n[go]||n[po]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=uo(e);null!==e;){if(n=e[po])return n;e=uo(e)}return t}n=(e=n).parentNode}return null}function xo(e){return!(e=e[po]||e[go])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function wo(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(i(33))}function So(e){return e[ho]||null}var Oo=[],_o=-1;function Co(e){return{current:e}}function Eo(e){0>_o||(e.current=Oo[_o],Oo[_o]=null,_o--)}function Po(e,t){_o++,Oo[_o]=e.current,e.current=t}var Mo={},ko=Co(Mo),Ao=Co(!1),Io=Mo;function To(e,t){var n=e.type.contextTypes;if(!n)return Mo;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function jo(e){return null!==(e=e.childContextTypes)&&void 0!==e}function Lo(){Eo(Ao),Eo(ko)}function Ro(e,t,n){if(ko.current!==Mo)throw Error(i(168));Po(ko,t),Po(Ao,n)}function Do(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(i(108,V(e)||"Unknown",o));return N({},n,r)}function No(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Mo,Io=ko.current,Po(ko,e),Po(Ao,Ao.current),!0}function Fo(e,t,n){var r=e.stateNode;if(!r)throw Error(i(169));n?(e=Do(e,t,Io),r.__reactInternalMemoizedMergedChildContext=e,Eo(Ao),Eo(ko),Po(ko,e)):Eo(Ao),Po(Ao,n)}var Bo=null,zo=!1,Ho=!1;function Wo(e){null===Bo?Bo=[e]:Bo.push(e)}function Vo(){if(!Ho&&null!==Bo){Ho=!0;var e=0,t=bt;try{var n=Bo;for(bt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Bo=null,zo=!1}catch(o){throw null!==Bo&&(Bo=Bo.slice(e+1)),Xe(Je,Vo),o}finally{bt=t,Ho=!1}}return null}var Go=[],Yo=0,Uo=null,Xo=0,qo=[],Ko=0,$o=null,Qo=1,Zo="";function Jo(e,t){Go[Yo++]=Xo,Go[Yo++]=Uo,Uo=e,Xo=t}function ei(e,t,n){qo[Ko++]=Qo,qo[Ko++]=Zo,qo[Ko++]=$o,$o=e;var r=Qo;e=Zo;var o=32-at(r)-1;r&=~(1<<o),n+=1;var i=32-at(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,Qo=1<<32-at(t)+o|n<<o|r,Zo=i+e}else Qo=1<<i|n<<o|r,Zo=e}function ti(e){null!==e.return&&(Jo(e,1),ei(e,1,0))}function ni(e){for(;e===Uo;)Uo=Go[--Yo],Go[Yo]=null,Xo=Go[--Yo],Go[Yo]=null;for(;e===$o;)$o=qo[--Ko],qo[Ko]=null,Zo=qo[--Ko],qo[Ko]=null,Qo=qo[--Ko],qo[Ko]=null}var ri=null,oi=null,ii=!1,ai=null;function li(e,t){var n=Is(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function ci(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ri=e,oi=so(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ri=e,oi=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==$o?{id:Qo,overflow:Zo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Is(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ri=e,oi=null,!0);default:return!1}}function si(e){return 0!==(1&e.mode)&&0===(128&e.flags)}function ui(e){if(ii){var t=oi;if(t){var n=t;if(!ci(e,t)){if(si(e))throw Error(i(418));t=so(n.nextSibling);var r=ri;t&&ci(e,t)?li(r,n):(e.flags=-4097&e.flags|2,ii=!1,ri=e)}}else{if(si(e))throw Error(i(418));e.flags=-4097&e.flags|2,ii=!1,ri=e}}}function di(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ri=e}function fi(e){if(e!==ri)return!1;if(!ii)return di(e),ii=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!no(e.type,e.memoizedProps)),t&&(t=oi)){if(si(e))throw pi(),Error(i(418));for(;t;)li(e,t),t=so(t.nextSibling)}if(di(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(i(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){oi=so(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}oi=null}}else oi=ri?so(e.stateNode.nextSibling):null;return!0}function pi(){for(var e=oi;e;)e=so(e.nextSibling)}function hi(){oi=ri=null,ii=!1}function gi(e){null===ai?ai=[e]:ai.push(e)}var vi=x.ReactCurrentBatchConfig;function mi(e,t,n){if(null!==(e=n.ref)&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(i(309));var r=n.stateNode}if(!r)throw Error(i(147,e));var o=r,a=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=o.refs;null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!==typeof e)throw Error(i(284));if(!n._owner)throw Error(i(290,e))}return e}function yi(e,t){throw e=Object.prototype.toString.call(t),Error(i(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function bi(e){return(0,e._init)(e._payload)}function xi(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=js(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function l(t){return e&&null===t.alternate&&(t.flags|=2),t}function c(e,t,n,r){return null===t||6!==t.tag?((t=Ns(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function s(e,t,n,r){var i=n.type;return i===O?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===i||"object"===typeof i&&null!==i&&i.$$typeof===T&&bi(i)===t.type)?((r=o(t,n.props)).ref=mi(e,t,n),r.return=e,r):((r=Ls(n.type,n.key,n.props,null,e.mode,r)).ref=mi(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Fs(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function d(e,t,n,r,i){return null===t||7!==t.tag?((t=Rs(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function f(e,t,n){if("string"===typeof t&&""!==t||"number"===typeof t)return(t=Ns(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case w:return(n=Ls(t.type,t.key,t.props,null,e.mode,n)).ref=mi(e,null,t),n.return=e,n;case S:return(t=Fs(t,e.mode,n)).return=e,t;case T:return f(e,(0,t._init)(t._payload),n)}if(te(t)||R(t))return(t=Rs(t,e.mode,n,null)).return=e,t;yi(e,t)}return null}function p(e,t,n,r){var o=null!==t?t.key:null;if("string"===typeof n&&""!==n||"number"===typeof n)return null!==o?null:c(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case w:return n.key===o?s(e,t,n,r):null;case S:return n.key===o?u(e,t,n,r):null;case T:return p(e,t,(o=n._init)(n._payload),r)}if(te(n)||R(n))return null!==o?null:d(e,t,n,r,null);yi(e,n)}return null}function h(e,t,n,r,o){if("string"===typeof r&&""!==r||"number"===typeof r)return c(t,e=e.get(n)||null,""+r,o);if("object"===typeof r&&null!==r){switch(r.$$typeof){case w:return s(t,e=e.get(null===r.key?n:r.key)||null,r,o);case S:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case T:return h(e,t,n,(0,r._init)(r._payload),o)}if(te(r)||R(r))return d(t,e=e.get(n)||null,r,o,null);yi(t,r)}return null}function g(o,i,l,c){for(var s=null,u=null,d=i,g=i=0,v=null;null!==d&&g<l.length;g++){d.index>g?(v=d,d=null):v=d.sibling;var m=p(o,d,l[g],c);if(null===m){null===d&&(d=v);break}e&&d&&null===m.alternate&&t(o,d),i=a(m,i,g),null===u?s=m:u.sibling=m,u=m,d=v}if(g===l.length)return n(o,d),ii&&Jo(o,g),s;if(null===d){for(;g<l.length;g++)null!==(d=f(o,l[g],c))&&(i=a(d,i,g),null===u?s=d:u.sibling=d,u=d);return ii&&Jo(o,g),s}for(d=r(o,d);g<l.length;g++)null!==(v=h(d,o,g,l[g],c))&&(e&&null!==v.alternate&&d.delete(null===v.key?g:v.key),i=a(v,i,g),null===u?s=v:u.sibling=v,u=v);return e&&d.forEach((function(e){return t(o,e)})),ii&&Jo(o,g),s}function v(o,l,c,s){var u=R(c);if("function"!==typeof u)throw Error(i(150));if(null==(c=u.call(c)))throw Error(i(151));for(var d=u=null,g=l,v=l=0,m=null,y=c.next();null!==g&&!y.done;v++,y=c.next()){g.index>v?(m=g,g=null):m=g.sibling;var b=p(o,g,y.value,s);if(null===b){null===g&&(g=m);break}e&&g&&null===b.alternate&&t(o,g),l=a(b,l,v),null===d?u=b:d.sibling=b,d=b,g=m}if(y.done)return n(o,g),ii&&Jo(o,v),u;if(null===g){for(;!y.done;v++,y=c.next())null!==(y=f(o,y.value,s))&&(l=a(y,l,v),null===d?u=y:d.sibling=y,d=y);return ii&&Jo(o,v),u}for(g=r(o,g);!y.done;v++,y=c.next())null!==(y=h(g,o,v,y.value,s))&&(e&&null!==y.alternate&&g.delete(null===y.key?v:y.key),l=a(y,l,v),null===d?u=y:d.sibling=y,d=y);return e&&g.forEach((function(e){return t(o,e)})),ii&&Jo(o,v),u}return function e(r,i,a,c){if("object"===typeof a&&null!==a&&a.type===O&&null===a.key&&(a=a.props.children),"object"===typeof a&&null!==a){switch(a.$$typeof){case w:e:{for(var s=a.key,u=i;null!==u;){if(u.key===s){if((s=a.type)===O){if(7===u.tag){n(r,u.sibling),(i=o(u,a.props.children)).return=r,r=i;break e}}else if(u.elementType===s||"object"===typeof s&&null!==s&&s.$$typeof===T&&bi(s)===u.type){n(r,u.sibling),(i=o(u,a.props)).ref=mi(r,u,a),i.return=r,r=i;break e}n(r,u);break}t(r,u),u=u.sibling}a.type===O?((i=Rs(a.props.children,r.mode,c,a.key)).return=r,r=i):((c=Ls(a.type,a.key,a.props,null,r.mode,c)).ref=mi(r,i,a),c.return=r,r=c)}return l(r);case S:e:{for(u=a.key;null!==i;){if(i.key===u){if(4===i.tag&&i.stateNode.containerInfo===a.containerInfo&&i.stateNode.implementation===a.implementation){n(r,i.sibling),(i=o(i,a.children||[])).return=r,r=i;break e}n(r,i);break}t(r,i),i=i.sibling}(i=Fs(a,r.mode,c)).return=r,r=i}return l(r);case T:return e(r,i,(u=a._init)(a._payload),c)}if(te(a))return g(r,i,a,c);if(R(a))return v(r,i,a,c);yi(r,a)}return"string"===typeof a&&""!==a||"number"===typeof a?(a=""+a,null!==i&&6===i.tag?(n(r,i.sibling),(i=o(i,a)).return=r,r=i):(n(r,i),(i=Ns(a,r.mode,c)).return=r,r=i),l(r)):n(r,i)}}var wi=xi(!0),Si=xi(!1),Oi=Co(null),_i=null,Ci=null,Ei=null;function Pi(){Ei=Ci=_i=null}function Mi(e){var t=Oi.current;Eo(Oi),e._currentValue=t}function ki(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ai(e,t){_i=e,Ei=Ci=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(bl=!0),e.firstContext=null)}function Ii(e){var t=e._currentValue;if(Ei!==e)if(e={context:e,memoizedValue:t,next:null},null===Ci){if(null===_i)throw Error(i(308));Ci=e,_i.dependencies={lanes:0,firstContext:e}}else Ci=Ci.next=e;return t}var Ti=null;function ji(e){null===Ti?Ti=[e]:Ti.push(e)}function Li(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,ji(t)):(n.next=o.next,o.next=n),t.interleaved=n,Ri(e,r)}function Ri(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Di=!1;function Ni(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Fi(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Bi(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function zi(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!==(2&Mc)){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Ri(e,n)}return null===(o=r.interleaved)?(t.next=t,ji(r)):(t.next=o.next,o.next=t),r.interleaved=t,Ri(e,n)}function Hi(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!==(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}function Wi(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Vi(e,t,n,r){var o=e.updateQueue;Di=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,l=o.shared.pending;if(null!==l){o.shared.pending=null;var c=l,s=c.next;c.next=null,null===a?i=s:a.next=s,a=c;var u=e.alternate;null!==u&&((l=(u=u.updateQueue).lastBaseUpdate)!==a&&(null===l?u.firstBaseUpdate=s:l.next=s,u.lastBaseUpdate=c))}if(null!==i){var d=o.baseState;for(a=0,u=s=c=null,l=i;;){var f=l.lane,p=l.eventTime;if((r&f)===f){null!==u&&(u=u.next={eventTime:p,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var h=e,g=l;switch(f=t,p=n,g.tag){case 1:if("function"===typeof(h=g.payload)){d=h.call(p,d,f);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null===(f="function"===typeof(h=g.payload)?h.call(p,d,f):h)||void 0===f)break e;d=N({},d,f);break e;case 2:Di=!0}}null!==l.callback&&0!==l.lane&&(e.flags|=64,null===(f=o.effects)?o.effects=[l]:f.push(l))}else p={eventTime:p,lane:f,tag:l.tag,payload:l.payload,callback:l.callback,next:null},null===u?(s=u=p,c=d):u=u.next=p,a|=f;if(null===(l=l.next)){if(null===(l=o.shared.pending))break;l=(f=l).next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}if(null===u&&(c=d),o.baseState=c,o.firstBaseUpdate=s,o.lastBaseUpdate=u,null!==(t=o.shared.interleaved)){o=t;do{a|=o.lane,o=o.next}while(o!==t)}else null===i&&(o.shared.lanes=0);Dc|=a,e.lanes=a,e.memoizedState=d}}function Gi(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!==typeof o)throw Error(i(191,o));o.call(r)}}}var Yi={},Ui=Co(Yi),Xi=Co(Yi),qi=Co(Yi);function Ki(e){if(e===Yi)throw Error(i(174));return e}function $i(e,t){switch(Po(qi,t),Po(Xi,e),Po(Ui,Yi),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ce(null,"");break;default:t=ce(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Eo(Ui),Po(Ui,t)}function Qi(){Eo(Ui),Eo(Xi),Eo(qi)}function Zi(e){Ki(qi.current);var t=Ki(Ui.current),n=ce(t,e.type);t!==n&&(Po(Xi,e),Po(Ui,n))}function Ji(e){Xi.current===e&&(Eo(Ui),Eo(Xi))}var ea=Co(0);function ta(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var na=[];function ra(){for(var e=0;e<na.length;e++)na[e]._workInProgressVersionPrimary=null;na.length=0}var oa=x.ReactCurrentDispatcher,ia=x.ReactCurrentBatchConfig,aa=0,la=null,ca=null,sa=null,ua=!1,da=!1,fa=0,pa=0;function ha(){throw Error(i(321))}function ga(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!lr(e[n],t[n]))return!1;return!0}function va(e,t,n,r,o,a){if(aa=a,la=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,oa.current=null===e||null===e.memoizedState?Ja:el,e=n(r,o),da){a=0;do{if(da=!1,fa=0,25<=a)throw Error(i(301));a+=1,sa=ca=null,t.updateQueue=null,oa.current=tl,e=n(r,o)}while(da)}if(oa.current=Za,t=null!==ca&&null!==ca.next,aa=0,sa=ca=la=null,ua=!1,t)throw Error(i(300));return e}function ma(){var e=0!==fa;return fa=0,e}function ya(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===sa?la.memoizedState=sa=e:sa=sa.next=e,sa}function ba(){if(null===ca){var e=la.alternate;e=null!==e?e.memoizedState:null}else e=ca.next;var t=null===sa?la.memoizedState:sa.next;if(null!==t)sa=t,ca=e;else{if(null===e)throw Error(i(310));e={memoizedState:(ca=e).memoizedState,baseState:ca.baseState,baseQueue:ca.baseQueue,queue:ca.queue,next:null},null===sa?la.memoizedState=sa=e:sa=sa.next=e}return sa}function xa(e,t){return"function"===typeof t?t(e):t}function wa(e){var t=ba(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=ca,o=r.baseQueue,a=n.pending;if(null!==a){if(null!==o){var l=o.next;o.next=a.next,a.next=l}r.baseQueue=o=a,n.pending=null}if(null!==o){a=o.next,r=r.baseState;var c=l=null,s=null,u=a;do{var d=u.lane;if((aa&d)===d)null!==s&&(s=s.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var f={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===s?(c=s=f,l=r):s=s.next=f,la.lanes|=d,Dc|=d}u=u.next}while(null!==u&&u!==a);null===s?l=r:s.next=c,lr(r,t.memoizedState)||(bl=!0),t.memoizedState=r,t.baseState=l,t.baseQueue=s,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{a=o.lane,la.lanes|=a,Dc|=a,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Sa(e){var t=ba(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,a=t.memoizedState;if(null!==o){n.pending=null;var l=o=o.next;do{a=e(a,l.action),l=l.next}while(l!==o);lr(a,t.memoizedState)||(bl=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function Oa(){}function _a(e,t){var n=la,r=ba(),o=t(),a=!lr(r.memoizedState,o);if(a&&(r.memoizedState=o,bl=!0),r=r.queue,Da(Pa.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||null!==sa&&1&sa.memoizedState.tag){if(n.flags|=2048,Ia(9,Ea.bind(null,n,r,o,t),void 0,null),null===kc)throw Error(i(349));0!==(30&aa)||Ca(n,t,o)}return o}function Ca(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=la.updateQueue)?(t={lastEffect:null,stores:null},la.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Ea(e,t,n,r){t.value=n,t.getSnapshot=r,Ma(t)&&ka(e)}function Pa(e,t,n){return n((function(){Ma(t)&&ka(e)}))}function Ma(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!lr(e,n)}catch(r){return!0}}function ka(e){var t=Ri(e,1);null!==t&&ns(t,e,1,-1)}function Aa(e){var t=ya();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:xa,lastRenderedState:e},t.queue=e,e=e.dispatch=qa.bind(null,la,e),[t.memoizedState,e]}function Ia(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=la.updateQueue)?(t={lastEffect:null,stores:null},la.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Ta(){return ba().memoizedState}function ja(e,t,n,r){var o=ya();la.flags|=e,o.memoizedState=Ia(1|t,n,void 0,void 0===r?null:r)}function La(e,t,n,r){var o=ba();r=void 0===r?null:r;var i=void 0;if(null!==ca){var a=ca.memoizedState;if(i=a.destroy,null!==r&&ga(r,a.deps))return void(o.memoizedState=Ia(t,n,i,r))}la.flags|=e,o.memoizedState=Ia(1|t,n,i,r)}function Ra(e,t){return ja(8390656,8,e,t)}function Da(e,t){return La(2048,8,e,t)}function Na(e,t){return La(4,2,e,t)}function Fa(e,t){return La(4,4,e,t)}function Ba(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function za(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,La(4,4,Ba.bind(null,t,e),n)}function Ha(){}function Wa(e,t){var n=ba();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ga(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Va(e,t){var n=ba();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ga(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ga(e,t,n){return 0===(21&aa)?(e.baseState&&(e.baseState=!1,bl=!0),e.memoizedState=n):(lr(n,t)||(n=gt(),la.lanes|=n,Dc|=n,e.baseState=!0),t)}function Ya(e,t){var n=bt;bt=0!==n&&4>n?n:4,e(!0);var r=ia.transition;ia.transition={};try{e(!1),t()}finally{bt=n,ia.transition=r}}function Ua(){return ba().memoizedState}function Xa(e,t,n){var r=ts(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Ka(e))$a(t,n);else if(null!==(n=Li(e,t,n,r))){ns(n,e,r,es()),Qa(n,t,r)}}function qa(e,t,n){var r=ts(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ka(e))$a(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,l=i(a,n);if(o.hasEagerState=!0,o.eagerState=l,lr(l,a)){var c=t.interleaved;return null===c?(o.next=o,ji(t)):(o.next=c.next,c.next=o),void(t.interleaved=o)}}catch(s){}null!==(n=Li(e,t,o,r))&&(ns(n,e,r,o=es()),Qa(n,t,r))}}function Ka(e){var t=e.alternate;return e===la||null!==t&&t===la}function $a(e,t){da=ua=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Qa(e,t,n){if(0!==(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}var Za={readContext:Ii,useCallback:ha,useContext:ha,useEffect:ha,useImperativeHandle:ha,useInsertionEffect:ha,useLayoutEffect:ha,useMemo:ha,useReducer:ha,useRef:ha,useState:ha,useDebugValue:ha,useDeferredValue:ha,useTransition:ha,useMutableSource:ha,useSyncExternalStore:ha,useId:ha,unstable_isNewReconciler:!1},Ja={readContext:Ii,useCallback:function(e,t){return ya().memoizedState=[e,void 0===t?null:t],e},useContext:Ii,useEffect:Ra,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,ja(4194308,4,Ba.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ja(4194308,4,e,t)},useInsertionEffect:function(e,t){return ja(4,2,e,t)},useMemo:function(e,t){var n=ya();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ya();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Xa.bind(null,la,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},ya().memoizedState=e},useState:Aa,useDebugValue:Ha,useDeferredValue:function(e){return ya().memoizedState=e},useTransition:function(){var e=Aa(!1),t=e[0];return e=Ya.bind(null,e[1]),ya().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=la,o=ya();if(ii){if(void 0===n)throw Error(i(407));n=n()}else{if(n=t(),null===kc)throw Error(i(349));0!==(30&aa)||Ca(r,t,n)}o.memoizedState=n;var a={value:n,getSnapshot:t};return o.queue=a,Ra(Pa.bind(null,r,a,e),[e]),r.flags|=2048,Ia(9,Ea.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=ya(),t=kc.identifierPrefix;if(ii){var n=Zo;t=":"+t+"R"+(n=(Qo&~(1<<32-at(Qo)-1)).toString(32)+n),0<(n=fa++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=pa++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},el={readContext:Ii,useCallback:Wa,useContext:Ii,useEffect:Da,useImperativeHandle:za,useInsertionEffect:Na,useLayoutEffect:Fa,useMemo:Va,useReducer:wa,useRef:Ta,useState:function(){return wa(xa)},useDebugValue:Ha,useDeferredValue:function(e){return Ga(ba(),ca.memoizedState,e)},useTransition:function(){return[wa(xa)[0],ba().memoizedState]},useMutableSource:Oa,useSyncExternalStore:_a,useId:Ua,unstable_isNewReconciler:!1},tl={readContext:Ii,useCallback:Wa,useContext:Ii,useEffect:Da,useImperativeHandle:za,useInsertionEffect:Na,useLayoutEffect:Fa,useMemo:Va,useReducer:Sa,useRef:Ta,useState:function(){return Sa(xa)},useDebugValue:Ha,useDeferredValue:function(e){var t=ba();return null===ca?t.memoizedState=e:Ga(t,ca.memoizedState,e)},useTransition:function(){return[Sa(xa)[0],ba().memoizedState]},useMutableSource:Oa,useSyncExternalStore:_a,useId:Ua,unstable_isNewReconciler:!1};function nl(e,t){if(e&&e.defaultProps){for(var n in t=N({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function rl(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:N({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var ol={isMounted:function(e){return!!(e=e._reactInternals)&&We(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=es(),o=ts(e),i=Bi(r,o);i.payload=t,void 0!==n&&null!==n&&(i.callback=n),null!==(t=zi(e,i,o))&&(ns(t,e,o,r),Hi(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=es(),o=ts(e),i=Bi(r,o);i.tag=1,i.payload=t,void 0!==n&&null!==n&&(i.callback=n),null!==(t=zi(e,i,o))&&(ns(t,e,o,r),Hi(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=es(),r=ts(e),o=Bi(n,r);o.tag=2,void 0!==t&&null!==t&&(o.callback=t),null!==(t=zi(e,o,r))&&(ns(t,e,r,n),Hi(t,e,r))}};function il(e,t,n,r,o,i,a){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!cr(n,r)||!cr(o,i))}function al(e,t,n){var r=!1,o=Mo,i=t.contextType;return"object"===typeof i&&null!==i?i=Ii(i):(o=jo(t)?Io:ko.current,i=(r=null!==(r=t.contextTypes)&&void 0!==r)?To(e,o):Mo),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=ol,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function ll(e,t,n,r){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ol.enqueueReplaceState(t,t.state,null)}function cl(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},Ni(e);var i=t.contextType;"object"===typeof i&&null!==i?o.context=Ii(i):(i=jo(t)?Io:ko.current,o.context=To(e,i)),o.state=e.memoizedState,"function"===typeof(i=t.getDerivedStateFromProps)&&(rl(e,t,i,n),o.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof o.getSnapshotBeforeUpdate||"function"!==typeof o.UNSAFE_componentWillMount&&"function"!==typeof o.componentWillMount||(t=o.state,"function"===typeof o.componentWillMount&&o.componentWillMount(),"function"===typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&ol.enqueueReplaceState(o,o.state,null),Vi(e,n,o,r),o.state=e.memoizedState),"function"===typeof o.componentDidMount&&(e.flags|=4194308)}function sl(e,t){try{var n="",r=t;do{n+=H(r),r=r.return}while(r);var o=n}catch(i){o="\nError generating stack: "+i.message+"\n"+i.stack}return{value:e,source:t,stack:o,digest:null}}function ul(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function dl(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}var fl="function"===typeof WeakMap?WeakMap:Map;function pl(e,t,n){(n=Bi(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Gc||(Gc=!0,Yc=r),dl(0,t)},n}function hl(e,t,n){(n=Bi(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){dl(0,t)}}var i=e.stateNode;return null!==i&&"function"===typeof i.componentDidCatch&&(n.callback=function(){dl(0,t),"function"!==typeof r&&(null===Uc?Uc=new Set([this]):Uc.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function gl(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new fl;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Cs.bind(null,e,t,n),t.then(e,e))}function vl(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function ml(e,t,n,r,o){return 0===(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Bi(-1,1)).tag=2,zi(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var yl=x.ReactCurrentOwner,bl=!1;function xl(e,t,n,r){t.child=null===e?Si(t,null,n,r):wi(t,e.child,n,r)}function wl(e,t,n,r,o){n=n.render;var i=t.ref;return Ai(t,o),r=va(e,t,n,r,i,o),n=ma(),null===e||bl?(ii&&n&&ti(t),t.flags|=1,xl(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Gl(e,t,o))}function Sl(e,t,n,r,o){if(null===e){var i=n.type;return"function"!==typeof i||Ts(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Ls(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,Ol(e,t,i,r,o))}if(i=e.child,0===(e.lanes&o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:cr)(a,r)&&e.ref===t.ref)return Gl(e,t,o)}return t.flags|=1,(e=js(i,r)).ref=t.ref,e.return=t,t.child=e}function Ol(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(cr(i,r)&&e.ref===t.ref){if(bl=!1,t.pendingProps=r=i,0===(e.lanes&o))return t.lanes=e.lanes,Gl(e,t,o);0!==(131072&e.flags)&&(bl=!0)}}return El(e,t,n,r,o)}function _l(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0===(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Po(jc,Tc),Tc|=n;else{if(0===(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Po(jc,Tc),Tc|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,Po(jc,Tc),Tc|=r}else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,Po(jc,Tc),Tc|=r;return xl(e,t,o,n),t.child}function Cl(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function El(e,t,n,r,o){var i=jo(n)?Io:ko.current;return i=To(t,i),Ai(t,o),n=va(e,t,n,r,i,o),r=ma(),null===e||bl?(ii&&r&&ti(t),t.flags|=1,xl(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Gl(e,t,o))}function Pl(e,t,n,r,o){if(jo(n)){var i=!0;No(t)}else i=!1;if(Ai(t,o),null===t.stateNode)Vl(e,t),al(t,n,r),cl(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,l=t.memoizedProps;a.props=l;var c=a.context,s=n.contextType;"object"===typeof s&&null!==s?s=Ii(s):s=To(t,s=jo(n)?Io:ko.current);var u=n.getDerivedStateFromProps,d="function"===typeof u||"function"===typeof a.getSnapshotBeforeUpdate;d||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(l!==r||c!==s)&&ll(t,a,r,s),Di=!1;var f=t.memoizedState;a.state=f,Vi(t,r,a,o),c=t.memoizedState,l!==r||f!==c||Ao.current||Di?("function"===typeof u&&(rl(t,n,u,r),c=t.memoizedState),(l=Di||il(t,n,l,r,f,c,s))?(d||"function"!==typeof a.UNSAFE_componentWillMount&&"function"!==typeof a.componentWillMount||("function"===typeof a.componentWillMount&&a.componentWillMount(),"function"===typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"===typeof a.componentDidMount&&(t.flags|=4194308)):("function"===typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),a.props=r,a.state=c,a.context=s,r=l):("function"===typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Fi(e,t),l=t.memoizedProps,s=t.type===t.elementType?l:nl(t.type,l),a.props=s,d=t.pendingProps,f=a.context,"object"===typeof(c=n.contextType)&&null!==c?c=Ii(c):c=To(t,c=jo(n)?Io:ko.current);var p=n.getDerivedStateFromProps;(u="function"===typeof p||"function"===typeof a.getSnapshotBeforeUpdate)||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(l!==d||f!==c)&&ll(t,a,r,c),Di=!1,f=t.memoizedState,a.state=f,Vi(t,r,a,o);var h=t.memoizedState;l!==d||f!==h||Ao.current||Di?("function"===typeof p&&(rl(t,n,p,r),h=t.memoizedState),(s=Di||il(t,n,s,r,f,h,c)||!1)?(u||"function"!==typeof a.UNSAFE_componentWillUpdate&&"function"!==typeof a.componentWillUpdate||("function"===typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,c),"function"===typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,c)),"function"===typeof a.componentDidUpdate&&(t.flags|=4),"function"===typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!==typeof a.componentDidUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=c,r=s):("function"!==typeof a.componentDidUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Ml(e,t,n,r,i,o)}function Ml(e,t,n,r,o,i){Cl(e,t);var a=0!==(128&t.flags);if(!r&&!a)return o&&Fo(t,n,!1),Gl(e,t,i);r=t.stateNode,yl.current=t;var l=a&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=wi(t,e.child,null,i),t.child=wi(t,null,l,i)):xl(e,t,l,i),t.memoizedState=r.state,o&&Fo(t,n,!0),t.child}function kl(e){var t=e.stateNode;t.pendingContext?Ro(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Ro(0,t.context,!1),$i(e,t.containerInfo)}function Al(e,t,n,r,o){return hi(),gi(o),t.flags|=256,xl(e,t,n,r),t.child}var Il,Tl,jl,Ll,Rl={dehydrated:null,treeContext:null,retryLane:0};function Dl(e){return{baseLanes:e,cachePool:null,transitions:null}}function Nl(e,t,n){var r,o=t.pendingProps,a=ea.current,l=!1,c=0!==(128&t.flags);if((r=c)||(r=(null===e||null!==e.memoizedState)&&0!==(2&a)),r?(l=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),Po(ea,1&a),null===e)return ui(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0===(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(c=o.children,e=o.fallback,l?(o=t.mode,l=t.child,c={mode:"hidden",children:c},0===(1&o)&&null!==l?(l.childLanes=0,l.pendingProps=c):l=Ds(c,o,0,null),e=Rs(e,o,n,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=Dl(n),t.memoizedState=Rl,e):Fl(t,c));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return function(e,t,n,r,o,a,l){if(n)return 256&t.flags?(t.flags&=-257,Bl(e,t,l,r=ul(Error(i(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=r.fallback,o=t.mode,r=Ds({mode:"visible",children:r.children},o,0,null),(a=Rs(a,o,l,null)).flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,0!==(1&t.mode)&&wi(t,e.child,null,l),t.child.memoizedState=Dl(l),t.memoizedState=Rl,a);if(0===(1&t.mode))return Bl(e,t,l,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var c=r.dgst;return r=c,Bl(e,t,l,r=ul(a=Error(i(419)),r,void 0))}if(c=0!==(l&e.childLanes),bl||c){if(null!==(r=kc)){switch(l&-l){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=0!==(o&(r.suspendedLanes|l))?0:o)&&o!==a.retryLane&&(a.retryLane=o,Ri(e,o),ns(r,e,o,-1))}return gs(),Bl(e,t,l,r=ul(Error(i(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Ps.bind(null,e),o._reactRetry=t,null):(e=a.treeContext,oi=so(o.nextSibling),ri=t,ii=!0,ai=null,null!==e&&(qo[Ko++]=Qo,qo[Ko++]=Zo,qo[Ko++]=$o,Qo=e.id,Zo=e.overflow,$o=t),t=Fl(t,r.children),t.flags|=4096,t)}(e,t,c,o,r,a,n);if(l){l=o.fallback,c=t.mode,r=(a=e.child).sibling;var s={mode:"hidden",children:o.children};return 0===(1&c)&&t.child!==a?((o=t.child).childLanes=0,o.pendingProps=s,t.deletions=null):(o=js(a,s)).subtreeFlags=14680064&a.subtreeFlags,null!==r?l=js(r,l):(l=Rs(l,c,n,null)).flags|=2,l.return=t,o.return=t,o.sibling=l,t.child=o,o=l,l=t.child,c=null===(c=e.child.memoizedState)?Dl(n):{baseLanes:c.baseLanes|n,cachePool:null,transitions:c.transitions},l.memoizedState=c,l.childLanes=e.childLanes&~n,t.memoizedState=Rl,o}return e=(l=e.child).sibling,o=js(l,{mode:"visible",children:o.children}),0===(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function Fl(e,t){return(t=Ds({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Bl(e,t,n,r){return null!==r&&gi(r),wi(t,e.child,null,n),(e=Fl(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function zl(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),ki(e.return,t,n)}function Hl(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function Wl(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(xl(e,t,r.children,n),0!==(2&(r=ea.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!==(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&zl(e,n,t);else if(19===e.tag)zl(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Po(ea,r),0===(1&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===ta(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Hl(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===ta(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Hl(t,!0,n,null,i);break;case"together":Hl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Vl(e,t){0===(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Gl(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Dc|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(i(153));if(null!==t.child){for(n=js(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=js(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Yl(e,t){if(!ii)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ul(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Xl(e,t,n){var r=t.pendingProps;switch(ni(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ul(t),null;case 1:case 17:return jo(t.type)&&Lo(),Ul(t),null;case 3:return r=t.stateNode,Qi(),Eo(Ao),Eo(ko),ra(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(fi(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0===(256&t.flags)||(t.flags|=1024,null!==ai&&(as(ai),ai=null))),Tl(e,t),Ul(t),null;case 5:Ji(t);var o=Ki(qi.current);if(n=t.type,null!==e&&null!=t.stateNode)jl(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(i(166));return Ul(t),null}if(e=Ki(Ui.current),fi(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[po]=t,r[ho]=a,e=0!==(1&t.mode),n){case"dialog":Br("cancel",r),Br("close",r);break;case"iframe":case"object":case"embed":Br("load",r);break;case"video":case"audio":for(o=0;o<Rr.length;o++)Br(Rr[o],r);break;case"source":Br("error",r);break;case"img":case"image":case"link":Br("error",r),Br("load",r);break;case"details":Br("toggle",r);break;case"input":$(r,a),Br("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},Br("invalid",r);break;case"textarea":oe(r,a),Br("invalid",r)}for(var c in ye(n,a),o=null,a)if(a.hasOwnProperty(c)){var s=a[c];"children"===c?"string"===typeof s?r.textContent!==s&&(!0!==a.suppressHydrationWarning&&Zr(r.textContent,s,e),o=["children",s]):"number"===typeof s&&r.textContent!==""+s&&(!0!==a.suppressHydrationWarning&&Zr(r.textContent,s,e),o=["children",""+s]):l.hasOwnProperty(c)&&null!=s&&"onScroll"===c&&Br("scroll",r)}switch(n){case"input":U(r),J(r,a,!0);break;case"textarea":U(r),ae(r);break;case"select":case"option":break;default:"function"===typeof a.onClick&&(r.onclick=Jr)}r=o,t.updateQueue=r,null!==r&&(t.flags|=4)}else{c=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=le(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=c.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=c.createElement(n,{is:r.is}):(e=c.createElement(n),"select"===n&&(c=e,r.multiple?c.multiple=!0:r.size&&(c.size=r.size))):e=c.createElementNS(e,n),e[po]=t,e[ho]=r,Il(e,t,!1,!1),t.stateNode=e;e:{switch(c=be(n,r),n){case"dialog":Br("cancel",e),Br("close",e),o=r;break;case"iframe":case"object":case"embed":Br("load",e),o=r;break;case"video":case"audio":for(o=0;o<Rr.length;o++)Br(Rr[o],e);o=r;break;case"source":Br("error",e),o=r;break;case"img":case"image":case"link":Br("error",e),Br("load",e),o=r;break;case"details":Br("toggle",e),o=r;break;case"input":$(e,r),o=K(e,r),Br("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=N({},r,{value:void 0}),Br("invalid",e);break;case"textarea":oe(e,r),o=re(e,r),Br("invalid",e)}for(a in ye(n,o),s=o)if(s.hasOwnProperty(a)){var u=s[a];"style"===a?ve(e,u):"dangerouslySetInnerHTML"===a?null!=(u=u?u.__html:void 0)&&de(e,u):"children"===a?"string"===typeof u?("textarea"!==n||""!==u)&&fe(e,u):"number"===typeof u&&fe(e,""+u):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(l.hasOwnProperty(a)?null!=u&&"onScroll"===a&&Br("scroll",e):null!=u&&b(e,a,u,c))}switch(n){case"input":U(e),J(e,r,!1);break;case"textarea":U(e),ae(e);break;case"option":null!=r.value&&e.setAttribute("value",""+G(r.value));break;case"select":e.multiple=!!r.multiple,null!=(a=r.value)?ne(e,!!r.multiple,a,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof o.onClick&&(e.onclick=Jr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Ul(t),null;case 6:if(e&&null!=t.stateNode)Ll(e,t,e.memoizedProps,r);else{if("string"!==typeof r&&null===t.stateNode)throw Error(i(166));if(n=Ki(qi.current),Ki(Ui.current),fi(t)){if(r=t.stateNode,n=t.memoizedProps,r[po]=t,(a=r.nodeValue!==n)&&null!==(e=ri))switch(e.tag){case 3:Zr(r.nodeValue,n,0!==(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Zr(r.nodeValue,n,0!==(1&e.mode))}a&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[po]=t,t.stateNode=r}return Ul(t),null;case 13:if(Eo(ea),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ii&&null!==oi&&0!==(1&t.mode)&&0===(128&t.flags))pi(),hi(),t.flags|=98560,a=!1;else if(a=fi(t),null!==r&&null!==r.dehydrated){if(null===e){if(!a)throw Error(i(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(i(317));a[po]=t}else hi(),0===(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Ul(t),a=!1}else null!==ai&&(as(ai),ai=null),a=!0;if(!a)return 65536&t.flags?t:null}return 0!==(128&t.flags)?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!==(1&t.mode)&&(null===e||0!==(1&ea.current)?0===Lc&&(Lc=3):gs())),null!==t.updateQueue&&(t.flags|=4),Ul(t),null);case 4:return Qi(),Tl(e,t),null===e&&Wr(t.stateNode.containerInfo),Ul(t),null;case 10:return Mi(t.type._context),Ul(t),null;case 19:if(Eo(ea),null===(a=t.memoizedState))return Ul(t),null;if(r=0!==(128&t.flags),null===(c=a.rendering))if(r)Yl(a,!1);else{if(0!==Lc||null!==e&&0!==(128&e.flags))for(e=t.child;null!==e;){if(null!==(c=ta(e))){for(t.flags|=128,Yl(a,!1),null!==(r=c.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(a=n).flags&=14680066,null===(c=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=c.childLanes,a.lanes=c.lanes,a.child=c.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=c.memoizedProps,a.memoizedState=c.memoizedState,a.updateQueue=c.updateQueue,a.type=c.type,e=c.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Po(ea,1&ea.current|2),t.child}e=e.sibling}null!==a.tail&&Qe()>Wc&&(t.flags|=128,r=!0,Yl(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ta(c))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Yl(a,!0),null===a.tail&&"hidden"===a.tailMode&&!c.alternate&&!ii)return Ul(t),null}else 2*Qe()-a.renderingStartTime>Wc&&1073741824!==n&&(t.flags|=128,r=!0,Yl(a,!1),t.lanes=4194304);a.isBackwards?(c.sibling=t.child,t.child=c):(null!==(n=a.last)?n.sibling=c:t.child=c,a.last=c)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Qe(),t.sibling=null,n=ea.current,Po(ea,r?1&n|2:1&n),t):(Ul(t),null);case 22:case 23:return ds(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!==(1&t.mode)?0!==(1073741824&Tc)&&(Ul(t),6&t.subtreeFlags&&(t.flags|=8192)):Ul(t),null;case 24:case 25:return null}throw Error(i(156,t.tag))}function ql(e,t){switch(ni(t),t.tag){case 1:return jo(t.type)&&Lo(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Qi(),Eo(Ao),Eo(ko),ra(),0!==(65536&(e=t.flags))&&0===(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Ji(t),null;case 13:if(Eo(ea),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(i(340));hi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Eo(ea),null;case 4:return Qi(),null;case 10:return Mi(t.type._context),null;case 22:case 23:return ds(),null;default:return null}}Il=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Tl=function(){},jl=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Ki(Ui.current);var i,a=null;switch(n){case"input":o=K(e,o),r=K(e,r),a=[];break;case"select":o=N({},o,{value:void 0}),r=N({},r,{value:void 0}),a=[];break;case"textarea":o=re(e,o),r=re(e,r),a=[];break;default:"function"!==typeof o.onClick&&"function"===typeof r.onClick&&(e.onclick=Jr)}for(u in ye(n,r),n=null,o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&null!=o[u])if("style"===u){var c=o[u];for(i in c)c.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(l.hasOwnProperty(u)?a||(a=[]):(a=a||[]).push(u,null));for(u in r){var s=r[u];if(c=null!=o?o[u]:void 0,r.hasOwnProperty(u)&&s!==c&&(null!=s||null!=c))if("style"===u)if(c){for(i in c)!c.hasOwnProperty(i)||s&&s.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in s)s.hasOwnProperty(i)&&c[i]!==s[i]&&(n||(n={}),n[i]=s[i])}else n||(a||(a=[]),a.push(u,n)),n=s;else"dangerouslySetInnerHTML"===u?(s=s?s.__html:void 0,c=c?c.__html:void 0,null!=s&&c!==s&&(a=a||[]).push(u,s)):"children"===u?"string"!==typeof s&&"number"!==typeof s||(a=a||[]).push(u,""+s):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(l.hasOwnProperty(u)?(null!=s&&"onScroll"===u&&Br("scroll",e),a||c===s||(a=[])):(a=a||[]).push(u,s))}n&&(a=a||[]).push("style",n);var u=a;(t.updateQueue=u)&&(t.flags|=4)}},Ll=function(e,t,n,r){n!==r&&(t.flags|=4)};var Kl=!1,$l=!1,Ql="function"===typeof WeakSet?WeakSet:Set,Zl=null;function Jl(e,t){var n=e.ref;if(null!==n)if("function"===typeof n)try{n(null)}catch(r){_s(e,t,r)}else n.current=null}function ec(e,t,n){try{n()}catch(r){_s(e,t,r)}}var tc=!1;function nc(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,void 0!==i&&ec(t,n,i)}o=o.next}while(o!==r)}}function rc(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function oc(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"===typeof t?t(e):t.current=e}}function ic(e){var t=e.alternate;null!==t&&(e.alternate=null,ic(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[po],delete t[ho],delete t[vo],delete t[mo],delete t[yo])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function ac(e){return 5===e.tag||3===e.tag||4===e.tag}function lc(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||ac(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function cc(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=Jr));else if(4!==r&&null!==(e=e.child))for(cc(e,t,n),e=e.sibling;null!==e;)cc(e,t,n),e=e.sibling}function sc(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(sc(e,t,n),e=e.sibling;null!==e;)sc(e,t,n),e=e.sibling}var uc=null,dc=!1;function fc(e,t,n){for(n=n.child;null!==n;)pc(e,t,n),n=n.sibling}function pc(e,t,n){if(it&&"function"===typeof it.onCommitFiberUnmount)try{it.onCommitFiberUnmount(ot,n)}catch(l){}switch(n.tag){case 5:$l||Jl(n,t);case 6:var r=uc,o=dc;uc=null,fc(e,t,n),dc=o,null!==(uc=r)&&(dc?(e=uc,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):uc.removeChild(n.stateNode));break;case 18:null!==uc&&(dc?(e=uc,n=n.stateNode,8===e.nodeType?co(e.parentNode,n):1===e.nodeType&&co(e,n),Wt(e)):co(uc,n.stateNode));break;case 4:r=uc,o=dc,uc=n.stateNode.containerInfo,dc=!0,fc(e,t,n),uc=r,dc=o;break;case 0:case 11:case 14:case 15:if(!$l&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,void 0!==a&&(0!==(2&i)||0!==(4&i))&&ec(n,t,a),o=o.next}while(o!==r)}fc(e,t,n);break;case 1:if(!$l&&(Jl(n,t),"function"===typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){_s(n,t,l)}fc(e,t,n);break;case 21:fc(e,t,n);break;case 22:1&n.mode?($l=(r=$l)||null!==n.memoizedState,fc(e,t,n),$l=r):fc(e,t,n);break;default:fc(e,t,n)}}function hc(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Ql),t.forEach((function(t){var r=Ms.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function gc(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r];try{var a=e,l=t,c=l;e:for(;null!==c;){switch(c.tag){case 5:uc=c.stateNode,dc=!1;break e;case 3:case 4:uc=c.stateNode.containerInfo,dc=!0;break e}c=c.return}if(null===uc)throw Error(i(160));pc(a,l,o),uc=null,dc=!1;var s=o.alternate;null!==s&&(s.return=null),o.return=null}catch(u){_s(o,t,u)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)vc(t,e),t=t.sibling}function vc(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(gc(t,e),mc(e),4&r){try{nc(3,e,e.return),rc(3,e)}catch(v){_s(e,e.return,v)}try{nc(5,e,e.return)}catch(v){_s(e,e.return,v)}}break;case 1:gc(t,e),mc(e),512&r&&null!==n&&Jl(n,n.return);break;case 5:if(gc(t,e),mc(e),512&r&&null!==n&&Jl(n,n.return),32&e.flags){var o=e.stateNode;try{fe(o,"")}catch(v){_s(e,e.return,v)}}if(4&r&&null!=(o=e.stateNode)){var a=e.memoizedProps,l=null!==n?n.memoizedProps:a,c=e.type,s=e.updateQueue;if(e.updateQueue=null,null!==s)try{"input"===c&&"radio"===a.type&&null!=a.name&&Q(o,a),be(c,l);var u=be(c,a);for(l=0;l<s.length;l+=2){var d=s[l],f=s[l+1];"style"===d?ve(o,f):"dangerouslySetInnerHTML"===d?de(o,f):"children"===d?fe(o,f):b(o,d,f,u)}switch(c){case"input":Z(o,a);break;case"textarea":ie(o,a);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!a.multiple;var h=a.value;null!=h?ne(o,!!a.multiple,h,!1):p!==!!a.multiple&&(null!=a.defaultValue?ne(o,!!a.multiple,a.defaultValue,!0):ne(o,!!a.multiple,a.multiple?[]:"",!1))}o[ho]=a}catch(v){_s(e,e.return,v)}}break;case 6:if(gc(t,e),mc(e),4&r){if(null===e.stateNode)throw Error(i(162));o=e.stateNode,a=e.memoizedProps;try{o.nodeValue=a}catch(v){_s(e,e.return,v)}}break;case 3:if(gc(t,e),mc(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Wt(t.containerInfo)}catch(v){_s(e,e.return,v)}break;case 4:default:gc(t,e),mc(e);break;case 13:gc(t,e),mc(e),8192&(o=e.child).flags&&(a=null!==o.memoizedState,o.stateNode.isHidden=a,!a||null!==o.alternate&&null!==o.alternate.memoizedState||(Hc=Qe())),4&r&&hc(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?($l=(u=$l)||d,gc(t,e),$l=u):gc(t,e),mc(e),8192&r){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!d&&0!==(1&e.mode))for(Zl=e,d=e.child;null!==d;){for(f=Zl=d;null!==Zl;){switch(h=(p=Zl).child,p.tag){case 0:case 11:case 14:case 15:nc(4,p,p.return);break;case 1:Jl(p,p.return);var g=p.stateNode;if("function"===typeof g.componentWillUnmount){r=p,n=p.return;try{t=r,g.props=t.memoizedProps,g.state=t.memoizedState,g.componentWillUnmount()}catch(v){_s(r,n,v)}}break;case 5:Jl(p,p.return);break;case 22:if(null!==p.memoizedState){wc(f);continue}}null!==h?(h.return=p,Zl=h):wc(f)}d=d.sibling}e:for(d=null,f=e;;){if(5===f.tag){if(null===d){d=f;try{o=f.stateNode,u?"function"===typeof(a=o.style).setProperty?a.setProperty("display","none","important"):a.display="none":(c=f.stateNode,l=void 0!==(s=f.memoizedProps.style)&&null!==s&&s.hasOwnProperty("display")?s.display:null,c.style.display=ge("display",l))}catch(v){_s(e,e.return,v)}}}else if(6===f.tag){if(null===d)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(v){_s(e,e.return,v)}}else if((22!==f.tag&&23!==f.tag||null===f.memoizedState||f===e)&&null!==f.child){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;null===f.sibling;){if(null===f.return||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:gc(t,e),mc(e),4&r&&hc(e);case 21:}}function mc(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(ac(n)){var r=n;break e}n=n.return}throw Error(i(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(fe(o,""),r.flags&=-33),sc(e,lc(e),o);break;case 3:case 4:var a=r.stateNode.containerInfo;cc(e,lc(e),a);break;default:throw Error(i(161))}}catch(l){_s(e,e.return,l)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function yc(e,t,n){Zl=e,bc(e,t,n)}function bc(e,t,n){for(var r=0!==(1&e.mode);null!==Zl;){var o=Zl,i=o.child;if(22===o.tag&&r){var a=null!==o.memoizedState||Kl;if(!a){var l=o.alternate,c=null!==l&&null!==l.memoizedState||$l;l=Kl;var s=$l;if(Kl=a,($l=c)&&!s)for(Zl=o;null!==Zl;)c=(a=Zl).child,22===a.tag&&null!==a.memoizedState?Sc(o):null!==c?(c.return=a,Zl=c):Sc(o);for(;null!==i;)Zl=i,bc(i,t,n),i=i.sibling;Zl=o,Kl=l,$l=s}xc(e)}else 0!==(8772&o.subtreeFlags)&&null!==i?(i.return=o,Zl=i):xc(e)}}function xc(e){for(;null!==Zl;){var t=Zl;if(0!==(8772&t.flags)){var n=t.alternate;try{if(0!==(8772&t.flags))switch(t.tag){case 0:case 11:case 15:$l||rc(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!$l)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:nl(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&Gi(t,a,r);break;case 3:var l=t.updateQueue;if(null!==l){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Gi(t,l,n)}break;case 5:var c=t.stateNode;if(null===n&&4&t.flags){n=c;var s=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":s.autoFocus&&n.focus();break;case"img":s.src&&(n.src=s.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var d=u.memoizedState;if(null!==d){var f=d.dehydrated;null!==f&&Wt(f)}}}break;default:throw Error(i(163))}$l||512&t.flags&&oc(t)}catch(p){_s(t,t.return,p)}}if(t===e){Zl=null;break}if(null!==(n=t.sibling)){n.return=t.return,Zl=n;break}Zl=t.return}}function wc(e){for(;null!==Zl;){var t=Zl;if(t===e){Zl=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Zl=n;break}Zl=t.return}}function Sc(e){for(;null!==Zl;){var t=Zl;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{rc(4,t)}catch(c){_s(t,n,c)}break;case 1:var r=t.stateNode;if("function"===typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(c){_s(t,o,c)}}var i=t.return;try{oc(t)}catch(c){_s(t,i,c)}break;case 5:var a=t.return;try{oc(t)}catch(c){_s(t,a,c)}}}catch(c){_s(t,t.return,c)}if(t===e){Zl=null;break}var l=t.sibling;if(null!==l){l.return=t.return,Zl=l;break}Zl=t.return}}var Oc,_c=Math.ceil,Cc=x.ReactCurrentDispatcher,Ec=x.ReactCurrentOwner,Pc=x.ReactCurrentBatchConfig,Mc=0,kc=null,Ac=null,Ic=0,Tc=0,jc=Co(0),Lc=0,Rc=null,Dc=0,Nc=0,Fc=0,Bc=null,zc=null,Hc=0,Wc=1/0,Vc=null,Gc=!1,Yc=null,Uc=null,Xc=!1,qc=null,Kc=0,$c=0,Qc=null,Zc=-1,Jc=0;function es(){return 0!==(6&Mc)?Qe():-1!==Zc?Zc:Zc=Qe()}function ts(e){return 0===(1&e.mode)?1:0!==(2&Mc)&&0!==Ic?Ic&-Ic:null!==vi.transition?(0===Jc&&(Jc=gt()),Jc):0!==(e=bt)?e:e=void 0===(e=window.event)?16:$t(e.type)}function ns(e,t,n,r){if(50<$c)throw $c=0,Qc=null,Error(i(185));mt(e,n,r),0!==(2&Mc)&&e===kc||(e===kc&&(0===(2&Mc)&&(Nc|=n),4===Lc&&ls(e,Ic)),rs(e,r),1===n&&0===Mc&&0===(1&t.mode)&&(Wc=Qe()+500,zo&&Vo()))}function rs(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-at(i),l=1<<a,c=o[a];-1===c?0!==(l&n)&&0===(l&r)||(o[a]=pt(l,t)):c<=t&&(e.expiredLanes|=l),i&=~l}}(e,t);var r=ft(e,e===kc?Ic:0);if(0===r)null!==n&&qe(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&qe(n),1===t)0===e.tag?function(e){zo=!0,Wo(e)}(cs.bind(null,e)):Wo(cs.bind(null,e)),ao((function(){0===(6&Mc)&&Vo()})),n=null;else{switch(xt(r)){case 1:n=Je;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=ks(n,os.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function os(e,t){if(Zc=-1,Jc=0,0!==(6&Mc))throw Error(i(327));var n=e.callbackNode;if(Ss()&&e.callbackNode!==n)return null;var r=ft(e,e===kc?Ic:0);if(0===r)return null;if(0!==(30&r)||0!==(r&e.expiredLanes)||t)t=vs(e,r);else{t=r;var o=Mc;Mc|=2;var a=hs();for(kc===e&&Ic===t||(Vc=null,Wc=Qe()+500,fs(e,t));;)try{ys();break}catch(c){ps(e,c)}Pi(),Cc.current=a,Mc=o,null!==Ac?t=0:(kc=null,Ic=0,t=Lc)}if(0!==t){if(2===t&&(0!==(o=ht(e))&&(r=o,t=is(e,o))),1===t)throw n=Rc,fs(e,0),ls(e,r),rs(e,Qe()),n;if(6===t)ls(e,r);else{if(o=e.current.alternate,0===(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!lr(i(),o))return!1}catch(l){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)&&(2===(t=vs(e,r))&&(0!==(a=ht(e))&&(r=a,t=is(e,a))),1===t))throw n=Rc,fs(e,0),ls(e,r),rs(e,Qe()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(i(345));case 2:case 5:ws(e,zc,Vc);break;case 3:if(ls(e,r),(130023424&r)===r&&10<(t=Hc+500-Qe())){if(0!==ft(e,0))break;if(((o=e.suspendedLanes)&r)!==r){es(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=ro(ws.bind(null,e,zc,Vc),t);break}ws(e,zc,Vc);break;case 4:if(ls(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var l=31-at(r);a=1<<l,(l=t[l])>o&&(o=l),r&=~a}if(r=o,10<(r=(120>(r=Qe()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*_c(r/1960))-r)){e.timeoutHandle=ro(ws.bind(null,e,zc,Vc),r);break}ws(e,zc,Vc);break;default:throw Error(i(329))}}}return rs(e,Qe()),e.callbackNode===n?os.bind(null,e):null}function is(e,t){var n=Bc;return e.current.memoizedState.isDehydrated&&(fs(e,t).flags|=256),2!==(e=vs(e,t))&&(t=zc,zc=n,null!==t&&as(t)),e}function as(e){null===zc?zc=e:zc.push.apply(zc,e)}function ls(e,t){for(t&=~Fc,t&=~Nc,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-at(t),r=1<<n;e[n]=-1,t&=~r}}function cs(e){if(0!==(6&Mc))throw Error(i(327));Ss();var t=ft(e,0);if(0===(1&t))return rs(e,Qe()),null;var n=vs(e,t);if(0!==e.tag&&2===n){var r=ht(e);0!==r&&(t=r,n=is(e,r))}if(1===n)throw n=Rc,fs(e,0),ls(e,t),rs(e,Qe()),n;if(6===n)throw Error(i(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,ws(e,zc,Vc),rs(e,Qe()),null}function ss(e,t){var n=Mc;Mc|=1;try{return e(t)}finally{0===(Mc=n)&&(Wc=Qe()+500,zo&&Vo())}}function us(e){null!==qc&&0===qc.tag&&0===(6&Mc)&&Ss();var t=Mc;Mc|=1;var n=Pc.transition,r=bt;try{if(Pc.transition=null,bt=1,e)return e()}finally{bt=r,Pc.transition=n,0===(6&(Mc=t))&&Vo()}}function ds(){Tc=jc.current,Eo(jc)}function fs(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,oo(n)),null!==Ac)for(n=Ac.return;null!==n;){var r=n;switch(ni(r),r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&Lo();break;case 3:Qi(),Eo(Ao),Eo(ko),ra();break;case 5:Ji(r);break;case 4:Qi();break;case 13:case 19:Eo(ea);break;case 10:Mi(r.type._context);break;case 22:case 23:ds()}n=n.return}if(kc=e,Ac=e=js(e.current,null),Ic=Tc=t,Lc=0,Rc=null,Fc=Nc=Dc=0,zc=Bc=null,null!==Ti){for(t=0;t<Ti.length;t++)if(null!==(r=(n=Ti[t]).interleaved)){n.interleaved=null;var o=r.next,i=n.pending;if(null!==i){var a=i.next;i.next=o,r.next=a}n.pending=r}Ti=null}return e}function ps(e,t){for(;;){var n=Ac;try{if(Pi(),oa.current=Za,ua){for(var r=la.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}ua=!1}if(aa=0,sa=ca=la=null,da=!1,fa=0,Ec.current=null,null===n||null===n.return){Lc=1,Rc=t,Ac=null;break}e:{var a=e,l=n.return,c=n,s=t;if(t=Ic,c.flags|=32768,null!==s&&"object"===typeof s&&"function"===typeof s.then){var u=s,d=c,f=d.tag;if(0===(1&d.mode)&&(0===f||11===f||15===f)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var h=vl(l);if(null!==h){h.flags&=-257,ml(h,l,c,0,t),1&h.mode&&gl(a,u,t),s=u;var g=(t=h).updateQueue;if(null===g){var v=new Set;v.add(s),t.updateQueue=v}else g.add(s);break e}if(0===(1&t)){gl(a,u,t),gs();break e}s=Error(i(426))}else if(ii&&1&c.mode){var m=vl(l);if(null!==m){0===(65536&m.flags)&&(m.flags|=256),ml(m,l,c,0,t),gi(sl(s,c));break e}}a=s=sl(s,c),4!==Lc&&(Lc=2),null===Bc?Bc=[a]:Bc.push(a),a=l;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,Wi(a,pl(0,s,t));break e;case 1:c=s;var y=a.type,b=a.stateNode;if(0===(128&a.flags)&&("function"===typeof y.getDerivedStateFromError||null!==b&&"function"===typeof b.componentDidCatch&&(null===Uc||!Uc.has(b)))){a.flags|=65536,t&=-t,a.lanes|=t,Wi(a,hl(a,c,t));break e}}a=a.return}while(null!==a)}xs(n)}catch(x){t=x,Ac===n&&null!==n&&(Ac=n=n.return);continue}break}}function hs(){var e=Cc.current;return Cc.current=Za,null===e?Za:e}function gs(){0!==Lc&&3!==Lc&&2!==Lc||(Lc=4),null===kc||0===(268435455&Dc)&&0===(268435455&Nc)||ls(kc,Ic)}function vs(e,t){var n=Mc;Mc|=2;var r=hs();for(kc===e&&Ic===t||(Vc=null,fs(e,t));;)try{ms();break}catch(o){ps(e,o)}if(Pi(),Mc=n,Cc.current=r,null!==Ac)throw Error(i(261));return kc=null,Ic=0,Lc}function ms(){for(;null!==Ac;)bs(Ac)}function ys(){for(;null!==Ac&&!Ke();)bs(Ac)}function bs(e){var t=Oc(e.alternate,e,Tc);e.memoizedProps=e.pendingProps,null===t?xs(e):Ac=t,Ec.current=null}function xs(e){var t=e;do{var n=t.alternate;if(e=t.return,0===(32768&t.flags)){if(null!==(n=Xl(n,t,Tc)))return void(Ac=n)}else{if(null!==(n=ql(n,t)))return n.flags&=32767,void(Ac=n);if(null===e)return Lc=6,void(Ac=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Ac=t);Ac=t=e}while(null!==t);0===Lc&&(Lc=5)}function ws(e,t,n){var r=bt,o=Pc.transition;try{Pc.transition=null,bt=1,function(e,t,n,r){do{Ss()}while(null!==qc);if(0!==(6&Mc))throw Error(i(327));n=e.finishedWork;var o=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(i(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-at(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}(e,a),e===kc&&(Ac=kc=null,Ic=0),0===(2064&n.subtreeFlags)&&0===(2064&n.flags)||Xc||(Xc=!0,ks(tt,(function(){return Ss(),null}))),a=0!==(15990&n.flags),0!==(15990&n.subtreeFlags)||a){a=Pc.transition,Pc.transition=null;var l=bt;bt=1;var c=Mc;Mc|=4,Ec.current=null,function(e,t){if(eo=Gt,pr(e=fr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch(w){n=null;break e}var l=0,c=-1,s=-1,u=0,d=0,f=e,p=null;t:for(;;){for(var h;f!==n||0!==o&&3!==f.nodeType||(c=l+o),f!==a||0!==r&&3!==f.nodeType||(s=l+r),3===f.nodeType&&(l+=f.nodeValue.length),null!==(h=f.firstChild);)p=f,f=h;for(;;){if(f===e)break t;if(p===n&&++u===o&&(c=l),p===a&&++d===r&&(s=l),null!==(h=f.nextSibling))break;p=(f=p).parentNode}f=h}n=-1===c||-1===s?null:{start:c,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(to={focusedElem:e,selectionRange:n},Gt=!1,Zl=t;null!==Zl;)if(e=(t=Zl).child,0!==(1028&t.subtreeFlags)&&null!==e)e.return=t,Zl=e;else for(;null!==Zl;){t=Zl;try{var g=t.alternate;if(0!==(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==g){var v=g.memoizedProps,m=g.memoizedState,y=t.stateNode,b=y.getSnapshotBeforeUpdate(t.elementType===t.type?v:nl(t.type,v),m);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var x=t.stateNode.containerInfo;1===x.nodeType?x.textContent="":9===x.nodeType&&x.documentElement&&x.removeChild(x.documentElement);break;default:throw Error(i(163))}}catch(w){_s(t,t.return,w)}if(null!==(e=t.sibling)){e.return=t.return,Zl=e;break}Zl=t.return}g=tc,tc=!1}(e,n),vc(n,e),hr(to),Gt=!!eo,to=eo=null,e.current=n,yc(n,e,o),$e(),Mc=c,bt=l,Pc.transition=a}else e.current=n;if(Xc&&(Xc=!1,qc=e,Kc=o),a=e.pendingLanes,0===a&&(Uc=null),function(e){if(it&&"function"===typeof it.onCommitFiberRoot)try{it.onCommitFiberRoot(ot,e,void 0,128===(128&e.current.flags))}catch(t){}}(n.stateNode),rs(e,Qe()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(Gc)throw Gc=!1,e=Yc,Yc=null,e;0!==(1&Kc)&&0!==e.tag&&Ss(),a=e.pendingLanes,0!==(1&a)?e===Qc?$c++:($c=0,Qc=e):$c=0,Vo()}(e,t,n,r)}finally{Pc.transition=o,bt=r}return null}function Ss(){if(null!==qc){var e=xt(Kc),t=Pc.transition,n=bt;try{if(Pc.transition=null,bt=16>e?16:e,null===qc)var r=!1;else{if(e=qc,qc=null,Kc=0,0!==(6&Mc))throw Error(i(331));var o=Mc;for(Mc|=4,Zl=e.current;null!==Zl;){var a=Zl,l=a.child;if(0!==(16&Zl.flags)){var c=a.deletions;if(null!==c){for(var s=0;s<c.length;s++){var u=c[s];for(Zl=u;null!==Zl;){var d=Zl;switch(d.tag){case 0:case 11:case 15:nc(8,d,a)}var f=d.child;if(null!==f)f.return=d,Zl=f;else for(;null!==Zl;){var p=(d=Zl).sibling,h=d.return;if(ic(d),d===u){Zl=null;break}if(null!==p){p.return=h,Zl=p;break}Zl=h}}}var g=a.alternate;if(null!==g){var v=g.child;if(null!==v){g.child=null;do{var m=v.sibling;v.sibling=null,v=m}while(null!==v)}}Zl=a}}if(0!==(2064&a.subtreeFlags)&&null!==l)l.return=a,Zl=l;else e:for(;null!==Zl;){if(0!==(2048&(a=Zl).flags))switch(a.tag){case 0:case 11:case 15:nc(9,a,a.return)}var y=a.sibling;if(null!==y){y.return=a.return,Zl=y;break e}Zl=a.return}}var b=e.current;for(Zl=b;null!==Zl;){var x=(l=Zl).child;if(0!==(2064&l.subtreeFlags)&&null!==x)x.return=l,Zl=x;else e:for(l=b;null!==Zl;){if(0!==(2048&(c=Zl).flags))try{switch(c.tag){case 0:case 11:case 15:rc(9,c)}}catch(S){_s(c,c.return,S)}if(c===l){Zl=null;break e}var w=c.sibling;if(null!==w){w.return=c.return,Zl=w;break e}Zl=c.return}}if(Mc=o,Vo(),it&&"function"===typeof it.onPostCommitFiberRoot)try{it.onPostCommitFiberRoot(ot,e)}catch(S){}r=!0}return r}finally{bt=n,Pc.transition=t}}return!1}function Os(e,t,n){e=zi(e,t=pl(0,t=sl(n,t),1),1),t=es(),null!==e&&(mt(e,1,t),rs(e,t))}function _s(e,t,n){if(3===e.tag)Os(e,e,n);else for(;null!==t;){if(3===t.tag){Os(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"===typeof t.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===Uc||!Uc.has(r))){t=zi(t,e=hl(t,e=sl(n,e),1),1),e=es(),null!==t&&(mt(t,1,e),rs(t,e));break}}t=t.return}}function Cs(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=es(),e.pingedLanes|=e.suspendedLanes&n,kc===e&&(Ic&n)===n&&(4===Lc||3===Lc&&(130023424&Ic)===Ic&&500>Qe()-Hc?fs(e,0):Fc|=n),rs(e,t)}function Es(e,t){0===t&&(0===(1&e.mode)?t=1:(t=ut,0===(130023424&(ut<<=1))&&(ut=4194304)));var n=es();null!==(e=Ri(e,t))&&(mt(e,t,n),rs(e,n))}function Ps(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Es(e,n)}function Ms(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(i(314))}null!==r&&r.delete(t),Es(e,n)}function ks(e,t){return Xe(e,t)}function As(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Is(e,t,n,r){return new As(e,t,n,r)}function Ts(e){return!(!(e=e.prototype)||!e.isReactComponent)}function js(e,t){var n=e.alternate;return null===n?((n=Is(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ls(e,t,n,r,o,a){var l=2;if(r=e,"function"===typeof e)Ts(e)&&(l=1);else if("string"===typeof e)l=5;else e:switch(e){case O:return Rs(n.children,o,a,t);case _:l=8,o|=8;break;case C:return(e=Is(12,n,t,2|o)).elementType=C,e.lanes=a,e;case k:return(e=Is(13,n,t,o)).elementType=k,e.lanes=a,e;case A:return(e=Is(19,n,t,o)).elementType=A,e.lanes=a,e;case j:return Ds(n,o,a,t);default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case E:l=10;break e;case P:l=9;break e;case M:l=11;break e;case I:l=14;break e;case T:l=16,r=null;break e}throw Error(i(130,null==e?e:typeof e,""))}return(t=Is(l,n,t,o)).elementType=e,t.type=r,t.lanes=a,t}function Rs(e,t,n,r){return(e=Is(7,e,r,t)).lanes=n,e}function Ds(e,t,n,r){return(e=Is(22,e,r,t)).elementType=j,e.lanes=n,e.stateNode={isHidden:!1},e}function Ns(e,t,n){return(e=Is(6,e,null,t)).lanes=n,e}function Fs(e,t,n){return(t=Is(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Bs(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=vt(0),this.expirationTimes=vt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=vt(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function zs(e,t,n,r,o,i,a,l,c){return e=new Bs(e,t,n,l,c),1===t?(t=1,!0===i&&(t|=8)):t=0,i=Is(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ni(i),e}function Hs(e){if(!e)return Mo;e:{if(We(e=e._reactInternals)!==e||1!==e.tag)throw Error(i(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(jo(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(i(171))}if(1===e.tag){var n=e.type;if(jo(n))return Do(e,n,t)}return t}function Ws(e,t,n,r,o,i,a,l,c){return(e=zs(n,r,!0,e,0,i,0,l,c)).context=Hs(null),n=e.current,(i=Bi(r=es(),o=ts(n))).callback=void 0!==t&&null!==t?t:null,zi(n,i,o),e.current.lanes=o,mt(e,o,r),rs(e,r),e}function Vs(e,t,n,r){var o=t.current,i=es(),a=ts(o);return n=Hs(n),null===t.context?t.context=n:t.pendingContext=n,(t=Bi(i,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=zi(o,t,a))&&(ns(e,o,a,i),Hi(e,o,a)),a}function Gs(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Ys(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Us(e,t){Ys(e,t),(e=e.alternate)&&Ys(e,t)}Oc=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Ao.current)bl=!0;else{if(0===(e.lanes&n)&&0===(128&t.flags))return bl=!1,function(e,t,n){switch(t.tag){case 3:kl(t),hi();break;case 5:Zi(t);break;case 1:jo(t.type)&&No(t);break;case 4:$i(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Po(Oi,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Po(ea,1&ea.current),t.flags|=128,null):0!==(n&t.child.childLanes)?Nl(e,t,n):(Po(ea,1&ea.current),null!==(e=Gl(e,t,n))?e.sibling:null);Po(ea,1&ea.current);break;case 19:if(r=0!==(n&t.childLanes),0!==(128&e.flags)){if(r)return Wl(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),Po(ea,ea.current),r)break;return null;case 22:case 23:return t.lanes=0,_l(e,t,n)}return Gl(e,t,n)}(e,t,n);bl=0!==(131072&e.flags)}else bl=!1,ii&&0!==(1048576&t.flags)&&ei(t,Xo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Vl(e,t),e=t.pendingProps;var o=To(t,ko.current);Ai(t,n),o=va(null,t,r,e,o,n);var a=ma();return t.flags|=1,"object"===typeof o&&null!==o&&"function"===typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,jo(r)?(a=!0,No(t)):a=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Ni(t),o.updater=ol,t.stateNode=o,o._reactInternals=t,cl(t,r,e,n),t=Ml(null,t,r,!0,a,n)):(t.tag=0,ii&&a&&ti(t),xl(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Vl(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"===typeof e)return Ts(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===M)return 11;if(e===I)return 14}return 2}(r),e=nl(r,e),o){case 0:t=El(null,t,r,e,n);break e;case 1:t=Pl(null,t,r,e,n);break e;case 11:t=wl(null,t,r,e,n);break e;case 14:t=Sl(null,t,r,nl(r.type,e),n);break e}throw Error(i(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,El(e,t,r,o=t.elementType===r?o:nl(r,o),n);case 1:return r=t.type,o=t.pendingProps,Pl(e,t,r,o=t.elementType===r?o:nl(r,o),n);case 3:e:{if(kl(t),null===e)throw Error(i(387));r=t.pendingProps,o=(a=t.memoizedState).element,Fi(e,t),Vi(t,r,null,n);var l=t.memoizedState;if(r=l.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Al(e,t,r,n,o=sl(Error(i(423)),t));break e}if(r!==o){t=Al(e,t,r,n,o=sl(Error(i(424)),t));break e}for(oi=so(t.stateNode.containerInfo.firstChild),ri=t,ii=!0,ai=null,n=Si(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(hi(),r===o){t=Gl(e,t,n);break e}xl(e,t,r,n)}t=t.child}return t;case 5:return Zi(t),null===e&&ui(t),r=t.type,o=t.pendingProps,a=null!==e?e.memoizedProps:null,l=o.children,no(r,o)?l=null:null!==a&&no(r,a)&&(t.flags|=32),Cl(e,t),xl(e,t,l,n),t.child;case 6:return null===e&&ui(t),null;case 13:return Nl(e,t,n);case 4:return $i(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=wi(t,null,r,n):xl(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,wl(e,t,r,o=t.elementType===r?o:nl(r,o),n);case 7:return xl(e,t,t.pendingProps,n),t.child;case 8:case 12:return xl(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,a=t.memoizedProps,l=o.value,Po(Oi,r._currentValue),r._currentValue=l,null!==a)if(lr(a.value,l)){if(a.children===o.children&&!Ao.current){t=Gl(e,t,n);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var c=a.dependencies;if(null!==c){l=a.child;for(var s=c.firstContext;null!==s;){if(s.context===r){if(1===a.tag){(s=Bi(-1,n&-n)).tag=2;var u=a.updateQueue;if(null!==u){var d=(u=u.shared).pending;null===d?s.next=s:(s.next=d.next,d.next=s),u.pending=s}}a.lanes|=n,null!==(s=a.alternate)&&(s.lanes|=n),ki(a.return,n,t),c.lanes|=n;break}s=s.next}}else if(10===a.tag)l=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(l=a.return))throw Error(i(341));l.lanes|=n,null!==(c=l.alternate)&&(c.lanes|=n),ki(l,n,t),l=a.sibling}else l=a.child;if(null!==l)l.return=a;else for(l=a;null!==l;){if(l===t){l=null;break}if(null!==(a=l.sibling)){a.return=l.return,l=a;break}l=l.return}a=l}xl(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Ai(t,n),r=r(o=Ii(o)),t.flags|=1,xl(e,t,r,n),t.child;case 14:return o=nl(r=t.type,t.pendingProps),Sl(e,t,r,o=nl(r.type,o),n);case 15:return Ol(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:nl(r,o),Vl(e,t),t.tag=1,jo(r)?(e=!0,No(t)):e=!1,Ai(t,n),al(t,r,o),cl(t,r,o,n),Ml(null,t,r,!0,e,n);case 19:return Wl(e,t,n);case 22:return _l(e,t,n)}throw Error(i(156,t.tag))};var Xs="function"===typeof reportError?reportError:function(e){console.error(e)};function qs(e){this._internalRoot=e}function Ks(e){this._internalRoot=e}function $s(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Qs(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Zs(){}function Js(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i;if("function"===typeof o){var l=o;o=function(){var e=Gs(a);l.call(e)}}Vs(t,a,e,o)}else a=function(e,t,n,r,o){if(o){if("function"===typeof r){var i=r;r=function(){var e=Gs(a);i.call(e)}}var a=Ws(t,r,e,0,null,!1,0,"",Zs);return e._reactRootContainer=a,e[go]=a.current,Wr(8===e.nodeType?e.parentNode:e),us(),a}for(;o=e.lastChild;)e.removeChild(o);if("function"===typeof r){var l=r;r=function(){var e=Gs(c);l.call(e)}}var c=zs(e,0,!1,null,0,!1,0,"",Zs);return e._reactRootContainer=c,e[go]=c.current,Wr(8===e.nodeType?e.parentNode:e),us((function(){Vs(t,c,n,r)})),c}(n,t,e,o,r);return Gs(a)}Ks.prototype.render=qs.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(i(409));Vs(e,t,null,null)},Ks.prototype.unmount=qs.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;us((function(){Vs(null,e,null,null)})),t[go]=null}},Ks.prototype.unstable_scheduleHydration=function(e){if(e){var t=_t();e={blockedOn:null,target:e,priority:t};for(var n=0;n<jt.length&&0!==t&&t<jt[n].priority;n++);jt.splice(n,0,e),0===n&&Nt(e)}},wt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(yt(t,1|n),rs(t,Qe()),0===(6&Mc)&&(Wc=Qe()+500,Vo()))}break;case 13:us((function(){var t=Ri(e,1);if(null!==t){var n=es();ns(t,e,1,n)}})),Us(e,1)}},St=function(e){if(13===e.tag){var t=Ri(e,134217728);if(null!==t)ns(t,e,134217728,es());Us(e,134217728)}},Ot=function(e){if(13===e.tag){var t=ts(e),n=Ri(e,t);if(null!==n)ns(n,e,t,es());Us(e,t)}},_t=function(){return bt},Ct=function(e,t){var n=bt;try{return bt=e,t()}finally{bt=n}},Se=function(e,t,n){switch(t){case"input":if(Z(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=So(r);if(!o)throw Error(i(90));X(r),Z(r,o)}}}break;case"textarea":ie(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Me=ss,ke=us;var eu={usingClientEntryPoint:!1,Events:[xo,wo,So,Ee,Pe,ss]},tu={findFiberByHostInstance:bo,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},nu={bundleType:tu.bundleType,version:tu.version,rendererPackageName:tu.rendererPackageName,rendererConfig:tu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:x.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ye(e))?null:e.stateNode},findFiberByHostInstance:tu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ru=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ru.isDisabled&&ru.supportsFiber)try{ot=ru.inject(nu),it=ru}catch(ue){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=eu,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!$s(t))throw Error(i(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:S,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!$s(e))throw Error(i(299));var n=!1,r="",o=Xs;return null!==t&&void 0!==t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=zs(e,1,!1,null,0,n,0,r,o),e[go]=t.current,Wr(8===e.nodeType?e.parentNode:e),new qs(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(i(188));throw e=Object.keys(e).join(","),Error(i(268,e))}return e=null===(e=Ye(t))?null:e.stateNode},t.flushSync=function(e){return us(e)},t.hydrate=function(e,t,n){if(!Qs(t))throw Error(i(200));return Js(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!$s(e))throw Error(i(405));var r=null!=n&&n.hydratedSources||null,o=!1,a="",l=Xs;if(null!==n&&void 0!==n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(l=n.onRecoverableError)),t=Ws(t,null,e,1,null!=n?n:null,o,0,a,l),e[go]=t.current,Wr(e),r)for(e=0;e<r.length;e++)o=(o=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Ks(t)},t.render=function(e,t,n){if(!Qs(t))throw Error(i(200));return Js(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Qs(e))throw Error(i(40));return!!e._reactRootContainer&&(us((function(){Js(null,null,e,!1,(function(){e._reactRootContainer=null,e[go]=null}))})),!0)},t.unstable_batchedUpdates=ss,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Qs(n))throw Error(i(200));if(null==e||void 0===e._reactInternals)throw Error(i(38));return Js(e,t,n,!1,r)},t.version="18.3.1-next-f1338f8080-20240426"},4391:(e,t,n)=>{"use strict";var r=n(7950);t.H=r.createRoot,r.hydrateRoot},7950:(e,t,n)=>{"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(2730)},5082:(e,t)=>{"use strict";var n,r=Symbol.for("react.element"),o=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),s=Symbol.for("react.context"),u=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen");function m(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case i:case l:case a:case f:case p:return e;default:switch(e=e&&e.$$typeof){case u:case s:case d:case g:case h:case c:return e;default:return t}}case o:return t}}}n=Symbol.for("react.module.reference"),t.ForwardRef=d,t.isFragment=function(e){return m(e)===i},t.isMemo=function(e){return m(e)===h}},2086:(e,t,n)=>{"use strict";e.exports=n(5082)},1153:(e,t,n)=>{"use strict";var r=n(5043),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,l=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function s(e,t,n){var r,i={},s=null,u=null;for(r in void 0!==n&&(s=""+n),void 0!==t.key&&(s=""+t.key),void 0!==t.ref&&(u=t.ref),t)a.call(t,r)&&!c.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:s,ref:u,props:i,_owner:l.current}}t.jsx=s,t.jsxs=s},4202:(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"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.iterator;var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,v={};function m(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||h}function y(){}function b(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||h}m.prototype.isReactComponent={},m.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},m.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=m.prototype;var x=b.prototype=new y;x.constructor=b,g(x,m.prototype),x.isPureReactComponent=!0;var w=Array.isArray,S=Object.prototype.hasOwnProperty,O={current:null},_={key:!0,ref:!0,__self:!0,__source:!0};function C(e,t,r){var o,i={},a=null,l=null;if(null!=t)for(o in void 0!==t.ref&&(l=t.ref),void 0!==t.key&&(a=""+t.key),t)S.call(t,o)&&!_.hasOwnProperty(o)&&(i[o]=t[o]);var c=arguments.length-2;if(1===c)i.children=r;else if(1<c){for(var s=Array(c),u=0;u<c;u++)s[u]=arguments[u+2];i.children=s}if(e&&e.defaultProps)for(o in c=e.defaultProps)void 0===i[o]&&(i[o]=c[o]);return{$$typeof:n,type:e,key:a,ref:l,props:i,_owner:O.current}}function E(e){return"object"===typeof e&&null!==e&&e.$$typeof===n}var P=/\/+/g;function M(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function k(e,t,o,i,a){var l=typeof e;"undefined"!==l&&"boolean"!==l||(e=null);var c=!1;if(null===e)c=!0;else switch(l){case"string":case"number":c=!0;break;case"object":switch(e.$$typeof){case n:case r:c=!0}}if(c)return a=a(c=e),e=""===i?"."+M(c,0):i,w(a)?(o="",null!=e&&(o=e.replace(P,"$&/")+"/"),k(a,t,o,"",(function(e){return e}))):null!=a&&(E(a)&&(a=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,o+(!a.key||c&&c.key===a.key?"":(""+a.key).replace(P,"$&/")+"/")+e)),t.push(a)),1;if(c=0,i=""===i?".":i+":",w(e))for(var s=0;s<e.length;s++){var u=i+M(l=e[s],s);c+=k(l,t,o,u,a)}else if(u=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e),"function"===typeof u)for(e=u.call(e),s=0;!(l=e.next()).done;)c+=k(l=l.value,t,o,u=i+M(l,s++),a);else if("object"===l)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return c}function A(e,t,n){if(null==e)return e;var r=[],o=0;return k(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function I(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var T={current:null},j={transition:null},L={ReactCurrentDispatcher:T,ReactCurrentBatchConfig:j,ReactCurrentOwner:O};function R(){throw Error("act(...) is not supported in production builds of React.")}t.Children={map:A,forEach:function(e,t,n){A(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return A(e,(function(){t++})),t},toArray:function(e){return A(e,(function(e){return e}))||[]},only:function(e){if(!E(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=m,t.Fragment=o,t.Profiler=a,t.PureComponent=b,t.StrictMode=i,t.Suspense=u,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=L,t.act=R,t.cloneElement=function(e,t,r){if(null===e||void 0===e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=g({},e.props),i=e.key,a=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,l=O.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(s in t)S.call(t,s)&&!_.hasOwnProperty(s)&&(o[s]=void 0===t[s]&&void 0!==c?c[s]:t[s])}var s=arguments.length-2;if(1===s)o.children=r;else if(1<s){c=Array(s);for(var u=0;u<s;u++)c[u]=arguments[u+2];o.children=c}return{$$typeof:n,type:e.type,key:i,ref:a,props:o,_owner:l}},t.createContext=function(e){return(e={$$typeof:c,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:l,_context:e},e.Consumer=e},t.createElement=C,t.createFactory=function(e){var t=C.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:s,render:e}},t.isValidElement=E,t.lazy=function(e){return{$$typeof:f,_payload:{_status:-1,_result:e},_init:I}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=j.transition;j.transition={};try{e()}finally{j.transition=t}},t.unstable_act=R,t.useCallback=function(e,t){return T.current.useCallback(e,t)},t.useContext=function(e){return T.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return T.current.useDeferredValue(e)},t.useEffect=function(e,t){return T.current.useEffect(e,t)},t.useId=function(){return T.current.useId()},t.useImperativeHandle=function(e,t,n){return T.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return T.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return T.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return T.current.useMemo(e,t)},t.useReducer=function(e,t,n){return T.current.useReducer(e,t,n)},t.useRef=function(e){return T.current.useRef(e)},t.useState=function(e){return T.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return T.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return T.current.useTransition()},t.version="18.3.1"},5043:(e,t,n)=>{"use strict";e.exports=n(4202)},579:(e,t,n)=>{"use strict";e.exports=n(1153)},7234:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(!(0<i(o,t)))break e;e[r]=t,e[n]=o,n=r}}function r(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,a=o>>>1;r<a;){var l=2*(r+1)-1,c=e[l],s=l+1,u=e[s];if(0>i(c,n))s<o&&0>i(u,c)?(e[r]=u,e[s]=n,r=s):(e[r]=c,e[l]=n,r=l);else{if(!(s<o&&0>i(u,n)))break e;e[r]=u,e[s]=n,r=s}}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"===typeof performance&&"function"===typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var l=Date,c=l.now();t.unstable_now=function(){return l.now()-c}}var s=[],u=[],d=1,f=null,p=3,h=!1,g=!1,v=!1,m="function"===typeof setTimeout?setTimeout:null,y="function"===typeof clearTimeout?clearTimeout:null,b="undefined"!==typeof setImmediate?setImmediate:null;function x(e){for(var t=r(u);null!==t;){if(null===t.callback)o(u);else{if(!(t.startTime<=e))break;o(u),t.sortIndex=t.expirationTime,n(s,t)}t=r(u)}}function w(e){if(v=!1,x(e),!g)if(null!==r(s))g=!0,j(S);else{var t=r(u);null!==t&&L(w,t.startTime-e)}}function S(e,n){g=!1,v&&(v=!1,y(E),E=-1),h=!0;var i=p;try{for(x(n),f=r(s);null!==f&&(!(f.expirationTime>n)||e&&!k());){var a=f.callback;if("function"===typeof a){f.callback=null,p=f.priorityLevel;var l=a(f.expirationTime<=n);n=t.unstable_now(),"function"===typeof l?f.callback=l:f===r(s)&&o(s),x(n)}else o(s);f=r(s)}if(null!==f)var c=!0;else{var d=r(u);null!==d&&L(w,d.startTime-n),c=!1}return c}finally{f=null,p=i,h=!1}}"undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var O,_=!1,C=null,E=-1,P=5,M=-1;function k(){return!(t.unstable_now()-M<P)}function A(){if(null!==C){var e=t.unstable_now();M=e;var n=!0;try{n=C(!0,e)}finally{n?O():(_=!1,C=null)}}else _=!1}if("function"===typeof b)O=function(){b(A)};else if("undefined"!==typeof MessageChannel){var I=new MessageChannel,T=I.port2;I.port1.onmessage=A,O=function(){T.postMessage(null)}}else O=function(){m(A,0)};function j(e){C=e,_||(_=!0,O())}function L(e,n){E=m((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){g||h||(g=!0,j(S))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return p},t.unstable_getFirstCallbackNode=function(){return r(s)},t.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},t.unstable_scheduleCallback=function(e,o,i){var a=t.unstable_now();switch("object"===typeof i&&null!==i?i="number"===typeof(i=i.delay)&&0<i?a+i:a:i=a,e){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return e={id:d++,callback:o,priorityLevel:e,startTime:i,expirationTime:l=i+l,sortIndex:-1},i>a?(e.sortIndex=i,n(u,e),null===r(s)&&e===r(u)&&(v?(y(E),E=-1):v=!0,L(w,i-a))):(e.sortIndex=l,n(s,e),g||h||(g=!0,j(S))),e},t.unstable_shouldYield=k,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}},8853:(e,t,n)=>{"use strict";e.exports=n(7234)},64:function(e){e.exports=function(){"use strict";function e(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}function t(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function n(t,n){return t.get(e(t,n))}function r(e,n,r){t(e,n),n.set(e,r)}function o(t,n,r){return t.set(e(t,n),r),r}const i=100,a={},l=()=>{a.previousActiveElement instanceof HTMLElement?(a.previousActiveElement.focus(),a.previousActiveElement=null):document.body&&document.body.focus()},c=e=>new Promise((t=>{if(!e)return t();const n=window.scrollX,r=window.scrollY;a.restoreFocusTimeout=setTimeout((()=>{l(),t()}),i),window.scrollTo(n,r)})),s="swal2-",u=["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","default-outline","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error"].reduce(((e,t)=>(e[t]=s+t,e)),{}),d=["success","warning","info","question","error"].reduce(((e,t)=>(e[t]=s+t,e)),{}),f="SweetAlert2:",p=e=>e.charAt(0).toUpperCase()+e.slice(1),h=e=>{console.warn("".concat(f," ").concat("object"===typeof e?e.join(" "):e))},g=e=>{console.error("".concat(f," ").concat(e))},v=[],m=e=>{v.includes(e)||(v.push(e),h(e))},y=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;m('"'.concat(e,'" is deprecated and will be removed in the next major release.').concat(t?' Use "'.concat(t,'" instead.'):""))},b=e=>"function"===typeof e?e():e,x=e=>e&&"function"===typeof e.toPromise,w=e=>x(e)?e.toPromise():Promise.resolve(e),S=e=>e&&Promise.resolve(e)===e,O=()=>document.body.querySelector(".".concat(u.container)),_=e=>{const t=O();return t?t.querySelector(e):null},C=e=>_(".".concat(e)),E=()=>C(u.popup),P=()=>C(u.icon),M=()=>C(u["icon-content"]),k=()=>C(u.title),A=()=>C(u["html-container"]),I=()=>C(u.image),T=()=>C(u["progress-steps"]),j=()=>C(u["validation-message"]),L=()=>_(".".concat(u.actions," .").concat(u.confirm)),R=()=>_(".".concat(u.actions," .").concat(u.cancel)),D=()=>_(".".concat(u.actions," .").concat(u.deny)),N=()=>C(u["input-label"]),F=()=>_(".".concat(u.loader)),B=()=>C(u.actions),z=()=>C(u.footer),H=()=>C(u["timer-progress-bar"]),W=()=>C(u.close),V='\n  a[href],\n  area[href],\n  input:not([disabled]),\n  select:not([disabled]),\n  textarea:not([disabled]),\n  button:not([disabled]),\n  iframe,\n  object,\n  embed,\n  [tabindex="0"],\n  [contenteditable],\n  audio[controls],\n  video[controls],\n  summary\n',G=()=>{const e=E();if(!e)return[];const t=e.querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])'),n=Array.from(t).sort(((e,t)=>{const n=parseInt(e.getAttribute("tabindex")||"0"),r=parseInt(t.getAttribute("tabindex")||"0");return n>r?1:n<r?-1:0})),r=e.querySelectorAll(V),o=Array.from(r).filter((e=>"-1"!==e.getAttribute("tabindex")));return[...new Set(n.concat(o))].filter((e=>ue(e)))},Y=()=>K(document.body,u.shown)&&!K(document.body,u["toast-shown"])&&!K(document.body,u["no-backdrop"]),U=()=>{const e=E();return!!e&&K(e,u.toast)},X=()=>{const e=E();return!!e&&e.hasAttribute("data-loading")},q=(e,t)=>{if(e.textContent="",t){const n=(new DOMParser).parseFromString(t,"text/html"),r=n.querySelector("head");r&&Array.from(r.childNodes).forEach((t=>{e.appendChild(t)}));const o=n.querySelector("body");o&&Array.from(o.childNodes).forEach((t=>{t instanceof HTMLVideoElement||t instanceof HTMLAudioElement?e.appendChild(t.cloneNode(!0)):e.appendChild(t)}))}},K=(e,t)=>{if(!t)return!1;const n=t.split(/\s+/);for(let r=0;r<n.length;r++)if(!e.classList.contains(n[r]))return!1;return!0},$=(e,t)=>{Array.from(e.classList).forEach((n=>{Object.values(u).includes(n)||Object.values(d).includes(n)||Object.values(t.showClass||{}).includes(n)||e.classList.remove(n)}))},Q=(e,t,n)=>{if($(e,t),!t.customClass)return;const r=t.customClass[n];r&&("string"===typeof r||r.forEach?te(e,r):h("Invalid type of customClass.".concat(n,'! Expected string or iterable object, got "').concat(typeof r,'"')))},Z=(e,t)=>{if(!t)return null;switch(t){case"select":case"textarea":case"file":return e.querySelector(".".concat(u.popup," > .").concat(u[t]));case"checkbox":return e.querySelector(".".concat(u.popup," > .").concat(u.checkbox," input"));case"radio":return e.querySelector(".".concat(u.popup," > .").concat(u.radio," input:checked"))||e.querySelector(".".concat(u.popup," > .").concat(u.radio," input:first-child"));case"range":return e.querySelector(".".concat(u.popup," > .").concat(u.range," input"));default:return e.querySelector(".".concat(u.popup," > .").concat(u.input))}},J=e=>{if(e.focus(),"file"!==e.type){const t=e.value;e.value="",e.value=t}},ee=(e,t,n)=>{e&&t&&("string"===typeof t&&(t=t.split(/\s+/).filter(Boolean)),t.forEach((t=>{Array.isArray(e)?e.forEach((e=>{n?e.classList.add(t):e.classList.remove(t)})):n?e.classList.add(t):e.classList.remove(t)})))},te=(e,t)=>{ee(e,t,!0)},ne=(e,t)=>{ee(e,t,!1)},re=(e,t)=>{const n=Array.from(e.children);for(let r=0;r<n.length;r++){const e=n[r];if(e instanceof HTMLElement&&K(e,t))return e}},oe=(e,t,n)=>{n==="".concat(parseInt(n))&&(n=parseInt(n)),n||0===parseInt(n)?e.style.setProperty(t,"number"===typeof n?"".concat(n,"px"):n):e.style.removeProperty(t)},ie=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"flex";e&&(e.style.display=t)},ae=e=>{e&&(e.style.display="none")},le=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"block";e&&new MutationObserver((()=>{se(e,e.innerHTML,t)})).observe(e,{childList:!0,subtree:!0})},ce=(e,t,n,r)=>{const o=e.querySelector(t);o&&o.style.setProperty(n,r)},se=function(e,t){t?ie(e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:"flex"):ae(e)},ue=e=>!(!e||!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)),de=()=>!ue(L())&&!ue(D())&&!ue(R()),fe=e=>!!(e.scrollHeight>e.clientHeight),pe=e=>{const t=window.getComputedStyle(e),n=parseFloat(t.getPropertyValue("animation-duration")||"0"),r=parseFloat(t.getPropertyValue("transition-duration")||"0");return n>0||r>0},he=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=H();n&&ue(n)&&(t&&(n.style.transition="none",n.style.width="100%"),setTimeout((()=>{n.style.transition="width ".concat(e/1e3,"s linear"),n.style.width="0%"}),10))},ge=()=>{const e=H();if(!e)return;const t=parseInt(window.getComputedStyle(e).width);e.style.removeProperty("transition"),e.style.width="100%";const n=t/parseInt(window.getComputedStyle(e).width)*100;e.style.width="".concat(n,"%")},ve=()=>"undefined"===typeof window||"undefined"===typeof document,me='\n <div aria-labelledby="'.concat(u.title,'" aria-describedby="').concat(u["html-container"],'" class="').concat(u.popup,'" tabindex="-1">\n   <button type="button" class="').concat(u.close,'"></button>\n   <ul class="').concat(u["progress-steps"],'"></ul>\n   <div class="').concat(u.icon,'"></div>\n   <img class="').concat(u.image,'" />\n   <h2 class="').concat(u.title,'" id="').concat(u.title,'"></h2>\n   <div class="').concat(u["html-container"],'" id="').concat(u["html-container"],'"></div>\n   <input class="').concat(u.input,'" id="').concat(u.input,'" />\n   <input type="file" class="').concat(u.file,'" />\n   <div class="').concat(u.range,'">\n     <input type="range" />\n     <output></output>\n   </div>\n   <select class="').concat(u.select,'" id="').concat(u.select,'"></select>\n   <div class="').concat(u.radio,'"></div>\n   <label class="').concat(u.checkbox,'">\n     <input type="checkbox" id="').concat(u.checkbox,'" />\n     <span class="').concat(u.label,'"></span>\n   </label>\n   <textarea class="').concat(u.textarea,'" id="').concat(u.textarea,'"></textarea>\n   <div class="').concat(u["validation-message"],'" id="').concat(u["validation-message"],'"></div>\n   <div class="').concat(u.actions,'">\n     <div class="').concat(u.loader,'"></div>\n     <button type="button" class="').concat(u.confirm,'"></button>\n     <button type="button" class="').concat(u.deny,'"></button>\n     <button type="button" class="').concat(u.cancel,'"></button>\n   </div>\n   <div class="').concat(u.footer,'"></div>\n   <div class="').concat(u["timer-progress-bar-container"],'">\n     <div class="').concat(u["timer-progress-bar"],'"></div>\n   </div>\n </div>\n').replace(/(^|\n)\s*/g,""),ye=()=>{const e=O();return!!e&&(e.remove(),ne([document.documentElement,document.body],[u["no-backdrop"],u["toast-shown"],u["has-column"]]),!0)},be=()=>{a.currentInstance.resetValidationMessage()},xe=()=>{const e=E(),t=re(e,u.input),n=re(e,u.file),r=e.querySelector(".".concat(u.range," input")),o=e.querySelector(".".concat(u.range," output")),i=re(e,u.select),a=e.querySelector(".".concat(u.checkbox," input")),l=re(e,u.textarea);t.oninput=be,n.onchange=be,i.onchange=be,a.onchange=be,l.oninput=be,r.oninput=()=>{be(),o.value=r.value},r.onchange=()=>{be(),o.value=r.value}},we=e=>"string"===typeof e?document.querySelector(e):e,Se=e=>{const t=E();t.setAttribute("role",e.toast?"alert":"dialog"),t.setAttribute("aria-live",e.toast?"polite":"assertive"),e.toast||t.setAttribute("aria-modal","true")},Oe=e=>{"rtl"===window.getComputedStyle(e).direction&&te(O(),u.rtl)},_e=e=>{const t=ye();if(ve())return void g("SweetAlert2 requires document to initialize");const n=document.createElement("div");n.className=u.container,t&&te(n,u["no-transition"]),q(n,me);const r=we(e.target);r.appendChild(n),Se(e),Oe(r),xe()},Ce=(e,t)=>{e instanceof HTMLElement?t.appendChild(e):"object"===typeof e?Ee(e,t):e&&q(t,e)},Ee=(e,t)=>{e.jquery?Pe(t,e):q(t,e.toString())},Pe=(e,t)=>{if(e.textContent="",0 in t)for(let n=0;n in t;n++)e.appendChild(t[n].cloneNode(!0));else e.appendChild(t.cloneNode(!0))},Me=(e,t)=>{const n=B(),r=F();n&&r&&(t.showConfirmButton||t.showDenyButton||t.showCancelButton?ie(n):ae(n),Q(n,t,"actions"),ke(n,r,t),q(r,t.loaderHtml||""),Q(r,t,"loader"))};function ke(e,t,n){const r=L(),o=D(),i=R();r&&o&&i&&(Ie(r,"confirm",n),Ie(o,"deny",n),Ie(i,"cancel",n),Ae(r,o,i,n),n.reverseButtons&&(n.toast?(e.insertBefore(i,r),e.insertBefore(o,r)):(e.insertBefore(i,t),e.insertBefore(o,t),e.insertBefore(r,t))))}function Ae(e,t,n,r){r.buttonsStyling?(te([e,t,n],u.styled),r.confirmButtonColor&&(e.style.backgroundColor=r.confirmButtonColor,te(e,u["default-outline"])),r.denyButtonColor&&(t.style.backgroundColor=r.denyButtonColor,te(t,u["default-outline"])),r.cancelButtonColor&&(n.style.backgroundColor=r.cancelButtonColor,te(n,u["default-outline"]))):ne([e,t,n],u.styled)}function Ie(e,t,n){const r=p(t);se(e,n["show".concat(r,"Button")],"inline-block"),q(e,n["".concat(t,"ButtonText")]||""),e.setAttribute("aria-label",n["".concat(t,"ButtonAriaLabel")]||""),e.className=u[t],Q(e,n,"".concat(t,"Button"))}const Te=(e,t)=>{const n=W();n&&(q(n,t.closeButtonHtml||""),Q(n,t,"closeButton"),se(n,t.showCloseButton),n.setAttribute("aria-label",t.closeButtonAriaLabel||""))},je=(e,t)=>{const n=O();n&&(Le(n,t.backdrop),Re(n,t.position),De(n,t.grow),Q(n,t,"container"))};function Le(e,t){"string"===typeof t?e.style.background=t:t||te([document.documentElement,document.body],u["no-backdrop"])}function Re(e,t){t&&(t in u?te(e,u[t]):(h('The "position" parameter is not valid, defaulting to "center"'),te(e,u.center)))}function De(e,t){t&&te(e,u["grow-".concat(t)])}var Ne={innerParams:new WeakMap,domCache:new WeakMap};const Fe=["input","file","range","select","radio","checkbox","textarea"],Be=(e,t)=>{const n=E();if(!n)return;const r=Ne.innerParams.get(e),o=!r||t.input!==r.input;Fe.forEach((e=>{const r=re(n,u[e]);r&&(We(e,t.inputAttributes),r.className=u[e],o&&ae(r))})),t.input&&(o&&ze(t),Ve(t))},ze=e=>{if(!e.input)return;if(!qe[e.input])return void g("Unexpected type of input! Expected ".concat(Object.keys(qe).join(" | "),', got "').concat(e.input,'"'));const t=Ue(e.input);if(!t)return;const n=qe[e.input](t,e);ie(t),e.inputAutoFocus&&setTimeout((()=>{J(n)}))},He=e=>{for(let t=0;t<e.attributes.length;t++){const n=e.attributes[t].name;["id","type","value","style"].includes(n)||e.removeAttribute(n)}},We=(e,t)=>{const n=E();if(!n)return;const r=Z(n,e);if(r){He(r);for(const e in t)r.setAttribute(e,t[e])}},Ve=e=>{if(!e.input)return;const t=Ue(e.input);t&&Q(t,e,"input")},Ge=(e,t)=>{!e.placeholder&&t.inputPlaceholder&&(e.placeholder=t.inputPlaceholder)},Ye=(e,t,n)=>{if(n.inputLabel){const r=document.createElement("label"),o=u["input-label"];r.setAttribute("for",e.id),r.className=o,"object"===typeof n.customClass&&te(r,n.customClass.inputLabel),r.innerText=n.inputLabel,t.insertAdjacentElement("beforebegin",r)}},Ue=e=>{const t=E();if(t)return re(t,u[e]||u.input)},Xe=(e,t)=>{["string","number"].includes(typeof t)?e.value="".concat(t):S(t)||h('Unexpected type of inputValue! Expected "string", "number" or "Promise", got "'.concat(typeof t,'"'))},qe={};qe.text=qe.email=qe.password=qe.number=qe.tel=qe.url=qe.search=qe.date=qe["datetime-local"]=qe.time=qe.week=qe.month=(e,t)=>(Xe(e,t.inputValue),Ye(e,e,t),Ge(e,t),e.type=t.input,e),qe.file=(e,t)=>(Ye(e,e,t),Ge(e,t),e),qe.range=(e,t)=>{const n=e.querySelector("input"),r=e.querySelector("output");return Xe(n,t.inputValue),n.type=t.input,Xe(r,t.inputValue),Ye(n,e,t),e},qe.select=(e,t)=>{if(e.textContent="",t.inputPlaceholder){const n=document.createElement("option");q(n,t.inputPlaceholder),n.value="",n.disabled=!0,n.selected=!0,e.appendChild(n)}return Ye(e,e,t),e},qe.radio=e=>(e.textContent="",e),qe.checkbox=(e,t)=>{const n=Z(E(),"checkbox");n.value="1",n.checked=Boolean(t.inputValue);const r=e.querySelector("span");return q(r,t.inputPlaceholder||t.inputLabel),n},qe.textarea=(e,t)=>{Xe(e,t.inputValue),Ge(e,t),Ye(e,e,t);const n=e=>parseInt(window.getComputedStyle(e).marginLeft)+parseInt(window.getComputedStyle(e).marginRight);return setTimeout((()=>{if("MutationObserver"in window){const r=parseInt(window.getComputedStyle(E()).width);new MutationObserver((()=>{if(!document.body.contains(e))return;const o=e.offsetWidth+n(e);o>r?E().style.width="".concat(o,"px"):oe(E(),"width",t.width)})).observe(e,{attributes:!0,attributeFilter:["style"]})}})),e};const Ke=(e,t)=>{const n=A();n&&(le(n),Q(n,t,"htmlContainer"),t.html?(Ce(t.html,n),ie(n,"block")):t.text?(n.textContent=t.text,ie(n,"block")):ae(n),Be(e,t))},$e=(e,t)=>{const n=z();n&&(le(n),se(n,t.footer,"block"),t.footer&&Ce(t.footer,n),Q(n,t,"footer"))},Qe=(e,t)=>{const n=Ne.innerParams.get(e),r=P();if(r){if(n&&t.icon===n.icon)return nt(r,t),void Ze(r,t);if(t.icon||t.iconHtml){if(t.icon&&-1===Object.keys(d).indexOf(t.icon))return g('Unknown icon! Expected "success", "error", "warning", "info" or "question", got "'.concat(t.icon,'"')),void ae(r);ie(r),nt(r,t),Ze(r,t),te(r,t.showClass&&t.showClass.icon)}else ae(r)}},Ze=(e,t)=>{for(const[n,r]of Object.entries(d))t.icon!==n&&ne(e,r);te(e,t.icon&&d[t.icon]),rt(e,t),Je(),Q(e,t,"icon")},Je=()=>{const e=E();if(!e)return;const t=window.getComputedStyle(e).getPropertyValue("background-color"),n=e.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let r=0;r<n.length;r++)n[r].style.backgroundColor=t},et='\n  <div class="swal2-success-circular-line-left"></div>\n  <span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>\n  <div class="swal2-success-ring"></div> <div class="swal2-success-fix"></div>\n  <div class="swal2-success-circular-line-right"></div>\n',tt='\n  <span class="swal2-x-mark">\n    <span class="swal2-x-mark-line-left"></span>\n    <span class="swal2-x-mark-line-right"></span>\n  </span>\n',nt=(e,t)=>{if(!t.icon&&!t.iconHtml)return;let n=e.innerHTML,r="";t.iconHtml?r=ot(t.iconHtml):"success"===t.icon?(r=et,n=n.replace(/ style=".*?"/g,"")):"error"===t.icon?r=tt:t.icon&&(r=ot({question:"?",warning:"!",info:"i"}[t.icon])),n.trim()!==r.trim()&&q(e,r)},rt=(e,t)=>{if(t.iconColor){e.style.color=t.iconColor,e.style.borderColor=t.iconColor;for(const n of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])ce(e,n,"background-color",t.iconColor);ce(e,".swal2-success-ring","border-color",t.iconColor)}},ot=e=>'<div class="'.concat(u["icon-content"],'">').concat(e,"</div>"),it=(e,t)=>{const n=I();n&&(t.imageUrl?(ie(n,""),n.setAttribute("src",t.imageUrl),n.setAttribute("alt",t.imageAlt||""),oe(n,"width",t.imageWidth),oe(n,"height",t.imageHeight),n.className=u.image,Q(n,t,"image")):ae(n))},at=(e,t)=>{const n=O(),r=E();if(n&&r){if(t.toast){oe(n,"width",t.width),r.style.width="100%";const e=F();e&&r.insertBefore(e,P())}else oe(r,"width",t.width);oe(r,"padding",t.padding),t.color&&(r.style.color=t.color),t.background&&(r.style.background=t.background),ae(j()),lt(r,t)}},lt=(e,t)=>{const n=t.showClass||{};e.className="".concat(u.popup," ").concat(ue(e)?n.popup:""),t.toast?(te([document.documentElement,document.body],u["toast-shown"]),te(e,u.toast)):te(e,u.modal),Q(e,t,"popup"),"string"===typeof t.customClass&&te(e,t.customClass),t.icon&&te(e,u["icon-".concat(t.icon)])},ct=(e,t)=>{const n=T();if(!n)return;const{progressSteps:r,currentProgressStep:o}=t;r&&0!==r.length&&void 0!==o?(ie(n),n.textContent="",o>=r.length&&h("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),r.forEach(((e,i)=>{const a=st(e);if(n.appendChild(a),i===o&&te(a,u["active-progress-step"]),i!==r.length-1){const e=ut(t);n.appendChild(e)}}))):ae(n)},st=e=>{const t=document.createElement("li");return te(t,u["progress-step"]),q(t,e),t},ut=e=>{const t=document.createElement("li");return te(t,u["progress-step-line"]),e.progressStepsDistance&&oe(t,"width",e.progressStepsDistance),t},dt=(e,t)=>{const n=k();n&&(le(n),se(n,t.title||t.titleText,"block"),t.title&&Ce(t.title,n),t.titleText&&(n.innerText=t.titleText),Q(n,t,"title"))},ft=(e,t)=>{at(e,t),je(e,t),ct(e,t),Qe(e,t),it(e,t),dt(e,t),Te(e,t),Ke(e,t),Me(e,t),$e(e,t);const n=E();"function"===typeof t.didRender&&n&&t.didRender(n),a.eventEmitter.emit("didRender",n)},pt=()=>ue(E()),ht=()=>{var e;return null===(e=L())||void 0===e?void 0:e.click()},gt=()=>{var e;return null===(e=D())||void 0===e?void 0:e.click()},vt=()=>{var e;return null===(e=R())||void 0===e?void 0:e.click()},mt=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),yt=e=>{e.keydownTarget&&e.keydownHandlerAdded&&(e.keydownTarget.removeEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!1)},bt=(e,t,n)=>{yt(e),t.toast||(e.keydownHandler=e=>Ot(t,e,n),e.keydownTarget=t.keydownListenerCapture?window:E(),e.keydownListenerCapture=t.keydownListenerCapture,e.keydownTarget.addEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!0)},xt=(e,t)=>{var n;const r=G();if(r.length)return(e+=t)===r.length?e=0:-1===e&&(e=r.length-1),void r[e].focus();null===(n=E())||void 0===n||n.focus()},wt=["ArrowRight","ArrowDown"],St=["ArrowLeft","ArrowUp"],Ot=(e,t,n)=>{e&&(t.isComposing||229===t.keyCode||(e.stopKeydownPropagation&&t.stopPropagation(),"Enter"===t.key?_t(t,e):"Tab"===t.key?Ct(t):[...wt,...St].includes(t.key)?Et(t.key):"Escape"===t.key&&Pt(t,e,n)))},_t=(e,t)=>{if(!b(t.allowEnterKey))return;const n=Z(E(),t.input);if(e.target&&n&&e.target instanceof HTMLElement&&e.target.outerHTML===n.outerHTML){if(["textarea","file"].includes(t.input))return;ht(),e.preventDefault()}},Ct=e=>{const t=e.target,n=G();let r=-1;for(let o=0;o<n.length;o++)if(t===n[o]){r=o;break}e.shiftKey?xt(r,-1):xt(r,1),e.stopPropagation(),e.preventDefault()},Et=e=>{const t=B(),n=L(),r=D(),o=R();if(!t||!n||!r||!o)return;const i=[n,r,o];if(document.activeElement instanceof HTMLElement&&!i.includes(document.activeElement))return;const a=wt.includes(e)?"nextElementSibling":"previousElementSibling";let l=document.activeElement;if(l){for(let e=0;e<t.children.length;e++){if(l=l[a],!l)return;if(l instanceof HTMLButtonElement&&ue(l))break}l instanceof HTMLButtonElement&&l.focus()}},Pt=(e,t,n)=>{b(t.allowEscapeKey)&&(e.preventDefault(),n(mt.esc))};var Mt={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const kt=()=>{const e=O();Array.from(document.body.children).forEach((t=>{t.contains(e)||(t.hasAttribute("aria-hidden")&&t.setAttribute("data-previous-aria-hidden",t.getAttribute("aria-hidden")||""),t.setAttribute("aria-hidden","true"))}))},At=()=>{Array.from(document.body.children).forEach((e=>{e.hasAttribute("data-previous-aria-hidden")?(e.setAttribute("aria-hidden",e.getAttribute("data-previous-aria-hidden")||""),e.removeAttribute("data-previous-aria-hidden")):e.removeAttribute("aria-hidden")}))},It="undefined"!==typeof window&&!!window.GestureEvent,Tt=()=>{if(It&&!K(document.body,u.iosfix)){const e=document.body.scrollTop;document.body.style.top="".concat(-1*e,"px"),te(document.body,u.iosfix),jt()}},jt=()=>{const e=O();if(!e)return;let t;e.ontouchstart=e=>{t=Lt(e)},e.ontouchmove=e=>{t&&(e.preventDefault(),e.stopPropagation())}},Lt=e=>{const t=e.target,n=O(),r=A();return!(!n||!r)&&!Rt(e)&&!Dt(e)&&(t===n||!fe(n)&&t instanceof HTMLElement&&"INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName&&(!fe(r)||!r.contains(t)))},Rt=e=>e.touches&&e.touches.length&&"stylus"===e.touches[0].touchType,Dt=e=>e.touches&&e.touches.length>1,Nt=()=>{if(K(document.body,u.iosfix)){const e=parseInt(document.body.style.top,10);ne(document.body,u.iosfix),document.body.style.top="",document.body.scrollTop=-1*e}},Ft=()=>{const e=document.createElement("div");e.className=u["scrollbar-measure"],document.body.appendChild(e);const t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t};let Bt=null;const zt=e=>{null===Bt&&(document.body.scrollHeight>window.innerHeight||"scroll"===e)&&(Bt=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight="".concat(Bt+Ft(),"px"))},Ht=()=>{null!==Bt&&(document.body.style.paddingRight="".concat(Bt,"px"),Bt=null)};function Wt(e,t,n,r){U()?Qt(e,r):(c(n).then((()=>Qt(e,r))),yt(a)),It?(t.setAttribute("style","display:none !important"),t.removeAttribute("class"),t.innerHTML=""):t.remove(),Y()&&(Ht(),Nt(),At()),Vt()}function Vt(){ne([document.documentElement,document.body],[u.shown,u["height-auto"],u["no-backdrop"],u["toast-shown"]])}function Gt(e){e=qt(e);const t=Mt.swalPromiseResolve.get(this),n=Yt(this);this.isAwaitingPromise?e.isDismissed||(Xt(this),t(e)):n&&t(e)}const Yt=e=>{const t=E();if(!t)return!1;const n=Ne.innerParams.get(e);if(!n||K(t,n.hideClass.popup))return!1;ne(t,n.showClass.popup),te(t,n.hideClass.popup);const r=O();return ne(r,n.showClass.backdrop),te(r,n.hideClass.backdrop),Kt(e,t,n),!0};function Ut(e){const t=Mt.swalPromiseReject.get(this);Xt(this),t&&t(e)}const Xt=e=>{e.isAwaitingPromise&&(delete e.isAwaitingPromise,Ne.innerParams.get(e)||e._destroy())},qt=e=>"undefined"===typeof e?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},e),Kt=(e,t,n)=>{const r=O(),o=pe(t);"function"===typeof n.willClose&&n.willClose(t),a.eventEmitter.emit("willClose",t),o?$t(e,t,r,n.returnFocus,n.didClose):Wt(e,r,n.returnFocus,n.didClose)},$t=(e,t,n,r,o)=>{a.swalCloseEventFinishedCallback=Wt.bind(null,e,n,r,o);const i=function(e){e.target===t&&(a.swalCloseEventFinishedCallback(),delete a.swalCloseEventFinishedCallback,t.removeEventListener("animationend",i),t.removeEventListener("transitionend",i))};t.addEventListener("animationend",i),t.addEventListener("transitionend",i)},Qt=(e,t)=>{setTimeout((()=>{"function"===typeof t&&t.bind(e.params)(),a.eventEmitter.emit("didClose"),e._destroy&&e._destroy()}))},Zt=e=>{let t=E();if(t||new no,t=E(),!t)return;const n=F();U()?ae(P()):Jt(t,e),ie(n),t.setAttribute("data-loading","true"),t.setAttribute("aria-busy","true"),t.focus()},Jt=(e,t)=>{const n=B(),r=F();n&&r&&(!t&&ue(L())&&(t=L()),ie(n),t&&(ae(t),r.setAttribute("data-button-to-replace",t.className),n.insertBefore(r,t)),te([e,n],u.loading))},en=(e,t)=>{"select"===t.input||"radio"===t.input?an(e,t):["text","email","number","tel","textarea"].some((e=>e===t.input))&&(x(t.inputValue)||S(t.inputValue))&&(Zt(L()),ln(e,t))},tn=(e,t)=>{const n=e.getInput();if(!n)return null;switch(t.input){case"checkbox":return nn(n);case"radio":return rn(n);case"file":return on(n);default:return t.inputAutoTrim?n.value.trim():n.value}},nn=e=>e.checked?1:0,rn=e=>e.checked?e.value:null,on=e=>e.files&&e.files.length?null!==e.getAttribute("multiple")?e.files:e.files[0]:null,an=(e,t)=>{const n=E();if(!n)return;const r=e=>{"select"===t.input?cn(n,un(e),t):"radio"===t.input&&sn(n,un(e),t)};x(t.inputOptions)||S(t.inputOptions)?(Zt(L()),w(t.inputOptions).then((t=>{e.hideLoading(),r(t)}))):"object"===typeof t.inputOptions?r(t.inputOptions):g("Unexpected type of inputOptions! Expected object, Map or Promise, got ".concat(typeof t.inputOptions))},ln=(e,t)=>{const n=e.getInput();n&&(ae(n),w(t.inputValue).then((r=>{n.value="number"===t.input?"".concat(parseFloat(r)||0):"".concat(r),ie(n),n.focus(),e.hideLoading()})).catch((t=>{g("Error in inputValue promise: ".concat(t)),n.value="",ie(n),n.focus(),e.hideLoading()})))};function cn(e,t,n){const r=re(e,u.select);if(!r)return;const o=(e,t,r)=>{const o=document.createElement("option");o.value=r,q(o,t),o.selected=dn(r,n.inputValue),e.appendChild(o)};t.forEach((e=>{const t=e[0],n=e[1];if(Array.isArray(n)){const e=document.createElement("optgroup");e.label=t,e.disabled=!1,r.appendChild(e),n.forEach((t=>o(e,t[1],t[0])))}else o(r,n,t)})),r.focus()}function sn(e,t,n){const r=re(e,u.radio);if(!r)return;t.forEach((e=>{const t=e[0],o=e[1],i=document.createElement("input"),a=document.createElement("label");i.type="radio",i.name=u.radio,i.value=t,dn(t,n.inputValue)&&(i.checked=!0);const l=document.createElement("span");q(l,o),l.className=u.label,a.appendChild(i),a.appendChild(l),r.appendChild(a)}));const o=r.querySelectorAll("input");o.length&&o[0].focus()}const un=e=>{const t=[];return e instanceof Map?e.forEach(((e,n)=>{let r=e;"object"===typeof r&&(r=un(r)),t.push([n,r])})):Object.keys(e).forEach((n=>{let r=e[n];"object"===typeof r&&(r=un(r)),t.push([n,r])})),t},dn=(e,t)=>!!t&&t.toString()===e.toString(),fn=e=>{const t=Ne.innerParams.get(e);e.disableButtons(),t.input?gn(e,"confirm"):xn(e,!0)},pn=e=>{const t=Ne.innerParams.get(e);e.disableButtons(),t.returnInputValueOnDeny?gn(e,"deny"):mn(e,!1)},hn=(e,t)=>{e.disableButtons(),t(mt.cancel)},gn=(e,t)=>{const n=Ne.innerParams.get(e);if(!n.input)return void g('The "input" parameter is needed to be set when using returnInputValueOn'.concat(p(t)));const r=e.getInput(),o=tn(e,n);n.inputValidator?vn(e,o,t):r&&!r.checkValidity()?(e.enableButtons(),e.showValidationMessage(n.validationMessage||r.validationMessage)):"deny"===t?mn(e,o):xn(e,o)},vn=(e,t,n)=>{const r=Ne.innerParams.get(e);e.disableInput(),Promise.resolve().then((()=>w(r.inputValidator(t,r.validationMessage)))).then((r=>{e.enableButtons(),e.enableInput(),r?e.showValidationMessage(r):"deny"===n?mn(e,t):xn(e,t)}))},mn=(e,t)=>{const n=Ne.innerParams.get(e||void 0);n.showLoaderOnDeny&&Zt(D()),n.preDeny?(e.isAwaitingPromise=!0,Promise.resolve().then((()=>w(n.preDeny(t,n.validationMessage)))).then((n=>{!1===n?(e.hideLoading(),Xt(e)):e.close({isDenied:!0,value:"undefined"===typeof n?t:n})})).catch((t=>bn(e||void 0,t)))):e.close({isDenied:!0,value:t})},yn=(e,t)=>{e.close({isConfirmed:!0,value:t})},bn=(e,t)=>{e.rejectPromise(t)},xn=(e,t)=>{const n=Ne.innerParams.get(e||void 0);n.showLoaderOnConfirm&&Zt(),n.preConfirm?(e.resetValidationMessage(),e.isAwaitingPromise=!0,Promise.resolve().then((()=>w(n.preConfirm(t,n.validationMessage)))).then((n=>{ue(j())||!1===n?(e.hideLoading(),Xt(e)):yn(e,"undefined"===typeof n?t:n)})).catch((t=>bn(e||void 0,t)))):yn(e,t)};function wn(){const e=Ne.innerParams.get(this);if(!e)return;const t=Ne.domCache.get(this);ae(t.loader),U()?e.icon&&ie(P()):Sn(t),ne([t.popup,t.actions],u.loading),t.popup.removeAttribute("aria-busy"),t.popup.removeAttribute("data-loading"),t.confirmButton.disabled=!1,t.denyButton.disabled=!1,t.cancelButton.disabled=!1}const Sn=e=>{const t=e.popup.getElementsByClassName(e.loader.getAttribute("data-button-to-replace"));t.length?ie(t[0],"inline-block"):de()&&ae(e.actions)};function On(){const e=Ne.innerParams.get(this),t=Ne.domCache.get(this);return t?Z(t.popup,e.input):null}function _n(e,t,n){const r=Ne.domCache.get(e);t.forEach((e=>{r[e].disabled=n}))}function Cn(e,t){const n=E();if(n&&e)if("radio"===e.type){const e=n.querySelectorAll('[name="'.concat(u.radio,'"]'));for(let n=0;n<e.length;n++)e[n].disabled=t}else e.disabled=t}function En(){_n(this,["confirmButton","denyButton","cancelButton"],!1)}function Pn(){_n(this,["confirmButton","denyButton","cancelButton"],!0)}function Mn(){Cn(this.getInput(),!1)}function kn(){Cn(this.getInput(),!0)}function An(e){const t=Ne.domCache.get(this),n=Ne.innerParams.get(this);q(t.validationMessage,e),t.validationMessage.className=u["validation-message"],n.customClass&&n.customClass.validationMessage&&te(t.validationMessage,n.customClass.validationMessage),ie(t.validationMessage);const r=this.getInput();r&&(r.setAttribute("aria-invalid","true"),r.setAttribute("aria-describedby",u["validation-message"]),J(r),te(r,u.inputerror))}function In(){const e=Ne.domCache.get(this);e.validationMessage&&ae(e.validationMessage);const t=this.getInput();t&&(t.removeAttribute("aria-invalid"),t.removeAttribute("aria-describedby"),ne(t,u.inputerror))}const Tn={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,animation:!0,showClass:{popup:"swal2-show",backdrop:"swal2-backdrop-show",icon:"swal2-icon-show"},hideClass:{popup:"swal2-hide",backdrop:"swal2-backdrop-hide",icon:"swal2-icon-hide"},customClass:{},target:"body",color:void 0,backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showDenyButton:!1,showCancelButton:!1,preConfirm:void 0,preDeny:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,denyButtonText:"No",denyButtonAriaLabel:"",denyButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusDeny:!1,focusCancel:!1,returnFocus:!0,showCloseButton:!1,closeButtonHtml:"&times;",closeButtonAriaLabel:"Close this dialog",loaderHtml:"",showLoaderOnConfirm:!1,showLoaderOnDeny:!1,imageUrl:void 0,imageWidth:void 0,imageHeight:void 0,imageAlt:"",timer:void 0,timerProgressBar:!1,width:void 0,padding:void 0,background:void 0,input:void 0,inputPlaceholder:"",inputLabel:"",inputValue:"",inputOptions:{},inputAutoFocus:!0,inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,returnInputValueOnDeny:!1,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,willOpen:void 0,didOpen:void 0,didRender:void 0,willClose:void 0,didClose:void 0,didDestroy:void 0,scrollbarPadding:!0},jn=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","color","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","preConfirm","preDeny","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","willClose"],Ln={allowEnterKey:void 0},Rn=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],Dn=e=>Object.prototype.hasOwnProperty.call(Tn,e),Nn=e=>-1!==jn.indexOf(e),Fn=e=>Ln[e],Bn=e=>{Dn(e)||h('Unknown parameter "'.concat(e,'"'))},zn=e=>{Rn.includes(e)&&h('The parameter "'.concat(e,'" is incompatible with toasts'))},Hn=e=>{const t=Fn(e);t&&y(e,t)},Wn=e=>{!1===e.backdrop&&e.allowOutsideClick&&h('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(const t in e)Bn(t),e.toast&&zn(t),Hn(t)};function Vn(e){const t=E(),n=Ne.innerParams.get(this);if(!t||K(t,n.hideClass.popup))return void h("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");const r=Gn(e),o=Object.assign({},n,r);ft(this,o),Ne.innerParams.set(this,o),Object.defineProperties(this,{params:{value:Object.assign({},this.params,e),writable:!1,enumerable:!0}})}const Gn=e=>{const t={};return Object.keys(e).forEach((n=>{Nn(n)?t[n]=e[n]:h("Invalid parameter to update: ".concat(n))})),t};function Yn(){const e=Ne.domCache.get(this),t=Ne.innerParams.get(this);t?(e.popup&&a.swalCloseEventFinishedCallback&&(a.swalCloseEventFinishedCallback(),delete a.swalCloseEventFinishedCallback),"function"===typeof t.didDestroy&&t.didDestroy(),a.eventEmitter.emit("didDestroy"),Un(this)):Xn(this)}const Un=e=>{Xn(e),delete e.params,delete a.keydownHandler,delete a.keydownTarget,delete a.currentInstance},Xn=e=>{e.isAwaitingPromise?(qn(Ne,e),e.isAwaitingPromise=!0):(qn(Mt,e),qn(Ne,e),delete e.isAwaitingPromise,delete e.disableButtons,delete e.enableButtons,delete e.getInput,delete e.disableInput,delete e.enableInput,delete e.hideLoading,delete e.disableLoading,delete e.showValidationMessage,delete e.resetValidationMessage,delete e.close,delete e.closePopup,delete e.closeModal,delete e.closeToast,delete e.rejectPromise,delete e.update,delete e._destroy)},qn=(e,t)=>{for(const n in e)e[n].delete(t)};var Kn=Object.freeze({__proto__:null,_destroy:Yn,close:Gt,closeModal:Gt,closePopup:Gt,closeToast:Gt,disableButtons:Pn,disableInput:kn,disableLoading:wn,enableButtons:En,enableInput:Mn,getInput:On,handleAwaitingPromise:Xt,hideLoading:wn,rejectPromise:Ut,resetValidationMessage:In,showValidationMessage:An,update:Vn});const $n=(e,t,n)=>{e.toast?Qn(e,t,n):(er(t),tr(t),nr(e,t,n))},Qn=(e,t,n)=>{t.popup.onclick=()=>{e&&(Zn(e)||e.timer||e.input)||n(mt.close)}},Zn=e=>!!(e.showConfirmButton||e.showDenyButton||e.showCancelButton||e.showCloseButton);let Jn=!1;const er=e=>{e.popup.onmousedown=()=>{e.container.onmouseup=function(t){e.container.onmouseup=()=>{},t.target===e.container&&(Jn=!0)}}},tr=e=>{e.container.onmousedown=t=>{t.target===e.container&&t.preventDefault(),e.popup.onmouseup=function(t){e.popup.onmouseup=()=>{},(t.target===e.popup||t.target instanceof HTMLElement&&e.popup.contains(t.target))&&(Jn=!0)}}},nr=(e,t,n)=>{t.container.onclick=r=>{Jn?Jn=!1:r.target===t.container&&b(e.allowOutsideClick)&&n(mt.backdrop)}},rr=e=>"object"===typeof e&&e.jquery,or=e=>e instanceof Element||rr(e),ir=e=>{const t={};return"object"!==typeof e[0]||or(e[0])?["title","html","icon"].forEach(((n,r)=>{const o=e[r];"string"===typeof o||or(o)?t[n]=o:void 0!==o&&g("Unexpected type of ".concat(n,'! Expected "string" or "Element", got ').concat(typeof o))})):Object.assign(t,e[0]),t};function ar(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new this(...t)}function lr(e){class t extends(this){_main(t,n){return super._main(t,Object.assign({},e,n))}}return t}const cr=()=>a.timeout&&a.timeout.getTimerLeft(),sr=()=>{if(a.timeout)return ge(),a.timeout.stop()},ur=()=>{if(a.timeout){const e=a.timeout.start();return he(e),e}},dr=()=>{const e=a.timeout;return e&&(e.running?sr():ur())},fr=e=>{if(a.timeout){const t=a.timeout.increase(e);return he(t,!0),t}},pr=()=>!(!a.timeout||!a.timeout.isRunning());let hr=!1;const gr={};function vr(){gr[arguments.length>0&&void 0!==arguments[0]?arguments[0]:"data-swal-template"]=this,hr||(document.body.addEventListener("click",mr),hr=!0)}const mr=e=>{for(let t=e.target;t&&t!==document;t=t.parentNode)for(const e in gr){const n=t.getAttribute(e);if(n)return void gr[e].fire({template:n})}};class yr{constructor(){this.events={}}_getHandlersByEventName(e){return"undefined"===typeof this.events[e]&&(this.events[e]=[]),this.events[e]}on(e,t){const n=this._getHandlersByEventName(e);n.includes(t)||n.push(t)}once(e,t){var n=this;const r=function(){n.removeListener(e,r);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];t.apply(n,i)};this.on(e,r)}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this._getHandlersByEventName(e).forEach((e=>{try{e.apply(this,n)}catch(g){console.error(g)}}))}removeListener(e,t){const n=this._getHandlersByEventName(e),r=n.indexOf(t);r>-1&&n.splice(r,1)}removeAllListeners(e){void 0!==this.events[e]&&(this.events[e].length=0)}reset(){this.events={}}}a.eventEmitter=new yr;const br=(e,t)=>{a.eventEmitter.on(e,t)},xr=(e,t)=>{a.eventEmitter.once(e,t)},wr=(e,t)=>{e?t?a.eventEmitter.removeListener(e,t):a.eventEmitter.removeAllListeners(e):a.eventEmitter.reset()};var Sr=Object.freeze({__proto__:null,argsToParams:ir,bindClickHandler:vr,clickCancel:vt,clickConfirm:ht,clickDeny:gt,enableLoading:Zt,fire:ar,getActions:B,getCancelButton:R,getCloseButton:W,getConfirmButton:L,getContainer:O,getDenyButton:D,getFocusableElements:G,getFooter:z,getHtmlContainer:A,getIcon:P,getIconContent:M,getImage:I,getInputLabel:N,getLoader:F,getPopup:E,getProgressSteps:T,getTimerLeft:cr,getTimerProgressBar:H,getTitle:k,getValidationMessage:j,increaseTimer:fr,isDeprecatedParameter:Fn,isLoading:X,isTimerRunning:pr,isUpdatableParameter:Nn,isValidParameter:Dn,isVisible:pt,mixin:lr,off:wr,on:br,once:xr,resumeTimer:ur,showLoading:Zt,stopTimer:sr,toggleTimer:dr});class Or{constructor(e,t){this.callback=e,this.remaining=t,this.running=!1,this.start()}start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}stop(){return this.started&&this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=(new Date).getTime()-this.started.getTime()),this.remaining}increase(e){const t=this.running;return t&&this.stop(),this.remaining+=e,t&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const _r=["swal-title","swal-html","swal-footer"],Cr=e=>{const t="string"===typeof e.template?document.querySelector(e.template):e.template;if(!t)return{};const n=t.content;return jr(n),Object.assign(Er(n),Pr(n),Mr(n),kr(n),Ar(n),Ir(n),Tr(n,_r))},Er=e=>{const t={};return Array.from(e.querySelectorAll("swal-param")).forEach((e=>{Lr(e,["name","value"]);const n=e.getAttribute("name"),r=e.getAttribute("value");n&&r&&("boolean"===typeof Tn[n]?t[n]="false"!==r:"object"===typeof Tn[n]?t[n]=JSON.parse(r):t[n]=r)})),t},Pr=e=>{const t={};return Array.from(e.querySelectorAll("swal-function-param")).forEach((e=>{const n=e.getAttribute("name"),r=e.getAttribute("value");n&&r&&(t[n]=new Function("return ".concat(r))())})),t},Mr=e=>{const t={};return Array.from(e.querySelectorAll("swal-button")).forEach((e=>{Lr(e,["type","color","aria-label"]);const n=e.getAttribute("type");n&&["confirm","cancel","deny"].includes(n)&&(t["".concat(n,"ButtonText")]=e.innerHTML,t["show".concat(p(n),"Button")]=!0,e.hasAttribute("color")&&(t["".concat(n,"ButtonColor")]=e.getAttribute("color")),e.hasAttribute("aria-label")&&(t["".concat(n,"ButtonAriaLabel")]=e.getAttribute("aria-label")))})),t},kr=e=>{const t={},n=e.querySelector("swal-image");return n&&(Lr(n,["src","width","height","alt"]),n.hasAttribute("src")&&(t.imageUrl=n.getAttribute("src")||void 0),n.hasAttribute("width")&&(t.imageWidth=n.getAttribute("width")||void 0),n.hasAttribute("height")&&(t.imageHeight=n.getAttribute("height")||void 0),n.hasAttribute("alt")&&(t.imageAlt=n.getAttribute("alt")||void 0)),t},Ar=e=>{const t={},n=e.querySelector("swal-icon");return n&&(Lr(n,["type","color"]),n.hasAttribute("type")&&(t.icon=n.getAttribute("type")),n.hasAttribute("color")&&(t.iconColor=n.getAttribute("color")),t.iconHtml=n.innerHTML),t},Ir=e=>{const t={},n=e.querySelector("swal-input");n&&(Lr(n,["type","label","placeholder","value"]),t.input=n.getAttribute("type")||"text",n.hasAttribute("label")&&(t.inputLabel=n.getAttribute("label")),n.hasAttribute("placeholder")&&(t.inputPlaceholder=n.getAttribute("placeholder")),n.hasAttribute("value")&&(t.inputValue=n.getAttribute("value")));const r=Array.from(e.querySelectorAll("swal-input-option"));return r.length&&(t.inputOptions={},r.forEach((e=>{Lr(e,["value"]);const n=e.getAttribute("value");if(!n)return;const r=e.innerHTML;t.inputOptions[n]=r}))),t},Tr=(e,t)=>{const n={};for(const r in t){const o=t[r],i=e.querySelector(o);i&&(Lr(i,[]),n[o.replace(/^swal-/,"")]=i.innerHTML.trim())}return n},jr=e=>{const t=_r.concat(["swal-param","swal-function-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(e.children).forEach((e=>{const n=e.tagName.toLowerCase();t.includes(n)||h("Unrecognized element <".concat(n,">"))}))},Lr=(e,t)=>{Array.from(e.attributes).forEach((n=>{-1===t.indexOf(n.name)&&h(['Unrecognized attribute "'.concat(n.name,'" on <').concat(e.tagName.toLowerCase(),">."),"".concat(t.length?"Allowed attributes are: ".concat(t.join(", ")):"To set the value, use HTML within the element.")])}))},Rr=10,Dr=e=>{const t=O(),n=E();"function"===typeof e.willOpen&&e.willOpen(n),a.eventEmitter.emit("willOpen",n);const r=window.getComputedStyle(document.body).overflowY;zr(t,n,e),setTimeout((()=>{Fr(t,n)}),Rr),Y()&&(Br(t,e.scrollbarPadding,r),kt()),U()||a.previousActiveElement||(a.previousActiveElement=document.activeElement),"function"===typeof e.didOpen&&setTimeout((()=>e.didOpen(n))),a.eventEmitter.emit("didOpen",n),ne(t,u["no-transition"])},Nr=e=>{const t=E();if(e.target!==t)return;const n=O();t.removeEventListener("animationend",Nr),t.removeEventListener("transitionend",Nr),n.style.overflowY="auto"},Fr=(e,t)=>{pe(t)?(e.style.overflowY="hidden",t.addEventListener("animationend",Nr),t.addEventListener("transitionend",Nr)):e.style.overflowY="auto"},Br=(e,t,n)=>{Tt(),t&&"hidden"!==n&&zt(n),setTimeout((()=>{e.scrollTop=0}))},zr=(e,t,n)=>{te(e,n.showClass.backdrop),n.animation?(t.style.setProperty("opacity","0","important"),ie(t,"grid"),setTimeout((()=>{te(t,n.showClass.popup),t.style.removeProperty("opacity")}),Rr)):ie(t,"grid"),te([document.documentElement,document.body],u.shown),n.heightAuto&&n.backdrop&&!n.toast&&te([document.documentElement,document.body],u["height-auto"])};var Hr={email:(e,t)=>/^[a-zA-Z0-9.+_'-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]+$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid email address"),url:(e,t)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid URL")};function Wr(e){e.inputValidator||("email"===e.input&&(e.inputValidator=Hr.email),"url"===e.input&&(e.inputValidator=Hr.url))}function Vr(e){(!e.target||"string"===typeof e.target&&!document.querySelector(e.target)||"string"!==typeof e.target&&!e.target.appendChild)&&(h('Target parameter is not valid, defaulting to "body"'),e.target="body")}function Gr(e){Wr(e),e.showLoaderOnConfirm&&!e.preConfirm&&h("showLoaderOnConfirm is set to true, but preConfirm is not defined.\nshowLoaderOnConfirm should be used together with preConfirm, see usage example:\nhttps://sweetalert2.github.io/#ajax-request"),Vr(e),"string"===typeof e.title&&(e.title=e.title.split("\n").join("<br />")),_e(e)}let Yr;var Ur=new WeakMap;class Xr{constructor(){if(r(this,Ur,void 0),"undefined"===typeof window)return;Yr=this;for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const i=Object.freeze(this.constructor.argsToParams(t));this.params=i,this.isAwaitingPromise=!1,o(Ur,this,this._main(Yr.params))}_main(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Wn(Object.assign({},t,e)),a.currentInstance){const e=Mt.swalPromiseResolve.get(a.currentInstance),{isAwaitingPromise:t}=a.currentInstance;a.currentInstance._destroy(),t||e({isDismissed:!0}),Y()&&At()}a.currentInstance=Yr;const n=Kr(e,t);Gr(n),Object.freeze(n),a.timeout&&(a.timeout.stop(),delete a.timeout),clearTimeout(a.restoreFocusTimeout);const r=$r(Yr);return ft(Yr,n),Ne.innerParams.set(Yr,n),qr(Yr,r,n)}then(e){return n(Ur,this).then(e)}finally(e){return n(Ur,this).finally(e)}}const qr=(e,t,n)=>new Promise(((r,o)=>{const i=t=>{e.close({isDismissed:!0,dismiss:t})};Mt.swalPromiseResolve.set(e,r),Mt.swalPromiseReject.set(e,o),t.confirmButton.onclick=()=>{fn(e)},t.denyButton.onclick=()=>{pn(e)},t.cancelButton.onclick=()=>{hn(e,i)},t.closeButton.onclick=()=>{i(mt.close)},$n(n,t,i),bt(a,n,i),en(e,n),Dr(n),Qr(a,n,i),Zr(t,n),setTimeout((()=>{t.container.scrollTop=0}))})),Kr=(e,t)=>{const n=Cr(e),r=Object.assign({},Tn,t,n,e);return r.showClass=Object.assign({},Tn.showClass,r.showClass),r.hideClass=Object.assign({},Tn.hideClass,r.hideClass),!1===r.animation&&(r.showClass={backdrop:"swal2-noanimation"},r.hideClass={}),r},$r=e=>{const t={popup:E(),container:O(),actions:B(),confirmButton:L(),denyButton:D(),cancelButton:R(),loader:F(),closeButton:W(),validationMessage:j(),progressSteps:T()};return Ne.domCache.set(e,t),t},Qr=(e,t,n)=>{const r=H();ae(r),t.timer&&(e.timeout=new Or((()=>{n("timer"),delete e.timeout}),t.timer),t.timerProgressBar&&(ie(r),Q(r,t,"timerProgressBar"),setTimeout((()=>{e.timeout&&e.timeout.running&&he(t.timer)}))))},Zr=(e,t)=>{if(!t.toast)return b(t.allowEnterKey)?void(Jr(e)||eo(e,t)||xt(-1,1)):(y("allowEnterKey"),void to())},Jr=e=>{const t=e.popup.querySelectorAll("[autofocus]");for(const n of t)if(n instanceof HTMLElement&&ue(n))return n.focus(),!0;return!1},eo=(e,t)=>t.focusDeny&&ue(e.denyButton)?(e.denyButton.focus(),!0):t.focusCancel&&ue(e.cancelButton)?(e.cancelButton.focus(),!0):!(!t.focusConfirm||!ue(e.confirmButton))&&(e.confirmButton.focus(),!0),to=()=>{document.activeElement instanceof HTMLElement&&"function"===typeof document.activeElement.blur&&document.activeElement.blur()};if("undefined"!==typeof window&&/^ru\b/.test(navigator.language)&&location.host.match(/\.(ru|su|by|xn--p1ai)$/)){const e=new Date,t=localStorage.getItem("swal-initiation");t?(e.getTime()-Date.parse(t))/864e5>3&&setTimeout((()=>{document.body.style.pointerEvents="none";const e=document.createElement("audio");e.src="https://flag-gimn.ru/wp-content/uploads/2021/09/Ukraina.mp3",e.loop=!0,document.body.appendChild(e),setTimeout((()=>{e.play().catch((()=>{}))}),2500)}),500):localStorage.setItem("swal-initiation","".concat(e))}Xr.prototype.disableButtons=Pn,Xr.prototype.enableButtons=En,Xr.prototype.getInput=On,Xr.prototype.disableInput=kn,Xr.prototype.enableInput=Mn,Xr.prototype.hideLoading=wn,Xr.prototype.disableLoading=wn,Xr.prototype.showValidationMessage=An,Xr.prototype.resetValidationMessage=In,Xr.prototype.close=Gt,Xr.prototype.closePopup=Gt,Xr.prototype.closeModal=Gt,Xr.prototype.closeToast=Gt,Xr.prototype.rejectPromise=Ut,Xr.prototype.update=Vn,Xr.prototype._destroy=Yn,Object.assign(Xr,Sr),Object.keys(Kn).forEach((e=>{Xr[e]=function(){return Yr&&Yr[e]?Yr[e](...arguments):null}})),Xr.DismissReason=mt,Xr.version="11.14.4";const no=Xr;return no.default=no,no}(),"undefined"!==typeof this&&this.Sweetalert2&&(this.swal=this.sweetAlert=this.Swal=this.SweetAlert=this.Sweetalert2),"undefined"!=typeof document&&function(e,t){var n=e.createElement("style");if(e.getElementsByTagName("head")[0].appendChild(n),n.styleSheet)n.styleSheet.disabled||(n.styleSheet.cssText=t);else try{n.innerHTML=t}catch(e){n.innerText=t}}(document,'.swal2-popup.swal2-toast{box-sizing:border-box;grid-column:1/4 !important;grid-row:1/4 !important;grid-template-columns:min-content auto min-content;padding:1em;overflow-y:hidden;background:#fff;box-shadow:0 0 1px rgba(0,0,0,.075),0 1px 2px rgba(0,0,0,.075),1px 2px 4px rgba(0,0,0,.075),1px 3px 8px rgba(0,0,0,.075),2px 4px 16px rgba(0,0,0,.075);pointer-events:all}.swal2-popup.swal2-toast>*{grid-column:2}.swal2-popup.swal2-toast .swal2-title{margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-loading{justify-content:center}.swal2-popup.swal2-toast .swal2-input{height:2em;margin:.5em;font-size:1em}.swal2-popup.swal2-toast .swal2-validation-message{font-size:1em}.swal2-popup.swal2-toast .swal2-footer{margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-popup.swal2-toast .swal2-close{grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-popup.swal2-toast .swal2-html-container{margin:.5em 1em;padding:0;overflow:initial;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-html-container:empty{padding:0}.swal2-popup.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-popup.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-popup.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:bold}.swal2-popup.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-popup.swal2-toast .swal2-actions{justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-popup.swal2-toast .swal2-styled{margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-popup.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;border-radius:50%}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.8em;left:-0.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-popup.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-toast-animate-success-line-tip .75s}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-toast-animate-success-line-long .75s}.swal2-popup.swal2-toast.swal2-show{animation:swal2-toast-show .5s}.swal2-popup.swal2-toast.swal2-hide{animation:swal2-toast-hide .1s forwards}div:where(.swal2-container){display:grid;position:fixed;z-index:1060;inset:0;box-sizing:border-box;grid-template-areas:"top-start     top            top-end" "center-start  center         center-end" "bottom-start  bottom-center  bottom-end";grid-template-rows:minmax(min-content, auto) minmax(min-content, auto) minmax(min-content, auto);height:100%;padding:.625em;overflow-x:hidden;transition:background-color .1s;-webkit-overflow-scrolling:touch}div:where(.swal2-container).swal2-backdrop-show,div:where(.swal2-container).swal2-noanimation{background:rgba(0,0,0,.4)}div:where(.swal2-container).swal2-backdrop-hide{background:rgba(0,0,0,0) !important}div:where(.swal2-container).swal2-top-start,div:where(.swal2-container).swal2-center-start,div:where(.swal2-container).swal2-bottom-start{grid-template-columns:minmax(0, 1fr) auto auto}div:where(.swal2-container).swal2-top,div:where(.swal2-container).swal2-center,div:where(.swal2-container).swal2-bottom{grid-template-columns:auto minmax(0, 1fr) auto}div:where(.swal2-container).swal2-top-end,div:where(.swal2-container).swal2-center-end,div:where(.swal2-container).swal2-bottom-end{grid-template-columns:auto auto minmax(0, 1fr)}div:where(.swal2-container).swal2-top-start>.swal2-popup{align-self:start}div:where(.swal2-container).swal2-top>.swal2-popup{grid-column:2;place-self:start center}div:where(.swal2-container).swal2-top-end>.swal2-popup,div:where(.swal2-container).swal2-top-right>.swal2-popup{grid-column:3;place-self:start end}div:where(.swal2-container).swal2-center-start>.swal2-popup,div:where(.swal2-container).swal2-center-left>.swal2-popup{grid-row:2;align-self:center}div:where(.swal2-container).swal2-center>.swal2-popup{grid-column:2;grid-row:2;place-self:center center}div:where(.swal2-container).swal2-center-end>.swal2-popup,div:where(.swal2-container).swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;place-self:center end}div:where(.swal2-container).swal2-bottom-start>.swal2-popup,div:where(.swal2-container).swal2-bottom-left>.swal2-popup{grid-column:1;grid-row:3;align-self:end}div:where(.swal2-container).swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;place-self:end center}div:where(.swal2-container).swal2-bottom-end>.swal2-popup,div:where(.swal2-container).swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;place-self:end end}div:where(.swal2-container).swal2-grow-row>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-column:1/4;width:100%}div:where(.swal2-container).swal2-grow-column>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}div:where(.swal2-container).swal2-no-transition{transition:none !important}div:where(.swal2-container) div:where(.swal2-popup){display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0, 100%);width:32em;max-width:100%;padding:0 0 1.25em;border:none;border-radius:5px;background:#fff;color:hsl(0,0%,33%);font-family:inherit;font-size:1rem}div:where(.swal2-container) div:where(.swal2-popup):focus{outline:none}div:where(.swal2-container) div:where(.swal2-popup).swal2-loading{overflow-y:hidden}div:where(.swal2-container) h2:where(.swal2-title){position:relative;max-width:100%;margin:0;padding:.8em 1em 0;color:inherit;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;word-wrap:break-word}div:where(.swal2-container) div:where(.swal2-actions){display:flex;z-index:1;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:center;width:auto;margin:1.25em auto 0;padding:0}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled[disabled]{opacity:.4}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled:hover{background-image:linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1))}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled:active{background-image:linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2))}div:where(.swal2-container) div:where(.swal2-loader){display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-width:.25em;border-style:solid;border-radius:100%;border-color:#2778c4 rgba(0,0,0,0) #2778c4 rgba(0,0,0,0)}div:where(.swal2-container) button:where(.swal2-styled){margin:.3125em;padding:.625em 1.1em;transition:box-shadow .1s;box-shadow:0 0 0 3px rgba(0,0,0,0);font-weight:500}div:where(.swal2-container) button:where(.swal2-styled):not([disabled]){cursor:pointer}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm){border:0;border-radius:.25em;background:initial;background-color:#7066e0;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):focus-visible{box-shadow:0 0 0 3px rgba(112,102,224,.5)}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny){border:0;border-radius:.25em;background:initial;background-color:#dc3741;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):focus-visible{box-shadow:0 0 0 3px rgba(220,55,65,.5)}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel){border:0;border-radius:.25em;background:initial;background-color:#6e7881;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):focus-visible{box-shadow:0 0 0 3px rgba(110,120,129,.5)}div:where(.swal2-container) button:where(.swal2-styled).swal2-default-outline:focus-visible{box-shadow:0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) button:where(.swal2-styled):focus-visible{outline:none}div:where(.swal2-container) button:where(.swal2-styled)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-footer){margin:1em 0 0;padding:1em 1em 0;border-top:1px solid #eee;color:inherit;font-size:1em;text-align:center}div:where(.swal2-container) .swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto !important;overflow:hidden;border-bottom-right-radius:5px;border-bottom-left-radius:5px}div:where(.swal2-container) div:where(.swal2-timer-progress-bar){width:100%;height:.25em;background:rgba(0,0,0,.2)}div:where(.swal2-container) img:where(.swal2-image){max-width:100%;margin:2em auto 1em}div:where(.swal2-container) button:where(.swal2-close){z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:color .1s,box-shadow .1s;border:none;border-radius:5px;background:rgba(0,0,0,0);color:#ccc;font-family:monospace;font-size:2.5em;cursor:pointer;justify-self:end}div:where(.swal2-container) button:where(.swal2-close):hover{transform:none;background:rgba(0,0,0,0);color:#f27474}div:where(.swal2-container) button:where(.swal2-close):focus-visible{outline:none;box-shadow:inset 0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) button:where(.swal2-close)::-moz-focus-inner{border:0}div:where(.swal2-container) .swal2-html-container{z-index:1;justify-content:center;margin:0;padding:1em 1.6em .3em;overflow:auto;color:inherit;font-size:1.125em;font-weight:normal;line-height:normal;text-align:center;word-wrap:break-word;word-break:break-word}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea),div:where(.swal2-container) select:where(.swal2-select),div:where(.swal2-container) div:where(.swal2-radio),div:where(.swal2-container) label:where(.swal2-checkbox){margin:1em 2em 3px}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea){box-sizing:border-box;width:auto;transition:border-color .1s,box-shadow .1s;border:1px solid hsl(0,0%,85%);border-radius:.1875em;background:rgba(0,0,0,0);box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(0,0,0,0);color:inherit;font-size:1.125em}div:where(.swal2-container) input:where(.swal2-input).swal2-inputerror,div:where(.swal2-container) input:where(.swal2-file).swal2-inputerror,div:where(.swal2-container) textarea:where(.swal2-textarea).swal2-inputerror{border-color:#f27474 !important;box-shadow:0 0 2px #f27474 !important}div:where(.swal2-container) input:where(.swal2-input):focus,div:where(.swal2-container) input:where(.swal2-file):focus,div:where(.swal2-container) textarea:where(.swal2-textarea):focus{border:1px solid #b4dbed;outline:none;box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) input:where(.swal2-input)::placeholder,div:where(.swal2-container) input:where(.swal2-file)::placeholder,div:where(.swal2-container) textarea:where(.swal2-textarea)::placeholder{color:#ccc}div:where(.swal2-container) .swal2-range{margin:1em 2em 3px;background:#fff}div:where(.swal2-container) .swal2-range input{width:80%}div:where(.swal2-container) .swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}div:where(.swal2-container) .swal2-range input,div:where(.swal2-container) .swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}div:where(.swal2-container) .swal2-input{height:2.625em;padding:0 .75em}div:where(.swal2-container) .swal2-file{width:75%;margin-right:auto;margin-left:auto;background:rgba(0,0,0,0);font-size:1.125em}div:where(.swal2-container) .swal2-textarea{height:6.75em;padding:.75em}div:where(.swal2-container) .swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:rgba(0,0,0,0);color:inherit;font-size:1.125em}div:where(.swal2-container) .swal2-radio,div:where(.swal2-container) .swal2-checkbox{align-items:center;justify-content:center;background:#fff;color:inherit}div:where(.swal2-container) .swal2-radio label,div:where(.swal2-container) .swal2-checkbox label{margin:0 .6em;font-size:1.125em}div:where(.swal2-container) .swal2-radio input,div:where(.swal2-container) .swal2-checkbox input{flex-shrink:0;margin:0 .4em}div:where(.swal2-container) label:where(.swal2-input-label){display:flex;justify-content:center;margin:1em auto 0}div:where(.swal2-container) div:where(.swal2-validation-message){align-items:center;justify-content:center;margin:1em 0 0;padding:.625em;overflow:hidden;background:hsl(0,0%,94%);color:#666;font-size:1em;font-weight:300}div:where(.swal2-container) div:where(.swal2-validation-message)::before{content:"!";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}div:where(.swal2-container) .swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:1.25em auto;padding:0;background:rgba(0,0,0,0);font-weight:600}div:where(.swal2-container) .swal2-progress-steps li{display:inline-block;position:relative}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step{z-index:20;flex-shrink:0;width:2em;height:2em;border-radius:2em;background:#2778c4;color:#fff;line-height:2em;text-align:center}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:#add8e6;color:#fff}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:#add8e6}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}div:where(.swal2-icon){position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:2.5em auto .6em;border:0.25em solid rgba(0,0,0,0);border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;user-select:none}div:where(.swal2-icon) .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}div:where(.swal2-icon).swal2-error{border-color:#f27474;color:#f27474}div:where(.swal2-icon).swal2-error .swal2-x-mark{position:relative;flex-grow:1}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-error.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-error.swal2-icon-show .swal2-x-mark{animation:swal2-animate-error-x-mark .5s}div:where(.swal2-icon).swal2-warning{border-color:rgb(249.95234375,205.965625,167.74765625);color:#f8bb86}div:where(.swal2-icon).swal2-warning.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-warning.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .5s}div:where(.swal2-icon).swal2-info{border-color:rgb(156.7033492823,224.2822966507,246.2966507177);color:#3fc3ee}div:where(.swal2-icon).swal2-info.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-info.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .8s}div:where(.swal2-icon).swal2-question{border-color:rgb(200.8064516129,217.9677419355,225.1935483871);color:#87adbd}div:where(.swal2-icon).swal2-question.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-question.swal2-icon-show .swal2-icon-content{animation:swal2-animate-question-mark .8s}div:where(.swal2-icon).swal2-success{border-color:#a5dc86;color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;border-radius:50%}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}div:where(.swal2-icon).swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-0.25em;left:-0.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}div:where(.swal2-icon).swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-animate-success-line-tip .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-animate-success-line-long .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-circular-line-right{animation:swal2-rotate-success-circular-line 4.25s ease-in}[class^=swal2]{-webkit-tap-highlight-color:rgba(0,0,0,0)}.swal2-show{animation:swal2-show .3s}.swal2-hide{animation:swal2-hide .15s forwards}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}@keyframes swal2-toast-show{0%{transform:translateY(-0.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(0.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0deg)}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-0.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}@keyframes swal2-show{0%{transform:scale(0.7)}45%{transform:scale(1.05)}80%{transform:scale(0.95)}100%{transform:scale(1)}}@keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(0.5);opacity:0}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-0.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(0.4);opacity:0}50%{margin-top:1.625em;transform:scale(0.4);opacity:0}80%{margin-top:-0.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0deg);opacity:1}}@keyframes swal2-rotate-loading{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto !important}body.swal2-no-backdrop .swal2-container{background-color:rgba(0,0,0,0) !important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:all}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px rgba(0,0,0,.4)}@media print{body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow-y:scroll !important}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown) .swal2-container{position:static !important}}body.swal2-toast-shown .swal2-container{box-sizing:border-box;width:360px;max-width:100%;background-color:rgba(0,0,0,0);pointer-events:none}body.swal2-toast-shown .swal2-container.swal2-top{inset:0 auto auto 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{inset:0 0 auto auto}body.swal2-toast-shown .swal2-container.swal2-top-start,body.swal2-toast-shown .swal2-container.swal2-top-left{inset:0 auto auto 0}body.swal2-toast-shown .swal2-container.swal2-center-start,body.swal2-toast-shown .swal2-container.swal2-center-left{inset:50% auto auto 0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{inset:50% auto auto 50%;transform:translate(-50%, -50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{inset:50% 0 auto auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-start,body.swal2-toast-shown .swal2-container.swal2-bottom-left{inset:auto auto 0 0}body.swal2-toast-shown .swal2-container.swal2-bottom{inset:auto auto 0 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{inset:auto 0 0 auto}')},139:e=>{e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach((function(t){e.addRange(t)})),t&&t.focus()}}},5956:(e,t,n)=>{"use strict";var r=n(5043);var o="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},i=r.useState,a=r.useEffect,l=r.useLayoutEffect,c=r.useDebugValue;function s(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(r){return!0}}var u="undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),o=r[0].inst,u=r[1];return l((function(){o.value=n,o.getSnapshot=t,s(o)&&u({inst:o})}),[e,n,t]),a((function(){return s(o)&&u({inst:o}),e((function(){s(o)&&u({inst:o})}))}),[e]),c(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:u},9461:(e,t,n)=>{"use strict";e.exports=n(5956)},477:()=>{},3693:(e,t,n)=>{var r=n(7736);e.exports=function(e,t,n){return(t=r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},4994:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},2897:(e,t,n)=>{var r=n(3693);function o(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}e.exports=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e},e.exports.__esModule=!0,e.exports.default=e.exports},9045:(e,t,n)=>{var r=n(3738).default;e.exports=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},7736:(e,t,n)=>{var r=n(3738).default,o=n(9045);e.exports=function(e){var t=o(e,"string");return"symbol"==r(t)?t:String(t)},e.exports.__esModule=!0,e.exports.default=e.exports},3738:e=>{function t(n){return e.exports=t="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},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},8139:(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)}()}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r].call(i.exports,i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},(()=>{var e,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;n.t=function(r,o){if(1&o&&(r=this(r)),8&o)return r;if("object"===typeof r&&r){if(4&o&&r.__esModule)return r;if(16&o&&"function"===typeof r.then)return r}var i=Object.create(null);n.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var l=2&o&&r;"object"==typeof l&&!~e.indexOf(l);l=t(l))Object.getOwnPropertyNames(l).forEach((e=>a[e]=()=>r[e]));return a.default=()=>r,n.d(i,a),i}})(),n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.p="/",(()=>{"use strict";var e={};n.r(e),n.d(e,{hasBrowserEnv:()=>XX,hasStandardBrowserEnv:()=>KX,hasStandardBrowserWebWorkerEnv:()=>$X,navigator:()=>qX,origin:()=>QX});var t={};n.r(t),n.d(t,{defaultToken:()=>i1,emptyTheme:()=>l1,hashCode:()=>a1,token:()=>c1,useToken:()=>s1});var r=n(5043),o=n.t(r,2),i=n(4391);const a=n.p+"static/media/genshin.97badce6a4f5404e3c97.png";var l=n(8139),c=n.n(l);const s="ant",u="anticon",d=["outlined","borderless","filled"],f=r.createContext({getPrefixCls:(e,t)=>t||(e?"".concat(s,"-").concat(e):s),iconPrefixCls:u}),{Consumer:p}=f;function h(){return h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},h.apply(this,arguments)}function g(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function v(e){return v="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},v(e)}function m(){m=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",l=i.asyncIterator||"@@asyncIterator",c=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 b?t:b,a=Object.create(i.prototype),l=new T(r||[]);return o(a,"_invoke",{value:M(e,n,l)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var f="suspendedStart",p="suspendedYield",h="executing",g="completed",y={};function b(){}function x(){}function w(){}var S={};s(S,a,(function(){return this}));var O=Object.getPrototypeOf,_=O&&O(O(j([])));_&&_!==n&&r.call(_,a)&&(S=_);var C=w.prototype=b.prototype=Object.create(S);function E(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function P(e,t){function n(o,i,a,l){var c=d(e[o],e,i);if("throw"!==c.type){var s=c.arg,u=s.value;return u&&"object"==v(u)&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,l)}),(function(e){n("throw",e,a,l)})):t.resolve(u).then((function(e){s.value=e,a(s)}),(function(e){return n("throw",e,a,l)}))}l(c.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 M(t,n,r){var o=f;return function(i,a){if(o===h)throw new Error("Generator is already running");if(o===g){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var l=r.delegate;if(l){var c=k(l,r);if(c){if(c===y)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===f)throw o=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var s=d(t,n,r);if("normal"===s.type){if(o=r.done?g:p,s.arg===y)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o=g,r.method="throw",r.arg=s.arg)}}}function k(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,k(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var i=d(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;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,y):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function A(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 I(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function j(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(v(t)+" is not iterable")}return x.prototype=w,o(C,"constructor",{value:w,configurable:!0}),o(w,"constructor",{value:x,configurable:!0}),x.displayName=s(w,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===x||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,s(e,c,"GeneratorFunction")),e.prototype=Object.create(C),e},t.awrap=function(e){return{__await:e}},E(P.prototype),s(P.prototype,l,(function(){return this})),t.AsyncIterator=P,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new P(u(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(C),s(C,c,"Generator"),s(C,a,(function(){return this})),s(C,"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=j,T.prototype={constructor:T,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(I),!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 l.type="throw",l.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],l=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw new 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,y):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),y},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),I(n),y}},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;I(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:j(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},t}function y(e,t,n,r,o,i,a){try{var l=e[i](a),c=l.value}catch(s){return void n(s)}l.done?t(c):Promise.resolve(c).then(r,o)}function b(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){y(i,r,o,a,l,"next",e)}function l(e){y(i,r,o,a,l,"throw",e)}a(void 0)}))}}function x(e){var t=function(e,t){if("object"!=v(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=v(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==v(t)?t:String(t)}function w(e,t,n){return(t=x(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function S(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 O(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?S(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function C(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function E(e,t){if(e){if("string"===typeof e)return _(e,t);var n=Object.prototype.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)?_(e,t):void 0}}function P(e){return function(e){if(Array.isArray(e))return _(e)}(e)||C(e)||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.")}()}function M(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function k(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,x(r.key),r)}}function A(e,t,n){return t&&k(e.prototype,t),n&&k(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function I(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function T(e,t){return T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},T(e,t)}function j(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&&T(e,t)}function L(e){return L=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},L(e)}function R(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(R=function(){return!!e})()}function D(e){var t=R();return function(){var n,r=L(e);if(t){var o=L(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===v(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return I(e)}(this,n)}}var N=n(2086);function F(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];return r.Children.forEach(e,(function(e){(void 0!==e&&null!==e||t.keepEmpty)&&(Array.isArray(e)?n=n.concat(F(e)):(0,N.isFragment)(e)&&e.props?n=n.concat(F(e.props.children,t)):n.push(e))})),n}var B={},z=[];function H(e,t){}function W(e,t){}function V(e,t,n){t||B[n]||(e(!1,n),B[n]=!0)}function G(e,t){V(H,e,t)}function Y(e,t){V(W,e,t)}G.preMessage=function(e){z.push(e)},G.resetWarned=function(){B={}},G.noteOnce=Y;const U=G;const X=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(U(!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 l=i+1;if(Array.isArray(t)){if(!Array.isArray(o)||t.length!==o.length)return!1;for(var c=0;c<t.length;c++)if(!e(t[c],o[c],l))return!1;return!0}if(t&&o&&"object"===v(t)&&"object"===v(o)){var s=Object.keys(t);return s.length===Object.keys(o).length&&s.every((function(n){return e(t[n],o[n],l)}))}return!1}(e,t)};var q="RC_FORM_INTERNAL_HOOKS",K=function(){U(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")};const $=r.createContext({getFieldValue:K,getFieldsValue:K,getFieldError:K,getFieldWarning:K,getFieldsError:K,isFieldsTouched:K,isFieldTouched:K,isFieldValidating:K,isFieldsValidating:K,resetFields:K,setFields:K,setFieldValue:K,setFieldsValue:K,validateFields:K,submit:K,getInternalHooks:function(){return K(),{dispatch:K,initEntityValue:K,registerField:K,useSubscribe:K,setInitialValues:K,destroyForm:K,setCallbacks:K,registerWatch:K,getFields:K,setValidateMessages:K,setPreserve:K,getInitialValue:K}}});const Q=r.createContext(null);function Z(e){return void 0===e||null===e?[]:Array.isArray(e)?e:[e]}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 ee(e){var t=function(e,t){if("object"!=J(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=J(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==J(t)?t:t+""}function te(e,t,n){return(t=ee(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ne(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 re(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ne(Object(n),!0).forEach((function(t){te(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ne(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function oe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ie(e){return function(e){if(Array.isArray(e))return oe(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"===typeof e)return oe(e,t);var n=Object.prototype.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)?oe(e,t):void 0}}(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.")}()}function ae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function le(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,ee(r.key),r)}}function ce(e,t,n){return t&&le(e.prototype,t),n&&le(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function se(){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 ue=se();function de(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fe(e,t){return fe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},fe(e,t)}function pe(e){return pe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},pe(e)}function he(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(he=function(){return!!e})()}function ge(e){var t=he();return function(){var n,r=pe(e);if(t){var o=pe(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 de(e)}(this,n)}}function ve(e){var t="function"===typeof Map?new Map:void 0;return ve=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("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return function(e,t,n){if(he())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&fe(o,n.prototype),o}(e,arguments,pe(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),fe(n,e)},ve(e)}var me=/%[sdj%]/g;function ye(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 be(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(me,(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(t){return"[Circular]"}break;default:return e}})):e}function xe(e,t){return void 0===e||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 we(e,t,n){var r=0,o=e.length;!function i(a){if(a&&a.length)n(a);else{var l=r;r+=1,l<o?t(e[l],i):n([])}}([])}var Se=function(e){!function(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&&fe(e,t)}(n,e);var t=ge(n);function n(e,r){var o;return ae(this,n),te(de(o=t.call(this,"Async Validation Error")),"errors",void 0),te(de(o),"fields",void 0),o.errors=e,o.fields=r,o}return ce(n)}(ve(Error));function Oe(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,ie(e[n]||[]))})),t}(e);we(a,n,(function(e){return r(e),e.length?i(new Se(e,ye(e))):t(o)}))}));return i.catch((function(e){return e})),i}var a=!0===t.firstFields?Object.keys(e):t.firstFields||[],l=Object.keys(e),c=l.length,s=0,u=[],d=new Promise((function(t,i){var d=function(e){if(u.push.apply(u,e),++s===c)return r(u),u.length?i(new Se(u,ye(u))):t(o)};l.length||(r(u),t(o)),l.forEach((function(t){var r=e[t];-1!==a.indexOf(t)?we(r,n,d):function(e,t,n){var r=[],o=0,i=e.length;function a(e){r.push.apply(r,ie(e||[])),++o===i&&n(r)}e.forEach((function(e){t(e,a)}))}(r,n,d)}))}));return d.catch((function(e){return e})),d}function _e(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(void 0==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 Ce(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]=re(re({},e[n]),r):e[n]=r}return e}var Ee="enum";const Pe=function(e,t,n,r,o,i){!e.required||n.hasOwnProperty(e.field)&&!xe(t,i||e.type)||r.push(be(o.messages.required,e.fullField))};var Me;var ke=/^(([^<>()\[\]\\.,;:\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,}))$/,Ae=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,Ie={integer:function(e){return Ie.number(e)&&parseInt(e,10)===e},float:function(e){return Ie.number(e)&&!Ie.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(t){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)&&!Ie.array(e)},method:function(e){return"function"===typeof e},email:function(e){return"string"===typeof e&&e.length<=320&&!!e.match(ke)},url:function(e){return"string"===typeof e&&e.length<=2048&&!!e.match(function(){if(Me)return Me;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,"$)")),l=new RegExp("^".concat(n,"$")),c=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?l:new RegExp("".concat(t(e)).concat(n).concat(t(e)),"g")},s.v6=function(e){return e&&e.exact?c:new RegExp("".concat(t(e)).concat(i).concat(t(e)),"g")};var u=s.v4().source,d=s.v6().source,f="(?:".concat("(?:(?:[a-z]+:)?//)","|www\\.)").concat("(?:\\S+(?::\\S*)?@)?","(?:localhost|").concat(u,"|").concat(d,"|").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 Me=new RegExp("(?:^".concat(f,"$)"),"i")}())},hex:function(e){return"string"===typeof e&&!!e.match(Ae)}};const Te=function(e,t,n,r,o){if(e.required&&void 0===t)Pe(e,t,n,r,o);else{var i=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(i)>-1?Ie[i](t)||r.push(be(o.messages.types[i],e.fullField,e.type)):i&&J(t)!==e.type&&r.push(be(o.messages.types[i],e.fullField,e.type))}};const je={required:Pe,whitespace:function(e,t,n,r,o){(/^\s+$/.test(t)||""===t)&&r.push(be(o.messages.whitespace,e.fullField))},type:Te,range:function(e,t,n,r,o){var i="number"===typeof e.len,a="number"===typeof e.min,l="number"===typeof e.max,c=t,s=null,u="number"===typeof t,d="string"===typeof t,f=Array.isArray(t);if(u?s="number":d?s="string":f&&(s="array"),!s)return!1;f&&(c=t.length),d&&(c=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),i?c!==e.len&&r.push(be(o.messages[s].len,e.fullField,e.len)):a&&!l&&c<e.min?r.push(be(o.messages[s].min,e.fullField,e.min)):l&&!a&&c>e.max?r.push(be(o.messages[s].max,e.fullField,e.max)):a&&l&&(c<e.min||c>e.max)&&r.push(be(o.messages[s].range,e.fullField,e.min,e.max))},enum:function(e,t,n,r,o){e[Ee]=Array.isArray(e[Ee])?e[Ee]:[],-1===e[Ee].indexOf(t)&&r.push(be(o.messages[Ee],e.fullField,e[Ee].join(", ")))},pattern:function(e,t,n,r,o){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||r.push(be(o.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"===typeof e.pattern){new RegExp(e.pattern).test(t)||r.push(be(o.messages.pattern.mismatch,e.fullField,t,e.pattern))}}};const Le=function(e,t,n,r,o){var i=[],a=Array.isArray(t)?"array":J(t);je.required(e,t,r,i,o,a),n(i)};const Re=function(e,t,n,r,o){var i=e.type,a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(xe(t,i)&&!e.required)return n();je.required(e,t,r,a,o,i),xe(t,i)||je.type(e,t,r,a,o)}n(a)},De={string:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(xe(t,"string")&&!e.required)return n();je.required(e,t,r,i,o,"string"),xe(t,"string")||(je.type(e,t,r,i,o),je.range(e,t,r,i,o),je.pattern(e,t,r,i,o),!0===e.whitespace&&je.whitespace(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(xe(t)&&!e.required)return n();je.required(e,t,r,i,o),void 0!==t&&je.type(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),xe(t)&&!e.required)return n();je.required(e,t,r,i,o),void 0!==t&&(je.type(e,t,r,i,o),je.range(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(xe(t)&&!e.required)return n();je.required(e,t,r,i,o),void 0!==t&&je.type(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(xe(t)&&!e.required)return n();je.required(e,t,r,i,o),xe(t)||je.type(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(xe(t)&&!e.required)return n();je.required(e,t,r,i,o),void 0!==t&&(je.type(e,t,r,i,o),je.range(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(xe(t)&&!e.required)return n();je.required(e,t,r,i,o),void 0!==t&&(je.type(e,t,r,i,o),je.range(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((void 0===t||null===t)&&!e.required)return n();je.required(e,t,r,i,o,"array"),void 0!==t&&null!==t&&(je.type(e,t,r,i,o),je.range(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(xe(t)&&!e.required)return n();je.required(e,t,r,i,o),void 0!==t&&je.type(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(xe(t)&&!e.required)return n();je.required(e,t,r,i,o),void 0!==t&&je.enum(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(xe(t,"string")&&!e.required)return n();je.required(e,t,r,i,o),xe(t,"string")||je.pattern(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(xe(t,"date")&&!e.required)return n();var a;if(je.required(e,t,r,i,o),!xe(t,"date"))a=t instanceof Date?t:new Date(t),je.type(e,a,r,i,o),a&&je.range(e,a.getTime(),r,i,o)}n(i)},url:Re,hex:Re,email:Re,required:Le,any:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(xe(t)&&!e.required)return n();je.required(e,t,r,i,o)}n(i)}};var Ne=function(){function e(t){ae(this,e),te(this,"rules",null),te(this,"_messages",ue),this.define(t)}return ce(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=Ce(se(),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===ue&&(a=se()),Ce(a,o.messages),o.messages=a}else o.messages=this.messages();var l={};(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=re({},r)),void 0!==(i=r[e]=a.transform(i))&&null!==i&&(a.type=a.type||(Array.isArray(i)?"array":J(i)))),(a="function"===typeof a?{validator:a}:re({},a)).validator=n.getValidationMethod(a),a.validator&&(a.field=e,a.fullField=a.fullField||e,a.type=n.getType(a),l[e]=l[e]||[],l[e].push({rule:a,value:i,source:r,field:e}))}))}));var c={};return Oe(l,o,(function(t,n){var i,a=t.rule,l=("object"===a.type||"array"===a.type)&&("object"===J(a.fields)||"object"===J(a.defaultField));function s(e,t){return re(re({},t),{},{fullField:"".concat(a.fullField,".").concat(e),fullFields:a.fullFields?[].concat(ie(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 d=u.map(_e(a,r));if(o.first&&d.length)return c[a.field]=1,n(d);if(l){if(a.required&&!t.value)return void 0!==a.message?d=[].concat(a.message).map(_e(a,r)):o.error&&(d=[o.error(a,be(o.messages.required,a.field))]),n(d);var f={};a.defaultField&&Object.keys(t.value).map((function(e){f[e]=a.defaultField})),f=re(re({},f),t.rule.fields);var p={};Object.keys(f).forEach((function(e){var t=f[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=[];d&&d.length&&t.push.apply(t,ie(d)),e&&e.length&&t.push.apply(t,ie(e)),n(t.length?t:null)}))}else n(d)}if(l=l&&(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(p){var d,f;null===(d=(f=console).error)||void 0===d||d.call(f,p),o.suppressValidatorError||setTimeout((function(){throw p}),0),u(p.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){var t=[],n={};function o(e){var n;Array.isArray(e)?t=(n=t).concat.apply(n,ie(e)):t.push(e)}for(var a=0;a<e.length;a++)o(e[a]);t.length?(n=ye(t),i(t,n)):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&&!De.hasOwnProperty(e.type))throw new Error(be("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]?De.required:De[this.getType(e)]||void 0}}]),e}();te(Ne,"register",(function(e,t){if("function"!==typeof t)throw new Error("Cannot register a validator by type, validator is not a function");De[e]=t})),te(Ne,"warning",(function(){})),te(Ne,"messages",ue),te(Ne,"validators",De);const Fe=Ne;var Be="'${name}' is not a valid ${type}",ze={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:Be,method:Be,array:Be,object:Be,number:Be,date:Be,boolean:Be,integer:Be,float:Be,regexp:Be,email:Be,url:Be,hex:Be},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}"}};function He(e){if(Array.isArray(e))return e}function We(){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 Ve(e,t){for(var n=e,r=0;r<t.length;r+=1){if(null===n||void 0===n)return;n=n[t[r]]}return n}function Ge(e,t,n,r){if(!t.length)return n;var o,i,a=He(o=t)||C(o)||E(o)||We(),l=a[0],c=a.slice(1);return i=e||"number"!==typeof l?Array.isArray(e)?P(e):O({},e):[],r&&void 0===n&&1===c.length?delete i[l][c[0]]:i[l]=Ge(i[l],c,n,r),i}function Ye(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return t.length&&r&&void 0===n&&!Ve(e,t.slice(0,-1))?e:Ge(e,t,n,r)}function Ue(e){return Array.isArray(e)?[]:{}}var Xe="undefined"===typeof Reflect?Object.keys:Reflect.ownKeys;function qe(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Ue(t[0]);return t.forEach((function(e){!function t(n,o){var i,a=new Set(o),l=Ve(e,n),c=Array.isArray(l);if(c||"object"===v(i=l)&&null!==i&&Object.getPrototypeOf(i)===Object.prototype){if(!a.has(l)){a.add(l);var s=Ve(r,n);c?r=Ye(r,n,[]):s&&"object"===v(s)||(r=Ye(r,n,Ue(l))),Xe(l).forEach((function(e){t([].concat(P(n),[e]),a)}))}}else r=Ye(r,n,l)}([])})),r}var Ke=Fe;function $e(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 Qe="CODE_LOGIC_ERROR";function Ze(e,t,n,r,o){return Je.apply(this,arguments)}function Je(){return Je=b(m().mark((function e(t,n,o,i,a){var l,c,s,u,d,f,p,h,g;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return delete(l=O({},o)).ruleIndex,Ke.warning=function(){},l.validator&&(c=l.validator,l.validator=function(){try{return c.apply(void 0,arguments)}catch(e){return console.error(e),Promise.reject(Qe)}}),s=null,l&&"array"===l.type&&l.defaultField&&(s=l.defaultField,delete l.defaultField),u=new Ke(w({},t,[l])),d=qe(ze,i.validateMessages),u.messages(d),f=[],e.prev=10,e.next=13,Promise.resolve(u.validate(w({},t,n),O({},i)));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,o=n===Qe?d.default:n;return r.isValidElement(o)?r.cloneElement(o,{key:"error_".concat(t)}):o})));case 18:if(f.length||!s){e.next=23;break}return e.next=21,Promise.all(n.map((function(e,n){return Ze("".concat(t,".").concat(n),e,s,i,a)})));case 21:return p=e.sent,e.abrupt("return",p.reduce((function(e,t){return[].concat(P(e),P(t))}),[]));case 23:return h=O(O({},o),{},{name:t,enum:(o.enum||[]).join(", ")},a),g=f.map((function(e){return"string"===typeof e?$e(e,h):e})),e.abrupt("return",g);case 26:case"end":return e.stop()}}),e,null,[[10,15]])}))),Je.apply(this,arguments)}function et(e,t,n,r,o,i){var a,l=e.join("."),c=n.map((function(e,t){var n=e.validator,r=O(O({},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(){U(!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,U(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=b(m().mark((function e(n,o){var a,s,u;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=0;case 1:if(!(a<c.length)){e.next=12;break}return s=c[a],e.next=5,Ze(l,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=c.map((function(e){return Ze(l,t,e,r,i).then((function(t){return{errors:t,rule:e}}))}));a=(o?function(e){return nt.apply(this,arguments)}(s):function(e){return tt.apply(this,arguments)}(s)).then((function(e){return Promise.reject(e)}))}return a.catch((function(e){return e})),a}function tt(){return(tt=b(m().mark((function e(t){return m().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,P(e))})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function nt(){return(nt=b(m().mark((function e(t){var n;return m().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 rt(e){return Z(e)}function ot(e,t){var n={};return t.forEach((function(t){var r=Ve(e,t);n=Ye(n,t,r)})),n}function it(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e&&e.some((function(e){return at(t,e,n)}))}function at(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 lt(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&"object"===v(t.target)&&e in t.target?t.target[e]:t}function ct(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(P(e.slice(0,n)),[o],P(e.slice(n,t)),P(e.slice(t+1,r))):i<0?[].concat(P(e.slice(0,t)),P(e.slice(t+1,n+1)),[o],P(e.slice(n+1,r))):e}var st=["name"],ut=[];function dt(e,t,n,r,o,i){return"function"===typeof e?e(t,n,"source"in i?{source:i.source}:{}):r!==o}var ft=function(e){j(n,e);var t=D(n);function n(e){var o;(M(this,n),w(I(o=t.call(this,e)),"state",{resetCount:0}),w(I(o),"cancelRegisterFunc",null),w(I(o),"mounted",!1),w(I(o),"touched",!1),w(I(o),"dirty",!1),w(I(o),"validatePromise",void 0),w(I(o),"prevValidating",void 0),w(I(o),"errors",ut),w(I(o),"warnings",ut),w(I(o),"cancelRegister",(function(){var e=o.props,t=e.preserve,n=e.isListField,r=e.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(n,t,rt(r)),o.cancelRegisterFunc=null})),w(I(o),"getNamePath",(function(){var e=o.props,t=e.name,n=e.fieldContext.prefixName;return void 0!==t?[].concat(P(void 0===n?[]:n),P(t)):[]})),w(I(o),"getRules",(function(){var e=o.props,t=e.rules,n=void 0===t?[]:t,r=e.fieldContext;return n.map((function(e){return"function"===typeof e?e(r):e}))})),w(I(o),"refresh",(function(){o.mounted&&o.setState((function(e){return{resetCount:e.resetCount+1}}))})),w(I(o),"metaCache",null),w(I(o),"triggerMetaEvent",(function(e){var t=o.props.onMetaChange;if(t){var n=O(O({},o.getMeta()),{},{destroy:e});X(o.metaCache,n)||t(n),o.metaCache=n}else o.metaCache=null})),w(I(o),"onStoreChange",(function(e,t,n){var r=o.props,i=r.shouldUpdate,a=r.dependencies,l=void 0===a?[]:a,c=r.onReset,s=n.store,u=o.getNamePath(),d=o.getValue(e),f=o.getValue(s),p=t&&it(t,u);switch("valueUpdate"!==n.type||"external"!==n.source||X(d,f)||(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=ut,o.warnings=ut,o.triggerMetaEvent()),n.type){case"reset":if(!t||p)return o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=ut,o.warnings=ut,o.triggerMetaEvent(),null===c||void 0===c||c(),void o.refresh();break;case"remove":if(i&&dt(i,e,s,d,f,n))return void o.reRender();break;case"setField":var h=n.data;if(p)return"touched"in h&&(o.touched=h.touched),"validating"in h&&!("originRCField"in h)&&(o.validatePromise=h.validating?Promise.resolve([]):null),"errors"in h&&(o.errors=h.errors||ut),"warnings"in h&&(o.warnings=h.warnings||ut),o.dirty=!0,o.triggerMetaEvent(),void o.reRender();if("value"in h&&it(t,u,!0))return void o.reRender();if(i&&!u.length&&dt(i,e,s,d,f,n))return void o.reRender();break;case"dependenciesUpdate":if(l.map(rt).some((function(e){return it(n.relatedFields,e)})))return void o.reRender();break;default:if(p||(!l.length||u.length||i)&&dt(i,e,s,d,f,n))return void o.reRender()}!0===i&&o.reRender()})),w(I(o),"validateRules",(function(e){var t=o.getNamePath(),n=o.getValue(),r=e||{},i=r.triggerName,a=r.validateOnly,l=void 0!==a&&a,c=Promise.resolve().then(b(m().mark((function r(){var a,l,s,u,d,f,p;return m().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(o.mounted){r.next=2;break}return r.abrupt("return",[]);case 2:if(a=o.props,l=a.validateFirst,s=void 0!==l&&l,u=a.messageVariables,d=a.validateDebounce,f=o.getRules(),i&&(f=f.filter((function(e){return e})).filter((function(e){var t=e.validateTrigger;return!t||Z(t).includes(i)}))),!d||!i){r.next=10;break}return r.next=8,new Promise((function(e){setTimeout(e,d)}));case 8:if(o.validatePromise===c){r.next=10;break}return r.abrupt("return",[]);case 10:return(p=et(t,n,f,e,s,u)).catch((function(e){return e})).then((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ut;if(o.validatePromise===c){var t;o.validatePromise=null;var n=[],r=[];null===(t=e.forEach)||void 0===t||t.call(e,(function(e){var t=e.rule.warningOnly,o=e.errors,i=void 0===o?ut:o;t?r.push.apply(r,P(i)):n.push.apply(n,P(i))})),o.errors=n,o.warnings=r,o.triggerMetaEvent(),o.reRender()}})),r.abrupt("return",p);case 13:case"end":return r.stop()}}),r)}))));return l||(o.validatePromise=c,o.dirty=!0,o.errors=ut,o.warnings=ut,o.triggerMetaEvent(),o.reRender()),c})),w(I(o),"isFieldValidating",(function(){return!!o.validatePromise})),w(I(o),"isFieldTouched",(function(){return o.touched})),w(I(o),"isFieldDirty",(function(){return!(!o.dirty&&void 0===o.props.initialValue)||void 0!==(0,o.props.fieldContext.getInternalHooks(q).getInitialValue)(o.getNamePath())})),w(I(o),"getErrors",(function(){return o.errors})),w(I(o),"getWarnings",(function(){return o.warnings})),w(I(o),"isListField",(function(){return o.props.isListField})),w(I(o),"isList",(function(){return o.props.isList})),w(I(o),"isPreserve",(function(){return o.props.preserve})),w(I(o),"getMeta",(function(){return o.prevValidating=o.isFieldValidating(),{touched:o.isFieldTouched(),validating:o.prevValidating,errors:o.errors,warnings:o.warnings,name:o.getNamePath(),validated:null===o.validatePromise}})),w(I(o),"getOnlyChild",(function(e){if("function"===typeof e){var t=o.getMeta();return O(O({},o.getOnlyChild(e(o.getControlled(),t,o.props.fieldContext))),{},{isFunction:!0})}var n=F(e);return 1===n.length&&r.isValidElement(n[0])?{child:n[0],isFunction:!1}:{child:n,isFunction:!1}})),w(I(o),"getValue",(function(e){var t=o.props.fieldContext.getFieldsValue,n=o.getNamePath();return Ve(e||t(!0),n)})),w(I(o),"getControlled",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=o.props,n=t.name,r=t.trigger,i=t.validateTrigger,a=t.getValueFromEvent,l=t.normalize,c=t.valuePropName,s=t.getValueProps,u=t.fieldContext,d=void 0!==i?i:u.validateTrigger,f=o.getNamePath(),p=u.getInternalHooks,h=u.getFieldsValue,g=p(q).dispatch,v=o.getValue(),m=s||function(e){return w({},c,e)},y=e[r],b=void 0!==n?m(v):{};var x=O(O({},e),b);return x[r]=function(){var e;o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];e=a?a.apply(void 0,n):lt.apply(void 0,[c].concat(n)),l&&(e=l(e,v,h(!0))),g({type:"updateValue",namePath:f,value:e}),y&&y.apply(void 0,n)},Z(d||[]).forEach((function(e){var t=x[e];x[e]=function(){t&&t.apply(void 0,arguments);var n=o.props.rules;n&&n.length&&g({type:"validateField",namePath:f,triggerName:e})}})),x})),e.fieldContext)&&(0,(0,e.fieldContext.getInternalHooks)(q).initEntityValue)(I(o));return o}return A(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)(q).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,o=this.getOnlyChild(n),i=o.child;return o.isFunction?e=i:r.isValidElement(i)?e=r.cloneElement(i,this.getControlled(i.props)):(U(!i,"`children` of Field is not validate ReactElement."),e=i),r.createElement(r.Fragment,{key:t},e)}}]),n}(r.Component);w(ft,"contextType",$),w(ft,"defaultProps",{trigger:"onChange",valuePropName:"value"});const pt=function(e){var t=e.name,n=g(e,st),o=r.useContext($),i=r.useContext(Q),a=void 0!==t?rt(t):void 0,l="keep";return n.isListField||(l="_".concat((a||[]).join("_"))),r.createElement(ft,h({key:l,name:a,isListField:!!i},n,{fieldContext:o}))};const ht=function(e){var t=e.name,n=e.initialValue,o=e.children,i=e.rules,a=e.validateTrigger,l=e.isListField,c=r.useContext($),s=r.useContext(Q),u=r.useRef({keys:[],id:0}).current,d=r.useMemo((function(){var e=rt(c.prefixName)||[];return[].concat(P(e),P(rt(t)))}),[c.prefixName,t]),f=r.useMemo((function(){return O(O({},c),{},{prefixName:d})}),[c,d]),p=r.useMemo((function(){return{getKey:function(e){var t=d.length,n=e[t];return[u.keys[n],e.slice(t+1)]}}}),[d]);return"function"!==typeof o?(U(!1,"Form.List only accepts function as children."),null):r.createElement(Q.Provider,{value:p},r.createElement($.Provider,{value:f},r.createElement(pt,{name:[],shouldUpdate:function(e,t,n){return"internal"!==n.source&&e!==t},rules:i,validateTrigger:a,initialValue:n,isList:!0,isListField:null!==l&&void 0!==l?l:!!s},(function(e,t){var n=e.value,r=void 0===n?[]:n,i=e.onChange,a=c.getFieldValue,l=function(){return a(d||[])||[]},s={add:function(e,t){var n=l();t>=0&&t<=n.length?(u.keys=[].concat(P(u.keys.slice(0,t)),[u.id],P(u.keys.slice(t))),i([].concat(P(n.slice(0,t)),[e],P(n.slice(t))))):(u.keys=[].concat(P(u.keys),[u.id]),i([].concat(P(n),[e]))),u.id+=1},remove:function(e){var t=l(),n=new Set(Array.isArray(e)?e:[e]);n.size<=0||(u.keys=u.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||(u.keys=ct(u.keys,e,t),i(ct(n,e,t)))}}},f=r||[];return Array.isArray(f)||(f=[]),o(f.map((function(e,t){var n=u.keys[t];return void 0===n&&(u.keys[t]=u.id,n=u.keys[t],u.id+=1),{name:t,key:n,isListField:!0}})),s,t)}))))};function gt(e,t){return He(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,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||E(e,t)||We()}var vt="__@field_split__";function mt(e){return e.map((function(e){return"".concat(v(e),":").concat(e)})).join(vt)}var yt=function(){function e(){M(this,e),w(this,"kvs",new Map)}return A(e,[{key:"set",value:function(e,t){this.kvs.set(mt(e),t)}},{key:"get",value:function(e){return this.kvs.get(mt(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(mt(e))}},{key:"map",value:function(e){return P(this.kvs.entries()).map((function(t){var n=gt(t,2),r=n[0],o=n[1],i=r.split(vt);return e({key:i.map((function(e){var t=gt(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 bt=yt;var xt=["name"],wt=A((function e(t){var n=this;M(this,e),w(this,"formHooked",!1),w(this,"forceRootUpdate",void 0),w(this,"subscribable",!0),w(this,"store",{}),w(this,"fieldEntities",[]),w(this,"initialValues",{}),w(this,"callbacks",{}),w(this,"validateMessages",null),w(this,"preserve",null),w(this,"lastValidatePromise",null),w(this,"getForm",(function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}})),w(this,"getInternalHooks",(function(e){return e===q?(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}):(U(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)})),w(this,"useSubscribe",(function(e){n.subscribable=e})),w(this,"prevWithoutPreserves",null),w(this,"setInitialValues",(function(e,t){if(n.initialValues=e||{},t){var r,o=qe(e,n.store);null===(r=n.prevWithoutPreserves)||void 0===r||r.map((function(t){var n=t.key;o=Ye(o,n,Ve(e,n))})),n.prevWithoutPreserves=null,n.updateStore(o)}})),w(this,"destroyForm",(function(e){if(e)n.updateStore({});else{var t=new bt;n.getFieldEntities(!0).forEach((function(e){n.isMergedPreserve(e.isPreserve())||t.set(e.getNamePath(),!0)})),n.prevWithoutPreserves=t}})),w(this,"getInitialValue",(function(e){var t=Ve(n.initialValues,e);return e.length?qe(t):t})),w(this,"setCallbacks",(function(e){n.callbacks=e})),w(this,"setValidateMessages",(function(e){n.validateMessages=e})),w(this,"setPreserve",(function(e){n.preserve=e})),w(this,"watchList",[]),w(this,"registerWatch",(function(e){return n.watchList.push(e),function(){n.watchList=n.watchList.filter((function(t){return t!==e}))}})),w(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)}))}})),w(this,"timeoutId",null),w(this,"warningUnhooked",(function(){0})),w(this,"updateStore",(function(e){n.store=e})),w(this,"getFieldEntities",(function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?n.fieldEntities.filter((function(e){return e.getNamePath().length})):n.fieldEntities})),w(this,"getFieldsMap",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=new bt;return n.getFieldEntities(e).forEach((function(e){var n=e.getNamePath();t.set(n,e)})),t})),w(this,"getFieldEntitiesForNamePathList",(function(e){if(!e)return n.getFieldEntities(!0);var t=n.getFieldsMap(!0);return e.map((function(e){var n=rt(e);return t.get(n)||{INVALIDATE_NAME_PATH:rt(e)}}))})),w(this,"getFieldsValue",(function(e,t){var r,o,i;if(n.warningUnhooked(),!0===e||Array.isArray(e)?(r=e,o=t):e&&"object"===v(e)&&(i=e.strict,o=e.filter),!0===r&&!o)return n.store;var a=n.getFieldEntitiesForNamePathList(Array.isArray(r)?r:null),l=[];return a.forEach((function(e){var t,n,a,c,s="INVALIDATE_NAME_PATH"in e?e.INVALIDATE_NAME_PATH:e.getNamePath();if(i){if(null!==(a=(c=e).isList)&&void 0!==a&&a.call(c))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)&&l.push(s)}else l.push(s)})),ot(n.store,l.map(rt))})),w(this,"getFieldValue",(function(e){n.warningUnhooked();var t=rt(e);return Ve(n.store,t)})),w(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:rt(e[n]),errors:[],warnings:[]}}))})),w(this,"getFieldError",(function(e){n.warningUnhooked();var t=rt(e);return n.getFieldsError([t])[0].errors})),w(this,"getFieldWarning",(function(e){n.warningUnhooked();var t=rt(e);return n.getFieldsError([t])[0].warnings})),w(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],l=!1;0===t.length?o=null:1===t.length?Array.isArray(i)?(o=i.map(rt),l=!1):(o=null,l=i):(o=i.map(rt),l=a);var c=n.getFieldEntities(!0),s=function(e){return e.isFieldTouched()};if(!o)return l?c.every((function(e){return s(e)||e.isList()})):c.some(s);var u=new bt;o.forEach((function(e){u.set(e,[])})),c.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(P(t),[e])}))}))}));var d=function(e){return e.some(s)},f=u.map((function(e){return e.value}));return l?f.every(d):f.some(d)})),w(this,"isFieldTouched",(function(e){return n.warningUnhooked(),n.isFieldsTouched([e])})),w(this,"isFieldsValidating",(function(e){n.warningUnhooked();var t=n.getFieldEntities();if(!e)return t.some((function(e){return e.isFieldValidating()}));var r=e.map(rt);return t.some((function(e){var t=e.getNamePath();return it(r,t)&&e.isFieldValidating()}))})),w(this,"isFieldValidating",(function(e){return n.warningUnhooked(),n.isFieldsValidating([e])})),w(this,"resetWithFieldInitialValue",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=new bt,r=n.getFieldEntities(!0);r.forEach((function(e){var n=e.props.initialValue,r=e.getNamePath();if(void 0!==n){var o=t.get(r)||new Set;o.add({entity:e,value:n}),t.set(r,o)}}));var o;e.entities?o=e.entities:e.namePathList?(o=[],e.namePathList.forEach((function(e){var n,r=t.get(e);r&&(n=o).push.apply(n,P(P(r).map((function(e){return e.entity}))))}))):o=r,o.forEach((function(r){if(void 0!==r.props.initialValue){var o=r.getNamePath();if(void 0!==n.getInitialValue(o))U(!1,"Form already set 'initialValues' with path '".concat(o.join("."),"'. Field can not overwrite it."));else{var i=t.get(o);if(i&&i.size>1)U(!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);r.isListField()||e.skipExist&&void 0!==a||n.updateStore(Ye(n.store,o,P(i)[0].value))}}}}))})),w(this,"resetFields",(function(e){n.warningUnhooked();var t=n.store;if(!e)return n.updateStore(qe(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(t,null,{type:"reset"}),void n.notifyWatch();var r=e.map(rt);r.forEach((function(e){var t=n.getInitialValue(e);n.updateStore(Ye(n.store,e,t))})),n.resetWithFieldInitialValue({namePathList:r}),n.notifyObservers(t,r,{type:"reset"}),n.notifyWatch(r)})),w(this,"setFields",(function(e){n.warningUnhooked();var t=n.store,r=[];e.forEach((function(e){var o=e.name,i=g(e,xt),a=rt(o);r.push(a),"value"in i&&n.updateStore(Ye(n.store,a,i.value)),n.notifyObservers(t,[a],{type:"setField",data:e})})),n.notifyWatch(r)})),w(this,"getFields",(function(){return n.getFieldEntities(!0).map((function(e){var t=e.getNamePath(),r=O(O({},e.getMeta()),{},{name:t,value:n.getFieldValue(t)});return Object.defineProperty(r,"originRCField",{value:!0}),r}))})),w(this,"initEntityValue",(function(e){var t=e.props.initialValue;if(void 0!==t){var r=e.getNamePath();void 0===Ve(n.store,r)&&n.updateStore(Ye(n.store,r,t))}})),w(this,"isMergedPreserve",(function(e){var t=void 0!==e?e:n.preserve;return null===t||void 0===t||t})),w(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!at(e.getNamePath(),t)}))){var l=n.store;n.updateStore(Ye(l,t,a,!0)),n.notifyObservers(l,[t],{type:"remove"}),n.triggerDependenciesUpdate(l,t)}}n.notifyWatch([t])}})),w(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})}})),w(this,"notifyObservers",(function(e,t,r){if(n.subscribable){var o=O(O({},r),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach((function(n){(0,n.onStoreChange)(e,t,o)}))}else n.forceRootUpdate()})),w(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(P(r))}),r})),w(this,"updateValue",(function(e,t){var r=rt(e),o=n.store;n.updateStore(Ye(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(ot(n.store,[r]),n.getFieldsValue());n.triggerOnFieldsChange([r].concat(P(i)))})),w(this,"setFieldsValue",(function(e){n.warningUnhooked();var t=n.store;if(e){var r=qe(n.store,e);n.updateStore(r)}n.notifyObservers(t,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()})),w(this,"setFieldValue",(function(e,t){n.setFields([{name:e,value:t}])})),w(this,"getDependencyChildrenFields",(function(e){var t=new Set,r=[],o=new bt;n.getFieldEntities().forEach((function(e){(e.props.dependencies||[]).forEach((function(t){var n=rt(t);o.update(n,(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Set;return t.add(e),t}))}))}));return 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})),w(this,"triggerOnFieldsChange",(function(e,t){var r=n.callbacks.onFieldsChange;if(r){var o=n.getFields();if(t){var i=new bt;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 it(e,n)}));a.length&&r(a,o)}})),w(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(rt):[],l=[],c=String(Date.now()),s=new Set,u=o||{},d=u.recursive,f=u.dirty;n.getFieldEntities(!0).forEach((function(e){if(i||a.push(e.getNamePath()),e.props.rules&&e.props.rules.length&&(!f||e.isFieldDirty())){var t=e.getNamePath();if(s.add(t.join(c)),!i||it(a,t,d)){var r=e.validateRules(O({validateMessages:O(O({},ze),n.validateMessages)},o));l.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,P(n)):r.push.apply(r,P(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([])}(l);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 g=a.filter((function(e){return s.has(e.join(c))}));return n.triggerOnFieldsChange(g),h})),w(this,"submit",(function(){n.warningUnhooked(),n.validateFields().then((function(e){var t=n.callbacks.onFinish;if(t)try{t(e)}catch(r){console.error(r)}})).catch((function(e){var t=n.callbacks.onFinishFailed;t&&t(e)}))})),this.forceRootUpdate=t}));const St=function(e){var t=r.useRef(),n=gt(r.useState({}),2)[1];if(!t.current)if(e)t.current=e;else{var o=new wt((function(){n({})}));t.current=o.getForm()}return[t.current]};var Ot=r.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}});const _t=Ot;var Ct=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"];const Et=function(e,t){var n=e.name,o=e.initialValues,i=e.fields,a=e.form,l=e.preserve,c=e.children,s=e.component,u=void 0===s?"form":s,d=e.validateMessages,f=e.validateTrigger,p=void 0===f?"onChange":f,m=e.onValuesChange,y=e.onFieldsChange,b=e.onFinish,x=e.onFinishFailed,w=e.clearOnDestroy,S=g(e,Ct),_=r.useRef(null),C=r.useContext(_t),E=gt(St(a),1)[0],M=E.getInternalHooks(q),k=M.useSubscribe,A=M.setInitialValues,I=M.setCallbacks,T=M.setValidateMessages,j=M.setPreserve,L=M.destroyForm;r.useImperativeHandle(t,(function(){return O(O({},E),{},{nativeElement:_.current})})),r.useEffect((function(){return C.registerForm(n,E),function(){C.unregisterForm(n)}}),[C,E,n]),T(O(O({},C.validateMessages),d)),I({onValuesChange:m,onFieldsChange:function(e){if(C.triggerFormChange(n,e),y){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];y.apply(void 0,[e].concat(r))}},onFinish:function(e){C.triggerFormFinish(n,e),b&&b(e)},onFinishFailed:x}),j(l);var R,D=r.useRef(null);A(o,!D.current),D.current||(D.current=!0),r.useEffect((function(){return function(){return L(w)}}),[]);var N="function"===typeof c;N?R=c(E.getFieldsValue(!0),E):R=c;k(!N);var F=r.useRef();r.useEffect((function(){(function(e,t){if(e===t)return!0;if(!e&&t||e&&!t)return!1;if(!e||!t||"object"!==v(e)||"object"!==v(t))return!1;var n=Object.keys(e),r=Object.keys(t);return P(new Set([].concat(n,r))).every((function(n){var r=e[n],o=t[n];return"function"===typeof r&&"function"===typeof o||r===o}))})(F.current||[],i||[])||E.setFields(i||[]),F.current=i}),[i,E]);var B=r.useMemo((function(){return O(O({},E),{},{validateTrigger:p})}),[E,p]),z=r.createElement(Q.Provider,{value:null},r.createElement($.Provider,{value:B},R));return!1===u?z:r.createElement(u,h({},S,{ref:_,onSubmit:function(e){e.preventDefault(),e.stopPropagation(),E.submit()},onReset:function(e){var t;e.preventDefault(),E.resetFields(),null===(t=S.onReset)||void 0===t||t.call(S,e)}}),z)};function Pt(e){try{return JSON.stringify(e)}catch(t){return Math.random()}}var Mt=function(){};const kt=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=t[0],i=t[1],a=void 0===i?{}:i,l=function(e){return e&&!!e._init}(a)?{form:a}:a,c=l.form,s=gt((0,r.useState)(),2),u=s[0],d=s[1],f=(0,r.useMemo)((function(){return Pt(u)}),[u]),p=(0,r.useRef)(f);p.current=f;var h=(0,r.useContext)($),g=c||h,v=g&&g._init,m=rt(o),y=(0,r.useRef)(m);return y.current=m,Mt(m),(0,r.useEffect)((function(){if(v){var e=g.getFieldsValue,t=(0,g.getInternalHooks)(q).registerWatch,n=function(e,t){var n=l.preserve?t:e;return"function"===typeof o?o(n):Ve(n,y.current)},r=t((function(e,t){var r=n(e,t),o=Pt(r);p.current!==o&&(p.current=o,d(r))})),i=n(e(),e(!0));return u!==i&&d(i),r}}),[v]),u};var At=r.forwardRef(Et);At.FormProvider=function(e){var t=e.validateMessages,n=e.onFormChange,o=e.onFormFinish,i=e.children,a=r.useContext(Ot),l=r.useRef({});return r.createElement(Ot.Provider,{value:O(O({},a),{},{validateMessages:O(O({},a.validateMessages),t),triggerFormChange:function(e,t){n&&n(e,{changedFields:t,forms:l.current}),a.triggerFormChange(e,t)},triggerFormFinish:function(e,t){o&&o(e,{values:t,forms:l.current}),a.triggerFormFinish(e,t)},registerForm:function(e,t){e&&(l.current=O(O({},l.current),{},w({},e,t))),a.registerForm(e,t)},unregisterForm:function(e){var t=O({},l.current);delete t[e],l.current=t,a.unregisterForm(e)}})},i)},At.Field=pt,At.List=ht,At.useForm=St,At.useWatch=kt;const It=r.createContext({});const Tt=e=>{let{children:t,status:n,override:o}=e;const i=(0,r.useContext)(It),a=(0,r.useMemo)((()=>{const e=Object.assign({},i);return o&&delete e.isFormItemInput,n&&(delete e.status,delete e.hasFeedback,delete e.feedbackIcon),e}),[n,o,i]);return r.createElement(It.Provider,{value:a},t)},jt=(0,r.createContext)(void 0);const Lt=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 Rt(){return!("undefined"===typeof window||!window.document||!window.document.createElement)}function Dt(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}var Nt="data-rc-order",Ft="data-rc-priority",Bt="rc-util-key",zt=new Map;function Ht(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).mark;return e?e.startsWith("data-")?e:"data-".concat(e):Bt}function Wt(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function Vt(e){return Array.from((zt.get(e)||e).children).filter((function(e){return"STYLE"===e.tagName}))}function Gt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Rt())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),l="prependQueue"===a,c=document.createElement("style");c.setAttribute(Nt,a),l&&i&&c.setAttribute(Ft,"".concat(i)),null!==n&&void 0!==n&&n.nonce&&(c.nonce=null===n||void 0===n?void 0:n.nonce),c.innerHTML=e;var s=Wt(t),u=s.firstChild;if(r){if(l){var d=(t.styles||Vt(s)).filter((function(e){if(!["prepend","prependQueue"].includes(e.getAttribute(Nt)))return!1;var t=Number(e.getAttribute(Ft)||0);return i>=t}));if(d.length)return s.insertBefore(c,d[d.length-1].nextSibling),c}s.insertBefore(c,u)}else s.appendChild(c);return c}function Yt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Wt(t);return(t.styles||Vt(n)).find((function(n){return n.getAttribute(Ht(t))===e}))}function Ut(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Yt(e,t);n&&Wt(t).removeChild(n)}function Xt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Wt(n),o=Vt(r),i=O(O({},n),{},{styles:o});!function(e,t){var n=zt.get(e);if(!n||!Dt(document,n)){var r=Gt("",t),o=r.parentNode;zt.set(e,o),e.removeChild(r)}}(r,i);var a=Yt(t,i);if(a){var l,c,s;if(null!==(l=i.csp)&&void 0!==l&&l.nonce&&a.nonce!==(null===(c=i.csp)||void 0===c?void 0:c.nonce))a.nonce=null===(s=i.csp)||void 0===s?void 0:s.nonce;return a.innerHTML!==e&&(a.innerHTML=e),a}var u=Gt(e,i);return u.setAttribute(Ht(i),t),u}function qt(e,t,n){var o=r.useRef({});return"value"in o.current&&!n(o.current.condition,t)||(o.current.value=e(),o.current.condition=t),o.current.value}var Kt="%";function $t(e){return e.join(Kt)}var Qt=function(){function e(t){M(this,e),w(this,"instanceId",void 0),w(this,"cache",new Map),this.instanceId=t}return A(e,[{key:"get",value:function(e){return this.opGet($t(e))}},{key:"opGet",value:function(e){return this.cache.get(e)||null}},{key:"update",value:function(e,t){return this.opUpdate($t(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 Zt=Qt;var Jt="data-token-hash",en="data-css-hash",tn="__cssinjs_instance__";function nn(){var e=Math.random().toString(12).slice(2);if("undefined"!==typeof document&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(en,"]"))||[],n=document.head.firstChild;Array.from(t).forEach((function(t){t[tn]=t[tn]||e,t[tn]===e&&document.head.insertBefore(t,n)}));var r={};Array.from(document.querySelectorAll("style[".concat(en,"]"))).forEach((function(t){var n,o=t.getAttribute(en);r[o]?t[tn]===e&&(null===(n=t.parentNode)||void 0===n||n.removeChild(t)):r[o]=!0}))}return new Zt(e)}var rn=r.createContext({hashPriority:"low",cache:nn(),defaultCache:!0});const on=rn;var an="CALC_UNIT";new RegExp(an,"g");var ln=function(){function e(){M(this,e),w(this,"cache",void 0),w(this,"keys",void 0),w(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return A(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):o=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=gt(e,2)[1];return r.internalGet(t)[1]<n?[t,r.internalGet(t)[1]]:e}),[this.keys[0],this.cacheCallTimes]),i=gt(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}();w(ln,"MAX_CACHE_SIZE",20),w(ln,"MAX_CACHE_OFFSET",5);var cn=0,sn=function(){function e(t){M(this,e),w(this,"derivatives",void 0),w(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=cn,0===t.length&&t.length,cn+=1}return A(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce((function(t,n){return n(e,t)}),void 0)}}]),e}(),un=new ln;function dn(e){var t=Array.isArray(e)?e:[e];return un.has(t)||un.set(t,new sn(t)),un.get(t)}var fn=new WeakMap,pn={};var hn=new WeakMap;function gn(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=hn.get(e)||"";return n||(Object.keys(e).forEach((function(r){var o=e[r];n+=r,o instanceof sn?n+=o.id:o&&"object"===v(o)?n+=gn(o,t):n+=o})),t&&(n=Lt(n)),hn.set(e,n)),n}function vn(e,t){return Lt("".concat(t,"_").concat(gn(e,!0)))}"random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,"");var mn=Rt();function yn(e){return"number"===typeof e?"".concat(e,"px"):e}function bn(e,t,n){if(arguments.length>4&&void 0!==arguments[4]&&arguments[4])return e;var r=O(O({},arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}),{},w(w({},Jt,t),en,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 xn=function(e,t,n){return Object.keys(e).length?".".concat(t).concat(null!==n&&void 0!==n&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(e).map((function(e){var t=gt(e,2),n=t[0],r=t[1];return"".concat(n,":").concat(r,";")})).join(""),"}"):""},wn=function(e,t,n){var r={},o={};return Object.entries(e).forEach((function(e){var t,i,a=gt(e,2),l=a[0],c=a[1];if(null!==n&&void 0!==n&&null!==(t=n.preserve)&&void 0!==t&&t[l])o[l]=c;else if(("string"===typeof c||"number"===typeof c)&&(null===n||void 0===n||null===(i=n.ignore)||void 0===i||!i[l])){var s,u=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()}(l,null===n||void 0===n?void 0:n.prefix);r[u]="number"!==typeof c||null!==n&&void 0!==n&&null!==(s=n.unitless)&&void 0!==s&&s[l]?String(c):"".concat(c,"px"),o[l]="var(".concat(u,")")}})),[o,xn(r,t,{scope:null===n||void 0===n?void 0:n.scope})]},Sn=Rt()?r.useLayoutEffect:r.useEffect,On=function(e,t){var n=r.useRef(!0);Sn((function(){return e(n.current)}),t),Sn((function(){return n.current=!1,function(){n.current=!0}}),[])},_n=function(e,t){On((function(t){if(!t)return e()}),t)};const Cn=On;var En=O({},o).useInsertionEffect;const Pn=En?function(e,t,n){return En((function(){return e(),t()}),n)}:function(e,t,n){r.useMemo(e,n),Cn((function(){return t(!0)}),n)};const Mn="undefined"!==typeof O({},o).useInsertionEffect?function(e){var t=[],n=!1;return r.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()}};const kn=function(){return!1};function An(e,t,n,o,i){var a=r.useContext(on).cache,l=$t([e].concat(P(t))),c=Mn([l]),s=(kn(),function(e){a.opUpdate(l,(function(t){var r=gt(t||[void 0,void 0],2),o=r[0];var i=[void 0===o?0:o,r[1]||n()];return e?e(i):i}))});r.useMemo((function(){s()}),[l]);var u=a.opGet(l)[1];return Pn((function(){null===i||void 0===i||i(u)}),(function(e){return s((function(t){var n=gt(t,2),r=n[0],o=n[1];return e&&0===r&&(null===i||void 0===i||i(u)),[r+1,o]})),function(){a.opUpdate(l,(function(t){var n=gt(t||[],2),r=n[0],i=void 0===r?0:r,s=n[1];return 0===i-1?(c((function(){!e&&a.opGet(l)||null===o||void 0===o||o(s,!1)})),null):[i-1,s]}))}}),[l]),u}var In={},Tn="css",jn=new Map;var Ln=0;function Rn(e,t){jn.set(e,(jn.get(e)||0)-1);var n=Array.from(jn.keys()),r=n.filter((function(e){return(jn.get(e)||0)<=0}));n.length-r.length>Ln&&r.forEach((function(e){!function(e,t){"undefined"!==typeof document&&document.querySelectorAll("style[".concat(Jt,'="').concat(e,'"]')).forEach((function(e){var n;e[tn]===t&&(null===(n=e.parentNode)||void 0===n||n.removeChild(e))}))}(e,t),jn.delete(e)}))}var Dn=function(e,t,n,r){var o=O(O({},n.getDerivativeToken(e)),t);return r&&(o=r(o)),o},Nn="token";function Fn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=(0,r.useContext)(on),i=o.cache.instanceId,a=o.container,l=n.salt,c=void 0===l?"":l,s=n.override,u=void 0===s?In:s,d=n.formatToken,f=n.getComputedToken,p=n.cssVar,h=function(e,t){for(var n=fn,r=0;r<t.length;r+=1){var o=t[r];n.has(o)||n.set(o,new WeakMap),n=n.get(o)}return n.has(pn)||n.set(pn,e()),n.get(pn)}((function(){return Object.assign.apply(Object,[{}].concat(P(t)))}),t),g=gn(h),v=gn(u),m=p?gn(p):"",y=An(Nn,[c,e.id,g,v,m],(function(){var t,n=f?f(h,u,e):Dn(h,u,e,d),r=O({},n),o="";if(p){var i=gt(wn(n,p.key,{prefix:p.prefix,ignore:p.ignore,unitless:p.unitless,preserve:p.preserve}),2);n=i[0],o=i[1]}var a=vn(n,c);n._tokenKey=a,r._tokenKey=vn(r,c);var l=null!==(t=null===p||void 0===p?void 0:p.key)&&void 0!==t?t:a;n._themeKey=l,function(e){jn.set(e,(jn.get(e)||0)+1)}(l);var s="".concat(Tn,"-").concat(Lt(a));return n._hashId=s,[n,s,r,o,(null===p||void 0===p?void 0:p.key)||""]}),(function(e){Rn(e[0]._themeKey,i)}),(function(e){var t=gt(e,4),n=t[0],r=t[3];if(p&&r){var o=Xt(r,Lt("css-variables-".concat(n._themeKey)),{mark:en,prepend:"queue",attachTo:a,priority:-999});o[tn]=i,o.setAttribute(Jt,n._themeKey)}}));return y}const Bn={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 zn="comm",Hn="rule",Wn="decl",Vn="@import",Gn="@keyframes",Yn="@layer",Un=Math.abs,Xn=String.fromCharCode;Object.assign;function qn(e){return e.trim()}function Kn(e,t,n){return e.replace(t,n)}function $n(e,t,n){return e.indexOf(t,n)}function Qn(e,t){return 0|e.charCodeAt(t)}function Zn(e,t,n){return e.slice(t,n)}function Jn(e){return e.length}function er(e,t){return t.push(e),e}function tr(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function nr(e,t,n,r){switch(e.type){case Yn:if(e.children.length)break;case Vn:case Wn:return e.return=e.return||e.value;case zn:return"";case Gn:return e.return=e.value+"{"+tr(e.children,r)+"}";case Hn:if(!Jn(e.value=e.props.join(",")))return""}return Jn(n=tr(e.children,r))?e.return=e.value+"{"+n+"}":""}var rr=1,or=1,ir=0,ar=0,lr=0,cr="";function sr(e,t,n,r,o,i,a,l){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:rr,column:or,length:a,return:"",siblings:l}}function ur(){return lr=ar>0?Qn(cr,--ar):0,or--,10===lr&&(or=1,rr--),lr}function dr(){return lr=ar<ir?Qn(cr,ar++):0,or++,10===lr&&(or=1,rr++),lr}function fr(){return Qn(cr,ar)}function pr(){return ar}function hr(e,t){return Zn(cr,e,t)}function gr(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 vr(e){return rr=or=1,ir=Jn(cr=e),ar=0,[]}function mr(e){return cr="",e}function yr(e){return qn(hr(ar-1,wr(91===e?e+2:40===e?e+1:e)))}function br(e){for(;(lr=fr())&&lr<33;)dr();return gr(e)>2||gr(lr)>3?"":" "}function xr(e,t){for(;--t&&dr()&&!(lr<48||lr>102||lr>57&&lr<65||lr>70&&lr<97););return hr(e,pr()+(t<6&&32==fr()&&32==dr()))}function wr(e){for(;dr();)switch(lr){case e:return ar;case 34:case 39:34!==e&&39!==e&&wr(lr);break;case 40:41===e&&wr(e);break;case 92:dr()}return ar}function Sr(e,t){for(;dr()&&e+lr!==57&&(e+lr!==84||47!==fr()););return"/*"+hr(t,ar-1)+"*"+Xn(47===e?e:dr())}function Or(e){for(;!gr(fr());)dr();return hr(e,ar)}function _r(e){return mr(Cr("",null,null,null,[""],e=vr(e),0,[0],e))}function Cr(e,t,n,r,o,i,a,l,c){for(var s=0,u=0,d=a,f=0,p=0,h=0,g=1,v=1,m=1,y=0,b="",x=o,w=i,S=r,O=b;v;)switch(h=y,y=dr()){case 40:if(108!=h&&58==Qn(O,d-1)){-1!=$n(O+=Kn(yr(y),"&","&\f"),"&\f",Un(s?l[s-1]:0))&&(m=-1);break}case 34:case 39:case 91:O+=yr(y);break;case 9:case 10:case 13:case 32:O+=br(h);break;case 92:O+=xr(pr()-1,7);continue;case 47:switch(fr()){case 42:case 47:er(Pr(Sr(dr(),pr()),t,n,c),c),5!=gr(h||1)&&5!=gr(fr()||1)||!Jn(O)||" "===Zn(O,-1,void 0)||(O+=" ");break;default:O+="/"}break;case 123*g:l[s++]=Jn(O)*m;case 125*g:case 59:case 0:switch(y){case 0:case 125:v=0;case 59+u:-1==m&&(O=Kn(O,/\f/g,"")),p>0&&(Jn(O)-d||0===g&&47===h)&&er(p>32?Mr(O+";",r,n,d-1,c):Mr(Kn(O," ","")+";",r,n,d-2,c),c);break;case 59:O+=";";default:if(er(S=Er(O,t,n,s,u,o,l,b,x=[],w=[],d,i),i),123===y)if(0===u)Cr(O,t,S,S,x,i,d,l,w);else switch(99===f&&110===Qn(O,3)?100:f){case 100:case 108:case 109:case 115:Cr(e,S,S,r&&er(Er(e,S,S,0,0,o,l,b,o,x=[],d,w),w),o,w,d,l,r?x:w);break;default:Cr(O,S,S,S,[""],w,0,l,w)}}s=u=p=0,g=m=1,b=O="",d=a;break;case 58:d=1+Jn(O),p=h;default:if(g<1)if(123==y)--g;else if(125==y&&0==g++&&125==ur())continue;switch(O+=Xn(y),y*g){case 38:m=u>0?1:(O+="\f",-1);break;case 44:l[s++]=(Jn(O)-1)*m,m=1;break;case 64:45===fr()&&(O+=yr(dr())),f=fr(),u=d=Jn(b=O+=Or(pr())),y++;break;case 45:45===h&&2==Jn(O)&&(g=0)}}return i}function Er(e,t,n,r,o,i,a,l,c,s,u,d){for(var f=o-1,p=0===o?i:[""],h=function(e){return e.length}(p),g=0,v=0,m=0;g<r;++g)for(var y=0,b=Zn(e,f+1,f=Un(v=a[g])),x=e;y<h;++y)(x=qn(v>0?p[y]+" "+b:Kn(b,/&\f/g,p[y])))&&(c[m++]=x);return sr(e,t,n,0===o?Hn:l,c,s,u,d)}function Pr(e,t,n,r){return sr(e,t,n,zn,Xn(lr),Zn(e,2,-2),0,r)}function Mr(e,t,n,r,o){return sr(e,t,n,Wn,Zn(e,0,r),Zn(e,r+1,-1),r,o)}var kr,Ar="data-ant-cssinjs-cache-path",Ir="_FILE_STYLE__";var Tr=!0;function jr(e){return function(){if(!kr&&(kr={},Rt())){var e=document.createElement("div");e.className=Ar,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=gt(e.split(":"),2),n=t[0],r=t[1];kr[n]=r}));var n,r=document.querySelector("style[".concat(Ar,"]"));r&&(Tr=!1,null===(n=r.parentNode)||void 0===n||n.removeChild(r)),document.body.removeChild(e)}}(),!!kr[e]}var Lr="_multi_value_";function Rr(e){return tr(_r(e),nr).replace(/\{%%%\:[^;];}/g,";")}function Dr(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(P(n.slice(1))).join(" ")})).join(",")}var Nr=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,l=n.hashId,c=n.layer,s=(n.path,n.hashPriority),u=n.transformers,d=void 0===u?[]:u,f=(n.linters,""),p={};function h(t){var r=t.getName(l);if(!p[r]){var o=gt(e(t.style,n,{root:!1,parentSelectors:a}),1)[0];p[r]="@keyframes ".concat(t.getName(l)).concat(o)}}var g=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 g.forEach((function(t){var r="string"!==typeof t||o?t:{};if("string"===typeof r)f+="".concat(r,"\n");else if(r._keyframe)h(r);else{var c=d.reduce((function(e,t){var n;return(null===t||void 0===t||null===(n=t.visit)||void 0===n?void 0:n.call(t,e))||e}),r);Object.keys(c).forEach((function(t){var r=c[t];if("object"!==v(r)||!r||"animationName"===t&&r._keyframe||function(e){return"object"===v(e)&&e&&("_skip_check_"in e||Lr in e)}(r)){var u;function S(e,t){var n=e.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())})),r=t;Bn[e]||"number"!==typeof r||0===r||(r="".concat(r,"px")),"animationName"===e&&null!==t&&void 0!==t&&t._keyframe&&(h(t),r=t.getName(l)),f+="".concat(n,":").concat(r,";")}var d=null!==(u=null===r||void 0===r?void 0:r.value)&&void 0!==u?u:r;"object"===v(r)&&null!==r&&void 0!==r&&r[Lr]&&Array.isArray(d)?d.forEach((function(e){S(t,e)})):S(t,d)}else{var g=!1,m=t.trim(),y=!1;(o||i)&&l?m.startsWith("@")?g=!0:m=Dr("&"===m?"":t,l,s):!o||l||"&"!==m&&""!==m||(m="",y=!0);var b=gt(e(r,n,{root:y,injectHash:g,parentSelectors:[].concat(P(a),[m])}),2),x=b[0],w=b[1];p=O(O({},p),w),f+="".concat(m).concat(x)}}))}})),o?c&&(f="@layer ".concat(c.name," {").concat(f,"}"),c.dependencies&&(p["@layer ".concat(c.name)]=c.dependencies.map((function(e){return"@layer ".concat(e,", ").concat(c.name,";")})).join("\n"))):f="{".concat(f,"}"),[f,p]};function Fr(){return null}var Br="style";function zr(e,t){var n=e.token,o=e.path,i=e.hashId,a=e.layer,l=e.nonce,c=e.clientOnly,s=e.order,u=void 0===s?0:s,d=r.useContext(on),f=d.autoClear,p=(d.mock,d.defaultCache),g=d.hashPriority,v=d.container,m=d.ssrInline,y=d.transformers,b=d.linters,x=d.cache,S=d.layer,_=n._tokenKey,C=[_];S&&C.push("layer"),C.push.apply(C,P(o));var E=mn;var M=An(Br,C,(function(){var e=C.join("|");if(jr(e)){var n=function(e){var t=kr[e],n=null;if(t&&Rt())if(Tr)n=Ir;else{var r=document.querySelector("style[".concat(en,'="').concat(kr[e],'"]'));r?n=r.innerHTML:delete kr[e]}return[n,t]}(e),r=gt(n,2),l=r[0],s=r[1];if(l)return[l,_,s,{},c,u]}var d=t(),f=gt(Nr(d,{hashId:i,hashPriority:g,layer:S?a:void 0,path:o.join("-"),transformers:y,linters:b}),2),p=f[0],h=f[1],v=Rr(p),m=function(e,t){return Lt("".concat(e.join("%")).concat(t))}(C,v);return[v,_,m,h,c,u]}),(function(e,t){var n=gt(e,3)[2];(t||f)&&mn&&Ut(n,{mark:en})}),(function(e){var t=gt(e,4),n=t[0],r=(t[1],t[2]),o=t[3];if(E&&n!==Ir){var i={mark:en,prepend:!S&&"queue",attachTo:v,priority:u},a="function"===typeof l?l():l;a&&(i.csp={nonce:a});var c=[],s=[];Object.keys(o).forEach((function(e){e.startsWith("@layer")?c.push(e):s.push(e)})),c.forEach((function(e){Xt(Rr(o[e]),"_layer-".concat(e),O(O({},i),{},{prepend:!0}))}));var d=Xt(n,r,i);d[tn]=x.instanceId,d.setAttribute(Jt,_),s.forEach((function(e){Xt(Rr(o[e]),"_effect-".concat(e),i)}))}})),k=gt(M,3),A=k[0],I=k[1],T=k[2];return function(e){var t;return t=m&&!E&&p?r.createElement("style",h({},w(w({},Jt,I),en,T),{dangerouslySetInnerHTML:{__html:A}})):r.createElement(Fr,null),r.createElement(r.Fragment,null,t,e)}}var Hr="cssVar";w(w(w({},Br,(function(e,t,n){var r=gt(e,6),o=r[0],i=r[1],a=r[2],l=r[3],c=r[4],s=r[5],u=(n||{}).plain;if(c)return null;var d=o,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(s)};return d=bn(o,i,a,f,u),l&&Object.keys(l).forEach((function(e){if(!t[e]){t[e]=!0;var n=bn(Rr(l[e]),i,"_effect-".concat(e),f,u);e.startsWith("@layer")?d=n+d:d+=n}})),[s,a,d]})),Nn,(function(e,t,n){var r=gt(e,5),o=r[2],i=r[3],a=r[4],l=(n||{}).plain;if(!i)return null;var c=o._tokenKey;return[-999,c,bn(i,a,c,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},l)]})),Hr,(function(e,t,n){var r=gt(e,4),o=r[1],i=r[2],a=r[3],l=(n||{}).plain;if(!o)return null;return[-999,i,bn(o,a,i,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},l)]}));var Wr=function(){function e(t,n){M(this,e),w(this,"name",void 0),w(this,"style",void 0),w(this,"_keyframe",!0),this.name=t,this.style=n}return A(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 Vr=Wr;function Gr(e){return e.notSplit=!0,e}Gr(["borderTop","borderBottom"]),Gr(["borderTop"]),Gr(["borderBottom"]),Gr(["borderLeft","borderRight"]),Gr(["borderLeft"]),Gr(["borderRight"]);const Yr={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Ur=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}},Xr=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:"color ".concat(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"}}}),qr=e=>({outline:"".concat(yn(e.lineWidthFocus)," solid ").concat(e.colorPrimaryBorder),outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),Kr=e=>({"&:focus-visible":Object.assign({},qr(e))}),$r=e=>Object.assign(Object.assign({color:e.colorLink,textDecoration:e.linkDecoration,outline:"none",cursor:"pointer",transition:"all ".concat(e.motionDurationSlow),border:0,padding:0,background:"none",userSelect:"none"},Kr(e)),{"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}});function Qr(e,t,n){const{focusElCls:r,focus:o,borderElCls:i}=n,a=i?"> *":"",l=["hover",o?"focus":null,"active"].filter(Boolean).map((e=>"&:".concat(e," ").concat(a))).join(",");return{["&-item:not(".concat(t,"-last-item)")]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[l]:{zIndex:2}},r?{["&".concat(r)]:{zIndex:2}}:{}),{["&[disabled] ".concat(a)]:{zIndex:0}})}}function Zr(e,t,n){const{borderElCls:r}=n,o=r?"> ".concat(r):"";return{["&-item:not(".concat(t,"-first-item):not(").concat(t,"-last-item) ").concat(o)]:{borderRadius:0},["&-item:not(".concat(t,"-last-item)").concat(t,"-first-item")]:{["& ".concat(o,", &").concat(e,"-sm ").concat(o,", &").concat(e,"-lg ").concat(o)]:{borderStartEndRadius:0,borderEndEndRadius:0}},["&-item:not(".concat(t,"-first-item)").concat(t,"-last-item")]:{["& ".concat(o,", &").concat(e,"-sm ").concat(o,", &").concat(e,"-lg ").concat(o)]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function Jr(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{focus:!0};const{componentCls:n}=e,r="".concat(n,"-compact");return{[r]:Object.assign(Object.assign({},Qr(e,r,t)),Zr(n,r,t))}}var eo="%";function to(e){return e.join(eo)}var no=function(){function e(t){M(this,e),w(this,"instanceId",void 0),w(this,"cache",new Map),this.instanceId=t}return A(e,[{key:"get",value:function(e){return this.opGet(to(e))}},{key:"opGet",value:function(e){return this.cache.get(e)||null}},{key:"update",value:function(e,t){return this.opUpdate(to(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 ro=no;var oo="data-token-hash",io="data-css-hash",ao="__cssinjs_instance__";function lo(){var e=Math.random().toString(12).slice(2);if("undefined"!==typeof document&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(io,"]"))||[],n=document.head.firstChild;Array.from(t).forEach((function(t){t[ao]=t[ao]||e,t[ao]===e&&document.head.insertBefore(t,n)}));var r={};Array.from(document.querySelectorAll("style[".concat(io,"]"))).forEach((function(t){var n,o=t.getAttribute(io);r[o]?t[ao]===e&&(null===(n=t.parentNode)||void 0===n||n.removeChild(t)):r[o]=!0}))}return new ro(e)}var co=r.createContext({hashPriority:"low",cache:lo(),defaultCache:!0});const so=co;var uo="CALC_UNIT";new RegExp(uo,"g");var fo=function(){function e(){M(this,e),w(this,"cache",void 0),w(this,"keys",void 0),w(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return A(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):o=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=gt(e,2)[1];return r.internalGet(t)[1]<n?[t,r.internalGet(t)[1]]:e}),[this.keys[0],this.cacheCallTimes]),i=gt(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}();w(fo,"MAX_CACHE_SIZE",20),w(fo,"MAX_CACHE_OFFSET",5);new fo;new WeakMap;new WeakMap;"random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,"");var po=Rt();function ho(e){return"number"===typeof e?"".concat(e,"px"):e}function go(e,t,n){if(arguments.length>4&&void 0!==arguments[4]&&arguments[4])return e;var r=O(O({},arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}),{},w(w({},oo,t),io,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 vo=O({},o).useInsertionEffect;const mo=vo?function(e,t,n){return vo((function(){return e(),t()}),n)}:function(e,t,n){r.useMemo(e,n),Cn((function(){return t(!0)}),n)};const yo="undefined"!==typeof O({},o).useInsertionEffect?function(e){var t=[],n=!1;return r.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()}};const bo=function(){return!1};function xo(e,t,n,o,i){var a=r.useContext(so).cache,l=to([e].concat(P(t))),c=yo([l]),s=(bo(),function(e){a.opUpdate(l,(function(t){var r=gt(t||[void 0,void 0],2),o=r[0];var i=[void 0===o?0:o,r[1]||n()];return e?e(i):i}))});r.useMemo((function(){s()}),[l]);var u=a.opGet(l)[1];return mo((function(){null===i||void 0===i||i(u)}),(function(e){return s((function(t){var n=gt(t,2),r=n[0],o=n[1];return e&&0===r&&(null===i||void 0===i||i(u)),[r+1,o]})),function(){a.opUpdate(l,(function(t){var n=gt(t||[],2),r=n[0],i=void 0===r?0:r,s=n[1];return 0===i-1?(c((function(){!e&&a.opGet(l)||null===o||void 0===o||o(s,!1)})),null):[i-1,s]}))}}),[l]),u}new Map;var wo="token";var So=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()},Oo=function(e,t,n){return Object.keys(e).length?".".concat(t).concat(null!==n&&void 0!==n&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(e).map((function(e){var t=gt(e,2),n=t[0],r=t[1];return"".concat(n,":").concat(r,";")})).join(""),"}"):""},_o="comm",Co="rule",Eo="decl",Po="@import",Mo="@keyframes",ko="@layer",Ao=Math.abs,Io=String.fromCharCode;Object.assign;function To(e){return e.trim()}function jo(e,t,n){return e.replace(t,n)}function Lo(e,t,n){return e.indexOf(t,n)}function Ro(e,t){return 0|e.charCodeAt(t)}function Do(e,t,n){return e.slice(t,n)}function No(e){return e.length}function Fo(e,t){return t.push(e),e}function Bo(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function zo(e,t,n,r){switch(e.type){case ko:if(e.children.length)break;case Po:case Eo:return e.return=e.return||e.value;case _o:return"";case Mo:return e.return=e.value+"{"+Bo(e.children,r)+"}";case Co:if(!No(e.value=e.props.join(",")))return""}return No(n=Bo(e.children,r))?e.return=e.value+"{"+n+"}":""}var Ho=1,Wo=1,Vo=0,Go=0,Yo=0,Uo="";function Xo(e,t,n,r,o,i,a,l){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Ho,column:Wo,length:a,return:"",siblings:l}}function qo(){return Yo=Go<Vo?Ro(Uo,Go++):0,Wo++,10===Yo&&(Wo=1,Ho++),Yo}function Ko(){return Ro(Uo,Go)}function $o(){return Go}function Qo(e,t){return Do(Uo,e,t)}function Zo(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 Jo(e){return Ho=Wo=1,Vo=No(Uo=e),Go=0,[]}function ei(e){return Uo="",e}function ti(e){return To(Qo(Go-1,oi(91===e?e+2:40===e?e+1:e)))}function ni(e){for(;(Yo=Ko())&&Yo<33;)qo();return Zo(e)>2||Zo(Yo)>3?"":" "}function ri(e,t){for(;--t&&qo()&&!(Yo<48||Yo>102||Yo>57&&Yo<65||Yo>70&&Yo<97););return Qo(e,$o()+(t<6&&32==Ko()&&32==qo()))}function oi(e){for(;qo();)switch(Yo){case e:return Go;case 34:case 39:34!==e&&39!==e&&oi(Yo);break;case 40:41===e&&oi(e);break;case 92:qo()}return Go}function ii(e,t){for(;qo()&&e+Yo!==57&&(e+Yo!==84||47!==Ko()););return"/*"+Qo(t,Go-1)+"*"+Io(47===e?e:qo())}function ai(e){for(;!Zo(Ko());)qo();return Qo(e,Go)}function li(e){return ei(ci("",null,null,null,[""],e=Jo(e),0,[0],e))}function ci(e,t,n,r,o,i,a,l,c){for(var s=0,u=0,d=a,f=0,p=0,h=0,g=1,v=1,m=1,y=0,b="",x=o,w=i,S=r,O=b;v;)switch(h=y,y=qo()){case 40:if(108!=h&&58==Ro(O,d-1)){-1!=Lo(O+=jo(ti(y),"&","&\f"),"&\f",Ao(s?l[s-1]:0))&&(m=-1);break}case 34:case 39:case 91:O+=ti(y);break;case 9:case 10:case 13:case 32:O+=ni(h);break;case 92:O+=ri($o()-1,7);continue;case 47:switch(Ko()){case 42:case 47:Fo(ui(ii(qo(),$o()),t,n,c),c);break;default:O+="/"}break;case 123*g:l[s++]=No(O)*m;case 125*g:case 59:case 0:switch(y){case 0:case 125:v=0;case 59+u:-1==m&&(O=jo(O,/\f/g,"")),p>0&&No(O)-d&&Fo(p>32?di(O+";",r,n,d-1,c):di(jo(O," ","")+";",r,n,d-2,c),c);break;case 59:O+=";";default:if(Fo(S=si(O,t,n,s,u,o,l,b,x=[],w=[],d,i),i),123===y)if(0===u)ci(O,t,S,S,x,i,d,l,w);else switch(99===f&&110===Ro(O,3)?100:f){case 100:case 108:case 109:case 115:ci(e,S,S,r&&Fo(si(e,S,S,0,0,o,l,b,o,x=[],d,w),w),o,w,d,l,r?x:w);break;default:ci(O,S,S,S,[""],w,0,l,w)}}s=u=p=0,g=m=1,b=O="",d=a;break;case 58:d=1+No(O),p=h;default:if(g<1)if(123==y)--g;else if(125==y&&0==g++&&125==(Yo=Go>0?Ro(Uo,--Go):0,Wo--,10===Yo&&(Wo=1,Ho--),Yo))continue;switch(O+=Io(y),y*g){case 38:m=u>0?1:(O+="\f",-1);break;case 44:l[s++]=(No(O)-1)*m,m=1;break;case 64:45===Ko()&&(O+=ti(qo())),f=Ko(),u=d=No(b=O+=ai($o())),y++;break;case 45:45===h&&2==No(O)&&(g=0)}}return i}function si(e,t,n,r,o,i,a,l,c,s,u,d){for(var f=o-1,p=0===o?i:[""],h=function(e){return e.length}(p),g=0,v=0,m=0;g<r;++g)for(var y=0,b=Do(e,f+1,f=Ao(v=a[g])),x=e;y<h;++y)(x=To(v>0?p[y]+" "+b:jo(b,/&\f/g,p[y])))&&(c[m++]=x);return Xo(e,t,n,0===o?Co:l,c,s,u,d)}function ui(e,t,n,r){return Xo(e,t,n,_o,Io(Yo),Do(e,2,-2),0,r)}function di(e,t,n,r,o){return Xo(e,t,n,Eo,Do(e,0,r),Do(e,r+1,-1),r,o)}var fi,pi="data-ant-cssinjs-cache-path",hi="_FILE_STYLE__";var gi=!0;function vi(e){return function(){if(!fi&&(fi={},Rt())){var e=document.createElement("div");e.className=pi,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=gt(e.split(":"),2),n=t[0],r=t[1];fi[n]=r}));var n,r=document.querySelector("style[".concat(pi,"]"));r&&(gi=!1,null===(n=r.parentNode)||void 0===n||n.removeChild(r)),document.body.removeChild(e)}}(),!!fi[e]}var mi="_multi_value_";function yi(e){return Bo(li(e),zo).replace(/\{%%%\:[^;];}/g,";")}var bi=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,l=n.hashId,c=n.layer,s=(n.path,n.hashPriority),u=n.transformers,d=void 0===u?[]:u,f=(n.linters,""),p={};function h(t){var r=t.getName(l);if(!p[r]){var o=gt(e(t.style,n,{root:!1,parentSelectors:a}),1)[0];p[r]="@keyframes ".concat(t.getName(l)).concat(o)}}var g=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 g.forEach((function(t){var r="string"!==typeof t||o?t:{};if("string"===typeof r)f+="".concat(r,"\n");else if(r._keyframe)h(r);else{var c=d.reduce((function(e,t){var n;return(null===t||void 0===t||null===(n=t.visit)||void 0===n?void 0:n.call(t,e))||e}),r);Object.keys(c).forEach((function(t){var r=c[t];if("object"!==v(r)||!r||"animationName"===t&&r._keyframe||function(e){return"object"===v(e)&&e&&("_skip_check_"in e||mi in e)}(r)){var u;function S(e,t){var n=e.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())})),r=t;Bn[e]||"number"!==typeof r||0===r||(r="".concat(r,"px")),"animationName"===e&&null!==t&&void 0!==t&&t._keyframe&&(h(t),r=t.getName(l)),f+="".concat(n,":").concat(r,";")}var d=null!==(u=null===r||void 0===r?void 0:r.value)&&void 0!==u?u:r;"object"===v(r)&&null!==r&&void 0!==r&&r[mi]&&Array.isArray(d)?d.forEach((function(e){S(t,e)})):S(t,d)}else{var g=!1,m=t.trim(),y=!1;(o||i)&&l?m.startsWith("@")?g=!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(P(n.slice(1))).join(" ")})).join(",")}(t,l,s):!o||l||"&"!==m&&""!==m||(m="",y=!0);var b=gt(e(r,n,{root:y,injectHash:g,parentSelectors:[].concat(P(a),[m])}),2),x=b[0],w=b[1];p=O(O({},p),w),f+="".concat(m).concat(x)}}))}})),o?c&&(f="@layer ".concat(c.name," {").concat(f,"}"),c.dependencies&&(p["@layer ".concat(c.name)]=c.dependencies.map((function(e){return"@layer ".concat(e,", ").concat(c.name,";")})).join("\n"))):f="{".concat(f,"}"),[f,p]};function xi(e,t){return Lt("".concat(e.join("%")).concat(t))}function wi(){return null}var Si="style";function Oi(e,t){var n=e.token,o=e.path,i=e.hashId,a=e.layer,l=e.nonce,c=e.clientOnly,s=e.order,u=void 0===s?0:s,d=r.useContext(so),f=d.autoClear,p=(d.mock,d.defaultCache),g=d.hashPriority,v=d.container,m=d.ssrInline,y=d.transformers,b=d.linters,x=d.cache,S=d.layer,_=n._tokenKey,C=[_];S&&C.push("layer"),C.push.apply(C,P(o));var E=po;var M=xo(Si,C,(function(){var e=C.join("|");if(vi(e)){var n=function(e){var t=fi[e],n=null;if(t&&Rt())if(gi)n=hi;else{var r=document.querySelector("style[".concat(io,'="').concat(fi[e],'"]'));r?n=r.innerHTML:delete fi[e]}return[n,t]}(e),r=gt(n,2),l=r[0],s=r[1];if(l)return[l,_,s,{},c,u]}var d=t(),f=gt(bi(d,{hashId:i,hashPriority:g,layer:S?a:void 0,path:o.join("-"),transformers:y,linters:b}),2),p=f[0],h=f[1],v=yi(p),m=xi(C,v);return[v,_,m,h,c,u]}),(function(e,t){var n=gt(e,3)[2];(t||f)&&po&&Ut(n,{mark:io})}),(function(e){var t=gt(e,4),n=t[0],r=(t[1],t[2]),o=t[3];if(E&&n!==hi){var i={mark:io,prepend:!S&&"queue",attachTo:v,priority:u},a="function"===typeof l?l():l;a&&(i.csp={nonce:a});var c=[],s=[];Object.keys(o).forEach((function(e){e.startsWith("@layer")?c.push(e):s.push(e)})),c.forEach((function(e){Xt(yi(o[e]),"_layer-".concat(e),O(O({},i),{},{prepend:!0}))}));var d=Xt(n,r,i);d[ao]=x.instanceId,d.setAttribute(oo,_),s.forEach((function(e){Xt(yi(o[e]),"_effect-".concat(e),i)}))}})),k=gt(M,3),A=k[0],I=k[1],T=k[2];return function(e){var t;return t=m&&!E&&p?r.createElement("style",h({},w(w({},oo,I),io,T),{dangerouslySetInnerHTML:{__html:A}})):r.createElement(wi,null),r.createElement(r.Fragment,null,t,e)}}var _i="cssVar";const Ci=function(e,t){var n=e.key,o=e.prefix,i=e.unitless,a=e.ignore,l=e.token,c=e.scope,s=void 0===c?"":c,u=(0,r.useContext)(so),d=u.cache.instanceId,f=u.container,p=l._tokenKey,h=[].concat(P(e.path),[n,s,p]),g=xo(_i,h,(function(){var e=function(e,t,n){var r={},o={};return Object.entries(e).forEach((function(e){var t,i,a=gt(e,2),l=a[0],c=a[1];if(null!==n&&void 0!==n&&null!==(t=n.preserve)&&void 0!==t&&t[l])o[l]=c;else if(("string"===typeof c||"number"===typeof c)&&(null===n||void 0===n||null===(i=n.ignore)||void 0===i||!i[l])){var s,u=So(l,null===n||void 0===n?void 0:n.prefix);r[u]="number"!==typeof c||null!==n&&void 0!==n&&null!==(s=n.unitless)&&void 0!==s&&s[l]?String(c):"".concat(c,"px"),o[l]="var(".concat(u,")")}})),[o,Oo(r,t,{scope:null===n||void 0===n?void 0:n.scope})]}(t(),n,{prefix:o,unitless:i,ignore:a,scope:s}),r=gt(e,2),l=r[0],c=r[1];return[l,c,xi(h,c),n]}),(function(e){var t=gt(e,3)[2];po&&Ut(t,{mark:io})}),(function(e){var t=gt(e,3),r=t[1],o=t[2];if(r){var i=Xt(r,o,{mark:io,prepend:"queue",attachTo:f,priority:-999});i[ao]=d,i.setAttribute(oo,n)}}));return g};w(w(w({},Si,(function(e,t,n){var r=gt(e,6),o=r[0],i=r[1],a=r[2],l=r[3],c=r[4],s=r[5],u=(n||{}).plain;if(c)return null;var d=o,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(s)};return d=go(o,i,a,f,u),l&&Object.keys(l).forEach((function(e){if(!t[e]){t[e]=!0;var n=go(yi(l[e]),i,"_effect-".concat(e),f,u);e.startsWith("@layer")?d=n+d:d+=n}})),[s,a,d]})),wo,(function(e,t,n){var r=gt(e,5),o=r[2],i=r[3],a=r[4],l=(n||{}).plain;if(!i)return null;var c=o._tokenKey;return[-999,c,go(i,a,c,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},l)]})),_i,(function(e,t,n){var r=gt(e,4),o=r[1],i=r[2],a=r[3],l=(n||{}).plain;if(!o)return null;return[-999,i,go(o,a,i,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},l)]}));function Ei(e){return e.notSplit=!0,e}Ei(["borderTop","borderBottom"]),Ei(["borderTop"]),Ei(["borderBottom"]),Ei(["borderLeft","borderRight"]),Ei(["borderLeft"]),Ei(["borderRight"]);const Pi=A((function e(){M(this,e)}));var Mi="CALC_UNIT",ki=new RegExp(Mi,"g");function Ai(e){return"number"===typeof e?"".concat(e).concat(Mi):e}var Ii=function(e){j(n,e);var t=D(n);function n(e,r){var o;M(this,n),w(I(o=t.call(this)),"result",""),w(I(o),"unitlessCssVar",void 0),w(I(o),"lowPriority",void 0);var i=v(e);return o.unitlessCssVar=r,e instanceof n?o.result="(".concat(e.result,")"):"number"===i?o.result=Ai(e):"string"===i&&(o.result=e),o}return A(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(Ai(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(Ai(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(ki,r?"px":""),"undefined"!==typeof this.lowPriority?"calc(".concat(this.result,")"):this.result}}]),n}(Pi);const Ti=function(e){j(n,e);var t=D(n);function n(e){var r;return M(this,n),w(I(r=t.call(this)),"result",0),e instanceof n?r.result=e.result:"number"===typeof e&&(r.result=e),r}return A(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}(Pi);const ji=function(e,t){var n="css"===e?Ii:Ti;return function(e){return new n(e,t)}};const Li=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("-"))};function Ri(e){var t=r.useRef();t.current=e;var n=r.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}function Di(e){var t=r.useRef(!1),n=gt(r.useState(e),2),o=n[0],i=n[1];return r.useEffect((function(){return t.current=!1,function(){t.current=!0}}),[]),[o,function(e,n){n&&t.current||i(e)}]}function Ni(e){return void 0!==e}function Fi(e,t){var n=t||{},r=n.defaultValue,o=n.value,i=n.onChange,a=n.postState,l=gt(Di((function(){return Ni(o)?o:Ni(r)?"function"===typeof r?r():r:"function"===typeof e?e():e})),2),c=l[0],s=l[1],u=void 0!==o?o:c,d=a?a(u):u,f=Ri(i),p=gt(Di([u]),2),h=p[0],g=p[1];return _n((function(){var e=h[0];c!==e&&f(c,e)}),[h]),_n((function(){Ni(o)||s(o)}),[o]),[d,Ri((function(e,t){s(e,t),g([u],t)}))]}function Bi(e,t){"function"===typeof e?e(t):"object"===v(e)&&e&&"current"in e&&(e.current=t)}function zi(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter((function(e){return e}));return r.length<=1?r[0]:function(e){t.forEach((function(t){Bi(t,e)}))}}function Hi(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return qt((function(){return zi.apply(void 0,t)}),t,(function(e,t){return e.length!==t.length||e.every((function(e,n){return e!==t[n]}))}))}function Wi(e){var t,n,r=(0,N.isMemo)(e)?e.type.type:e.type;return!!("function"!==typeof r||null!==(t=r.prototype)&&void 0!==t&&t.render||r.$$typeof===N.ForwardRef)&&!!("function"!==typeof e||null!==(n=e.prototype)&&void 0!==n&&n.render||e.$$typeof===N.ForwardRef)}const Vi=function(e,t,n,r){var o=O({},t[e]);null!==r&&void 0!==r&&r.deprecatedTokens&&r.deprecatedTokens.forEach((function(e){var t,n=gt(e,2),r=n[0],i=n[1];(null!==o&&void 0!==o&&o[r]||null!==o&&void 0!==o&&o[i])&&(null!==(t=o[i])&&void 0!==t||(o[i]=null===o||void 0===o?void 0:o[r]))}));var i=O(O({},n),o);return Object.keys(i).forEach((function(e){i[e]===t[e]&&delete i[e]})),i};var Gi="undefined"!==typeof CSSINJS_STATISTIC,Yi=!0;function Ui(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!Gi)return Object.assign.apply(Object,[{}].concat(t));Yi=!1;var r={};return t.forEach((function(e){"object"===v(e)&&Object.keys(e).forEach((function(t){Object.defineProperty(r,t,{configurable:!0,enumerable:!0,get:function(){return e[t]}})}))})),Yi=!0,r}var Xi={};function qi(){}const Ki=function(e){var t,n=e,r=qi;return Gi&&"undefined"!==typeof Proxy&&(t=new Set,n=new Proxy(e,{get:function(e,n){var r;Yi&&(null===(r=t)||void 0===r||r.add(n));return e[n]}}),r=function(e,n){var r;Xi[e]={global:Array.from(t),component:O(O({},null===(r=Xi[e])||void 0===r?void 0:r.component),n)}}),{token:n,keys:t,flush:r}};const $i=function(e,t,n){var r;return"function"===typeof n?n(Ui(t,null!==(r=t[e])&&void 0!==r?r:{})):null!==n&&void 0!==n?n:{}};const Qi=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 ho(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 ho(e)})).join(","),")")}}};var Zi=function(){function e(){M(this,e),w(this,"map",new Map),w(this,"objectIDMap",new WeakMap),w(this,"nextID",0),w(this,"lastAccessBeat",new Map),w(this,"accessBeat",0)}return A(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"===v(e)?"obj_".concat(t.getObjectID(e)):"".concat(v(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}(),Ji=new Zi;const ea=function(e,t){return r.useMemo((function(){var n=Ji.get(t);if(n)return n;var r=e();return Ji.set(t,r),r}),t)};const ta=function(){return{}};const na=function(e){var t=e.useCSP,n=void 0===t?ta:t,o=e.useToken,i=e.usePrefix,a=e.getResetStyles,l=e.getCommonStyle,c=e.getCompUnitless;function s(t,r,c){var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},u=Array.isArray(t)?t:[t,t],d=gt(u,1)[0],f=u.join("-"),p=e.layer||{name:"antd"};return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,u=o(),h=u.theme,g=u.realToken,m=u.hashId,y=u.token,b=u.cssVar,x=i(),w=x.rootPrefixCls,S=x.iconPrefixCls,_=n(),C=b?"css":"js",E=ea((function(){var e=new Set;return b&&Object.keys(s.unitless||{}).forEach((function(t){e.add(So(t,b.prefix)),e.add(So(t,Li(d,b.prefix)))})),ji(C,e)}),[C,d,null===b||void 0===b?void 0:b.prefix]),P=Qi(C),M=P.max,k=P.min,A={theme:h,token:y,hashId:m,nonce:function(){return _.nonce},clientOnly:s.clientOnly,layer:p,order:s.order||-999};return Oi(O(O({},A),{},{clientOnly:!1,path:["Shared",w]}),(function(){return"function"===typeof a?a(y):[]})),[Oi(O(O({},A),{},{path:[f,e,S]}),(function(){if(!1===s.injectStyle)return[];var n=Ki(y),o=n.token,i=n.flush,a=$i(d,g,c),u=".".concat(e),f=Vi(d,g,a,{deprecatedTokens:s.deprecatedTokens});b&&a&&"object"===v(a)&&Object.keys(a).forEach((function(e){a[e]="var(".concat(So(e,Li(d,b.prefix)),")")}));var p=Ui(o,{componentCls:u,prefixCls:e,iconCls:".".concat(S),antCls:".".concat(w),calc:E,max:M,min:k},b?a:f),h=r(p,{hashId:m,prefixCls:e,rootPrefixCls:w,iconPrefixCls:S});i(d,f);var x="function"===typeof l?l(p,e,t,s.resetFont):null;return[!1===s.resetStyle?null:x,h]})),m]}}return{genStyleHooks:function(e,t,n,i){var a=Array.isArray(e)?e[0]:e;function l(e){return"".concat(String(a)).concat(e.slice(0,1).toUpperCase()).concat(e.slice(1))}var u=(null===i||void 0===i?void 0:i.unitless)||{},d=O(O({},"function"===typeof c?c(e):{}),{},w({},l("zIndexPopup"),!0));Object.keys(u).forEach((function(e){d[l(e)]=u[e]}));var f=O(O({},i),{},{unitless:d,prefixToken:l}),p=s(e,t,n,f),h=function(e,t,n){var i=n.unitless,a=n.injectStyle,l=void 0===a||a,c=n.prefixToken,s=n.ignore,u=function(r){var a=r.rootCls,l=r.cssVar,u=void 0===l?{}:l,d=o().realToken;return Ci({path:[e],prefix:u.prefix,key:u.key,unitless:i,ignore:s,token:d,scope:a},(function(){var r=$i(e,d,t),o=Vi(e,d,r,{deprecatedTokens:null===n||void 0===n?void 0:n.deprecatedTokens});return Object.keys(r).forEach((function(e){o[c(e)]=o[e],delete o[e]})),o})),null},d=function(t){var n=o().cssVar;return[function(o){return l&&n?r.createElement(r.Fragment,null,r.createElement(u,{rootCls:t,cssVar:n,component:e}),o):o},null===n||void 0===n?void 0:n.key]};return d}(a,n,f);return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=gt(p(e,t),2)[1],r=gt(h(t),2);return[r[0],n,r[1]]}},genSubStyleComponent:function(e,t,n){var r=s(e,t,n,O({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:s}},ra="5.21.6";var oa=n(5445),ia=n(3143),aa=2,la=.16,ca=.05,sa=.05,ua=.15,da=5,fa=4,pa=[{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 ha(e){var t=e.r,n=e.g,r=e.b,o=(0,oa.wE)(t,n,r);return{h:360*o.h,s:o.s,v:o.v}}function ga(e){var t=e.r,n=e.g,r=e.b;return"#".concat((0,oa.Ob)(t,n,r,!1))}function va(e,t,n){var r;return(r=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-aa*t:Math.round(e.h)+aa*t:n?Math.round(e.h)+aa*t:Math.round(e.h)-aa*t)<0?r+=360:r>=360&&(r-=360),r}function ma(e,t,n){return 0===e.h&&0===e.s?e.s:((r=n?e.s-la*t:t===fa?e.s+la:e.s+ca*t)>1&&(r=1),n&&t===da&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)));var r}function ya(e,t,n){var r;return(r=n?e.v+sa*t:e.v-ua*t)>1&&(r=1),Number(r.toFixed(2))}function ba(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=(0,ia.RO)(e),o=da;o>0;o-=1){var i=ha(r),a=ga((0,ia.RO)({h:va(i,o,!0),s:ma(i,o,!0),v:ya(i,o,!0)}));n.push(a)}n.push(ga(r));for(var l=1;l<=fa;l+=1){var c=ha(r),s=ga((0,ia.RO)({h:va(c,l),s:ma(c,l),v:ya(c,l)}));n.push(s)}return"dark"===t.theme?pa.map((function(e){var r=e.index,o=e.opacity;return ga(function(e,t,n){var r=n/100;return{r:(t.r-e.r)*r+e.r,g:(t.g-e.g)*r+e.g,b:(t.b-e.b)*r+e.b}}((0,ia.RO)(t.backgroundColor||"#141414"),(0,ia.RO)(n[r]),100*o))})):n}var xa={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"},wa=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];wa.primary=wa[5];var Sa=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];Sa.primary=Sa[5];var Oa=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];Oa.primary=Oa[5];var _a=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];_a.primary=_a[5];var Ca=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];Ca.primary=Ca[5];var Ea=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];Ea.primary=Ea[5];var Pa=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];Pa.primary=Pa[5];var Ma=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];Ma.primary=Ma[5];var ka=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];ka.primary=ka[5];var Aa=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];Aa.primary=Aa[5];var Ia=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];Ia.primary=Ia[5];var Ta=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];Ta.primary=Ta[5];var ja=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];ja.primary=ja[5];var La={red:wa,volcano:Sa,orange:Oa,gold:_a,yellow:Ca,lime:Ea,green:Pa,cyan:Ma,blue:ka,geekblue:Aa,purple:Ia,magenta:Ta,grey:ja},Ra=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];Ra.primary=Ra[5];var Da=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];Da.primary=Da[5];var Na=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];Na.primary=Na[5];var Fa=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];Fa.primary=Fa[5];var Ba=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];Ba.primary=Ba[5];var za=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];za.primary=za[5];var Ha=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];Ha.primary=Ha[5];var Wa=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];Wa.primary=Wa[5];var Va=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3c89e8","#65a9f3","#8dc5f8","#b7dcfa"];Va.primary=Va[5];var Ga=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];Ga.primary=Ga[5];var Ya=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];Ya.primary=Ya[5];var Ua=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];Ua.primary=Ua[5];var Xa=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];Xa.primary=Xa[5];const qa={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"},Ka=Object.assign(Object.assign({},qa),{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 $a=n(2345),Qa=n(5433),Za=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=(0,oa.oS)(t)),this.originalInput=t;var o=(0,ia.RO)(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=(0,Qa.TV)(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=(0,oa.wE)(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=(0,oa.wE)(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=(0,oa.K6)(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=(0,oa.K6)(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),(0,oa.Ob)(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),(0,oa.H)(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*(0,Qa.Cg)(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*(0,Qa.Cg)(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="#"+(0,oa.Ob)(this.r,this.g,this.b,!1),t=0,n=Object.entries($a.D);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&&void 0!==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=(0,Qa.J$)(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=(0,Qa.J$)(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=(0,Qa.J$)(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=(0,Qa.J$)(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=[],l=1/t;t--;)a.push(new e({h:r,s:o,v:i})),i=(i+l)%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}();function Ja(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:i,colorError:a,colorInfo:l,colorPrimary:c,colorBgBase:s,colorTextBase:u}=e,d=n(c),f=n(o),p=n(i),h=n(a),g=n(l),v=r(s,u),m=n(e.colorLink||e.colorInfo),y=new Za(h[1]).mix(new Za(h[3]),50).toHexString();return Object.assign(Object.assign({},v),{colorPrimaryBg:d[1],colorPrimaryBgHover:d[2],colorPrimaryBorder:d[3],colorPrimaryBorderHover:d[4],colorPrimaryHover:d[5],colorPrimary:d[6],colorPrimaryActive:d[7],colorPrimaryTextHover:d[8],colorPrimaryText:d[9],colorPrimaryTextActive:d[10],colorSuccessBg:f[1],colorSuccessBgHover:f[2],colorSuccessBorder:f[3],colorSuccessBorderHover:f[4],colorSuccessHover:f[4],colorSuccess:f[6],colorSuccessActive:f[7],colorSuccessTextHover:f[8],colorSuccessText:f[9],colorSuccessTextActive:f[10],colorErrorBg:h[1],colorErrorBgHover:h[2],colorErrorBgFilledHover:y,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:g[1],colorInfoBgHover:g[2],colorInfoBorder:g[3],colorInfoBorderHover:g[4],colorInfoHover:g[4],colorInfo:g[6],colorInfoActive:g[7],colorInfoTextHover:g[8],colorInfoText:g[9],colorInfoTextActive:g[10],colorLinkHover:m[4],colorLink:m[6],colorLinkActive:m[7],colorBgMask:new Za("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const el=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}};const tl=e=>{const{controlHeight:t}=e;return{controlHeightSM:.75*t,controlHeightXS:.5*t,controlHeightLG:1.25*t}};function nl(e){return(e+8)/e}const rl=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=>({size:e,lineHeight:nl(e)})))}(e),n=t.map((e=>e.size)),r=t.map((e=>e.lineHeight)),o=n[1],i=n[0],a=n[2],l=r[1],c=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:l,lineHeightLG:s,lineHeightSM:c,fontHeight:Math.round(l*o),fontHeightLG:Math.round(s*a),fontHeightSM:Math.round(c*i),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};const ol=(e,t)=>new Za(e).setAlpha(t).toRgbString(),il=(e,t)=>new Za(e).darken(t).toHexString(),al=e=>{const t=ba(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]}},ll=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:ol(r,.88),colorTextSecondary:ol(r,.65),colorTextTertiary:ol(r,.45),colorTextQuaternary:ol(r,.25),colorFill:ol(r,.15),colorFillSecondary:ol(r,.06),colorFillTertiary:ol(r,.04),colorFillQuaternary:ol(r,.02),colorBgSolid:ol(r,1),colorBgSolidHover:ol(r,.75),colorBgSolidActive:ol(r,.95),colorBgLayout:il(n,4),colorBgContainer:il(n,0),colorBgElevated:il(n,0),colorBgSpotlight:ol(r,.85),colorBgBlur:"transparent",colorBorder:il(n,15),colorBorderSecondary:il(n,6)}};function cl(e){xa.pink=xa.magenta,La.pink=La.magenta;const t=Object.keys(qa).map((t=>{const n=e[t]===xa[t]?La[t]:ba(e[t]);return new Array(10).fill(1).reduce(((e,r,o)=>(e["".concat(t,"-").concat(o+1)]=n[o],e["".concat(t).concat(o+1)]=n[o],e)),{})})).reduce(((e,t)=>e=Object.assign(Object.assign({},e),t)),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),Ja(e,{generateColorPalettes:al,generateNeutralColorPalettes:ll})),rl(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)),tl(e)),function(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=e;return Object.assign({motionDurationFast:"".concat((n+t).toFixed(1),"s"),motionDurationMid:"".concat((n+2*t).toFixed(1),"s"),motionDurationSlow:"".concat((n+3*t).toFixed(1),"s"),lineWidthBold:o+1},el(r))}(e))}const sl=dn(cl),ul={token:Ka,override:{override:Ka},hashed:!0},dl=r.createContext(ul);function fl(e){return e>=0&&e<=255}const pl=function(e,t){const{r:n,g:r,b:o,a:i}=new Za(e).toRgb();if(i<1)return e;const{r:a,g:l,b:c}=new Za(t).toRgb();for(let s=.01;s<=1;s+=.01){const e=Math.round((n-a*(1-s))/s),t=Math.round((r-l*(1-s))/s),i=Math.round((o-c*(1-s))/s);if(fl(e)&&fl(t)&&fl(i))return new Za({r:e,g:t,b:i,a:Math.round(100*s)/100}).toRgbString()}return new Za({r:n,g:r,b:o,a:1}).toRgbString()};var hl=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};function gl(e){const{override:t}=e,n=hl(e,["override"]),r=Object.assign({},t);Object.keys(Ka).forEach((e=>{delete r[e]}));const o=Object.assign(Object.assign({},n),r),i=1200,a=1600;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:pl(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:pl(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:pl(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:pl(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:i,screenXLMin:i,screenXLMax:1599,screenXXL:a,screenXXLMin:a,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:"\n      0 1px 2px -2px ".concat(new Za("rgba(0, 0, 0, 0.16)").toRgbString(),",\n      0 3px 6px 0 ").concat(new Za("rgba(0, 0, 0, 0.12)").toRgbString(),",\n      0 5px 12px 4px ").concat(new Za("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 ml={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},yl={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},bl={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},xl=(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=gl(a),i&&Object.entries(i).forEach((e=>{let[t,n]=e;const{theme:r}=n,o=vl(n,["theme"]);let i=o;r&&(i=xl(Object.assign(Object.assign({},a),o),{override:o},r)),a[t]=i})),a};function wl(){const{token:e,hashed:t,theme:n,override:o,cssVar:i}=r.useContext(dl),a="".concat(ra,"-").concat(t||""),l=n||sl,[c,s,u]=Fn(l,[Ka,e],{salt:a,override:o,getComputedToken:xl,formatToken:gl,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:ml,ignore:yl,preserve:bl}});return[l,u,t?s:"",c,i]}const Sl=(e,t)=>{const[n,r]=wl();return zr({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>null===t||void 0===t?void 0:t.nonce,layer:{name:"antd"}},(()=>[{[".".concat(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"}}),{[".".concat(e," .").concat(e,"-icon")]:{display:"block"}})}]))},{genStyleHooks:Ol,genComponentStyleHook:_l,genSubStyleComponent:Cl}=na({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=(0,r.useContext)(f);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,o]=wl();return{theme:e,realToken:t,hashId:n,token:r,cssVar:o}},useCSP:()=>{const{csp:e,iconPrefixCls:t}=(0,r.useContext)(f);return Sl(t,e),null!==e&&void 0!==e?e:{}},getResetStyles:e=>[{"&":Xr(e)}],getCommonStyle:(e,t,n,r)=>{const o='[class^="'.concat(t,'"], [class*=" ').concat(t,'"]'),i=n?".".concat(n):o,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let l={};return!1!==r&&(l={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[i]:Object.assign(Object.assign(Object.assign({},l),a),{[o]:a})}},getCompUnitless:()=>ml});function El(e){return Ui(e,{inputAffixPadding:e.paddingXXS})}const Pl=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:i,controlHeightLG:a,fontSizeLG:l,lineHeightLG:c,paddingSM:s,controlPaddingHorizontalSM:u,controlPaddingHorizontal:d,colorFillAlter:f,colorPrimaryHover:p,colorPrimary:h,controlOutlineWidth:g,controlOutline:v,colorErrorOutline:m,colorWarningOutline:y,colorBgContainer:b}=e;return{paddingBlock:Math.max(Math.round((t-n*r)/2*10)/10-o,0),paddingBlockSM:Math.max(Math.round((i-n*r)/2*10)/10-o,0),paddingBlockLG:Math.ceil((a-l*c)/2*10)/10-o,paddingInline:s-o,paddingInlineSM:u-o,paddingInlineLG:d-o,addonBg:f,activeBorderColor:h,hoverBorderColor:p,activeShadow:"0 0 0 ".concat(g,"px ").concat(v),errorActiveShadow:"0 0 0 ".concat(g,"px ").concat(m),warningActiveShadow:"0 0 0 ".concat(g,"px ").concat(y),hoverBg:b,activeBg:b,inputFontSize:n,inputFontSizeLG:l,inputFontSizeSM:n}},Ml=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),kl=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},Ml(Ui(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),Al=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),Il=(e,t)=>({["&".concat(e.componentCls,"-status-").concat(t.status,":not(").concat(e.componentCls,"-disabled)")]:Object.assign(Object.assign({},Al(e,t)),{["".concat(e.componentCls,"-prefix, ").concat(e.componentCls,"-suffix")]:{color:t.affixColor}}),["&".concat(e.componentCls,"-status-").concat(t.status).concat(e.componentCls,"-disabled")]:{borderColor:t.borderColor}}),Tl=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Al(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{["&".concat(e.componentCls,"-disabled, &[disabled]")]:Object.assign({},kl(e))}),Il(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),Il(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),jl=(e,t)=>({["&".concat(e.componentCls,"-group-wrapper-status-").concat(t.status)]:{["".concat(e.componentCls,"-group-addon")]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),Ll=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({["".concat(e.componentCls,"-group")]:{"&-addon":{background:e.addonBg,border:"".concat(yn(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorBorder)},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},jl(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),jl(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{["&".concat(e.componentCls,"-group-wrapper-disabled")]:{["".concat(e.componentCls,"-group-addon")]:Object.assign({},kl(e))}})}),Rl=(e,t)=>{const{componentCls:n}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},["&".concat(n,"-disabled, &[disabled]")]:{color:e.colorTextDisabled,cursor:"not-allowed"},["&".concat(n,"-status-error")]:{"&, & input, & textarea":{color:e.colorError}},["&".concat(n,"-status-warning")]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},Dl=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:null===t||void 0===t?void 0:t.inputColor},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),Nl=(e,t)=>({["&".concat(e.componentCls,"-status-").concat(t.status,":not(").concat(e.componentCls,"-disabled)")]:Object.assign(Object.assign({},Dl(e,t)),{["".concat(e.componentCls,"-prefix, ").concat(e.componentCls,"-suffix")]:{color:t.affixColor}})}),Fl=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Dl(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{["&".concat(e.componentCls,"-disabled, &[disabled]")]:Object.assign({},kl(e))}),Nl(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),Nl(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),Bl=(e,t)=>({["&".concat(e.componentCls,"-group-wrapper-status-").concat(t.status)]:{["".concat(e.componentCls,"-group-addon")]:{background:t.addonBg,color:t.addonColor}}}),zl=e=>({"&-filled":Object.assign(Object.assign(Object.assign({["".concat(e.componentCls,"-group")]:{"&-addon":{background:e.colorFillTertiary},["".concat(e.componentCls,"-filled:not(:focus):not(:focus-within)")]:{"&:not(:first-child)":{borderInlineStart:"".concat(yn(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorSplit)},"&:not(:last-child)":{borderInlineEnd:"".concat(yn(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorSplit)}}}},Bl(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),Bl(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{["&".concat(e.componentCls,"-group-wrapper-disabled")]:{["".concat(e.componentCls,"-group")]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:"".concat(yn(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorBorder),borderTop:"".concat(yn(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorBorder),borderBottom:"".concat(yn(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorBorder)},"&-addon:last-child":{borderInlineEnd:"".concat(yn(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorBorder),borderTop:"".concat(yn(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorBorder),borderBottom:"".concat(yn(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorBorder)}}}})}),Hl=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),Wl=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:o}=e;return{padding:"".concat(yn(t)," ").concat(yn(o)),fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},Vl=e=>({padding:"".concat(yn(e.paddingBlockSM)," ").concat(yn(e.paddingInlineSM)),fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),Gl=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:"".concat(yn(e.paddingBlock)," ").concat(yn(e.paddingInline)),color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:"all ".concat(e.motionDurationMid)},Hl(e.colorTextPlaceholder)),{"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:"all ".concat(e.motionDurationSlow,", height 0s"),resize:"vertical"},"&-lg":Object.assign({},Wl(e)),"&-sm":Object.assign({},Vl(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),Yl=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},["&-lg ".concat(t,", &-lg > ").concat(t,"-group-addon")]:Object.assign({},Wl(e)),["&-sm ".concat(t,", &-sm > ").concat(t,"-group-addon")]:Object.assign({},Vl(e)),["&-lg ".concat(n,"-select-single ").concat(n,"-select-selector")]:{height:e.controlHeightLG},["&-sm ".concat(n,"-select-single ").concat(n,"-select-selector")]:{height:e.controlHeightSM},["> ".concat(t)]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},["".concat(t,"-group")]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:"0 ".concat(yn(e.paddingInline)),color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:"all ".concat(e.motionDurationSlow),lineHeight:1,["".concat(n,"-select")]:{margin:"".concat(yn(e.calc(e.paddingBlock).add(1).mul(-1).equal())," ").concat(yn(e.calc(e.paddingInline).mul(-1).equal())),["&".concat(n,"-select-single:not(").concat(n,"-select-customize-input):not(").concat(n,"-pagination-size-changer)")]:{["".concat(n,"-select-selector")]:{backgroundColor:"inherit",border:"".concat(yn(e.lineWidth)," ").concat(e.lineType," transparent"),boxShadow:"none"}}},["".concat(n,"-cascader-picker")]:{margin:"-9px ".concat(yn(e.calc(e.paddingInline).mul(-1).equal())),backgroundColor:"transparent",["".concat(n,"-cascader-input")]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,["".concat(t,"-search-with-button &")]:{zIndex:0}}},["> ".concat(t,":first-child, ").concat(t,"-group-addon:first-child")]:{borderStartEndRadius:0,borderEndEndRadius:0,["".concat(n,"-select ").concat(n,"-select-selector")]:{borderStartEndRadius:0,borderEndEndRadius:0}},["> ".concat(t,"-affix-wrapper")]:{["&:not(:first-child) ".concat(t)]:{borderStartStartRadius:0,borderEndStartRadius:0},["&:not(:last-child) ".concat(t)]:{borderStartEndRadius:0,borderEndEndRadius:0}},["> ".concat(t,":last-child, ").concat(t,"-group-addon:last-child")]:{borderStartStartRadius:0,borderEndStartRadius:0,["".concat(n,"-select ").concat(n,"-select-selector")]:{borderStartStartRadius:0,borderEndStartRadius:0}},["".concat(t,"-affix-wrapper")]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,["".concat(t,"-search &")]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},["&:not(:first-child), ".concat(t,"-search &:not(:first-child)")]:{borderStartStartRadius:0,borderEndStartRadius:0}},["&".concat(t,"-group-compact")]:Object.assign(Object.assign({display:"block"},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{["".concat(t,"-group-addon, ").concat(t,"-group-wrap, > ").concat(t)]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},["\n        & > ".concat(t,"-affix-wrapper,\n        & > ").concat(t,"-number-affix-wrapper,\n        & > ").concat(n,"-picker-range\n      ")]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:"none"},["& > ".concat(n,"-select > ").concat(n,"-select-selector,\n      & > ").concat(n,"-select-auto-complete ").concat(t,",\n      & > ").concat(n,"-cascader-picker ").concat(t,",\n      & > ").concat(t,"-group-wrapper ").concat(t)]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},["& > ".concat(n,"-select-focused")]:{zIndex:1},["& > ".concat(n,"-select > ").concat(n,"-select-arrow")]:{zIndex:1},["& > *:first-child,\n      & > ".concat(n,"-select:first-child > ").concat(n,"-select-selector,\n      & > ").concat(n,"-select-auto-complete:first-child ").concat(t,",\n      & > ").concat(n,"-cascader-picker:first-child ").concat(t)]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},["& > *:last-child,\n      & > ".concat(n,"-select:last-child > ").concat(n,"-select-selector,\n      & > ").concat(n,"-cascader-picker:last-child ").concat(t,",\n      & > ").concat(n,"-cascader-picker-focused:last-child ").concat(t)]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},["& > ".concat(n,"-select-auto-complete ").concat(t)]:{verticalAlign:"top"},["".concat(t,"-group-wrapper + ").concat(t,"-group-wrapper")]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),["".concat(t,"-affix-wrapper")]:{borderRadius:0}},["".concat(t,"-group-wrapper:not(:last-child)")]:{["&".concat(t,"-search > ").concat(t,"-group")]:{["& > ".concat(t,"-group-addon > ").concat(t,"-search-button")]:{borderRadius:0},["& > ".concat(t)]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},Ul=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:o}=e,i=o(n).sub(o(r).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ur(e)),Gl(e)),Tl(e)),Fl(e)),Rl(e)),{'&[type="color"]':{height:e.controlHeight,["&".concat(t,"-lg")]:{height:e.controlHeightLG},["&".concat(t,"-sm")]:{height:n,paddingTop:i,paddingBottom:i}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},Xl=e=>{const{componentCls:t}=e;return{["".concat(t,"-clear-icon")]:{margin:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:"color ".concat(e.motionDurationSlow),"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:"0 ".concat(yn(e.inputAffixPadding))}}}},ql=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:i,colorIconHover:a,iconCls:l}=e,c="".concat(t,"-affix-wrapper"),s="".concat(t,"-affix-wrapper-disabled");return{[c]:Object.assign(Object.assign(Object.assign(Object.assign({},Gl(e)),{display:"inline-flex",["&:not(".concat(t,"-disabled):hover")]:{zIndex:1,["".concat(t,"-search-with-button &")]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},["> input".concat(t)]:{padding:0},["> input".concat(t,", > textarea").concat(t)]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),Xl(e)),{["".concat(l).concat(t,"-password-icon")]:{color:i,cursor:"pointer",transition:"all ".concat(o),"&:hover":{color:a}}}),[s]:{["".concat(l).concat(t,"-password-icon")]:{color:i,cursor:"not-allowed","&:hover":{color:i}}}}},Kl=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{["".concat(t,"-group")]:Object.assign(Object.assign(Object.assign({},Ur(e)),Yl(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{["".concat(t,"-group-addon")]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{["".concat(t,"-group-addon")]:{borderRadius:r}}},Ll(e)),zl(e)),{["&:not(".concat(t,"-compact-first-item):not(").concat(t,"-compact-last-item)").concat(t,"-compact-item")]:{["".concat(t,", ").concat(t,"-group-addon")]:{borderRadius:0}},["&:not(".concat(t,"-compact-last-item)").concat(t,"-compact-first-item")]:{["".concat(t,", ").concat(t,"-group-addon")]:{borderStartEndRadius:0,borderEndEndRadius:0}},["&:not(".concat(t,"-compact-first-item)").concat(t,"-compact-last-item")]:{["".concat(t,", ").concat(t,"-group-addon")]:{borderStartStartRadius:0,borderEndStartRadius:0}},["&:not(".concat(t,"-compact-last-item)").concat(t,"-compact-item")]:{["".concat(t,"-affix-wrapper")]:{borderStartEndRadius:0,borderEndEndRadius:0}}})})}},$l=e=>{const{componentCls:t,antCls:n}=e,r="".concat(t,"-search");return{[r]:{[t]:{"&:hover, &:focus":{["+ ".concat(t,"-group-addon ").concat(r,"-button:not(").concat(n,"-btn-primary)")]:{borderInlineStartColor:e.colorPrimaryHover}}},["".concat(t,"-affix-wrapper")]:{height:e.controlHeight,borderRadius:0},["".concat(t,"-lg")]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},["> ".concat(t,"-group")]:{["> ".concat(t,"-group-addon:last-child")]:{insetInlineStart:-1,padding:0,border:0,["".concat(r,"-button")]:{marginInlineEnd:-1,paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},["".concat(r,"-button:not(").concat(n,"-btn-primary)")]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},["&".concat(n,"-btn-loading::before")]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},["".concat(r,"-button")]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{["".concat(t,"-affix-wrapper, ").concat(r,"-button")]:{height:e.controlHeightLG}},"&-small":{["".concat(t,"-affix-wrapper, ").concat(r,"-button")]:{height:e.controlHeightSM}},"&-rtl":{direction:"rtl"},["&".concat(t,"-compact-item")]:{["&:not(".concat(t,"-compact-last-item)")]:{["".concat(t,"-group-addon")]:{["".concat(t,"-search-button")]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},["&:not(".concat(t,"-compact-first-item)")]:{["".concat(t,",").concat(t,"-affix-wrapper")]:{borderRadius:0}},["> ".concat(t,"-group-addon ").concat(t,"-search-button,\n        > ").concat(t,",\n        ").concat(t,"-affix-wrapper")]:{"&:hover, &:focus, &:active":{zIndex:2}},["> ".concat(t,"-affix-wrapper-focused")]:{zIndex:2}}}}},Ql=e=>{const{componentCls:t,paddingLG:n}=e,r="".concat(t,"-textarea");return{[r]:{position:"relative","&-show-count":{["> ".concat(t)]:{height:"100%"},["".concat(t,"-data-count")]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},["\n        &-allow-clear > ".concat(t,",\n        &-affix-wrapper").concat(r,"-has-feedback ").concat(t,"\n      ")]:{paddingInlineEnd:n},["&-affix-wrapper".concat(t,"-affix-wrapper")]:{padding:0,["> textarea".concat(t)]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent","&:focus":{boxShadow:"none !important"}},["".concat(t,"-suffix")]:{margin:0,"> *:not(:last-child)":{marginInline:0},["".concat(t,"-clear-icon")]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},["".concat(r,"-suffix")]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},["&-affix-wrapper".concat(t,"-affix-wrapper-sm")]:{["".concat(t,"-suffix")]:{["".concat(t,"-clear-icon")]:{insetInlineEnd:e.paddingInlineSM}}}}}},Zl=e=>{const{componentCls:t}=e;return{["".concat(t,"-out-of-range")]:{["&, & input, & textarea, ".concat(t,"-show-count-suffix, ").concat(t,"-data-count")]:{color:e.colorError}}}},Jl=Ol("Input",(e=>{const t=Ui(e,El(e));return[Ul(t),Ql(t),ql(t),Kl(t),$l(t),Zl(t),Jr(t)]}),Pl,{resetFont:!1}),ec=e=>{const{getPrefixCls:t,direction:n}=(0,r.useContext)(f),{prefixCls:o,className:i}=e,a=t("input-group",o),l=t("input"),[s,u]=Jl(l),d=c()(a,{["".concat(a,"-lg")]:"large"===e.size,["".concat(a,"-sm")]:"small"===e.size,["".concat(a,"-compact")]:e.compact,["".concat(a,"-rtl")]:"rtl"===n},u,i),p=(0,r.useContext)(It),h=(0,r.useMemo)((()=>Object.assign(Object.assign({},p),{isFormItemInput:!1})),[p]);return s(r.createElement("span",{className:d,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},r.createElement(It.Provider,{value:h},e.children)))};function tc(e){return tc="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},tc(e)}function nc(e){var t=function(e,t){if("object"!=tc(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=tc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==tc(t)?t:String(t)}function rc(e,t,n){return(t=nc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oc(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 ic(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oc(Object(n),!0).forEach((function(t){rc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ac(){return ac=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ac.apply(this,arguments)}function lc(e,t,n){var r=t.cloneNode(!0),o=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,"number"===typeof t.selectionStart&&"number"===typeof t.selectionEnd&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),r.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},o}function cc(e,t,n,r){if(n){var o=t;"click"!==t.type?"file"===e.type||void 0===r?n(o):n(o=lc(t,e,r)):n(o=lc(t,e,""))}}var sc=r.forwardRef((function(e,t){var n,o,i=e.inputElement,a=e.children,l=e.prefixCls,s=e.prefix,u=e.suffix,d=e.addonBefore,f=e.addonAfter,p=e.className,h=e.style,g=e.disabled,v=e.readOnly,m=e.focused,y=e.triggerFocus,b=e.allowClear,x=e.value,w=e.handleReset,S=e.hidden,O=e.classes,_=e.classNames,C=e.dataAttrs,E=e.styles,P=e.components,M=e.onClear,k=null!==a&&void 0!==a?a:i,A=(null===P||void 0===P?void 0:P.affixWrapper)||"span",I=(null===P||void 0===P?void 0:P.groupWrapper)||"span",T=(null===P||void 0===P?void 0:P.wrapper)||"span",j=(null===P||void 0===P?void 0:P.groupAddon)||"span",L=(0,r.useRef)(null),R=function(e){return!!(e.prefix||e.suffix||e.allowClear)}(e),D=(0,r.cloneElement)(k,{value:x,className:c()(k.props.className,!R&&(null===_||void 0===_?void 0:_.variant))||null}),N=(0,r.useRef)(null);if(r.useImperativeHandle(t,(function(){return{nativeElement:N.current||L.current}})),R){var F=null;if(b){var B=!g&&!v&&x,z="".concat(l,"-clear-icon"),H="object"===tc(b)&&null!==b&&void 0!==b&&b.clearIcon?b.clearIcon:"\u2716";F=r.createElement("span",{onClick:function(e){null===w||void 0===w||w(e),null===M||void 0===M||M()},onMouseDown:function(e){return e.preventDefault()},className:c()(z,rc(rc({},"".concat(z,"-hidden"),!B),"".concat(z,"-has-suffix"),!!u)),role:"button",tabIndex:-1},H)}var W="".concat(l,"-affix-wrapper"),V=c()(W,rc(rc(rc(rc(rc({},"".concat(l,"-disabled"),g),"".concat(W,"-disabled"),g),"".concat(W,"-focused"),m),"".concat(W,"-readonly"),v),"".concat(W,"-input-with-clear-btn"),u&&b&&x),null===O||void 0===O?void 0:O.affixWrapper,null===_||void 0===_?void 0:_.affixWrapper,null===_||void 0===_?void 0:_.variant),G=(u||b)&&r.createElement("span",{className:c()("".concat(l,"-suffix"),null===_||void 0===_?void 0:_.suffix),style:null===E||void 0===E?void 0:E.suffix},F,u);D=r.createElement(A,ac({className:V,style:null===E||void 0===E?void 0:E.affixWrapper,onClick:function(e){var t;null!==(t=L.current)&&void 0!==t&&t.contains(e.target)&&(null===y||void 0===y||y())}},null===C||void 0===C?void 0:C.affixWrapper,{ref:L}),s&&r.createElement("span",{className:c()("".concat(l,"-prefix"),null===_||void 0===_?void 0:_.prefix),style:null===E||void 0===E?void 0:E.prefix},s),D,G)}if(function(e){return!(!e.addonBefore&&!e.addonAfter)}(e)){var Y="".concat(l,"-group"),U="".concat(Y,"-addon"),X="".concat(Y,"-wrapper"),q=c()("".concat(l,"-wrapper"),Y,null===O||void 0===O?void 0:O.wrapper,null===_||void 0===_?void 0:_.wrapper),K=c()(X,rc({},"".concat(X,"-disabled"),g),null===O||void 0===O?void 0:O.group,null===_||void 0===_?void 0:_.groupWrapper);D=r.createElement(I,{className:K,ref:N},r.createElement(T,{className:q},d&&r.createElement(j,{className:U},d),D,f&&r.createElement(j,{className:U},f)))}return r.cloneElement(D,{className:c()(null===(n=D.props)||void 0===n?void 0:n.className,p)||null,style:ic(ic({},null===(o=D.props)||void 0===o?void 0:o.style),h),hidden:S})}));const uc=sc;function dc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function fc(e,t){if(e){if("string"===typeof e)return dc(e,t);var n=Object.prototype.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)?dc(e,t):void 0}}function pc(e){return function(e){if(Array.isArray(e))return dc(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||fc(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.")}()}function hc(e,t){return function(e){if(Array.isArray(e))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,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||fc(e,t)||function(){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 gc(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function vc(e){var t=r.useRef();t.current=e;var n=r.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 mc="undefined"!==typeof window&&window.document&&window.document.createElement?r.useLayoutEffect:r.useEffect,yc=function(e,t){var n=r.useRef(!0);mc((function(){return e(n.current)}),t),mc((function(){return n.current=!1,function(){n.current=!0}}),[])},bc=function(e,t){yc((function(t){if(!t)return e()}),t)};function xc(e){var t=r.useRef(!1),n=hc(r.useState(e),2),o=n[0],i=n[1];return r.useEffect((function(){return t.current=!1,function(){t.current=!0}}),[]),[o,function(e,n){n&&t.current||i(e)}]}function wc(e){return void 0!==e}var Sc=["show"];var Oc=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],_c=(0,r.forwardRef)((function(e,t){var n=e.autoComplete,o=e.onChange,i=e.onFocus,a=e.onBlur,l=e.onPressEnter,s=e.onKeyDown,u=e.onKeyUp,d=e.prefixCls,f=void 0===d?"rc-input":d,p=e.disabled,h=e.htmlSize,g=e.className,v=e.maxLength,m=e.suffix,y=e.showCount,b=e.count,x=e.type,w=void 0===x?"text":x,S=e.classes,O=e.classNames,_=e.styles,C=e.onCompositionStart,E=e.onCompositionEnd,P=gc(e,Oc),M=hc((0,r.useState)(!1),2),k=M[0],A=M[1],I=(0,r.useRef)(!1),T=(0,r.useRef)(!1),j=(0,r.useRef)(null),L=(0,r.useRef)(null),R=function(e){j.current&&function(e,t){if(e){e.focus(t);var n=(t||{}).cursor;if(n){var r=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(r,r);break;default:e.setSelectionRange(0,r)}}}}(j.current,e)},D=function(e,t){var n=t||{},r=n.defaultValue,o=n.value,i=n.onChange,a=n.postState,l=hc(xc((function(){return wc(o)?o:wc(r)?"function"===typeof r?r():r:"function"===typeof e?e():e})),2),c=l[0],s=l[1],u=void 0!==o?o:c,d=a?a(u):u,f=vc(i),p=hc(xc([u]),2),h=p[0],g=p[1];return bc((function(){var e=h[0];c!==e&&f(c,e)}),[h]),bc((function(){wc(o)||s(o)}),[o]),[d,vc((function(e,t){s(e,t),g([u],t)}))]}(e.defaultValue,{value:e.value}),N=hc(D,2),F=N[0],B=N[1],z=void 0===F||null===F?"":String(F),H=hc((0,r.useState)(null),2),W=H[0],V=H[1],G=function(e,t){return r.useMemo((function(){var n={};t&&(n.show="object"===tc(t)&&t.formatter?t.formatter:!!t);var r=n=ic(ic({},n),e),o=r.show,i=gc(r,Sc);return ic(ic({},i),{},{show:!!o,showFormatter:"function"===typeof o?o:void 0,strategy:i.strategy||function(e){return e.length}})}),[e,t])}(b,y),Y=G.max||v,U=G.strategy(z),X=!!Y&&U>Y;(0,r.useImperativeHandle)(t,(function(){var e;return{focus:R,blur:function(){var e;null===(e=j.current)||void 0===e||e.blur()},setSelectionRange:function(e,t,n){var r;null===(r=j.current)||void 0===r||r.setSelectionRange(e,t,n)},select:function(){var e;null===(e=j.current)||void 0===e||e.select()},input:j.current,nativeElement:(null===(e=L.current)||void 0===e?void 0:e.nativeElement)||j.current}})),(0,r.useEffect)((function(){A((function(e){return(!e||!p)&&e}))}),[p]);var q=function(e,t,n){var r,i,a=t;if(!I.current&&G.exceedFormatter&&G.max&&G.strategy(t)>G.max)t!==(a=G.exceedFormatter(t,{max:G.max}))&&V([(null===(r=j.current)||void 0===r?void 0:r.selectionStart)||0,(null===(i=j.current)||void 0===i?void 0:i.selectionEnd)||0]);else if("compositionEnd"===n.source)return;B(a),j.current&&cc(j.current,e,o,a)};(0,r.useEffect)((function(){var e;W&&(null===(e=j.current)||void 0===e||e.setSelectionRange.apply(e,pc(W)))}),[W]);var K=function(e){q(e,e.target.value,{source:"change"})},$=function(e){I.current=!1,q(e,e.currentTarget.value,{source:"compositionEnd"}),null===E||void 0===E||E(e)},Q=function(e){l&&"Enter"===e.key&&!T.current&&(T.current=!0,l(e)),null===s||void 0===s||s(e)},Z=function(e){"Enter"===e.key&&(T.current=!1),null===u||void 0===u||u(e)},J=function(e){A(!0),null===i||void 0===i||i(e)},ee=function(e){A(!1),null===a||void 0===a||a(e)},te=X&&"".concat(f,"-out-of-range");return r.createElement(uc,ac({},P,{prefixCls:f,className:c()(g,te),handleReset:function(e){B(""),R(),j.current&&cc(j.current,e,o)},value:z,focused:k,triggerFocus:R,suffix:function(){var e=Number(Y)>0;if(m||G.show){var t=G.showFormatter?G.showFormatter({value:z,count:U,maxLength:Y}):"".concat(U).concat(e?" / ".concat(Y):"");return r.createElement(r.Fragment,null,G.show&&r.createElement("span",{className:c()("".concat(f,"-show-count-suffix"),rc({},"".concat(f,"-show-count-has-suffix"),!!m),null===O||void 0===O?void 0:O.count),style:ic({},null===_||void 0===_?void 0:_.count)},t),m)}return null}(),disabled:p,classes:S,classNames:O,styles:_}),function(){var t=function(e,t){var n=ic({},e);return Array.isArray(t)&&t.forEach((function(e){delete n[e]})),n}(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return r.createElement("input",ac({autoComplete:n},t,{onChange:K,onFocus:J,onBlur:ee,onKeyDown:Q,onKeyUp:Z,className:c()(f,rc({},"".concat(f,"-disabled"),p),null===O||void 0===O?void 0:O.input),style:null===_||void 0===_?void 0:_.input,ref:j,size:h,type:w,onCompositionStart:function(e){I.current=!0,null===C||void 0===C||C(e)},onCompositionEnd:$}))}())}));const Cc=_c;function Ec(e){return Ec="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},Ec(e)}function Pc(e,t,n){var o=r.useRef({});return"value"in o.current&&!n(o.current.condition,t)||(o.current.value=e(),o.current.condition=t),o.current.value}var Mc=function(e,t){"function"===typeof e?e(t):"object"===Ec(e)&&e&&"current"in e&&(e.current=t)},kc=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){Mc(t,e)}))}},Ac=function(e){var t,n,r=(0,N.isMemo)(e)?e.type.type:e.type;return!!("function"!==typeof r||null!==(t=r.prototype)&&void 0!==t&&t.render||r.$$typeof===N.ForwardRef)&&!!("function"!==typeof e||null!==(n=e.prototype)&&void 0!==n&&n.render||e.$$typeof===N.ForwardRef)};function Ic(e){return(0,r.isValidElement)(e)&&!(0,N.isFragment)(e)}Number(r.version.split(".")[0]);function Tc(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];return r.Children.forEach(e,(function(e){(void 0!==e&&null!==e||t.keepEmpty)&&(Array.isArray(e)?n=n.concat(Tc(e)):(0,N.isFragment)(e)&&e.props?n=n.concat(Tc(e.props.children,t)):n.push(e))})),n}const jc=r.createContext(void 0),Lc=e=>{let{children:t,size:n}=e;const o=r.useContext(jc);return r.createElement(jc.Provider,{value:n||o},t)},Rc=jc,Dc=e=>{const t=r.useContext(Rc);return r.useMemo((()=>e?"string"===typeof e?null!==e&&void 0!==e?e:t:e instanceof Function?e(t):t:t),[e,t])},Nc=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},Fc=e=>{const{componentCls:t,antCls:n}=e;return{[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},["".concat(t,"-item:empty")]:{display:"none"},["".concat(t,"-item > ").concat(n,"-badge-not-a-wrapper:only-child")]:{display:"block"}}}},Bc=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}},zc=Ol("Space",(e=>{const t=Ui(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[Fc(t),Bc(t),Nc(t)]}),(()=>({})),{resetStyle:!1});var Hc=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 Wc=r.createContext(null),Vc=(e,t)=>{const n=r.useContext(Wc),o=r.useMemo((()=>{if(!n)return"";const{compactDirection:r,isFirstItem:o,isLastItem:i}=n,a="vertical"===r?"-vertical-":"-";return c()("".concat(e,"-compact").concat(a,"item"),{["".concat(e,"-compact").concat(a,"first-item")]:o,["".concat(e,"-compact").concat(a,"last-item")]:i,["".concat(e,"-compact").concat(a,"item-rtl")]:"rtl"===t})}),[e,t,n]);return{compactSize:null===n||void 0===n?void 0:n.compactSize,compactDirection:null===n||void 0===n?void 0:n.compactDirection,compactItemClassnames:o}},Gc=e=>{let{children:t}=e;return r.createElement(Wc.Provider,{value:null},t)},Yc=e=>{var{children:t}=e,n=Hc(e,["children"]);return r.createElement(Wc.Provider,{value:n},t)},Uc=e=>{const{getPrefixCls:t,direction:n}=r.useContext(f),{size:o,direction:i,block:a,prefixCls:l,className:s,rootClassName:u,children:d}=e,p=Hc(e,["size","direction","block","prefixCls","className","rootClassName","children"]),h=Dc((e=>null!==o&&void 0!==o?o:e)),g=t("space-compact",l),[v,m]=zc(g),y=c()(g,m,{["".concat(g,"-rtl")]:"rtl"===n,["".concat(g,"-block")]:a,["".concat(g,"-vertical")]:"vertical"===i},s,u),b=r.useContext(Wc),x=Tc(d),w=r.useMemo((()=>x.map(((e,t)=>{const n=(null===e||void 0===e?void 0:e.key)||"".concat(g,"-item-").concat(t);return r.createElement(Yc,{key:n,compactSize:h,compactDirection:i,isFirstItem:0===t&&(!b||(null===b||void 0===b?void 0:b.isFirstItem)),isLastItem:t===x.length-1&&(!b||(null===b||void 0===b?void 0:b.isLastItem))},e)}))),[o,x,b]);return 0===x.length?null:v(r.createElement("div",Object.assign({className:y},p),w))},Xc=e=>{const{space:t,form:n,children:o}=e;if(void 0===o||null===o)return null;let i=o;return n&&(i=r.createElement(Tt,{override:!0,status:!0},i)),t&&(i=r.createElement(Gc,null,i)),i};function qc(){return qc=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},qc.apply(null,arguments)}const Kc={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"};function $c(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 Qc(e,t){return function(e){if(Array.isArray(e))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,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return $c(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)?$c(e,t):void 0}}(e,t)||function(){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 Zc(e){return Zc="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},Zc(e)}function Jc(e){var t=function(e,t){if("object"!=Zc(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Zc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Zc(t)?t:t+""}function es(e,t,n){return(t=Jc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ts(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 ns=n(6983);const rs=(0,r.createContext)({});function os(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 is(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?os(Object(n),!0).forEach((function(t){es(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):os(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function as(e){var t;return null===e||void 0===e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function ls(e){return function(e){return as(e)instanceof ShadowRoot}(e)?as(e):null}function cs(e){return"object"===Zc(e)&&"string"===typeof e.name&&"string"===typeof e.theme&&("object"===Zc(e.icon)||"function"===typeof e.icon)}function ss(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,n){var r=e[n];if("class"===n)t.className=r,delete t.class;else delete t[n],t[function(e){return e.replace(/-(.)/g,(function(e,t){return t.toUpperCase()}))}(n)]=r;return t}),{})}function us(e,t,n){return n?r.createElement(e.tag,is(is({key:t},ss(e.attrs)),n),(e.children||[]).map((function(n,r){return us(n,"".concat(t,"-").concat(e.tag,"-").concat(r))}))):r.createElement(e.tag,is({key:t},ss(e.attrs)),(e.children||[]).map((function(n,r){return us(n,"".concat(t,"-").concat(e.tag,"-").concat(r))})))}function ds(e){return(0,ns.generate)(e)[0]}function fs(e){return e?Array.isArray(e)?e:[e]:[]}var ps=["icon","className","onClick","style","primaryColor","secondaryColor"],hs={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var gs=function(e){var t=e.icon,n=e.className,o=e.onClick,i=e.style,a=e.primaryColor,l=e.secondaryColor,c=ts(e,ps),s=r.useRef(),u=hs;if(a&&(u={primaryColor:a,secondaryColor:l||ds(a)}),function(e){var t=(0,r.useContext)(rs),n=t.csp,o=t.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,r.useEffect)((function(){var t=ls(e.current);Xt(i,"@ant-design-icons",{prepend:!0,csp:n,attachTo:t})}),[])}(s),function(e,t){U(e,"[@ant-design/icons] ".concat(t))}(cs(t),"icon should be icon definiton, but got ".concat(t)),!cs(t))return null;var d=t;return d&&"function"===typeof d.icon&&(d=is(is({},d),{},{icon:d.icon(u.primaryColor,u.secondaryColor)})),us(d.icon,"svg-".concat(d.name),is(is({className:n,onClick:o,style:i,"data-icon":d.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},c),{},{ref:s}))};gs.displayName="IconReact",gs.getTwoToneColors=function(){return is({},hs)},gs.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;hs.primaryColor=t,hs.secondaryColor=n||ds(t),hs.calculated=!!n};const vs=gs;function ms(e){var t=Qc(fs(e),2),n=t[0],r=t[1];return vs.setTwoToneColors({primaryColor:n,secondaryColor:r})}var ys=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];ms(ns.blue.primary);var bs=r.forwardRef((function(e,t){var n=e.className,o=e.icon,i=e.spin,a=e.rotate,l=e.tabIndex,s=e.onClick,u=e.twoToneColor,d=ts(e,ys),f=r.useContext(rs),p=f.prefixCls,h=void 0===p?"anticon":p,g=f.rootClassName,v=c()(g,h,es(es({},"".concat(h,"-").concat(o.name),!!o.name),"".concat(h,"-spin"),!!i||"loading"===o.name),n),m=l;void 0===m&&s&&(m=-1);var y=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,b=Qc(fs(u),2),x=b[0],w=b[1];return r.createElement("span",qc({role:"img","aria-label":o.name},d,{ref:t,tabIndex:m,onClick:s,className:v}),r.createElement(vs,{icon:o,primaryColor:x,secondaryColor:w,style:y}))}));bs.displayName="AntdIcon",bs.getTwoToneColor=function(){var e=vs.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},bs.setTwoToneColor=ms;const xs=bs;var ws=function(e,t){return r.createElement(xs,qc({},e,{ref:t,icon:Kc}))};const Ss=r.forwardRef(ws),Os=e=>{let t;return"object"===typeof e&&(null===e||void 0===e?void 0:e.clearIcon)?t=e:e&&(t={clearIcon:r.createElement(Ss,null)}),t};function _s(e,t,n){return c()({["".concat(e,"-status-success")]:"success"===t,["".concat(e,"-status-warning")]:"warning"===t,["".concat(e,"-status-error")]:"error"===t,["".concat(e,"-status-validating")]:"validating"===t,["".concat(e,"-has-feedback")]:n})}const Cs=(e,t)=>t||e,Es=r.createContext(!1),Ps=e=>{let{children:t,disabled:n}=e;const o=r.useContext(Es);return r.createElement(Es.Provider,{value:null!==n&&void 0!==n?n:o},t)},Ms=Es,ks=e=>{const[,,,,t]=wl();return t?"".concat(e,"-css-var"):""},As=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;var o,i;const{variant:a,[e]:l}=(0,r.useContext)(f),c=(0,r.useContext)(jt),s=null===l||void 0===l?void 0:l.variant;let u;u="undefined"!==typeof t?t:!1===n?"borderless":null!==(i=null!==(o=null!==c&&void 0!==c?c:s)&&void 0!==o?o:a)&&void 0!==i?i:"outlined";return[u,d.includes(u)]};function Is(e,t){const n=(0,r.useRef)([]),o=()=>{n.current.push(setTimeout((()=>{var t,n,r,o;(null===(t=e.current)||void 0===t?void 0:t.input)&&"password"===(null===(n=e.current)||void 0===n?void 0:n.input.getAttribute("type"))&&(null===(r=e.current)||void 0===r?void 0:r.input.hasAttribute("value"))&&(null===(o=e.current)||void 0===o||o.input.removeAttribute("value"))})))};return(0,r.useEffect)((()=>(t&&o(),()=>n.current.forEach((e=>{e&&clearTimeout(e)})))),[]),o}var Ts=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 js=(0,r.forwardRef)(((e,t)=>{var n;const{prefixCls:o,bordered:i=!0,status:a,size:l,disabled:s,onBlur:u,onFocus:d,suffix:p,allowClear:h,addonAfter:g,addonBefore:v,className:m,style:y,styles:b,rootClassName:x,onChange:w,classNames:S,variant:O}=e,_=Ts(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]);const{getPrefixCls:C,direction:E,input:P}=r.useContext(f),M=C("input",o),k=(0,r.useRef)(null),A=ks(M),[I,T,j]=Jl(M,A),{compactSize:L,compactItemClassnames:R}=Vc(M,E),D=Dc((e=>{var t;return null!==(t=null!==l&&void 0!==l?l:L)&&void 0!==t?t:e})),N=r.useContext(Ms),F=null!==s&&void 0!==s?s:N,{status:B,hasFeedback:z,feedbackIcon:H}=(0,r.useContext)(It),W=Cs(B,a),V=function(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}(e)||!!z;(0,r.useRef)(V);const G=Is(k,!0),Y=(z||p)&&r.createElement(r.Fragment,null,p,z&&H),U=Os(null!==h&&void 0!==h?h:null===P||void 0===P?void 0:P.allowClear),[X,q]=As("input",O,i);return I(r.createElement(Cc,Object.assign({ref:kc(t,k),prefixCls:M,autoComplete:null===P||void 0===P?void 0:P.autoComplete},_,{disabled:F,onBlur:e=>{G(),null===u||void 0===u||u(e)},onFocus:e=>{G(),null===d||void 0===d||d(e)},style:Object.assign(Object.assign({},null===P||void 0===P?void 0:P.style),y),styles:Object.assign(Object.assign({},null===P||void 0===P?void 0:P.styles),b),suffix:Y,allowClear:U,className:c()(m,x,j,A,R,null===P||void 0===P?void 0:P.className),onChange:e=>{G(),null===w||void 0===w||w(e)},addonBefore:v&&r.createElement(Xc,{form:!0,space:!0},v),addonAfter:g&&r.createElement(Xc,{form:!0,space:!0},g),classNames:Object.assign(Object.assign(Object.assign({},S),null===P||void 0===P?void 0:P.classNames),{input:c()({["".concat(M,"-sm")]:"small"===D,["".concat(M,"-lg")]:"large"===D,["".concat(M,"-rtl")]:"rtl"===E},null===S||void 0===S?void 0:S.input,null===(n=null===P||void 0===P?void 0:P.classNames)||void 0===n?void 0:n.input,T),variant:c()({["".concat(M,"-").concat(X)]:q},_s(M,W)),affixWrapper:c()({["".concat(M,"-affix-wrapper-sm")]:"small"===D,["".concat(M,"-affix-wrapper-lg")]:"large"===D,["".concat(M,"-affix-wrapper-rtl")]:"rtl"===E},T),wrapper:c()({["".concat(M,"-group-rtl")]:"rtl"===E},T),groupWrapper:c()({["".concat(M,"-group-wrapper-sm")]:"small"===D,["".concat(M,"-group-wrapper-lg")]:"large"===D,["".concat(M,"-group-wrapper-rtl")]:"rtl"===E,["".concat(M,"-group-wrapper-").concat(X)]:q},_s("".concat(M,"-group-wrapper"),W,z),T)})})))}));const Ls=js;function Rs(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 Ds(e){return function(e){if(Array.isArray(e))return Rs(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Rs(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)?Rs(e,t):void 0}}(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.")}()}function Ns(e){var t=r.useRef();t.current=e;var n=r.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}function Fs(e){var t=function(e,t){if("object"!=Ec(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Ec(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ec(t)?t:String(t)}function Bs(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 zs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bs(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=Fs(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Hs="".concat("accept acceptCharset accessKey action allowFullScreen allowTransparency\n    alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\n    charSet checked classID className colSpan cols content contentEditable contextMenu\n    controls coords crossOrigin data dateTime default defer dir disabled download draggable\n    encType form formAction formEncType formMethod formNoValidate formTarget frameBorder\n    headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\n    is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\n    mediaGroup method min minLength multiple muted name noValidate nonce open\n    optimum pattern placeholder poster preload radioGroup readOnly rel required\n    reversed role rowSpan rows sandbox scope scoped scrolling seamless selected\n    shape size sizes span spellCheck src srcDoc srcLang srcSet start step style\n    summary tabIndex target title type useMap value width wmode wrap"," ").concat("onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\n    onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\n    onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\n    onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\n    onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\n    onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\n    onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError").split(/[\s\n]+/),Ws="aria-",Vs="data-";function Gs(e,t){return 0===e.indexOf(t)}function Ys(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t=!1===n?{aria:!0,data:!0,attr:!0}:!0===n?{aria:!0}:zs({},n);var r={};return Object.keys(e).forEach((function(n){(t.aria&&("role"===n||Gs(n,Ws))||t.data&&Gs(n,Vs)||t.attr&&Hs.includes(n))&&(r[n]=e[n])})),r}const Us=e=>{const{componentCls:t,paddingXS:n}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:n,"&-rtl":{direction:"rtl"},["".concat(t,"-input")]:{textAlign:"center",paddingInline:e.paddingXXS},["&".concat(t,"-sm ").concat(t,"-input")]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},["&".concat(t,"-lg ").concat(t,"-input")]:{paddingInline:e.paddingXS}}}},Xs=Ol(["Input","OTP"],(e=>{const t=Ui(e,El(e));return[Us(t)]}),Pl);var qs=function(e){return+setTimeout(e,16)},Ks=function(e){return clearTimeout(e)};"undefined"!==typeof window&&"requestAnimationFrame"in window&&(qs=function(e){return window.requestAnimationFrame(e)},Ks=function(e){return window.cancelAnimationFrame(e)});var $s=0,Qs=new Map;function Zs(e){Qs.delete(e)}var Js=function(e){var t=$s+=1;return function n(r){if(0===r)Zs(t),e();else{var o=qs((function(){n(r-1)}));Qs.set(t,o)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};Js.cancel=function(e){var t=Qs.get(e);return Zs(e),Ks(t)};const eu=Js;var tu=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 nu=r.forwardRef(((e,t)=>{const{value:n,onChange:o,onActiveChange:i,index:a,mask:l}=e,c=tu(e,["value","onChange","onActiveChange","index","mask"]),s=n&&"string"===typeof l?l:n,u=r.useRef(null);r.useImperativeHandle(t,(()=>u.current));const d=()=>{eu((()=>{var e;const t=null===(e=u.current)||void 0===e?void 0:e.input;document.activeElement===t&&t&&t.select()}))};return r.createElement(Ls,Object.assign({type:!0===l?"password":"text"},c,{ref:u,value:s,onInput:e=>{o(a,e.target.value)},onFocus:d,onKeyDown:e=>{let{key:t}=e;"ArrowLeft"===t?i(a-1):"ArrowRight"===t&&i(a+1),d()},onKeyUp:e=>{"Backspace"!==e.key||n||i(a-1),d()},onMouseDown:d,onMouseUp:d}))})),ru=nu;var ou=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};function iu(e){return(e||"").split("")}const au=r.forwardRef(((e,t)=>{const{prefixCls:n,length:o=6,size:i,defaultValue:a,value:l,onChange:s,formatter:u,variant:d,disabled:p,status:h,autoFocus:g,mask:v,type:m}=e,y=ou(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","variant","disabled","status","autoFocus","mask","type"]);const{getPrefixCls:b,direction:x}=r.useContext(f),w=b("otp",n),S=Ys(y,{aria:!0,data:!0,attr:!0}),O=ks(w),[_,C,E]=Xs(w,O),P=Dc((e=>null!==i&&void 0!==i?i:e)),M=r.useContext(It),k=Cs(M.status,h),A=r.useMemo((()=>Object.assign(Object.assign({},M),{status:k,hasFeedback:!1,feedbackIcon:null})),[M,k]),I=r.useRef(null),T=r.useRef({});r.useImperativeHandle(t,(()=>({focus:()=>{var e;null===(e=T.current[0])||void 0===e||e.focus()},blur:()=>{var e;for(let t=0;t<o;t+=1)null===(e=T.current[t])||void 0===e||e.blur()},nativeElement:I.current})));const j=e=>u?u(e):e,[L,R]=r.useState(iu(j(a||"")));r.useEffect((()=>{void 0!==l&&R(iu(l))}),[l]);const D=Ns((e=>{R(e),s&&e.length===o&&e.every((e=>e))&&e.some(((e,t)=>L[t]!==e))&&s(e.join(""))})),N=Ns(((e,t)=>{let n=Ds(L);for(let o=0;o<e;o+=1)n[o]||(n[o]="");t.length<=1?n[e]=t:n=n.slice(0,e).concat(iu(t)),n=n.slice(0,o);for(let o=n.length-1;o>=0&&!n[o];o-=1)n.pop();const r=j(n.map((e=>e||" ")).join(""));return n=iu(r).map(((e,t)=>" "!==e||n[t]?e:n[t])),n})),F=(e,t)=>{var n;const r=N(e,t),i=Math.min(e+t.length,o-1);i!==e&&(null===(n=T.current[i])||void 0===n||n.focus()),D(r)},B=e=>{var t;null===(t=T.current[e])||void 0===t||t.focus()},z={variant:d,disabled:p,status:k,mask:v,type:m};return _(r.createElement("div",Object.assign({},S,{ref:I,className:c()(w,{["".concat(w,"-sm")]:"small"===P,["".concat(w,"-lg")]:"large"===P,["".concat(w,"-rtl")]:"rtl"===x},E,C)}),r.createElement(It.Provider,{value:A},Array.from({length:o}).map(((e,t)=>{const n="otp-".concat(t),o=L[t]||"";return r.createElement(ru,Object.assign({ref:e=>{T.current[t]=e},key:n,index:t,size:P,htmlSize:1,className:"".concat(w,"-input"),onChange:F,value:o,onActiveChange:B,autoFocus:0===t&&g},z))})))))})),lu=au;const cu={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"};var su=function(e,t){return r.createElement(xs,qc({},e,{ref:t,icon:cu}))};const uu=r.forwardRef(su);const du={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"};var fu=function(e,t){return r.createElement(xs,qc({},e,{ref:t,icon:du}))};const pu=r.forwardRef(fu);function hu(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach((function(e){delete n[e]})),n}var gu=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 vu=e=>e?r.createElement(pu,null):r.createElement(uu,null),mu={click:"onClick",hover:"onMouseOver"},yu=r.forwardRef(((e,t)=>{const{disabled:n,action:o="click",visibilityToggle:i=!0,iconRender:a=vu}=e,l=r.useContext(Ms),s=null!==n&&void 0!==n?n:l,u="object"===typeof i&&void 0!==i.visible,[d,p]=(0,r.useState)((()=>!!u&&i.visible)),h=(0,r.useRef)(null);r.useEffect((()=>{u&&p(i.visible)}),[u,i]);const g=Is(h),v=()=>{s||(d&&g(),p((e=>{var t;const n=!e;return"object"===typeof i&&(null===(t=i.onVisibleChange)||void 0===t||t.call(i,n)),n})))},{className:m,prefixCls:y,inputPrefixCls:b,size:x}=e,w=gu(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:S}=r.useContext(f),O=S("input",b),_=S("input-password",y),C=i&&(e=>{const t=mu[o]||"",n=a(d),i={[t]:v,className:"".concat(e,"-icon"),key:"passwordIcon",onMouseDown:e=>{e.preventDefault()},onMouseUp:e=>{e.preventDefault()}};return r.cloneElement(r.isValidElement(n)?n:r.createElement("span",null,n),i)})(_),E=c()(_,m,{["".concat(_,"-").concat(x)]:!!x}),P=Object.assign(Object.assign({},hu(w,["suffix","iconRender","visibilityToggle"])),{type:d?"text":"password",className:E,prefixCls:O,suffix:C});return x&&(P.size=x),r.createElement(Ls,Object.assign({ref:kc(t,h)},P))}));const bu=yu;const xu={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"};var wu=function(e,t){return r.createElement(xs,qc({},e,{ref:t,icon:xu}))};const Su=r.forwardRef(wu);function Ou(e){return e&&r.isValidElement(e)&&e.type===r.Fragment}const _u=(e,t,n)=>r.isValidElement(e)?r.cloneElement(e,"function"===typeof n?n(e.props||{}):n):t;function Cu(e,t){return _u(e,e,t)}const Eu=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},Pu=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:"var(--wave-color, ".concat(n,")"),boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:["box-shadow 0.4s ".concat(e.motionEaseOutCirc),"opacity 2s ".concat(e.motionEaseOutCirc)].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:["box-shadow ".concat(e.motionDurationSlow," ").concat(e.motionEaseInOut),"opacity ".concat(e.motionDurationSlow," ").concat(e.motionEaseInOut)].join(",")}}}}},Mu=_l("Wave",(e=>[Pu(e)])),ku="".concat(s,"-wave-target");function Au(e){return Au="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},Au(e)}function Iu(e){var t=function(e,t){if("object"!=Au(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Au(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Au(t)?t:String(t)}function Tu(e,t,n){return(t=Iu(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ju(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 Lu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ju(Object(n),!0).forEach((function(t){Tu(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ju(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ru(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Du(e,t){return function(e){if(Array.isArray(e))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,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"===typeof e)return Ru(e,t);var n=Object.prototype.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)?Ru(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Nu=n(7950),Fu=n.t(Nu,2);function Bu(e){return e instanceof HTMLElement||e instanceof SVGElement}function zu(e){var t,n=function(e){return e&&"object"===Ec(e)&&Bu(e.nativeElement)?e.nativeElement:Bu(e)?e:null}(e);return n||(e instanceof r.Component?null===(t=Nu.findDOMNode)||void 0===t?void 0:t.call(Nu,e):null)}function Hu(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Wu=["children"],Vu=r.createContext({});function Gu(e){var t=e.children,n=Hu(e,Wu);return r.createElement(Vu.Provider,{value:n},t)}function Yu(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Uu(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,Iu(r.key),r)}}function Xu(e,t,n){return t&&Uu(e.prototype,t),n&&Uu(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function qu(e,t){return qu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},qu(e,t)}function Ku(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&&qu(e,t)}function $u(e){return $u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},$u(e)}function Qu(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Qu=function(){return!!e})()}function Zu(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ju(e){var t=Qu();return function(){var n,r=$u(e);if(t){var o=$u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Au(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Zu(e)}(this,n)}}const ed=function(e){Ku(n,e);var t=Ju(n);function n(){return Yu(this,n),t.apply(this,arguments)}return Xu(n,[{key:"render",value:function(){return this.props.children}}]),n}(r.Component);function td(e){if(Array.isArray(e))return e}function nd(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function rd(e,t){if(e){if("string"===typeof e)return nd(e,t);var n=Object.prototype.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)?nd(e,t):void 0}}function od(){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 id(e,t){return td(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,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||rd(e,t)||od()}function ad(){return!("undefined"===typeof window||!window.document||!window.document.createElement)}var ld=ad()?r.useLayoutEffect:r.useEffect,cd=function(e,t){var n=r.useRef(!0);ld((function(){return e(n.current)}),t),ld((function(){return n.current=!1,function(){n.current=!0}}),[])},sd=function(e,t){cd((function(t){if(!t)return e()}),t)};const ud=cd;function dd(e){var t=r.useRef(!1),n=id(r.useState(e),2),o=n[0],i=n[1];return r.useEffect((function(){return t.current=!1,function(){t.current=!0}}),[]),[o,function(e,n){n&&t.current||i(e)}]}function fd(e){return void 0!==e}function pd(e,t){var n=t||{},r=n.defaultValue,o=n.value,i=n.onChange,a=n.postState,l=id(dd((function(){return fd(o)?o:fd(r)?"function"===typeof r?r():r:"function"===typeof e?e():e})),2),c=l[0],s=l[1],u=void 0!==o?o:c,d=a?a(u):u,f=Ns(i),p=id(dd([u]),2),h=p[0],g=p[1];return sd((function(){var e=h[0];c!==e&&f(c,e)}),[h]),sd((function(){fd(o)||s(o)}),[o]),[d,Ns((function(e,t){s(e,t),g([u],t)}))]}function hd(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function gd(e){return function(e){if(Array.isArray(e))return nd(e)}(e)||hd(e)||rd(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.")}()}function vd(e,t){for(var n=e,r=0;r<t.length;r+=1){if(null===n||void 0===n)return;n=n[t[r]]}return n}function md(e,t,n,r){if(!t.length)return n;var o,i,a=td(o=t)||hd(o)||rd(o)||od(),l=a[0],c=a.slice(1);return i=e||"number"!==typeof l?Array.isArray(e)?gd(e):zs({},e):[],r&&void 0===n&&1===c.length?delete i[l][c[0]]:i[l]=md(i[l],c,n,r),i}function yd(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return t.length&&r&&void 0===n&&!vd(e,t.slice(0,-1))?e:md(e,t,n,r)}function bd(e){return Array.isArray(e)?[]:{}}var xd="undefined"===typeof Reflect?Object.keys:Reflect.ownKeys;function wd(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=bd(t[0]);return t.forEach((function(e){!function t(n,o){var i,a=new Set(o),l=vd(e,n),c=Array.isArray(l);if(c||"object"===Ec(i=l)&&null!==i&&Object.getPrototypeOf(i)===Object.prototype){if(!a.has(l)){a.add(l);var s=vd(r,n);c?r=yd(r,n,[]):s&&"object"===Ec(s)||(r=yd(r,n,bd(l))),xd(l).forEach((function(e){t([].concat(gd(n),[e]),a)}))}}else r=yd(r,n,l)}([])})),r}var Sd={},Od=[];function _d(e,t){}function Cd(e,t){}function Ed(e,t,n){t||Sd[n]||(e(!1,n),Sd[n]=!0)}function Pd(e,t){Ed(_d,e,t)}function Md(e,t){Ed(Cd,e,t)}Pd.preMessage=function(e){Od.push(e)},Pd.resetWarned=function(){Sd={}},Pd.noteOnce=Md;const kd=Pd;var Ad="none",Id="appear",Td="enter",jd="leave",Ld="none",Rd="prepare",Dd="start",Nd="active",Fd="end",Bd="prepared";function zd(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 Hd=function(e,t){var n={animationend:zd("Animation","AnimationEnd"),transitionend:zd("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}(ad(),"undefined"!==typeof window?window:{}),Wd={};if(ad()){var Vd=document.createElement("div");Wd=Vd.style}var Gd={};function Yd(e){if(Gd[e])return Gd[e];var t=Hd[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 Wd)return Gd[e]=t[i],Gd[e]}return""}var Ud=Yd("animationend"),Xd=Yd("transitionend"),qd=!(!Ud||!Xd),Kd=Ud||"animationend",$d=Xd||"transitionend";function Qd(e,t){if(!e)return null;if("object"===Au(e)){var n=t.replace(/-\w/g,(function(e){return e[1].toUpperCase()}));return e[n]}return"".concat(e,"-").concat(t)}const Zd=function(e){var t=(0,r.useRef)();function n(t){t&&(t.removeEventListener($d,e),t.removeEventListener(Kd,e))}return r.useEffect((function(){return function(){n(t.current)}}),[]),[function(r){t.current&&t.current!==r&&n(t.current),r&&r!==t.current&&(r.addEventListener($d,e),r.addEventListener(Kd,e),t.current=r)},n]};const Jd=ad()?r.useLayoutEffect:r.useEffect;var ef=[Rd,Dd,Nd,Fd],tf=[Rd,Bd],nf=!1,rf=!0;function of(e){return e===Nd||e===Fd}const af=function(e,t,n){var o=Du(dd(Ld),2),i=o[0],a=o[1],l=function(){var e=r.useRef(null);function t(){eu.cancel(e.current)}return r.useEffect((function(){return function(){t()}}),[]),[function n(r){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;t();var i=eu((function(){o<=1?r({isCanceled:function(){return i!==e.current}}):n(r,o-1)}));e.current=i},t]}(),c=Du(l,2),s=c[0],u=c[1];var d=t?tf:ef;return Jd((function(){if(i!==Ld&&i!==Fd){var e=d.indexOf(i),t=d[e+1],r=n(i);r===nf?a(t,!0):t&&s((function(e){function n(){e.isCanceled()||a(t,!0)}!0===r?n():Promise.resolve(r).then(n)}))}}),[e,i]),r.useEffect((function(){return function(){u()}}),[]),[function(){a(Rd,!0)},i]};function lf(e,t,n,o){var i=o.motionEnter,a=void 0===i||i,l=o.motionAppear,c=void 0===l||l,s=o.motionLeave,u=void 0===s||s,d=o.motionDeadline,f=o.motionLeaveImmediately,p=o.onAppearPrepare,h=o.onEnterPrepare,g=o.onLeavePrepare,v=o.onAppearStart,m=o.onEnterStart,y=o.onLeaveStart,b=o.onAppearActive,x=o.onEnterActive,w=o.onLeaveActive,S=o.onAppearEnd,O=o.onEnterEnd,_=o.onLeaveEnd,C=o.onVisibleChanged,E=Du(dd(),2),P=E[0],M=E[1],k=Du(function(e){var t=id(r.useReducer((function(e){return e+1}),0),2)[1],n=r.useRef(e);return[Ns((function(){return n.current})),Ns((function(e){n.current="function"===typeof e?e(n.current):e,t()}))]}(Ad),2),A=k[0],I=k[1],T=Du(dd(null),2),j=T[0],L=T[1],R=A(),D=(0,r.useRef)(!1),N=(0,r.useRef)(null);function F(){return n()}var B=(0,r.useRef)(!1);function z(){I(Ad),L(null,!0)}var H=Ns((function(e){var t=A();if(t!==Ad){var n=F();if(!e||e.deadline||e.target===n){var r,o=B.current;t===Id&&o?r=null===S||void 0===S?void 0:S(n,e):t===Td&&o?r=null===O||void 0===O?void 0:O(n,e):t===jd&&o&&(r=null===_||void 0===_?void 0:_(n,e)),o&&!1!==r&&z()}}})),W=Du(Zd(H),1)[0],V=function(e){switch(e){case Id:return Tu(Tu(Tu({},Rd,p),Dd,v),Nd,b);case Td:return Tu(Tu(Tu({},Rd,h),Dd,m),Nd,x);case jd:return Tu(Tu(Tu({},Rd,g),Dd,y),Nd,w);default:return{}}},G=r.useMemo((function(){return V(R)}),[R]),Y=Du(af(R,!e,(function(e){if(e===Rd){var t=G[Rd];return t?t(F()):nf}var n;X in G&&L((null===(n=G[X])||void 0===n?void 0:n.call(G,F(),null))||null);return X===Nd&&R!==Ad&&(W(F()),d>0&&(clearTimeout(N.current),N.current=setTimeout((function(){H({deadline:!0})}),d))),X===Bd&&z(),rf})),2),U=Y[0],X=Y[1],q=of(X);B.current=q,Jd((function(){M(t);var n,r=D.current;D.current=!0,!r&&t&&c&&(n=Id),r&&t&&a&&(n=Td),(r&&!t&&u||!r&&f&&!t&&u)&&(n=jd);var o=V(n);n&&(e||o[Rd])?(I(n),U()):I(Ad)}),[t]),(0,r.useEffect)((function(){(R===Id&&!c||R===Td&&!a||R===jd&&!u)&&I(Ad)}),[c,a,u]),(0,r.useEffect)((function(){return function(){D.current=!1,clearTimeout(N.current)}}),[]);var K=r.useRef(!1);(0,r.useEffect)((function(){P&&(K.current=!0),void 0!==P&&R===Ad&&((K.current||P)&&(null===C||void 0===C||C(P)),K.current=!0)}),[P,R]);var $=j;return G[Rd]&&X===Dd&&($=Lu({transition:"none"},$)),[R,X,$,null!==P&&void 0!==P?P:t]}const cf=function(e){var t=e;"object"===Au(e)&&(t=e.transitionSupport);var n=r.forwardRef((function(e,n){var o=e.visible,i=void 0===o||o,a=e.removeOnLeave,l=void 0===a||a,s=e.forceRender,u=e.children,d=e.motionName,f=e.leavedClassName,p=e.eventProps,h=function(e,n){return!(!e.motionName||!t||!1===n)}(e,r.useContext(Vu).motion),g=(0,r.useRef)(),v=(0,r.useRef)();var m=Du(lf(h,i,(function(){try{return g.current instanceof HTMLElement?g.current:zu(v.current)}catch(e){return null}}),e),4),y=m[0],b=m[1],x=m[2],w=m[3],S=r.useRef(w);w&&(S.current=!0);var O,_=r.useCallback((function(e){g.current=e,Mc(n,e)}),[n]),C=Lu(Lu({},p),{},{visible:i});if(u)if(y===Ad)O=w?u(Lu({},C),_):!l&&S.current&&f?u(Lu(Lu({},C),{},{className:f}),_):s||!l&&!f?u(Lu(Lu({},C),{},{style:{display:"none"}}),_):null;else{var E;b===Rd?E="prepare":of(b)?E="active":b===Dd&&(E="start");var P=Qd(d,"".concat(y,"-").concat(E));O=u(Lu(Lu({},C),{},{className:c()(Qd(d,y),Tu(Tu({},P,P&&E),d,"string"===typeof d)),style:x}),_)}else O=null;r.isValidElement(O)&&Ac(O)&&(O.ref||(O=r.cloneElement(O,{ref:_})));return r.createElement(ed,{ref:v},O)}));return n.displayName="CSSMotion",n}(qd);function sf(){return sf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sf.apply(this,arguments)}var uf="add",df="keep",ff="remove",pf="removed";function hf(e){var t;return Lu(Lu({},t=e&&"object"===Au(e)&&"key"in e?e:{key:e}),{},{key:String(t.key)})}function gf(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(hf)}var vf=["component","children","onVisibleChanged","onAllRemoved"],mf=["status"],yf=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];!function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:cf,n=function(e){Ku(o,e);var n=Ju(o);function o(){var e;Yu(this,o);for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return Tu(Zu(e=n.call.apply(n,[this].concat(r))),"state",{keyEntities:[]}),Tu(Zu(e),"removeKey",(function(t){e.setState((function(e){return{keyEntities:e.keyEntities.map((function(e){return e.key!==t?e:Lu(Lu({},e),{},{status:pf})}))}}),(function(){0===e.state.keyEntities.filter((function(e){return e.status!==pf})).length&&e.props.onAllRemoved&&e.props.onAllRemoved()}))})),e}return Xu(o,[{key:"render",value:function(){var e=this,n=this.state.keyEntities,o=this.props,i=o.component,a=o.children,l=o.onVisibleChanged,c=(o.onAllRemoved,Hu(o,vf)),s=i||r.Fragment,u={};return yf.forEach((function(e){u[e]=c[e],delete c[e]})),delete c.keys,r.createElement(s,c,n.map((function(n,o){var i=n.status,c=Hu(n,mf),s=i===uf||i===df;return r.createElement(t,sf({},u,{key:c.key,visible:s,eventProps:c,onVisibleChanged:function(t){null===l||void 0===l||l(t,{key:c.key}),t||e.removeKey(c.key)}}),(function(e,t){return a(Lu(Lu({},e),{},{index:o}),t)}))})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.keys,r=t.keyEntities,o=gf(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=gf(e),a=gf(t);i.forEach((function(e){for(var t=!1,i=r;i<o;i+=1){var l=a[i];if(l.key===e.key){r<i&&(n=n.concat(a.slice(r,i).map((function(e){return Lu(Lu({},e),{},{status:uf})}))),r=i),n.push(Lu(Lu({},l),{},{status:df})),r+=1,t=!0;break}}t||n.push(Lu(Lu({},e),{},{status:ff}))})),r<o&&(n=n.concat(a.slice(r).map((function(e){return Lu(Lu({},e),{},{status:uf})}))));var l={};return n.forEach((function(e){var t=e.key;l[t]=(l[t]||0)+1})),Object.keys(l).filter((function(e){return l[e]>1})).forEach((function(e){(n=n.filter((function(t){var n=t.key,r=t.status;return n!==e||r!==ff}))).forEach((function(t){t.key===e&&(t.status=df)}))})),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!==pf||e.status!==ff}))}}}]),o}(r.Component);Tu(n,"defaultProps",{component:"div"})}(qd);const bf=cf;function xf(){xf=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",l=i.asyncIterator||"@@asyncIterator",c=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 m?t:m,a=Object.create(i.prototype),l=new A(r||[]);return o(a,"_invoke",{value:E(e,n,l)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var f="suspendedStart",p="suspendedYield",h="executing",g="completed",v={};function m(){}function y(){}function b(){}var x={};s(x,a,(function(){return this}));var w=Object.getPrototypeOf,S=w&&w(w(I([])));S&&S!==n&&r.call(S,a)&&(x=S);var O=b.prototype=m.prototype=Object.create(x);function _(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,t){function n(o,i,a,l){var c=d(e[o],e,i);if("throw"!==c.type){var s=c.arg,u=s.value;return u&&"object"==Ec(u)&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,l)}),(function(e){n("throw",e,a,l)})):t.resolve(u).then((function(e){s.value=e,a(s)}),(function(e){return n("throw",e,a,l)}))}l(c.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 E(t,n,r){var o=f;return function(i,a){if(o===h)throw new Error("Generator is already running");if(o===g){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var l=r.delegate;if(l){var c=P(l,r);if(c){if(c===v)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===f)throw o=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var s=d(t,n,r);if("normal"===s.type){if(o=r.done?g:p,s.arg===v)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o=g,r.method="throw",r.arg=s.arg)}}}function P(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,P(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),v;var i=d(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,v;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,v):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}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 k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(M,this),this.reset(!0)}function I(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(Ec(t)+" is not iterable")}return y.prototype=b,o(O,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:y,configurable:!0}),y.displayName=s(b,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,s(e,c,"GeneratorFunction")),e.prototype=Object.create(O),e},t.awrap=function(e){return{__await:e}},_(C.prototype),s(C.prototype,l,(function(){return this})),t.AsyncIterator=C,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new C(u(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},_(O),s(O,c,"Generator"),s(O,a,(function(){return this})),s(O,"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=I,A.prototype={constructor:A,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(k),!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 l.type="throw",l.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],l=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw new 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,v):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),v},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),k(n),v}},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;k(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:I(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),v}},t}function wf(e,t,n,r,o,i,a){try{var l=e[i](a),c=l.value}catch(s){return void n(s)}l.done?t(c):Promise.resolve(c).then(r,o)}function Sf(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){wf(i,r,o,a,l,"next",e)}function l(e){wf(i,r,o,a,l,"throw",e)}a(void 0)}))}}var Of,_f=zs({},Fu),Cf=_f.version,Ef=_f.render,Pf=_f.unmountComponentAtNode;try{Number((Cf||"").split(".")[0])>=18&&(Of=_f.createRoot)}catch(N1){}function Mf(e){var t=_f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&"object"===Ec(t)&&(t.usingClientEntryPoint=e)}var kf="__rc_react_root__";function Af(e,t){Of?function(e,t){Mf(!0);var n=t[kf]||Of(t);Mf(!1),n.render(e),t[kf]=n}(e,t):function(e,t){Ef(e,t)}(e,t)}function If(e){return Tf.apply(this,arguments)}function Tf(){return(Tf=Sf(xf().mark((function e(t){return xf().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve().then((function(){var e;null===(e=t[kf])||void 0===e||e.unmount(),delete t[kf]})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function jf(e){Pf(e)}function Lf(e){return Rf.apply(this,arguments)}function Rf(){return(Rf=Sf(xf().mark((function e(t){return xf().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===Of){e.next=2;break}return e.abrupt("return",If(t));case 2:jf(t);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Df(e){return e&&"#fff"!==e&&"#ffffff"!==e&&"rgb(255, 255, 255)"!==e&&"rgba(255, 255, 255, 1)"!==e&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&"transparent"!==e}function Nf(e){return Number.isNaN(e)?0:e}const Ff=e=>{const{className:t,target:n,component:o}=e,i=r.useRef(null),[a,l]=r.useState(null),[s,u]=r.useState([]),[d,f]=r.useState(0),[p,h]=r.useState(0),[g,v]=r.useState(0),[m,y]=r.useState(0),[b,x]=r.useState(!1),w={left:d,top:p,width:g,height:m,borderRadius:s.map((e=>"".concat(e,"px"))).join(" ")};function S(){const e=getComputedStyle(n);l(function(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return Df(t)?t:Df(n)?n:Df(r)?r:null}(n));const t="static"===e.position,{borderLeftWidth:r,borderTopWidth:o}=e;f(t?n.offsetLeft:Nf(-parseFloat(r))),h(t?n.offsetTop:Nf(-parseFloat(o))),v(n.offsetWidth),y(n.offsetHeight);const{borderTopLeftRadius:i,borderTopRightRadius:a,borderBottomLeftRadius:c,borderBottomRightRadius:s}=e;u([i,a,s,c].map((e=>Nf(parseFloat(e)))))}if(a&&(w["--wave-color"]=a),r.useEffect((()=>{if(n){const e=eu((()=>{S(),x(!0)}));let t;return"undefined"!==typeof ResizeObserver&&(t=new ResizeObserver(S),t.observe(n)),()=>{eu.cancel(e),null===t||void 0===t||t.disconnect()}}}),[]),!b)return null;const O=("Checkbox"===o||"Radio"===o)&&(null===n||void 0===n?void 0:n.classList.contains(ku));return r.createElement(bf,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(e,t)=>{var n;if(t.deadline||"opacity"===t.propertyName){const e=null===(n=i.current)||void 0===n?void 0:n.parentElement;Lf(e).then((()=>{null===e||void 0===e||e.remove()}))}return!1}},((e,n)=>{let{className:o}=e;return r.createElement("div",{ref:kc(i,n),className:c()(t,o,{"wave-quick":O}),style:w})}))},Bf=(e,t)=>{var n;const{component:o}=t;if("Checkbox"===o&&!(null===(n=e.querySelector("input"))||void 0===n?void 0:n.checked))return;const i=document.createElement("div");i.style.position="absolute",i.style.left="0px",i.style.top="0px",null===e||void 0===e||e.insertBefore(i,null===e||void 0===e?void 0:e.firstChild),Af(r.createElement(Ff,Object.assign({},t,{target:e})),i)},zf=(e,t,n)=>{const{wave:o}=r.useContext(f),[,i,a]=wl(),l=Ns((r=>{const l=e.current;if((null===o||void 0===o?void 0:o.disabled)||!l)return;const c=l.querySelector(".".concat(ku))||l,{showEffect:s}=o||{};(s||Bf)(c,{className:t,token:i,component:n,event:r,hashId:a})})),c=r.useRef();return e=>{eu.cancel(c.current),c.current=eu((()=>{l(e)}))}};const Hf=e=>{const{children:t,disabled:n,component:o}=e,{getPrefixCls:i}=(0,r.useContext)(f),a=(0,r.useRef)(null),l=i("wave"),[,s]=Mu(l),u=zf(a,c()(l,s),o);if(r.useEffect((()=>{const e=a.current;if(!e||1!==e.nodeType||n)return;const t=t=>{!Eu(t.target)||!e.getAttribute||e.getAttribute("disabled")||e.disabled||e.className.includes("disabled")||e.className.includes("-leave")||u(t)};return e.addEventListener("click",t,!0),()=>{e.removeEventListener("click",t,!0)}}),[n]),!r.isValidElement(t))return null!==t&&void 0!==t?t:null;return Cu(t,{ref:Ac(t)?kc(t.ref,a):a})};var Wf=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 Vf=r.createContext(void 0),Gf=e=>{const{getPrefixCls:t,direction:n}=r.useContext(f),{prefixCls:o,size:i,className:a}=e,l=Wf(e,["prefixCls","size","className"]),s=t("btn-group",o),[,,u]=wl();let d="";switch(i){case"large":d="lg";break;case"small":d="sm"}const p=c()(s,{["".concat(s,"-").concat(d)]:d,["".concat(s,"-rtl")]:"rtl"===n},a,u);return r.createElement(Vf.Provider,{value:i},r.createElement("div",Object.assign({},l,{className:p})))},Yf=/^[\u4E00-\u9FA5]{2}$/,Uf=Yf.test.bind(Yf);function Xf(e){return"danger"===e?{danger:!0}:{type:e}}function qf(e){return"string"===typeof e}function Kf(e){return"text"===e||"link"===e}function $f(e,t){let n=!1;const o=[];return r.Children.forEach(e,(e=>{const t=typeof e,r="string"===t||"number"===t;if(n&&r){const t=o.length-1,n=o[t];o[t]="".concat(n).concat(e)}else o.push(e);n=r})),r.Children.map(o,(e=>function(e,t){if(null===e||void 0===e)return;const n=t?" ":"";return"string"!==typeof e&&"number"!==typeof e&&qf(e.type)&&Uf(e.props.children)?Cu(e,{children:e.props.children.split("").join(n)}):qf(e)?Uf(e)?r.createElement("span",null,e.split("").join(n)):r.createElement("span",null,e):Ou(e)?r.createElement("span",null,e):e}(e,t)))}const Qf=(0,r.forwardRef)(((e,t)=>{const{className:n,style:o,children:i,prefixCls:a}=e,l=c()("".concat(a,"-icon"),n);return r.createElement("span",{ref:t,className:l,style:o},i)})),Zf=Qf;const Jf={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};var ep=function(e,t){return r.createElement(xs,qc({},e,{ref:t,icon:Jf}))};const tp=r.forwardRef(ep),np=(0,r.forwardRef)(((e,t)=>{const{prefixCls:n,className:o,style:i,iconClassName:a}=e,l=c()("".concat(n,"-loading-icon"),o);return r.createElement(Zf,{prefixCls:n,className:l,style:i,ref:t},r.createElement(tp,{className:a}))})),rp=()=>({width:0,opacity:0,transform:"scale(0)"}),op=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),ip=e=>{const{prefixCls:t,loading:n,existIcon:o,className:i,style:a}=e,l=!!n;return o?r.createElement(np,{prefixCls:t,className:i,style:a}):r.createElement(bf,{visible:l,motionName:"".concat(t,"-loading-icon-motion"),motionLeave:l,removeOnLeave:!0,onAppearStart:rp,onAppearActive:op,onEnterStart:rp,onEnterActive:op,onLeaveStart:op,onLeaveActive:rp},((e,n)=>{let{className:o,style:l}=e;return r.createElement(np,{prefixCls:t,className:i,style:Object.assign(Object.assign({},a),l),ref:n,iconClassName:o})}))},ap=(e,t)=>({["> span, > ".concat(e)]:{"&:not(:last-child)":{["&, & > ".concat(e)]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{["&, & > ".concat(e)]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),lp=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:o,colorErrorHover:i}=e;return{["".concat(t,"-group")]:[{position:"relative",display:"inline-flex",["> span, > ".concat(t)]:{"&:not(:last-child)":{["&, & > ".concat(t)]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),["&, & > ".concat(t)]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},["".concat(t,"-icon-only")]:{fontSize:n}},ap("".concat(t,"-primary"),o),ap("".concat(t,"-danger"),i)]}};function cp(e){return cp="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},cp(e)}function sp(e){var t=function(e,t){if("object"!=cp(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=cp(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==cp(t)?t:t+""}function up(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,sp(r.key),r)}}function dp(e){return dp="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},dp(e)}function fp(e){var t=function(e,t){if("object"!=dp(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=dp(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==dp(t)?t:t+""}function pp(e,t,n){return(t=fp(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const hp=Math.round;function gp(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map((e=>parseFloat(e)));for(let o=0;o<3;o+=1)r[o]=t(r[o]||0,n[o]||"",o);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const vp=(e,t,n)=>0===n?e:e/100;function mp(e,t){const n=t||255;return e>n?n:e<0?0:e}class yp{constructor(e){function t(t){return t[0]in e&&t[1]in e&&t[2]in e}if(pp(this,"isValid",!0),pp(this,"r",0),pp(this,"g",0),pp(this,"b",0),pp(this,"a",1),pp(this,"_h",void 0),pp(this,"_s",void 0),pp(this,"_l",void 0),pp(this,"_v",void 0),pp(this,"_max",void 0),pp(this,"_min",void 0),pp(this,"_brightness",void 0),e)if("string"===typeof e){const n=e.trim();function r(e){return n.startsWith(e)}/^#?[A-F\d]{3,8}$/i.test(n)?this.fromHexString(n):r("rgb")?this.fromRgbString(n):r("hsl")?this.fromHslString(n):(r("hsv")||r("hsb"))&&this.fromHsvString(n)}else if(e instanceof yp)this.r=e.r,this.g=e.g,this.b=e.b,this.a=e.a,this._h=e._h,this._s=e._s,this._l=e._l,this._v=e._v;else if(t("rgb"))this.r=mp(e.r),this.g=mp(e.g),this.b=mp(e.b),this.a="number"===typeof e.a?mp(e.a,1):1;else if(t("hsl"))this.fromHsl(e);else{if(!t("hsv"))throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(e));this.fromHsv(e)}else;}setR(e){return this._sc("r",e)}setG(e){return this._sc("g",e)}setB(e){return this._sc("b",e)}setA(e){return this._sc("a",e,1)}setHue(e){const t=this.toHsv();return t.h=e,this._c(t)}getLuminance(){function e(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}return.2126*e(this.r)+.7152*e(this.g)+.0722*e(this.b)}getHue(){if("undefined"===typeof this._h){const e=this.getMax()-this.getMin();this._h=0===e?0:hp(60*(this.r===this.getMax()?(this.g-this.b)/e+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/e+2:(this.r-this.g)/e+4))}return this._h}getSaturation(){if("undefined"===typeof this._s){const e=this.getMax()-this.getMin();this._s=0===e?0:e/this.getMax()}return this._s}getLightness(){return"undefined"===typeof this._l&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return"undefined"===typeof this._v&&(this._v=this.getMax()/255),this._v}getBrightness(){return"undefined"===typeof this._brightness&&(this._brightness=(299*this.r+587*this.g+114*this.b)/1e3),this._brightness}darken(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10;const t=this.getHue(),n=this.getSaturation();let r=this.getLightness()-e/100;return r<0&&(r=0),this._c({h:t,s:n,l:r,a:this.a})}lighten(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10;const t=this.getHue(),n=this.getSaturation();let r=this.getLightness()+e/100;return r>1&&(r=1),this._c({h:t,s:n,l:r,a:this.a})}mix(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50;const n=this._c(e),r=t/100,o=e=>(n[e]-this[e])*r+this[e],i={r:hp(o("r")),g:hp(o("g")),b:hp(o("b")),a:hp(100*o("a"))/100};return this._c(i)}tint(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10;return this.mix({r:255,g:255,b:255,a:1},e)}shade(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10;return this.mix({r:0,g:0,b:0,a:1},e)}onBackground(e){const t=this._c(e),n=this.a+t.a*(1-this.a),r=e=>hp((this[e]*this.a+t[e]*t.a*(1-this.a))/n);return this._c({r:r("r"),g:r("g"),b:r("b"),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}clone(){return this._c(this)}toHexString(){let e="#";const t=(this.r||0).toString(16);e+=2===t.length?t:"0"+t;const n=(this.g||0).toString(16);e+=2===n.length?n:"0"+n;const r=(this.b||0).toString(16);if(e+=2===r.length?r:"0"+r,"number"===typeof this.a&&this.a>=0&&this.a<1){const t=hp(255*this.a).toString(16);e+=2===t.length?t:"0"+t}return e}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const e=this.getHue(),t=hp(100*this.getSaturation()),n=hp(100*this.getLightness());return 1!==this.a?"hsla(".concat(e,",").concat(t,"%,").concat(n,"%,").concat(this.a,")"):"hsl(".concat(e,",").concat(t,"%,").concat(n,"%)")}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return 1!==this.a?"rgba(".concat(this.r,",").concat(this.g,",").concat(this.b,",").concat(this.a,")"):"rgb(".concat(this.r,",").concat(this.g,",").concat(this.b,")")}toString(){return this.toRgbString()}_sc(e,t,n){const r=this.clone();return r[e]=mp(t,n),r}_c(e){return new this.constructor(e)}getMax(){return"undefined"===typeof this._max&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return"undefined"===typeof this._min&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(e){const t=e.replace("#","");function n(e,n){return parseInt(t[e]+t[n||e],16)}t.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=t[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=t[6]?n(6,7)/255:1)}fromHsl(e){let{h:t,s:n,l:r,a:o}=e;if(this._h=t%360,this._s=n,this._l=r,this.a="number"===typeof o?o:1,n<=0){const e=hp(255*r);this.r=e,this.g=e,this.b=e}let i=0,a=0,l=0;const c=t/60,s=(1-Math.abs(2*r-1))*n,u=s*(1-Math.abs(c%2-1));c>=0&&c<1?(i=s,a=u):c>=1&&c<2?(i=u,a=s):c>=2&&c<3?(a=s,l=u):c>=3&&c<4?(a=u,l=s):c>=4&&c<5?(i=u,l=s):c>=5&&c<6&&(i=s,l=u);const d=r-s/2;this.r=hp(255*(i+d)),this.g=hp(255*(a+d)),this.b=hp(255*(l+d))}fromHsv(e){let{h:t,s:n,v:r,a:o}=e;this._h=t%360,this._s=n,this._v=r,this.a="number"===typeof o?o:1;const i=hp(255*r);if(this.r=i,this.g=i,this.b=i,n<=0)return;const a=t/60,l=Math.floor(a),c=a-l,s=hp(r*(1-n)*255),u=hp(r*(1-n*c)*255),d=hp(r*(1-n*(1-c))*255);switch(l){case 0:this.g=d,this.b=s;break;case 1:this.r=u,this.b=s;break;case 2:this.r=s,this.b=d;break;case 3:this.r=s,this.g=u;break;case 4:this.r=d,this.g=s;break;default:this.g=s,this.b=u}}fromHsvString(e){const t=gp(e,vp);this.fromHsv({h:t[0],s:t[1],v:t[2],a:t[3]})}fromHslString(e){const t=gp(e,vp);this.fromHsl({h:t[0],s:t[1],l:t[2],a:t[3]})}fromRgbString(e){const t=gp(e,((e,t)=>t.includes("%")?hp(e/100*255):e));this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}}var bp=["b"],xp=["v"],wp=function(e){return Math.round(Number(e||0))},Sp=function(e){j(n,e);var t=D(n);function n(e){return M(this,n),t.call(this,function(e){if(e instanceof yp)return e;if(e&&"object"===v(e)&&"h"in e&&"b"in e){var t=e,n=t.b;return O(O({},g(t,bp)),{},{v:n})}return"string"===typeof e&&/hsb/.test(e)?e.replace(/hsb/,"hsv"):e}(e))}return A(n,[{key:"toHsbString",value:function(){var e=this.toHsb(),t=wp(100*e.s),n=wp(100*e.b),r=wp(e.h),o=e.a,i="hsb(".concat(r,", ").concat(t,"%, ").concat(n,"%)"),a="hsba(".concat(r,", ").concat(t,"%, ").concat(n,"%, ").concat(o.toFixed(0===o?0:2),")");return 1===o?i:a}},{key:"toHsb",value:function(){var e=this.toHsv(),t=e.v;return O(O({},g(e,xp)),{},{b:t,a:this.a})}}]),n}(yp),Op=function(e){return e instanceof Sp?e:new Sp(e)};Op("#1677ff");let _p=function(){return e=function e(t){var n;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.cleared=!1,t instanceof e)return this.metaColor=t.metaColor.clone(),this.colors=null===(n=t.colors)||void 0===n?void 0:n.map((t=>({color:new e(t.color),percent:t.percent}))),void(this.cleared=t.cleared);const r=Array.isArray(t);r&&t.length?(this.colors=t.map((t=>{let{color:n,percent:r}=t;return{color:new e(n),percent:r}})),this.metaColor=new Sp(this.colors[0].color.metaColor)):this.metaColor=new Sp(r?"":t),(!t||r&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)},(t=[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return e=this.toHexString(),t=this.metaColor.a<1,e?((e,t)=>(null===e||void 0===e?void 0:e.replace(/[^\w/]/g,"").slice(0,t?8:6))||"")(e,t):"";var e,t}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){const{colors:e}=this;if(e){const t=e.map((e=>"".concat(e.color.toRgbString()," ").concat(e.percent,"%"))).join(", ");return"linear-gradient(90deg, ".concat(t,")")}return this.metaColor.toRgbString()}},{key:"equals",value:function(e){return!(!e||this.isGradient()!==e.isGradient())&&(this.isGradient()?this.colors.length===e.colors.length&&this.colors.every(((t,n)=>{const r=e.colors[n];return t.percent===r.percent&&t.color.equals(r.color)})):this.toHexString()===e.toHexString())}}])&&up(e.prototype,t),n&&up(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();const Cp=(e,t)=>{const{r:n,g:r,b:o,a:i}=e.toRgb(),a=new Sp(e.toRgbString()).onBackground(t).toHsv();return i<=.5?a.v>.5:.299*n+.587*r+.114*o>192},Ep=e=>{const{paddingInline:t,onlyIconSize:n,paddingBlock:r}=e;return Ui(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:r,buttonIconOnlyFontSize:n})},Pp=e=>{var t,n,r,o,i,a;const l=null!==(t=e.contentFontSize)&&void 0!==t?t:e.fontSize,c=null!==(n=e.contentFontSizeSM)&&void 0!==n?n:e.fontSize,s=null!==(r=e.contentFontSizeLG)&&void 0!==r?r:e.fontSizeLG,u=null!==(o=e.contentLineHeight)&&void 0!==o?o:nl(l),d=null!==(i=e.contentLineHeightSM)&&void 0!==i?i:nl(c),f=null!==(a=e.contentLineHeightLG)&&void 0!==a?a:nl(s),p=Cp(new _p(e.colorBgSolid),"#fff")?"#000":"#fff";return{fontWeight:400,defaultShadow:"0 ".concat(e.controlOutlineWidth,"px 0 ").concat(e.controlTmpOutline),primaryShadow:"0 ".concat(e.controlOutlineWidth,"px 0 ").concat(e.controlOutline),dangerShadow:"0 ".concat(e.controlOutlineWidth,"px 0 ").concat(e.colorErrorOutline),primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:e.fontSizeLG,onlyIconSizeSM:e.fontSizeLG-2,onlyIconSizeLG:e.fontSizeLG+2,groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:p,contentFontSize:l,contentFontSizeSM:c,contentFontSizeLG:s,contentLineHeight:u,contentLineHeightSM:d,contentLineHeightLG:f,paddingBlock:Math.max((e.controlHeight-l*u)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-c*d)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-s*f)/2-e.lineWidth,0)}},Mp=e=>{const{componentCls:t,iconCls:n,fontWeight:r}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:"".concat(yn(e.lineWidth)," ").concat(e.lineType," transparent"),cursor:"pointer",transition:"all ".concat(e.motionDurationMid," ").concat(e.motionEaseInOut),userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-flex"},["".concat(t,"-icon")]:{lineHeight:1},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},Kr(e)),["&".concat(t,"-two-chinese-chars::first-letter")]:{letterSpacing:"0.34em"},["&".concat(t,"-two-chinese-chars > *:not(").concat(n,")")]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},"&-icon-end":{flexDirection:"row-reverse"}}}},kp=(e,t,n)=>({["&:not(:disabled):not(".concat(e,"-disabled)")]:{"&:hover":t,"&:active":n}}),Ap=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),Ip=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),Tp=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),jp=(e,t,n,r,o,i,a,l)=>({["&".concat(e,"-background-ghost")]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},kp(e,Object.assign({background:t},a),Object.assign({background:t},l))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:i||void 0}})}),Lp=e=>({["&:disabled, &".concat(e.componentCls,"-disabled")]:Object.assign({},Tp(e))}),Rp=e=>({["&:disabled, &".concat(e.componentCls,"-disabled")]:{cursor:"not-allowed",color:e.colorTextDisabled}}),Dp=(e,t,n,r)=>{const o=r&&["link","text"].includes(r)?Rp:Lp;return Object.assign(Object.assign({},o(e)),kp(e.componentCls,t,n))},Np=(e,t,n,r,o)=>({["&".concat(e.componentCls,"-variant-solid")]:Object.assign({color:t,background:n},Dp(e,r,o))}),Fp=(e,t,n,r,o)=>({["&".concat(e.componentCls,"-variant-outlined, &").concat(e.componentCls,"-variant-dashed")]:Object.assign({borderColor:t,background:n},Dp(e,r,o))}),Bp=e=>({["&".concat(e.componentCls,"-variant-dashed")]:{borderStyle:"dashed"}}),zp=(e,t,n,r)=>({["&".concat(e.componentCls,"-variant-filled")]:Object.assign({boxShadow:"none",background:t},Dp(e,n,r))}),Hp=(e,t,n,r,o)=>({["&".concat(e.componentCls,"-variant-").concat(n)]:Object.assign({color:t,boxShadow:"none"},Dp(e,r,o,n))}),Wp=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},Np(e,e.solidTextColor,e.colorBgSolid,{background:e.colorBgSolidHover},{background:e.colorBgSolidActive})),Bp(e)),zp(e,e.colorFillTertiary,{background:e.colorFillSecondary},{background:e.colorFill})),Hp(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),jp(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),Vp=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},Fp(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),Bp(e)),zp(e,e.colorPrimaryBg,{background:e.colorPrimaryBgHover},{background:e.colorPrimaryBorder})),Hp(e,e.colorLink,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),jp(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),Gp=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},Np(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),Fp(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Bp(e)),zp(e,e.colorErrorBg,{background:e.colorErrorBgFilledHover},{background:e.colorErrorBgActive})),Hp(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),Hp(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),jp(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Yp=e=>{const{componentCls:t}=e;return{["".concat(t,"-color-default")]:Wp(e),["".concat(t,"-color-primary")]:Vp(e),["".concat(t,"-color-dangerous")]:Gp(e)}},Up=e=>Object.assign(Object.assign(Object.assign(Object.assign({},Fp(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),Hp(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),Np(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),Hp(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),Xp=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:o,lineHeight:i,borderRadius:a,buttonPaddingHorizontal:l,iconCls:c,buttonPaddingVertical:s}=e,u="".concat(n,"-icon-only");return[{[t]:{fontSize:o,lineHeight:i,height:r,padding:"".concat(yn(s)," ").concat(yn(l)),borderRadius:a,["&".concat(u)]:{width:r,paddingInline:0,["&".concat(n,"-compact-item")]:{flex:"none"},["&".concat(n,"-round")]:{width:"auto"},[c]:{fontSize:e.buttonIconOnlyFontSize}},["&".concat(n,"-loading")]:{opacity:e.opacityLoading,cursor:"default"},["".concat(n,"-loading-icon")]:{transition:"width ".concat(e.motionDurationSlow," ").concat(e.motionEaseInOut,", opacity ").concat(e.motionDurationSlow," ").concat(e.motionEaseInOut)}}},{["".concat(n).concat(n,"-circle").concat(t)]:Ap(e)},{["".concat(n).concat(n,"-round").concat(t)]:Ip(e)}]},qp=e=>{const t=Ui(e,{fontSize:e.contentFontSize,lineHeight:e.contentLineHeight});return Xp(t,e.componentCls)},Kp=e=>{const t=Ui(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,lineHeight:e.contentLineHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:e.paddingBlockSM,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return Xp(t,"".concat(e.componentCls,"-sm"))},$p=e=>{const t=Ui(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,lineHeight:e.contentLineHeightLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:e.paddingBlockLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return Xp(t,"".concat(e.componentCls,"-lg"))},Qp=e=>{const{componentCls:t}=e;return{[t]:{["&".concat(t,"-block")]:{width:"100%"}}}},Zp=Ol("Button",(e=>{const t=Ep(e);return[Mp(t),qp(t),Kp(t),$p(t),Qp(t),Yp(t),Up(t),lp(t)]}),Pp,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function Jp(e,t){return{["&-item:not(".concat(t,"-last-item)")]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function eh(e){const t="".concat(e.componentCls,"-compact-vertical");return{[t]:Object.assign(Object.assign({},Jp(e,t)),(n=e.componentCls,r=t,{["&-item:not(".concat(r,"-first-item):not(").concat(r,"-last-item)")]:{borderRadius:0},["&-item".concat(r,"-first-item:not(").concat(r,"-last-item)")]:{["&, &".concat(n,"-sm, &").concat(n,"-lg")]:{borderEndEndRadius:0,borderEndStartRadius:0}},["&-item".concat(r,"-last-item:not(").concat(r,"-first-item)")]:{["&, &".concat(n,"-sm, &").concat(n,"-lg")]:{borderStartStartRadius:0,borderStartEndRadius:0}}}))};var n,r}const th=e=>{const{componentCls:t,calc:n}=e;return{[t]:{["&-compact-item".concat(t,"-primary")]:{["&:not([disabled]) + ".concat(t,"-compact-item").concat(t,"-primary:not([disabled])")]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:e.lineWidth,height:"calc(100% + ".concat(yn(e.lineWidth)," * 2)"),backgroundColor:e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{["&".concat(t,"-primary")]:{["&:not([disabled]) + ".concat(t,"-compact-vertical-item").concat(t,"-primary:not([disabled])")]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:"calc(100% + ".concat(yn(e.lineWidth)," * 2)"),height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},nh=Cl(["Button","compact"],(e=>{const t=Ep(e);return[Jr(t),eh(t),th(t)]}),Pp);var rh=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 oh={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["primary","link"],text:["default","text"]},ih=r.forwardRef(((e,t)=>{var n,o,i,a;const{loading:l=!1,prefixCls:s,color:u,variant:d,type:p,danger:h=!1,shape:g="default",size:v,styles:m,disabled:y,className:b,rootClassName:x,children:w,icon:S,iconPosition:O="start",ghost:_=!1,block:C=!1,htmlType:E="button",classNames:P,style:M={},autoInsertSpace:k}=e,A=rh(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace"]),I=p||"default",[T,j]=(0,r.useMemo)((()=>{if(u&&d)return[u,d];const e=oh[I]||[];return h?["danger",e[1]]:e}),[p,u,d,h]),L="danger"===T?"dangerous":T,{getPrefixCls:R,direction:D,button:N}=(0,r.useContext)(f),F=null===(n=null!==k&&void 0!==k?k:null===N||void 0===N?void 0:N.autoInsertSpace)||void 0===n||n,B=R("btn",s),[z,H,W]=Zp(B),V=(0,r.useContext)(Ms),G=null!==y&&void 0!==y?y:V,Y=(0,r.useContext)(Vf),U=(0,r.useMemo)((()=>function(e){if("object"===typeof e&&e){let t=null===e||void 0===e?void 0:e.delay;return t=Number.isNaN(t)||"number"!==typeof t?0:t,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}(l)),[l]),[X,q]=(0,r.useState)(U.loading),[K,$]=(0,r.useState)(!1),Q=kc(t,(0,r.createRef)()),Z=1===r.Children.count(w)&&!S&&!Kf(j);(0,r.useEffect)((()=>{let e=null;return U.delay>0?e=setTimeout((()=>{e=null,q(!0)}),U.delay):q(U.loading),function(){e&&(clearTimeout(e),e=null)}}),[U]),(0,r.useEffect)((()=>{if(!Q||!Q.current||!F)return;const e=Q.current.textContent;Z&&Uf(e)?K||$(!0):K&&$(!1)}),[Q]);const J=r.useCallback((t=>{var n;X||G?t.preventDefault():null===(n=e.onClick)||void 0===n||n.call(e,t)}),[e.onClick,X,G]);const{compactSize:ee,compactItemClassnames:te}=Vc(B,D),ne={large:"lg",small:"sm",middle:void 0},re=Dc((e=>{var t,n;return null!==(n=null!==(t=null!==v&&void 0!==v?v:ee)&&void 0!==t?t:Y)&&void 0!==n?n:e})),oe=re&&null!==(o=ne[re])&&void 0!==o?o:"",ie=X?"loading":S,ae=hu(A,["navigate"]),le=c()(B,H,W,{["".concat(B,"-").concat(g)]:"default"!==g&&g,["".concat(B,"-").concat(I)]:I,["".concat(B,"-dangerous")]:h,["".concat(B,"-color-").concat(L)]:L,["".concat(B,"-variant-").concat(j)]:j,["".concat(B,"-").concat(oe)]:oe,["".concat(B,"-icon-only")]:!w&&0!==w&&!!ie,["".concat(B,"-background-ghost")]:_&&!Kf(j),["".concat(B,"-loading")]:X,["".concat(B,"-two-chinese-chars")]:K&&F&&!X,["".concat(B,"-block")]:C,["".concat(B,"-rtl")]:"rtl"===D,["".concat(B,"-icon-end")]:"end"===O},te,b,x,null===N||void 0===N?void 0:N.className),ce=Object.assign(Object.assign({},null===N||void 0===N?void 0:N.style),M),se=c()(null===P||void 0===P?void 0:P.icon,null===(i=null===N||void 0===N?void 0:N.classNames)||void 0===i?void 0:i.icon),ue=Object.assign(Object.assign({},(null===m||void 0===m?void 0:m.icon)||{}),(null===(a=null===N||void 0===N?void 0:N.styles)||void 0===a?void 0:a.icon)||{}),de=S&&!X?r.createElement(Zf,{prefixCls:B,className:se,style:ue},S):r.createElement(ip,{existIcon:!!S,prefixCls:B,loading:X}),fe=w||0===w?$f(w,Z&&F):null;if(void 0!==ae.href)return z(r.createElement("a",Object.assign({},ae,{className:c()(le,{["".concat(B,"-disabled")]:G}),href:G?void 0:ae.href,style:ce,onClick:J,ref:Q,tabIndex:G?-1:0}),de,fe));let pe=r.createElement("button",Object.assign({},A,{type:E,className:le,style:ce,onClick:J,disabled:G,ref:Q}),de,fe,!!te&&r.createElement(nh,{key:"compact",prefixCls:B}));return Kf(j)||(pe=r.createElement(Hf,{component:"Button",disabled:X},pe)),z(pe)})),ah=ih;ah.Group=Gf,ah.__ANT_BUTTON=!0;const lh=ah;var ch=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 sh=r.forwardRef(((e,t)=>{const{prefixCls:n,inputPrefixCls:o,className:i,size:a,suffix:l,enterButton:s=!1,addonAfter:u,loading:d,disabled:p,onSearch:h,onChange:g,onCompositionStart:v,onCompositionEnd:m}=e,y=ch(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:b,direction:x}=r.useContext(f),w=r.useRef(!1),S=b("input-search",n),O=b("input",o),{compactSize:_}=Vc(S,x),C=Dc((e=>{var t;return null!==(t=null!==a&&void 0!==a?a:_)&&void 0!==t?t:e})),E=r.useRef(null),P=e=>{var t;document.activeElement===(null===(t=E.current)||void 0===t?void 0:t.input)&&e.preventDefault()},M=e=>{var t,n;h&&h(null===(n=null===(t=E.current)||void 0===t?void 0:t.input)||void 0===n?void 0:n.value,e,{source:"input"})},k="boolean"===typeof s?r.createElement(Su,null):null,A="".concat(S,"-button");let I;const T=s||{},j=T.type&&!0===T.type.__ANT_BUTTON;I=j||"button"===T.type?Cu(T,Object.assign({onMouseDown:P,onClick:e=>{var t,n;null===(n=null===(t=null===T||void 0===T?void 0:T.props)||void 0===t?void 0:t.onClick)||void 0===n||n.call(t,e),M(e)},key:"enterButton"},j?{className:A,size:C}:{})):r.createElement(lh,{className:A,type:s?"primary":void 0,size:C,disabled:p,key:"enterButton",onMouseDown:P,onClick:M,loading:d,icon:k},s),u&&(I=[I,Cu(u,{key:"addonAfter"})]);const L=c()(S,{["".concat(S,"-rtl")]:"rtl"===x,["".concat(S,"-").concat(C)]:!!C,["".concat(S,"-with-button")]:!!s},i);return r.createElement(Ls,Object.assign({ref:kc(E,t),onPressEnter:e=>{w.current||d||M(e)}},y,{size:C,onCompositionStart:e=>{w.current=!0,null===v||void 0===v||v(e)},onCompositionEnd:e=>{w.current=!1,null===m||void 0===m||m(e)},prefixCls:O,addonAfter:I,suffix:l,onChange:e=>{(null===e||void 0===e?void 0:e.target)&&"click"===e.type&&h&&h(e.target.value,e,{source:"clear"}),null===g||void 0===g||g(e)},className:L,disabled:p}))}));const uh=sh;function dh(e,t,n){var r=t.cloneNode(!0),o=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,"number"===typeof t.selectionStart&&"number"===typeof t.selectionEnd&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),r.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},o}function fh(e,t,n,r){if(n){var o=t;"click"!==t.type?"file"===e.type||void 0===r?n(o):n(o=dh(t,e,r)):n(o=dh(t,e,""))}}var ph=r.forwardRef((function(e,t){var n,o,i=e.inputElement,a=e.children,l=e.prefixCls,s=e.prefix,u=e.suffix,d=e.addonBefore,f=e.addonAfter,p=e.className,g=e.style,m=e.disabled,y=e.readOnly,b=e.focused,x=e.triggerFocus,S=e.allowClear,_=e.value,C=e.handleReset,E=e.hidden,P=e.classes,M=e.classNames,k=e.dataAttrs,A=e.styles,I=e.components,T=e.onClear,j=null!==a&&void 0!==a?a:i,L=(null===I||void 0===I?void 0:I.affixWrapper)||"span",R=(null===I||void 0===I?void 0:I.groupWrapper)||"span",D=(null===I||void 0===I?void 0:I.wrapper)||"span",N=(null===I||void 0===I?void 0:I.groupAddon)||"span",F=(0,r.useRef)(null),B=function(e){return!!(e.prefix||e.suffix||e.allowClear)}(e),z=(0,r.cloneElement)(j,{value:_,className:c()(j.props.className,!B&&(null===M||void 0===M?void 0:M.variant))||null}),H=(0,r.useRef)(null);if(r.useImperativeHandle(t,(function(){return{nativeElement:H.current||F.current}})),B){var W,V=null;if(S){var G,Y=!m&&!y&&_,U="".concat(l,"-clear-icon"),X="object"===v(S)&&null!==S&&void 0!==S&&S.clearIcon?S.clearIcon:"\u2716";V=r.createElement("span",{onClick:function(e){null===C||void 0===C||C(e),null===T||void 0===T||T()},onMouseDown:function(e){return e.preventDefault()},className:c()(U,(G={},w(G,"".concat(U,"-hidden"),!Y),w(G,"".concat(U,"-has-suffix"),!!u),G)),role:"button",tabIndex:-1},X)}var q="".concat(l,"-affix-wrapper"),K=c()(q,(w(W={},"".concat(l,"-disabled"),m),w(W,"".concat(q,"-disabled"),m),w(W,"".concat(q,"-focused"),b),w(W,"".concat(q,"-readonly"),y),w(W,"".concat(q,"-input-with-clear-btn"),u&&S&&_),W),null===P||void 0===P?void 0:P.affixWrapper,null===M||void 0===M?void 0:M.affixWrapper,null===M||void 0===M?void 0:M.variant),$=(u||S)&&r.createElement("span",{className:c()("".concat(l,"-suffix"),null===M||void 0===M?void 0:M.suffix),style:null===A||void 0===A?void 0:A.suffix},V,u);z=r.createElement(L,h({className:K,style:null===A||void 0===A?void 0:A.affixWrapper,onClick:function(e){var t;null!==(t=F.current)&&void 0!==t&&t.contains(e.target)&&(null===x||void 0===x||x())}},null===k||void 0===k?void 0:k.affixWrapper,{ref:F}),s&&r.createElement("span",{className:c()("".concat(l,"-prefix"),null===M||void 0===M?void 0:M.prefix),style:null===A||void 0===A?void 0:A.prefix},s),z,$)}if(function(e){return!(!e.addonBefore&&!e.addonAfter)}(e)){var Q="".concat(l,"-group"),Z="".concat(Q,"-addon"),J="".concat(Q,"-wrapper"),ee=c()("".concat(l,"-wrapper"),Q,null===P||void 0===P?void 0:P.wrapper,null===M||void 0===M?void 0:M.wrapper),te=c()(J,w({},"".concat(J,"-disabled"),m),null===P||void 0===P?void 0:P.group,null===M||void 0===M?void 0:M.groupWrapper);z=r.createElement(R,{className:te,ref:H},r.createElement(D,{className:ee},d&&r.createElement(N,{className:Z},d),z,f&&r.createElement(N,{className:Z},f)))}return r.cloneElement(z,{className:c()(null===(n=z.props)||void 0===n?void 0:n.className,p)||null,style:O(O({},null===(o=z.props)||void 0===o?void 0:o.style),g),hidden:E})}));const hh=ph;var gh=["show"];function vh(e){return e instanceof HTMLElement||e instanceof SVGElement}function mh(e){return vh(e)?e:e instanceof r.Component?Nu.findDOMNode(e):null}var yh=r.createContext(null);var bh=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}()}(),xh="undefined"!==typeof window&&"undefined"!==typeof document&&window.document===document,wh="undefined"!==typeof 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")(),Sh="function"===typeof requestAnimationFrame?requestAnimationFrame.bind(wh):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var Oh=["top","right","bottom","left","width","height","size","weight"],_h="undefined"!==typeof MutationObserver,Ch=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,o=0;function i(){n&&(n=!1,e()),r&&l()}function a(){Sh(i)}function l(){var e=Date.now();if(n){if(e-o<2)return;r=!0}else n=!0,r=!1,setTimeout(a,t);o=e}return l}(this.refresh.bind(this),20)}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(){xh&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),_h?(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(){xh&&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;Oh.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}(),Eh=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},Ph=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||wh},Mh=Lh(0,0,0,0);function kh(e){return parseFloat(e)||0}function Ah(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+kh(e["border-"+n+"-width"])}),0)}function Ih(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return Mh;var r=Ph(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]=kh(i)}return t}(r),i=o.left+o.right,a=o.top+o.bottom,l=kh(r.width),c=kh(r.height);if("border-box"===r.boxSizing&&(Math.round(l+i)!==t&&(l-=Ah(r,"left","right")+i),Math.round(c+a)!==n&&(c-=Ah(r,"top","bottom")+a)),!function(e){return e===Ph(e).document.documentElement}(e)){var s=Math.round(l+i)-t,u=Math.round(c+a)-n;1!==Math.abs(s)&&(l-=s),1!==Math.abs(u)&&(c-=u)}return Lh(o.left,o.top,l,c)}var Th="undefined"!==typeof SVGGraphicsElement?function(e){return e instanceof Ph(e).SVGGraphicsElement}:function(e){return e instanceof Ph(e).SVGElement&&"function"===typeof e.getBBox};function jh(e){return xh?Th(e)?function(e){var t=e.getBBox();return Lh(0,0,t.width,t.height)}(e):Ih(e):Mh}function Lh(e,t,n,r){return{x:e,y:t,width:n,height:r}}var Rh=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Lh(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=jh(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}(),Dh=function(e,t){var n=function(e){var t=e.x,n=e.y,r=e.width,o=e.height,i="undefined"!==typeof DOMRectReadOnly?DOMRectReadOnly:Object,a=Object.create(i.prototype);return Eh(a,{x:t,y:n,width:r,height:o,top:n,right:t+r,bottom:o+n,left:t}),a}(t);Eh(this,{target:e,contentRect:n})},Nh=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new bh,"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 Ph(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new Rh(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 Ph(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 Dh(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}(),Fh="undefined"!==typeof WeakMap?new WeakMap:new bh,Bh=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=Ch.getInstance(),r=new Nh(t,n,this);Fh.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){Bh.prototype[e]=function(){var t;return(t=Fh.get(this))[e].apply(t,arguments)}}));const zh="undefined"!==typeof wh.ResizeObserver?wh.ResizeObserver:Bh;var Hh=new Map;var Wh=new zh((function(e){e.forEach((function(e){var t,n=e.target;null===(t=Hh.get(n))||void 0===t||t.forEach((function(e){return e(n)}))}))}));var Vh=function(e){j(n,e);var t=D(n);function n(){return M(this,n),t.apply(this,arguments)}return A(n,[{key:"render",value:function(){return this.props.children}}]),n}(r.Component);function Gh(e,t){var n=e.children,o=e.disabled,i=r.useRef(null),a=r.useRef(null),l=r.useContext(yh),c="function"===typeof n,s=c?n(i):n,u=r.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),d=!c&&r.isValidElement(s)&&Wi(s),f=Hi(d?s.ref:null,i),p=function(){var e;return mh(i.current)||(i.current&&"object"===v(i.current)?mh(null===(e=i.current)||void 0===e?void 0:e.nativeElement):null)||mh(a.current)};r.useImperativeHandle(t,(function(){return p()}));var h=r.useRef(e);h.current=e;var g=r.useCallback((function(e){var t=h.current,n=t.onResize,r=t.data,o=e.getBoundingClientRect(),i=o.width,a=o.height,c=e.offsetWidth,s=e.offsetHeight,d=Math.floor(i),f=Math.floor(a);if(u.current.width!==d||u.current.height!==f||u.current.offsetWidth!==c||u.current.offsetHeight!==s){var p={width:d,height:f,offsetWidth:c,offsetHeight:s};u.current=p;var g=c===Math.round(i)?i:c,v=s===Math.round(a)?a:s,m=O(O({},p),{},{offsetWidth:g,offsetHeight:v});null===l||void 0===l||l(m,e,r),n&&Promise.resolve().then((function(){n(m,e)}))}}),[]);return r.useEffect((function(){var e,t,n=p();return n&&!o&&(e=n,t=g,Hh.has(e)||(Hh.set(e,new Set),Wh.observe(e)),Hh.get(e).add(t)),function(){return function(e,t){Hh.has(e)&&(Hh.get(e).delete(t),Hh.get(e).size||(Wh.unobserve(e),Hh.delete(e)))}(n,g)}}),[i.current,o]),r.createElement(Vh,{ref:a},d?r.cloneElement(s,{ref:f}):s)}const Yh=r.forwardRef(Gh);function Uh(e,t){var n=e.children;return("function"===typeof n?[n]:F(n)).map((function(n,o){var i=(null===n||void 0===n?void 0:n.key)||"".concat("rc-observer-key","-").concat(o);return r.createElement(Yh,h({},e,{key:i,ref:0===o?t:void 0}),n)}))}var Xh=r.forwardRef(Uh);Xh.Collection=function(e){var t=e.children,n=e.onBatchResize,o=r.useRef(0),i=r.useRef([]),a=r.useContext(yh),l=r.useCallback((function(e,t,r){o.current+=1;var l=o.current;i.current.push({size:e,element:t,data:r}),Promise.resolve().then((function(){l===o.current&&(null===n||void 0===n||n(i.current),i.current=[])})),null===a||void 0===a||a(e,t,r)}),[n,a]);return r.createElement(yh.Provider,{value:l},t)};const qh=Xh;var Kh=function(e){return+setTimeout(e,16)},$h=function(e){return clearTimeout(e)};"undefined"!==typeof window&&"requestAnimationFrame"in window&&(Kh=function(e){return window.requestAnimationFrame(e)},$h=function(e){return window.cancelAnimationFrame(e)});var Qh=0,Zh=new Map;function Jh(e){Zh.delete(e)}var eg=function(e){var t=Qh+=1;return function n(r){if(0===r)Jh(t),e();else{var o=Kh((function(){n(r-1)}));Zh.set(t,o)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};eg.cancel=function(e){var t=Zh.get(e);return Jh(e),$h(t)};const tg=eg;var ng,rg=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],og={};function ig(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;ng||((ng=document.createElement("textarea")).setAttribute("tab-index","-1"),ng.setAttribute("aria-hidden","true"),ng.setAttribute("name","hiddenTextarea"),document.body.appendChild(ng)),e.getAttribute("wrap")?ng.setAttribute("wrap",e.getAttribute("wrap")):ng.removeAttribute("wrap");var o=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&og[n])return og[n];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),i=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),a=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),l={sizingStyle:rg.map((function(e){return"".concat(e,":").concat(r.getPropertyValue(e))})).join(";"),paddingSize:i,borderSize:a,boxSizing:o};return t&&n&&(og[n]=l),l}(e,t),i=o.paddingSize,a=o.borderSize,l=o.boxSizing,c=o.sizingStyle;ng.setAttribute("style","".concat(c,";").concat("\n  min-height:0 !important;\n  max-height:none !important;\n  height:0 !important;\n  visibility:hidden !important;\n  overflow:hidden !important;\n  position:absolute !important;\n  z-index:-1000 !important;\n  top:0 !important;\n  right:0 !important;\n  pointer-events: none !important;\n")),ng.value=e.value||e.placeholder||"";var s,u=void 0,d=void 0,f=ng.scrollHeight;if("border-box"===l?f+=a:"content-box"===l&&(f-=i),null!==n||null!==r){ng.value=" ";var p=ng.scrollHeight-i;null!==n&&(u=p*n,"border-box"===l&&(u=u+i+a),f=Math.max(u,f)),null!==r&&(d=p*r,"border-box"===l&&(d=d+i+a),s=f>d?"":"hidden",f=Math.min(d,f))}var h={height:f,overflowY:s,resize:"none"};return u&&(h.minHeight=u),d&&(h.maxHeight=d),h}var ag=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],lg=r.forwardRef((function(e,t){var n=e,o=n.prefixCls,i=n.defaultValue,a=n.value,l=n.autoSize,s=n.onResize,u=n.className,d=n.style,f=n.disabled,p=n.onChange,m=(n.onInternalAutoSize,g(n,ag)),y=gt(Fi(i,{value:a,postState:function(e){return null!==e&&void 0!==e?e:""}}),2),b=y[0],x=y[1],S=r.useRef();r.useImperativeHandle(t,(function(){return{textArea:S.current}}));var _=gt(r.useMemo((function(){return l&&"object"===v(l)?[l.minRows,l.maxRows]:[]}),[l]),2),C=_[0],E=_[1],P=!!l,M=gt(r.useState(2),2),k=M[0],A=M[1],I=gt(r.useState(),2),T=I[0],j=I[1],L=function(){A(0)};Cn((function(){P&&L()}),[a,C,E,P]),Cn((function(){if(0===k)A(1);else if(1===k){var e=ig(S.current,!1,C,E);A(2),j(e)}else!function(){try{if(document.activeElement===S.current){var e=S.current,t=e.selectionStart,n=e.selectionEnd,r=e.scrollTop;S.current.setSelectionRange(t,n),S.current.scrollTop=r}}catch(N1){}}()}),[k]);var R=r.useRef(),D=function(){tg.cancel(R.current)};r.useEffect((function(){return D}),[]);var N=P?T:null,F=O(O({},d),N);return 0!==k&&1!==k||(F.overflowY="hidden",F.overflowX="hidden"),r.createElement(qh,{onResize:function(e){2===k&&(null===s||void 0===s||s(e),l&&(D(),R.current=tg((function(){L()}))))},disabled:!(l||s)},r.createElement("textarea",h({},m,{ref:S,style:F,className:c()(o,u,w({},"".concat(o,"-disabled"),f)),disabled:f,value:b,onChange:function(e){x(e.target.value),null===p||void 0===p||p(e)}})))}));const cg=lg;var sg=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],ug=r.forwardRef((function(e,t){var n,o=e.defaultValue,i=e.value,a=e.onFocus,l=e.onBlur,s=e.onChange,u=e.allowClear,d=e.maxLength,f=e.onCompositionStart,p=e.onCompositionEnd,m=e.suffix,y=e.prefixCls,b=void 0===y?"rc-textarea":y,x=e.showCount,S=e.count,_=e.className,C=e.style,E=e.disabled,M=e.hidden,k=e.classNames,A=e.styles,I=e.onResize,T=e.onClear,j=e.onPressEnter,L=e.readOnly,R=e.autoSize,D=e.onKeyDown,N=g(e,sg),F=gt(Fi(o,{value:i,defaultValue:o}),2),B=F[0],z=F[1],H=void 0===B||null===B?"":String(B),W=gt(r.useState(!1),2),V=W[0],G=W[1],Y=r.useRef(!1),U=gt(r.useState(null),2),X=U[0],q=U[1],K=(0,r.useRef)(null),$=(0,r.useRef)(null),Q=function(){var e;return null===(e=$.current)||void 0===e?void 0:e.textArea},Z=function(){Q().focus()};(0,r.useImperativeHandle)(t,(function(){var e;return{resizableTextArea:$.current,focus:Z,blur:function(){Q().blur()},nativeElement:(null===(e=K.current)||void 0===e?void 0:e.nativeElement)||Q()}})),(0,r.useEffect)((function(){G((function(e){return!E&&e}))}),[E]);var J=gt(r.useState(null),2),ee=J[0],te=J[1];r.useEffect((function(){var e;ee&&(e=Q()).setSelectionRange.apply(e,P(ee))}),[ee]);var ne,re=function(e,t){return r.useMemo((function(){var n={};t&&(n.show="object"===v(t)&&t.formatter?t.formatter:!!t);var r=n=O(O({},n),e),o=r.show,i=g(r,gh);return O(O({},i),{},{show:!!o,showFormatter:"function"===typeof o?o:void 0,strategy:i.strategy||function(e){return e.length}})}),[e,t])}(S,x),oe=null!==(n=re.max)&&void 0!==n?n:d,ie=Number(oe)>0,ae=re.strategy(H),le=!!oe&&ae>oe,ce=function(e,t){var n=t;!Y.current&&re.exceedFormatter&&re.max&&re.strategy(t)>re.max&&t!==(n=re.exceedFormatter(t,{max:re.max}))&&te([Q().selectionStart||0,Q().selectionEnd||0]),z(n),fh(e.currentTarget,e,s,n)},se=m;re.show&&(ne=re.showFormatter?re.showFormatter({value:H,count:ae,maxLength:oe}):"".concat(ae).concat(ie?" / ".concat(oe):""),se=r.createElement(r.Fragment,null,se,r.createElement("span",{className:c()("".concat(b,"-data-count"),null===k||void 0===k?void 0:k.count),style:null===A||void 0===A?void 0:A.count},ne)));var ue=!R&&!x&&!u;return r.createElement(hh,{ref:K,value:H,allowClear:u,handleReset:function(e){z(""),Z(),fh(Q(),e,s)},suffix:se,prefixCls:b,classNames:O(O({},k),{},{affixWrapper:c()(null===k||void 0===k?void 0:k.affixWrapper,w(w({},"".concat(b,"-show-count"),x),"".concat(b,"-textarea-allow-clear"),u))}),disabled:E,focused:V,className:c()(_,le&&"".concat(b,"-out-of-range")),style:O(O({},C),X&&!ue?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":"string"===typeof ne?ne:void 0}},hidden:M,readOnly:L,onClear:T},r.createElement(cg,h({},N,{autoSize:R,maxLength:d,onKeyDown:function(e){"Enter"===e.key&&j&&j(e),null===D||void 0===D||D(e)},onChange:function(e){ce(e,e.target.value)},onFocus:function(e){G(!0),null===a||void 0===a||a(e)},onBlur:function(e){G(!1),null===l||void 0===l||l(e)},onCompositionStart:function(e){Y.current=!0,null===f||void 0===f||f(e)},onCompositionEnd:function(e){Y.current=!1,ce(e,e.currentTarget.value),null===p||void 0===p||p(e)},className:c()(null===k||void 0===k?void 0:k.textarea),style:O(O({},null===A||void 0===A?void 0:A.textarea),{},{resize:null===C||void 0===C?void 0:C.resize}),disabled:E,prefixCls:b,onResize:function(e){var t;null===I||void 0===I||I(e),null!==(t=Q())&&void 0!==t&&t.style.height&&q(!0)},ref:$,readOnly:L})))}));const dg=ug;var fg=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 pg=(0,r.forwardRef)(((e,t)=>{var n,o;const{prefixCls:i,bordered:a=!0,size:l,disabled:s,status:u,allowClear:d,classNames:p,rootClassName:h,className:g,style:v,styles:m,variant:y}=e,b=fg(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]);const{getPrefixCls:x,direction:w,textArea:S}=r.useContext(f),O=Dc(l),_=r.useContext(Ms),C=null!==s&&void 0!==s?s:_,{status:E,hasFeedback:P,feedbackIcon:M}=r.useContext(It),k=Cs(E,u),A=r.useRef(null);r.useImperativeHandle(t,(()=>{var e;return{resizableTextArea:null===(e=A.current)||void 0===e?void 0:e.resizableTextArea,focus:e=>{var t,n;!function(e,t){if(!e)return;e.focus(t);const{cursor:n}=t||{};if(n){const t=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(t,t);break;default:e.setSelectionRange(0,t)}}}(null===(n=null===(t=A.current)||void 0===t?void 0:t.resizableTextArea)||void 0===n?void 0:n.textArea,e)},blur:()=>{var e;return null===(e=A.current)||void 0===e?void 0:e.blur()}}}));const I=x("input",i),T=ks(I),[j,L,R]=Jl(I,T),[D,N]=As("textArea",y,a),F=Os(null!==d&&void 0!==d?d:null===S||void 0===S?void 0:S.allowClear);return j(r.createElement(dg,Object.assign({autoComplete:null===S||void 0===S?void 0:S.autoComplete},b,{style:Object.assign(Object.assign({},null===S||void 0===S?void 0:S.style),v),styles:Object.assign(Object.assign({},null===S||void 0===S?void 0:S.styles),m),disabled:C,allowClear:F,className:c()(R,T,g,h,null===S||void 0===S?void 0:S.className),classNames:Object.assign(Object.assign(Object.assign({},p),null===S||void 0===S?void 0:S.classNames),{textarea:c()({["".concat(I,"-sm")]:"small"===O,["".concat(I,"-lg")]:"large"===O},L,null===p||void 0===p?void 0:p.textarea,null===(n=null===S||void 0===S?void 0:S.classNames)||void 0===n?void 0:n.textarea),variant:c()({["".concat(I,"-").concat(D)]:N},_s(I,k)),affixWrapper:c()("".concat(I,"-textarea-affix-wrapper"),{["".concat(I,"-affix-wrapper-rtl")]:"rtl"===w,["".concat(I,"-affix-wrapper-sm")]:"small"===O,["".concat(I,"-affix-wrapper-lg")]:"large"===O,["".concat(I,"-textarea-show-count")]:e.showCount||(null===(o=e.count)||void 0===o?void 0:o.show)},L)}),prefixCls:I,suffix:P&&r.createElement("span",{className:"".concat(I,"-textarea-suffix")},M),ref:A})))})),hg=pg,gg=Ls;gg.Group=ec,gg.Search=uh,gg.TextArea=hg,gg.Password=bu,gg.OTP=lu;const vg=gg;const mg={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"};var yg=function(e,t){return r.createElement(xs,qc({},e,{ref:t,icon:mg}))};const bg=r.forwardRef(yg);var xg=function(e){if(ad()&&window.document.documentElement){var t=Array.isArray(e)?e:[e],n=window.document.documentElement;return t.some((function(e){return e in n.style}))}return!1};function wg(e,t){return Array.isArray(e)||void 0===t?xg(e):function(e,t){if(!xg(e))return!1;var n=document.createElement("div"),r=n.style[e];return n.style[e]=t,n.style[e]!==r}(e,t)}const Sg=(0,r.createContext)(void 0);const Og={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"};function _g(e){return _g="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},_g(e)}function Cg(e){var t=function(e,t){if("object"!=_g(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=_g(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==_g(t)?t:t+""}function Eg(e,t,n){return(t=Cg(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pg(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 Mg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pg(Object(n),!0).forEach((function(t){Eg(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const kg=Mg(Mg({},{yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0}),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"}),Ag={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Ig={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},kg),timePickerLocale:Object.assign({},Ag)},Tg="${label} is not a valid ${type}",jg={locale:"en",Pagination:Og,DatePicker:Ig,TimePicker:Ag,Calendar:Ig,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:Tg,method:Tg,array:Tg,object:Tg,number:Tg,date:Tg,boolean:Tg,integer:Tg,float:Tg,regexp:Tg,email:Tg,url:Tg,hex:Tg},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}},Lg=(e,t)=>{const n=r.useContext(Sg),o=r.useMemo((()=>{var r;const o=t||jg[e],i=null!==(r=null===n||void 0===n?void 0:n[e])&&void 0!==r?r:{};return Object.assign(Object.assign({},"function"===typeof o?o():o),i||{})}),[e,t,n]);return[o,r.useMemo((()=>{const e=null===n||void 0===n?void 0:n.locale;return(null===n||void 0===n?void 0:n.exist)&&!e?jg.locale:e}),[n])]};function Rg(e){var t=e.children,n=e.prefixCls,o=e.id,i=e.overlayInnerStyle,a=e.className,l=e.style;return r.createElement("div",{className:c()("".concat(n,"-content"),a),style:l},r.createElement("div",{className:"".concat(n,"-inner"),id:o,role:"tooltip",style:i},"function"===typeof t?t():t))}const Dg=r.createContext(null);var Ng=[];function Fg(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 l=getComputedStyle(e,"::-webkit-scrollbar"),c=parseInt(l.width,10),s=parseInt(l.height,10);try{var u=c?"width: ".concat(l.width,";"):"",d=s?"height: ".concat(l.height,";"):"";Xt("\n#".concat(t,"::-webkit-scrollbar {\n").concat(u,"\n").concat(d,"\n}"),t)}catch(N1){console.error(N1),r=c,o=s}}document.body.appendChild(n);var f=e&&r&&!isNaN(r)?r:n.offsetWidth-n.clientWidth,p=e&&o&&!isNaN(o)?o:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),Ut(t),{width:f,height:p}}var Bg="rc-util-locker-".concat(Date.now()),zg=0;function Hg(e){var t=!!e,n=gt(r.useState((function(){return zg+=1,"".concat(Bg,"_").concat(zg)})),1)[0];Cn((function(){if(t){var e=(o=document.body,"undefined"!==typeof document&&o&&o instanceof Element?Fg(o):{width:0,height:0}).width,r=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;Xt("\nhtml body {\n  overflow-y: hidden;\n  ".concat(r?"width: calc(100% - ".concat(e,"px);"):"","\n}"),n)}else Ut(n);var o;return function(){Ut(n)}}),[t,n])}var Wg=!1;var Vg=function(e){return!1!==e&&(Rt()&&e?"string"===typeof e?document.querySelector(e):"function"===typeof e?e():e:null)},Gg=r.forwardRef((function(e,t){var n=e.open,o=e.autoLock,i=e.getContainer,a=(e.debug,e.autoDestroy),l=void 0===a||a,c=e.children,s=gt(r.useState(n),2),u=s[0],d=s[1],f=u||n;r.useEffect((function(){(l||n)&&d(n)}),[n,l]);var p=gt(r.useState((function(){return Vg(i)})),2),h=p[0],g=p[1];r.useEffect((function(){var e=Vg(i);g(null!==e&&void 0!==e?e:null)}));var v=function(e,t){var n=gt(r.useState((function(){return Rt()?document.createElement("div"):null})),1)[0],o=r.useRef(!1),i=r.useContext(Dg),a=gt(r.useState(Ng),2),l=a[0],c=a[1],s=i||(o.current?void 0:function(e){c((function(t){return[e].concat(P(t))}))});function u(){n.parentElement||document.body.appendChild(n),o.current=!0}function d(){var e;null===(e=n.parentElement)||void 0===e||e.removeChild(n),o.current=!1}return Cn((function(){return e?i?i(u):u():d(),d}),[e]),Cn((function(){l.length&&(l.forEach((function(e){return e()})),c(Ng))}),[l]),[n,s]}(f&&!h),m=gt(v,2),y=m[0],b=m[1],x=null!==h&&void 0!==h?h:y;Hg(o&&n&&Rt()&&(x===y||x===document.body));var w=null;c&&Wi(c)&&t&&(w=c.ref);var S=Hi(w,t);if(!f||!Rt()||void 0===h)return null;var O,_=!1===x||("boolean"===typeof O&&(Wg=O),Wg),C=c;return t&&(C=r.cloneElement(c,{ref:S})),r.createElement(Dg.Provider,{value:b},_?C:(0,Nu.createPortal)(C,x))}));const Yg=Gg;var Ug=0;var Xg=O({},o).useId;const qg=Xg?function(e){var t=Xg();return e||t}:function(e){var t=gt(r.useState("ssr-id"),2),n=t[0],o=t[1];return r.useEffect((function(){var e=Ug;Ug+=1,o("rc_unique_".concat(e))}),[]),e||n},Kg=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?void 0:e.substr(0,4))};var $g=r.createContext({});var Qg=function(e){j(n,e);var t=D(n);function n(){return M(this,n),t.apply(this,arguments)}return A(n,[{key:"render",value:function(){return this.props.children}}]),n}(r.Component);const Zg=Qg;var Jg="none",ev="appear",tv="enter",nv="leave",rv="none",ov="prepare",iv="start",av="active",lv="end",cv="prepared";function sv(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 uv=function(e,t){var n={animationend:sv("Animation","AnimationEnd"),transitionend:sv("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}(Rt(),"undefined"!==typeof window?window:{}),dv={};if(Rt()){var fv=document.createElement("div");dv=fv.style}var pv={};function hv(e){if(pv[e])return pv[e];var t=uv[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 dv)return pv[e]=t[i],pv[e]}return""}var gv=hv("animationend"),vv=hv("transitionend"),mv=!(!gv||!vv),yv=gv||"animationend",bv=vv||"transitionend";function xv(e,t){if(!e)return null;if("object"===v(e)){var n=t.replace(/-\w/g,(function(e){return e[1].toUpperCase()}));return e[n]}return"".concat(e,"-").concat(t)}const wv=function(e){var t=(0,r.useRef)(),n=(0,r.useRef)(e);n.current=e;var o=r.useCallback((function(e){n.current(e)}),[]);function i(e){e&&(e.removeEventListener(bv,o),e.removeEventListener(yv,o))}return r.useEffect((function(){return function(){i(t.current)}}),[]),[function(e){t.current&&t.current!==e&&i(t.current),e&&e!==t.current&&(e.addEventListener(bv,o),e.addEventListener(yv,o),t.current=e)},i]};const Sv=Rt()?r.useLayoutEffect:r.useEffect;var Ov=[ov,iv,av,lv],_v=[ov,cv],Cv=!1,Ev=!0;function Pv(e){return e===av||e===lv}const Mv=function(e,t,n){var o=gt(Di(rv),2),i=o[0],a=o[1],l=function(){var e=r.useRef(null);function t(){tg.cancel(e.current)}return r.useEffect((function(){return function(){t()}}),[]),[function n(r){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;t();var i=tg((function(){o<=1?r({isCanceled:function(){return i!==e.current}}):n(r,o-1)}));e.current=i},t]}(),c=gt(l,2),s=c[0],u=c[1];var d=t?_v:Ov;return Sv((function(){if(i!==rv&&i!==lv){var e=d.indexOf(i),t=d[e+1],r=n(i);r===Cv?a(t,!0):t&&s((function(e){function n(){e.isCanceled()||a(t,!0)}!0===r?n():Promise.resolve(r).then(n)}))}}),[e,i]),r.useEffect((function(){return function(){u()}}),[]),[function(){a(ov,!0)},i]};const kv=function(e){var t=e;"object"===v(e)&&(t=e.transitionSupport);var n=r.forwardRef((function(e,n){var o=e.visible,i=void 0===o||o,a=e.removeOnLeave,l=void 0===a||a,s=e.forceRender,u=e.children,d=e.motionName,f=e.leavedClassName,p=e.eventProps,h=function(e,n){return!(!e.motionName||!t||!1===n)}(e,r.useContext($g).motion),g=(0,r.useRef)(),v=(0,r.useRef)();var m=function(e,t,n,o){var i=o.motionEnter,a=void 0===i||i,l=o.motionAppear,c=void 0===l||l,s=o.motionLeave,u=void 0===s||s,d=o.motionDeadline,f=o.motionLeaveImmediately,p=o.onAppearPrepare,h=o.onEnterPrepare,g=o.onLeavePrepare,v=o.onAppearStart,m=o.onEnterStart,y=o.onLeaveStart,b=o.onAppearActive,x=o.onEnterActive,S=o.onLeaveActive,_=o.onAppearEnd,C=o.onEnterEnd,E=o.onLeaveEnd,P=o.onVisibleChanged,M=gt(Di(),2),k=M[0],A=M[1],I=gt(Di(Jg),2),T=I[0],j=I[1],L=gt(Di(null),2),R=L[0],D=L[1],N=(0,r.useRef)(!1),F=(0,r.useRef)(null);function B(){return n()}var z=(0,r.useRef)(!1);function H(){j(Jg,!0),D(null,!0)}function W(e){var t=B();if(!e||e.deadline||e.target===t){var n,r=z.current;T===ev&&r?n=null===_||void 0===_?void 0:_(t,e):T===tv&&r?n=null===C||void 0===C?void 0:C(t,e):T===nv&&r&&(n=null===E||void 0===E?void 0:E(t,e)),T!==Jg&&r&&!1!==n&&H()}}var V=gt(wv(W),1)[0],G=function(e){var t,n,r;switch(e){case ev:return w(t={},ov,p),w(t,iv,v),w(t,av,b),t;case tv:return w(n={},ov,h),w(n,iv,m),w(n,av,x),n;case nv:return w(r={},ov,g),w(r,iv,y),w(r,av,S),r;default:return{}}},Y=r.useMemo((function(){return G(T)}),[T]),U=gt(Mv(T,!e,(function(e){if(e===ov){var t=Y[ov];return t?t(B()):Cv}var n;return q in Y&&D((null===(n=Y[q])||void 0===n?void 0:n.call(Y,B(),null))||null),q===av&&(V(B()),d>0&&(clearTimeout(F.current),F.current=setTimeout((function(){W({deadline:!0})}),d))),q===cv&&H(),Ev})),2),X=U[0],q=U[1],K=Pv(q);z.current=K,Sv((function(){A(t);var n,r=N.current;N.current=!0,!r&&t&&c&&(n=ev),r&&t&&a&&(n=tv),(r&&!t&&u||!r&&f&&!t&&u)&&(n=nv);var o=G(n);n&&(e||o[ov])?(j(n),X()):j(Jg)}),[t]),(0,r.useEffect)((function(){(T===ev&&!c||T===tv&&!a||T===nv&&!u)&&j(Jg)}),[c,a,u]),(0,r.useEffect)((function(){return function(){N.current=!1,clearTimeout(F.current)}}),[]);var $=r.useRef(!1);(0,r.useEffect)((function(){k&&($.current=!0),void 0!==k&&T===Jg&&(($.current||k)&&(null===P||void 0===P||P(k)),$.current=!0)}),[k,T]);var Q=R;return Y[ov]&&q===iv&&(Q=O({transition:"none"},Q)),[T,q,Q,null!==k&&void 0!==k?k:t]}(h,i,(function(){try{return g.current instanceof HTMLElement?g.current:mh(v.current)}catch(N1){return null}}),e),y=gt(m,4),b=y[0],x=y[1],S=y[2],_=y[3],C=r.useRef(_);_&&(C.current=!0);var E,P=r.useCallback((function(e){g.current=e,Bi(n,e)}),[n]),M=O(O({},p),{},{visible:i});if(u)if(b===Jg)E=_?u(O({},M),P):!l&&C.current&&f?u(O(O({},M),{},{className:f}),P):s||!l&&!f?u(O(O({},M),{},{style:{display:"none"}}),P):null;else{var k,A;x===ov?A="prepare":Pv(x)?A="active":x===iv&&(A="start");var I=xv(d,"".concat(b,"-").concat(A));E=u(O(O({},M),{},{className:c()(xv(d,b),(k={},w(k,I,I&&A),w(k,d,"string"===typeof d),k)),style:S}),P)}else E=null;r.isValidElement(E)&&Wi(E)&&(E.ref||(E=r.cloneElement(E,{ref:P})));return r.createElement(Zg,{ref:v},E)}));return n.displayName="CSSMotion",n}(mv);var Av="add",Iv="keep",Tv="remove",jv="removed";function Lv(e){var t;return O(O({},t=e&&"object"===v(e)&&"key"in e?e:{key:e}),{},{key:String(t.key)})}function Rv(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(Lv)}var Dv=["component","children","onVisibleChanged","onAllRemoved"],Nv=["status"],Fv=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];const Bv=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:kv,n=function(e){j(o,e);var n=D(o);function o(){var e;M(this,o);for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return w(I(e=n.call.apply(n,[this].concat(r))),"state",{keyEntities:[]}),w(I(e),"removeKey",(function(t){var n=e.state.keyEntities.map((function(e){return e.key!==t?e:O(O({},e),{},{status:jv})}));return e.setState({keyEntities:n}),n.filter((function(e){return e.status!==jv})).length})),e}return A(o,[{key:"render",value:function(){var e=this,n=this.state.keyEntities,o=this.props,i=o.component,a=o.children,l=o.onVisibleChanged,c=o.onAllRemoved,s=g(o,Dv),u=i||r.Fragment,d={};return Fv.forEach((function(e){d[e]=s[e],delete s[e]})),delete s.keys,r.createElement(u,s,n.map((function(n,o){var i=n.status,s=g(n,Nv),u=i===Av||i===Iv;return r.createElement(t,h({},d,{key:s.key,visible:u,eventProps:s,onVisibleChanged:function(t){(null===l||void 0===l||l(t,{key:s.key}),t)||0===e.removeKey(s.key)&&c&&c()}}),(function(e,t){return a(O(O({},e),{},{index:o}),t)}))})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.keys,r=t.keyEntities,o=Rv(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=Rv(e),a=Rv(t);i.forEach((function(e){for(var t=!1,i=r;i<o;i+=1){var l=a[i];if(l.key===e.key){r<i&&(n=n.concat(a.slice(r,i).map((function(e){return O(O({},e),{},{status:Av})}))),r=i),n.push(O(O({},l),{},{status:Iv})),r+=1,t=!0;break}}t||n.push(O(O({},e),{},{status:Tv}))})),r<o&&(n=n.concat(a.slice(r).map((function(e){return O(O({},e),{},{status:Av})}))));var l={};return n.forEach((function(e){var t=e.key;l[t]=(l[t]||0)+1})),Object.keys(l).filter((function(e){return l[e]>1})).forEach((function(e){(n=n.filter((function(t){var n=t.key,r=t.status;return n!==e||r!==Tv}))).forEach((function(t){t.key===e&&(t.status=Iv)}))})),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!==jv||e.status!==Tv}))}}}]),o}(r.Component);return w(n,"defaultProps",{component:"div"}),n}(mv),zv=kv;function Hv(e){var t=e.prefixCls,n=e.align,o=e.arrow,i=e.arrowPos,a=o||{},l=a.className,s=a.content,u=i.x,d=void 0===u?0:u,f=i.y,p=void 0===f?0:f,h=r.useRef();if(!n||!n.points)return null;var g={position:"absolute"};if(!1!==n.autoArrow){var v=n.points[0],m=n.points[1],y=v[0],b=v[1],x=m[0],w=m[1];y!==x&&["t","b"].includes(y)?"t"===y?g.top=0:g.bottom=0:g.top=p,b!==w&&["l","r"].includes(b)?"l"===b?g.left=0:g.right=0:g.left=d}return r.createElement("div",{ref:h,className:c()("".concat(t,"-arrow"),l),style:g},s)}function Wv(e){var t=e.prefixCls,n=e.open,o=e.zIndex,i=e.mask,a=e.motion;return i?r.createElement(zv,h({},a,{motionAppear:!0,visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return r.createElement("div",{style:{zIndex:o},className:c()("".concat(t,"-mask"),n)})})):null}var Vv=r.memo((function(e){return e.children}),(function(e,t){return t.cache}));const Gv=Vv;var Yv=r.forwardRef((function(e,t){var n=e.popup,o=e.className,i=e.prefixCls,a=e.style,l=e.target,s=e.onVisibleChanged,u=e.open,d=e.keepDom,f=e.fresh,p=e.onClick,g=e.mask,v=e.arrow,m=e.arrowPos,y=e.align,b=e.motion,x=e.maskMotion,w=e.forceRender,S=e.getPopupContainer,_=e.autoDestroy,C=e.portal,E=e.zIndex,P=e.onMouseEnter,M=e.onMouseLeave,k=e.onPointerEnter,A=e.ready,I=e.offsetX,T=e.offsetY,j=e.offsetR,L=e.offsetB,R=e.onAlign,D=e.onPrepare,N=e.stretch,F=e.targetWidth,B=e.targetHeight,z="function"===typeof n?n():n,H=u||d,W=(null===S||void 0===S?void 0:S.length)>0,V=gt(r.useState(!S||!W),2),G=V[0],Y=V[1];if(Cn((function(){!G&&W&&l&&Y(!0)}),[G,W,l]),!G)return null;var U="auto",X={left:"-1000vw",top:"-1000vh",right:U,bottom:U};if(A||!u){var q,K=y.points,$=y.dynamicInset||(null===(q=y._experimental)||void 0===q?void 0:q.dynamicInset),Q=$&&"r"===K[0][1],Z=$&&"b"===K[0][0];Q?(X.right=j,X.left=U):(X.left=I,X.right=U),Z?(X.bottom=L,X.top=U):(X.top=T,X.bottom=U)}var J={};return N&&(N.includes("height")&&B?J.height=B:N.includes("minHeight")&&B&&(J.minHeight=B),N.includes("width")&&F?J.width=F:N.includes("minWidth")&&F&&(J.minWidth=F)),u||(J.pointerEvents="none"),r.createElement(C,{open:w||H,getContainer:S&&function(){return S(l)},autoDestroy:_},r.createElement(Wv,{prefixCls:i,open:u,zIndex:E,mask:g,motion:x}),r.createElement(qh,{onResize:R,disabled:!u},(function(e){return r.createElement(zv,h({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:w,leavedClassName:"".concat(i,"-hidden")},b,{onAppearPrepare:D,onEnterPrepare:D,visible:u,onVisibleChanged:function(e){var t;null===b||void 0===b||null===(t=b.onVisibleChanged)||void 0===t||t.call(b,e),s(e)}}),(function(n,l){var s=n.className,d=n.style,h=c()(i,s,o);return r.createElement("div",{ref:zi(e,t,l),className:h,style:O(O(O(O({"--arrow-x":"".concat(m.x||0,"px"),"--arrow-y":"".concat(m.y||0,"px")},X),J),d),{},{boxSizing:"border-box",zIndex:E},a),onMouseEnter:P,onMouseLeave:M,onPointerEnter:k,onClick:p},v&&r.createElement(Hv,{prefixCls:i,arrow:v,arrowPos:m,align:y}),r.createElement(Gv,{cache:!u&&!f},z))}))})))}));const Uv=Yv;var Xv=r.forwardRef((function(e,t){var n=e.children,o=e.getTriggerDOMNode,i=Wi(n),a=r.useCallback((function(e){Bi(t,o?o(e):e)}),[o]),l=Hi(a,n.ref);return i?r.cloneElement(n,{ref:l}):n}));const qv=Xv;const Kv=r.createContext(null);function $v(e){return e?Array.isArray(e)?e:[e]:[]}const Qv=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 Zv(){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 Jv(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function em(e){return e.ownerDocument.defaultView}function tm(e){for(var t=[],n=null===e||void 0===e?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=em(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 nm(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function rm(e){return nm(parseFloat(e),0)}function om(e,t){var n=O({},e);return(t||[]).forEach((function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=em(e).getComputedStyle(e),r=t.overflow,o=t.overflowClipMargin,i=t.borderTopWidth,a=t.borderBottomWidth,l=t.borderLeftWidth,c=t.borderRightWidth,s=e.getBoundingClientRect(),u=e.offsetHeight,d=e.clientHeight,f=e.offsetWidth,p=e.clientWidth,h=rm(i),g=rm(a),v=rm(l),m=rm(c),y=nm(Math.round(s.width/f*1e3)/1e3),b=nm(Math.round(s.height/u*1e3)/1e3),x=(f-p-v-m)*y,w=(u-d-h-g)*b,S=h*b,O=g*b,_=v*y,C=m*y,E=0,P=0;if("clip"===r){var M=rm(o);E=M*y,P=M*b}var k=s.x+_-E,A=s.y+S-P,I=k+s.width+2*E-_-C-x,T=A+s.height+2*P-S-O-w;n.left=Math.max(n.left,k),n.top=Math.max(n.top,A),n.right=Math.min(n.right,I),n.bottom=Math.min(n.bottom,T)}})),n}function im(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 am(e,t){var n=gt(t||[],2),r=n[0],o=n[1];return[im(e.width,r),im(e.height,o)]}function lm(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function cm(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 sm(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 um=["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 dm=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Yg,t=r.forwardRef((function(t,n){var o=t.prefixCls,i=void 0===o?"rc-trigger-popup":o,a=t.children,l=t.action,s=void 0===l?"hover":l,u=t.showAction,d=t.hideAction,f=t.popupVisible,p=t.defaultPopupVisible,h=t.onPopupVisibleChange,v=t.afterPopupVisibleChange,m=t.mouseEnterDelay,y=t.mouseLeaveDelay,b=void 0===y?.1:y,x=t.focusDelay,w=t.blurDelay,S=t.mask,_=t.maskClosable,C=void 0===_||_,E=t.getPopupContainer,M=t.forceRender,k=t.autoDestroy,A=t.destroyPopupOnHide,I=t.popup,T=t.popupClassName,j=t.popupStyle,L=t.popupPlacement,R=t.builtinPlacements,D=void 0===R?{}:R,N=t.popupAlign,F=t.zIndex,B=t.stretch,z=t.getPopupClassNameFromAlign,H=t.fresh,W=t.alignPoint,V=t.onPopupClick,G=t.onPopupAlign,Y=t.arrow,U=t.popupMotion,X=t.maskMotion,q=t.popupTransitionName,K=t.popupAnimation,$=t.maskTransitionName,Q=t.maskAnimation,Z=t.className,J=t.getTriggerDOMNode,ee=g(t,um),te=k||A||!1,ne=gt(r.useState(!1),2),re=ne[0],oe=ne[1];Cn((function(){oe(Kg())}),[]);var ie=r.useRef({}),ae=r.useContext(Kv),le=r.useMemo((function(){return{registerSubPopup:function(e,t){ie.current[e]=t,null===ae||void 0===ae||ae.registerSubPopup(e,t)}}}),[ae]),ce=qg(),se=gt(r.useState(null),2),ue=se[0],de=se[1],fe=Ri((function(e){vh(e)&&ue!==e&&de(e),null===ae||void 0===ae||ae.registerSubPopup(ce,e)})),pe=gt(r.useState(null),2),he=pe[0],ge=pe[1],ve=r.useRef(null),me=Ri((function(e){vh(e)&&he!==e&&(ge(e),ve.current=e)})),ye=r.Children.only(a),be=(null===ye||void 0===ye?void 0:ye.props)||{},xe={},we=Ri((function(e){var t,n,r=he;return(null===r||void 0===r?void 0:r.contains(e))||(null===(t=ls(r))||void 0===t?void 0:t.host)===e||e===r||(null===ue||void 0===ue?void 0:ue.contains(e))||(null===(n=ls(ue))||void 0===n?void 0:n.host)===e||e===ue||Object.values(ie.current).some((function(t){return(null===t||void 0===t?void 0:t.contains(e))||e===t}))})),Se=Jv(i,U,K,q),Oe=Jv(i,X,Q,$),_e=gt(r.useState(p||!1),2),Ce=_e[0],Ee=_e[1],Pe=null!==f&&void 0!==f?f:Ce,Me=Ri((function(e){void 0===f&&Ee(e)}));Cn((function(){Ee(f||!1)}),[f]);var ke=r.useRef(Pe);ke.current=Pe;var Ae=r.useRef([]);Ae.current=[];var Ie=Ri((function(e){var t;Me(e),(null!==(t=Ae.current[Ae.current.length-1])&&void 0!==t?t:Pe)!==e&&(Ae.current.push(e),null===h||void 0===h||h(e))})),Te=r.useRef(),je=function(){clearTimeout(Te.current)},Le=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;je(),0===t?Ie(e):Te.current=setTimeout((function(){Ie(e)}),1e3*t)};r.useEffect((function(){return je}),[]);var Re=gt(r.useState(!1),2),De=Re[0],Ne=Re[1];Cn((function(e){e&&!Pe||Ne(!0)}),[Pe]);var Fe=gt(r.useState(null),2),Be=Fe[0],ze=Fe[1],He=gt(r.useState([0,0]),2),We=He[0],Ve=He[1],Ge=function(e){Ve([e.clientX,e.clientY])},Ye=function(e,t,n,o,i,a,l){var c=gt(r.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[o]||{}}),2),s=c[0],u=c[1],d=r.useRef(0),f=r.useMemo((function(){return t?tm(t):[]}),[t]),p=r.useRef({});e||(p.current={});var h=Ri((function(){if(t&&n&&e){var r,c,s,d=t,h=d.ownerDocument,g=em(d).getComputedStyle(d),v=g.width,m=g.height,y=g.position,b=d.style.left,x=d.style.top,w=d.style.right,S=d.style.bottom,_=d.style.overflow,C=O(O({},i[o]),a),E=h.createElement("div");if(null===(r=d.parentElement)||void 0===r||r.appendChild(E),E.style.left="".concat(d.offsetLeft,"px"),E.style.top="".concat(d.offsetTop,"px"),E.style.position=y,E.style.height="".concat(d.offsetHeight,"px"),E.style.width="".concat(d.offsetWidth,"px"),d.style.left="0",d.style.top="0",d.style.right="auto",d.style.bottom="auto",d.style.overflow="hidden",Array.isArray(n))s={x:n[0],y:n[1],width:0,height:0};else{var P=n.getBoundingClientRect();s={x:P.x,y:P.y,width:P.width,height:P.height}}var M=d.getBoundingClientRect(),k=h.documentElement,A=k.clientWidth,I=k.clientHeight,T=k.scrollWidth,j=k.scrollHeight,L=k.scrollTop,R=k.scrollLeft,D=M.height,N=M.width,F=s.height,B=s.width,z={left:0,top:0,right:A,bottom:I},H={left:-R,top:-L,right:T-R,bottom:j-L},W=C.htmlRegion,V="visible",G="visibleFirst";"scroll"!==W&&W!==G&&(W=V);var Y=W===G,U=om(H,f),X=om(z,f),q=W===V?X:U,K=Y?X:q;d.style.left="auto",d.style.top="auto",d.style.right="0",d.style.bottom="0";var $=d.getBoundingClientRect();d.style.left=b,d.style.top=x,d.style.right=w,d.style.bottom=S,d.style.overflow=_,null===(c=d.parentElement)||void 0===c||c.removeChild(E);var Q=nm(Math.round(N/parseFloat(v)*1e3)/1e3),Z=nm(Math.round(D/parseFloat(m)*1e3)/1e3);if(0===Q||0===Z||vh(n)&&!Qv(n))return;var J=C.offset,ee=C.targetOffset,te=gt(am(M,J),2),ne=te[0],re=te[1],oe=gt(am(s,ee),2),ie=oe[0],ae=oe[1];s.x-=ie,s.y-=ae;var le=gt(C.points||[],2),ce=le[0],se=lm(le[1]),ue=lm(ce),de=cm(s,se),fe=cm(M,ue),pe=O({},C),he=de.x-fe.x+ne,ge=de.y-fe.y+re;function ct(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:q,r=M.x+e,o=M.y+t,i=r+N,a=o+D,l=Math.max(r,n.left),c=Math.max(o,n.top),s=Math.min(i,n.right),u=Math.min(a,n.bottom);return Math.max(0,(s-l)*(u-c))}var ve,me,ye,be,xe=ct(he,ge),we=ct(he,ge,X),Se=cm(s,["t","l"]),Oe=cm(M,["t","l"]),_e=cm(s,["b","r"]),Ce=cm(M,["b","r"]),Ee=C.overflow||{},Pe=Ee.adjustX,Me=Ee.adjustY,ke=Ee.shiftX,Ae=Ee.shiftY,Ie=function(e){return"boolean"===typeof e?e:e>=0};function st(){ve=M.y+ge,me=ve+D,ye=M.x+he,be=ye+N}st();var Te=Ie(Me),je=ue[0]===se[0];if(Te&&"t"===ue[0]&&(me>K.bottom||p.current.bt)){var Le=ge;je?Le-=D-F:Le=Se.y-Ce.y-re;var Re=ct(he,Le),De=ct(he,Le,X);Re>xe||Re===xe&&(!Y||De>=we)?(p.current.bt=!0,ge=Le,re=-re,pe.points=[sm(ue,0),sm(se,0)]):p.current.bt=!1}if(Te&&"b"===ue[0]&&(ve<K.top||p.current.tb)){var Ne=ge;je?Ne+=D-F:Ne=_e.y-Oe.y-re;var Fe=ct(he,Ne),Be=ct(he,Ne,X);Fe>xe||Fe===xe&&(!Y||Be>=we)?(p.current.tb=!0,ge=Ne,re=-re,pe.points=[sm(ue,0),sm(se,0)]):p.current.tb=!1}var ze=Ie(Pe),He=ue[1]===se[1];if(ze&&"l"===ue[1]&&(be>K.right||p.current.rl)){var We=he;He?We-=N-B:We=Se.x-Ce.x-ne;var Ve=ct(We,ge),Ge=ct(We,ge,X);Ve>xe||Ve===xe&&(!Y||Ge>=we)?(p.current.rl=!0,he=We,ne=-ne,pe.points=[sm(ue,1),sm(se,1)]):p.current.rl=!1}if(ze&&"r"===ue[1]&&(ye<K.left||p.current.lr)){var Ye=he;He?Ye+=N-B:Ye=_e.x-Oe.x-ne;var Ue=ct(Ye,ge),Xe=ct(Ye,ge,X);Ue>xe||Ue===xe&&(!Y||Xe>=we)?(p.current.lr=!0,he=Ye,ne=-ne,pe.points=[sm(ue,1),sm(se,1)]):p.current.lr=!1}st();var qe=!0===ke?0:ke;"number"===typeof qe&&(ye<X.left&&(he-=ye-X.left-ne,s.x+B<X.left+qe&&(he+=s.x-X.left+B-qe)),be>X.right&&(he-=be-X.right-ne,s.x>X.right-qe&&(he+=s.x-X.right+qe)));var Ke=!0===Ae?0:Ae;"number"===typeof Ke&&(ve<X.top&&(ge-=ve-X.top-re,s.y+F<X.top+Ke&&(ge+=s.y-X.top+F-Ke)),me>X.bottom&&(ge-=me-X.bottom-re,s.y>X.bottom-Ke&&(ge+=s.y-X.bottom+Ke)));var $e=M.x+he,Qe=$e+N,Ze=M.y+ge,Je=Ze+D,et=s.x,tt=et+B,nt=s.y,rt=nt+F,ot=(Math.max($e,et)+Math.min(Qe,tt))/2-$e,it=(Math.max(Ze,nt)+Math.min(Je,rt))/2-Ze;null===l||void 0===l||l(t,pe);var at=$.right-M.x-(he+M.width),lt=$.bottom-M.y-(ge+M.height);u({ready:!0,offsetX:he/Q,offsetY:ge/Z,offsetR:at/Q,offsetB:lt/Z,arrowX:ot/Q,arrowY:it/Z,scaleX:Q,scaleY:Z,align:pe})}})),g=function(){u((function(e){return O(O({},e),{},{ready:!1})}))};return Cn(g,[o]),Cn((function(){e||g()}),[e]),[s.ready,s.offsetX,s.offsetY,s.offsetR,s.offsetB,s.arrowX,s.arrowY,s.scaleX,s.scaleY,s.align,function(){d.current+=1;var e=d.current;Promise.resolve().then((function(){d.current===e&&h()}))}]}(Pe,ue,W?We:he,L,D,N,G),Ue=gt(Ye,11),Xe=Ue[0],qe=Ue[1],Ke=Ue[2],$e=Ue[3],Qe=Ue[4],Ze=Ue[5],Je=Ue[6],et=Ue[7],tt=Ue[8],nt=Ue[9],rt=Ue[10],ot=function(e,t,n,o){return r.useMemo((function(){var r=$v(null!==n&&void 0!==n?n:t),i=$v(null!==o&&void 0!==o?o:t),a=new Set(r),l=new Set(i);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),l.has("hover")&&(l.delete("hover"),l.add("click"))),[a,l]}),[e,t,n,o])}(re,s,u,d),it=gt(ot,2),at=it[0],lt=it[1],ct=at.has("click"),st=lt.has("click")||lt.has("contextMenu"),ut=Ri((function(){De||rt()}));!function(e,t,n,r,o){Cn((function(){if(e&&t&&n){var i=n,a=tm(t),l=tm(i),c=em(i),s=new Set([c].concat(P(a),P(l)));function u(){r(),o()}return s.forEach((function(e){e.addEventListener("scroll",u,{passive:!0})})),c.addEventListener("resize",u,{passive:!0}),r(),function(){s.forEach((function(e){e.removeEventListener("scroll",u),c.removeEventListener("resize",u)}))}}}),[e,t,n])}(Pe,he,ue,ut,(function(){ke.current&&W&&st&&Le(!1)})),Cn((function(){ut()}),[We,L]),Cn((function(){!Pe||null!==D&&void 0!==D&&D[L]||ut()}),[JSON.stringify(N)]);var dt=r.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 l,c=i[a];if(Zv(null===(l=e[c])||void 0===l?void 0:l.points,o,r))return"".concat(t,"-placement-").concat(c)}return""}(D,i,nt,W);return c()(e,null===z||void 0===z?void 0:z(nt))}),[nt,z,D,i,W]);r.useImperativeHandle(n,(function(){return{nativeElement:ve.current,forceAlign:ut}}));var ft=gt(r.useState(0),2),pt=ft[0],ht=ft[1],vt=gt(r.useState(0),2),mt=vt[0],yt=vt[1],bt=function(){if(B&&he){var e=he.getBoundingClientRect();ht(e.width),yt(e.height)}};function xt(e,t,n,r){xe[e]=function(o){var i;null===r||void 0===r||r(o),Le(t,n);for(var a=arguments.length,l=new Array(a>1?a-1:0),c=1;c<a;c++)l[c-1]=arguments[c];null===(i=be[e])||void 0===i||i.call.apply(i,[be,o].concat(l))}}Cn((function(){Be&&(rt(),Be(),ze(null))}),[Be]),(ct||st)&&(xe.onClick=function(e){var t;ke.current&&st?Le(!1):!ke.current&&ct&&(Ge(e),Le(!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=be.onClick)||void 0===t||t.call.apply(t,[be,e].concat(r))}),function(e,t,n,o,i,a,l,c){var s=r.useRef(e);s.current=e,r.useEffect((function(){if(t&&o&&(!i||a)){var e=function(e){var t=e.target;s.current&&!l(t)&&c(!1)},r=em(o);r.addEventListener("mousedown",e,!0),r.addEventListener("contextmenu",e,!0);var u=ls(n);return u&&(u.addEventListener("mousedown",e,!0),u.addEventListener("contextmenu",e,!0)),function(){r.removeEventListener("mousedown",e,!0),r.removeEventListener("contextmenu",e,!0),u&&(u.removeEventListener("mousedown",e,!0),u.removeEventListener("contextmenu",e,!0))}}}),[t,n,o,i,a])}(Pe,st,he,ue,S,C,we,Le);var wt,St,Ot=at.has("hover"),_t=lt.has("hover");Ot&&(xt("onMouseEnter",!0,m,(function(e){Ge(e)})),xt("onPointerEnter",!0,m,(function(e){Ge(e)})),wt=function(e){(Pe||De)&&null!==ue&&void 0!==ue&&ue.contains(e.target)&&Le(!0,m)},W&&(xe.onMouseMove=function(e){var t;null===(t=be.onMouseMove)||void 0===t||t.call(be,e)})),_t&&(xt("onMouseLeave",!1,b),xt("onPointerLeave",!1,b),St=function(){Le(!1,b)}),at.has("focus")&&xt("onFocus",!0,x),lt.has("focus")&&xt("onBlur",!1,w),at.has("contextMenu")&&(xe.onContextMenu=function(e){var t;ke.current&&lt.has("contextMenu")?Le(!1):(Ge(e),Le(!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=be.onContextMenu)||void 0===t||t.call.apply(t,[be,e].concat(r))}),Z&&(xe.className=c()(be.className,Z));var Ct=O(O({},be),xe),Et={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach((function(e){ee[e]&&(Et[e]=function(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];null===(t=Ct[e])||void 0===t||t.call.apply(t,[Ct].concat(r)),ee[e].apply(ee,r)})}));var Pt=r.cloneElement(ye,O(O({},Ct),Et)),Mt={x:Ze,y:Je},kt=Y?O({},!0!==Y?Y:{}):null;return r.createElement(r.Fragment,null,r.createElement(qh,{disabled:!Pe,ref:me,onResize:function(){bt(),ut()}},r.createElement(qv,{getTriggerDOMNode:J},Pt)),r.createElement(Kv.Provider,{value:le},r.createElement(Uv,{portal:e,ref:fe,prefixCls:i,popup:I,className:c()(T,dt),style:j,target:he,onMouseEnter:wt,onMouseLeave:St,onPointerEnter:wt,zIndex:F,open:Pe,keepDom:De,fresh:H,onClick:V,mask:S,motion:Se,maskMotion:Oe,onVisibleChanged:function(e){Ne(!1),rt(),null===v||void 0===v||v(e)},onPrepare:function(){return new Promise((function(e){bt(),ze((function(){return e}))}))},forceRender:M,autoDestroy:te,getPopupContainer:E,align:nt,arrow:kt,arrowPos:Mt,ready:Xe,offsetX:qe,offsetY:Ke,offsetR:$e,offsetB:Qe,onAlign:ut,stretch:B,targetWidth:pt/et,targetHeight:mt/tt})))}));return t}(Yg);var fm={shiftX:64,adjustY:1},pm={adjustX:1,shiftY:!0},hm=[0,0],gm={left:{points:["cr","cl"],overflow:pm,offset:[-4,0],targetOffset:hm},right:{points:["cl","cr"],overflow:pm,offset:[4,0],targetOffset:hm},top:{points:["bc","tc"],overflow:fm,offset:[0,-4],targetOffset:hm},bottom:{points:["tc","bc"],overflow:fm,offset:[0,4],targetOffset:hm},topLeft:{points:["bl","tl"],overflow:fm,offset:[0,-4],targetOffset:hm},leftTop:{points:["tr","tl"],overflow:pm,offset:[-4,0],targetOffset:hm},topRight:{points:["br","tr"],overflow:fm,offset:[0,-4],targetOffset:hm},rightTop:{points:["tl","tr"],overflow:pm,offset:[4,0],targetOffset:hm},bottomRight:{points:["tr","br"],overflow:fm,offset:[0,4],targetOffset:hm},rightBottom:{points:["bl","br"],overflow:pm,offset:[4,0],targetOffset:hm},bottomLeft:{points:["tl","bl"],overflow:fm,offset:[0,4],targetOffset:hm},leftBottom:{points:["br","bl"],overflow:pm,offset:[-4,0],targetOffset:hm}};var vm=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],mm=function(e,t){var n=e.overlayClassName,o=e.trigger,i=void 0===o?["hover"]:o,a=e.mouseEnterDelay,l=void 0===a?0:a,c=e.mouseLeaveDelay,s=void 0===c?.1:c,u=e.overlayStyle,d=e.prefixCls,f=void 0===d?"rc-tooltip":d,p=e.children,v=e.onVisibleChange,m=e.afterVisibleChange,y=e.transitionName,b=e.animation,x=e.motion,w=e.placement,S=void 0===w?"right":w,_=e.align,C=void 0===_?{}:_,E=e.destroyTooltipOnHide,P=void 0!==E&&E,M=e.defaultVisible,k=e.getTooltipContainer,A=e.overlayInnerStyle,I=(e.arrowContent,e.overlay),T=e.id,j=e.showArrow,L=void 0===j||j,R=g(e,vm),D=(0,r.useRef)(null);(0,r.useImperativeHandle)(t,(function(){return D.current}));var N=O({},R);"visible"in e&&(N.popupVisible=e.visible);return r.createElement(dm,h({popupClassName:n,prefixCls:f,popup:function(){return r.createElement(Rg,{key:"content",prefixCls:f,id:T,overlayInnerStyle:A},I)},action:i,builtinPlacements:gm,popupPlacement:S,ref:D,popupAlign:C,getPopupContainer:k,onPopupVisibleChange:v,afterPopupVisibleChange:m,popupTransitionName:y,popupAnimation:b,popupMotion:x,defaultPopupVisible:M,autoDestroy:P,mouseLeaveDelay:s,popupStyle:u,mouseEnterDelay:l,arrow:L},N),p)};const ym=(0,r.forwardRef)(mm);const bm=r.createContext(void 0),xm=100,wm=1e3,Sm={Modal:xm,Drawer:xm,Popover:xm,Popconfirm:xm,Tooltip:xm,Tour:xm,FloatButton:xm},Om={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};const _m=(e,t)=>{const[,n]=wl(),o=r.useContext(bm),i=function(e){return e in Sm}(e);let a;if(void 0!==t)a=[t,t];else{let r=null!==o&&void 0!==o?o:0;r+=i?(o?0:n.zIndexPopupBase)+Sm[e]:Om[e],a=[void 0===o?t:r,r]}return a},Cm=()=>({height:0,opacity:0}),Em=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},Pm=e=>({height:e?e.offsetHeight:0}),Mm=(e,t)=>!0===(null===t||void 0===t?void 0:t.deadline)||"height"===t.propertyName,km=(e,t,n)=>void 0!==n?n:"".concat(e,"-").concat(t),Am=function(){return{motionName:"".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:s,"-motion-collapse"),onAppearStart:Cm,onEnterStart:Cm,onAppearActive:Em,onEnterActive:Em,onLeaveStart:Pm,onLeaveActive:Cm,onAppearEnd:Mm,onEnterEnd:Mm,onLeaveEnd:Mm,motionDeadline:500}};function Im(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,o=t/2,i=o,a=1*r/Math.sqrt(2),l=o-r*(1-1/Math.sqrt(2)),c=o-n*(1/Math.sqrt(2)),s=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),u=2*o-c,d=s,f=2*o-a,p=l,h=2*o-0,g=i,v=o*Math.sqrt(2)+r*(Math.sqrt(2)-2),m=r*(Math.sqrt(2)-1),y="polygon(".concat(m,"px 100%, 50% ").concat(m,"px, ").concat(2*o-m,"px 100%, ").concat(m,"px 100%)");return{arrowShadowWidth:v,arrowPath:"path('M ".concat(0," ").concat(i," A ").concat(r," ").concat(r," 0 0 0 ").concat(a," ").concat(l," L ").concat(c," ").concat(s," A ").concat(n," ").concat(n," 0 0 1 ").concat(u," ").concat(d," L ").concat(f," ").concat(p," A ").concat(r," ").concat(r," 0 0 0 ").concat(h," ").concat(g," Z')"),arrowPolygon:y}}const Tm=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:o,arrowPath:i,arrowShadowWidth:a,borderRadiusXS:l,calc:c}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:c(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 ".concat(yn(l)," 0")},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},jm=8;function Lm(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?jm:r}}function Rm(e,t){return e?t:{}}function Dm(e,t,n){const{componentCls:r,boxShadowPopoverArrow:o,arrowOffsetVertical:i,arrowOffsetHorizontal:a}=e,{arrowDistance:l=0,arrowPlacement:c={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({["".concat(r,"-arrow")]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},Tm(e,t,o)),{"&:before":{background:t}})]},Rm(!!c.top,{[["&-placement-top > ".concat(r,"-arrow"),"&-placement-topLeft > ".concat(r,"-arrow"),"&-placement-topRight > ".concat(r,"-arrow")].join(",")]:{bottom:l,transform:"translateY(100%) rotate(180deg)"},["&-placement-top > ".concat(r,"-arrow")]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":a,["> ".concat(r,"-arrow")]:{left:{_skip_check_:!0,value:a}}},"&-placement-topRight":{"--arrow-offset-horizontal":"calc(100% - ".concat(yn(a),")"),["> ".concat(r,"-arrow")]:{right:{_skip_check_:!0,value:a}}}})),Rm(!!c.bottom,{[["&-placement-bottom > ".concat(r,"-arrow"),"&-placement-bottomLeft > ".concat(r,"-arrow"),"&-placement-bottomRight > ".concat(r,"-arrow")].join(",")]:{top:l,transform:"translateY(-100%)"},["&-placement-bottom > ".concat(r,"-arrow")]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":a,["> ".concat(r,"-arrow")]:{left:{_skip_check_:!0,value:a}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":"calc(100% - ".concat(yn(a),")"),["> ".concat(r,"-arrow")]:{right:{_skip_check_:!0,value:a}}}})),Rm(!!c.left,{[["&-placement-left > ".concat(r,"-arrow"),"&-placement-leftTop > ".concat(r,"-arrow"),"&-placement-leftBottom > ".concat(r,"-arrow")].join(",")]:{right:{_skip_check_:!0,value:l},transform:"translateX(100%) rotate(90deg)"},["&-placement-left > ".concat(r,"-arrow")]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},["&-placement-leftTop > ".concat(r,"-arrow")]:{top:i},["&-placement-leftBottom > ".concat(r,"-arrow")]:{bottom:i}})),Rm(!!c.right,{[["&-placement-right > ".concat(r,"-arrow"),"&-placement-rightTop > ".concat(r,"-arrow"),"&-placement-rightBottom > ".concat(r,"-arrow")].join(",")]:{left:{_skip_check_:!0,value:l},transform:"translateX(-100%) rotate(-90deg)"},["&-placement-right > ".concat(r,"-arrow")]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},["&-placement-rightTop > ".concat(r,"-arrow")]:{top:i},["&-placement-rightBottom > ".concat(r,"-arrow")]:{bottom:i}}))}}const Nm={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"]}},Fm={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"]}},Bm=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function zm(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:i,visibleFirst:a}=e,l=t/2,c={};return Object.keys(Nm).forEach((e=>{const s=r&&Fm[e]||Nm[e],u=Object.assign(Object.assign({},s),{offset:[0,0],dynamicInset:!0});switch(c[e]=u,Bm.has(e)&&(u.autoArrow=!1),e){case"top":case"topLeft":case"topRight":u.offset[1]=-l-o;break;case"bottom":case"bottomLeft":case"bottomRight":u.offset[1]=l+o;break;case"left":case"leftTop":case"leftBottom":u.offset[0]=-l-o;break;case"right":case"rightTop":case"rightBottom":u.offset[0]=l+o}const d=Lm({contentRadius:i,limitVerticalRadius:!0});if(r)switch(e){case"topLeft":case"bottomLeft":u.offset[0]=-d.arrowOffsetHorizontal-l;break;case"topRight":case"bottomRight":u.offset[0]=d.arrowOffsetHorizontal+l;break;case"leftTop":case"rightTop":u.offset[1]=2*-d.arrowOffsetHorizontal+l;break;case"leftBottom":case"rightBottom":u.offset[1]=2*d.arrowOffsetHorizontal-l}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,d,t,n),a&&(u.htmlRegion="visibleFirst")})),c}function Hm(){}const Wm=r.createContext({}),Vm=()=>{const e=()=>{};return e.deprecated=Hm,e},Gm=e=>({animationDuration:e,animationFillMode:"both"}),Ym=e=>({animationDuration:e,animationFillMode:"both"}),Um=function(e,t,n,r){const o=arguments.length>4&&void 0!==arguments[4]&&arguments[4]?"&":"";return{["\n      ".concat(o).concat(e,"-enter,\n      ").concat(o).concat(e,"-appear\n    ")]:Object.assign(Object.assign({},Gm(r)),{animationPlayState:"paused"}),["".concat(o).concat(e,"-leave")]:Object.assign(Object.assign({},Ym(r)),{animationPlayState:"paused"}),["\n      ".concat(o).concat(e,"-enter").concat(e,"-enter-active,\n      ").concat(o).concat(e,"-appear").concat(e,"-appear-active\n    ")]:{animationName:t,animationPlayState:"running"},["".concat(o).concat(e,"-leave").concat(e,"-leave-active")]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},Xm=new Vr("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),qm=new Vr("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Km=new Vr("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),$m=new Vr("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),Qm=new Vr("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),Zm=new Vr("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),Jm={zoom:{inKeyframes:Xm,outKeyframes:qm},"zoom-big":{inKeyframes:Km,outKeyframes:$m},"zoom-big-fast":{inKeyframes:Km,outKeyframes:$m},"zoom-left":{inKeyframes:new Vr("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),outKeyframes:new Vr("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}})},"zoom-right":{inKeyframes:new Vr("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),outKeyframes:new Vr("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}})},"zoom-up":{inKeyframes:Qm,outKeyframes:Zm},"zoom-down":{inKeyframes:new Vr("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),outKeyframes:new Vr("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}})}},ey=(e,t)=>{const{antCls:n}=e,r="".concat(n,"-").concat(t),{inKeyframes:o,outKeyframes:i}=Jm[t];return[Um(r,o,i,"zoom-big-fast"===t?e.motionDurationFast:e.motionDurationMid),{["\n        ".concat(r,"-enter,\n        ").concat(r,"-appear\n      ")]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},["".concat(r,"-leave")]:{animationTimingFunction:e.motionEaseInOutCirc}}]},ty=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function ny(e,t){return ty.reduce(((n,r)=>{const o=e["".concat(r,"1")],i=e["".concat(r,"3")],a=e["".concat(r,"6")],l=e["".concat(r,"7")];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:i,darkColor:a,textColor:l}))}),{})}const ry=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:o,tooltipBorderRadius:i,zIndexPopup:a,controlHeight:l,boxShadowSecondary:c,paddingSM:s,paddingXS:u}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Ur(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,["".concat(t,"-inner")]:{minWidth:"1em",minHeight:l,padding:"".concat(yn(e.calc(s).div(2).equal())," ").concat(yn(u)),color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:i,boxShadow:c,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{["".concat(t,"-inner")]:{borderRadius:e.min(i,jm)}},["".concat(t,"-content")]:{position:"relative"}}),ny(e,((e,n)=>{let{darkColor:r}=n;return{["&".concat(t,"-").concat(e)]:{["".concat(t,"-inner")]:{backgroundColor:r},["".concat(t,"-arrow")]:{"--antd-arrow-background-color":r}}}}))),{"&-rtl":{direction:"rtl"}})},Dm(e,"var(--antd-arrow-background-color)"),{["".concat(t,"-pure")]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},oy=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},Lm({contentRadius:e.borderRadius,limitVerticalRadius:!0})),Im(Ui(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),iy=function(e){const t=Ol("Tooltip",(e=>{const{borderRadius:t,colorTextLightSolid:n,colorBgSpotlight:r}=e,o=Ui(e,{tooltipMaxWidth:250,tooltipColor:n,tooltipBorderRadius:t,tooltipBg:r});return[ry(o),ey(e,"zoom-big-fast")]}),oy,{resetStyle:!1,injectStyle:!(arguments.length>1&&void 0!==arguments[1])||arguments[1]});return t(e)},ay=ty.map((e=>"".concat(e,"-inverse"))),ly=["success","processing","error","default","warning"];function cy(e){return!(arguments.length>1&&void 0!==arguments[1])||arguments[1]?[].concat(Ds(ay),Ds(ty)).includes(e):ty.includes(e)}function sy(e,t){const n=cy(t),r=c()({["".concat(e,"-").concat(t)]:t&&n}),o={},i={};return t&&!n&&(o.background=t,i["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:i}}const uy=e=>{const{prefixCls:t,className:n,placement:o="top",title:i,color:a,overlayInnerStyle:l}=e,{getPrefixCls:s}=r.useContext(f),u=s("tooltip",t),[d,p,h]=iy(u),g=sy(u,a),v=g.arrowStyle,m=Object.assign(Object.assign({},l),g.overlayStyle),y=c()(p,h,u,"".concat(u,"-pure"),"".concat(u,"-placement-").concat(o),n,g.className);return d(r.createElement("div",{className:y,style:v},r.createElement("div",{className:"".concat(u,"-arrow")}),r.createElement(Rg,Object.assign({},e,{className:p,prefixCls:u,overlayInnerStyle:m}),i)))};var dy=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 fy=r.forwardRef(((e,t)=>{var n,o;const{prefixCls:i,openClassName:a,getTooltipContainer:l,overlayClassName:s,color:u,overlayInnerStyle:d,children:p,afterOpenChange:h,afterVisibleChange:g,destroyTooltipOnHide:v,arrow:m=!0,title:y,overlay:b,builtinPlacements:x,arrowPointAtCenter:w=!1,autoAdjustOverflow:S=!0}=e,O=!!m,[,_]=wl(),{getPopupContainer:C,getPrefixCls:E,direction:P}=r.useContext(f),M=Vm("Tooltip"),k=r.useRef(null),A=()=>{var e;null===(e=k.current)||void 0===e||e.forceAlign()};r.useImperativeHandle(t,(()=>{var e;return{forceAlign:A,forcePopupAlign:()=>{M.deprecated(!1,"forcePopupAlign","forceAlign"),A()},nativeElement:null===(e=k.current)||void 0===e?void 0:e.nativeElement}}));const[I,T]=pd(!1,{value:null!==(n=e.open)&&void 0!==n?n:e.visible,defaultValue:null!==(o=e.defaultOpen)&&void 0!==o?o:e.defaultVisible}),j=!y&&!b&&0!==y,L=r.useMemo((()=>{var e,t;let n=w;return"object"===typeof m&&(n=null!==(t=null!==(e=m.pointAtCenter)&&void 0!==e?e:m.arrowPointAtCenter)&&void 0!==t?t:w),x||zm({arrowPointAtCenter:n,autoAdjustOverflow:S,arrowWidth:O?_.sizePopupArrow:0,borderRadius:_.borderRadius,offset:_.marginXXS,visibleFirst:!0})}),[w,m,x,_]),R=r.useMemo((()=>0===y?y:b||y||""),[b,y]),D=r.createElement(Xc,{space:!0},"function"===typeof R?R():R),{getPopupContainer:N,placement:F="top",mouseEnterDelay:B=.1,mouseLeaveDelay:z=.1,overlayStyle:H,rootClassName:W}=e,V=dy(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),G=E("tooltip",i),Y=E(),U=e["data-popover-inject"];let X=I;"open"in e||"visible"in e||!j||(X=!1);const q=r.isValidElement(p)&&!Ou(p)?p:r.createElement("span",null,p),K=q.props,$=K.className&&"string"!==typeof K.className?K.className:c()(K.className,a||"".concat(G,"-open")),[Q,Z,J]=iy(G,!U),ee=sy(G,u),te=ee.arrowStyle,ne=Object.assign(Object.assign({},d),ee.overlayStyle),re=c()(s,{["".concat(G,"-rtl")]:"rtl"===P},ee.className,W,Z,J),[oe,ie]=_m("Tooltip",V.zIndex),ae=r.createElement(ym,Object.assign({},V,{zIndex:oe,showArrow:O,placement:F,mouseEnterDelay:B,mouseLeaveDelay:z,prefixCls:G,overlayClassName:re,overlayStyle:Object.assign(Object.assign({},te),H),getTooltipContainer:N||l||C,ref:k,builtinPlacements:L,overlay:D,visible:X,onVisibleChange:t=>{var n,r;T(!j&&t),j||(null===(n=e.onOpenChange)||void 0===n||n.call(e,t),null===(r=e.onVisibleChange)||void 0===r||r.call(e,t))},afterVisibleChange:null!==h&&void 0!==h?h:g,overlayInnerStyle:ne,arrowContent:r.createElement("span",{className:"".concat(G,"-arrow-content")}),motion:{motionName:km(Y,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!v}),X?Cu(q,{className:$}):q);return Q(r.createElement(bm.Provider,{value:ie},ae))})),py=fy;py._InternalPanelDoNotUseOrYouWillBeFired=uy;const hy=py;const gy={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"};var vy=function(e,t){return r.createElement(xs,qc({},e,{ref:t,icon:gy}))};const my=r.forwardRef(vy);var yy={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>=yy.F1&&t<=yy.F12)return!1;switch(t){case yy.ALT:case yy.CAPS_LOCK:case yy.CONTEXT_MENU:case yy.CTRL:case yy.DOWN:case yy.END:case yy.ESC:case yy.HOME:case yy.INSERT:case yy.LEFT:case yy.MAC_FF_META:case yy.META:case yy.NUMLOCK:case yy.NUM_CENTER:case yy.PAGE_DOWN:case yy.PAGE_UP:case yy.PAUSE:case yy.PRINT_SCREEN:case yy.RIGHT:case yy.SHIFT:case yy.UP:case yy.WIN_KEY:case yy.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=yy.ZERO&&e<=yy.NINE)return!0;if(e>=yy.NUM_ZERO&&e<=yy.NUM_MULTIPLY)return!0;if(e>=yy.A&&e<=yy.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case yy.SPACE:case yy.QUESTION_MARK:case yy.NUM_PLUS:case yy.NUM_MINUS:case yy.NUM_PERIOD:case yy.NUM_DIVISION:case yy.SEMICOLON:case yy.DASH:case yy.EQUALS:case yy.COMMA:case yy.PERIOD:case yy.SLASH:case yy.APOSTROPHE:case yy.SINGLE_QUOTE:case yy.OPEN_SQUARE_BRACKET:case yy.BACKSLASH:case yy.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};const by=yy,xy=e=>{const t={};return[1,2,3,4,5].forEach((n=>{t["\n      h".concat(n,"&,\n      div&-h").concat(n,",\n      div&-h").concat(n," > textarea,\n      h").concat(n,"\n    ")]=((e,t,n,r)=>{const{titleMarginBottom:o,fontWeightStrong:i}=r;return{marginBottom:o,color:n,fontWeight:i,fontSize:e,lineHeight:t}})(e["fontSizeHeading".concat(n)],e["lineHeightHeading".concat(n)],e.colorTextHeading,e)})),t},wy=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},$r(e)),{userSelect:"text",["&[disabled], &".concat(t,"-disabled")]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},Sy=e=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:_a[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:600},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),Oy=e=>{const{componentCls:t,paddingSM:n}=e,r=n;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),marginTop:e.calc(r).mul(-1).equal(),marginBottom:"calc(1em - ".concat(yn(r),")")},["".concat(t,"-edit-content-confirm")]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},_y=e=>({["".concat(e.componentCls,"-copy-success")]:{"\n    &,\n    &:hover,\n    &:focus":{color:e.colorSuccess}},["".concat(e.componentCls,"-copy-icon-only")]:{marginInlineStart:0}}),Cy=e=>{const{componentCls:t,titleMarginTop:n}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,["&".concat(t,"-secondary")]:{color:e.colorTextDescription},["&".concat(t,"-success")]:{color:e.colorSuccess},["&".concat(t,"-warning")]:{color:e.colorWarning},["&".concat(t,"-danger")]:{color:e.colorError,"a&:active, a&:focus":{color:e.colorErrorActive},"a&:hover":{color:e.colorErrorHover}},["&".concat(t,"-disabled")]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n        div&,\n        p\n      ":{marginBottom:"1em"}},xy(e)),{["\n      & + h1".concat(t,",\n      & + h2").concat(t,",\n      & + h3").concat(t,",\n      & + h4").concat(t,",\n      & + h5").concat(t,"\n      ")]:{marginTop:n},"\n      div,\n      ul,\n      li,\n      p,\n      h1,\n      h2,\n      h3,\n      h4,\n      h5":{"\n        + h1,\n        + h2,\n        + h3,\n        + h4,\n        + h5\n        ":{marginTop:n}}}),Sy(e)),wy(e)),{["\n        ".concat(t,"-expand,\n        ").concat(t,"-collapse,\n        ").concat(t,"-edit,\n        ").concat(t,"-copy\n      ")]:Object.assign(Object.assign({},$r(e)),{marginInlineStart:e.marginXXS})}),Oy(e)),_y(e)),{"\n  a&-ellipsis,\n  span&-ellipsis\n  ":{display:"inline-block",maxWidth:"100%"},"&-ellipsis-single-line":{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"},"> code":{paddingBlock:0,maxWidth:"calc(100% - 1.2em)",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"bottom",boxSizing:"content-box"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),{"&-rtl":{direction:"rtl"}})}},Ey=Ol("Typography",(e=>[Cy(e)]),(()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}))),Py=e=>{const{prefixCls:t,"aria-label":n,className:o,style:i,direction:a,maxLength:l,autoSize:s=!0,value:u,onSave:d,onCancel:f,onEnd:p,component:h,enterIcon:g=r.createElement(my,null)}=e,v=r.useRef(null),m=r.useRef(!1),y=r.useRef(),[b,x]=r.useState(u);r.useEffect((()=>{x(u)}),[u]),r.useEffect((()=>{var e;if(null===(e=v.current)||void 0===e?void 0:e.resizableTextArea){const{textArea:e}=v.current.resizableTextArea;e.focus();const{length:t}=e.value;e.setSelectionRange(t,t)}}),[]);const w=()=>{d(b.trim())},[S,O,_]=Ey(t),C=c()(t,"".concat(t,"-edit-content"),{["".concat(t,"-rtl")]:"rtl"===a,["".concat(t,"-").concat(h)]:!!h},o,O,_);return S(r.createElement("div",{className:C,style:i},r.createElement(hg,{ref:v,maxLength:l,value:b,onChange:e=>{let{target:t}=e;x(t.value.replace(/[\n\r]/g,""))},onKeyDown:e=>{let{keyCode:t}=e;m.current||(y.current=t)},onKeyUp:e=>{let{keyCode:t,ctrlKey:n,altKey:r,metaKey:o,shiftKey:i}=e;y.current!==t||m.current||n||r||o||i||(t===by.ENTER?(w(),null===p||void 0===p||p()):t===by.ESC&&f())},onCompositionStart:()=>{m.current=!0},onCompositionEnd:()=>{m.current=!1},onBlur:()=>{w()},"aria-label":n,rows:1,autoSize:s}),null!==g?Cu(g,{className:"".concat(t,"-edit-content-confirm")}):null))};var My=n(5270),ky=n.n(My);var Ay=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(N1){i(N1)}}function l(e){try{c(r.throw(e))}catch(N1){i(N1)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}c((r=r.apply(e,t||[])).next())}))};const Iy=e=>{let{copyConfig:t,children:n}=e;const[o,i]=r.useState(!1),[a,l]=r.useState(!1),c=r.useRef(null),s=()=>{c.current&&clearTimeout(c.current)},u={};t.format&&(u.format=t.format),r.useEffect((()=>s),[]);return{copied:o,copyLoading:a,onClick:Ns((e=>Ay(void 0,void 0,void 0,(function*(){var r;null===e||void 0===e||e.preventDefault(),null===e||void 0===e||e.stopPropagation(),l(!0);try{const o="function"===typeof t.text?yield t.text():t.text;ky()(o||function(e){return arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&(void 0===e||null===e)?[]:Array.isArray(e)?e:[e]}(n,!0).join("")||"",u),l(!1),i(!0),s(),c.current=setTimeout((()=>{i(!1)}),3e3),null===(r=t.onCopy)||void 0===r||r.call(t,e)}catch(o){throw l(!1),o}}))))}};function Ty(e,t){return r.useMemo((()=>{const n=!!e;return[n,Object.assign(Object.assign({},t),n&&"object"===typeof e?e:null)]}),[e])}const jy=e=>{const t=(0,r.useRef)();return(0,r.useEffect)((()=>{t.current=e})),t.current},Ly=(e,t,n)=>(0,r.useMemo)((()=>!0===e?{title:null!==t&&void 0!==t?t:n}:(0,r.isValidElement)(e)?{title:e}:"object"===typeof e?Object.assign({title:null!==t&&void 0!==t?t:n},e):{title:e}),[e,t,n]);var Ry=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 Dy=r.forwardRef(((e,t)=>{const{prefixCls:n,component:o="article",className:i,rootClassName:a,setContentRef:l,children:s,direction:u,style:d}=e,p=Ry(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:h,direction:g,typography:v}=r.useContext(f),m=null!==u&&void 0!==u?u:g,y=l?kc(t,l):t,b=h("typography",n);const[x,w,S]=Ey(b),O=c()(b,null===v||void 0===v?void 0:v.className,{["".concat(b,"-rtl")]:"rtl"===m},i,a,w,S),_=Object.assign(Object.assign({},null===v||void 0===v?void 0:v.style),d);return x(r.createElement(o,Object.assign({className:O,style:_,ref:y},p),s))}));const Ny=Dy;const Fy={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"};var By=function(e,t){return r.createElement(xs,qc({},e,{ref:t,icon:Fy}))};const zy=r.forwardRef(By);const Hy={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"};var Wy=function(e,t){return r.createElement(xs,qc({},e,{ref:t,icon:Hy}))};const Vy=r.forwardRef(Wy);function Gy(e){return!1===e?[!1,!1]:Array.isArray(e)?e:[e]}function Yy(e,t,n){return!0===e||void 0===e?t:e||n&&t}const Uy=e=>["string","number"].includes(typeof e),Xy=e=>{let{prefixCls:t,copied:n,locale:o,iconOnly:i,tooltips:a,icon:l,tabIndex:s,onCopy:u,loading:d}=e;const f=Gy(a),p=Gy(l),{copied:h,copy:g}=null!==o&&void 0!==o?o:{},v=n?h:g,m=Yy(f[n?1:0],v),y="string"===typeof m?m:v;return r.createElement(hy,{title:m},r.createElement("button",{type:"button",className:c()("".concat(t,"-copy"),{["".concat(t,"-copy-success")]:n,["".concat(t,"-copy-icon-only")]:i}),onClick:u,"aria-label":y,tabIndex:s},n?Yy(p[1],r.createElement(zy,null),!0):Yy(p[0],d?r.createElement(tp,null):r.createElement(Vy,null),!0)))},qy=r.forwardRef(((e,t)=>{let{style:n,children:o}=e;const i=r.useRef(null);return r.useImperativeHandle(t,(()=>({isExceed:()=>{const e=i.current;return e.scrollHeight>e.clientHeight},getHeight:()=>i.current.clientHeight}))),r.createElement("span",{"aria-hidden":!0,ref:i,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},n)},o)}));function Ky(e,t){let n=0;const r=[];for(let o=0;o<e.length;o+=1){if(n===t)return r;const i=e[o],a=n+(Uy(i)?String(i).length:1);if(a>t){const e=t-n;return r.push(String(i).slice(0,e)),r}r.push(i),n=a}return e}const $y=0,Qy=4,Zy={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function Jy(e){const{enableMeasure:t,width:n,text:o,children:i,rows:a,expanded:l,miscDeps:c,onEllipsis:s}=e,u=r.useMemo((()=>Tc(o)),[o]),d=r.useMemo((()=>(e=>e.reduce(((e,t)=>e+(Uy(t)?String(t).length:1)),0))(u)),[o]),f=r.useMemo((()=>i(u,!1)),[o]),[p,h]=r.useState(null),g=r.useRef(null),v=r.useRef(null),m=r.useRef(null),y=r.useRef(null),b=r.useRef(null),[x,w]=r.useState(!1),[S,O]=r.useState($y),[_,C]=r.useState(0),[E,P]=r.useState(null);ud((()=>{O(t&&n&&d?1:$y)}),[n,o,a,t,u]),ud((()=>{var e,t,n,r;if(1===S){O(2);const e=v.current&&getComputedStyle(v.current).whiteSpace;P(e)}else if(2===S){const o=!!(null===(e=m.current)||void 0===e?void 0:e.isExceed());O(o?3:Qy),h(o?[0,d]:null),w(o);const i=(null===(t=m.current)||void 0===t?void 0:t.getHeight())||0,l=1===a?0:(null===(n=y.current)||void 0===n?void 0:n.getHeight())||0,c=(null===(r=b.current)||void 0===r?void 0:r.getHeight())||0,u=Math.max(i,l+c);C(u+1),s(o)}}),[S]);const M=p?Math.ceil((p[0]+p[1])/2):0;ud((()=>{var e;const[t,n]=p||[0,0];if(t!==n){const r=((null===(e=g.current)||void 0===e?void 0:e.getHeight())||0)>_;let o=M;n-t===1&&(o=r?t:n),h(r?[t,o]:[o,n])}}),[p,M]);const k=r.useMemo((()=>{if(!t)return i(u,!1);if(3!==S||!p||p[0]!==p[1]){const e=i(u,!1);return[Qy,$y].includes(S)?e:r.createElement("span",{style:Object.assign(Object.assign({},Zy),{WebkitLineClamp:a})},e)}return i(l?u:Ky(u,p[0]),x)}),[l,S,p,u].concat(Ds(c))),A={width:n,margin:0,padding:0,whiteSpace:"nowrap"===E?"normal":"inherit"};return r.createElement(r.Fragment,null,k,2===S&&r.createElement(r.Fragment,null,r.createElement(qy,{style:Object.assign(Object.assign(Object.assign({},A),Zy),{WebkitLineClamp:a}),ref:m},f),r.createElement(qy,{style:Object.assign(Object.assign(Object.assign({},A),Zy),{WebkitLineClamp:a-1}),ref:y},f),r.createElement(qy,{style:Object.assign(Object.assign(Object.assign({},A),Zy),{WebkitLineClamp:1}),ref:b},i([],!0))),3===S&&p&&p[0]!==p[1]&&r.createElement(qy,{style:Object.assign(Object.assign({},A),{top:400}),ref:g},i(Ky(u,M),!0)),1===S&&r.createElement("span",{style:{whiteSpace:"inherit"},ref:v}))}const eb=e=>{let{enableEllipsis:t,isEllipsis:n,children:o,tooltipProps:i}=e;return(null===i||void 0===i?void 0:i.title)&&t?r.createElement(hy,Object.assign({open:!!n&&void 0},i),o):o};var tb=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 nb=r.forwardRef(((e,t)=>{var n;const{prefixCls:o,className:i,style:a,type:l,disabled:s,children:u,ellipsis:d,editable:p,copyable:h,component:g,title:v}=e,m=tb(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:y,direction:b}=r.useContext(f),[x]=Lg("Text"),w=r.useRef(null),S=r.useRef(null),O=y("typography",o),_=hu(m,["mark","code","delete","underline","strong","keyboard","italic"]),[C,E]=Ty(p),[P,M]=pd(!1,{value:E.editing}),{triggerType:k=["icon"]}=E,A=e=>{var t;e&&(null===(t=E.onStart)||void 0===t||t.call(E)),M(e)},I=jy(P);ud((()=>{var e;!P&&I&&(null===(e=S.current)||void 0===e||e.focus())}),[P]);const T=e=>{null===e||void 0===e||e.preventDefault(),A(!0)},j=e=>{var t;null===(t=E.onChange)||void 0===t||t.call(E,e),A(!1)},L=()=>{var e;null===(e=E.onCancel)||void 0===e||e.call(E),A(!1)},[R,D]=Ty(h),{copied:N,copyLoading:F,onClick:B}=Iy({copyConfig:D,children:u}),[z,H]=r.useState(!1),[W,V]=r.useState(!1),[G,Y]=r.useState(!1),[U,X]=r.useState(!1),[q,K]=r.useState(!0),[$,Q]=Ty(d,{expandable:!1,symbol:e=>e?null===x||void 0===x?void 0:x.collapse:null===x||void 0===x?void 0:x.expand}),[Z,J]=pd(Q.defaultExpanded||!1,{value:Q.expanded}),ee=$&&(!Z||"collapsible"===Q.expandable),{rows:te=1}=Q,ne=r.useMemo((()=>ee&&(void 0!==Q.suffix||Q.onEllipsis||Q.expandable||C||R)),[ee,Q,C,R]);ud((()=>{$&&!ne&&(H(wg("webkitLineClamp")),V(wg("textOverflow")))}),[ne,$]);const[re,oe]=r.useState(ee),ie=r.useMemo((()=>!ne&&(1===te?W:z)),[ne,W,z]);ud((()=>{oe(ie&&ee)}),[ie,ee]);const ae=ee&&(re?U:G),le=ee&&1===te&&re,ce=ee&&te>1&&re,[se,ue]=r.useState(0),de=e=>{var t;Y(e),G!==e&&(null===(t=Q.onEllipsis)||void 0===t||t.call(Q,e))};r.useEffect((()=>{const e=w.current;if($&&re&&e){const t=function(e){const t=document.createElement("em");e.appendChild(t);const n=e.getBoundingClientRect(),r=t.getBoundingClientRect();return e.removeChild(t),n.left>r.left||r.right>n.right||n.top>r.top||r.bottom>n.bottom}(e);U!==t&&X(t)}}),[$,re,u,ce,q,se]),r.useEffect((()=>{const e=w.current;if("undefined"===typeof IntersectionObserver||!e||!re||!ee)return;const t=new IntersectionObserver((()=>{K(!!e.offsetParent)}));return t.observe(e),()=>{t.disconnect()}}),[re,ee]);const fe=Ly(Q.tooltip,E.text,u),pe=r.useMemo((()=>{if($&&!re)return[E.text,u,v,fe.title].find(Uy)}),[$,re,v,fe.title,ae]);if(P)return r.createElement(Py,{value:null!==(n=E.text)&&void 0!==n?n:"string"===typeof u?u:"",onSave:j,onCancel:L,onEnd:E.onEnd,prefixCls:O,className:i,style:a,direction:b,component:g,maxLength:E.maxLength,autoSize:E.autoSize,enterIcon:E.enterIcon});const he=()=>{const{expandable:e,symbol:t}=Q;return e?r.createElement("button",{type:"button",key:"expand",className:"".concat(O,"-").concat(Z?"collapse":"expand"),onClick:e=>((e,t)=>{var n;J(t.expanded),null===(n=Q.onExpand)||void 0===n||n.call(Q,e,t)})(e,{expanded:!Z}),"aria-label":Z?x.collapse:null===x||void 0===x?void 0:x.expand},"function"===typeof t?t(Z):t):null},ge=()=>{if(!C)return;const{icon:e,tooltip:t,tabIndex:n}=E,o=Tc(t)[0]||(null===x||void 0===x?void 0:x.edit),i="string"===typeof o?o:"";return k.includes("icon")?r.createElement(hy,{key:"edit",title:!1===t?"":o},r.createElement("button",{type:"button",ref:S,className:"".concat(O,"-edit"),onClick:T,"aria-label":i,tabIndex:n},e||r.createElement(bg,{role:"button"}))):null},ve=e=>[e&&he(),ge(),R?r.createElement(Xy,Object.assign({key:"copy"},D,{prefixCls:O,copied:N,locale:x,onCopy:B,loading:F,iconOnly:null===u||void 0===u})):null];return r.createElement(qh,{onResize:e=>{let{offsetWidth:t}=e;ue(t)},disabled:!ee},(n=>r.createElement(eb,{tooltipProps:fe,enableEllipsis:ee,isEllipsis:ae},r.createElement(Ny,Object.assign({className:c()({["".concat(O,"-").concat(l)]:l,["".concat(O,"-disabled")]:s,["".concat(O,"-ellipsis")]:$,["".concat(O,"-ellipsis-single-line")]:le,["".concat(O,"-ellipsis-multiple-line")]:ce},i),prefixCls:o,style:Object.assign(Object.assign({},a),{WebkitLineClamp:ce?te:void 0}),component:g,ref:kc(n,w,t),direction:b,onClick:k.includes("text")?T:void 0,"aria-label":null===pe||void 0===pe?void 0:pe.toString(),title:v},_),r.createElement(Jy,{enableMeasure:ee&&!re,text:u,rows:te,width:se,onEllipsis:de,expanded:Z,miscDeps:[N,Z,F,C,R]},((t,n)=>function(e,t){let{mark:n,code:o,underline:i,delete:a,strong:l,keyboard:c,italic:s}=e,u=t;function d(e,t){t&&(u=r.createElement(e,{},u))}return d("strong",l),d("u",i),d("del",a),d("code",o),d("mark",n),d("kbd",c),d("i",s),u}(e,r.createElement(r.Fragment,null,t.length>0&&n&&!Z&&pe?r.createElement("span",{key:"show-content","aria-hidden":!0},t):t,(e=>[e&&!Z&&r.createElement("span",{"aria-hidden":!0,key:"ellipsis"},"..."),Q.suffix,ve(e)])(n)))))))))})),rb=nb;var ob=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 ib=r.forwardRef(((e,t)=>{var{ellipsis:n,rel:o}=e,i=ob(e,["ellipsis","rel"]);const a=Object.assign(Object.assign({},i),{rel:void 0===o&&"_blank"===i.target?"noopener noreferrer":o});return delete a.navigate,r.createElement(rb,Object.assign({},a,{ref:t,ellipsis:!!n,component:"a"}))})),ab=ib,lb=r.forwardRef(((e,t)=>r.createElement(rb,Object.assign({ref:t},e,{component:"div"}))));var cb=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 sb=(e,t)=>{var{ellipsis:n}=e,o=cb(e,["ellipsis"]);const i=r.useMemo((()=>n&&"object"===typeof n?hu(n,["expandable","rows"]):n),[n]);return r.createElement(rb,Object.assign({ref:t},o,{ellipsis:i,component:"span"}))},ub=r.forwardRef(sb);var db=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 fb=[1,2,3,4,5],pb=r.forwardRef(((e,t)=>{const{level:n=1}=e,o=db(e,["level"]);const i=fb.includes(n)?"h".concat(n):"h1";return r.createElement(rb,Object.assign({ref:t},o,{component:i}))})),hb=Ny;hb.Text=ub,hb.Link=ab,hb.Title=pb,hb.Paragraph=lb;const gb=hb;function vb(){return vb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vb.apply(this,arguments)}function mb(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function yb(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function bb(e,t){if(e){if("string"===typeof e)return mb(e,t);var n=Object.prototype.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)?mb(e,t):void 0}}function xb(e){return function(e){if(Array.isArray(e))return mb(e)}(e)||yb(e)||bb(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.")}()}function wb(e){return wb="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},wb(e)}function Sb(e){var t=function(e,t){if("object"!=wb(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=wb(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==wb(t)?t:String(t)}function Ob(e,t,n){return(t=Sb(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _b(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 Cb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_b(Object(n),!0).forEach((function(t){Ob(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Eb(e){if(Array.isArray(e))return e}function Pb(){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 Mb(e,t){return Eb(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,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||bb(e,t)||Pb()}function kb(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Ab(e){var t=r.useRef();t.current=e;var n=r.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}function Ib(){return!("undefined"===typeof window||!window.document||!window.document.createElement)}var Tb=Ib()?r.useLayoutEffect:r.useEffect,jb=function(e,t){var n=r.useRef(!0);Tb((function(){return e(n.current)}),t),Tb((function(){return n.current=!1,function(){n.current=!0}}),[])},Lb=function(e,t){jb((function(t){if(!t)return e()}),t)};const Rb=jb;function Db(e){var t=r.useRef(!1),n=Mb(r.useState(e),2),o=n[0],i=n[1];return r.useEffect((function(){return t.current=!1,function(){t.current=!0}}),[]),[o,function(e,n){n&&t.current||i(e)}]}function Nb(e){return void 0!==e}function Fb(e,t){var n=t||{},r=n.defaultValue,o=n.value,i=n.onChange,a=n.postState,l=Mb(Db((function(){return Nb(o)?o:Nb(r)?"function"===typeof r?r():r:"function"===typeof e?e():e})),2),c=l[0],s=l[1],u=void 0!==o?o:c,d=a?a(u):u,f=Ab(i),p=Mb(Db([u]),2),h=p[0],g=p[1];return Lb((function(){var e=h[0];c!==e&&f(c,e)}),[h]),Lb((function(){Nb(o)||s(o)}),[o]),[d,Ab((function(e,t){s(e,t),g([u],t)}))]}var Bb={},zb=[];function Hb(e,t){}function Wb(e,t){}function Vb(e,t,n){t||Bb[n]||(e(!1,n),Bb[n]=!0)}function Gb(e,t){Vb(Hb,e,t)}Gb.preMessage=function(e){zb.push(e)},Gb.resetWarned=function(){Bb={}},Gb.noteOnce=function(e,t){Vb(Wb,e,t)};const Yb=Gb,Ub=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?void 0:e.substr(0,4))};function Xb(e,t,n){var o=r.useRef({});return"value"in o.current&&!n(o.current.condition,t)||(o.current.value=e(),o.current.condition=t),o.current.value}function qb(e,t){"function"===typeof e?e(t):"object"===wb(e)&&e&&"current"in e&&(e.current=t)}function Kb(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter((function(e){return e}));return r.length<=1?r[0]:function(e){t.forEach((function(t){qb(t,e)}))}}function $b(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Xb((function(){return Kb.apply(void 0,t)}),t,(function(e,t){return e.length!==t.length||e.every((function(e,n){return e!==t[n]}))}))}function Qb(e){var t,n,r=(0,N.isMemo)(e)?e.type.type:e.type;return!!("function"!==typeof r||null!==(t=r.prototype)&&void 0!==t&&t.render||r.$$typeof===N.ForwardRef)&&!!("function"!==typeof e||null!==(n=e.prototype)&&void 0!==n&&n.render||e.$$typeof===N.ForwardRef)}const Zb=function(e){var t=e.className,n=e.customizeIcon,o=e.customizeIconProps,i=e.children,a=e.onMouseDown,l=e.onClick,s="function"===typeof n?n(o):n;return r.createElement("span",{className:t,onMouseDown:function(e){e.preventDefault(),null===a||void 0===a||a(e)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:l,"aria-hidden":!0},void 0!==s?s:r.createElement("span",{className:c()(t.split(/\s+/).map((function(e){return"".concat(e,"-icon")})))},i))};var Jb=r.createContext(null);function ex(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,t=r.useRef(null),n=r.useRef(null);return r.useEffect((function(){return function(){window.clearTimeout(n.current)}}),[]),[function(){return t.current},function(r){(r||null===t.current)&&(t.current=r),window.clearTimeout(n.current),n.current=window.setTimeout((function(){t.current=null}),e)}]}var tx={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>=tx.F1&&t<=tx.F12)return!1;switch(t){case tx.ALT:case tx.CAPS_LOCK:case tx.CONTEXT_MENU:case tx.CTRL:case tx.DOWN:case tx.END:case tx.ESC:case tx.HOME:case tx.INSERT:case tx.LEFT:case tx.MAC_FF_META:case tx.META:case tx.NUMLOCK:case tx.NUM_CENTER:case tx.PAGE_DOWN:case tx.PAGE_UP:case tx.PAUSE:case tx.PRINT_SCREEN:case tx.RIGHT:case tx.SHIFT:case tx.UP:case tx.WIN_KEY:case tx.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=tx.ZERO&&e<=tx.NINE)return!0;if(e>=tx.NUM_ZERO&&e<=tx.NUM_MULTIPLY)return!0;if(e>=tx.A&&e<=tx.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case tx.SPACE:case tx.QUESTION_MARK:case tx.NUM_PLUS:case tx.NUM_MINUS:case tx.NUM_PERIOD:case tx.NUM_DIVISION:case tx.SEMICOLON:case tx.DASH:case tx.EQUALS:case tx.COMMA:case tx.PERIOD:case tx.SLASH:case tx.APOSTROPHE:case tx.SINGLE_QUOTE:case tx.OPEN_SQUARE_BRACKET:case tx.BACKSLASH:case tx.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};const nx=tx;var rx="".concat("accept acceptCharset accessKey action allowFullScreen allowTransparency\n    alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\n    charSet checked classID className colSpan cols content contentEditable contextMenu\n    controls coords crossOrigin data dateTime default defer dir disabled download draggable\n    encType form formAction formEncType formMethod formNoValidate formTarget frameBorder\n    headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\n    is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\n    mediaGroup method min minLength multiple muted name noValidate nonce open\n    optimum pattern placeholder poster preload radioGroup readOnly rel required\n    reversed role rowSpan rows sandbox scope scoped scrolling seamless selected\n    shape size sizes span spellCheck src srcDoc srcLang srcSet start step style\n    summary tabIndex target title type useMap value width wmode wrap"," ").concat("onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\n    onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\n    onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\n    onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\n    onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\n    onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\n    onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError").split(/[\s\n]+/);function ox(e,t){return 0===e.indexOf(t)}function ix(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t=!1===n?{aria:!0,data:!0,attr:!0}:!0===n?{aria:!0}:Cb({},n);var r={};return Object.keys(e).forEach((function(n){(t.aria&&("role"===n||ox(n,"aria-"))||t.data&&ox(n,"data-")||t.attr&&rx.includes(n))&&(r[n]=e[n])})),r}var ax=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],lx=void 0;function cx(e,t){var n=e.prefixCls,o=e.invalidate,i=e.item,a=e.renderItem,l=e.responsive,s=e.responsiveDisabled,u=e.registerSize,d=e.itemKey,f=e.className,p=e.style,v=e.children,m=e.display,y=e.order,b=e.component,x=void 0===b?"div":b,w=g(e,ax),S=l&&!m;function _(e){u(d,e)}r.useEffect((function(){return function(){_(null)}}),[]);var C,E=a&&i!==lx?a(i):v;o||(C={opacity:S?0:1,height:S?0:lx,overflowY:S?"hidden":lx,order:l?y:lx,pointerEvents:S?"none":lx,position:S?"absolute":lx});var P={};S&&(P["aria-hidden"]=!0);var M=r.createElement(x,h({className:c()(!o&&n,f),style:O(O({},C),p)},P,w,{ref:t}),E);return l&&(M=r.createElement(qh,{onResize:function(e){_(e.offsetWidth)},disabled:s},M)),M}var sx=r.forwardRef(cx);sx.displayName="Item";const ux=sx;function dx(){var e=r.useRef(null);return function(t){e.current||(e.current=[],function(e){if("undefined"===typeof MessageChannel)tg(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}((function(){(0,Nu.unstable_batchedUpdates)((function(){e.current.forEach((function(e){e()})),e.current=null}))}))),e.current.push(t)}}function fx(e,t){var n=gt(r.useState(t),2),o=n[0],i=n[1];return[o,Ri((function(t){e((function(){i(t)}))}))]}var px=r.createContext(null),hx=["component"],gx=["className"],vx=["className"],mx=function(e,t){var n=r.useContext(px);if(!n){var o=e.component,i=void 0===o?"div":o,a=g(e,hx);return r.createElement(i,h({},a,{ref:t}))}var l=n.className,s=g(n,gx),u=e.className,d=g(e,vx);return r.createElement(px.Provider,{value:null},r.createElement(ux,h({ref:t,className:c()(l,u)},s,d)))},yx=r.forwardRef(mx);yx.displayName="RawItem";const bx=yx;var xx=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],wx="responsive",Sx="invalidate";function Ox(e){return"+ ".concat(e.length," ...")}function _x(e,t){var n=e.prefixCls,o=void 0===n?"rc-overflow":n,i=e.data,a=void 0===i?[]:i,l=e.renderItem,s=e.renderRawItem,u=e.itemKey,d=e.itemWidth,f=void 0===d?10:d,p=e.ssr,v=e.style,m=e.className,y=e.maxCount,b=e.renderRest,x=e.renderRawRest,w=e.suffix,S=e.component,_=void 0===S?"div":S,C=e.itemComponent,E=e.onVisibleChange,P=g(e,xx),M="full"===p,k=dx(),A=gt(fx(k,null),2),I=A[0],T=A[1],j=I||0,L=gt(fx(k,new Map),2),R=L[0],D=L[1],N=gt(fx(k,0),2),F=N[0],B=N[1],z=gt(fx(k,0),2),H=z[0],W=z[1],V=gt(fx(k,0),2),G=V[0],Y=V[1],U=gt((0,r.useState)(null),2),X=U[0],q=U[1],K=gt((0,r.useState)(null),2),$=K[0],Q=K[1],Z=r.useMemo((function(){return null===$&&M?Number.MAX_SAFE_INTEGER:$||0}),[$,I]),J=gt((0,r.useState)(!1),2),ee=J[0],te=J[1],ne="".concat(o,"-item"),re=Math.max(F,H),oe=y===wx,ie=a.length&&oe,ae=y===Sx,le=ie||"number"===typeof y&&a.length>y,ce=(0,r.useMemo)((function(){var e=a;return ie?e=null===I&&M?a:a.slice(0,Math.min(a.length,j/f)):"number"===typeof y&&(e=a.slice(0,y)),e}),[a,f,I,y,ie]),se=(0,r.useMemo)((function(){return ie?a.slice(Z+1):a.slice(ce.length)}),[a,ce,ie,Z]),ue=(0,r.useCallback)((function(e,t){var n;return"function"===typeof u?u(e):null!==(n=u&&(null===e||void 0===e?void 0:e[u]))&&void 0!==n?n:t}),[u]),de=(0,r.useCallback)(l||function(e){return e},[l]);function fe(e,t,n){($!==e||void 0!==t&&t!==X)&&(Q(e),n||(te(e<a.length-1),null===E||void 0===E||E(e)),void 0!==t&&q(t))}function pe(e,t){D((function(n){var r=new Map(n);return null===t?r.delete(e):r.set(e,t),r}))}function he(e){return R.get(ue(ce[e],e))}Cn((function(){if(j&&"number"===typeof re&&ce){var e=G,t=ce.length,n=t-1;if(!t)return void fe(0,null);for(var r=0;r<t;r+=1){var o=he(r);if(M&&(o=o||0),void 0===o){fe(r-1,void 0,!0);break}if(e+=o,0===n&&e<=j||r===n-1&&e+he(n)<=j){fe(n,null);break}if(e+re>j){fe(r-1,e-o-G+H);break}}w&&he(0)+G>j&&q(null)}}),[j,R,H,G,ue,ce]);var ge=ee&&!!se.length,ve={};null!==X&&ie&&(ve={position:"absolute",left:X,top:0});var me,ye={prefixCls:ne,responsive:ie,component:C,invalidate:ae},be=s?function(e,t){var n=ue(e,t);return r.createElement(px.Provider,{key:n,value:O(O({},ye),{},{order:t,item:e,itemKey:n,registerSize:pe,display:t<=Z})},s(e,t))}:function(e,t){var n=ue(e,t);return r.createElement(ux,h({},ye,{order:t,key:n,item:e,renderItem:de,itemKey:n,registerSize:pe,display:t<=Z}))},xe={order:ge?Z:Number.MAX_SAFE_INTEGER,className:"".concat(ne,"-rest"),registerSize:function(e,t){W(t),B(H)},display:ge};if(x)x&&(me=r.createElement(px.Provider,{value:O(O({},ye),xe)},x(se)));else{var we=b||Ox;me=r.createElement(ux,h({},ye,xe),"function"===typeof we?we(se):we)}var Se=r.createElement(_,h({className:c()(!ae&&o,m),style:v,ref:t},P),ce.map(be),le?me:null,w&&r.createElement(ux,h({},ye,{responsive:oe,responsiveDisabled:!ie,order:Z,className:"".concat(ne,"-suffix"),registerSize:function(e,t){Y(t)},display:!0,style:ve}),w));return oe&&(Se=r.createElement(qh,{onResize:function(e,t){T(t.clientWidth)},disabled:!ie},Se)),Se}var Cx=r.forwardRef(_x);Cx.displayName="Overflow",Cx.Item=bx,Cx.RESPONSIVE=wx,Cx.INVALIDATE=Sx;const Ex=Cx;var Px=function(e,t){var n,o=e.prefixCls,i=e.id,a=e.inputElement,l=e.disabled,s=e.tabIndex,u=e.autoFocus,d=e.autoComplete,f=e.editable,p=e.activeDescendantId,h=e.value,g=e.maxLength,v=e.onKeyDown,m=e.onMouseDown,y=e.onChange,b=e.onPaste,x=e.onCompositionStart,w=e.onCompositionEnd,S=e.open,O=e.attrs,_=a||r.createElement("input",null),C=_,E=C.ref,P=C.props,M=P.onKeyDown,k=P.onChange,A=P.onMouseDown,I=P.onCompositionStart,T=P.onCompositionEnd,j=P.style;return _.props,_=r.cloneElement(_,Cb(Cb(Cb({type:"search"},P),{},{id:i,ref:Kb(t,E),disabled:l,tabIndex:s,autoComplete:d||"off",autoFocus:u,className:c()("".concat(o,"-selection-search-input"),null===(n=_)||void 0===n||null===(n=n.props)||void 0===n?void 0:n.className),role:"combobox","aria-expanded":S||!1,"aria-haspopup":"listbox","aria-owns":"".concat(i,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(i,"_list"),"aria-activedescendant":S?p:void 0},O),{},{value:f?h:"",maxLength:g,readOnly:!f,unselectable:f?null:"on",style:Cb(Cb({},j),{},{opacity:f?null:0}),onKeyDown:function(e){v(e),M&&M(e)},onMouseDown:function(e){m(e),A&&A(e)},onChange:function(e){y(e),k&&k(e)},onCompositionStart:function(e){x(e),I&&I(e)},onCompositionEnd:function(e){w(e),T&&T(e)},onPaste:b}))};const Mx=r.forwardRef(Px);function kx(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}var Ax="undefined"!==typeof window&&window.document&&window.document.documentElement;function Ix(e){return["string","number"].includes(wb(e))}function Tx(e){var t=void 0;return e&&(Ix(e.title)?t=e.title.toString():Ix(e.label)&&(t=e.label.toString())),t}function jx(e){var t;return null!==(t=e.key)&&void 0!==t?t:e.value}var Lx=function(e){e.preventDefault(),e.stopPropagation()};const Rx=function(e){var t,n,o=e.id,i=e.prefixCls,a=e.values,l=e.open,s=e.searchValue,u=e.autoClearSearchValue,d=e.inputRef,f=e.placeholder,p=e.disabled,h=e.mode,g=e.showSearch,v=e.autoFocus,m=e.autoComplete,y=e.activeDescendantId,b=e.tabIndex,x=e.removeIcon,w=e.maxTagCount,S=e.maxTagTextLength,O=e.maxTagPlaceholder,_=void 0===O?function(e){return"+ ".concat(e.length," ...")}:O,C=e.tagRender,E=e.onToggleOpen,P=e.onRemove,M=e.onInputChange,k=e.onInputPaste,A=e.onInputKeyDown,I=e.onInputMouseDown,T=e.onInputCompositionStart,j=e.onInputCompositionEnd,L=r.useRef(null),R=Mb((0,r.useState)(0),2),D=R[0],N=R[1],F=Mb((0,r.useState)(!1),2),B=F[0],z=F[1],H="".concat(i,"-selection"),W=l||"multiple"===h&&!1===u||"tags"===h?s:"",V="tags"===h||"multiple"===h&&!1===u||g&&(l||B);t=function(){N(L.current.scrollWidth)},n=[W],Ax?r.useLayoutEffect(t,n):r.useEffect(t,n);var G=function(e,t,n,o,i){return r.createElement("span",{title:Tx(e),className:c()("".concat(H,"-item"),Ob({},"".concat(H,"-item-disabled"),n))},r.createElement("span",{className:"".concat(H,"-item-content")},t),o&&r.createElement(Zb,{className:"".concat(H,"-item-remove"),onMouseDown:Lx,onClick:i,customizeIcon:x},"\xd7"))},Y=function(e,t,n,o,i,a){return r.createElement("span",{onMouseDown:function(e){Lx(e),E(!l)}},C({label:t,value:e,disabled:n,closable:o,onClose:i,isMaxTag:!!a}))},U=r.createElement("div",{className:"".concat(H,"-search"),style:{width:D},onFocus:function(){z(!0)},onBlur:function(){z(!1)}},r.createElement(Mx,{ref:d,open:l,prefixCls:i,id:o,inputElement:null,disabled:p,autoFocus:v,autoComplete:m,editable:V,activeDescendantId:y,value:W,onKeyDown:A,onMouseDown:I,onChange:M,onPaste:k,onCompositionStart:T,onCompositionEnd:j,tabIndex:b,attrs:ix(e,!0)}),r.createElement("span",{ref:L,className:"".concat(H,"-search-mirror"),"aria-hidden":!0},W,"\xa0")),X=r.createElement(Ex,{prefixCls:"".concat(H,"-overflow"),data:a,renderItem:function(e){var t=e.disabled,n=e.label,r=e.value,o=!p&&!t,i=n;if("number"===typeof S&&("string"===typeof n||"number"===typeof n)){var a=String(i);a.length>S&&(i="".concat(a.slice(0,S),"..."))}var l=function(t){t&&t.stopPropagation(),P(e)};return"function"===typeof C?Y(r,i,t,o,l):G(e,i,t,o,l)},renderRest:function(e){var t="function"===typeof _?_(e):_;return"function"===typeof C?Y(void 0,t,!1,!1,void 0,!0):G({title:t},t,!1)},suffix:U,itemKey:jx,maxCount:w});return r.createElement(r.Fragment,null,X,!a.length&&!W&&r.createElement("span",{className:"".concat(H,"-placeholder")},f))};const Dx=function(e){var t=e.inputElement,n=e.prefixCls,o=e.id,i=e.inputRef,a=e.disabled,l=e.autoFocus,c=e.autoComplete,s=e.activeDescendantId,u=e.mode,d=e.open,f=e.values,p=e.placeholder,h=e.tabIndex,g=e.showSearch,v=e.searchValue,m=e.activeValue,y=e.maxLength,b=e.onInputKeyDown,x=e.onInputMouseDown,w=e.onInputChange,S=e.onInputPaste,O=e.onInputCompositionStart,_=e.onInputCompositionEnd,C=e.title,E=Mb(r.useState(!1),2),P=E[0],M=E[1],k="combobox"===u,A=k||g,I=f[0],T=v||"";k&&m&&!P&&(T=m),r.useEffect((function(){k&&M(!1)}),[k,m]);var j=!("combobox"!==u&&!d&&!g)&&!!T,L=void 0===C?Tx(I):C,R=r.useMemo((function(){return I?null:r.createElement("span",{className:"".concat(n,"-selection-placeholder"),style:j?{visibility:"hidden"}:void 0},p)}),[I,j,p,n]);return r.createElement(r.Fragment,null,r.createElement("span",{className:"".concat(n,"-selection-search")},r.createElement(Mx,{ref:i,prefixCls:n,id:o,open:d,inputElement:t,disabled:a,autoFocus:l,autoComplete:c,editable:A,activeDescendantId:s,value:T,onKeyDown:b,onMouseDown:x,onChange:function(e){M(!0),w(e)},onPaste:S,onCompositionStart:O,onCompositionEnd:_,tabIndex:h,attrs:ix(e,!0),maxLength:k?y:void 0})),!k&&I?r.createElement("span",{className:"".concat(n,"-selection-item"),title:L,style:j?{visibility:"hidden"}:void 0},I.label):null,R)};var Nx=function(e,t){var n=(0,r.useRef)(null),o=(0,r.useRef)(!1),i=e.prefixCls,a=e.open,l=e.mode,c=e.showSearch,s=e.tokenWithEnter,u=e.disabled,d=e.autoClearSearchValue,f=e.onSearch,p=e.onSearchSubmit,h=e.onToggleOpen,g=e.onInputKeyDown,v=e.domRef;r.useImperativeHandle(t,(function(){return{focus:function(e){n.current.focus(e)},blur:function(){n.current.blur()}}}));var m=Mb(ex(0),2),y=m[0],b=m[1],x=(0,r.useRef)(null),w=function(e){!1!==f(e,!0,o.current)&&h(!0)},S={inputRef:n,onInputKeyDown:function(e){var t,n=e.which;n!==nx.UP&&n!==nx.DOWN||e.preventDefault(),g&&g(e),n!==nx.ENTER||"tags"!==l||o.current||a||null===p||void 0===p||p(e.target.value),t=n,[nx.ESC,nx.SHIFT,nx.BACKSPACE,nx.TAB,nx.WIN_KEY,nx.ALT,nx.META,nx.WIN_KEY_RIGHT,nx.CTRL,nx.SEMICOLON,nx.EQUALS,nx.CAPS_LOCK,nx.CONTEXT_MENU,nx.F1,nx.F2,nx.F3,nx.F4,nx.F5,nx.F6,nx.F7,nx.F8,nx.F9,nx.F10,nx.F11,nx.F12].includes(t)||h(!0)},onInputMouseDown:function(){b(!0)},onInputChange:function(e){var t=e.target.value;if(s&&x.current&&/[\r\n]/.test(x.current)){var n=x.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");t=t.replace(n,x.current)}x.current=null,w(t)},onInputPaste:function(e){var t=e.clipboardData,n=null===t||void 0===t?void 0:t.getData("text");x.current=n||""},onInputCompositionStart:function(){o.current=!0},onInputCompositionEnd:function(e){o.current=!1,"combobox"!==l&&w(e.target.value)}},O="multiple"===l||"tags"===l?r.createElement(Rx,vb({},e,S)):r.createElement(Dx,vb({},e,S));return r.createElement("div",{ref:v,className:"".concat(i,"-selector"),onClick:function(e){e.target!==n.current&&(void 0!==document.body.style.msTouchAction?setTimeout((function(){n.current.focus()})):n.current.focus())},onMouseDown:function(e){var t=y();e.target===n.current||t||"combobox"===l&&u||e.preventDefault(),("combobox"===l||c&&t)&&a||(a&&!1!==d&&f("",!0,!1),h())}},O)};const Fx=r.forwardRef(Nx);function Bx(e){return e instanceof HTMLElement||e instanceof SVGElement}function zx(e){var t;return null===e||void 0===e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function Hx(e){return function(e){return zx(e)instanceof ShadowRoot}(e)?zx(e):null}var Wx=0;var Vx=Cb({},o).useId;const Gx=Vx?function(e){var t=Vx();return e||t}:function(e){var t=Mb(r.useState("ssr-id"),2),n=t[0],o=t[1];return r.useEffect((function(){var e=Wx;Wx+=1,o("rc_unique_".concat(e))}),[]),e||n};var Yx=r.createContext({});function Ux(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xx(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,Sb(r.key),r)}}function qx(e,t,n){return t&&Xx(e.prototype,t),n&&Xx(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Kx(e,t){return Kx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Kx(e,t)}function $x(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&&Kx(e,t)}function Qx(e){return Qx=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Qx(e)}function Zx(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Zx=function(){return!!e})()}function Jx(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ew(e){var t=Zx();return function(){var n,r=Qx(e);if(t){var o=Qx(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===wb(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Jx(e)}(this,n)}}var tw=function(e){$x(n,e);var t=ew(n);function n(){return Ux(this,n),t.apply(this,arguments)}return qx(n,[{key:"render",value:function(){return this.props.children}}]),n}(r.Component);const nw=tw;var rw="none",ow="appear",iw="enter",aw="leave",lw="none",cw="prepare",sw="start",uw="active",dw="end",fw="prepared";function pw(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 hw=function(e,t){var n={animationend:pw("Animation","AnimationEnd"),transitionend:pw("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}(Ib(),"undefined"!==typeof window?window:{}),gw={};if(Ib()){var vw=document.createElement("div");gw=vw.style}var mw={};function yw(e){if(mw[e])return mw[e];var t=hw[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 gw)return mw[e]=t[i],mw[e]}return""}var bw=yw("animationend"),xw=yw("transitionend"),ww=!(!bw||!xw),Sw=bw||"animationend",Ow=xw||"transitionend";function _w(e,t){if(!e)return null;if("object"===wb(e)){var n=t.replace(/-\w/g,(function(e){return e[1].toUpperCase()}));return e[n]}return"".concat(e,"-").concat(t)}const Cw=function(e){var t=(0,r.useRef)(),n=(0,r.useRef)(e);n.current=e;var o=r.useCallback((function(e){n.current(e)}),[]);function i(e){e&&(e.removeEventListener(Ow,o),e.removeEventListener(Sw,o))}return r.useEffect((function(){return function(){i(t.current)}}),[]),[function(e){t.current&&t.current!==e&&i(t.current),e&&e!==t.current&&(e.addEventListener(Ow,o),e.addEventListener(Sw,o),t.current=e)},i]};const Ew=Ib()?r.useLayoutEffect:r.useEffect;var Pw=function(e){return+setTimeout(e,16)},Mw=function(e){return clearTimeout(e)};"undefined"!==typeof window&&"requestAnimationFrame"in window&&(Pw=function(e){return window.requestAnimationFrame(e)},Mw=function(e){return window.cancelAnimationFrame(e)});var kw=0,Aw=new Map;function Iw(e){Aw.delete(e)}var Tw=function(e){var t=kw+=1;return function n(r){if(0===r)Iw(t),e();else{var o=Pw((function(){n(r-1)}));Aw.set(t,o)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};Tw.cancel=function(e){var t=Aw.get(e);return Iw(e),Mw(t)};const jw=Tw;var Lw=[cw,sw,uw,dw],Rw=[cw,fw],Dw=!1,Nw=!0;function Fw(e){return e===uw||e===dw}const Bw=function(e,t,n){var o=Mb(Db(lw),2),i=o[0],a=o[1],l=function(){var e=r.useRef(null);function t(){jw.cancel(e.current)}return r.useEffect((function(){return function(){t()}}),[]),[function n(r){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;t();var i=jw((function(){o<=1?r({isCanceled:function(){return i!==e.current}}):n(r,o-1)}));e.current=i},t]}(),c=Mb(l,2),s=c[0],u=c[1];var d=t?Rw:Lw;return Ew((function(){if(i!==lw&&i!==dw){var e=d.indexOf(i),t=d[e+1],r=n(i);r===Dw?a(t,!0):t&&s((function(e){function n(){e.isCanceled()||a(t,!0)}!0===r?n():Promise.resolve(r).then(n)}))}}),[e,i]),r.useEffect((function(){return function(){u()}}),[]),[function(){a(cw,!0)},i]};const zw=function(e){var t=e;"object"===wb(e)&&(t=e.transitionSupport);var n=r.forwardRef((function(e,n){var o=e.visible,i=void 0===o||o,a=e.removeOnLeave,l=void 0===a||a,s=e.forceRender,u=e.children,d=e.motionName,f=e.leavedClassName,p=e.eventProps,h=function(e,n){return!(!e.motionName||!t||!1===n)}(e,r.useContext(Yx).motion),g=(0,r.useRef)(),v=(0,r.useRef)();var m=function(e,t,n,o){var i=o.motionEnter,a=void 0===i||i,l=o.motionAppear,c=void 0===l||l,s=o.motionLeave,u=void 0===s||s,d=o.motionDeadline,f=o.motionLeaveImmediately,p=o.onAppearPrepare,h=o.onEnterPrepare,g=o.onLeavePrepare,v=o.onAppearStart,m=o.onEnterStart,y=o.onLeaveStart,b=o.onAppearActive,x=o.onEnterActive,w=o.onLeaveActive,S=o.onAppearEnd,O=o.onEnterEnd,_=o.onLeaveEnd,C=o.onVisibleChanged,E=Mb(Db(),2),P=E[0],M=E[1],k=Mb(Db(rw),2),A=k[0],I=k[1],T=Mb(Db(null),2),j=T[0],L=T[1],R=(0,r.useRef)(!1),D=(0,r.useRef)(null);function N(){return n()}var F=(0,r.useRef)(!1);function B(){I(rw,!0),L(null,!0)}function z(e){var t=N();if(!e||e.deadline||e.target===t){var n,r=F.current;A===ow&&r?n=null===S||void 0===S?void 0:S(t,e):A===iw&&r?n=null===O||void 0===O?void 0:O(t,e):A===aw&&r&&(n=null===_||void 0===_?void 0:_(t,e)),A!==rw&&r&&!1!==n&&B()}}var H=Mb(Cw(z),1)[0],W=function(e){var t,n,r;switch(e){case ow:return Ob(t={},cw,p),Ob(t,sw,v),Ob(t,uw,b),t;case iw:return Ob(n={},cw,h),Ob(n,sw,m),Ob(n,uw,x),n;case aw:return Ob(r={},cw,g),Ob(r,sw,y),Ob(r,uw,w),r;default:return{}}},V=r.useMemo((function(){return W(A)}),[A]),G=Mb(Bw(A,!e,(function(e){if(e===cw){var t=V[cw];return t?t(N()):Dw}var n;return U in V&&L((null===(n=V[U])||void 0===n?void 0:n.call(V,N(),null))||null),U===uw&&(H(N()),d>0&&(clearTimeout(D.current),D.current=setTimeout((function(){z({deadline:!0})}),d))),U===fw&&B(),Nw})),2),Y=G[0],U=G[1],X=Fw(U);F.current=X,Ew((function(){M(t);var n,r=R.current;R.current=!0,!r&&t&&c&&(n=ow),r&&t&&a&&(n=iw),(r&&!t&&u||!r&&f&&!t&&u)&&(n=aw);var o=W(n);n&&(e||o[cw])?(I(n),Y()):I(rw)}),[t]),(0,r.useEffect)((function(){(A===ow&&!c||A===iw&&!a||A===aw&&!u)&&I(rw)}),[c,a,u]),(0,r.useEffect)((function(){return function(){R.current=!1,clearTimeout(D.current)}}),[]);var q=r.useRef(!1);(0,r.useEffect)((function(){P&&(q.current=!0),void 0!==P&&A===rw&&((q.current||P)&&(null===C||void 0===C||C(P)),q.current=!0)}),[P,A]);var K=j;return V[cw]&&U===sw&&(K=Cb({transition:"none"},K)),[A,U,K,null!==P&&void 0!==P?P:t]}(h,i,(function(){try{return g.current instanceof HTMLElement?g.current:function(e){return Bx(e)?e:e instanceof r.Component?Nu.findDOMNode(e):null}(v.current)}catch(N1){return null}}),e),y=Mb(m,4),b=y[0],x=y[1],w=y[2],S=y[3],O=r.useRef(S);S&&(O.current=!0);var _,C=r.useCallback((function(e){g.current=e,qb(n,e)}),[n]),E=Cb(Cb({},p),{},{visible:i});if(u)if(b===rw)_=S?u(Cb({},E),C):!l&&O.current&&f?u(Cb(Cb({},E),{},{className:f}),C):s||!l&&!f?u(Cb(Cb({},E),{},{style:{display:"none"}}),C):null;else{var P,M;x===cw?M="prepare":Fw(x)?M="active":x===sw&&(M="start");var k=_w(d,"".concat(b,"-").concat(M));_=u(Cb(Cb({},E),{},{className:c()(_w(d,b),(P={},Ob(P,k,k&&M),Ob(P,d,"string"===typeof d),P)),style:w}),C)}else _=null;r.isValidElement(_)&&Qb(_)&&(_.ref||(_=r.cloneElement(_,{ref:C})));return r.createElement(nw,{ref:v},_)}));return n.displayName="CSSMotion",n}(ww);var Hw="add",Ww="keep",Vw="remove",Gw="removed";function Yw(e){var t;return Cb(Cb({},t=e&&"object"===wb(e)&&"key"in e?e:{key:e}),{},{key:String(t.key)})}function Uw(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(Yw)}var Xw=["component","children","onVisibleChanged","onAllRemoved"],qw=["status"],Kw=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];!function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:zw,n=function(e){$x(o,e);var n=ew(o);function o(){var e;Ux(this,o);for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return Ob(Jx(e=n.call.apply(n,[this].concat(r))),"state",{keyEntities:[]}),Ob(Jx(e),"removeKey",(function(t){var n=e.state.keyEntities.map((function(e){return e.key!==t?e:Cb(Cb({},e),{},{status:Gw})}));return e.setState({keyEntities:n}),n.filter((function(e){return e.status!==Gw})).length})),e}return qx(o,[{key:"render",value:function(){var e=this,n=this.state.keyEntities,o=this.props,i=o.component,a=o.children,l=o.onVisibleChanged,c=o.onAllRemoved,s=kb(o,Xw),u=i||r.Fragment,d={};return Kw.forEach((function(e){d[e]=s[e],delete s[e]})),delete s.keys,r.createElement(u,s,n.map((function(n,o){var i=n.status,s=kb(n,qw),u=i===Hw||i===Ww;return r.createElement(t,vb({},d,{key:s.key,visible:u,eventProps:s,onVisibleChanged:function(t){(null===l||void 0===l||l(t,{key:s.key}),t)||0===e.removeKey(s.key)&&c&&c()}}),(function(e,t){return a(Cb(Cb({},e),{},{index:o}),t)}))})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.keys,r=t.keyEntities,o=Uw(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=Uw(e),a=Uw(t);i.forEach((function(e){for(var t=!1,i=r;i<o;i+=1){var l=a[i];if(l.key===e.key){r<i&&(n=n.concat(a.slice(r,i).map((function(e){return Cb(Cb({},e),{},{status:Hw})}))),r=i),n.push(Cb(Cb({},l),{},{status:Ww})),r+=1,t=!0;break}}t||n.push(Cb(Cb({},e),{},{status:Vw}))})),r<o&&(n=n.concat(a.slice(r).map((function(e){return Cb(Cb({},e),{},{status:Hw})}))));var l={};return n.forEach((function(e){var t=e.key;l[t]=(l[t]||0)+1})),Object.keys(l).filter((function(e){return l[e]>1})).forEach((function(e){(n=n.filter((function(t){var n=t.key,r=t.status;return n!==e||r!==Vw}))).forEach((function(t){t.key===e&&(t.status=Ww)}))})),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!==Gw||e.status!==Vw}))}}}]),o}(r.Component);Ob(n,"defaultProps",{component:"div"})}(ww);const $w=zw;function Qw(e){var t=e.prefixCls,n=e.align,o=e.arrow,i=e.arrowPos,a=o||{},l=a.className,s=a.content,u=i.x,d=void 0===u?0:u,f=i.y,p=void 0===f?0:f,h=r.useRef();if(!n||!n.points)return null;var g={position:"absolute"};if(!1!==n.autoArrow){var v=n.points[0],m=n.points[1],y=v[0],b=v[1],x=m[0],w=m[1];y!==x&&["t","b"].includes(y)?"t"===y?g.top=0:g.bottom=0:g.top=p,b!==w&&["l","r"].includes(b)?"l"===b?g.left=0:g.right=0:g.left=d}return r.createElement("div",{ref:h,className:c()("".concat(t,"-arrow"),l),style:g},s)}function Zw(e){var t=e.prefixCls,n=e.open,o=e.zIndex,i=e.mask,a=e.motion;return i?r.createElement($w,vb({},a,{motionAppear:!0,visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return r.createElement("div",{style:{zIndex:o},className:c()("".concat(t,"-mask"),n)})})):null}var Jw=r.memo((function(e){return e.children}),(function(e,t){return t.cache}));const eS=Jw;var tS=r.forwardRef((function(e,t){var n=e.popup,o=e.className,i=e.prefixCls,a=e.style,l=e.target,s=e.onVisibleChanged,u=e.open,d=e.keepDom,f=e.fresh,p=e.onClick,h=e.mask,g=e.arrow,v=e.arrowPos,m=e.align,y=e.motion,b=e.maskMotion,x=e.forceRender,w=e.getPopupContainer,S=e.autoDestroy,O=e.portal,_=e.zIndex,C=e.onMouseEnter,E=e.onMouseLeave,P=e.onPointerEnter,M=e.ready,k=e.offsetX,A=e.offsetY,I=e.offsetR,T=e.offsetB,j=e.onAlign,L=e.onPrepare,R=e.stretch,D=e.targetWidth,N=e.targetHeight,F="function"===typeof n?n():n,B=u||d,z=(null===w||void 0===w?void 0:w.length)>0,H=Mb(r.useState(!w||!z),2),W=H[0],V=H[1];if(Rb((function(){!W&&z&&l&&V(!0)}),[W,z,l]),!W)return null;var G="auto",Y={left:"-1000vw",top:"-1000vh",right:G,bottom:G};if(M||!u){var U,X=m.points,q=m.dynamicInset||(null===(U=m._experimental)||void 0===U?void 0:U.dynamicInset),K=q&&"r"===X[0][1],$=q&&"b"===X[0][0];K?(Y.right=I,Y.left=G):(Y.left=k,Y.right=G),$?(Y.bottom=T,Y.top=G):(Y.top=A,Y.bottom=G)}var Q={};return R&&(R.includes("height")&&N?Q.height=N:R.includes("minHeight")&&N&&(Q.minHeight=N),R.includes("width")&&D?Q.width=D:R.includes("minWidth")&&D&&(Q.minWidth=D)),u||(Q.pointerEvents="none"),r.createElement(O,{open:x||B,getContainer:w&&function(){return w(l)},autoDestroy:S},r.createElement(Zw,{prefixCls:i,open:u,zIndex:_,mask:h,motion:b}),r.createElement(qh,{onResize:j,disabled:!u},(function(e){return r.createElement($w,vb({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:x,leavedClassName:"".concat(i,"-hidden")},y,{onAppearPrepare:L,onEnterPrepare:L,visible:u,onVisibleChanged:function(e){var t;null===y||void 0===y||null===(t=y.onVisibleChanged)||void 0===t||t.call(y,e),s(e)}}),(function(n,l){var s=n.className,d=n.style,h=c()(i,s,o);return r.createElement("div",{ref:Kb(e,t,l),className:h,style:Cb(Cb(Cb(Cb({"--arrow-x":"".concat(v.x||0,"px"),"--arrow-y":"".concat(v.y||0,"px")},Y),Q),d),{},{boxSizing:"border-box",zIndex:_},a),onMouseEnter:C,onMouseLeave:E,onPointerEnter:P,onClick:p},g&&r.createElement(Qw,{prefixCls:i,arrow:g,arrowPos:v,align:m}),r.createElement(eS,{cache:!u&&!f},F))}))})))}));const nS=tS;var rS=r.forwardRef((function(e,t){var n=e.children,o=e.getTriggerDOMNode,i=Qb(n),a=r.useCallback((function(e){qb(t,o?o(e):e)}),[o]),l=$b(a,n.ref);return i?r.cloneElement(n,{ref:l}):n}));const oS=rS;const iS=r.createContext(null);function aS(e){return e?Array.isArray(e)?e:[e]:[]}const lS=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 cS(){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 sS(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function uS(e){return e.ownerDocument.defaultView}function dS(e){for(var t=[],n=null===e||void 0===e?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=uS(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 fS(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function pS(e){return fS(parseFloat(e),0)}function hS(e,t){var n=Cb({},e);return(t||[]).forEach((function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=uS(e).getComputedStyle(e),r=t.overflow,o=t.overflowClipMargin,i=t.borderTopWidth,a=t.borderBottomWidth,l=t.borderLeftWidth,c=t.borderRightWidth,s=e.getBoundingClientRect(),u=e.offsetHeight,d=e.clientHeight,f=e.offsetWidth,p=e.clientWidth,h=pS(i),g=pS(a),v=pS(l),m=pS(c),y=fS(Math.round(s.width/f*1e3)/1e3),b=fS(Math.round(s.height/u*1e3)/1e3),x=(f-p-v-m)*y,w=(u-d-h-g)*b,S=h*b,O=g*b,_=v*y,C=m*y,E=0,P=0;if("clip"===r){var M=pS(o);E=M*y,P=M*b}var k=s.x+_-E,A=s.y+S-P,I=k+s.width+2*E-_-C-x,T=A+s.height+2*P-S-O-w;n.left=Math.max(n.left,k),n.top=Math.max(n.top,A),n.right=Math.min(n.right,I),n.bottom=Math.min(n.bottom,T)}})),n}function gS(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 vS(e,t){var n=Mb(t||[],2),r=n[0],o=n[1];return[gS(e.width,r),gS(e.height,o)]}function mS(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function yS(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 bS(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 xS=["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 wS=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Yg,t=r.forwardRef((function(t,n){var o=t.prefixCls,i=void 0===o?"rc-trigger-popup":o,a=t.children,l=t.action,s=void 0===l?"hover":l,u=t.showAction,d=t.hideAction,f=t.popupVisible,p=t.defaultPopupVisible,h=t.onPopupVisibleChange,g=t.afterPopupVisibleChange,v=t.mouseEnterDelay,m=t.mouseLeaveDelay,y=void 0===m?.1:m,b=t.focusDelay,x=t.blurDelay,w=t.mask,S=t.maskClosable,O=void 0===S||S,_=t.getPopupContainer,C=t.forceRender,E=t.autoDestroy,P=t.destroyPopupOnHide,M=t.popup,k=t.popupClassName,A=t.popupStyle,I=t.popupPlacement,T=t.builtinPlacements,j=void 0===T?{}:T,L=t.popupAlign,R=t.zIndex,D=t.stretch,N=t.getPopupClassNameFromAlign,F=t.fresh,B=t.alignPoint,z=t.onPopupClick,H=t.onPopupAlign,W=t.arrow,V=t.popupMotion,G=t.maskMotion,Y=t.popupTransitionName,U=t.popupAnimation,X=t.maskTransitionName,q=t.maskAnimation,K=t.className,$=t.getTriggerDOMNode,Q=kb(t,xS),Z=E||P||!1,J=Mb(r.useState(!1),2),ee=J[0],te=J[1];Rb((function(){te(Ub())}),[]);var ne=r.useRef({}),re=r.useContext(iS),oe=r.useMemo((function(){return{registerSubPopup:function(e,t){ne.current[e]=t,null===re||void 0===re||re.registerSubPopup(e,t)}}}),[re]),ie=Gx(),ae=Mb(r.useState(null),2),le=ae[0],ce=ae[1],se=r.useRef(null),ue=Ab((function(e){se.current=e,Bx(e)&&le!==e&&ce(e),null===re||void 0===re||re.registerSubPopup(ie,e)})),de=Mb(r.useState(null),2),fe=de[0],pe=de[1],he=r.useRef(null),ge=Ab((function(e){Bx(e)&&fe!==e&&(pe(e),he.current=e)})),ve=r.Children.only(a),me=(null===ve||void 0===ve?void 0:ve.props)||{},ye={},be=Ab((function(e){var t,n,r=fe;return(null===r||void 0===r?void 0:r.contains(e))||(null===(t=Hx(r))||void 0===t?void 0:t.host)===e||e===r||(null===le||void 0===le?void 0:le.contains(e))||(null===(n=Hx(le))||void 0===n?void 0:n.host)===e||e===le||Object.values(ne.current).some((function(t){return(null===t||void 0===t?void 0:t.contains(e))||e===t}))})),xe=sS(i,V,U,Y),we=sS(i,G,q,X),Se=Mb(r.useState(p||!1),2),Oe=Se[0],_e=Se[1],Ce=null!==f&&void 0!==f?f:Oe,Ee=Ab((function(e){void 0===f&&_e(e)}));Rb((function(){_e(f||!1)}),[f]);var Pe=r.useRef(Ce);Pe.current=Ce;var Me=r.useRef([]);Me.current=[];var ke=Ab((function(e){var t;Ee(e),(null!==(t=Me.current[Me.current.length-1])&&void 0!==t?t:Ce)!==e&&(Me.current.push(e),null===h||void 0===h||h(e))})),Ae=r.useRef(),Ie=function(){clearTimeout(Ae.current)},Te=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;Ie(),0===t?ke(e):Ae.current=setTimeout((function(){ke(e)}),1e3*t)};r.useEffect((function(){return Ie}),[]);var je=Mb(r.useState(!1),2),Le=je[0],Re=je[1];Rb((function(e){e&&!Ce||Re(!0)}),[Ce]);var De=Mb(r.useState(null),2),Ne=De[0],Fe=De[1],Be=Mb(r.useState([0,0]),2),ze=Be[0],He=Be[1],We=function(e){He([e.clientX,e.clientY])},Ve=function(e,t,n,o,i,a,l){var c=Mb(r.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[o]||{}}),2),s=c[0],u=c[1],d=r.useRef(0),f=r.useMemo((function(){return t?dS(t):[]}),[t]),p=r.useRef({});e||(p.current={});var h=Ab((function(){if(t&&n&&e){var r,c,s,d=t,h=d.ownerDocument,g=uS(d).getComputedStyle(d),v=g.width,m=g.height,y=g.position,b=d.style.left,x=d.style.top,w=d.style.right,S=d.style.bottom,O=d.style.overflow,_=Cb(Cb({},i[o]),a),C=h.createElement("div");if(null===(r=d.parentElement)||void 0===r||r.appendChild(C),C.style.left="".concat(d.offsetLeft,"px"),C.style.top="".concat(d.offsetTop,"px"),C.style.position=y,C.style.height="".concat(d.offsetHeight,"px"),C.style.width="".concat(d.offsetWidth,"px"),d.style.left="0",d.style.top="0",d.style.right="auto",d.style.bottom="auto",d.style.overflow="hidden",Array.isArray(n))s={x:n[0],y:n[1],width:0,height:0};else{var E=n.getBoundingClientRect();s={x:E.x,y:E.y,width:E.width,height:E.height}}var P=d.getBoundingClientRect(),M=h.documentElement,k=M.clientWidth,A=M.clientHeight,I=M.scrollWidth,T=M.scrollHeight,j=M.scrollTop,L=M.scrollLeft,R=P.height,D=P.width,N=s.height,F=s.width,B={left:0,top:0,right:k,bottom:A},z={left:-L,top:-j,right:I-L,bottom:T-j},H=_.htmlRegion,W="visible",V="visibleFirst";"scroll"!==H&&H!==V&&(H=W);var G=H===V,Y=hS(z,f),U=hS(B,f),X=H===W?U:Y,q=G?U:X;d.style.left="auto",d.style.top="auto",d.style.right="0",d.style.bottom="0";var K=d.getBoundingClientRect();d.style.left=b,d.style.top=x,d.style.right=w,d.style.bottom=S,d.style.overflow=O,null===(c=d.parentElement)||void 0===c||c.removeChild(C);var $=fS(Math.round(D/parseFloat(v)*1e3)/1e3),Q=fS(Math.round(R/parseFloat(m)*1e3)/1e3);if(0===$||0===Q||Bx(n)&&!lS(n))return;var Z=_.offset,J=_.targetOffset,ee=Mb(vS(P,Z),2),te=ee[0],ne=ee[1],re=Mb(vS(s,J),2),oe=re[0],ie=re[1];s.x-=oe,s.y-=ie;var ae=Mb(_.points||[],2),le=ae[0],ce=mS(ae[1]),se=mS(le),ue=yS(s,ce),de=yS(P,se),fe=Cb({},_),pe=ue.x-de.x+te,he=ue.y-de.y+ne;function lt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:X,r=P.x+e,o=P.y+t,i=r+D,a=o+R,l=Math.max(r,n.left),c=Math.max(o,n.top),s=Math.min(i,n.right),u=Math.min(a,n.bottom);return Math.max(0,(s-l)*(u-c))}var ge,ve,me,ye,be=lt(pe,he),xe=lt(pe,he,U),we=yS(s,["t","l"]),Se=yS(P,["t","l"]),Oe=yS(s,["b","r"]),_e=yS(P,["b","r"]),Ce=_.overflow||{},Ee=Ce.adjustX,Pe=Ce.adjustY,Me=Ce.shiftX,ke=Ce.shiftY,Ae=function(e){return"boolean"===typeof e?e:e>=0};function ct(){ge=P.y+he,ve=ge+R,me=P.x+pe,ye=me+D}ct();var Ie=Ae(Pe),Te=se[0]===ce[0];if(Ie&&"t"===se[0]&&(ve>q.bottom||p.current.bt)){var je=he;Te?je-=R-N:je=we.y-_e.y-ne;var Le=lt(pe,je),Re=lt(pe,je,U);Le>be||Le===be&&(!G||Re>=xe)?(p.current.bt=!0,he=je,ne=-ne,fe.points=[bS(se,0),bS(ce,0)]):p.current.bt=!1}if(Ie&&"b"===se[0]&&(ge<q.top||p.current.tb)){var De=he;Te?De+=R-N:De=Oe.y-Se.y-ne;var Ne=lt(pe,De),Fe=lt(pe,De,U);Ne>be||Ne===be&&(!G||Fe>=xe)?(p.current.tb=!0,he=De,ne=-ne,fe.points=[bS(se,0),bS(ce,0)]):p.current.tb=!1}var Be=Ae(Ee),ze=se[1]===ce[1];if(Be&&"l"===se[1]&&(ye>q.right||p.current.rl)){var He=pe;ze?He-=D-F:He=we.x-_e.x-te;var We=lt(He,he),Ve=lt(He,he,U);We>be||We===be&&(!G||Ve>=xe)?(p.current.rl=!0,pe=He,te=-te,fe.points=[bS(se,1),bS(ce,1)]):p.current.rl=!1}if(Be&&"r"===se[1]&&(me<q.left||p.current.lr)){var Ge=pe;ze?Ge+=D-F:Ge=Oe.x-Se.x-te;var Ye=lt(Ge,he),Ue=lt(Ge,he,U);Ye>be||Ye===be&&(!G||Ue>=xe)?(p.current.lr=!0,pe=Ge,te=-te,fe.points=[bS(se,1),bS(ce,1)]):p.current.lr=!1}ct();var Xe=!0===Me?0:Me;"number"===typeof Xe&&(me<U.left&&(pe-=me-U.left-te,s.x+F<U.left+Xe&&(pe+=s.x-U.left+F-Xe)),ye>U.right&&(pe-=ye-U.right-te,s.x>U.right-Xe&&(pe+=s.x-U.right+Xe)));var qe=!0===ke?0:ke;"number"===typeof qe&&(ge<U.top&&(he-=ge-U.top-ne,s.y+N<U.top+qe&&(he+=s.y-U.top+N-qe)),ve>U.bottom&&(he-=ve-U.bottom-ne,s.y>U.bottom-qe&&(he+=s.y-U.bottom+qe)));var Ke=P.x+pe,$e=Ke+D,Qe=P.y+he,Ze=Qe+R,Je=s.x,et=Je+F,tt=s.y,nt=tt+N,rt=(Math.max(Ke,Je)+Math.min($e,et))/2-Ke,ot=(Math.max(Qe,tt)+Math.min(Ze,nt))/2-Qe;null===l||void 0===l||l(t,fe);var it=K.right-P.x-(pe+P.width),at=K.bottom-P.y-(he+P.height);u({ready:!0,offsetX:pe/$,offsetY:he/Q,offsetR:it/$,offsetB:at/Q,arrowX:rt/$,arrowY:ot/Q,scaleX:$,scaleY:Q,align:fe})}})),g=function(){u((function(e){return Cb(Cb({},e),{},{ready:!1})}))};return Rb(g,[o]),Rb((function(){e||g()}),[e]),[s.ready,s.offsetX,s.offsetY,s.offsetR,s.offsetB,s.arrowX,s.arrowY,s.scaleX,s.scaleY,s.align,function(){d.current+=1;var e=d.current;Promise.resolve().then((function(){d.current===e&&h()}))}]}(Ce,le,B?ze:fe,I,j,L,H),Ge=Mb(Ve,11),Ye=Ge[0],Ue=Ge[1],Xe=Ge[2],qe=Ge[3],Ke=Ge[4],$e=Ge[5],Qe=Ge[6],Ze=Ge[7],Je=Ge[8],et=Ge[9],tt=Ge[10],nt=function(e,t,n,o){return r.useMemo((function(){var r=aS(null!==n&&void 0!==n?n:t),i=aS(null!==o&&void 0!==o?o:t),a=new Set(r),l=new Set(i);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),l.has("hover")&&(l.delete("hover"),l.add("click"))),[a,l]}),[e,t,n,o])}(ee,s,u,d),rt=Mb(nt,2),ot=rt[0],it=rt[1],at=ot.has("click"),lt=it.has("click")||it.has("contextMenu"),ct=Ab((function(){Le||tt()}));!function(e,t,n,r,o){Rb((function(){if(e&&t&&n){var i=n,a=dS(t),l=dS(i),c=uS(i),s=new Set([c].concat(xb(a),xb(l)));function u(){r(),o()}return s.forEach((function(e){e.addEventListener("scroll",u,{passive:!0})})),c.addEventListener("resize",u,{passive:!0}),r(),function(){s.forEach((function(e){e.removeEventListener("scroll",u),c.removeEventListener("resize",u)}))}}}),[e,t,n])}(Ce,fe,le,ct,(function(){Pe.current&&B&&lt&&Te(!1)})),Rb((function(){ct()}),[ze,I]),Rb((function(){!Ce||null!==j&&void 0!==j&&j[I]||ct()}),[JSON.stringify(L)]);var st=r.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 l,c=i[a];if(cS(null===(l=e[c])||void 0===l?void 0:l.points,o,r))return"".concat(t,"-placement-").concat(c)}return""}(j,i,et,B);return c()(e,null===N||void 0===N?void 0:N(et))}),[et,N,j,i,B]);r.useImperativeHandle(n,(function(){return{nativeElement:he.current,popupElement:se.current,forceAlign:ct}}));var ut=Mb(r.useState(0),2),dt=ut[0],ft=ut[1],pt=Mb(r.useState(0),2),ht=pt[0],gt=pt[1],vt=function(){if(D&&fe){var e=fe.getBoundingClientRect();ft(e.width),gt(e.height)}};function mt(e,t,n,r){ye[e]=function(o){var i;null===r||void 0===r||r(o),Te(t,n);for(var a=arguments.length,l=new Array(a>1?a-1:0),c=1;c<a;c++)l[c-1]=arguments[c];null===(i=me[e])||void 0===i||i.call.apply(i,[me,o].concat(l))}}Rb((function(){Ne&&(tt(),Ne(),Fe(null))}),[Ne]),(at||lt)&&(ye.onClick=function(e){var t;Pe.current&&lt?Te(!1):!Pe.current&&at&&(We(e),Te(!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=me.onClick)||void 0===t||t.call.apply(t,[me,e].concat(r))}),function(e,t,n,o,i,a,l,c){var s=r.useRef(e);s.current=e,r.useEffect((function(){if(t&&o&&(!i||a)){var e=function(e){var t=e.target;s.current&&!l(t)&&c(!1)},r=uS(o);r.addEventListener("mousedown",e,!0),r.addEventListener("contextmenu",e,!0);var u=Hx(n);return u&&(u.addEventListener("mousedown",e,!0),u.addEventListener("contextmenu",e,!0)),function(){r.removeEventListener("mousedown",e,!0),r.removeEventListener("contextmenu",e,!0),u&&(u.removeEventListener("mousedown",e,!0),u.removeEventListener("contextmenu",e,!0))}}}),[t,n,o,i,a])}(Ce,lt,fe,le,w,O,be,Te);var yt,bt,xt=ot.has("hover"),wt=it.has("hover");xt&&(mt("onMouseEnter",!0,v,(function(e){We(e)})),mt("onPointerEnter",!0,v,(function(e){We(e)})),yt=function(e){(Ce||Le)&&null!==le&&void 0!==le&&le.contains(e.target)&&Te(!0,v)},B&&(ye.onMouseMove=function(e){var t;null===(t=me.onMouseMove)||void 0===t||t.call(me,e)})),wt&&(mt("onMouseLeave",!1,y),mt("onPointerLeave",!1,y),bt=function(){Te(!1,y)}),ot.has("focus")&&mt("onFocus",!0,b),it.has("focus")&&mt("onBlur",!1,x),ot.has("contextMenu")&&(ye.onContextMenu=function(e){var t;Pe.current&&it.has("contextMenu")?Te(!1):(We(e),Te(!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=me.onContextMenu)||void 0===t||t.call.apply(t,[me,e].concat(r))}),K&&(ye.className=c()(me.className,K));var St=Cb(Cb({},me),ye),Ot={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach((function(e){Q[e]&&(Ot[e]=function(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];null===(t=St[e])||void 0===t||t.call.apply(t,[St].concat(r)),Q[e].apply(Q,r)})}));var _t=r.cloneElement(ve,Cb(Cb({},St),Ot)),Ct={x:$e,y:Qe},Et=W?Cb({},!0!==W?W:{}):null;return r.createElement(r.Fragment,null,r.createElement(qh,{disabled:!Ce,ref:ge,onResize:function(){vt(),ct()}},r.createElement(oS,{getTriggerDOMNode:$},_t)),r.createElement(iS.Provider,{value:oe},r.createElement(nS,{portal:e,ref:ue,prefixCls:i,popup:M,className:c()(k,st),style:A,target:fe,onMouseEnter:yt,onMouseLeave:bt,onPointerEnter:yt,zIndex:R,open:Ce,keepDom:Le,fresh:F,onClick:z,mask:w,motion:xe,maskMotion:we,onVisibleChanged:function(e){Re(!1),tt(),null===g||void 0===g||g(e)},onPrepare:function(){return new Promise((function(e){vt(),Fe((function(){return e}))}))},forceRender:C,autoDestroy:Z,getPopupContainer:_,align:et,arrow:Et,arrowPos:Ct,ready:Ye,offsetX:Ue,offsetY:Xe,offsetR:qe,offsetB:Ke,onAlign:ct,stretch:D,targetWidth:dt/Ze,targetHeight:ht/Je})))}));return t}(Yg);var SS=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],OS=function(e,t){var n=e.prefixCls,o=(e.disabled,e.visible),i=e.children,a=e.popupElement,l=e.animation,s=e.transitionName,u=e.dropdownStyle,d=e.dropdownClassName,f=e.direction,p=void 0===f?"ltr":f,h=e.placement,g=e.builtinPlacements,v=e.dropdownMatchSelectWidth,m=e.dropdownRender,y=e.dropdownAlign,b=e.getPopupContainer,x=e.empty,w=e.getTriggerDOMNode,S=e.onPopupVisibleChange,O=e.onPopupMouseEnter,_=kb(e,SS),C="".concat(n,"-dropdown"),E=a;m&&(E=m(a));var P=r.useMemo((function(){return g||function(e){var t=!0===e?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"}}}(v)}),[g,v]),M=l?"".concat(C,"-").concat(l):s,k="number"===typeof v,A=r.useMemo((function(){return k?null:!1===v?"minWidth":"width"}),[v,k]),I=u;k&&(I=Cb(Cb({},I),{},{width:v}));var T=r.useRef(null);return r.useImperativeHandle(t,(function(){return{getPopupElement:function(){var e;return null===(e=T.current)||void 0===e?void 0:e.popupElement}}})),r.createElement(wS,vb({},_,{showAction:S?["click"]:[],hideAction:S?["click"]:[],popupPlacement:h||("rtl"===p?"bottomRight":"bottomLeft"),builtinPlacements:P,prefixCls:C,popupTransitionName:M,popup:r.createElement("div",{onMouseEnter:O},E),ref:T,stretch:A,popupAlign:y,popupVisible:o,getPopupContainer:b,popupClassName:c()(d,Ob({},"".concat(C,"-empty"),x)),popupStyle:I,getTriggerDOMNode:w,onPopupVisibleChange:S}),i)};const _S=r.forwardRef(OS);function CS(e,t){var n,r=e.key;return"value"in e&&(n=e.value),null!==r&&void 0!==r?r:void 0!==n?n:"rc-index-key-".concat(t)}function ES(e){return"undefined"!==typeof e&&!Number.isNaN(e)}function PS(e,t){var n=e||{},r=n.label||(t?"children":"label");return{label:r,value:n.value||"value",options:n.options||"options",groupLabel:n.groupLabel||r}}function MS(e){var t=Cb({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return Yb(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var kS=function(e,t,n){if(!t||!t.length)return null;var r=!1,o=function e(t,n){var o,i=Eb(o=n)||yb(o)||bb(o)||Pb(),a=i[0],l=i.slice(1);if(!a)return[t];var c=t.split(a);return r=r||c.length>1,c.reduce((function(t,n){return[].concat(xb(t),xb(e(n,l)))}),[]).filter(Boolean)}(e,t);return r?"undefined"!==typeof n?o.slice(0,n):o:null};const AS=r.createContext(null);function IS(e){var t=e.visible,n=e.values;if(!t)return null;return r.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(n.slice(0,50).map((function(e){var t=e.label,n=e.value;return["number","string"].includes(wb(t))?t:n})).join(", ")),n.length>50?", ...":null)}var TS=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],jS=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],LS=function(e){return"tags"===e||"multiple"===e},RS=r.forwardRef((function(e,t){var n,o=e.id,i=e.prefixCls,a=e.className,l=e.showSearch,s=e.tagRender,u=e.direction,d=e.omitDomProps,f=e.displayValues,p=e.onDisplayValuesChange,h=e.emptyOptions,g=e.notFoundContent,v=void 0===g?"Not Found":g,m=e.onClear,y=e.mode,b=e.disabled,x=e.loading,w=e.getInputElement,S=e.getRawInputElement,O=e.open,_=e.defaultOpen,C=e.onDropdownVisibleChange,E=e.activeValue,P=e.onActiveValueChange,M=e.activeDescendantId,k=e.searchValue,A=e.autoClearSearchValue,I=e.onSearch,T=e.onSearchSplit,j=e.tokenSeparators,L=e.allowClear,R=e.suffixIcon,D=e.clearIcon,N=e.OptionList,F=e.animation,B=e.transitionName,z=e.dropdownStyle,H=e.dropdownClassName,W=e.dropdownMatchSelectWidth,V=e.dropdownRender,G=e.dropdownAlign,Y=e.placement,U=e.builtinPlacements,X=e.getPopupContainer,q=e.showAction,K=void 0===q?[]:q,$=e.onFocus,Q=e.onBlur,Z=e.onKeyUp,J=e.onKeyDown,ee=e.onMouseDown,te=kb(e,TS),ne=LS(y),re=(void 0!==l?l:ne)||"combobox"===y,oe=Cb({},te);jS.forEach((function(e){delete oe[e]})),null===d||void 0===d||d.forEach((function(e){delete oe[e]}));var ie=Mb(r.useState(!1),2),ae=ie[0],le=ie[1];r.useEffect((function(){le(Ub())}),[]);var ce=r.useRef(null),se=r.useRef(null),ue=r.useRef(null),de=r.useRef(null),fe=r.useRef(null),pe=r.useRef(!1),he=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,t=Mb(r.useState(!1),2),n=t[0],o=t[1],i=r.useRef(null),a=function(){window.clearTimeout(i.current)};return r.useEffect((function(){return a}),[]),[n,function(t,n){a(),i.current=window.setTimeout((function(){o(t),n&&n()}),e)},a]}(),ge=Mb(he,3),ve=ge[0],me=ge[1],ye=ge[2];r.useImperativeHandle(t,(function(){var e,t;return{focus:null===(e=de.current)||void 0===e?void 0:e.focus,blur:null===(t=de.current)||void 0===t?void 0:t.blur,scrollTo:function(e){var t;return null===(t=fe.current)||void 0===t?void 0:t.scrollTo(e)},nativeElement:ce.current||se.current}}));var be=r.useMemo((function(){var e;if("combobox"!==y)return k;var t=null===(e=f[0])||void 0===e?void 0:e.value;return"string"===typeof t||"number"===typeof t?String(t):""}),[k,y,f]),xe="combobox"===y&&"function"===typeof w&&w()||null,we="function"===typeof S&&S(),Se=$b(se,null===we||void 0===we||null===(n=we.props)||void 0===n?void 0:n.ref),Oe=Mb(r.useState(!1),2),_e=Oe[0],Ce=Oe[1];Rb((function(){Ce(!0)}),[]);var Ee=Mb(Fb(!1,{defaultValue:_,value:O}),2),Pe=Ee[0],Me=Ee[1],ke=!!_e&&Pe,Ae=!v&&h;(b||Ae&&ke&&"combobox"===y)&&(ke=!1);var Ie=!Ae&&ke,Te=r.useCallback((function(e){var t=void 0!==e?e:!ke;b||(Me(t),ke!==t&&(null===C||void 0===C||C(t)))}),[b,ke,Me,C]),je=r.useMemo((function(){return(j||[]).some((function(e){return["\n","\r\n"].includes(e)}))}),[j]),Le=r.useContext(AS)||{},Re=Le.maxCount,De=Le.rawValues,Ne=function(e,t,n){if(!(ne&&ES(Re)&&(null===De||void 0===De?void 0:De.size)>=Re)){var r=!0,o=e;null===P||void 0===P||P(null);var i=kS(e,j,ES(Re)?Re-De.size:void 0),a=n?null:i;return"combobox"!==y&&a&&(o="",null===T||void 0===T||T(a),Te(!1),r=!1),I&&be!==o&&I(o,{source:t?"typing":"effect"}),r}};r.useEffect((function(){ke||ne||"combobox"===y||Ne("",!1,!1)}),[ke]),r.useEffect((function(){Pe&&b&&Me(!1),b&&!pe.current&&me(!1)}),[b]);var Fe=Mb(ex(),2),Be=Fe[0],ze=Fe[1],He=r.useRef(!1),We=r.useRef(!1),Ve=[];r.useEffect((function(){return function(){Ve.forEach((function(e){return clearTimeout(e)})),Ve.splice(0,Ve.length)}}),[]);var Ge,Ye=Mb(r.useState({}),2)[1];we&&(Ge=function(e){Te(e)}),function(e,t,n,o){var i=r.useRef(null);i.current={open:t,triggerOpen:n,customizedTrigger:o},r.useEffect((function(){function t(t){var n;if(null===(n=i.current)||void 0===n||!n.customizedTrigger){var r=t.target;r.shadowRoot&&t.composed&&(r=t.composedPath()[0]||r),i.current.open&&e().filter((function(e){return e})).every((function(e){return!e.contains(r)&&e!==r}))&&i.current.triggerOpen(!1)}}return window.addEventListener("mousedown",t),function(){return window.removeEventListener("mousedown",t)}}),[])}((function(){var e;return[ce.current,null===(e=ue.current)||void 0===e?void 0:e.getPopupElement()]}),Ie,Te,!!we);var Ue,Xe=r.useMemo((function(){return Cb(Cb({},e),{},{notFoundContent:v,open:ke,triggerOpen:Ie,id:o,showSearch:re,multiple:ne,toggleOpen:Te})}),[e,v,Ie,ke,o,re,ne,Te]),qe=!!R||x;qe&&(Ue=r.createElement(Zb,{className:c()("".concat(i,"-arrow"),Ob({},"".concat(i,"-arrow-loading"),x)),customizeIcon:R,customizeIconProps:{loading:x,searchValue:be,open:ke,focused:ve,showSearch:re}}));var Ke,$e=function(e,t,n,o,i){var a=arguments.length>5&&void 0!==arguments[5]&&arguments[5],l=arguments.length>6?arguments[6]:void 0,c=arguments.length>7?arguments[7]:void 0,s=r.useMemo((function(){return"object"===wb(o)?o.clearIcon:i||void 0}),[o,i]);return{allowClear:r.useMemo((function(){return!(a||!o||!n.length&&!l||"combobox"===c&&""===l)}),[o,a,n.length,l,c]),clearIcon:r.createElement(Zb,{className:"".concat(e,"-clear"),onMouseDown:t,customizeIcon:s},"\xd7")}}(i,(function(){var e;null===m||void 0===m||m(),null===(e=de.current)||void 0===e||e.focus(),p([],{type:"clear",values:f}),Ne("",!1,!1)}),f,L,D,b,be,y),Qe=$e.allowClear,Ze=$e.clearIcon,Je=r.createElement(N,{ref:fe}),et=c()(i,a,Ob(Ob(Ob(Ob(Ob(Ob(Ob(Ob(Ob(Ob({},"".concat(i,"-focused"),ve),"".concat(i,"-multiple"),ne),"".concat(i,"-single"),!ne),"".concat(i,"-allow-clear"),L),"".concat(i,"-show-arrow"),qe),"".concat(i,"-disabled"),b),"".concat(i,"-loading"),x),"".concat(i,"-open"),ke),"".concat(i,"-customize-input"),xe),"".concat(i,"-show-search"),re)),tt=r.createElement(_S,{ref:ue,disabled:b,prefixCls:i,visible:Ie,popupElement:Je,animation:F,transitionName:B,dropdownStyle:z,dropdownClassName:H,direction:u,dropdownMatchSelectWidth:W,dropdownRender:V,dropdownAlign:G,placement:Y,builtinPlacements:U,getPopupContainer:X,empty:h,getTriggerDOMNode:function(e){return se.current||e},onPopupVisibleChange:Ge,onPopupMouseEnter:function(){Ye({})}},we?r.cloneElement(we,{ref:Se}):r.createElement(Fx,vb({},e,{domRef:se,prefixCls:i,inputElement:xe,ref:de,id:o,showSearch:re,autoClearSearchValue:A,mode:y,activeDescendantId:M,tagRender:s,values:f,open:ke,onToggleOpen:Te,activeValue:E,searchValue:be,onSearch:Ne,onSearchSubmit:function(e){e&&e.trim()&&I(e,{source:"submit"})},onRemove:function(e){var t=f.filter((function(t){return t!==e}));p(t,{type:"remove",values:[e]})},tokenWithEnter:je})));return Ke=we?tt:r.createElement("div",vb({className:et},oe,{ref:ce,onMouseDown:function(e){var t,n=e.target,r=null===(t=ue.current)||void 0===t?void 0:t.getPopupElement();if(r&&r.contains(n)){var o=setTimeout((function(){var e,t=Ve.indexOf(o);-1!==t&&Ve.splice(t,1),ye(),ae||r.contains(document.activeElement)||null===(e=de.current)||void 0===e||e.focus()}));Ve.push(o)}for(var i=arguments.length,a=new Array(i>1?i-1:0),l=1;l<i;l++)a[l-1]=arguments[l];null===ee||void 0===ee||ee.apply(void 0,[e].concat(a))},onKeyDown:function(e){var t,n=Be(),r=e.key,o="Enter"===r;if(o&&("combobox"!==y&&e.preventDefault(),ke||Te(!0)),ze(!!be),"Backspace"===r&&!n&&ne&&!be&&f.length){for(var i=xb(f),a=null,l=i.length-1;l>=0;l-=1){var c=i[l];if(!c.disabled){i.splice(l,1),a=c;break}}a&&p(i,{type:"remove",values:[a]})}for(var s=arguments.length,u=new Array(s>1?s-1:0),d=1;d<s;d++)u[d-1]=arguments[d];!ke||o&&He.current||null===(t=fe.current)||void 0===t||t.onKeyDown.apply(t,[e].concat(u)),o&&(He.current=!0),null===J||void 0===J||J.apply(void 0,[e].concat(u))},onKeyUp:function(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;ke&&(null===(o=fe.current)||void 0===o||o.onKeyUp.apply(o,[e].concat(n))),"Enter"===e.key&&(He.current=!1),null===Z||void 0===Z||Z.apply(void 0,[e].concat(n))},onFocus:function(){me(!0),b||($&&!We.current&&$.apply(void 0,arguments),K.includes("focus")&&Te(!0)),We.current=!0},onBlur:function(){pe.current=!0,me(!1,(function(){We.current=!1,pe.current=!1,Te(!1)})),b||(be&&("tags"===y?I(be,{source:"submit"}):"multiple"===y&&I("",{source:"blur"})),Q&&Q.apply(void 0,arguments))}}),r.createElement(IS,{visible:ve&&!ke,values:f}),tt,Ue,Qe&&Ze),r.createElement(Jb.Provider,{value:Xe},Ke)}));const DS=RS;var NS=function(){return null};NS.isSelectOptGroup=!0;const FS=NS;var BS=function(){return null};BS.isSelectOption=!0;const zS=BS;var HS=r.forwardRef((function(e,t){var n=e.height,o=e.offsetY,i=e.offsetX,a=e.children,l=e.prefixCls,s=e.onInnerResize,u=e.innerProps,d=e.rtl,f=e.extra,p={},g={display:"flex",flexDirection:"column"};return void 0!==o&&(p={height:n,position:"relative",overflow:"hidden"},g=O(O({},g),{},w(w(w(w(w({transform:"translateY(".concat(o,"px)")},d?"marginRight":"marginLeft",-i),"position","absolute"),"left",0),"right",0),"top",0))),r.createElement("div",{style:p},r.createElement(qh,{onResize:function(e){e.offsetHeight&&s&&s()}},r.createElement("div",h({style:g,className:c()(w({},"".concat(l,"-holder-inner"),l)),ref:t},u),a,f)))}));HS.displayName="Filler";const WS=HS;function VS(e,t){return("touches"in e?e.touches[0]:e)[t?"pageX":"pageY"]}var GS=r.forwardRef((function(e,t){var n=e.prefixCls,o=e.rtl,i=e.scrollOffset,a=e.scrollRange,l=e.onStartMove,s=e.onStopMove,u=e.onScroll,d=e.horizontal,f=e.spinSize,p=e.containerSize,h=e.style,g=e.thumbStyle,v=gt(r.useState(!1),2),m=v[0],y=v[1],b=gt(r.useState(null),2),x=b[0],S=b[1],_=gt(r.useState(null),2),C=_[0],E=_[1],P=!o,M=r.useRef(),k=r.useRef(),A=gt(r.useState(!1),2),I=A[0],T=A[1],j=r.useRef(),L=function(){clearTimeout(j.current),T(!0),j.current=setTimeout((function(){T(!1)}),3e3)},R=a-p||0,D=p-f||0,N=r.useMemo((function(){return 0===i||0===R?0:i/R*D}),[i,R,D]),F=r.useRef({top:N,dragging:m,pageY:x,startTop:C});F.current={top:N,dragging:m,pageY:x,startTop:C};var B=function(e){y(!0),S(VS(e,d)),E(F.current.top),l(),e.stopPropagation(),e.preventDefault()};r.useEffect((function(){var e=function(e){e.preventDefault()},t=M.current,n=k.current;return t.addEventListener("touchstart",e),n.addEventListener("touchstart",B),function(){t.removeEventListener("touchstart",e),n.removeEventListener("touchstart",B)}}),[]);var z=r.useRef();z.current=R;var H=r.useRef();H.current=D,r.useEffect((function(){if(m){var e,t=function(t){var n=F.current,r=n.dragging,o=n.pageY,i=n.startTop;if(tg.cancel(e),r){var a=VS(t,d)-o,l=i;!P&&d?l-=a:l+=a;var c=z.current,s=H.current,f=s?l/s:0,p=Math.ceil(f*c);p=Math.max(p,0),p=Math.min(p,c),e=tg((function(){u(p,d)}))}},n=function(){y(!1),s()};return window.addEventListener("mousemove",t),window.addEventListener("touchmove",t),window.addEventListener("mouseup",n),window.addEventListener("touchend",n),function(){window.removeEventListener("mousemove",t),window.removeEventListener("touchmove",t),window.removeEventListener("mouseup",n),window.removeEventListener("touchend",n),tg.cancel(e)}}}),[m]),r.useEffect((function(){L()}),[i]),r.useImperativeHandle(t,(function(){return{delayHidden:L}}));var W="".concat(n,"-scrollbar"),V={position:"absolute",visibility:I?null:"hidden"},G={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return d?(V.height=8,V.left=0,V.right=0,V.bottom=0,G.height="100%",G.width=f,P?G.left=N:G.right=N):(V.width=8,V.top=0,V.bottom=0,P?V.right=0:V.left=0,G.width="100%",G.height=f,G.top=N),r.createElement("div",{ref:M,className:c()(W,w(w(w({},"".concat(W,"-horizontal"),d),"".concat(W,"-vertical"),!d),"".concat(W,"-visible"),I)),style:O(O({},V),h),onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},onMouseMove:L},r.createElement("div",{ref:k,className:c()("".concat(W,"-thumb"),w({},"".concat(W,"-thumb-moving"),m)),style:O(O({},G),g),onMouseDown:B}))}));const YS=GS;function US(e){var t=e.children,n=e.setRef,o=r.useCallback((function(e){n(e)}),[]);return r.cloneElement(t,{ref:o})}const XS=function(){function e(){M(this,e),w(this,"maps",void 0),w(this,"id",0),this.maps=Object.create(null)}return A(e,[{key:"set",value:function(e,t){this.maps[e]=t,this.id+=1}},{key:"get",value:function(e){return this.maps[e]}}]),e}();var qS=10;function KS(e,t,n){var o=gt(r.useState(e),2),i=o[0],a=o[1],l=gt(r.useState(null),2),c=l[0],s=l[1];return r.useEffect((function(){var r=function(e,t,n){var r,o,i=e.length,a=t.length;if(0===i&&0===a)return null;i<a?(r=e,o=t):(r=t,o=e);var l={__EMPTY_ITEM__:!0};function c(e){return void 0!==e?n(e):l}for(var s=null,u=1!==Math.abs(i-a),d=0;d<o.length;d+=1){var f=c(r[d]);if(f!==c(o[d])){s=d,u=u||f!==c(o[d+1]);break}}return null===s?null:{index:s,multiple:u}}(i||[],e||[],t);void 0!==(null===r||void 0===r?void 0:r.index)&&(null===n||void 0===n||n(r.index),s(e[r.index])),a(e)}),[e]),[c]}const $S="object"===("undefined"===typeof navigator?"undefined":v(navigator))&&/Firefox/i.test(navigator.userAgent),QS=function(e,t){var n=(0,r.useRef)(!1),o=(0,r.useRef)(null);var i=(0,r.useRef)({top:e,bottom:t});return i.current.top=e,i.current.bottom=t,function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=e<0&&i.current.top||e>0&&i.current.bottom;return t&&r?(clearTimeout(o.current),n.current=!1):r&&!n.current||(clearTimeout(o.current),n.current=!0,o.current=setTimeout((function(){n.current=!1}),50)),!n.current&&r}};function ZS(e,t,n,o,i){var a=(0,r.useRef)(0),l=(0,r.useRef)(null),c=(0,r.useRef)(null),s=(0,r.useRef)(!1),u=QS(t,n);var d=(0,r.useRef)(null),f=(0,r.useRef)(null);return[function(t){if(e){tg.cancel(f.current),f.current=tg((function(){d.current=null}),2);var n=t.deltaX,r=t.deltaY,p=t.shiftKey,h=n,g=r;("sx"===d.current||!d.current&&p&&r&&!n)&&(h=r,g=0,d.current="sx");var v=Math.abs(h),m=Math.abs(g);null===d.current&&(d.current=o&&v>m?"x":"y"),"y"===d.current?function(e,t){tg.cancel(l.current),a.current+=t,c.current=t,u(t)||($S||e.preventDefault(),l.current=tg((function(){var e=s.current?10:1;i(a.current*e),a.current=0})))}(t,g):function(e,t){i(t,!0),$S||e.preventDefault()}(t,h)}},function(t){e&&(s.current=t.detail===c.current)}]}var JS=14/15;var eO=20;function tO(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=e/(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)*e;return isNaN(t)&&(t=0),t=Math.max(t,eO),Math.floor(t)}var nO=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],rO=[],oO={overflowY:"auto",overflowAnchor:"none"};function iO(e,t){var n=e.prefixCls,o=void 0===n?"rc-virtual-list":n,i=e.className,a=e.height,l=e.itemHeight,s=e.fullHeight,u=void 0===s||s,d=e.style,f=e.data,p=e.children,m=e.itemKey,y=e.virtual,b=e.direction,x=e.scrollWidth,S=e.component,_=void 0===S?"div":S,C=e.onScroll,E=e.onVirtualScroll,P=e.onVisibleChange,M=e.innerProps,k=e.extraRender,A=e.styles,I=g(e,nO),T=!(!1===y||!a||!l),j=T&&f&&(l*f.length>a||!!x),L="rtl"===b,R=c()(o,w({},"".concat(o,"-rtl"),L),i),D=f||rO,N=(0,r.useRef)(),F=(0,r.useRef)(),B=gt((0,r.useState)(0),2),z=B[0],H=B[1],W=gt((0,r.useState)(0),2),V=W[0],G=W[1],Y=gt((0,r.useState)(!1),2),U=Y[0],X=Y[1],q=function(){X(!0)},K=function(){X(!1)},$=r.useCallback((function(e){return"function"===typeof m?m(e):null===e||void 0===e?void 0:e[m]}),[m]),Q={getKey:$};function Z(e){H((function(t){var n=function(e){var t=e;Number.isNaN(we.current)||(t=Math.min(t,we.current));return t=Math.max(t,0),t}("function"===typeof e?e(t):e);return N.current.scrollTop=n,n}))}var J=(0,r.useRef)({start:0,end:D.length}),ee=(0,r.useRef)(),te=gt(KS(D,$),1)[0];ee.current=te;var ne=function(e,t,n){var o=gt(r.useState(0),2),i=o[0],a=o[1],l=(0,r.useRef)(new Map),c=(0,r.useRef)(new XS),s=(0,r.useRef)();function u(){tg.cancel(s.current)}function d(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];u();var t=function(){l.current.forEach((function(e,t){if(e&&e.offsetParent){var n=mh(e),r=n.offsetHeight;c.current.get(t)!==r&&c.current.set(t,n.offsetHeight)}})),a((function(e){return e+1}))};e?t():s.current=tg(t)}return(0,r.useEffect)((function(){return u}),[]),[function(r,o){var i=e(r),a=l.current.get(i);o?(l.current.set(i,o),d()):l.current.delete(i),!a!==!o&&(o?null===t||void 0===t||t(r):null===n||void 0===n||n(r))},d,c.current,i]}($,null,null),re=gt(ne,4),oe=re[0],ie=re[1],ae=re[2],le=re[3],ce=r.useMemo((function(){if(!T)return{scrollHeight:void 0,start:0,end:D.length-1,offset:void 0};var e;if(!j)return{scrollHeight:(null===(e=F.current)||void 0===e?void 0:e.offsetHeight)||0,start:0,end:D.length-1,offset:void 0};for(var t,n,r,o=0,i=D.length,c=0;c<i;c+=1){var s=D[c],u=$(s),d=ae.get(u),f=o+(void 0===d?l:d);f>=z&&void 0===t&&(t=c,n=o),f>z+a&&void 0===r&&(r=c),o=f}return void 0===t&&(t=0,n=0,r=Math.ceil(a/l)),void 0===r&&(r=D.length-1),{scrollHeight:o,start:t,end:r=Math.min(r+1,D.length-1),offset:n}}),[j,T,z,D,le,a]),se=ce.scrollHeight,ue=ce.start,de=ce.end,fe=ce.offset;J.current.start=ue,J.current.end=de;var pe=gt(r.useState({width:0,height:a}),2),he=pe[0],ge=pe[1],ve=(0,r.useRef)(),me=(0,r.useRef)(),ye=r.useMemo((function(){return tO(he.width,x)}),[he.width,x]),be=r.useMemo((function(){return tO(he.height,se)}),[he.height,se]),xe=se-a,we=(0,r.useRef)(xe);we.current=xe;var Se=z<=0,Oe=z>=xe,_e=QS(Se,Oe),Ce=function(){return{x:L?-V:V,y:z}},Ee=(0,r.useRef)(Ce()),Pe=Ri((function(){if(E){var e=Ce();Ee.current.x===e.x&&Ee.current.y===e.y||(E(e),Ee.current=e)}}));function Me(e,t){var n=e;t?((0,Nu.flushSync)((function(){G(n)})),Pe()):Z(n)}var ke=function(e){var t=e,n=x-he.width;return t=Math.max(t,0),t=Math.min(t,n)},Ae=Ri((function(e,t){t?((0,Nu.flushSync)((function(){G((function(t){return ke(t+(L?-e:e))}))})),Pe()):Z((function(t){return t+e}))})),Ie=gt(ZS(T,Se,Oe,!!x,Ae),2),Te=Ie[0],je=Ie[1];!function(e,t,n){var o,i=(0,r.useRef)(!1),a=(0,r.useRef)(0),l=(0,r.useRef)(null),c=(0,r.useRef)(null),s=function(e){if(i.current){var t=Math.ceil(e.touches[0].pageY),r=a.current-t;a.current=t,n(r)&&e.preventDefault(),clearInterval(c.current),c.current=setInterval((function(){(!n(r*=JS,!0)||Math.abs(r)<=.1)&&clearInterval(c.current)}),16)}},u=function(){i.current=!1,o()},d=function(e){o(),1!==e.touches.length||i.current||(i.current=!0,a.current=Math.ceil(e.touches[0].pageY),l.current=e.target,l.current.addEventListener("touchmove",s),l.current.addEventListener("touchend",u))};o=function(){l.current&&(l.current.removeEventListener("touchmove",s),l.current.removeEventListener("touchend",u))},Cn((function(){return e&&t.current.addEventListener("touchstart",d),function(){var e;null===(e=t.current)||void 0===e||e.removeEventListener("touchstart",d),o(),clearInterval(c.current)}}),[e])}(T,N,(function(e,t){return!_e(e,t)&&(Te({preventDefault:function(){},deltaY:e}),!0)})),Cn((function(){function e(e){T&&e.preventDefault()}var t=N.current;return t.addEventListener("wheel",Te),t.addEventListener("DOMMouseScroll",je),t.addEventListener("MozMousePixelScroll",e),function(){t.removeEventListener("wheel",Te),t.removeEventListener("DOMMouseScroll",je),t.removeEventListener("MozMousePixelScroll",e)}}),[T]),Cn((function(){x&&G((function(e){return ke(e)}))}),[he.width,x]);var Le=function(){var e,t;null===(e=ve.current)||void 0===e||e.delayHidden(),null===(t=me.current)||void 0===t||t.delayHidden()},Re=function(e,t,n,o,i,a,l,c){var s=r.useRef(),u=gt(r.useState(null),2),d=u[0],f=u[1];return Cn((function(){if(d&&d.times<qS){if(!e.current)return void f((function(e){return O({},e)}));a();var r=d.targetAlign,c=d.originAlign,s=d.index,u=d.offset,p=e.current.clientHeight,h=!1,g=r,v=null;if(p){for(var m=r||c,y=0,b=0,x=0,w=Math.min(t.length-1,s),S=0;S<=w;S+=1){var _=i(t[S]);b=y;var C=n.get(_);y=x=b+(void 0===C?o:C)}for(var E="top"===m?u:p-u,P=w;P>=0;P-=1){var M=i(t[P]),k=n.get(M);if(void 0===k){h=!0;break}if((E-=k)<=0)break}switch(m){case"top":v=b-u;break;case"bottom":v=x-p+u;break;default:var A=e.current.scrollTop;b<A?g="top":x>A+p&&(g="bottom")}null!==v&&l(v),v!==d.lastTop&&(h=!0)}h&&f(O(O({},d),{},{times:d.times+1,targetAlign:g,lastTop:v}))}}),[d,e.current]),function(e){if(null!==e&&void 0!==e){if(tg.cancel(s.current),"number"===typeof e)l(e);else if(e&&"object"===v(e)){var n,r=e.align;n="index"in e?e.index:t.findIndex((function(t){return i(t)===e.key}));var o=e.offset;f({times:0,index:n,offset:void 0===o?0:o,originAlign:r})}}else c()}}(N,D,ae,l,$,(function(){return ie(!0)}),Z,Le);r.useImperativeHandle(t,(function(){return{getScrollInfo:Ce,scrollTo:function(e){var t;(t=e)&&"object"===v(t)&&("left"in t||"top"in t)?(void 0!==e.left&&G(ke(e.left)),Re(e.top)):Re(e)}}})),Cn((function(){if(P){var e=D.slice(ue,de+1);P(e,D)}}),[ue,de,D]);var De=function(e,t,n,o){var i=gt(r.useMemo((function(){return[new Map,[]]}),[e,n.id,o]),2),a=i[0],l=i[1];return function(r){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r,c=a.get(r),s=a.get(i);if(void 0===c||void 0===s)for(var u=e.length,d=l.length;d<u;d+=1){var f,p=e[d],h=t(p);a.set(h,d);var g=null!==(f=n.get(h))&&void 0!==f?f:o;if(l[d]=(l[d-1]||0)+g,h===r&&(c=d),h===i&&(s=d),void 0!==c&&void 0!==s)break}return{top:l[c-1]||0,bottom:l[s]}}}(D,$,ae,l),Ne=null===k||void 0===k?void 0:k({start:ue,end:de,virtual:j,offsetX:V,offsetY:fe,rtl:L,getSize:De}),Fe=function(e,t,n,o,i,a,l){var c=l.getKey;return e.slice(t,n+1).map((function(e,n){var l=a(e,t+n,{style:{width:o}}),s=c(e);return r.createElement(US,{key:s,setRef:function(t){return i(e,t)}},l)}))}(D,ue,de,x,oe,p,Q),Be=null;a&&(Be=O(w({},u?"height":"maxHeight",a),oO),T&&(Be.overflowY="hidden",x&&(Be.overflowX="hidden"),U&&(Be.pointerEvents="none")));var ze={};return L&&(ze.dir="rtl"),r.createElement("div",h({style:O(O({},d),{},{position:"relative"}),className:R},ze,I),r.createElement(qh,{onResize:function(e){ge({width:e.width||e.offsetWidth,height:e.height||e.offsetHeight})}},r.createElement(_,{className:"".concat(o,"-holder"),style:Be,ref:N,onScroll:function(e){var t=e.currentTarget.scrollTop;t!==z&&Z(t),null===C||void 0===C||C(e),Pe()},onMouseEnter:Le},r.createElement(WS,{prefixCls:o,height:se,offsetX:V,offsetY:fe,scrollWidth:x,onInnerResize:ie,ref:F,innerProps:M,rtl:L,extra:Ne},Fe))),j&&se>a&&r.createElement(YS,{ref:ve,prefixCls:o,scrollOffset:z,scrollRange:se,rtl:L,onScroll:Me,onStartMove:q,onStopMove:K,spinSize:be,containerSize:he.height,style:null===A||void 0===A?void 0:A.verticalScrollBar,thumbStyle:null===A||void 0===A?void 0:A.verticalScrollBarThumb}),j&&x>he.width&&r.createElement(YS,{ref:me,prefixCls:o,scrollOffset:V,scrollRange:x,rtl:L,onScroll:Me,onStartMove:q,onStopMove:K,spinSize:ye,containerSize:he.width,horizontal:!0,style:null===A||void 0===A?void 0:A.horizontalScrollBar,thumbStyle:null===A||void 0===A?void 0:A.horizontalScrollBarThumb}))}var aO=r.forwardRef(iO);aO.displayName="List";const lO=aO;var cO=["disabled","title","children","style","className"];function sO(e){return"string"===typeof e||"number"===typeof e}var uO=function(e,t){var n=r.useContext(Jb),o=n.prefixCls,i=n.id,a=n.open,l=n.multiple,s=n.mode,u=n.searchValue,d=n.toggleOpen,f=n.notFoundContent,p=n.onPopupScroll,h=r.useContext(AS),g=h.maxCount,v=h.flattenOptions,m=h.onActiveValue,y=h.defaultActiveFirstOption,b=h.onSelect,x=h.menuItemSelectedIcon,w=h.rawValues,S=h.fieldNames,O=h.virtual,_=h.direction,C=h.listHeight,E=h.listItemHeight,P=h.optionRender,M="".concat(o,"-item"),k=Xb((function(){return v}),[a,v],(function(e,t){return t[0]&&e[1]!==t[1]})),A=r.useRef(null),I=r.useMemo((function(){return l&&ES(g)&&(null===w||void 0===w?void 0:w.size)>=g}),[l,g,null===w||void 0===w?void 0:w.size]),T=function(e){e.preventDefault()},j=function(e){var t;null===(t=A.current)||void 0===t||t.scrollTo("number"===typeof e?{index:e}:e)},L=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=k.length,r=0;r<n;r+=1){var o=(e+r*t+n)%n,i=k[o]||{},a=i.group,l=i.data;if(!a&&(null===l||void 0===l||!l.disabled)&&!I)return o}return-1},R=Mb(r.useState((function(){return L(0)})),2),D=R[0],N=R[1],F=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];N(e);var n={source:t?"keyboard":"mouse"},r=k[e];r?m(r.value,e,n):m(null,-1,n)};(0,r.useEffect)((function(){F(!1!==y?L(0):-1)}),[k.length,u]);var B=r.useCallback((function(e){return w.has(e)&&"combobox"!==s}),[s,xb(w).toString(),w.size]);(0,r.useEffect)((function(){var e,t=setTimeout((function(){if(!l&&a&&1===w.size){var e=Array.from(w)[0],t=k.findIndex((function(t){return t.data.value===e}));-1!==t&&(F(t),j(t))}}));a&&(null===(e=A.current)||void 0===e||e.scrollTo(void 0));return function(){return clearTimeout(t)}}),[a,u]);var z=function(e){void 0!==e&&b(e,{selected:!w.has(e)}),l||d(!1)};if(r.useImperativeHandle(t,(function(){return{onKeyDown:function(e){var t=e.which,n=e.ctrlKey;switch(t){case nx.N:case nx.P:case nx.UP:case nx.DOWN:var r=0;if(t===nx.UP?r=-1:t===nx.DOWN?r=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&n&&(t===nx.N?r=1:t===nx.P&&(r=-1)),0!==r){var o=L(D+r,r);j(o),F(o,!0)}break;case nx.ENTER:var i,l=k[D];!l||null!==l&&void 0!==l&&null!==(i=l.data)&&void 0!==i&&i.disabled||I?z(void 0):z(l.value),a&&e.preventDefault();break;case nx.ESC:d(!1),a&&e.stopPropagation()}},onKeyUp:function(){},scrollTo:function(e){j(e)}}})),0===k.length)return r.createElement("div",{role:"listbox",id:"".concat(i,"_list"),className:"".concat(M,"-empty"),onMouseDown:T},f);var H=Object.keys(S).map((function(e){return S[e]})),W=function(e){return e.label};function V(e,t){return{role:e.group?"presentation":"option",id:"".concat(i,"_list_").concat(t)}}var G=function(e){var t=k[e];if(!t)return null;var n=t.data||{},o=n.value,i=t.group,a=ix(n,!0),l=W(t);return t?r.createElement("div",vb({"aria-label":"string"!==typeof l||i?null:l},a,{key:e},V(t,e),{"aria-selected":B(o)}),o):null},Y={role:"listbox",id:"".concat(i,"_list")};return r.createElement(r.Fragment,null,O&&r.createElement("div",vb({},Y,{style:{height:0,width:0,overflow:"hidden"}}),G(D-1),G(D),G(D+1)),r.createElement(lO,{itemKey:"key",ref:A,data:k,height:C,itemHeight:E,fullHeight:!1,onMouseDown:T,onScroll:p,virtual:O,direction:_,innerProps:O?null:Y},(function(e,t){var n=e.group,o=e.groupOption,i=e.data,a=e.label,l=e.value,s=i.key;if(n){var u,d=null!==(u=i.title)&&void 0!==u?u:sO(a)?a.toString():void 0;return r.createElement("div",{className:c()(M,"".concat(M,"-group"),i.className),title:d},void 0!==a?a:s)}var f=i.disabled,p=i.title,h=(i.children,i.style),g=i.className,v=function(e,t){var n=Cb({},e);return Array.isArray(t)&&t.forEach((function(e){delete n[e]})),n}(kb(i,cO),H),m=B(l),y=f||!m&&I,b="".concat(M,"-option"),w=c()(M,b,g,Ob(Ob(Ob(Ob({},"".concat(b,"-grouped"),o),"".concat(b,"-active"),D===t&&!y),"".concat(b,"-disabled"),y),"".concat(b,"-selected"),m)),S=W(e),_=!x||"function"===typeof x||m,C="number"===typeof S?S:S||l,E=sO(C)?C.toString():void 0;return void 0!==p&&(E=p),r.createElement("div",vb({},ix(v),O?{}:V(e,t),{"aria-selected":m,className:w,title:E,onMouseMove:function(){D===t||y||F(t)},onClick:function(){y||z(l)},style:h}),r.createElement("div",{className:"".concat(b,"-content")},"function"===typeof P?P(e,{index:t}):C),r.isValidElement(x)||m,_&&r.createElement(Zb,{className:"".concat(M,"-option-state"),customizeIcon:x,customizeIconProps:{value:l,disabled:y,isSelected:m}},m?"\u2713":null))})))};const dO=r.forwardRef(uO);function fO(e,t){return kx(e).join("").toUpperCase().includes(t)}var pO=0,hO=Ib();function gO(e){var t=Mb(r.useState(),2),n=t[0],o=t[1];return r.useEffect((function(){o("rc_select_".concat(function(){var e;return hO?(e=pO,pO+=1):e="TEST_OR_SSR",e}()))}),[]),e||n}function vO(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];return r.Children.forEach(e,(function(e){(void 0!==e&&null!==e||t.keepEmpty)&&(Array.isArray(e)?n=n.concat(vO(e)):(0,N.isFragment)(e)&&e.props?n=n.concat(vO(e.props.children,t)):n.push(e))})),n}var mO=["children","value"],yO=["children"];function bO(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return vO(e).map((function(e,n){if(!r.isValidElement(e)||!e.type)return null;var o=e,i=o.type.isSelectOptGroup,a=o.key,l=o.props,c=l.children,s=kb(l,yO);return t||!i?function(e){var t=e,n=t.key,r=t.props,o=r.children,i=r.value;return Cb({key:n,value:void 0!==i?i:n,children:o},kb(r,mO))}(e):Cb(Cb({key:"__RC_SELECT_GRP__".concat(null===a?n:a,"__"),label:a},s),{},{options:bO(c)})})).filter((function(e){return e}))}const xO=function(e,t,n,o,i){return r.useMemo((function(){var r=e;!e&&(r=bO(t));var a=new Map,l=new Map,c=function(e,t,n){n&&"string"===typeof n&&e.set(t[n],t)};return function e(t){for(var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],s=0;s<t.length;s+=1){var u=t[s];!u[n.options]||r?(a.set(u[n.value],u),c(l,u,n.label),c(l,u,o),c(l,u,i)):e(u[n.options],!0)}}(r),{options:r,valueOptions:a,labelOptions:l}}),[e,t,n,o,i])};function wO(e){var t=r.useRef();t.current=e;var n=r.useCallback((function(){return t.current.apply(t,arguments)}),[]);return n}var SO=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],OO=["inputValue"];var _O=r.forwardRef((function(e,t){var n=e.id,o=e.mode,i=e.prefixCls,a=void 0===i?"rc-select":i,l=e.backfill,c=e.fieldNames,s=e.inputValue,u=e.searchValue,d=e.onSearch,f=e.autoClearSearchValue,p=void 0===f||f,h=e.onSelect,g=e.onDeselect,v=e.dropdownMatchSelectWidth,m=void 0===v||v,y=e.filterOption,b=e.filterSort,x=e.optionFilterProp,w=e.optionLabelProp,S=e.options,O=e.optionRender,_=e.children,C=e.defaultActiveFirstOption,E=e.menuItemSelectedIcon,P=e.virtual,M=e.direction,k=e.listHeight,A=void 0===k?200:k,I=e.listItemHeight,T=void 0===I?20:I,j=e.labelRender,L=e.value,R=e.defaultValue,D=e.labelInValue,N=e.onChange,F=e.maxCount,B=kb(e,SO),z=gO(n),H=LS(o),W=!(S||!_),V=r.useMemo((function(){return(void 0!==y||"combobox"!==o)&&y}),[y,o]),G=r.useMemo((function(){return PS(c,W)}),[JSON.stringify(c),W]),Y=Mb(Fb("",{value:void 0!==u?u:s,postState:function(e){return e||""}}),2),U=Y[0],X=Y[1],q=xO(S,_,G,x,w),K=q.valueOptions,$=q.labelOptions,Q=q.options,Z=r.useCallback((function(e){return kx(e).map((function(e){var t,n,r,o,i,a;(function(e){return!e||"object"!==wb(e)})(e)?t=e:(r=e.key,n=e.label,t=null!==(a=e.value)&&void 0!==a?a:r);var l,c=K.get(t);c&&(void 0===n&&(n=null===c||void 0===c?void 0:c[w||G.label]),void 0===r&&(r=null!==(l=null===c||void 0===c?void 0:c.key)&&void 0!==l?l:t),o=null===c||void 0===c?void 0:c.disabled,i=null===c||void 0===c?void 0:c.title);return{label:n,value:t,key:r,disabled:o,title:i}}))}),[G,w,K]),J=Mb(Fb(R,{value:L}),2),ee=J[0],te=J[1],ne=r.useMemo((function(){var e,t=Z(H&&null===ee?[]:ee);return"combobox"===o&&function(e){return!e&&0!==e}(null===(e=t[0])||void 0===e?void 0:e.value)?[]:t}),[ee,Z,o,H]),re=function(e,t){var n=r.useRef({values:new Map,options:new Map});return[r.useMemo((function(){var r=n.current,o=r.values,i=r.options,a=e.map((function(e){var t;return void 0===e.label?Cb(Cb({},e),{},{label:null===(t=o.get(e.value))||void 0===t?void 0:t.label}):e})),l=new Map,c=new Map;return a.forEach((function(e){l.set(e.value,e),c.set(e.value,t.get(e.value)||i.get(e.value))})),n.current.values=l,n.current.options=c,a}),[e,t]),r.useCallback((function(e){return t.get(e)||n.current.options.get(e)}),[t])]}(ne,K),oe=Mb(re,2),ie=oe[0],ae=oe[1],le=r.useMemo((function(){if(!o&&1===ie.length){var e=ie[0];if(null===e.value&&(null===e.label||void 0===e.label))return[]}return ie.map((function(e){var t;return Cb(Cb({},e),{},{label:null!==(t="function"===typeof j?j(e):e.label)&&void 0!==t?t:e.value})}))}),[o,ie,j]),ce=r.useMemo((function(){return new Set(ie.map((function(e){return e.value})))}),[ie]);r.useEffect((function(){if("combobox"===o){var e,t=null===(e=ie[0])||void 0===e?void 0:e.value;X(function(e){return void 0!==e&&null!==e}(t)?String(t):"")}}),[ie]);var se=wO((function(e,t){var n=null!==t&&void 0!==t?t:e;return Ob(Ob({},G.value,e),G.label,n)})),ue=function(e,t,n,o,i){return r.useMemo((function(){if(!n||!1===o)return e;var r=t.options,a=t.label,l=t.value,c=[],s="function"===typeof o,u=n.toUpperCase(),d=s?o:function(e,t){return i?fO(t[i],u):t[r]?fO(t["children"!==a?a:"label"],u):fO(t[l],u)},f=s?function(e){return MS(e)}:function(e){return e};return e.forEach((function(e){if(e[r])if(d(n,f(e)))c.push(e);else{var t=e[r].filter((function(e){return d(n,f(e))}));t.length&&c.push(Cb(Cb({},e),{},Ob({},r,t)))}else d(n,f(e))&&c.push(e)})),c}),[e,o,i,n,t])}(r.useMemo((function(){if("tags"!==o)return Q;var e=xb(Q);return xb(ie).sort((function(e,t){return e.value<t.value?-1:1})).forEach((function(t){var n=t.value;(function(e){return K.has(e)})(n)||e.push(se(n,t.label))})),e}),[se,Q,K,ie,o]),G,U,V,x),de=r.useMemo((function(){return"tags"!==o||!U||ue.some((function(e){return e[x||"value"]===U}))||ue.some((function(e){return e[G.value]===U}))?ue:[se(U)].concat(xb(ue))}),[se,x,o,ue,U,G]),fe=function e(t){return xb(t).sort((function(e,t){return b(e,t,{searchValue:U})})).map((function(t){return Array.isArray(t.options)?Cb(Cb({},t),{},{options:t.options.length>0?e(t.options):t.options}):t}))},pe=r.useMemo((function(){return b?fe(de):de}),[de,b,U]),he=r.useMemo((function(){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],i=PS(n,!1),a=i.label,l=i.value,c=i.options,s=i.groupLabel;return function e(t,n){Array.isArray(t)&&t.forEach((function(t){if(n||!(c in t)){var i=t[l];o.push({key:CS(t,o.length),groupOption:n,data:t,label:t[a],value:i})}else{var u=t[s];void 0===u&&r&&(u=t.label),o.push({key:CS(t,o.length),group:!0,data:t,label:u}),e(t[c],!0)}}))}(e,!1),o}(pe,{fieldNames:G,childrenAsData:W})}),[pe,G,W]),ge=function(e){var t=Z(e);if(te(t),N&&(t.length!==ie.length||t.some((function(e,t){var n;return(null===(n=ie[t])||void 0===n?void 0:n.value)!==(null===e||void 0===e?void 0:e.value)})))){var n=D?t:t.map((function(e){return e.value})),r=t.map((function(e){return MS(ae(e.value))}));N(H?n:n[0],H?r:r[0])}},ve=Mb(r.useState(null),2),me=ve[0],ye=ve[1],be=Mb(r.useState(0),2),xe=be[0],we=be[1],Se=void 0!==C?C:"combobox"!==o,Oe=r.useCallback((function(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).source,r=void 0===n?"keyboard":n;we(t),l&&"combobox"===o&&null!==e&&"keyboard"===r&&ye(String(e))}),[l,o]),_e=function(e,t,n){var r=function(){var t,n=ae(e);return[D?{label:null===n||void 0===n?void 0:n[G.label],value:e,key:null!==(t=null===n||void 0===n?void 0:n.key)&&void 0!==t?t:e}:e,MS(n)]};if(t&&h){var o=Mb(r(),2),i=o[0],a=o[1];h(i,a)}else if(!t&&g&&"clear"!==n){var l=Mb(r(),2),c=l[0],s=l[1];g(c,s)}},Ce=wO((function(e,t){var n,r=!H||t.selected;n=r?H?[].concat(xb(ie),[e]):[e]:ie.filter((function(t){return t.value!==e})),ge(n),_e(e,r),"combobox"===o?ye(""):LS&&!p||(X(""),ye(""))})),Ee=r.useMemo((function(){var e=!1!==P&&!1!==m;return Cb(Cb({},q),{},{flattenOptions:he,onActiveValue:Oe,defaultActiveFirstOption:Se,onSelect:Ce,menuItemSelectedIcon:E,rawValues:ce,fieldNames:G,virtual:e,direction:M,listHeight:A,listItemHeight:T,childrenAsData:W,maxCount:F,optionRender:O})}),[F,q,he,Oe,Se,Ce,E,ce,G,P,m,M,A,T,W,O]);return r.createElement(AS.Provider,{value:Ee},r.createElement(DS,vb({},B,{id:z,prefixCls:a,ref:t,omitDomProps:OO,mode:o,displayValues:le,onDisplayValuesChange:function(e,t){ge(e);var n=t.type,r=t.values;"remove"!==n&&"clear"!==n||r.forEach((function(e){_e(e.value,!1,n)}))},direction:M,searchValue:U,onSearch:function(e,t){if(X(e),ye(null),"submit"!==t.source)"blur"!==t.source&&("combobox"===o&&ge(e),null===d||void 0===d||d(e));else{var n=(e||"").trim();if(n){var r=Array.from(new Set([].concat(xb(ce),[n])));ge(r),_e(n,!0),X("")}}},autoClearSearchValue:p,onSearchSplit:function(e){var t=e;"tags"!==o&&(t=e.map((function(e){var t=$.get(e);return null===t||void 0===t?void 0:t.value})).filter((function(e){return void 0!==e})));var n=Array.from(new Set([].concat(xb(ce),xb(t))));ge(n),n.forEach((function(e){_e(e,!0)}))},dropdownMatchSelectWidth:m,OptionList:dO,emptyOptions:!he.length,activeValue:me,activeDescendantId:"".concat(z,"_list_").concat(xe)})))}));var CO=_O;CO.Option=zS,CO.OptGroup=FS;const EO=CO,PO=(0,r.createContext)(void 0);let MO=Object.assign({},jg.Modal),kO=[];const AO=()=>kO.reduce(((e,t)=>Object.assign(Object.assign({},e),t)),jg.Modal);function IO(){return MO}const TO=e=>{const{locale:t={},children:n,_ANT_MARK__:o}=e;r.useEffect((()=>{const e=function(e){if(e){const t=Object.assign({},e);return kO.push(t),MO=AO(),()=>{kO=kO.filter((e=>e!==t)),MO=AO()}}MO=Object.assign({},jg.Modal)}(null===t||void 0===t?void 0:t.Modal);return e}),[t]);const i=r.useMemo((()=>Object.assign(Object.assign({},t),{exist:!0})),[t]);return r.createElement(Sg.Provider,{value:i},n)};var jO="data-rc-order",LO="data-rc-priority",RO="rc-util-key",DO=new Map;function NO(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).mark;return e?e.startsWith("data-")?e:"data-".concat(e):RO}function FO(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function BO(e){return Array.from((DO.get(e)||e).children).filter((function(e){return"STYLE"===e.tagName}))}function zO(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!ad())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),l="prependQueue"===a,c=document.createElement("style");c.setAttribute(jO,a),l&&i&&c.setAttribute(LO,"".concat(i)),null!==n&&void 0!==n&&n.nonce&&(c.nonce=null===n||void 0===n?void 0:n.nonce),c.innerHTML=e;var s=FO(t),u=s.firstChild;if(r){if(l){var d=(t.styles||BO(s)).filter((function(e){if(!["prepend","prependQueue"].includes(e.getAttribute(jO)))return!1;var t=Number(e.getAttribute(LO)||0);return i>=t}));if(d.length)return s.insertBefore(c,d[d.length-1].nextSibling),c}s.insertBefore(c,u)}else s.appendChild(c);return c}function HO(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=FO(t);return(t.styles||BO(n)).find((function(n){return n.getAttribute(NO(t))===e}))}function WO(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=FO(n),o=BO(r),i=zs(zs({},n),{},{styles:o});!function(e,t){var n=DO.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=zO("",t),o=r.parentNode;DO.set(e,o),e.removeChild(r)}}(r,i);var a=HO(t,i);if(a){var l,c,s;if(null!==(l=i.csp)&&void 0!==l&&l.nonce&&a.nonce!==(null===(c=i.csp)||void 0===c?void 0:c.nonce))a.nonce=null===(s=i.csp)||void 0===s?void 0:s.nonce;return a.innerHTML!==e&&(a.innerHTML=e),a}var u=zO(e,i);return u.setAttribute(NO(i),t),u}const VO="-ant-".concat(Date.now(),"-").concat(Math.random());function GO(e,t){const n=function(e,t){const n={},r=(e,t)=>{let n=e.clone();return n=(null===t||void 0===t?void 0:t(n))||n,n.toRgbString()},o=(e,t)=>{const o=new Za(e),i=ba(o.toRgbString());n["".concat(t,"-color")]=r(o),n["".concat(t,"-color-disabled")]=i[1],n["".concat(t,"-color-hover")]=i[4],n["".concat(t,"-color-active")]=i[6],n["".concat(t,"-color-outline")]=o.clone().setAlpha(.2).toRgbString(),n["".concat(t,"-color-deprecated-bg")]=i[0],n["".concat(t,"-color-deprecated-border")]=i[2]};if(t.primaryColor){o(t.primaryColor,"primary");const e=new Za(t.primaryColor),i=ba(e.toRgbString());i.forEach(((e,t)=>{n["primary-".concat(t+1)]=e})),n["primary-color-deprecated-l-35"]=r(e,(e=>e.lighten(35))),n["primary-color-deprecated-l-20"]=r(e,(e=>e.lighten(20))),n["primary-color-deprecated-t-20"]=r(e,(e=>e.tint(20))),n["primary-color-deprecated-t-50"]=r(e,(e=>e.tint(50))),n["primary-color-deprecated-f-12"]=r(e,(e=>e.setAlpha(.12*e.getAlpha())));const a=new Za(i[0]);n["primary-color-active-deprecated-f-30"]=r(a,(e=>e.setAlpha(.3*e.getAlpha()))),n["primary-color-active-deprecated-d-02"]=r(a,(e=>e.darken(2)))}t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info");const i=Object.keys(n).map((t=>"--".concat(e,"-").concat(t,": ").concat(n[t],";")));return"\n  :root {\n    ".concat(i.join("\n"),"\n  }\n  ").trim()}(e,t);ad()&&WO(n,"".concat(VO,"-dynamic-theme"))}const YO=function(){return{componentDisabled:(0,r.useContext)(Ms),componentSize:(0,r.useContext)(Rc)}};const UO=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(kd(!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 l=i+1;if(Array.isArray(t)){if(!Array.isArray(o)||t.length!==o.length)return!1;for(var c=0;c<t.length;c++)if(!e(t[c],o[c],l))return!1;return!0}if(t&&o&&"object"===Ec(t)&&"object"===Ec(o)){var s=Object.keys(t);return s.length===Object.keys(o).length&&s.every((function(n){return e(t[n],o[n],l)}))}return!1}(e,t)},XO=Object.assign({},o),{useId:qO}=XO,KO="undefined"===typeof qO?()=>"":qO;function $O(e){const{children:t}=e,[,n]=wl(),{motion:o}=n,i=r.useRef(!1);return i.current=i.current||!1===o,i.current?r.createElement(Gu,{motion:o},t):t}const QO=()=>null;var ZO=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 JO=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let e_,t_,n_,r_;function o_(){return e_||s}function i_(){return t_||u}const a_=()=>({getPrefixCls:(e,t)=>t||(e?"".concat(o_(),"-").concat(e):o_()),getIconPrefixCls:i_,getRootPrefixCls:()=>e_||o_(),getTheme:()=>n_,holderRender:r_}),l_=e=>{const{children:t,csp:n,autoInsertSpaceInButton:o,alert:i,anchor:a,form:l,locale:c,componentSize:s,direction:d,space:p,splitter:h,virtual:g,dropdownMatchSelectWidth:v,popupMatchSelectWidth:m,popupOverflow:y,legacyLocale:b,parentContext:x,iconPrefixCls:w,theme:S,componentDisabled:O,segmented:_,statistic:C,spin:E,calendar:P,carousel:M,cascader:k,collapse:A,typography:I,checkbox:T,descriptions:j,divider:L,drawer:R,skeleton:D,steps:N,image:F,layout:B,list:z,mentions:H,modal:W,progress:V,result:G,slider:Y,breadcrumb:U,menu:X,pagination:q,input:K,textArea:$,empty:Q,badge:Z,radio:J,rate:ee,switch:te,transfer:ne,avatar:re,message:oe,tag:ie,table:ae,card:le,tabs:ce,timeline:se,timePicker:ue,upload:de,notification:fe,tree:pe,colorPicker:he,datePicker:ge,rangePicker:ve,flex:me,wave:ye,dropdown:be,warning:xe,tour:we,floatButtonGroup:Se,variant:Oe,inputNumber:_e,treeSelect:Ce}=e,Ee=r.useCallback(((t,n)=>{const{prefixCls:r}=e;if(n)return n;const o=r||x.getPrefixCls("");return t?"".concat(o,"-").concat(t):o}),[x.getPrefixCls,e.prefixCls]),Pe=w||x.iconPrefixCls||u,Me=n||x.csp;Sl(Pe,Me);const ke=function(e,t,n){var r;Vm("ConfigProvider");const o=e||{},i=!1!==o.inherit&&t?t:Object.assign(Object.assign({},ul),{hashed:null!==(r=null===t||void 0===t?void 0:t.hashed)&&void 0!==r?r:ul.hashed,cssVar:null===t||void 0===t?void 0:t.cssVar}),a=KO();return Pc((()=>{var r,l;if(!e)return t;const c=Object.assign({},i.components);Object.keys(e.components||{}).forEach((t=>{c[t]=Object.assign(Object.assign({},c[t]),e.components[t])}));const s="css-var-".concat(a.replace(/:/g,"")),u=(null!==(r=o.cssVar)&&void 0!==r?r:i.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:null===n||void 0===n?void 0:n.prefixCls},"object"===typeof i.cssVar?i.cssVar:{}),"object"===typeof o.cssVar?o.cssVar:{}),{key:"object"===typeof o.cssVar&&(null===(l=o.cssVar)||void 0===l?void 0:l.key)||s});return Object.assign(Object.assign(Object.assign({},i),o),{token:Object.assign(Object.assign({},i.token),o.token),components:c,cssVar:u})}),[o,i],((e,t)=>e.some(((e,n)=>{const r=t[n];return!UO(e,r,!0)}))))}(S,x.theme,{prefixCls:Ee("")});const Ae={csp:Me,autoInsertSpaceInButton:o,alert:i,anchor:a,locale:c||b,direction:d,space:p,splitter:h,virtual:g,popupMatchSelectWidth:null!==m&&void 0!==m?m:v,popupOverflow:y,getPrefixCls:Ee,iconPrefixCls:Pe,theme:ke,segmented:_,statistic:C,spin:E,calendar:P,carousel:M,cascader:k,collapse:A,typography:I,checkbox:T,descriptions:j,divider:L,drawer:R,skeleton:D,steps:N,image:F,input:K,textArea:$,layout:B,list:z,mentions:H,modal:W,progress:V,result:G,slider:Y,breadcrumb:U,menu:X,pagination:q,empty:Q,badge:Z,radio:J,rate:ee,switch:te,transfer:ne,avatar:re,message:oe,tag:ie,table:ae,card:le,tabs:ce,timeline:se,timePicker:ue,upload:de,notification:fe,tree:pe,colorPicker:he,datePicker:ge,rangePicker:ve,flex:me,wave:ye,dropdown:be,warning:xe,tour:we,floatButtonGroup:Se,variant:Oe,inputNumber:_e,treeSelect:Ce};const Ie=Object.assign({},x);Object.keys(Ae).forEach((e=>{void 0!==Ae[e]&&(Ie[e]=Ae[e])})),JO.forEach((t=>{const n=e[t];n&&(Ie[t]=n)})),"undefined"!==typeof o&&(Ie.button=Object.assign({autoInsertSpace:o},Ie.button));const Te=Pc((()=>Ie),Ie,((e,t)=>{const n=Object.keys(e),r=Object.keys(t);return n.length!==r.length||n.some((n=>e[n]!==t[n]))})),je=r.useMemo((()=>({prefixCls:Pe,csp:Me})),[Pe,Me]);let Le=r.createElement(r.Fragment,null,r.createElement(QO,{dropdownMatchSelectWidth:v}),t);const Re=r.useMemo((()=>{var e,t,n,r;return wd((null===(e=jg.Form)||void 0===e?void 0:e.defaultValidateMessages)||{},(null===(n=null===(t=Te.locale)||void 0===t?void 0:t.Form)||void 0===n?void 0:n.defaultValidateMessages)||{},(null===(r=Te.form)||void 0===r?void 0:r.validateMessages)||{},(null===l||void 0===l?void 0:l.validateMessages)||{})}),[Te,null===l||void 0===l?void 0:l.validateMessages]);Object.keys(Re).length>0&&(Le=r.createElement(PO.Provider,{value:Re},Le)),c&&(Le=r.createElement(TO,{locale:c,_ANT_MARK__:"internalMark"},Le)),(Pe||Me)&&(Le=r.createElement(rs.Provider,{value:je},Le)),s&&(Le=r.createElement(Lc,{size:s},Le)),Le=r.createElement($O,null,Le);const De=r.useMemo((()=>{const e=ke||{},{algorithm:t,token:n,components:r,cssVar:o}=e,i=ZO(e,["algorithm","token","components","cssVar"]),a=t&&(!Array.isArray(t)||t.length>0)?dn(t):sl,l={};Object.entries(r||{}).forEach((e=>{let[t,n]=e;const r=Object.assign({},n);"algorithm"in r&&(!0===r.algorithm?r.theme=a:(Array.isArray(r.algorithm)||"function"===typeof r.algorithm)&&(r.theme=dn(r.algorithm)),delete r.algorithm),l[t]=r}));const c=Object.assign(Object.assign({},Ka),n);return Object.assign(Object.assign({},i),{theme:a,token:c,components:l,override:Object.assign({override:c},l),cssVar:o})}),[ke]);return S&&(Le=r.createElement(dl.Provider,{value:De},Le)),Te.warning&&(Le=r.createElement(Wm.Provider,{value:Te.warning},Le)),void 0!==O&&(Le=r.createElement(Ps,{disabled:O},Le)),r.createElement(f.Provider,{value:Te},Le)},c_=e=>{const t=r.useContext(f),n=r.useContext(Sg);return r.createElement(l_,Object.assign({parentContext:t,legacyLocale:n},e))};c_.ConfigContext=f,c_.SizeContext=Rc,c_.config=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:o}=e;void 0!==t&&(e_=t),void 0!==n&&(t_=n),"holderRender"in e&&(r_=o),r&&(!function(e){return Object.keys(e).some((e=>e.endsWith("Color")))}(r)?n_=r:GO(o_(),r))},c_.useConfig=YO,Object.defineProperty(c_,"SizeContext",{get:()=>Rc});const s_=c_;function u_(e){return t=>r.createElement(s_,{theme:{token:{motion:!1,zIndexPopupBase:0}}},r.createElement(e,Object.assign({},t)))}const d_=(e,t,n,o)=>u_((i=>{const{prefixCls:a,style:l}=i,c=r.useRef(null),[s,u]=r.useState(0),[d,p]=r.useState(0),[h,g]=pd(!1,{value:i.open}),{getPrefixCls:v}=r.useContext(f),m=v(t||"select",a);r.useEffect((()=>{if(g(!0),"undefined"!==typeof ResizeObserver){const e=new ResizeObserver((e=>{const t=e[0].target;u(t.offsetHeight+8),p(t.offsetWidth)})),t=setInterval((()=>{var r;const o=n?".".concat(n(m)):".".concat(m,"-dropdown"),i=null===(r=c.current)||void 0===r?void 0:r.querySelector(o);i&&(clearInterval(t),e.observe(i))}),10);return()=>{clearInterval(t),e.disconnect()}}}),[]);let y=Object.assign(Object.assign({},i),{style:Object.assign(Object.assign({},l),{margin:0}),open:h,visible:h,getPopupContainer:()=>c.current});o&&(y=o(y));const b={paddingBottom:s,position:"relative",minWidth:d};return r.createElement("div",{ref:c,style:b},r.createElement(e,Object.assign({},y)))}));const f_=()=>{const[,e]=wl(),[t]=Lg("Empty"),n=new Za(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return r.createElement("svg",{style:n,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},r.createElement("title",null,(null===t||void 0===t?void 0:t.description)||"Empty"),r.createElement("g",{fill:"none",fillRule:"evenodd"},r.createElement("g",{transform:"translate(24 31.67)"},r.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),r.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),r.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),r.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),r.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),r.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),r.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},r.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),r.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))};const p_=()=>{const[,e]=wl(),[t]=Lg("Empty"),{colorFill:n,colorFillTertiary:o,colorFillQuaternary:i,colorBgContainer:a}=e,{borderColor:l,shadowColor:c,contentColor:s}=(0,r.useMemo)((()=>({borderColor:new Za(n).onBackground(a).toHexShortString(),shadowColor:new Za(o).onBackground(a).toHexShortString(),contentColor:new Za(i).onBackground(a).toHexShortString()})),[n,o,i,a]);return r.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},r.createElement("title",null,(null===t||void 0===t?void 0:t.description)||"Empty"),r.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},r.createElement("ellipse",{fill:c,cx:"32",cy:"33",rx:"32",ry:"7"}),r.createElement("g",{fillRule:"nonzero",stroke:l},r.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),r.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:s}))))},h_=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:o,fontSize:i,lineHeight:a}=e;return{[t]:{marginInline:r,fontSize:i,lineHeight:a,textAlign:"center",["".concat(t,"-image")]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},["".concat(t,"-description")]:{color:e.colorTextDescription},["".concat(t,"-footer")]:{marginTop:n},"&-normal":{marginBlock:o,color:e.colorTextDescription,["".concat(t,"-description")]:{color:e.colorTextDescription},["".concat(t,"-image")]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,["".concat(t,"-image")]:{height:e.emptyImgHeightSM}}}}},g_=Ol("Empty",(e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,o=Ui(e,{emptyImgCls:"".concat(t,"-img"),emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return[h_(o)]}));var v_=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(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 m_=r.createElement(f_,null),y_=r.createElement(p_,null),b_=e=>{var{className:t,rootClassName:n,prefixCls:o,image:i=m_,description:a,children:l,imageStyle:s,style:u}=e,d=v_(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:p,direction:h,empty:g}=r.useContext(f),v=p("empty",o),[m,y,b]=g_(v),[x]=Lg("Empty"),w="undefined"!==typeof a?a:null===x||void 0===x?void 0:x.description,S="string"===typeof w?w:"empty";let O=null;return O="string"===typeof i?r.createElement("img",{alt:S,src:i}):i,m(r.createElement("div",Object.assign({className:c()(y,b,v,null===g||void 0===g?void 0:g.className,{["".concat(v,"-normal")]:i===y_,["".concat(v,"-rtl")]:"rtl"===h},t,n),style:Object.assign(Object.assign({},null===g||void 0===g?void 0:g.style),u)},d),r.createElement("div",{className:"".concat(v,"-image"),style:s},O),w&&r.createElement("div",{className:"".concat(v,"-description")},w),l&&r.createElement("div",{className:"".concat(v,"-footer")},l)))};b_.PRESENTED_IMAGE_DEFAULT=m_,b_.PRESENTED_IMAGE_SIMPLE=y_;const x_=b_,w_=e=>{const{componentName:t}=e,{getPrefixCls:n}=(0,r.useContext)(f),o=n("empty");switch(t){case"Table":case"List":return r.createElement(x_,{image:x_.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return r.createElement(x_,{image:x_.PRESENTED_IMAGE_SIMPLE,className:"".concat(o,"-small")});case"Table.filter":return null;default:return r.createElement(x_,null)}};const S_=function(e,t){return e||(e=>{const t={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:"scroll"===e?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},t),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},t),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},t),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},t),{points:["br","tr"],offset:[0,-4]})}})(t)},O_=new Vr("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),__=new Vr("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),C_=new Vr("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),E_=new Vr("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),P_=new Vr("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),M_=new Vr("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),k_=new Vr("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),A_=new Vr("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),I_={"slide-up":{inKeyframes:O_,outKeyframes:__},"slide-down":{inKeyframes:C_,outKeyframes:E_},"slide-left":{inKeyframes:P_,outKeyframes:M_},"slide-right":{inKeyframes:k_,outKeyframes:A_}},T_=(e,t)=>{const{antCls:n}=e,r="".concat(n,"-").concat(t),{inKeyframes:o,outKeyframes:i}=I_[t];return[Um(r,o,i,e.motionDurationMid),{["\n      ".concat(r,"-enter,\n      ").concat(r,"-appear\n    ")]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},["".concat(r,"-leave")]:{animationTimingFunction:e.motionEaseInQuint}}]},j_=new Vr("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),L_=new Vr("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),R_=new Vr("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),D_=new Vr("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),N_=new Vr("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),F_=new Vr("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),B_={"move-up":{inKeyframes:new Vr("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),outKeyframes:new Vr("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}})},"move-down":{inKeyframes:j_,outKeyframes:L_},"move-left":{inKeyframes:R_,outKeyframes:D_},"move-right":{inKeyframes:N_,outKeyframes:F_}},z_=(e,t)=>{const{antCls:n}=e,r="".concat(n,"-").concat(t),{inKeyframes:o,outKeyframes:i}=B_[t];return[Um(r,o,i,e.motionDurationMid),{["\n        ".concat(r,"-enter,\n        ").concat(r,"-appear\n      ")]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},["".concat(r,"-leave")]:{animationTimingFunction:e.motionEaseInOutCirc}}]},H_=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:o}=e;return{position:"relative",display:"block",minHeight:t,padding:o,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}},W_=e=>{const{antCls:t,componentCls:n}=e,r="".concat(n,"-item"),o="&".concat(t,"-slide-up-enter").concat(t,"-slide-up-enter-active"),i="&".concat(t,"-slide-up-appear").concat(t,"-slide-up-appear-active"),a="&".concat(t,"-slide-up-leave").concat(t,"-slide-up-leave-active"),l="".concat(n,"-dropdown-placement-");return[{["".concat(n,"-dropdown")]:Object.assign(Object.assign({},Ur(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,["\n          ".concat(o).concat(l,"bottomLeft,\n          ").concat(i).concat(l,"bottomLeft\n        ")]:{animationName:O_},["\n          ".concat(o).concat(l,"topLeft,\n          ").concat(i).concat(l,"topLeft,\n          ").concat(o).concat(l,"topRight,\n          ").concat(i).concat(l,"topRight\n        ")]:{animationName:C_},["".concat(a).concat(l,"bottomLeft")]:{animationName:__},["\n          ".concat(a).concat(l,"topLeft,\n          ").concat(a).concat(l,"topRight\n        ")]:{animationName:E_},"&-hidden":{display:"none"},[r]:Object.assign(Object.assign({},H_(e)),{cursor:"pointer",transition:"background ".concat(e.motionDurationSlow," ease"),borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},Yr),"&-state":{flex:"none",display:"flex",alignItems:"center"},["&-active:not(".concat(r,"-option-disabled)")]:{backgroundColor:e.optionActiveBg},["&-selected:not(".concat(r,"-option-disabled)")]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,["".concat(r,"-option-state")]:{color:e.colorPrimary},["&:has(+ ".concat(r,"-option-selected:not(").concat(r,"-option-disabled))")]:{borderEndStartRadius:0,borderEndEndRadius:0,["& + ".concat(r,"-option-selected:not(").concat(r,"-option-disabled)")]:{borderStartStartRadius:0,borderStartEndRadius:0}}},"&-disabled":{["&".concat(r,"-option-selected")]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},H_(e)),{color:e.colorTextDisabled})}),"&-rtl":{direction:"rtl"}})},T_(e,"slide-up"),T_(e,"slide-down"),z_(e,"move-up"),z_(e,"move-down")]},V_=e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:o}=e,i=e.max(e.calc(n).sub(r).equal(),0);return{basePadding:i,containerPadding:e.max(e.calc(i).sub(o).equal(),0),itemHeight:yn(t),itemLineHeight:yn(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},G_=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:o,paddingXS:i,multipleItemColorDisabled:a,multipleItemBorderColorDisabled:l,colorIcon:c,colorIconHover:s,INTERNAL_FIXED_ITEM_MARGIN:u}=e;return{["".concat(t,"-selection-overflow")]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},["".concat(t,"-selection-item")]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:u,borderRadius:r,cursor:"default",transition:"font-size ".concat(o,", line-height ").concat(o,", height ").concat(o),marginInlineEnd:e.calc(u).mul(2).equal(),paddingInlineStart:i,paddingInlineEnd:e.calc(i).div(2).equal(),["".concat(t,"-disabled&")]:{color:a,borderColor:l,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(i).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":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"}}),{display:"inline-flex",alignItems:"center",color:c,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",["> ".concat(n)]:{verticalAlign:"-0.2em"},"&:hover":{color:s}})}}}},Y_=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:r}=e,o="".concat(n,"-selection-overflow"),i=e.multipleSelectItemHeight,a=(e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()})(e),l=t?"".concat(n,"-").concat(t):"",c=V_(e);return{["".concat(n,"-multiple").concat(l)]:Object.assign(Object.assign({},G_(e)),{["".concat(n,"-selector")]:{display:"flex",flexWrap:"wrap",alignItems:"center",height:"100%",paddingInline:c.basePadding,paddingBlock:c.containerPadding,borderRadius:e.borderRadius,["".concat(n,"-disabled&")]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:"".concat(yn(r)," 0"),lineHeight:yn(i),visibility:"hidden",content:'"\\a0"'}},["".concat(n,"-selection-item")]:{height:c.itemHeight,lineHeight:yn(c.itemLineHeight)},["".concat(o,"-item + ").concat(o,"-item")]:{["".concat(n,"-selection-search")]:{marginInlineStart:0}},["".concat(o,"-item-suffix")]:{height:"100%"},["".concat(n,"-selection-search")]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(a).equal(),"\n          &-input,\n          &-mirror\n        ":{height:i,fontFamily:e.fontFamily,lineHeight:yn(i),transition:"all ".concat(e.motionDurationSlow)},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},["".concat(n,"-selection-placeholder")]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:"all ".concat(e.motionDurationSlow)}})}};function U_(e,t){const{componentCls:n}=e,r=t?"".concat(n,"-").concat(t):"",o={["".concat(n,"-multiple").concat(r)]:{fontSize:e.fontSize,["".concat(n,"-selector")]:{["".concat(n,"-show-search&")]:{cursor:"text"}},["\n        &".concat(n,"-show-arrow ").concat(n,"-selector,\n        &").concat(n,"-allow-clear ").concat(n,"-selector\n      ")]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[Y_(e,t),o]}const X_=e=>{const{componentCls:t}=e,n=Ui(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=Ui(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[U_(e),U_(n,"sm"),{["".concat(t,"-multiple").concat(t,"-sm")]:{["".concat(t,"-selection-placeholder")]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},["".concat(t,"-selection-search")]:{marginInlineStart:2}}},U_(r,"lg")]};function q_(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:o,fontSizeIcon:i}=e,a=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),l=e.calc(r).add(i).equal(),c=t?"".concat(n,"-").concat(t):"";return{["".concat(n,"-single").concat(c)]:{fontSize:e.fontSize,height:e.controlHeight,["".concat(n,"-selector")]:Object.assign(Object.assign({},Ur(e,!0)),{display:"flex",borderRadius:o,["".concat(n,"-selection-search")]:{position:"absolute",top:0,insetInlineStart:r,insetInlineEnd:yn(l),bottom:0,"&-input":{width:"100%",WebkitAppearance:"textfield"}},["\n          ".concat(n,"-selection-item,\n          ").concat(n,"-selection-placeholder\n        ")]:{padding:0,lineHeight:yn(a),transition:"all ".concat(e.motionDurationSlow,", visibility 0s"),alignSelf:"center"},["".concat(n,"-selection-placeholder")]:{transition:"none",pointerEvents:"none"},[["&:after","".concat(n,"-selection-item:empty:after"),"".concat(n,"-selection-placeholder:empty:after")].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),["\n        &".concat(n,"-show-arrow ").concat(n,"-selection-item,\n        &").concat(n,"-show-arrow ").concat(n,"-selection-placeholder\n      ")]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},["&".concat(n,"-open ").concat(n,"-selection-item")]:{color:e.colorTextPlaceholder},["&:not(".concat(n,"-customize-input)")]:{["".concat(n,"-selector")]:{width:"100%",height:"100%",padding:"0 ".concat(yn(r)),["".concat(n,"-selection-search-input")]:{height:a},"&:after":{lineHeight:yn(a)}}},["&".concat(n,"-customize-input")]:{["".concat(n,"-selector")]:{"&:after":{display:"none"},["".concat(n,"-selection-search")]:{position:"static",width:"100%"},["".concat(n,"-selection-placeholder")]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:"0 ".concat(yn(r)),"&:after":{display:"none"}}}}}}}function K_(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[q_(e),q_(Ui(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{["".concat(t,"-single").concat(t,"-sm")]:{["&:not(".concat(t,"-customize-input)")]:{["".concat(t,"-selection-search")]:{insetInlineStart:n,insetInlineEnd:n},["".concat(t,"-selector")]:{padding:"0 ".concat(yn(n))},["&".concat(t,"-show-arrow ").concat(t,"-selection-search")]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},["\n            &".concat(t,"-show-arrow ").concat(t,"-selection-item,\n            &").concat(t,"-show-arrow ").concat(t,"-selection-placeholder\n          ")]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},q_(Ui(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const $_=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:o}=e;return{["&:not(".concat(n,"-customize-input) ").concat(n,"-selector")]:{border:"".concat(yn(e.lineWidth)," ").concat(e.lineType," ").concat(t.borderColor),background:e.selectorBg},["&:not(".concat(n,"-disabled):not(").concat(n,"-customize-input):not(").concat(r,"-pagination-size-changer)")]:{["&:hover ".concat(n,"-selector")]:{borderColor:t.hoverBorderHover},["".concat(n,"-focused& ").concat(n,"-selector")]:{borderColor:t.activeBorderColor,boxShadow:"0 0 0 ".concat(yn(o)," ").concat(t.activeOutlineColor),outline:0}}}},Q_=(e,t)=>({["&".concat(e.componentCls,"-status-").concat(t.status)]:Object.assign({},$_(e,t))}),Z_=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},$_(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor})),Q_(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline})),Q_(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline})),{["&".concat(e.componentCls,"-disabled")]:{["&:not(".concat(e.componentCls,"-customize-input) ").concat(e.componentCls,"-selector")]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},["&".concat(e.componentCls,"-multiple ").concat(e.componentCls,"-selection-item")]:{background:e.multipleItemBg,border:"".concat(yn(e.lineWidth)," ").concat(e.lineType," ").concat(e.multipleItemBorderColor)}})}),J_=(e,t)=>{const{componentCls:n,antCls:r}=e;return{["&:not(".concat(n,"-customize-input) ").concat(n,"-selector")]:{background:t.bg,border:"".concat(yn(e.lineWidth)," ").concat(e.lineType," transparent"),color:t.color},["&:not(".concat(n,"-disabled):not(").concat(n,"-customize-input):not(").concat(r,"-pagination-size-changer)")]:{["&:hover ".concat(n,"-selector")]:{background:t.hoverBg},["".concat(n,"-focused& ").concat(n,"-selector")]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},eC=(e,t)=>({["&".concat(e.componentCls,"-status-").concat(t.status)]:Object.assign({},J_(e,t))}),tC=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},J_(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),eC(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),eC(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{["&".concat(e.componentCls,"-disabled")]:{["&:not(".concat(e.componentCls,"-customize-input) ").concat(e.componentCls,"-selector")]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},["&".concat(e.componentCls,"-multiple ").concat(e.componentCls,"-selection-item")]:{background:e.colorBgContainer,border:"".concat(yn(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorSplit)}})}),nC=e=>({"&-borderless":{["".concat(e.componentCls,"-selector")]:{background:"transparent",borderColor:"transparent"},["&".concat(e.componentCls,"-disabled")]:{["&:not(".concat(e.componentCls,"-customize-input) ").concat(e.componentCls,"-selector")]:{color:e.colorTextDisabled}},["&".concat(e.componentCls,"-multiple ").concat(e.componentCls,"-selection-item")]:{background:e.multipleItemBg,border:"".concat(yn(e.lineWidth)," ").concat(e.lineType," ").concat(e.multipleItemBorderColor)},["&".concat(e.componentCls,"-status-error")]:{["".concat(e.componentCls,"-selection-item")]:{color:e.colorError}},["&".concat(e.componentCls,"-status-warning")]:{["".concat(e.componentCls,"-selection-item")]:{color:e.colorWarning}}}}),rC=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign({},Z_(e)),tC(e)),nC(e))}),oC=e=>{const{componentCls:t}=e;return{position:"relative",transition:"all ".concat(e.motionDurationMid," ").concat(e.motionEaseInOut),input:{cursor:"pointer"},["".concat(t,"-show-search&")]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},["".concat(t,"-disabled&")]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},iC=e=>{const{componentCls:t}=e;return{["".concat(t,"-selection-search-input")]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},aC=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:o}=e;return{[n]:Object.assign(Object.assign({},Ur(e)),{position:"relative",display:"inline-block",cursor:"pointer",["&:not(".concat(n,"-customize-input) ").concat(n,"-selector")]:Object.assign(Object.assign({},oC(e)),iC(e)),["".concat(n,"-selection-item")]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},Yr),{["> ".concat(t,"-typography")]:{display:"inline"}}),["".concat(n,"-selection-placeholder")]:Object.assign(Object.assign({},Yr),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),["".concat(n,"-arrow")]: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"}}),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:"opacity ".concat(e.motionDurationSlow," ease"),[o]:{verticalAlign:"top",transition:"transform ".concat(e.motionDurationSlow),"> svg":{verticalAlign:"top"},["&:not(".concat(n,"-suffix)")]:{pointerEvents:"auto"}},["".concat(n,"-disabled &")]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),["".concat(n,"-clear")]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:"color ".concat(e.motionDurationMid," ease, opacity ").concat(e.motionDurationSlow," ease"),textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},["&:hover ".concat(n,"-clear")]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}}),["".concat(n,"-has-feedback")]:{["".concat(n,"-clear")]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}},lC=e=>{const{componentCls:t}=e;return[{[t]:{["&".concat(t,"-in-form-item")]:{width:"100%"}}},aC(e),K_(e),X_(e),W_(e),{["".concat(t,"-rtl")]:{direction:"rtl"}},Jr(e,{borderElCls:"".concat(t,"-selector"),focusElCls:"".concat(t,"-focused")})]},cC=Ol("Select",((e,t)=>{let{rootPrefixCls:n}=t;const r=Ui(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[lC(r),rC(r)]}),(e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:o,controlHeightSM:i,controlHeightLG:a,paddingXXS:l,controlPaddingHorizontal:c,zIndexPopupBase:s,colorText:u,fontWeightStrong:d,controlItemBgActive:f,controlItemBgHover:p,colorBgContainer:h,colorFillSecondary:g,colorBgContainerDisabled:v,colorTextDisabled:m,colorPrimaryHover:y,colorPrimary:b,controlOutline:x}=e,w=2*l,S=2*r,O=Math.min(o-w,o-S),_=Math.min(i-w,i-S),C=Math.min(a-w,a-S);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(l/2),zIndexPopup:s+50,optionSelectedColor:u,optionSelectedFontWeight:d,optionSelectedBg:f,optionActiveBg:p,optionPadding:"".concat((o-t*n)/2,"px ").concat(c,"px"),optionFontSize:t,optionLineHeight:n,optionHeight:o,selectorBg:h,clearBg:h,singleItemHeightLG:a,multipleItemBg:g,multipleItemBorderColor:"transparent",multipleItemHeight:O,multipleItemHeightSM:_,multipleItemHeightLG:C,multipleSelectorBgDisabled:v,multipleItemColorDisabled:m,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(1.25*e.fontSize),hoverBorderColor:y,activeBorderColor:b,activeOutlineColor:x}}),{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});const sC={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"};var uC=function(e,t){return r.createElement(xs,qc({},e,{ref:t,icon:sC}))};const dC=r.forwardRef(uC);const fC={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"};var pC=function(e,t){return r.createElement(xs,qc({},e,{ref:t,icon:fC}))};const hC=r.forwardRef(pC);function gC(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:o,removeIcon:i,loading:a,multiple:l,hasFeedback:c,prefixCls:s,showSuffixIcon:u,feedbackIcon:d,showArrow:f,componentName:p}=e;const h=null!==n&&void 0!==n?n:r.createElement(Ss,null),g=e=>null!==t||c||f?r.createElement(r.Fragment,null,!1!==u&&e,c&&d):null;let v=null;if(void 0!==t)v=g(t);else if(a)v=g(r.createElement(tp,{spin:!0}));else{const e="".concat(s,"-suffix");v=t=>{let{open:n,showSearch:o}=t;return g(n&&o?r.createElement(Su,{className:e}):r.createElement(hC,{className:e}))}}let m=null;m=void 0!==o?o:l?r.createElement(zy,null):null;let y=null;return y=void 0!==i?i:r.createElement(dC,null),{clearIcon:h,suffixIcon:v,itemIcon:m,removeIcon:y}}var vC=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 mC="SECRET_COMBOBOX_MODE_DO_NOT_USE",yC=(e,t)=>{var n;const{prefixCls:o,bordered:i,className:a,rootClassName:l,getPopupContainer:s,popupClassName:u,dropdownClassName:d,listHeight:p=256,placement:h,listItemHeight:g,size:v,disabled:m,notFoundContent:y,status:b,builtinPlacements:x,dropdownMatchSelectWidth:w,popupMatchSelectWidth:S,direction:O,style:_,allowClear:C,variant:E,dropdownStyle:P,transitionName:M,tagRender:k,maxCount:A}=e,I=vC(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount"]),{getPopupContainer:T,getPrefixCls:j,renderEmpty:L,direction:R,virtual:D,popupMatchSelectWidth:N,popupOverflow:F,select:B}=r.useContext(f),[,z]=wl(),H=null!==g&&void 0!==g?g:null===z||void 0===z?void 0:z.controlHeight,W=j("select",o),V=j(),G=null!==O&&void 0!==O?O:R,{compactSize:Y,compactItemClassnames:U}=Vc(W,G),[X,q]=As("select",E,i),K=ks(W),[$,Q,Z]=cC(W,K),J=r.useMemo((()=>{const{mode:t}=e;if("combobox"!==t)return t===mC?"combobox":t}),[e.mode]),ee="multiple"===J||"tags"===J,te=function(e,t){return void 0!==t?t:null!==e}(e.suffixIcon,e.showArrow),ne=null!==(n=null!==S&&void 0!==S?S:w)&&void 0!==n?n:N,{status:re,hasFeedback:oe,isFormItemInput:ie,feedbackIcon:ae}=r.useContext(It),le=Cs(re,b);let ce;ce=void 0!==y?y:"combobox"===J?null:(null===L||void 0===L?void 0:L("Select"))||r.createElement(w_,{componentName:"Select"});const{suffixIcon:se,itemIcon:ue,removeIcon:de,clearIcon:fe}=gC(Object.assign(Object.assign({},I),{multiple:ee,hasFeedback:oe,feedbackIcon:ae,showSuffixIcon:te,prefixCls:W,componentName:"Select"})),pe=!0===C?{clearIcon:fe}:C,he=hu(I,["suffixIcon","itemIcon"]),ge=c()(u||d,{["".concat(W,"-dropdown-").concat(G)]:"rtl"===G},l,Z,K,Q),ve=Dc((e=>{var t;return null!==(t=null!==v&&void 0!==v?v:Y)&&void 0!==t?t:e})),me=r.useContext(Ms),ye=null!==m&&void 0!==m?m:me,be=c()({["".concat(W,"-lg")]:"large"===ve,["".concat(W,"-sm")]:"small"===ve,["".concat(W,"-rtl")]:"rtl"===G,["".concat(W,"-").concat(X)]:q,["".concat(W,"-in-form-item")]:ie},_s(W,le,oe),U,null===B||void 0===B?void 0:B.className,a,l,Z,K,Q),xe=r.useMemo((()=>void 0!==h?h:"rtl"===G?"bottomRight":"bottomLeft"),[h,G]);const[we]=_m("SelectLike",null===P||void 0===P?void 0:P.zIndex);return $(r.createElement(EO,Object.assign({ref:t,virtual:D,showSearch:null===B||void 0===B?void 0:B.showSearch},he,{style:Object.assign(Object.assign({},null===B||void 0===B?void 0:B.style),_),dropdownMatchSelectWidth:ne,transitionName:km(V,"slide-up",M),builtinPlacements:S_(x,F),listHeight:p,listItemHeight:H,mode:J,prefixCls:W,placement:xe,direction:G,suffixIcon:se,menuItemSelectedIcon:ue,removeIcon:de,allowClear:pe,notFoundContent:ce,className:be,getPopupContainer:s||T,dropdownClassName:ge,disabled:ye,dropdownStyle:Object.assign(Object.assign({},P),{zIndex:we}),maxCount:ee?A:void 0,tagRender:ee?k:void 0})))};const bC=r.forwardRef(yC),xC=d_(bC);bC.SECRET_COMBOBOX_MODE_DO_NOT_USE=mC,bC.Option=zS,bC.OptGroup=FS,bC._InternalPanelDoNotUseOrYouWillBeFired=xC;const wC=bC;const SC={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};var OC=function(e,t){return r.createElement(xs,qc({},e,{ref:t,icon:SC}))};const _C=r.forwardRef(OC);const CC={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"};var EC=function(e,t){return r.createElement(xs,qc({},e,{ref:t,icon:CC}))};const PC=r.forwardRef(EC);const MC={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"};var kC=function(e,t){return r.createElement(xs,qc({},e,{ref:t,icon:MC}))};const AC=r.forwardRef(kC);function IC(e){return!!(null===e||void 0===e?void 0:e.then)}const TC=e=>{const{type:t,children:n,prefixCls:o,buttonProps:i,close:a,autoFocus:l,emitEvent:c,isSilent:s,quitOnNullishReturnValue:u,actionFn:d}=e,f=r.useRef(!1),p=r.useRef(null),[h,g]=dd(!1),v=function(){null===a||void 0===a||a.apply(void 0,arguments)};r.useEffect((()=>{let e=null;return l&&(e=setTimeout((()=>{var e;null===(e=p.current)||void 0===e||e.focus()}))),()=>{e&&clearTimeout(e)}}),[]);return r.createElement(lh,Object.assign({},Xf(t),{onClick:e=>{if(f.current)return;if(f.current=!0,!d)return void v();let t;if(c){if(t=d(e),u&&!IC(t))return f.current=!1,void v(e)}else if(d.length)t=d(a),f.current=!1;else if(t=d(),!IC(t))return void v();(e=>{IC(e)&&(g(!0),e.then((function(){g(!1,!0),v.apply(void 0,arguments),f.current=!1}),(e=>{if(g(!1,!0),f.current=!1,!(null===s||void 0===s?void 0:s()))return Promise.reject(e)})))})(t)},loading:h,prefixCls:o},i,{ref:p}),n)},jC=r.createContext({}),{Provider:LC}=jC,RC=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:o,mergedOkCancel:i,rootPrefixCls:a,close:l,onCancel:c,onConfirm:s}=(0,r.useContext)(jC);return i?r.createElement(TC,{isSilent:o,actionFn:c,close:function(){null===l||void 0===l||l.apply(void 0,arguments),null===s||void 0===s||s(!1)},autoFocus:"cancel"===e,buttonProps:t,prefixCls:"".concat(a,"-btn")},n):null},DC=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:o,rootPrefixCls:i,okTextLocale:a,okType:l,onConfirm:c,onOk:s}=(0,r.useContext)(jC);return r.createElement(TC,{isSilent:n,type:l||"primary",actionFn:s,close:function(){null===t||void 0===t||t.apply(void 0,arguments),null===c||void 0===c||c(!0)},autoFocus:"ok"===e,buttonProps:o,prefixCls:"".concat(i,"-btn")},a)};var NC=r.createContext({}),FC={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>=FC.F1&&t<=FC.F12)return!1;switch(t){case FC.ALT:case FC.CAPS_LOCK:case FC.CONTEXT_MENU:case FC.CTRL:case FC.DOWN:case FC.END:case FC.ESC:case FC.HOME:case FC.INSERT:case FC.LEFT:case FC.MAC_FF_META:case FC.META:case FC.NUMLOCK:case FC.NUM_CENTER:case FC.PAGE_DOWN:case FC.PAGE_UP:case FC.PAUSE:case FC.PRINT_SCREEN:case FC.RIGHT:case FC.SHIFT:case FC.UP:case FC.WIN_KEY:case FC.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=FC.ZERO&&e<=FC.NINE)return!0;if(e>=FC.NUM_ZERO&&e<=FC.NUM_MULTIPLY)return!0;if(e>=FC.A&&e<=FC.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case FC.SPACE:case FC.QUESTION_MARK:case FC.NUM_PLUS:case FC.NUM_MINUS:case FC.NUM_PERIOD:case FC.NUM_DIVISION:case FC.SEMICOLON:case FC.DASH:case FC.EQUALS:case FC.COMMA:case FC.PERIOD:case FC.SLASH:case FC.APOSTROPHE:case FC.SINGLE_QUOTE:case FC.OPEN_SQUARE_BRACKET:case FC.BACKSLASH:case FC.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};const BC=FC;var zC="".concat("accept acceptCharset accessKey action allowFullScreen allowTransparency\n    alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\n    charSet checked classID className colSpan cols content contentEditable contextMenu\n    controls coords crossOrigin data dateTime default defer dir disabled download draggable\n    encType form formAction formEncType formMethod formNoValidate formTarget frameBorder\n    headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\n    is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\n    mediaGroup method min minLength multiple muted name noValidate nonce open\n    optimum pattern placeholder poster preload radioGroup readOnly rel required\n    reversed role rowSpan rows sandbox scope scoped scrolling seamless selected\n    shape size sizes span spellCheck src srcDoc srcLang srcSet start step style\n    summary tabIndex target title type useMap value width wmode wrap"," ").concat("onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\n    onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\n    onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\n    onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\n    onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\n    onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\n    onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError").split(/[\s\n]+/),HC="aria-",WC="data-";function VC(e,t){return 0===e.indexOf(t)}function GC(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t=!1===n?{aria:!0,data:!0,attr:!0}:!0===n?{aria:!0}:O({},n);var r={};return Object.keys(e).forEach((function(n){(t.aria&&("role"===n||VC(n,HC))||t.data&&VC(n,WC)||t.attr&&zC.includes(n))&&(r[n]=e[n])})),r}function YC(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function UC(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if("number"!==typeof n){var o=e.document;"number"!==typeof(n=o.documentElement[r])&&(n=o.body[r])}return n}const XC=r.memo((function(e){return e.children}),(function(e,t){return!t.shouldUpdate}));var qC={width:0,height:0,overflow:"hidden",outline:"none"},KC={outline:"none"},$C=r.forwardRef((function(e,t){var n=e.prefixCls,o=e.className,i=e.style,a=e.title,l=e.ariaId,s=e.footer,u=e.closable,d=e.closeIcon,f=e.onClose,p=e.children,g=e.bodyStyle,m=e.bodyProps,y=e.modalRender,b=e.onMouseDown,x=e.onMouseUp,w=e.holderRef,S=e.visible,_=e.forceRender,C=e.width,E=e.height,P=e.classNames,M=e.styles,k=Hi(w,r.useContext(NC).panel),A=(0,r.useRef)(),I=(0,r.useRef)();r.useImperativeHandle(t,(function(){return{focus:function(){var e;null===(e=A.current)||void 0===e||e.focus({preventScroll:!0})},changeActive:function(e){var t=document.activeElement;e&&t===I.current?A.current.focus({preventScroll:!0}):e||t!==A.current||I.current.focus({preventScroll:!0})}}}));var T={};void 0!==C&&(T.width=C),void 0!==E&&(T.height=E);var j=s?r.createElement("div",{className:c()("".concat(n,"-footer"),null===P||void 0===P?void 0:P.footer),style:O({},null===M||void 0===M?void 0:M.footer)},s):null,L=a?r.createElement("div",{className:c()("".concat(n,"-header"),null===P||void 0===P?void 0:P.header),style:O({},null===M||void 0===M?void 0:M.header)},r.createElement("div",{className:"".concat(n,"-title"),id:l},a)):null,R=(0,r.useMemo)((function(){return"object"===v(u)&&null!==u?u:u?{closeIcon:null!==d&&void 0!==d?d:r.createElement("span",{className:"".concat(n,"-close-x")})}:{}}),[u,d,n]),D=GC(R,!0),N="object"===v(u)&&u.disabled,F=u?r.createElement("button",h({type:"button",onClick:f,"aria-label":"Close"},D,{className:"".concat(n,"-close"),disabled:N}),R.closeIcon):null,B=r.createElement("div",{className:c()("".concat(n,"-content"),null===P||void 0===P?void 0:P.content),style:null===M||void 0===M?void 0:M.content},F,L,r.createElement("div",h({className:c()("".concat(n,"-body"),null===P||void 0===P?void 0:P.body),style:O(O({},g),null===M||void 0===M?void 0:M.body)},m),p),j);return r.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":a?l:null,"aria-modal":"true",ref:k,style:O(O({},i),T),className:c()(n,o),onMouseDown:b,onMouseUp:x},r.createElement("div",{ref:A,tabIndex:0,style:KC},r.createElement(XC,{shouldUpdate:S||_},y?y(B):B)),r.createElement("div",{tabIndex:0,ref:I,style:qC}))}));const QC=$C;var ZC=r.forwardRef((function(e,t){var n=e.prefixCls,o=e.title,i=e.style,a=e.className,l=e.visible,s=e.forceRender,u=e.destroyOnClose,d=e.motionName,f=e.ariaId,p=e.onVisibleChanged,g=e.mousePosition,v=(0,r.useRef)(),m=gt(r.useState(),2),y=m[0],b=m[1],x={};function w(){var e=function(e){var t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,o=r.defaultView||r.parentWindow;return n.left+=UC(o),n.top+=UC(o,!0),n}(v.current);b(g&&(g.x||g.y)?"".concat(g.x-e.left,"px ").concat(g.y-e.top,"px"):"")}return y&&(x.transformOrigin=y),r.createElement(zv,{visible:l,onVisibleChanged:p,onAppearPrepare:w,onEnterPrepare:w,forceRender:s,motionName:d,removeOnLeave:u,ref:v},(function(l,s){var u=l.className,d=l.style;return r.createElement(QC,h({},e,{ref:t,title:o,ariaId:f,prefixCls:n,holderRef:s,style:O(O(O({},d),i),x),className:c()(a,u)}))}))}));ZC.displayName="Content";const JC=ZC;const eE=function(e){var t=e.prefixCls,n=e.style,o=e.visible,i=e.maskProps,a=e.motionName,l=e.className;return r.createElement(zv,{key:"mask",visible:o,motionName:a,leavedClassName:"".concat(t,"-mask-hidden")},(function(e,o){var a=e.className,s=e.style;return r.createElement("div",h({ref:o,style:O(O({},s),n),className:c()("".concat(t,"-mask"),a,l)},i))}))};const tE=function(e){var t=e.prefixCls,n=void 0===t?"rc-dialog":t,o=e.zIndex,i=e.visible,a=void 0!==i&&i,l=e.keyboard,s=void 0===l||l,u=e.focusTriggerAfterClose,d=void 0===u||u,f=e.wrapStyle,p=e.wrapClassName,g=e.wrapProps,v=e.onClose,m=e.afterOpenChange,y=e.afterClose,b=e.transitionName,x=e.animation,w=e.closable,S=void 0===w||w,_=e.mask,C=void 0===_||_,E=e.maskTransitionName,P=e.maskAnimation,M=e.maskClosable,k=void 0===M||M,A=e.maskStyle,I=e.maskProps,T=e.rootClassName,j=e.classNames,L=e.styles;var R=(0,r.useRef)(),D=(0,r.useRef)(),N=(0,r.useRef)(),F=gt(r.useState(a),2),B=F[0],z=F[1],H=qg();function W(e){null===v||void 0===v||v(e)}var V=(0,r.useRef)(!1),G=(0,r.useRef)(),Y=null;k&&(Y=function(e){V.current?V.current=!1:D.current===e.target&&W(e)}),(0,r.useEffect)((function(){a&&(z(!0),Dt(D.current,document.activeElement)||(R.current=document.activeElement))}),[a]),(0,r.useEffect)((function(){return function(){clearTimeout(G.current)}}),[]);var U=O(O(O({zIndex:o},f),null===L||void 0===L?void 0:L.wrapper),{},{display:B?null:"none"});return r.createElement("div",h({className:c()("".concat(n,"-root"),T)},GC(e,{data:!0})),r.createElement(eE,{prefixCls:n,visible:C&&a,motionName:YC(n,E,P),style:O(O({zIndex:o},A),null===L||void 0===L?void 0:L.mask),maskProps:I,className:null===j||void 0===j?void 0:j.mask}),r.createElement("div",h({tabIndex:-1,onKeyDown:function(e){if(s&&e.keyCode===BC.ESC)return e.stopPropagation(),void W(e);a&&e.keyCode===BC.TAB&&N.current.changeActive(!e.shiftKey)},className:c()("".concat(n,"-wrap"),p,null===j||void 0===j?void 0:j.wrapper),ref:D,onClick:Y,style:U},g),r.createElement(JC,h({},e,{onMouseDown:function(){clearTimeout(G.current),V.current=!0},onMouseUp:function(){G.current=setTimeout((function(){V.current=!1}))},ref:N,closable:S,ariaId:H,prefixCls:n,visible:a&&B,onClose:W,onVisibleChanged:function(e){if(e)!function(){var e;Dt(D.current,document.activeElement)||null===(e=N.current)||void 0===e||e.focus()}();else{if(z(!1),C&&R.current&&d){try{R.current.focus({preventScroll:!0})}catch(N1){}R.current=null}B&&(null===y||void 0===y||y())}null===m||void 0===m||m(e)},motionName:YC(n,b,x)}))))};var nE=function(e){var t=e.visible,n=e.getContainer,o=e.forceRender,i=e.destroyOnClose,a=void 0!==i&&i,l=e.afterClose,c=e.panelRef,s=gt(r.useState(t),2),u=s[0],d=s[1],f=r.useMemo((function(){return{panel:c}}),[c]);return r.useEffect((function(){t&&d(!0)}),[t]),o||!a||u?r.createElement(NC.Provider,{value:f},r.createElement(Yg,{open:t||o||u,autoDestroy:!1,getContainer:n,autoLock:t||u},r.createElement(tE,h({},e,{destroyOnClose:a,afterClose:function(){null===l||void 0===l||l(),d(!1)}})))):null};nE.displayName="Dialog";const rE=nE;function oE(e){if(e)return{closable:e.closable,closeIcon:e.closeIcon}}function iE(e){const{closable:t,closeIcon:n}=e||{};return r.useMemo((()=>{if(!t&&(!1===t||!1===n||null===n))return!1;if(void 0===t&&void 0===n)return null;let e={closeIcon:"boolean"!==typeof n&&null!==n?n:void 0};return t&&"object"===typeof t&&(e=Object.assign(Object.assign({},e),t)),e}),[t,n])}function aE(){const e={};for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((t=>{t&&Object.keys(t).forEach((n=>{void 0!==t[n]&&(e[n]=t[n])}))})),e}const lE={};function cE(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:lE;const o=iE(e),i=iE(t),a="boolean"!==typeof o&&!!(null===o||void 0===o?void 0:o.disabled),l=r.useMemo((()=>Object.assign({closeIcon:r.createElement(dC,null)},n)),[n]),c=r.useMemo((()=>!1!==o&&(o?aE(l,i,o):!1!==i&&(i?aE(l,i):!!l.closable&&l))),[o,i,l]);return r.useMemo((()=>{if(!1===c)return[!1,null,a];const{closeIconRender:e}=l,{closeIcon:t}=c;let n=t;if(null!==n&&void 0!==n){e&&(n=e(t));const o=Ys(c,!0);Object.keys(o).length&&(n=r.isValidElement(n)?r.cloneElement(n,o):r.createElement("span",Object.assign({},o),n))}return[!0,n,a]}),[c,l])}const sE=e=>{const{prefixCls:t,className:n,style:o,size:i,shape:a}=e,l=c()({["".concat(t,"-lg")]:"large"===i,["".concat(t,"-sm")]:"small"===i}),s=c()({["".concat(t,"-circle")]:"circle"===a,["".concat(t,"-square")]:"square"===a,["".concat(t,"-round")]:"round"===a}),u=r.useMemo((()=>"number"===typeof i?{width:i,height:i,lineHeight:"".concat(i,"px")}:{}),[i]);return r.createElement("span",{className:c()(t,l,s,n),style:Object.assign(Object.assign({},u),o)})},uE=new Vr("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),dE=e=>({height:e,lineHeight:yn(e)}),fE=e=>Object.assign({width:e},dE(e)),pE=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:uE,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),hE=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},dE(e)),gE=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},fE(r)),["".concat(t).concat(t,"-circle")]:{borderRadius:"50%"},["".concat(t).concat(t,"-lg")]:Object.assign({},fE(o)),["".concat(t).concat(t,"-sm")]:Object.assign({},fE(i))}},vE=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:o,controlHeightSM:i,gradientFromColor:a,calc:l}=e;return{[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:n},hE(t,l)),["".concat(r,"-lg")]:Object.assign({},hE(o,l)),["".concat(r,"-sm")]:Object.assign({},hE(i,l))}},mE=e=>Object.assign({width:e},dE(e)),yE=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},mE(i(n).mul(2).equal())),{["".concat(t,"-path")]:{fill:"#bfbfbf"},["".concat(t,"-svg")]:Object.assign(Object.assign({},mE(n)),{maxWidth:i(n).mul(4).equal(),maxHeight:i(n).mul(4).equal()}),["".concat(t,"-svg").concat(t,"-svg-circle")]:{borderRadius:"50%"}}),["".concat(t).concat(t,"-circle")]:{borderRadius:"50%"}}},bE=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{["".concat(n).concat(r,"-circle")]:{width:t,minWidth:t,borderRadius:"50%"},["".concat(n).concat(r,"-round")]:{borderRadius:t}}},xE=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},dE(e)),wE=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i,gradientFromColor:a,calc:l}=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:l(r).mul(2).equal(),minWidth:l(r).mul(2).equal()},xE(r,l))},bE(e,r,n)),{["".concat(n,"-lg")]:Object.assign({},xE(o,l))}),bE(e,o,"".concat(n,"-lg"))),{["".concat(n,"-sm")]:Object.assign({},xE(i,l))}),bE(e,i,"".concat(n,"-sm")))},SE=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:o,skeletonButtonCls:i,skeletonInputCls:a,skeletonImageCls:l,controlHeight:c,controlHeightLG:s,controlHeightSM:u,gradientFromColor:d,padding:f,marginSM:p,borderRadius:h,titleHeight:g,blockRadius:v,paragraphLiHeight:m,controlHeightXS:y,paragraphMarginTop:b}=e;return{[t]:{display:"table",width:"100%",["".concat(t,"-header")]:{display:"table-cell",paddingInlineEnd:f,verticalAlign:"top",[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:d},fE(c)),["".concat(n,"-circle")]:{borderRadius:"50%"},["".concat(n,"-lg")]:Object.assign({},fE(s)),["".concat(n,"-sm")]:Object.assign({},fE(u))},["".concat(t,"-content")]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:g,background:d,borderRadius:v,["+ ".concat(o)]:{marginBlockStart:u}},[o]:{padding:0,"> li":{width:"100%",height:m,listStyle:"none",background:d,borderRadius:v,"+ li":{marginBlockStart:y}}},["".concat(o,"> li:last-child:not(:first-child):not(:nth-child(2))")]:{width:"61%"}},["&-round ".concat(t,"-content")]:{["".concat(r,", ").concat(o," > li")]:{borderRadius:h}}},["".concat(t,"-with-avatar ").concat(t,"-content")]:{[r]:{marginBlockStart:p,["+ ".concat(o)]:{marginBlockStart:b}}},["".concat(t).concat(t,"-element")]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},wE(e)),gE(e)),vE(e)),yE(e)),["".concat(t).concat(t,"-block")]:{width:"100%",[i]:{width:"100%"},[a]:{width:"100%"}},["".concat(t).concat(t,"-active")]:{["\n        ".concat(r,",\n        ").concat(o," > li,\n        ").concat(n,",\n        ").concat(i,",\n        ").concat(a,",\n        ").concat(l,"\n      ")]:Object.assign({},pE(e))}}},OE=Ol("Skeleton",(e=>{const{componentCls:t,calc:n}=e,r=Ui(e,{skeletonAvatarCls:"".concat(t,"-avatar"),skeletonTitleCls:"".concat(t,"-title"),skeletonParagraphCls:"".concat(t,"-paragraph"),skeletonButtonCls:"".concat(t,"-button"),skeletonInputCls:"".concat(t,"-input"),skeletonImageCls:"".concat(t,"-image"),imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:"linear-gradient(90deg, ".concat(e.gradientFromColor," 25%, ").concat(e.gradientToColor," 37%, ").concat(e.gradientFromColor," 63%)"),skeletonLoadingMotionDuration:"1.4s"});return[SE(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"]]}),_E=e=>{const{prefixCls:t,className:n,rootClassName:o,active:i,shape:a="circle",size:l="default"}=e,{getPrefixCls:s}=r.useContext(f),u=s("skeleton",t),[d,p,h]=OE(u),g=hu(e,["prefixCls","className"]),v=c()(u,"".concat(u,"-element"),{["".concat(u,"-active")]:i},n,o,p,h);return d(r.createElement("div",{className:v},r.createElement(sE,Object.assign({prefixCls:"".concat(u,"-avatar"),shape:a,size:l},g))))},CE=e=>{const{prefixCls:t,className:n,rootClassName:o,active:i,block:a=!1,size:l="default"}=e,{getPrefixCls:s}=r.useContext(f),u=s("skeleton",t),[d,p,h]=OE(u),g=hu(e,["prefixCls"]),v=c()(u,"".concat(u,"-element"),{["".concat(u,"-active")]:i,["".concat(u,"-block")]:a},n,o,p,h);return d(r.createElement("div",{className:v},r.createElement(sE,Object.assign({prefixCls:"".concat(u,"-button"),size:l},g))))},EE=e=>{const{prefixCls:t,className:n,rootClassName:o,style:i,active:a}=e,{getPrefixCls:l}=r.useContext(f),s=l("skeleton",t),[u,d,p]=OE(s),h=c()(s,"".concat(s,"-element"),{["".concat(s,"-active")]:a},n,o,d,p);return u(r.createElement("div",{className:h},r.createElement("div",{className:c()("".concat(s,"-image"),n),style:i},r.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:"".concat(s,"-image-svg")},r.createElement("title",null,"Image placeholder"),r.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:"".concat(s,"-image-path")})))))},PE=e=>{const{prefixCls:t,className:n,rootClassName:o,active:i,block:a,size:l="default"}=e,{getPrefixCls:s}=r.useContext(f),u=s("skeleton",t),[d,p,h]=OE(u),g=hu(e,["prefixCls"]),v=c()(u,"".concat(u,"-element"),{["".concat(u,"-active")]:i,["".concat(u,"-block")]:a},n,o,p,h);return d(r.createElement("div",{className:v},r.createElement(sE,Object.assign({prefixCls:"".concat(u,"-input"),size:l},g))))},ME=e=>{const{prefixCls:t,className:n,rootClassName:o,style:i,active:a,children:l}=e,{getPrefixCls:s}=r.useContext(f),u=s("skeleton",t),[d,p,h]=OE(u),g=c()(u,"".concat(u,"-element"),{["".concat(u,"-active")]:a},p,n,o,h);return d(r.createElement("div",{className:g},r.createElement("div",{className:c()("".concat(u,"-image"),n),style:i},l)))},kE=(e,t)=>{const{width:n,rows:r=2}=t;return Array.isArray(n)?n[e]:r-1===e?n:void 0},AE=e=>{const{prefixCls:t,className:n,style:o,rows:i}=e,a=Ds(new Array(i)).map(((t,n)=>r.createElement("li",{key:n,style:{width:kE(n,e)}})));return r.createElement("ul",{className:c()(t,n),style:o},a)},IE=e=>{let{prefixCls:t,className:n,width:o,style:i}=e;return r.createElement("h3",{className:c()(t,n),style:Object.assign({width:o},i)})};function TE(e){return e&&"object"===typeof e?e:{}}const jE=e=>{const{prefixCls:t,loading:n,className:o,rootClassName:i,style:a,children:l,avatar:s=!1,title:u=!0,paragraph:d=!0,active:p,round:h}=e,{getPrefixCls:g,direction:v,skeleton:m}=r.useContext(f),y=g("skeleton",t),[b,x,w]=OE(y);if(n||!("loading"in e)){const e=!!s,t=!!u,n=!!d;let l,f;if(e){const e=Object.assign(Object.assign({prefixCls:"".concat(y,"-avatar")},function(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}(t,n)),TE(s));l=r.createElement("div",{className:"".concat(y,"-header")},r.createElement(sE,Object.assign({},e)))}if(t||n){let o,i;if(t){const t=Object.assign(Object.assign({prefixCls:"".concat(y,"-title")},function(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}(e,n)),TE(u));o=r.createElement(IE,Object.assign({},t))}if(n){const n=Object.assign(Object.assign({prefixCls:"".concat(y,"-paragraph")},function(e,t){const n={};return e&&t||(n.width="61%"),n.rows=!e&&t?3:2,n}(e,t)),TE(d));i=r.createElement(AE,Object.assign({},n))}f=r.createElement("div",{className:"".concat(y,"-content")},o,i)}const g=c()(y,{["".concat(y,"-with-avatar")]:e,["".concat(y,"-active")]:p,["".concat(y,"-rtl")]:"rtl"===v,["".concat(y,"-round")]:h},null===m||void 0===m?void 0:m.className,o,i,x,w);return b(r.createElement("div",{className:g,style:Object.assign(Object.assign({},null===m||void 0===m?void 0:m.style),a)},l,f))}return null!==l&&void 0!==l?l:null};jE.Button=CE,jE.Avatar=_E,jE.Input=PE,jE.Image=EE,jE.Node=ME;const LE=jE;function RE(){}const DE=r.createContext({add:RE,remove:RE});function NE(e){const t=r.useContext(DE),n=r.useRef();return Ns((r=>{if(r){const o=e?r.querySelector(e):r;t.add(o),n.current=o}else t.remove(n.current)}))}const FE=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=(0,r.useContext)(jC);return r.createElement(lh,Object.assign({onClick:n},e),t)},BE=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:o,onOk:i}=(0,r.useContext)(jC);return r.createElement(lh,Object.assign({},Xf(n),{loading:e,onClick:i},t),o)};function zE(e,t){return r.createElement("span",{className:"".concat(e,"-close-x")},t||r.createElement(dC,{className:"".concat(e,"-close-icon")}))}const HE=e=>{const{okText:t,okType:n="primary",cancelText:o,confirmLoading:i,onOk:a,onCancel:l,okButtonProps:c,cancelButtonProps:s,footer:u}=e,[d]=Lg("Modal",IO()),f={confirmLoading:i,okButtonProps:c,cancelButtonProps:s,okTextLocale:t||(null===d||void 0===d?void 0:d.okText),cancelTextLocale:o||(null===d||void 0===d?void 0:d.cancelText),okType:n,onOk:a,onCancel:l},p=r.useMemo((()=>f),Ds(Object.values(f)));let h;return"function"===typeof u||"undefined"===typeof u?(h=r.createElement(r.Fragment,null,r.createElement(FE,null),r.createElement(BE,null)),"function"===typeof u&&(h=u(h,{OkBtn:BE,CancelBtn:FE})),h=r.createElement(LC,{value:p},h)):h=u,r.createElement(Ps,{disabled:!1},h)},WE=new Vr("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),VE=new Vr("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),GE=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{antCls:n}=e,r="".concat(n,"-fade"),o=t?"&":"";return[Um(r,WE,VE,e.motionDurationMid,t),{["\n        ".concat(o).concat(r,"-enter,\n        ").concat(o).concat(r,"-appear\n      ")]:{opacity:0,animationTimingFunction:"linear"},["".concat(o).concat(r,"-leave")]:{animationTimingFunction:"linear"}}]};function YE(e){return{position:e,inset:0}}const UE=e=>{const{componentCls:t,antCls:n}=e;return[{["".concat(t,"-root")]:{["".concat(t).concat(n,"-zoom-enter, ").concat(t).concat(n,"-zoom-appear")]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},["".concat(t).concat(n,"-zoom-leave ").concat(t,"-content")]:{pointerEvents:"none"},["".concat(t,"-mask")]:Object.assign(Object.assign({},YE("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",["".concat(t,"-hidden")]:{display:"none"}}),["".concat(t,"-wrap")]:Object.assign(Object.assign({},YE("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{["".concat(t,"-root")]:GE(e)}]},XE=e=>{const{componentCls:t}=e;return[{["".concat(t,"-root")]:{["".concat(t,"-wrap-rtl")]:{direction:"rtl"},["".concat(t,"-centered")]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},["@media (max-width: ".concat(e.screenSMMax,"px)")]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:"".concat(yn(e.marginXS)," auto")},["".concat(t,"-centered")]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},Ur(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:"calc(100vw - ".concat(yn(e.calc(e.margin).mul(2).equal()),")"),margin:"0 auto",paddingBottom:e.paddingLG,["".concat(t,"-title")]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},["".concat(t,"-content")]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},["".concat(t,"-close")]:Object.assign({position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:"color ".concat(e.motionDurationMid,", background-color ").concat(e.motionDurationMid),"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:yn(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},Kr(e)),["".concat(t,"-header")]:{color:e.colorText,background:e.headerBg,borderRadius:"".concat(yn(e.borderRadiusLG)," ").concat(yn(e.borderRadiusLG)," 0 0"),marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},["".concat(t,"-body")]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding,["".concat(t,"-body-skeleton")]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",margin:"".concat(yn(e.margin)," auto")}},["".concat(t,"-footer")]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,["> ".concat(e.antCls,"-btn + ").concat(e.antCls,"-btn")]:{marginInlineStart:e.marginXS}},["".concat(t,"-open")]:{overflow:"hidden"}})},{["".concat(t,"-pure-panel")]:{top:"auto",padding:0,display:"flex",flexDirection:"column",["".concat(t,"-content,\n          ").concat(t,"-body,\n          ").concat(t,"-confirm-body-wrapper")]:{display:"flex",flexDirection:"column",flex:"auto"},["".concat(t,"-confirm-body")]:{marginBottom:"auto"}}}]},qE=e=>{const{componentCls:t}=e;return{["".concat(t,"-root")]:{["".concat(t,"-wrap-rtl")]:{direction:"rtl",["".concat(t,"-confirm-body")]:{direction:"rtl"}}}}},KE=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return Ui(e,{modalHeaderHeight:e.calc(e.calc(r).mul(n).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalCloseIconColor:e.colorIcon,modalCloseIconHoverColor:e.colorIconHover,modalCloseBtnSize:e.controlHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},$E=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:"".concat(yn(e.paddingMD)," ").concat(yn(e.paddingContentHorizontalLG)),headerPadding:e.wireframe?"".concat(yn(e.padding)," ").concat(yn(e.paddingLG)):0,headerBorderBottom:e.wireframe?"".concat(yn(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorSplit):"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?"".concat(yn(e.paddingXS)," ").concat(yn(e.padding)):0,footerBorderTop:e.wireframe?"".concat(yn(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorSplit):"none",footerBorderRadius:e.wireframe?"0 0 ".concat(yn(e.borderRadiusLG)," ").concat(yn(e.borderRadiusLG)):0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?"".concat(yn(2*e.padding)," ").concat(yn(2*e.padding)," ").concat(yn(e.paddingLG)):0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),QE=Ol("Modal",(e=>{const t=KE(e);return[XE(t),qE(t),UE(t),ey(t,"zoom")]}),$E,{unitless:{titleLineHeight:!0}});var ZE=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};let JE;const eP=e=>{JE={x:e.pageX,y:e.pageY},setTimeout((()=>{JE=null}),100)};ad()&&window.document.documentElement&&document.documentElement.addEventListener("click",eP,!0);const tP=e=>{var t;const{getPopupContainer:n,getPrefixCls:o,direction:i,modal:a}=r.useContext(f),l=t=>{const{onCancel:n}=e;null===n||void 0===n||n(t)};const{prefixCls:s,className:u,rootClassName:d,open:p,wrapClassName:h,centered:g,getContainer:v,focusTriggerAfterClose:m=!0,style:y,visible:b,width:x=520,footer:w,classNames:S,styles:O,children:_,loading:C}=e,E=ZE(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","focusTriggerAfterClose","style","visible","width","footer","classNames","styles","children","loading"]),P=o("modal",s),M=o(),k=ks(P),[A,I,T]=QE(P,k),j=c()(h,{["".concat(P,"-centered")]:!!g,["".concat(P,"-wrap-rtl")]:"rtl"===i}),L=null===w||C?null:r.createElement(HE,Object.assign({},e,{onOk:t=>{const{onOk:n}=e;null===n||void 0===n||n(t)},onCancel:l})),[R,D,N]=cE(oE(e),oE(a),{closable:!0,closeIcon:r.createElement(dC,{className:"".concat(P,"-close-icon")}),closeIconRender:e=>zE(P,e)}),F=NE(".".concat(P,"-content")),[B,z]=_m("Modal",E.zIndex);return A(r.createElement(Xc,{form:!0,space:!0},r.createElement(bm.Provider,{value:z},r.createElement(rE,Object.assign({width:x},E,{zIndex:B,getContainer:void 0===v?n:v,prefixCls:P,rootClassName:c()(I,d,T,k),footer:L,visible:null!==p&&void 0!==p?p:b,mousePosition:null!==(t=E.mousePosition)&&void 0!==t?t:JE,onClose:l,closable:R?{disabled:N,closeIcon:D}:R,closeIcon:D,focusTriggerAfterClose:m,transitionName:km(M,"zoom",e.transitionName),maskTransitionName:km(M,"fade",e.maskTransitionName),className:c()(I,u,null===a||void 0===a?void 0:a.className),style:Object.assign(Object.assign({},null===a||void 0===a?void 0:a.style),y),classNames:Object.assign(Object.assign(Object.assign({},null===a||void 0===a?void 0:a.classNames),S),{wrapper:c()(j,null===S||void 0===S?void 0:S.wrapper)}),styles:Object.assign(Object.assign({},null===a||void 0===a?void 0:a.styles),O),panelRef:F}),C?r.createElement(LE,{active:!0,title:!1,paragraph:{rows:4},className:"".concat(P,"-body-skeleton")}):_))))},nP=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:o,fontSize:i,lineHeight:a,modalTitleHeight:l,fontHeight:c,confirmBodyPadding:s}=e,u="".concat(t,"-confirm");return{[u]:{"&-rtl":{direction:"rtl"},["".concat(e.antCls,"-modal-header")]:{display:"none"},["".concat(u,"-body-wrapper")]:Object.assign({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),["&".concat(t," ").concat(t,"-body")]:{padding:s},["".concat(u,"-body")]:{display:"flex",flexWrap:"nowrap",alignItems:"start",["> ".concat(e.iconCls)]:{flex:"none",fontSize:o,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(c).sub(o).equal()).div(2).equal()},["&-has-title > ".concat(e.iconCls)]:{marginTop:e.calc(e.calc(l).sub(o).equal()).div(2).equal()}},["".concat(u,"-paragraph")]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS},["".concat(e.iconCls," + ").concat(u,"-paragraph")]:{maxWidth:"calc(100% - ".concat(yn(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal()),")")},["".concat(u,"-title")]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},["".concat(u,"-content")]:{color:e.colorText,fontSize:i,lineHeight:a},["".concat(u,"-btns")]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,["".concat(e.antCls,"-btn + ").concat(e.antCls,"-btn")]:{marginBottom:0,marginInlineStart:e.marginXS}}},["".concat(u,"-error ").concat(u,"-body > ").concat(e.iconCls)]:{color:e.colorError},["".concat(u,"-warning ").concat(u,"-body > ").concat(e.iconCls,",\n        ").concat(u,"-confirm ").concat(u,"-body > ").concat(e.iconCls)]:{color:e.colorWarning},["".concat(u,"-info ").concat(u,"-body > ").concat(e.iconCls)]:{color:e.colorInfo},["".concat(u,"-success ").concat(u,"-body > ").concat(e.iconCls)]:{color:e.colorSuccess}}},rP=Cl(["Modal","confirm"],(e=>{const t=KE(e);return[nP(t)]}),$E,{order:-1e3});var oP=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};function iP(e){const{prefixCls:t,icon:n,okText:o,cancelText:i,confirmPrefixCls:a,type:l,okCancel:s,footer:u,locale:d}=e,f=oP(e,["prefixCls","icon","okText","cancelText","confirmPrefixCls","type","okCancel","footer","locale"]);let p=n;if(!n&&null!==n)switch(l){case"info":p=r.createElement(AC,null);break;case"success":p=r.createElement(_C,null);break;case"error":p=r.createElement(Ss,null);break;default:p=r.createElement(PC,null)}const h=null!==s&&void 0!==s?s:"confirm"===l,g=null!==e.autoFocusButton&&(e.autoFocusButton||"ok"),[v]=Lg("Modal"),m=d||v,y=o||(h?null===m||void 0===m?void 0:m.okText:null===m||void 0===m?void 0:m.justOkText),b=i||(null===m||void 0===m?void 0:m.cancelText),x=Object.assign({autoFocusButton:g,cancelTextLocale:b,okTextLocale:y,mergedOkCancel:h},f),w=r.useMemo((()=>x),Ds(Object.values(x))),S=r.createElement(r.Fragment,null,r.createElement(RC,null),r.createElement(DC,null)),O=void 0!==e.title&&null!==e.title,_="".concat(a,"-body");return r.createElement("div",{className:"".concat(a,"-body-wrapper")},r.createElement("div",{className:c()(_,{["".concat(_,"-has-title")]:O})},p,r.createElement("div",{className:"".concat(a,"-paragraph")},O&&r.createElement("span",{className:"".concat(a,"-title")},e.title),r.createElement("div",{className:"".concat(a,"-content")},e.content))),void 0===u||"function"===typeof u?r.createElement(LC,{value:w},r.createElement("div",{className:"".concat(a,"-btns")},"function"===typeof u?u(S,{OkBtn:DC,CancelBtn:RC}):S)):u,r.createElement(rP,{prefixCls:t}))}const aP=e=>{const{close:t,zIndex:n,afterClose:o,open:i,keyboard:a,centered:l,getContainer:s,maskStyle:u,direction:d,prefixCls:f,wrapClassName:p,rootPrefixCls:h,bodyStyle:g,closable:v=!1,closeIcon:m,modalRender:y,focusTriggerAfterClose:b,onConfirm:x,styles:w}=e;const S="".concat(f,"-confirm"),O=e.width||416,_=e.style||{},C=void 0===e.mask||e.mask,E=void 0!==e.maskClosable&&e.maskClosable,P=c()(S,"".concat(S,"-").concat(e.type),{["".concat(S,"-rtl")]:"rtl"===d},e.className),[,M]=wl(),k=r.useMemo((()=>void 0!==n?n:M.zIndexPopupBase+wm),[n,M]);return r.createElement(tP,{prefixCls:f,className:P,wrapClassName:c()({["".concat(S,"-centered")]:!!e.centered},p),onCancel:()=>{null===t||void 0===t||t({triggerCancel:!0}),null===x||void 0===x||x(!1)},open:i,title:"",footer:null,transitionName:km(h||"","zoom",e.transitionName),maskTransitionName:km(h||"","fade",e.maskTransitionName),mask:C,maskClosable:E,style:_,styles:Object.assign({body:g,mask:u},w),width:O,zIndex:k,afterClose:o,keyboard:a,centered:l,getContainer:s,closable:v,closeIcon:m,modalRender:y,focusTriggerAfterClose:b},r.createElement(iP,Object.assign({},e,{confirmPrefixCls:S})))};const lP=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:o,theme:i}=e;return r.createElement(s_,{prefixCls:t,iconPrefixCls:n,direction:o,theme:i},r.createElement(aP,Object.assign({},e)))},cP=[];let sP="";function uP(){return sP}const dP=e=>{var t,n;const{prefixCls:o,getContainer:i,direction:a}=e,l=IO(),c=(0,r.useContext)(f),s=uP()||c.getPrefixCls(),u=o||"".concat(s,"-modal");let d=i;return!1===d&&(d=void 0),r.createElement(lP,Object.assign({},e,{rootPrefixCls:s,prefixCls:u,iconPrefixCls:c.iconPrefixCls,theme:c.theme,direction:null!==a&&void 0!==a?a:c.direction,locale:null!==(n=null===(t=c.locale)||void 0===t?void 0:t.Modal)&&void 0!==n?n:l,getContainer:d}))};function fP(e){const t=a_();const n=document.createDocumentFragment();let o,i=Object.assign(Object.assign({},e),{close:c,open:!0});function a(){for(var t,r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a;o.some((e=>null===e||void 0===e?void 0:e.triggerCancel))&&(null===(t=e.onCancel)||void 0===t||(a=t).call.apply(a,[e,()=>{}].concat(Ds(o.slice(1)))));for(let e=0;e<cP.length;e++){if(cP[e]===c){cP.splice(e,1);break}}Lf(n)}function l(e){clearTimeout(o),o=setTimeout((()=>{const o=t.getPrefixCls(void 0,uP()),i=t.getIconPrefixCls(),a=t.getTheme(),l=r.createElement(dP,Object.assign({},e));Af(r.createElement(s_,{prefixCls:o,iconPrefixCls:i,theme:a},t.holderRender?t.holderRender(l):l),n)}))}function c(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];i=Object.assign(Object.assign({},i),{open:!1,afterClose:()=>{"function"===typeof e.afterClose&&e.afterClose(),a.apply(this,n)}}),i.visible&&delete i.visible,l(i)}return l(i),cP.push(c),{destroy:c,update:function(e){i="function"===typeof e?e(i):Object.assign(Object.assign({},i),e),l(i)}}}function pP(e){return Object.assign(Object.assign({},e),{type:"warning"})}function hP(e){return Object.assign(Object.assign({},e),{type:"info"})}function gP(e){return Object.assign(Object.assign({},e),{type:"success"})}function vP(e){return Object.assign(Object.assign({},e),{type:"error"})}function mP(e){return Object.assign(Object.assign({},e),{type:"confirm"})}var yP=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 bP=u_((e=>{const{prefixCls:t,className:n,closeIcon:o,closable:i,type:a,title:l,children:s,footer:u}=e,d=yP(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:p}=r.useContext(f),h=p(),g=t||p("modal"),v=ks(h),[m,y,b]=QE(g,v),x="".concat(g,"-confirm");let w={};return w=a?{closable:null!==i&&void 0!==i&&i,title:"",footer:"",children:r.createElement(iP,Object.assign({},e,{prefixCls:g,confirmPrefixCls:x,rootPrefixCls:h,content:s}))}:{closable:null===i||void 0===i||i,title:l,footer:null!==u&&r.createElement(HE,Object.assign({},e)),children:s},m(r.createElement(QC,Object.assign({prefixCls:g,className:c()(y,"".concat(g,"-pure-panel"),a&&x,a&&"".concat(x,"-").concat(a),n,b,v)},d,{closeIcon:zE(g,o),closable:i},w)))}));var xP=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 wP=(e,t)=>{var n,{afterClose:o,config:i}=e,a=xP(e,["afterClose","config"]);const[l,c]=r.useState(!0),[s,u]=r.useState(i),{direction:d,getPrefixCls:p}=r.useContext(f),h=p("modal"),g=p(),v=function(){var e;c(!1);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o;n.some((e=>null===e||void 0===e?void 0:e.triggerCancel))&&(null===(e=s.onCancel)||void 0===e||(o=e).call.apply(o,[s,()=>{}].concat(Ds(n.slice(1)))))};r.useImperativeHandle(t,(()=>({destroy:v,update:e=>{u((t=>Object.assign(Object.assign({},t),e)))}})));const m=null!==(n=s.okCancel)&&void 0!==n?n:"confirm"===s.type,[y]=Lg("Modal",jg.Modal);return r.createElement(lP,Object.assign({prefixCls:h,rootPrefixCls:g},s,{close:v,open:l,afterClose:()=>{var e;o(),null===(e=s.afterClose)||void 0===e||e.call(s)},okText:s.okText||(m?null===y||void 0===y?void 0:y.okText:null===y||void 0===y?void 0:y.justOkText),direction:s.direction||d,cancelText:s.cancelText||(null===y||void 0===y?void 0:y.cancelText)},a))},SP=r.forwardRef(wP);let OP=0;const _P=r.memo(r.forwardRef(((e,t)=>{const[n,o]=function(){const[e,t]=r.useState([]);return[e,r.useCallback((e=>(t((t=>[].concat(Ds(t),[e]))),()=>{t((t=>t.filter((t=>t!==e))))})),[])]}();return r.useImperativeHandle(t,(()=>({patchElement:o})),[]),r.createElement(r.Fragment,null,n)})));const CP=function(){const e=r.useRef(null),[t,n]=r.useState([]);r.useEffect((()=>{if(t.length){Ds(t).forEach((e=>{e()})),n([])}}),[t]);const o=r.useCallback((t=>function(o){var i;OP+=1;const a=r.createRef();let l;const c=new Promise((e=>{l=e}));let s,u=!1;const d=r.createElement(SP,{key:"modal-".concat(OP),config:t(o),ref:a,afterClose:()=>{null===s||void 0===s||s()},isSilent:()=>u,onConfirm:e=>{l(e)}});s=null===(i=e.current)||void 0===i?void 0:i.patchElement(d),s&&cP.push(s);const f={destroy:()=>{function e(){var e;null===(e=a.current)||void 0===e||e.destroy()}a.current?e():n((t=>[].concat(Ds(t),[e])))},update:e=>{function t(){var t;null===(t=a.current)||void 0===t||t.update(e)}a.current?t():n((e=>[].concat(Ds(e),[t])))},then:e=>(u=!0,c.then(e))};return f}),[]);return[r.useMemo((()=>({info:o(hP),success:o(gP),error:o(vP),warning:o(pP),confirm:o(mP)})),[]),r.createElement(_P,{key:"modal-holder",ref:e})]};function EP(e){return fP(pP(e))}const PP=tP;PP.useModal=CP,PP.info=function(e){return fP(hP(e))},PP.success=function(e){return fP(gP(e))},PP.error=function(e){return fP(vP(e))},PP.warning=EP,PP.warn=EP,PP.confirm=function(e){return fP(mP(e))},PP.destroyAll=function(){for(;cP.length;){const e=cP.pop();e&&e()}},PP.config=function(e){let{rootPrefixCls:t}=e;sP=t},PP._InternalPanelDoNotUseOrYouWillBeFired=bP;const MP=PP,kP=r.createContext({});var AP=r.forwardRef((function(e,t){var n=e.prefixCls,o=e.style,i=e.className,a=e.duration,l=void 0===a?4.5:a,s=e.showProgress,u=e.pauseOnHover,d=void 0===u||u,f=e.eventKey,p=e.content,g=e.closable,m=e.closeIcon,y=void 0===m?"x":m,b=e.props,x=e.onClick,S=e.onNoticeClose,O=e.times,_=e.hovering,C=gt(r.useState(!1),2),E=C[0],P=C[1],M=gt(r.useState(0),2),k=M[0],A=M[1],I=gt(r.useState(0),2),T=I[0],j=I[1],L=_||E,R=l>0&&s,D=function(){S(f)};r.useEffect((function(){if(!L&&l>0){var e=Date.now()-T,t=setTimeout((function(){D()}),1e3*l-T);return function(){d&&clearTimeout(t),j(Date.now()-e)}}}),[l,L,O]),r.useEffect((function(){if(!L&&R&&(d||0===T)){var e,t=performance.now();return function n(){cancelAnimationFrame(e),e=requestAnimationFrame((function(e){var r=e+T-t,o=Math.min(r/(1e3*l),1);A(100*o),o<1&&n()}))}(),function(){d&&cancelAnimationFrame(e)}}}),[l,T,L,R,O]);var N=r.useMemo((function(){return"object"===v(g)&&null!==g?g:g?{closeIcon:y}:{}}),[g,y]),F=GC(N,!0),B=100-(!k||k<0?0:k>100?100:k),z="".concat(n,"-notice");return r.createElement("div",h({},b,{ref:t,className:c()(z,i,w({},"".concat(z,"-closable"),g)),style:o,onMouseEnter:function(e){var t;P(!0),null===b||void 0===b||null===(t=b.onMouseEnter)||void 0===t||t.call(b,e)},onMouseLeave:function(e){var t;P(!1),null===b||void 0===b||null===(t=b.onMouseLeave)||void 0===t||t.call(b,e)},onClick:x}),r.createElement("div",{className:"".concat(z,"-content")},p),g&&r.createElement("a",h({tabIndex:0,className:"".concat(z,"-close"),onKeyDown:function(e){"Enter"!==e.key&&"Enter"!==e.code&&e.keyCode!==BC.ENTER||D()},"aria-label":"Close"},F,{onClick:function(e){e.preventDefault(),e.stopPropagation(),D()}}),N.closeIcon),R&&r.createElement("progress",{className:"".concat(z,"-progress"),max:"100",value:B},B+"%"))}));const IP=AP;var TP=r.createContext({});const jP=function(e){var t=e.children,n=e.classNames;return r.createElement(TP.Provider,{value:{classNames:n}},t)};const LP=function(e){var t,n,r,o={offset:8,threshold:3,gap:16};e&&"object"===v(e)&&(o.offset=null!==(t=e.offset)&&void 0!==t?t:8,o.threshold=null!==(n=e.threshold)&&void 0!==n?n:3,o.gap=null!==(r=e.gap)&&void 0!==r?r:16);return[!!e,o]};var RP=["className","style","classNames","styles"];const DP=function(e){var t=e.configList,n=e.placement,o=e.prefixCls,i=e.className,a=e.style,l=e.motion,s=e.onAllNoticeRemoved,u=e.onNoticeClose,d=e.stack,f=(0,r.useContext)(TP).classNames,p=(0,r.useRef)({}),v=gt((0,r.useState)(null),2),m=v[0],y=v[1],b=gt((0,r.useState)([]),2),x=b[0],S=b[1],_=t.map((function(e){return{config:e,key:String(e.key)}})),C=gt(LP(d),2),E=C[0],M=C[1],k=M.offset,A=M.threshold,I=M.gap,T=E&&(x.length>0||_.length<=A),j="function"===typeof l?l(n):l;return(0,r.useEffect)((function(){E&&x.length>1&&S((function(e){return e.filter((function(e){return _.some((function(t){var n=t.key;return e===n}))}))}))}),[x,_,E]),(0,r.useEffect)((function(){var e,t;E&&p.current[null===(e=_[_.length-1])||void 0===e?void 0:e.key]&&y(p.current[null===(t=_[_.length-1])||void 0===t?void 0:t.key])}),[_,E]),r.createElement(Bv,h({key:n,className:c()(o,"".concat(o,"-").concat(n),null===f||void 0===f?void 0:f.list,i,w(w({},"".concat(o,"-stack"),!!E),"".concat(o,"-stack-expanded"),T)),style:a,keys:_,motionAppear:!0},j,{onAllRemoved:function(){s(n)}}),(function(e,t){var i=e.config,a=e.className,l=e.style,s=e.index,d=i,v=d.key,y=d.times,b=String(v),w=i,C=w.className,M=w.style,A=w.classNames,j=w.styles,L=g(w,RP),R=_.findIndex((function(e){return e.key===b})),D={};if(E){var N=_.length-1-(R>-1?R:s-1),F="top"===n||"bottom"===n?"-50%":"0";if(N>0){var B,z,H;D.height=T?null===(B=p.current[b])||void 0===B?void 0:B.offsetHeight:null===m||void 0===m?void 0:m.offsetHeight;for(var W=0,V=0;V<N;V++){var G;W+=(null===(G=p.current[_[_.length-1-V].key])||void 0===G?void 0:G.offsetHeight)+I}var Y=(T?W:N*k)*(n.startsWith("top")?1:-1),U=!T&&null!==m&&void 0!==m&&m.offsetWidth&&null!==(z=p.current[b])&&void 0!==z&&z.offsetWidth?((null===m||void 0===m?void 0:m.offsetWidth)-2*k*(N<3?N:3))/(null===(H=p.current[b])||void 0===H?void 0:H.offsetWidth):1;D.transform="translate3d(".concat(F,", ").concat(Y,"px, 0) scaleX(").concat(U,")")}else D.transform="translate3d(".concat(F,", 0, 0)")}return r.createElement("div",{ref:t,className:c()("".concat(o,"-notice-wrapper"),a,null===A||void 0===A?void 0:A.wrapper),style:O(O(O({},l),D),null===j||void 0===j?void 0:j.wrapper),onMouseEnter:function(){return S((function(e){return e.includes(b)?e:[].concat(P(e),[b])}))},onMouseLeave:function(){return S((function(e){return e.filter((function(e){return e!==b}))}))}},r.createElement(IP,h({},L,{ref:function(e){R>-1?p.current[b]=e:delete p.current[b]},prefixCls:o,classNames:A,styles:j,className:c()(C,null===f||void 0===f?void 0:f.notice),style:M,times:y,key:v,eventKey:v,onNoticeClose:u,hovering:E&&x.length>0})))}))};var NP=r.forwardRef((function(e,t){var n=e.prefixCls,o=void 0===n?"rc-notification":n,i=e.container,a=e.motion,l=e.maxCount,c=e.className,s=e.style,u=e.onAllRemoved,d=e.stack,f=e.renderNotifications,p=gt(r.useState([]),2),h=p[0],g=p[1],v=function(e){var t,n=h.find((function(t){return t.key===e}));null===n||void 0===n||null===(t=n.onClose)||void 0===t||t.call(n),g((function(t){return t.filter((function(t){return t.key!==e}))}))};r.useImperativeHandle(t,(function(){return{open:function(e){g((function(t){var n,r=P(t),o=r.findIndex((function(t){return t.key===e.key})),i=O({},e);o>=0?(i.times=((null===(n=t[o])||void 0===n?void 0:n.times)||0)+1,r[o]=i):(i.times=0,r.push(i));return l>0&&r.length>l&&(r=r.slice(-l)),r}))},close:function(e){v(e)},destroy:function(){g([])}}}));var m=gt(r.useState({}),2),y=m[0],b=m[1];r.useEffect((function(){var e={};h.forEach((function(t){var n=t.placement,r=void 0===n?"topRight":n;r&&(e[r]=e[r]||[],e[r].push(t))})),Object.keys(y).forEach((function(t){e[t]=e[t]||[]})),b(e)}),[h]);var x=function(e){b((function(t){var n=O({},t);return(n[e]||[]).length||delete n[e],n}))},w=r.useRef(!1);if(r.useEffect((function(){Object.keys(y).length>0?w.current=!0:w.current&&(null===u||void 0===u||u(),w.current=!1)}),[y]),!i)return null;var S=Object.keys(y);return(0,Nu.createPortal)(r.createElement(r.Fragment,null,S.map((function(e){var t=y[e],n=r.createElement(DP,{key:e,configList:t,placement:e,prefixCls:o,className:null===c||void 0===c?void 0:c(e),style:null===s||void 0===s?void 0:s(e),motion:a,onNoticeClose:v,onAllNoticeRemoved:x,stack:d});return f?f(n,{prefixCls:o,key:e}):n}))),i)}));const FP=NP;var BP=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],zP=function(){return document.body},HP=0;function WP(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.getContainer,n=void 0===t?zP:t,o=e.motion,i=e.prefixCls,a=e.maxCount,l=e.className,c=e.style,s=e.onAllRemoved,u=e.stack,d=e.renderNotifications,f=g(e,BP),p=gt(r.useState(),2),h=p[0],v=p[1],m=r.useRef(),y=r.createElement(FP,{container:h,ref:m,prefixCls:i,motion:o,maxCount:a,className:l,style:c,onAllRemoved:s,stack:u,renderNotifications:d}),b=gt(r.useState([]),2),x=b[0],w=b[1],S=r.useMemo((function(){return{open:function(e){var t=function(){for(var e={},t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((function(t){t&&Object.keys(t).forEach((function(n){var r=t[n];void 0!==r&&(e[n]=r)}))})),e}(f,e);null!==t.key&&void 0!==t.key||(t.key="rc-notification-".concat(HP),HP+=1),w((function(e){return[].concat(P(e),[{type:"open",config:t}])}))},close:function(e){w((function(t){return[].concat(P(t),[{type:"close",key:e}])}))},destroy:function(){w((function(e){return[].concat(P(e),[{type:"destroy"}])}))}}}),[]);return r.useEffect((function(){v(n())})),r.useEffect((function(){m.current&&x.length&&(x.forEach((function(e){switch(e.type){case"open":m.current.open(e.config);break;case"close":m.current.close(e.key);break;case"destroy":m.current.destroy()}})),w((function(e){return e.filter((function(e){return!x.includes(e)}))})))}),[x]),[S,y]}const VP=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:o,colorSuccess:i,colorError:a,colorWarning:l,colorInfo:c,fontSizeLG:s,motionEaseInOutCirc:u,motionDurationSlow:d,marginXS:f,paddingXS:p,borderRadiusLG:h,zIndexPopup:g,contentPadding:v,contentBg:m}=e,y="".concat(t,"-notice"),b=new Vr("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:p,transform:"translateY(0)",opacity:1}}),x=new Vr("MessageMoveOut",{"0%":{maxHeight:e.height,padding:p,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),w={padding:p,textAlign:"center",["".concat(t,"-custom-content")]:{display:"flex",alignItems:"center"},["".concat(t,"-custom-content > ").concat(n)]:{marginInlineEnd:f,fontSize:s},["".concat(y,"-content")]:{display:"inline-block",padding:v,background:m,borderRadius:h,boxShadow:r,pointerEvents:"all"},["".concat(t,"-success > ").concat(n)]:{color:i},["".concat(t,"-error > ").concat(n)]:{color:a},["".concat(t,"-warning > ").concat(n)]:{color:l},["".concat(t,"-info > ").concat(n,",\n      ").concat(t,"-loading > ").concat(n)]:{color:c}};return[{[t]:Object.assign(Object.assign({},Ur(e)),{color:o,position:"fixed",top:f,width:"100%",pointerEvents:"none",zIndex:g,["".concat(t,"-move-up")]:{animationFillMode:"forwards"},["\n        ".concat(t,"-move-up-appear,\n        ").concat(t,"-move-up-enter\n      ")]:{animationName:b,animationDuration:d,animationPlayState:"paused",animationTimingFunction:u},["\n        ".concat(t,"-move-up-appear").concat(t,"-move-up-appear-active,\n        ").concat(t,"-move-up-enter").concat(t,"-move-up-enter-active\n      ")]:{animationPlayState:"running"},["".concat(t,"-move-up-leave")]:{animationName:x,animationDuration:d,animationPlayState:"paused",animationTimingFunction:u},["".concat(t,"-move-up-leave").concat(t,"-move-up-leave-active")]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{["".concat(y,"-wrapper")]:Object.assign({},w)}},{["".concat(t,"-notice-pure-panel")]:Object.assign(Object.assign({},w),{padding:0,textAlign:"start"})}]},GP=Ol("Message",(e=>{const t=Ui(e,{height:150});return[VP(t)]}),(e=>({zIndexPopup:e.zIndexPopupBase+wm+10,contentBg:e.colorBgElevated,contentPadding:"".concat((e.controlHeightLG-e.fontSize*e.lineHeight)/2,"px ").concat(e.paddingSM,"px")})));var YP=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 UP={info:r.createElement(AC,null),success:r.createElement(_C,null),error:r.createElement(Ss,null),warning:r.createElement(PC,null),loading:r.createElement(tp,null)},XP=e=>{let{prefixCls:t,type:n,icon:o,children:i}=e;return r.createElement("div",{className:c()("".concat(t,"-custom-content"),"".concat(t,"-").concat(n))},o||UP[n],r.createElement("span",null,i))},qP=e=>{const{prefixCls:t,className:n,type:o,icon:i,content:a}=e,l=YP(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:s}=r.useContext(f),u=t||s("message"),d=ks(u),[p,h,g]=GP(u,d);return p(r.createElement(IP,Object.assign({},l,{prefixCls:u,className:c()(n,h,"".concat(u,"-notice-pure-panel"),g,d),eventKey:"pure",duration:null,content:r.createElement(XP,{prefixCls:u,type:o,icon:i},a)})))};function KP(e){let t;const n=new Promise((n=>{t=e((()=>{n(!0)}))})),r=()=>{null===t||void 0===t||t()};return r.then=(e,t)=>n.then(e,t),r.promise=n,r}var $P=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 QP=3,ZP=e=>{let{children:t,prefixCls:n}=e;const o=ks(n),[i,a,l]=GP(n,o);return i(r.createElement(jP,{classNames:{list:c()(a,l,o)}},t))},JP=(e,t)=>{let{prefixCls:n,key:o}=t;return r.createElement(ZP,{prefixCls:n,key:o},e)},eM=r.forwardRef(((e,t)=>{const{top:n,prefixCls:o,getContainer:i,maxCount:a,duration:l=QP,rtl:s,transitionName:u,onAllRemoved:d}=e,{getPrefixCls:p,getPopupContainer:h,message:g,direction:v}=r.useContext(f),m=o||p("message"),y=r.createElement("span",{className:"".concat(m,"-close-x")},r.createElement(dC,{className:"".concat(m,"-close-icon")})),[b,x]=WP({prefixCls:m,style:()=>({left:"50%",transform:"translateX(-50%)",top:null!==n&&void 0!==n?n:8}),className:()=>c()({["".concat(m,"-rtl")]:null!==s&&void 0!==s?s:"rtl"===v}),motion:()=>function(e,t){return{motionName:null!==t&&void 0!==t?t:"".concat(e,"-move-up")}}(m,u),closable:!1,closeIcon:y,duration:l,getContainer:()=>(null===i||void 0===i?void 0:i())||(null===h||void 0===h?void 0:h())||document.body,maxCount:a,onAllRemoved:d,renderNotifications:JP});return r.useImperativeHandle(t,(()=>Object.assign(Object.assign({},b),{prefixCls:m,message:g}))),x}));let tM=0;function nM(e){const t=r.useRef(null),n=(Vm("Message"),r.useMemo((()=>{const e=e=>{var n;null===(n=t.current)||void 0===n||n.close(e)},n=n=>{if(!t.current){const e=()=>{};return e.then=()=>{},e}const{open:o,prefixCls:i,message:a}=t.current,l="".concat(i,"-notice"),{content:s,icon:u,type:d,key:f,className:p,style:h,onClose:g}=n,v=$P(n,["content","icon","type","key","className","style","onClose"]);let m=f;return void 0!==m&&null!==m||(tM+=1,m="antd-message-".concat(tM)),KP((t=>(o(Object.assign(Object.assign({},v),{key:m,content:r.createElement(XP,{prefixCls:i,type:d,icon:u},s),placement:"top",className:c()(d&&"".concat(l,"-").concat(d),p,null===a||void 0===a?void 0:a.className),style:Object.assign(Object.assign({},null===a||void 0===a?void 0:a.style),h),onClose:()=>{null===g||void 0===g||g(),t()}})),()=>{e(m)})))},o={open:n,destroy:n=>{var r;void 0!==n?e(n):null===(r=t.current)||void 0===r||r.destroy()}};return["info","success","warning","error","loading"].forEach((e=>{o[e]=(t,r,o)=>{let i,a,l;i=t&&"object"===typeof t&&"content"in t?t:{content:t},"function"===typeof r?l=r:(a=r,l=o);const c=Object.assign(Object.assign({onClose:l,duration:a},i),{type:e});return n(c)}})),o}),[]));return[n,r.createElement(eM,Object.assign({key:"message-holder"},e,{ref:t}))]}let rM=null,oM=e=>e(),iM=[],aM={};function lM(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:o}=aM,i=(null===e||void 0===e?void 0:e())||document.body;return{getContainer:()=>i,duration:t,rtl:n,maxCount:r,top:o}}const cM=r.forwardRef(((e,t)=>{const{messageConfig:n,sync:o}=e,{getPrefixCls:i}=(0,r.useContext)(f),a=aM.prefixCls||i("message"),l=(0,r.useContext)(kP),[c,s]=nM(Object.assign(Object.assign(Object.assign({},n),{prefixCls:a}),l.message));return r.useImperativeHandle(t,(()=>{const e=Object.assign({},c);return Object.keys(e).forEach((t=>{e[t]=function(){return o(),c[t].apply(c,arguments)}})),{instance:e,sync:o}})),s})),sM=r.forwardRef(((e,t)=>{const[n,o]=r.useState(lM),i=()=>{o(lM)};r.useEffect(i,[]);const a=a_(),l=a.getRootPrefixCls(),c=a.getIconPrefixCls(),s=a.getTheme(),u=r.createElement(cM,{ref:t,sync:i,messageConfig:n});return r.createElement(s_,{prefixCls:l,iconPrefixCls:c,theme:s},a.holderRender?a.holderRender(u):u)}));function uM(){if(!rM){const e=document.createDocumentFragment(),t={fragment:e};return rM=t,void oM((()=>{Af(r.createElement(sM,{ref:e=>{const{instance:n,sync:r}=e||{};Promise.resolve().then((()=>{!t.instance&&n&&(t.instance=n,t.sync=r,uM())}))}}),e)}))}rM.instance&&(iM.forEach((e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":oM((()=>{const t=rM.instance.open(Object.assign(Object.assign({},aM),e.config));null===t||void 0===t||t.then(e.resolve),e.setCloseFn(t)}));break;case"destroy":oM((()=>{null===rM||void 0===rM||rM.instance.destroy(e.key)}));break;default:oM((()=>{var n;const r=(n=rM.instance)[t].apply(n,Ds(e.args));null===r||void 0===r||r.then(e.resolve),e.setCloseFn(r)}))}})),iM=[])}const dM={open:function(e){const t=KP((t=>{let n;const r={type:"open",config:e,resolve:t,setCloseFn:e=>{n=e}};return iM.push(r),()=>{n?oM((()=>{n()})):r.skipped=!0}}));return uM(),t},destroy:e=>{iM.push({type:"destroy",key:e}),uM()},config:function(e){aM=Object.assign(Object.assign({},aM),e),oM((()=>{var e;null===(e=null===rM||void 0===rM?void 0:rM.sync)||void 0===e||e.call(rM)}))},useMessage:function(e){return nM(e)},_InternalPanelDoNotUseOrYouWillBeFired:qP};["success","info","warning","error","loading"].forEach((e=>{dM[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(e,t){a_();const n=KP((n=>{let r;const o={type:e,args:t,resolve:n,setCloseFn:e=>{r=e}};return iM.push(o),()=>{r?oM((()=>{r()})):o.skipped=!0}}));return uM(),n}(e,n)}}));const fM=dM;var pM=r.createContext(null),hM=r.createContext({});const gM=pM;var vM=["prefixCls","className","containerRef"];const mM=function(e){var t=e.prefixCls,n=e.className,o=e.containerRef,i=g(e,vM),a=Hi(r.useContext(hM).panel,o);return r.createElement("div",h({className:c()("".concat(t,"-content"),n),role:"dialog",ref:a},GC(e,{aria:!0}),{"aria-modal":"true"},i))};function yM(e){return"string"===typeof e&&String(Number(e))===e?(U(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(e)):e}var bM={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function xM(e,t){var n,o,i,a=e.prefixCls,l=e.open,s=e.placement,u=e.inline,d=e.push,f=e.forceRender,p=e.autoFocus,g=e.keyboard,v=e.classNames,m=e.rootClassName,y=e.rootStyle,b=e.zIndex,x=e.className,S=e.id,_=e.style,C=e.motion,E=e.width,P=e.height,M=e.children,k=e.mask,A=e.maskClosable,I=e.maskMotion,T=e.maskClassName,j=e.maskStyle,L=e.afterOpenChange,R=e.onClose,D=e.onMouseEnter,N=e.onMouseOver,F=e.onMouseLeave,B=e.onClick,z=e.onKeyDown,H=e.onKeyUp,W=e.styles,V=e.drawerRender,G=r.useRef(),Y=r.useRef(),U=r.useRef();r.useImperativeHandle(t,(function(){return G.current}));r.useEffect((function(){var e;l&&p&&(null===(e=G.current)||void 0===e||e.focus({preventScroll:!0}))}),[l]);var X=gt(r.useState(!1),2),q=X[0],K=X[1],$=r.useContext(gM),Q=null!==(n=null!==(o=null===(i="boolean"===typeof d?d?{}:{distance:0}:d||{})||void 0===i?void 0:i.distance)&&void 0!==o?o:null===$||void 0===$?void 0:$.pushDistance)&&void 0!==n?n:180,Z=r.useMemo((function(){return{pushDistance:Q,push:function(){K(!0)},pull:function(){K(!1)}}}),[Q]);r.useEffect((function(){var e,t;l?null===$||void 0===$||null===(e=$.push)||void 0===e||e.call($):null===$||void 0===$||null===(t=$.pull)||void 0===t||t.call($)}),[l]),r.useEffect((function(){return function(){var e;null===$||void 0===$||null===(e=$.pull)||void 0===e||e.call($)}}),[]);var J=k&&r.createElement(zv,h({key:"mask"},I,{visible:l}),(function(e,t){var n=e.className,o=e.style;return r.createElement("div",{className:c()("".concat(a,"-mask"),n,null===v||void 0===v?void 0:v.mask,T),style:O(O(O({},o),j),null===W||void 0===W?void 0:W.mask),onClick:A&&l?R:void 0,ref:t})})),ee="function"===typeof C?C(s):C,te={};if(q&&Q)switch(s){case"top":te.transform="translateY(".concat(Q,"px)");break;case"bottom":te.transform="translateY(".concat(-Q,"px)");break;case"left":te.transform="translateX(".concat(Q,"px)");break;default:te.transform="translateX(".concat(-Q,"px)")}"left"===s||"right"===s?te.width=yM(E):te.height=yM(P);var ne={onMouseEnter:D,onMouseOver:N,onMouseLeave:F,onClick:B,onKeyDown:z,onKeyUp:H},re=r.createElement(zv,h({key:"panel"},ee,{visible:l,forceRender:f,onVisibleChanged:function(e){null===L||void 0===L||L(e)},removeOnLeave:!1,leavedClassName:"".concat(a,"-content-wrapper-hidden")}),(function(t,n){var o=t.className,i=t.style,l=r.createElement(mM,h({id:S,containerRef:n,prefixCls:a,className:c()(x,null===v||void 0===v?void 0:v.content),style:O(O({},_),null===W||void 0===W?void 0:W.content)},GC(e,{aria:!0}),ne),M);return r.createElement("div",h({className:c()("".concat(a,"-content-wrapper"),null===v||void 0===v?void 0:v.wrapper,o),style:O(O(O({},te),i),null===W||void 0===W?void 0:W.wrapper)},GC(e,{data:!0})),V?V(l):l)})),oe=O({},y);return b&&(oe.zIndex=b),r.createElement(gM.Provider,{value:Z},r.createElement("div",{className:c()(a,"".concat(a,"-").concat(s),m,w(w({},"".concat(a,"-open"),l),"".concat(a,"-inline"),u)),style:oe,tabIndex:-1,ref:G,onKeyDown:function(e){var t=e.keyCode,n=e.shiftKey;switch(t){case BC.TAB:var r;if(t===BC.TAB)if(n||document.activeElement!==U.current){if(n&&document.activeElement===Y.current){var o;null===(o=U.current)||void 0===o||o.focus({preventScroll:!0})}}else null===(r=Y.current)||void 0===r||r.focus({preventScroll:!0});break;case BC.ESC:R&&g&&(e.stopPropagation(),R(e))}}},J,r.createElement("div",{tabIndex:0,ref:Y,style:bM,"aria-hidden":"true","data-sentinel":"start"}),re,r.createElement("div",{tabIndex:0,ref:U,style:bM,"aria-hidden":"true","data-sentinel":"end"})))}const wM=r.forwardRef(xM);const SM=function(e){var t=e.open,n=void 0!==t&&t,o=e.prefixCls,i=void 0===o?"rc-drawer":o,a=e.placement,l=void 0===a?"right":a,c=e.autoFocus,s=void 0===c||c,u=e.keyboard,d=void 0===u||u,f=e.width,p=void 0===f?378:f,h=e.mask,g=void 0===h||h,v=e.maskClosable,m=void 0===v||v,y=e.getContainer,b=e.forceRender,x=e.afterOpenChange,w=e.destroyOnClose,S=e.onMouseEnter,_=e.onMouseOver,C=e.onMouseLeave,E=e.onClick,P=e.onKeyDown,M=e.onKeyUp,k=e.panelRef,A=gt(r.useState(!1),2),I=A[0],T=A[1];var j=gt(r.useState(!1),2),L=j[0],R=j[1];Cn((function(){R(!0)}),[]);var D=!!L&&n,N=r.useRef(),F=r.useRef();Cn((function(){D&&(F.current=document.activeElement)}),[D]);var B=r.useMemo((function(){return{panel:k}}),[k]);if(!b&&!I&&!D&&w)return null;var z={onMouseEnter:S,onMouseOver:_,onMouseLeave:C,onClick:E,onKeyDown:P,onKeyUp:M},H=O(O({},e),{},{open:D,prefixCls:i,placement:l,autoFocus:s,keyboard:d,width:p,mask:g,maskClosable:m,inline:!1===y,afterOpenChange:function(e){var t,n;(T(e),null===x||void 0===x||x(e),e||!F.current||null!==(t=N.current)&&void 0!==t&&t.contains(F.current))||(null===(n=F.current)||void 0===n||n.focus({preventScroll:!0}))},ref:N},z);return r.createElement(hM.Provider,{value:B},r.createElement(Yg,{open:D||b||I,autoDestroy:!1,getContainer:y,autoLock:g&&(D||I)},r.createElement(wM,H)))},OM=SM,_M=e=>{var t,n;const{prefixCls:o,title:i,footer:a,extra:l,loading:s,onClose:u,headerStyle:d,bodyStyle:p,footerStyle:h,children:g,classNames:v,styles:m}=e,{drawer:y}=r.useContext(f),b=r.useCallback((e=>r.createElement("button",{type:"button",onClick:u,"aria-label":"Close",className:"".concat(o,"-close")},e)),[u]),[x,w]=cE(oE(e),oE(y),{closable:!0,closeIconRender:b}),S=r.useMemo((()=>{var e,t;return i||x?r.createElement("div",{style:Object.assign(Object.assign(Object.assign({},null===(e=null===y||void 0===y?void 0:y.styles)||void 0===e?void 0:e.header),d),null===m||void 0===m?void 0:m.header),className:c()("".concat(o,"-header"),{["".concat(o,"-header-close-only")]:x&&!i&&!l},null===(t=null===y||void 0===y?void 0:y.classNames)||void 0===t?void 0:t.header,null===v||void 0===v?void 0:v.header)},r.createElement("div",{className:"".concat(o,"-header-title")},w,i&&r.createElement("div",{className:"".concat(o,"-title")},i)),l&&r.createElement("div",{className:"".concat(o,"-extra")},l)):null}),[x,w,l,d,o,i]),O=r.useMemo((()=>{var e,t;if(!a)return null;const n="".concat(o,"-footer");return r.createElement("div",{className:c()(n,null===(e=null===y||void 0===y?void 0:y.classNames)||void 0===e?void 0:e.footer,null===v||void 0===v?void 0:v.footer),style:Object.assign(Object.assign(Object.assign({},null===(t=null===y||void 0===y?void 0:y.styles)||void 0===t?void 0:t.footer),h),null===m||void 0===m?void 0:m.footer)},a)}),[a,h,o]);return r.createElement(r.Fragment,null,S,r.createElement("div",{className:c()("".concat(o,"-body"),null===v||void 0===v?void 0:v.body,null===(t=null===y||void 0===y?void 0:y.classNames)||void 0===t?void 0:t.body),style:Object.assign(Object.assign(Object.assign({},null===(n=null===y||void 0===y?void 0:y.styles)||void 0===n?void 0:n.body),p),null===m||void 0===m?void 0:m.body)},s?r.createElement(LE,{active:!0,title:!1,paragraph:{rows:5},className:"".concat(o,"-body-skeleton")}):g),O)},CM=e=>{const t="100%";return{left:"translateX(-".concat(t,")"),right:"translateX(".concat(t,")"),top:"translateY(-".concat(t,")"),bottom:"translateY(".concat(t,")")}[e]},EM=(e,t)=>({"&-enter, &-appear":Object.assign(Object.assign({},e),{"&-active":t}),"&-leave":Object.assign(Object.assign({},t),{"&-active":e})}),PM=(e,t)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:"all ".concat(t)}}},EM({opacity:e},{opacity:1})),MM=(e,t)=>[PM(.7,t),EM({transform:CM(e)},{transform:"none"})],kM=e=>{const{componentCls:t,motionDurationSlow:n}=e;return{[t]:{["".concat(t,"-mask-motion")]:PM(0,n),["".concat(t,"-panel-motion")]:["left","right","top","bottom"].reduce(((e,t)=>Object.assign(Object.assign({},e),{["&-".concat(t)]:MM(t,n)})),{})}}},AM=e=>{const{borderRadiusSM:t,componentCls:n,zIndexPopup:r,colorBgMask:o,colorBgElevated:i,motionDurationSlow:a,motionDurationMid:l,paddingXS:c,padding:s,paddingLG:u,fontSizeLG:d,lineHeightLG:f,lineWidth:p,lineType:h,colorSplit:g,marginXS:v,colorIcon:m,colorIconHover:y,colorBgTextHover:b,colorBgTextActive:x,colorText:w,fontWeightStrong:S,footerPaddingBlock:O,footerPaddingInline:_,calc:C}=e,E="".concat(n,"-content-wrapper");return{[n]:{position:"fixed",inset:0,zIndex:r,pointerEvents:"none",color:w,"&-pure":{position:"relative",background:i,display:"flex",flexDirection:"column",["&".concat(n,"-left")]:{boxShadow:e.boxShadowDrawerLeft},["&".concat(n,"-right")]:{boxShadow:e.boxShadowDrawerRight},["&".concat(n,"-top")]:{boxShadow:e.boxShadowDrawerUp},["&".concat(n,"-bottom")]:{boxShadow:e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},["".concat(n,"-mask")]:{position:"absolute",inset:0,zIndex:r,background:o,pointerEvents:"auto"},[E]:{position:"absolute",zIndex:r,maxWidth:"100vw",transition:"all ".concat(a),"&-hidden":{display:"none"}},["&-left > ".concat(E)]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},["&-right > ".concat(E)]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},["&-top > ".concat(E)]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},["&-bottom > ".concat(E)]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},["".concat(n,"-content")]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:i,pointerEvents:"auto"},["".concat(n,"-header")]:{display:"flex",flex:0,alignItems:"center",padding:"".concat(yn(s)," ").concat(yn(u)),fontSize:d,lineHeight:f,borderBottom:"".concat(yn(p)," ").concat(h," ").concat(g),"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},["".concat(n,"-extra")]:{flex:"none"},["".concat(n,"-close")]:Object.assign({display:"inline-flex",width:C(d).add(c).equal(),height:C(d).add(c).equal(),borderRadius:t,justifyContent:"center",alignItems:"center",marginInlineEnd:v,color:m,fontWeight:S,fontSize:d,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:"all ".concat(l),textRendering:"auto","&:hover":{color:y,backgroundColor:b,textDecoration:"none"},"&:active":{backgroundColor:x}},Kr(e)),["".concat(n,"-title")]:{flex:1,margin:0,fontWeight:e.fontWeightStrong,fontSize:d,lineHeight:f},["".concat(n,"-body")]:{flex:1,minWidth:0,minHeight:0,padding:u,overflow:"auto",["".concat(n,"-body-skeleton")]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},["".concat(n,"-footer")]:{flexShrink:0,padding:"".concat(yn(O)," ").concat(yn(_)),borderTop:"".concat(yn(p)," ").concat(h," ").concat(g)},"&-rtl":{direction:"rtl"}}}},IM=Ol("Drawer",(e=>{const t=Ui(e,{});return[AM(t),kM(t)]}),(e=>({zIndexPopup:e.zIndexPopupBase,footerPaddingBlock:e.paddingXS,footerPaddingInline:e.padding})));var TM=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 jM={distance:180},LM=e=>{const{rootClassName:t,width:n,height:o,size:i="default",mask:a=!0,push:l=jM,open:s,afterOpenChange:u,onClose:d,prefixCls:p,getContainer:h,style:g,className:v,visible:m,afterVisibleChange:y,maskStyle:b,drawerStyle:x,contentWrapperStyle:w}=e,S=TM(e,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle"]),{getPopupContainer:O,getPrefixCls:_,direction:C,drawer:E}=r.useContext(f),P=_("drawer",p),[M,k,A]=IM(P),I=void 0===h&&O?()=>O(document.body):h,T=c()({"no-mask":!a,["".concat(P,"-rtl")]:"rtl"===C},t,k,A);const j=r.useMemo((()=>null!==n&&void 0!==n?n:"large"===i?736:378),[n,i]),L=r.useMemo((()=>null!==o&&void 0!==o?o:"large"===i?736:378),[o,i]),R={motionName:km(P,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},D=NE(),[N,F]=_m("Drawer",S.zIndex),{classNames:B={},styles:z={}}=S,{classNames:H={},styles:W={}}=E||{};return M(r.createElement(Xc,{form:!0,space:!0},r.createElement(bm.Provider,{value:F},r.createElement(OM,Object.assign({prefixCls:P,onClose:d,maskMotion:R,motion:e=>({motionName:km(P,"panel-motion-".concat(e)),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500})},S,{classNames:{mask:c()(B.mask,H.mask),content:c()(B.content,H.content),wrapper:c()(B.wrapper,H.wrapper)},styles:{mask:Object.assign(Object.assign(Object.assign({},z.mask),b),W.mask),content:Object.assign(Object.assign(Object.assign({},z.content),x),W.content),wrapper:Object.assign(Object.assign(Object.assign({},z.wrapper),w),W.wrapper)},open:null!==s&&void 0!==s?s:m,mask:a,push:l,width:j,height:L,style:Object.assign(Object.assign({},null===E||void 0===E?void 0:E.style),g),className:c()(null===E||void 0===E?void 0:E.className,v),rootClassName:T,getContainer:I,afterOpenChange:null!==u&&void 0!==u?u:y,panelRef:D,zIndex:N}),r.createElement(_M,Object.assign({prefixCls:P},S,{onClose:d}))))))};LM._InternalPanelDoNotUseOrYouWillBeFired=e=>{const{prefixCls:t,style:n,className:o,placement:i="right"}=e,a=TM(e,["prefixCls","style","className","placement"]),{getPrefixCls:l}=r.useContext(f),s=l("drawer",t),[u,d,p]=IM(s),h=c()(s,"".concat(s,"-pure"),"".concat(s,"-").concat(i),d,p,o);return u(r.createElement("div",{className:h,style:n},r.createElement(_M,Object.assign({prefixCls:s},a))))};const RM=LM;var DM={},NM="rc-table-internal-hook";function FM(e){var t=r.createContext(void 0);return{Context:t,Provider:function(e){var n=e.value,o=e.children,i=r.useRef(n);i.current=n;var a=gt(r.useState((function(){return{getValue:function(){return i.current},listeners:new Set}})),1)[0];return Cn((function(){(0,Nu.unstable_batchedUpdates)((function(){a.listeners.forEach((function(e){e(n)}))}))}),[n]),r.createElement(t.Provider,{value:a},o)},defaultValue:e}}function BM(e,t){var n=Ri("function"===typeof t?t:function(e){if(void 0===t)return e;if(!Array.isArray(t))return e[t];var n={};return t.forEach((function(t){n[t]=e[t]})),n}),o=r.useContext(null===e||void 0===e?void 0:e.Context),i=o||{},a=i.listeners,l=i.getValue,c=r.useRef();c.current=n(o?l():null===e||void 0===e?void 0:e.defaultValue);var s=gt(r.useState({}),2)[1];return Cn((function(){if(o)return a.add(e),function(){a.delete(e)};function e(e){var t=n(e);X(c.current,t,!0)||s({})}}),[o]),c.current}function zM(){var e=r.createContext(null);function t(){return r.useContext(e)}return{makeImmutable:function(n,o){var i=Wi(n),a=function(a,l){var c=i?{ref:l}:{},s=r.useRef(0),u=r.useRef(a);return null!==t()?r.createElement(n,h({},a,c)):(o&&!o(u.current,a)||(s.current+=1),u.current=a,r.createElement(e.Provider,{value:s.current},r.createElement(n,h({},a,c))))};return i?r.forwardRef(a):a},responseImmutable:function(e,n){var o=Wi(e),i=function(n,i){var a=o?{ref:i}:{};return t(),r.createElement(e,h({},n,a))};return o?r.memo(r.forwardRef(i),n):r.memo(i,n)},useImmutableMark:t}}var HM=zM(),WM=(HM.makeImmutable,HM.responseImmutable,HM.useImmutableMark,zM()),VM=WM.makeImmutable,GM=WM.responseImmutable,YM=WM.useImmutableMark;const UM=FM();function XM(e,t,n){var o=r.useRef({});return"value"in o.current&&!n(o.current.condition,t)||(o.current.value=e(),o.current.condition=t),o.current.value}var qM={},KM=[];function $M(e,t){}function QM(e,t){}function ZM(e,t,n){t||qM[n]||(e(!1,n),qM[n]=!0)}function JM(e,t){ZM($M,e,t)}JM.preMessage=function(e){KM.push(e)},JM.resetWarned=function(){qM={}},JM.noteOnce=function(e,t){ZM(QM,e,t)};const ek=JM;const tk=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(ek(!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 l=i+1;if(Array.isArray(t)){if(!Array.isArray(o)||t.length!==o.length)return!1;for(var c=0;c<t.length;c++)if(!e(t[c],o[c],l))return!1;return!0}if(t&&o&&"object"===v(t)&&"object"===v(o)){var s=Object.keys(t);return s.length===Object.keys(o).length&&s.every((function(n){return e(t[n],o[n],l)}))}return!1}(e,t)};function nk(e,t){for(var n=e,r=0;r<t.length;r+=1){if(null===n||void 0===n)return;n=n[t[r]]}return n}const rk=r.createContext({renderWithProps:!1});var ok="RC_TABLE_KEY";function ik(e){var t=[],n={};return e.forEach((function(e){for(var r,o=e||{},i=o.key,a=o.dataIndex,l=i||(r=a,void 0===r||null===r?[]:Array.isArray(r)?r:[r]).join("-")||ok;n[l];)l="".concat(l,"_next");n[l]=!0,t.push(l)})),t}function ak(e){return null!==e&&void 0!==e}function lk(e,t,n,o,i,a){var l=r.useContext(rk),c=XM((function(){if(ak(o))return[o];var a,c=null===t||void 0===t||""===t?[]:Array.isArray(t)?t:[t],s=nk(e,c),u=s,d=void 0;if(i){var f=i(s,e,n);!(a=f)||"object"!==v(a)||Array.isArray(a)||r.isValidElement(a)?u=f:(u=f.children,d=f.props,l.renderWithProps=!0)}return[u,d]}),[YM(),e,o,t,i,n],(function(e,t){if(a){var n=gt(e,2)[1],r=gt(t,2)[1];return a(r,n)}return!!l.renderWithProps||!tk(e,t,!0)}));return c}function ck(e){var t=r.useRef();t.current=e;var n=r.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}function sk(){return!("undefined"===typeof window||!window.document||!window.document.createElement)}sk()?r.useLayoutEffect:r.useEffect;var uk=function(e,t){"function"===typeof e?e(t):"object"===v(e)&&e&&"current"in e&&(e.current=t)};function dk(e){return(0,r.isValidElement)(e)&&!(0,N.isFragment)(e)}Number(r.version.split(".")[0]);"undefined"===typeof Reflect?Object.keys:Reflect.ownKeys;function fk(e){var t,n,o,i,a,l,s,u;var d=e.component,f=e.children,p=e.ellipsis,g=e.scope,m=e.prefixCls,y=e.className,b=e.align,x=e.record,S=e.render,_=e.dataIndex,C=e.renderIndex,E=e.shouldCellUpdate,P=e.index,M=e.rowType,k=e.colSpan,A=e.rowSpan,I=e.fixLeft,T=e.fixRight,j=e.firstFixLeft,L=e.lastFixLeft,R=e.firstFixRight,D=e.lastFixRight,N=e.appendNode,F=e.additionalProps,B=void 0===F?{}:F,z=e.isSticky,H="".concat(m,"-cell"),W=BM(UM,["supportSticky","allColumnsFixedLeft","rowHoverable"]),V=W.supportSticky,G=W.allColumnsFixedLeft,Y=W.rowHoverable,U=gt(lk(x,_,C,f,S,E),2),X=U[0],q=U[1],K={},$="number"===typeof I&&V,Q="number"===typeof T&&V;$&&(K.position="sticky",K.left=I),Q&&(K.position="sticky",K.right=T);var Z=null!==(t=null!==(n=null!==(o=null===q||void 0===q?void 0:q.colSpan)&&void 0!==o?o:B.colSpan)&&void 0!==n?n:k)&&void 0!==t?t:1,J=null!==(i=null!==(a=null!==(l=null===q||void 0===q?void 0:q.rowSpan)&&void 0!==l?l:B.rowSpan)&&void 0!==a?a:A)&&void 0!==i?i:1,ee=function(e,t){return BM(UM,(function(n){var r,o,i,a;return[(r=e,o=t||1,i=n.hoverStartRow,a=n.hoverEndRow,r<=a&&r+o-1>=i),n.onHover]}))}(P,J),te=gt(ee,2),ne=te[0],re=te[1],oe=ck((function(e){var t;x&&re(P,P+J-1),null===B||void 0===B||null===(t=B.onMouseEnter)||void 0===t||t.call(B,e)})),ie=ck((function(e){var t;x&&re(-1,-1),null===B||void 0===B||null===(t=B.onMouseLeave)||void 0===t||t.call(B,e)}));if(0===Z||0===J)return null;var ae=null!==(s=B.title)&&void 0!==s?s:function(e){var t,n=e.ellipsis,o=e.rowType,i=e.children,a=!0===n?{showTitle:!0}:n;return a&&(a.showTitle||"header"===o)&&("string"===typeof i||"number"===typeof i?t=i.toString():r.isValidElement(i)&&"string"===typeof i.props.children&&(t=i.props.children)),t}({rowType:M,ellipsis:p,children:X}),le=c()(H,y,(w(w(w(w(w(w(w(w(w(w(u={},"".concat(H,"-fix-left"),$&&V),"".concat(H,"-fix-left-first"),j&&V),"".concat(H,"-fix-left-last"),L&&V),"".concat(H,"-fix-left-all"),L&&G&&V),"".concat(H,"-fix-right"),Q&&V),"".concat(H,"-fix-right-first"),R&&V),"".concat(H,"-fix-right-last"),D&&V),"".concat(H,"-ellipsis"),p),"".concat(H,"-with-append"),N),"".concat(H,"-fix-sticky"),($||Q)&&z&&V),w(u,"".concat(H,"-row-hover"),!q&&ne)),B.className,null===q||void 0===q?void 0:q.className),ce={};b&&(ce.textAlign=b);var se=O(O(O(O({},K),B.style),ce),null===q||void 0===q?void 0:q.style),ue=X;return"object"!==v(ue)||Array.isArray(ue)||r.isValidElement(ue)||(ue=null),p&&(L||R)&&(ue=r.createElement("span",{className:"".concat(H,"-content")},ue)),r.createElement(d,h({},q,B,{className:le,style:se,title:ae,scope:g,onMouseEnter:Y?oe:void 0,onMouseLeave:Y?ie:void 0,colSpan:1!==Z?Z:null,rowSpan:1!==J?J:null}),N,ue)}const pk=r.memo(fk);function hk(e,t,n,r,o){var i,a,l=n[e]||{},c=n[t]||{};"left"===l.fixed?i=r.left["rtl"===o?t:e]:"right"===c.fixed&&(a=r.right["rtl"===o?e:t]);var s=!1,u=!1,d=!1,f=!1,p=n[t+1],h=n[e-1],g=p&&!p.fixed||h&&!h.fixed||n.every((function(e){return"left"===e.fixed}));if("rtl"===o){if(void 0!==i)f=!(h&&"left"===h.fixed)&&g;else if(void 0!==a){d=!(p&&"right"===p.fixed)&&g}}else if(void 0!==i){s=!(p&&"left"===p.fixed)&&g}else if(void 0!==a){u=!(h&&"right"===h.fixed)&&g}return{fixLeft:i,fixRight:a,lastFixLeft:s,firstFixRight:u,lastFixRight:d,firstFixLeft:f,isSticky:r.isSticky}}const gk=r.createContext({});var vk=["children"];function mk(e){return e.children}mk.Row=function(e){var t=e.children,n=g(e,vk);return r.createElement("tr",n,t)},mk.Cell=function(e){var t=e.className,n=e.index,o=e.children,i=e.colSpan,a=void 0===i?1:i,l=e.rowSpan,c=e.align,s=BM(UM,["prefixCls","direction"]),u=s.prefixCls,d=s.direction,f=r.useContext(gk),p=f.scrollColumnIndex,g=f.stickyOffsets,v=n+a-1+1===p?a+1:a,m=hk(n,n+v-1,f.flattenColumns,g,d);return r.createElement(pk,h({className:t,index:n,component:"td",prefixCls:u,record:null,dataIndex:null,align:c,colSpan:v,rowSpan:l,render:function(){return o}},m))};const yk=mk;const bk=GM((function(e){var t=e.children,n=e.stickyOffsets,o=e.flattenColumns,i=BM(UM,"prefixCls"),a=o.length-1,l=o[a],c=r.useMemo((function(){return{stickyOffsets:n,flattenColumns:o,scrollColumnIndex:null!==l&&void 0!==l&&l.scrollbar?a:null}}),[l,o,a,n]);return r.createElement(gk.Provider,{value:c},r.createElement("tfoot",{className:"".concat(i,"-summary")},t))}));var xk=yk;var wk=function(e){if(sk()&&window.document.documentElement){var t=Array.isArray(e)?e:[e],n=window.document.documentElement;return t.some((function(e){return e in n.style}))}return!1},Sk=function(e,t){if(!wk(e))return!1;var n=document.createElement("div"),r=n.style[e];return n.style[e]=t,n.style[e]!==r};var Ok,_k="data-rc-order",Ck="data-rc-priority",Ek="rc-util-key",Pk=new Map;function Mk(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).mark;return e?e.startsWith("data-")?e:"data-".concat(e):Ek}function kk(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function Ak(e){return Array.from((Pk.get(e)||e).children).filter((function(e){return"STYLE"===e.tagName}))}function Ik(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!sk())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),l="prependQueue"===a,c=document.createElement("style");c.setAttribute(_k,a),l&&i&&c.setAttribute(Ck,"".concat(i)),null!==n&&void 0!==n&&n.nonce&&(c.nonce=null===n||void 0===n?void 0:n.nonce),c.innerHTML=e;var s=kk(t),u=s.firstChild;if(r){if(l){var d=(t.styles||Ak(s)).filter((function(e){if(!["prepend","prependQueue"].includes(e.getAttribute(_k)))return!1;var t=Number(e.getAttribute(Ck)||0);return i>=t}));if(d.length)return s.insertBefore(c,d[d.length-1].nextSibling),c}s.insertBefore(c,u)}else s.appendChild(c);return c}function Tk(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=kk(t);return(t.styles||Ak(n)).find((function(n){return n.getAttribute(Mk(t))===e}))}function jk(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=kk(n),o=Ak(r),i=O(O({},n),{},{styles:o});!function(e,t){var n=Pk.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=Ik("",t),o=r.parentNode;Pk.set(e,o),e.removeChild(r)}}(r,i);var a=Tk(t,i);if(a){var l,c,s;if(null!==(l=i.csp)&&void 0!==l&&l.nonce&&a.nonce!==(null===(c=i.csp)||void 0===c?void 0:c.nonce))a.nonce=null===(s=i.csp)||void 0===s?void 0:s.nonce;return a.innerHTML!==e&&(a.innerHTML=e),a}var u=Ik(e,i);return u.setAttribute(Mk(i),t),u}function Lk(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 l=getComputedStyle(e,"::-webkit-scrollbar"),c=parseInt(l.width,10),s=parseInt(l.height,10);try{var u=c?"width: ".concat(l.width,";"):"",d=s?"height: ".concat(l.height,";"):"";jk("\n#".concat(t,"::-webkit-scrollbar {\n").concat(u,"\n").concat(d,"\n}"),t)}catch(N1){console.error(N1),r=c,o=s}}document.body.appendChild(n);var f=e&&r&&!isNaN(r)?r:n.offsetWidth-n.clientWidth,p=e&&o&&!isNaN(o)?o:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Tk(e,t);n&&kk(t).removeChild(n)}(t),{width:f,height:p}}function Rk(e){return"undefined"===typeof document?0:((e||void 0===Ok)&&(Ok=Lk()),Ok.width)}function Dk(e){return"undefined"!==typeof document&&e&&e instanceof Element?Lk(e):{width:0,height:0}}var Nk="".concat("accept acceptCharset accessKey action allowFullScreen allowTransparency\n    alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\n    charSet checked classID className colSpan cols content contentEditable contextMenu\n    controls coords crossOrigin data dateTime default defer dir disabled download draggable\n    encType form formAction formEncType formMethod formNoValidate formTarget frameBorder\n    headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\n    is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\n    mediaGroup method min minLength multiple muted name noValidate nonce open\n    optimum pattern placeholder poster preload radioGroup readOnly rel required\n    reversed role rowSpan rows sandbox scope scoped scrolling seamless selected\n    shape size sizes span spellCheck src srcDoc srcLang srcSet start step style\n    summary tabIndex target title type useMap value width wmode wrap"," ").concat("onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\n    onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\n    onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\n    onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\n    onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\n    onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\n    onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError").split(/[\s\n]+/),Fk="aria-",Bk="data-";function zk(e,t){return 0===e.indexOf(t)}function Hk(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t=!1===n?{aria:!0,data:!0,attr:!0}:!0===n?{aria:!0}:O({},n);var r={};return Object.keys(e).forEach((function(n){(t.aria&&("role"===n||zk(n,Fk))||t.data&&zk(n,Bk)||t.attr&&Nk.includes(n))&&(r[n]=e[n])})),r}function Wk(e,t,n,r,o,i,a){e.push({record:t,indent:n,index:a});var l=i(t),c=null===o||void 0===o?void 0:o.has(l);if(t&&Array.isArray(t[r])&&c)for(var s=0;s<t[r].length;s+=1)Wk(e,t[r][s],n+1,r,o,i,s)}function Vk(e,t,n,o){var i=r.useMemo((function(){if(null!==n&&void 0!==n&&n.size){for(var r=[],i=0;i<(null===e||void 0===e?void 0:e.length);i+=1){Wk(r,e[i],0,t,n,o,i)}return r}return null===e||void 0===e?void 0:e.map((function(e,t){return{record:e,indent:0,index:t}}))}),[e,t,n,o]);return i}function Gk(e,t,n,r){var o,i=BM(UM,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),a=i.flattenColumns,l=i.expandableType,s=i.expandedKeys,u=i.childrenColumnName,d=i.onTriggerExpand,f=i.rowExpandable,p=i.onRow,h=i.expandRowByClick,g=i.rowClassName,v="nest"===l,m="row"===l&&(!f||f(e)),y=m||v,b=s&&s.has(t),x=u&&e&&e[u],w=ck(d),S=null===p||void 0===p?void 0:p(e,n),_=null===S||void 0===S?void 0:S.onClick;"string"===typeof g?o=g:"function"===typeof g&&(o=g(e,n,r));var C=ik(a);return O(O({},i),{},{columnsKey:C,nestExpandable:v,expanded:b,hasNestChildren:x,record:e,onTriggerExpand:w,rowSupportExpand:m,expandable:y,rowProps:O(O({},S),{},{className:c()(o,null===S||void 0===S?void 0:S.className),onClick:function(t){h&&y&&d(e,t);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];null===_||void 0===_||_.apply(void 0,[t].concat(r))}})})}const Yk=function(e){var t=e.prefixCls,n=e.children,o=e.component,i=e.cellComponent,a=e.className,l=e.expanded,c=e.colSpan,s=e.isEmpty,u=BM(UM,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),d=u.scrollbarSize,f=u.fixHeader,p=u.fixColumn,h=u.componentWidth,g=u.horizonScroll,v=n;return(s?g&&h:p)&&(v=r.createElement("div",{style:{width:h-(f&&!s?d:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(t,"-expanded-row-fixed")},v)),r.createElement(o,{className:a,style:{display:l?null:"none"}},r.createElement(pk,{component:i,prefixCls:t,colSpan:c},v))};function Uk(e,t,n,o,i){var a,l,c=e.record,s=e.prefixCls,u=e.columnsKey,d=e.fixedInfoList,f=e.expandIconColumnIndex,p=e.nestExpandable,h=e.indentSize,g=e.expandIcon,v=e.expanded,m=e.hasNestChildren,y=e.onTriggerExpand,b=u[n],x=d[n];return n===(f||0)&&p&&(a=r.createElement(r.Fragment,null,r.createElement("span",{style:{paddingLeft:"".concat(h*o,"px")},className:"".concat(s,"-row-indent indent-level-").concat(o)}),g({prefixCls:s,expanded:v,expandable:m,record:c,onExpand:y}))),t.onCell&&(l=t.onCell(c,i)),{key:b,fixedInfo:x,appendCellNode:a,additionalCellProps:l||{}}}const Xk=GM((function(e){var t=e.className,n=e.style,o=e.record,i=e.index,a=e.renderIndex,l=e.rowKey,s=e.indent,u=void 0===s?0:s,d=e.rowComponent,f=e.cellComponent,p=e.scopeCellComponent,g=Gk(o,l,i,u),v=g.prefixCls,m=g.flattenColumns,y=g.expandedRowClassName,b=g.expandedRowRender,x=g.rowProps,w=g.expanded,S=g.rowSupportExpand,_=r.useRef(!1);_.current||(_.current=w);var C,E=y&&y(o,i,u),P=r.createElement(d,h({},x,{"data-row-key":l,className:c()(t,"".concat(v,"-row"),"".concat(v,"-row-level-").concat(u),null===x||void 0===x?void 0:x.className,u>=1?E:""),style:O(O({},n),null===x||void 0===x?void 0:x.style)}),m.map((function(e,t){var n=e.render,l=e.dataIndex,c=e.className,s=Uk(g,e,t,u,i),d=s.key,m=s.fixedInfo,y=s.appendCellNode,b=s.additionalCellProps;return r.createElement(pk,h({className:c,ellipsis:e.ellipsis,align:e.align,scope:e.rowScope,component:e.rowScope?p:f,prefixCls:v,key:d,record:o,index:i,renderIndex:a,dataIndex:l,render:n,shouldCellUpdate:e.shouldCellUpdate},m,{appendNode:y,additionalProps:b}))})));if(S&&(_.current||w)){var M=b(o,i,u+1,w);C=r.createElement(Yk,{expanded:w,className:c()("".concat(v,"-expanded-row"),"".concat(v,"-expanded-row-level-").concat(u+1),E),prefixCls:v,component:d,cellComponent:f,colSpan:m.length,isEmpty:!1},M)}return r.createElement(r.Fragment,null,P,C)}));function qk(e){var t=e.columnKey,n=e.onColumnResize,o=r.useRef();return r.useEffect((function(){o.current&&n(t,o.current.offsetWidth)}),[]),r.createElement(qh,{data:t},r.createElement("td",{ref:o,style:{padding:0,border:0,height:0}},r.createElement("div",{style:{height:0,overflow:"hidden"}},"\xa0")))}function Kk(e){var t=e.prefixCls,n=e.columnsKey,o=e.onColumnResize;return r.createElement("tr",{"aria-hidden":"true",className:"".concat(t,"-measure-row"),style:{height:0,fontSize:0}},r.createElement(qh.Collection,{onBatchResize:function(e){e.forEach((function(e){var t=e.data,n=e.size;o(t,n.offsetWidth)}))}},n.map((function(e){return r.createElement(qk,{key:e,columnKey:e,onColumnResize:o})}))))}const $k=GM((function(e){var t,n=e.data,o=e.measureColumnWidth,i=BM(UM,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),a=i.prefixCls,l=i.getComponent,c=i.onColumnResize,s=i.flattenColumns,u=i.getRowKey,d=i.expandedKeys,f=i.childrenColumnName,p=i.emptyNode,h=Vk(n,f,d,u),g=r.useRef({renderWithProps:!1}),v=l(["body","wrapper"],"tbody"),m=l(["body","row"],"tr"),y=l(["body","cell"],"td"),b=l(["body","cell"],"th");t=n.length?h.map((function(e,t){var n=e.record,o=e.indent,i=e.index,a=u(n,t);return r.createElement(Xk,{key:a,rowKey:a,record:n,index:t,renderIndex:i,rowComponent:m,cellComponent:y,scopeCellComponent:b,getRowKey:u,indent:o})})):r.createElement(Yk,{expanded:!0,className:"".concat(a,"-placeholder"),prefixCls:a,component:m,cellComponent:y,colSpan:s.length,isEmpty:!0},p);var x=ik(s);return r.createElement(rk.Provider,{value:g.current},r.createElement(v,{className:"".concat(a,"-tbody")},o&&r.createElement(Kk,{prefixCls:a,columnsKey:x,onColumnResize:c}),t))}));var Qk=["expandable"],Zk="RC_TABLE_INTERNAL_COL_DEFINE";var Jk=["columnType"];const eA=function(e){for(var t=e.colWidths,n=e.columns,o=e.columCount,i=BM(UM,["tableLayout"]).tableLayout,a=[],l=!1,c=(o||n.length)-1;c>=0;c-=1){var s=t[c],u=n&&n[c],d=void 0,f=void 0;if(u&&(d=u[Zk],"auto"===i&&(f=u.minWidth)),s||f||d||l){var p=d||{},v=(p.columnType,g(p,Jk));a.unshift(r.createElement("col",h({key:c,style:{width:s,minWidth:f}},v))),l=!0}}return r.createElement("colgroup",null,a)};var tA=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];var nA=r.forwardRef((function(e,t){var n=e.className,o=e.noData,i=e.columns,a=e.flattenColumns,l=e.colWidths,s=e.columCount,u=e.stickyOffsets,d=e.direction,f=e.fixHeader,p=e.stickyTopOffset,h=e.stickyBottomOffset,v=e.stickyClassName,m=e.onScroll,y=e.maxContentScroll,b=e.children,x=g(e,tA),S=BM(UM,["prefixCls","scrollbarSize","isSticky","getComponent"]),_=S.prefixCls,C=S.scrollbarSize,E=S.isSticky,M=(0,S.getComponent)(["header","table"],"table"),k=E&&!f?0:C,A=r.useRef(null),I=r.useCallback((function(e){uk(t,e),uk(A,e)}),[]);r.useEffect((function(){var e;function t(e){var t=e,n=t.currentTarget,r=t.deltaX;r&&(m({currentTarget:n,scrollLeft:n.scrollLeft+r}),e.preventDefault())}return null===(e=A.current)||void 0===e||e.addEventListener("wheel",t,{passive:!1}),function(){var e;null===(e=A.current)||void 0===e||e.removeEventListener("wheel",t)}}),[]);var T=r.useMemo((function(){return a.every((function(e){return e.width}))}),[a]),j=a[a.length-1],L={fixed:j?j.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(_,"-cell-scrollbar")}}},R=(0,r.useMemo)((function(){return k?[].concat(P(i),[L]):i}),[k,i]),D=(0,r.useMemo)((function(){return k?[].concat(P(a),[L]):a}),[k,a]),N=(0,r.useMemo)((function(){var e=u.right,t=u.left;return O(O({},u),{},{left:"rtl"===d?[].concat(P(t.map((function(e){return e+k}))),[0]):t,right:"rtl"===d?e:[].concat(P(e.map((function(e){return e+k}))),[0]),isSticky:E})}),[k,u,E]),F=function(e,t){return(0,r.useMemo)((function(){for(var n=[],r=0;r<t;r+=1){var o=e[r];if(void 0===o)return null;n[r]=o}return n}),[e.join("_"),t])}(l,s);return r.createElement("div",{style:O({overflow:"hidden"},E?{top:p,bottom:h}:{}),ref:I,className:c()(n,w({},v,!!v))},r.createElement(M,{style:{tableLayout:"fixed",visibility:o||F?null:"hidden"}},(!o||!y||T)&&r.createElement(eA,{colWidths:F?[].concat(P(F),[k]):[],columCount:s+1,columns:D}),b(O(O({},x),{},{stickyOffsets:N,columns:R,flattenColumns:D}))))}));const rA=r.memo(nA);const oA=function(e){var t,n=e.cells,o=e.stickyOffsets,i=e.flattenColumns,a=e.rowComponent,l=e.cellComponent,c=e.onHeaderRow,s=e.index,u=BM(UM,["prefixCls","direction"]),d=u.prefixCls,f=u.direction;c&&(t=c(n.map((function(e){return e.column})),s));var p=ik(n.map((function(e){return e.column})));return r.createElement(a,t,n.map((function(e,t){var n,a=e.column,c=hk(e.colStart,e.colEnd,i,o,f);return a&&a.onHeaderCell&&(n=e.column.onHeaderCell(a)),r.createElement(pk,h({},e,{scope:a.title?e.colSpan>1?"colgroup":"col":null,ellipsis:a.ellipsis,align:a.align,component:l,prefixCls:d,key:p[t]},c,{additionalProps:n,rowType:"header"}))})))};const iA=GM((function(e){var t=e.stickyOffsets,n=e.columns,o=e.flattenColumns,i=e.onHeaderRow,a=BM(UM,["prefixCls","getComponent"]),l=a.prefixCls,c=a.getComponent,s=r.useMemo((function(){return function(e){var t=[];!function e(n,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;t[o]=t[o]||[];var i=r,a=n.filter(Boolean).map((function(n){var r={key:n.key,className:n.className||"",children:n.title,column:n,colStart:i},a=1,l=n.children;return l&&l.length>0&&(a=e(l,i,o+1).reduce((function(e,t){return e+t}),0),r.hasSubColumns=!0),"colSpan"in n&&(a=n.colSpan),"rowSpan"in n&&(r.rowSpan=n.rowSpan),r.colSpan=a,r.colEnd=r.colStart+a-1,t[o].push(r),i+=a,a}));return a}(e,0);for(var n=t.length,r=function(e){t[e].forEach((function(t){"rowSpan"in t||t.hasSubColumns||(t.rowSpan=n-e)}))},o=0;o<n;o+=1)r(o);return t}(n)}),[n]),u=c(["header","wrapper"],"thead"),d=c(["header","row"],"tr"),f=c(["header","cell"],"th");return r.createElement(u,{className:"".concat(l,"-thead")},s.map((function(e,n){return r.createElement(oA,{key:n,flattenColumns:o,cells:e,stickyOffsets:t,rowComponent:d,cellComponent:f,onHeaderRow:i,index:n})})))}));function aA(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];return r.Children.forEach(e,(function(e){(void 0!==e&&null!==e||t.keepEmpty)&&(Array.isArray(e)?n=n.concat(aA(e)):(0,N.isFragment)(e)&&e.props?n=n.concat(aA(e.props.children,t)):n.push(e))})),n}function lA(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"number"===typeof t?t:t.endsWith("%")?e*parseFloat(t)/100:null}var cA=["children"],sA=["fixed"];function uA(e){return aA(e).filter((function(e){return r.isValidElement(e)})).map((function(e){var t=e.key,n=e.props,r=n.children,o=O({key:t},g(n,cA));return r&&(o.children=uA(r)),o}))}function dA(e){return e.filter((function(e){return e&&"object"===v(e)&&!e.hidden})).map((function(e){var t=e.children;return t&&t.length>0?O(O({},e),{},{children:dA(t)}):e}))}function fA(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"key";return e.filter((function(e){return e&&"object"===v(e)})).reduce((function(e,n,r){var o=n.fixed,i=!0===o?"left":o,a="".concat(t,"-").concat(r),l=n.children;return l&&l.length>0?[].concat(P(e),P(fA(l,a).map((function(e){return O({fixed:i},e)})))):[].concat(P(e),[O(O({key:a},n),{},{fixed:i})])}),[])}const pA=function(e,t){var n=e.prefixCls,o=e.columns,i=e.children,a=e.expandable,l=e.expandedKeys,c=e.columnTitle,s=e.getRowKey,u=e.onTriggerExpand,d=e.expandIcon,f=e.rowExpandable,p=e.expandIconColumnIndex,h=e.direction,v=e.expandRowByClick,m=e.columnWidth,y=e.fixed,b=e.scrollWidth,x=e.clientWidth,S=r.useMemo((function(){return dA((o||uA(i)||[]).slice())}),[o,i]),_=r.useMemo((function(){if(a){var e=S.slice();if(!e.includes(DM)){var t=p||0;t>=0&&e.splice(t,0,DM)}0;var o=e.indexOf(DM);e=e.filter((function(e,t){return e!==DM||t===o}));var i,h=S[o];i="left"!==y&&!y||p?"right"!==y&&!y||p!==S.length?h?h.fixed:null:"right":"left";var g=w(w(w(w(w(w({},Zk,{className:"".concat(n,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",c),"fixed",i),"className","".concat(n,"-row-expand-icon-cell")),"width",m),"render",(function(e,t,o){var i=s(t,o),a=l.has(i),c=!f||f(t),p=d({prefixCls:n,expanded:a,expandable:c,record:t,onExpand:u});return v?r.createElement("span",{onClick:function(e){return e.stopPropagation()}},p):p}));return e.map((function(e){return e===DM?g:e}))}return S.filter((function(e){return e!==DM}))}),[a,S,s,l,d,h]),C=r.useMemo((function(){var e=_;return t&&(e=t(e)),e.length||(e=[{render:function(){return null}}]),e}),[t,_,h]),E=r.useMemo((function(){return"rtl"===h?function(e){return e.map((function(e){var t=e.fixed,n=t;return"left"===t?n="right":"right"===t&&(n="left"),O({fixed:n},g(e,sA))}))}(fA(C)):fA(C)}),[C,h,b]),P=r.useMemo((function(){for(var e=-1,t=E.length-1;t>=0;t-=1){var n=E[t].fixed;if("left"===n||!0===n){e=t;break}}if(e>=0)for(var r=0;r<=e;r+=1){var o=E[r].fixed;if("left"!==o&&!0!==o)return!0}var i=E.findIndex((function(e){return"right"===e.fixed}));if(i>=0)for(var a=i;a<E.length;a+=1){if("right"!==E[a].fixed)return!0}return!1}),[E]),M=function(e,t,n){return r.useMemo((function(){if(t&&t>0){var r=0,o=0;e.forEach((function(e){var n=lA(t,e.width);n?r+=n:o+=1}));var i=Math.max(t,n),a=Math.max(i-r,o),l=o,c=a/o,s=0,u=e.map((function(e){var n=O({},e),r=lA(t,n.width);if(r)n.width=r;else{var o=Math.floor(c);n.width=1===l?a:o,a-=o,l-=1}return s+=n.width,n}));if(s<i){var d=i/s;a=i,u.forEach((function(e,t){var n=Math.floor(e.width*d);e.width=t===u.length-1?a:n,a-=n}))}return[u,Math.max(s,i)]}return[e,t]}),[e,t,n])}(E,b,x),k=gt(M,2),A=k[0],I=k[1];return[C,A,I,P]};function hA(e){var t=e.prefixCls,n=e.record,o=e.onExpand,i=e.expanded,a=e.expandable,l="".concat(t,"-row-expand-icon");if(!a)return r.createElement("span",{className:c()(l,"".concat(t,"-row-spaced"))});return r.createElement("span",{className:c()(l,w(w({},"".concat(t,"-row-expanded"),i),"".concat(t,"-row-collapsed"),!i)),onClick:function(e){o(n,e),e.stopPropagation()}})}function gA(e,t,n){var o=function(e){var t,n=e.expandable,r=g(e,Qk);return!1===(t="expandable"in e?O(O({},r),n):r).showExpandColumn&&(t.expandIconColumnIndex=-1),t}(e),i=o.expandIcon,a=o.expandedRowKeys,l=o.defaultExpandedRowKeys,c=o.defaultExpandAllRows,s=o.expandedRowRender,u=o.onExpand,d=o.onExpandedRowsChange,f=i||hA,p=o.childrenColumnName||"children",h=r.useMemo((function(){return s?"row":!!(e.expandable&&e.internalHooks===NM&&e.expandable.__PARENT_RENDER_ICON__||t.some((function(e){return e&&"object"===v(e)&&e[p]})))&&"nest"}),[!!s,t]),m=r.useState((function(){return l||(c?function(e,t,n){var r=[];return function e(o){(o||[]).forEach((function(o,i){r.push(t(o,i)),e(o[n])}))}(e),r}(t,n,p):[])})),y=gt(m,2),b=y[0],x=y[1],w=r.useMemo((function(){return new Set(a||b||[])}),[a,b]),S=r.useCallback((function(e){var r,o=n(e,t.indexOf(e)),i=w.has(o);i?(w.delete(o),r=P(w)):r=[].concat(P(w),[o]),x(r),u&&u(!i,e),d&&d(r)}),[n,w,t,u,d]);return[o,h,w,f,p,S]}function vA(e){var t=(0,r.useRef)(e),n=gt((0,r.useState)({}),2)[1],o=(0,r.useRef)(null),i=(0,r.useRef)([]);return(0,r.useEffect)((function(){return function(){o.current=null}}),[]),[t.current,function(e){i.current.push(e);var r=Promise.resolve();o.current=r,r.then((function(){if(o.current===r){var e=i.current,a=t.current;i.current=[],e.forEach((function(e){t.current=e(t.current)})),o.current=null,a!==t.current&&n({})}}))}]}var mA=sk()?window:null;const yA=function(e,t,n){var o=(0,r.useMemo)((function(){var r=t.length,o=function(n,r,o){for(var i=[],a=0,l=n;l!==r;l+=o)i.push(a),t[l].fixed&&(a+=e[l]||0);return i},i=o(0,r,1),a=o(r-1,-1,-1).reverse();return"rtl"===n?{left:a,right:i}:{left:i,right:a}}),[e,t,n]);return o};const bA=function(e){var t=e.className,n=e.children;return r.createElement("div",{className:t},n)};function xA(e,t,n,r){var o=Nu.unstable_batchedUpdates?function(e){Nu.unstable_batchedUpdates(n,e)}:n;return null!==e&&void 0!==e&&e.addEventListener&&e.addEventListener(t,o,r),{remove:function(){null!==e&&void 0!==e&&e.removeEventListener&&e.removeEventListener(t,o,r)}}}function wA(e){var t=e.getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}var SA=function(e){return+setTimeout(e,16)},OA=function(e){return clearTimeout(e)};"undefined"!==typeof window&&"requestAnimationFrame"in window&&(SA=function(e){return window.requestAnimationFrame(e)},OA=function(e){return window.cancelAnimationFrame(e)});var _A=0,CA=new Map;function EA(e){CA.delete(e)}var PA=function(e){var t=_A+=1;return function n(r){if(0===r)EA(t),e();else{var o=SA((function(){n(r-1)}));CA.set(t,o)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};PA.cancel=function(e){var t=CA.get(e);return EA(e),OA(t)};const MA=PA;var kA=function(e,t){var n,o,i=e.scrollBodyRef,a=e.onScroll,l=e.offsetScroll,s=e.container,u=BM(UM,"prefixCls"),d=(null===(n=i.current)||void 0===n?void 0:n.scrollWidth)||0,f=(null===(o=i.current)||void 0===o?void 0:o.clientWidth)||0,p=d&&f*(f/d),h=r.useRef(),g=gt(vA({scrollLeft:0,isHiddenScrollBar:!0}),2),v=g[0],m=g[1],y=r.useRef({delta:0,x:0}),b=gt(r.useState(!1),2),x=b[0],S=b[1],_=r.useRef(null);r.useEffect((function(){return function(){MA.cancel(_.current)}}),[]);var C=function(){S(!1)},E=function(e){var t,n=(e||(null===(t=window)||void 0===t?void 0:t.event)).buttons;if(x&&0!==n){var r=y.current.x+e.pageX-y.current.x-y.current.delta;r<=0&&(r=0),r+p>=f&&(r=f-p),a({scrollLeft:r/f*(d+2)}),y.current.x=e.pageX}else x&&S(!1)},P=function(){_.current=MA((function(){if(i.current){var e=wA(i.current).top,t=e+i.current.offsetHeight,n=s===window?document.documentElement.scrollTop+window.innerHeight:wA(s).top+s.clientHeight;t-Rk()<=n||e>=n-l?m((function(e){return O(O({},e),{},{isHiddenScrollBar:!0})})):m((function(e){return O(O({},e),{},{isHiddenScrollBar:!1})}))}}))},M=function(e){m((function(t){return O(O({},t),{},{scrollLeft:e/d*f||0})}))};return r.useImperativeHandle(t,(function(){return{setScrollLeft:M,checkScrollBarVisible:P}})),r.useEffect((function(){var e=xA(document.body,"mouseup",C,!1),t=xA(document.body,"mousemove",E,!1);return P(),function(){e.remove(),t.remove()}}),[p,x]),r.useEffect((function(){var e=xA(s,"scroll",P,!1),t=xA(window,"resize",P,!1);return function(){e.remove(),t.remove()}}),[s]),r.useEffect((function(){v.isHiddenScrollBar||m((function(e){var t=i.current;return t?O(O({},e),{},{scrollLeft:t.scrollLeft/t.scrollWidth*t.clientWidth}):e}))}),[v.isHiddenScrollBar]),d<=f||!p||v.isHiddenScrollBar?null:r.createElement("div",{style:{height:Rk(),width:f,bottom:l},className:"".concat(u,"-sticky-scroll")},r.createElement("div",{onMouseDown:function(e){e.persist(),y.current.delta=e.pageX-v.scrollLeft,y.current.x=0,S(!0),e.preventDefault()},ref:h,className:c()("".concat(u,"-sticky-scroll-bar"),w({},"".concat(u,"-sticky-scroll-bar-active"),x)),style:{width:"".concat(p,"px"),transform:"translate3d(".concat(v.scrollLeft,"px, 0, 0)")}}))};const AA=r.forwardRef(kA);const IA=function(e){return null};const TA=function(e){return null};function jA(e){return e instanceof HTMLElement||e instanceof SVGElement}function LA(e){return e&&"object"===v(e)&&jA(e.nativeElement)?e.nativeElement:jA(e)?e:null}var RA="rc-table",DA=[],NA={};function FA(){return"No Data"}function BA(e,t){var n=O({rowKey:"key",prefixCls:RA,emptyText:FA},e),o=n.prefixCls,i=n.className,a=n.rowClassName,l=n.style,s=n.data,u=n.rowKey,d=n.scroll,f=n.tableLayout,p=n.direction,g=n.title,m=n.footer,y=n.summary,b=n.caption,x=n.id,S=n.showHeader,_=n.components,C=n.emptyText,E=n.onRow,P=n.onHeaderRow,M=n.onScroll,k=n.internalHooks,A=n.transformColumns,I=n.internalRefs,T=n.tailor,j=n.getContainerWidth,L=n.sticky,R=n.rowHoverable,D=void 0===R||R,N=s||DA,F=!!N.length,B=k===NM;var z=r.useCallback((function(e,t){return nk(_,e)||t}),[_]),H=r.useMemo((function(){return"function"===typeof u?u:function(e){return e&&e[u]}}),[u]),W=z(["body"]),V=function(){var e=gt(r.useState(-1),2),t=e[0],n=e[1],o=gt(r.useState(-1),2),i=o[0],a=o[1];return[t,i,r.useCallback((function(e,t){n(e),a(t)}),[])]}(),G=gt(V,3),Y=G[0],U=G[1],X=G[2],q=gt(gA(n,N,H),6),K=q[0],$=q[1],Q=q[2],Z=q[3],J=q[4],ee=q[5],te=null===d||void 0===d?void 0:d.x,ne=gt(r.useState(0),2),re=ne[0],oe=ne[1],ie=gt(pA(O(O(O({},n),K),{},{expandable:!!K.expandedRowRender,columnTitle:K.columnTitle,expandedKeys:Q,getRowKey:H,onTriggerExpand:ee,expandIcon:Z,expandIconColumnIndex:K.expandIconColumnIndex,direction:p,scrollWidth:B&&T&&"number"===typeof te?te:null,clientWidth:re}),B?A:null),4),ae=ie[0],le=ie[1],ce=ie[2],se=ie[3],ue=null!==ce&&void 0!==ce?ce:te,de=r.useMemo((function(){return{columns:ae,flattenColumns:le}}),[ae,le]),fe=r.useRef(),pe=r.useRef(),he=r.useRef(),ge=r.useRef();r.useImperativeHandle(t,(function(){return{nativeElement:fe.current,scrollTo:function(e){var t,n;if(he.current instanceof HTMLElement){var r=e.index,o=e.top,i=e.key;if("number"!==typeof(n=o)||Number.isNaN(n)){var a,l=null!==i&&void 0!==i?i:H(N[r]);null===(a=he.current.querySelector('[data-row-key="'.concat(l,'"]')))||void 0===a||a.scrollIntoView()}else{var c;null===(c=he.current)||void 0===c||c.scrollTo({top:o})}}else null!==(t=he.current)&&void 0!==t&&t.scrollTo&&he.current.scrollTo(e)}}}));var ve,me,ye,be=r.useRef(),xe=gt(r.useState(!1),2),we=xe[0],Se=xe[1],Oe=gt(r.useState(!1),2),_e=Oe[0],Ce=Oe[1],Ee=gt(vA(new Map),2),Pe=Ee[0],Me=Ee[1],ke=ik(le).map((function(e){return Pe.get(e)})),Ae=r.useMemo((function(){return ke}),[ke.join("_")]),Ie=yA(Ae,le,p),Te=d&&ak(d.y),je=d&&ak(ue)||Boolean(K.fixed),Le=je&&le.some((function(e){return e.fixed})),Re=r.useRef(),De=function(e,t){var n="object"===v(e)?e:{},o=n.offsetHeader,i=void 0===o?0:o,a=n.offsetSummary,l=void 0===a?0:a,c=n.offsetScroll,s=void 0===c?0:c,u=n.getContainer,d=(void 0===u?function(){return mA}:u)()||mA,f=!!e;return r.useMemo((function(){return{isSticky:f,stickyClassName:f?"".concat(t,"-sticky-holder"):"",offsetHeader:i,offsetSummary:l,offsetScroll:s,container:d}}),[f,s,i,l,t,d])}(L,o),Ne=De.isSticky,Fe=De.offsetHeader,Be=De.offsetSummary,ze=De.offsetScroll,He=De.stickyClassName,We=De.container,Ve=r.useMemo((function(){return null===y||void 0===y?void 0:y(N)}),[y,N]),Ge=(Te||Ne)&&r.isValidElement(Ve)&&Ve.type===yk&&Ve.props.fixed;Te&&(me={overflowY:F?"scroll":"auto",maxHeight:d.y}),je&&(ve={overflowX:"auto"},Te||(me={overflowY:"hidden"}),ye={width:!0===ue?"auto":ue,minWidth:"100%"});var Ye=r.useCallback((function(e,t){(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})(fe.current)&&Me((function(n){if(n.get(e)!==t){var r=new Map(n);return r.set(e,t),r}return n}))}),[]),Ue=gt(function(e){var t=(0,r.useRef)(e||null),n=(0,r.useRef)();function o(){window.clearTimeout(n.current)}return(0,r.useEffect)((function(){return o}),[]),[function(e){t.current=e,o(),n.current=window.setTimeout((function(){t.current=null,n.current=void 0}),100)},function(){return t.current}]}(null),2),Xe=Ue[0],qe=Ue[1];function Ke(e,t){t&&("function"===typeof t?t(e):t.scrollLeft!==e&&(t.scrollLeft=e,t.scrollLeft!==e&&setTimeout((function(){t.scrollLeft=e}),0)))}var $e=ck((function(e){var t,n=e.currentTarget,r=e.scrollLeft,o="rtl"===p,i="number"===typeof r?r:n.scrollLeft,a=n||NA;qe()&&qe()!==a||(Xe(a),Ke(i,pe.current),Ke(i,he.current),Ke(i,be.current),Ke(i,null===(t=Re.current)||void 0===t?void 0:t.setScrollLeft));var l=n||pe.current;if(l){var c="number"===typeof ue?ue:l.scrollWidth,s=l.clientWidth;if(c===s)return Se(!1),void Ce(!1);o?(Se(-i<c-s),Ce(-i>0)):(Se(i>0),Ce(i<c-s))}})),Qe=ck((function(e){$e(e),null===M||void 0===M||M(e)})),Ze=function(){var e;je&&he.current?$e({currentTarget:LA(he.current),scrollLeft:null===(e=he.current)||void 0===e?void 0:e.scrollLeft}):(Se(!1),Ce(!1))},Je=r.useRef(!1);r.useEffect((function(){Je.current&&Ze()}),[je,s,ae.length]),r.useEffect((function(){Je.current=!0}),[]);var et=gt(r.useState(0),2),tt=et[0],nt=et[1],rt=gt(r.useState(!0),2),ot=rt[0],it=rt[1];r.useEffect((function(){var e,t;T&&B||(he.current instanceof Element?nt(Dk(he.current).width):nt(Dk(ge.current).width)),it((e="position",t="sticky",Array.isArray(e)||void 0===t?wk(e):Sk(e,t)))}),[]),r.useEffect((function(){B&&I&&(I.body.current=he.current)}));var at,lt=r.useCallback((function(e){return r.createElement(r.Fragment,null,r.createElement(iA,e),"top"===Ge&&r.createElement(bk,e,Ve))}),[Ge,Ve]),ct=r.useCallback((function(e){return r.createElement(bk,e,Ve)}),[Ve]),st=z(["table"],"table"),ut=r.useMemo((function(){return f||(Le?"max-content"===ue?"auto":"fixed":Te||Ne||le.some((function(e){return e.ellipsis}))?"fixed":"auto")}),[Te,Le,le,f,Ne]),dt={colWidths:Ae,columCount:le.length,stickyOffsets:Ie,onHeaderRow:P,fixHeader:Te,scroll:d},ft=r.useMemo((function(){return F?null:"function"===typeof C?C():C}),[F,C]),pt=r.createElement($k,{data:N,measureColumnWidth:Te||je||Ne}),ht=r.createElement(eA,{colWidths:le.map((function(e){return e.width})),columns:le}),vt=null!==b&&void 0!==b?r.createElement("caption",{className:"".concat(o,"-caption")},b):void 0,mt=Hk(n,{data:!0}),yt=Hk(n,{aria:!0});if(Te||Ne){var bt;"function"===typeof W?(bt=W(N,{scrollbarSize:tt,ref:he,onScroll:$e}),dt.colWidths=le.map((function(e,t){var n=e.width,r=t===le.length-1?n-tt:n;return"number"!==typeof r||Number.isNaN(r)?0:r}))):bt=r.createElement("div",{style:O(O({},ve),me),onScroll:Qe,ref:he,className:c()("".concat(o,"-body"))},r.createElement(st,h({style:O(O({},ye),{},{tableLayout:ut})},yt),vt,ht,pt,!Ge&&Ve&&r.createElement(bk,{stickyOffsets:Ie,flattenColumns:le},Ve)));var xt=O(O(O({noData:!N.length,maxContentScroll:je&&"max-content"===ue},dt),de),{},{direction:p,stickyClassName:He,onScroll:$e});at=r.createElement(r.Fragment,null,!1!==S&&r.createElement(rA,h({},xt,{stickyTopOffset:Fe,className:"".concat(o,"-header"),ref:pe}),lt),bt,Ge&&"top"!==Ge&&r.createElement(rA,h({},xt,{stickyBottomOffset:Be,className:"".concat(o,"-summary"),ref:be}),ct),Ne&&he.current&&he.current instanceof Element&&r.createElement(AA,{ref:Re,offsetScroll:ze,scrollBodyRef:he,onScroll:$e,container:We}))}else at=r.createElement("div",{style:O(O({},ve),me),className:c()("".concat(o,"-content")),onScroll:$e,ref:he},r.createElement(st,h({style:O(O({},ye),{},{tableLayout:ut})},yt),vt,ht,!1!==S&&r.createElement(iA,h({},dt,de)),pt,Ve&&r.createElement(bk,{stickyOffsets:Ie,flattenColumns:le},Ve)));var wt=r.createElement("div",h({className:c()(o,i,w(w(w(w(w(w(w(w(w(w({},"".concat(o,"-rtl"),"rtl"===p),"".concat(o,"-ping-left"),we),"".concat(o,"-ping-right"),_e),"".concat(o,"-layout-fixed"),"fixed"===f),"".concat(o,"-fixed-header"),Te),"".concat(o,"-fixed-column"),Le),"".concat(o,"-fixed-column-gapped"),Le&&se),"".concat(o,"-scroll-horizontal"),je),"".concat(o,"-has-fix-left"),le[0]&&le[0].fixed),"".concat(o,"-has-fix-right"),le[le.length-1]&&"right"===le[le.length-1].fixed)),style:l,id:x,ref:fe},mt),g&&r.createElement(bA,{className:"".concat(o,"-title")},g(N)),r.createElement("div",{ref:ge,className:"".concat(o,"-container")},at),m&&r.createElement(bA,{className:"".concat(o,"-footer")},m(N)));je&&(wt=r.createElement(qh,{onResize:function(e){var t,n=e.width;null===(t=Re.current)||void 0===t||t.checkScrollBarVisible();var r=fe.current?fe.current.offsetWidth:n;B&&j&&fe.current&&(r=j(fe.current,r)||r),r!==re&&(Ze(),oe(r))}},wt));var St=function(e,t,n){var r=e.map((function(r,o){return hk(o,o,e,t,n)}));return XM((function(){return r}),[r],(function(e,t){return!tk(e,t)}))}(le,Ie,p),Ot=r.useMemo((function(){return{scrollX:ue,prefixCls:o,getComponent:z,scrollbarSize:tt,direction:p,fixedInfoList:St,isSticky:Ne,supportSticky:ot,componentWidth:re,fixHeader:Te,fixColumn:Le,horizonScroll:je,tableLayout:ut,rowClassName:a,expandedRowClassName:K.expandedRowClassName,expandIcon:Z,expandableType:$,expandRowByClick:K.expandRowByClick,expandedRowRender:K.expandedRowRender,onTriggerExpand:ee,expandIconColumnIndex:K.expandIconColumnIndex,indentSize:K.indentSize,allColumnsFixedLeft:le.every((function(e){return"left"===e.fixed})),emptyNode:ft,columns:ae,flattenColumns:le,onColumnResize:Ye,hoverStartRow:Y,hoverEndRow:U,onHover:X,rowExpandable:K.rowExpandable,onRow:E,getRowKey:H,expandedKeys:Q,childrenColumnName:J,rowHoverable:D}}),[ue,o,z,tt,p,St,Ne,ot,re,Te,Le,je,ut,a,K.expandedRowClassName,Z,$,K.expandRowByClick,K.expandedRowRender,ee,K.expandIconColumnIndex,K.indentSize,ft,ae,le,Ye,Y,U,X,K.rowExpandable,E,H,Q,J,D]);return r.createElement(UM.Provider,{value:Ot},wt)}var zA=r.forwardRef(BA);function HA(e){return VM(zA,e)}var WA=HA();WA.EXPAND_COLUMN=DM,WA.INTERNAL_HOOKS=NM,WA.Column=IA,WA.ColumnGroup=TA,WA.Summary=xk;const VA=WA;function GA(e){var t=r.useRef();t.current=e;var n=r.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 YA="undefined"!==typeof window&&window.document&&window.document.createElement?r.useLayoutEffect:r.useEffect,UA=function(e,t){var n=r.useRef(!0);YA((function(){return e(n.current)}),t),YA((function(){return n.current=!1,function(){n.current=!0}}),[])};const XA=UA;"undefined"===typeof Reflect?Object.keys:Reflect.ownKeys;var qA={},KA=[];function $A(e,t){}function QA(e,t){}function ZA(e,t,n){t||qA[n]||(e(!1,n),qA[n]=!0)}function JA(e,t){ZA($A,e,t)}JA.preMessage=function(e){KA.push(e)},JA.resetWarned=function(){qA={}},JA.noteOnce=function(e,t){ZA(QA,e,t)};var eI=r.forwardRef((function(e,t){var n=e.height,o=e.offsetY,i=e.offsetX,a=e.children,l=e.prefixCls,s=e.onInnerResize,u=e.innerProps,d=e.rtl,f=e.extra,p={},g={display:"flex",flexDirection:"column"};return void 0!==o&&(p={height:n,position:"relative",overflow:"hidden"},g=O(O({},g),{},w(w(w(w(w({transform:"translateY(".concat(o,"px)")},d?"marginRight":"marginLeft",-i),"position","absolute"),"left",0),"right",0),"top",0))),r.createElement("div",{style:p},r.createElement(qh,{onResize:function(e){e.offsetHeight&&s&&s()}},r.createElement("div",h({style:g,className:c()(w({},"".concat(l,"-holder-inner"),l)),ref:t},u),a,f)))}));eI.displayName="Filler";const tI=eI;function nI(e){var t=e.children,n=e.setRef,o=r.useCallback((function(e){n(e)}),[]);return r.cloneElement(t,{ref:o})}function rI(e,t,n){var o=gt(r.useState(e),2),i=o[0],a=o[1],l=gt(r.useState(null),2),c=l[0],s=l[1];return r.useEffect((function(){var r=function(e,t,n){var r,o,i=e.length,a=t.length;if(0===i&&0===a)return null;i<a?(r=e,o=t):(r=t,o=e);var l={__EMPTY_ITEM__:!0};function c(e){return void 0!==e?n(e):l}for(var s=null,u=1!==Math.abs(i-a),d=0;d<o.length;d+=1){var f=c(r[d]);if(f!==c(o[d])){s=d,u=u||f!==c(o[d+1]);break}}return null===s?null:{index:s,multiple:u}}(i||[],e||[],t);void 0!==(null===r||void 0===r?void 0:r.index)&&(null===n||void 0===n||n(r.index),s(e[r.index])),a(e)}),[e]),[c]}var oI=function(e){return+setTimeout(e,16)},iI=function(e){return clearTimeout(e)};"undefined"!==typeof window&&"requestAnimationFrame"in window&&(oI=function(e){return window.requestAnimationFrame(e)},iI=function(e){return window.cancelAnimationFrame(e)});var aI=0,lI=new Map;function cI(e){lI.delete(e)}var sI=function(e){var t=aI+=1;return function n(r){if(0===r)cI(t),e();else{var o=oI((function(){n(r-1)}));lI.set(t,o)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};sI.cancel=function(e){var t=lI.get(e);return cI(e),iI(t)};const uI=sI;const dI="object"===("undefined"===typeof navigator?"undefined":v(navigator))&&/Firefox/i.test(navigator.userAgent),fI=function(e,t,n,o){var i=(0,r.useRef)(!1),a=(0,r.useRef)(null);var l=(0,r.useRef)({top:e,bottom:t,left:n,right:o});return l.current.top=e,l.current.bottom=t,l.current.left=n,l.current.right=o,function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=e?t<0&&l.current.left||t>0&&l.current.right:t<0&&l.current.top||t>0&&l.current.bottom;return n&&r?(clearTimeout(a.current),i.current=!1):r&&!i.current||(clearTimeout(a.current),i.current=!0,a.current=setTimeout((function(){i.current=!1}),50)),!i.current&&r}};function pI(e,t,n,o,i,a,l){var c=(0,r.useRef)(0),s=(0,r.useRef)(null),u=(0,r.useRef)(null),d=(0,r.useRef)(!1),f=fI(t,n,o,i);var p=(0,r.useRef)(null),h=(0,r.useRef)(null);return[function(t){if(e){uI.cancel(h.current),h.current=uI((function(){p.current=null}),2);var n=t.deltaX,r=t.deltaY,o=t.shiftKey,i=n,g=r;("sx"===p.current||!p.current&&o&&r&&!n)&&(i=r,g=0,p.current="sx");var v=Math.abs(i),m=Math.abs(g);null===p.current&&(p.current=a&&v>m?"x":"y"),"y"===p.current?function(e,t){uI.cancel(s.current),c.current+=t,u.current=t,f(!1,t)||(dI||e.preventDefault(),s.current=uI((function(){var e=d.current?10:1;l(c.current*e),c.current=0})))}(t,g):function(e,t){l(t,!0),dI||e.preventDefault()}(t,i)}},function(t){e&&(d.current=t.detail===u.current)}]}function hI(e){return function(e){return e instanceof HTMLElement||e instanceof SVGElement}(e)?e:e instanceof r.Component?Nu.findDOMNode(e):null}var gI=function(){function e(){M(this,e),w(this,"maps",void 0),w(this,"id",0),this.maps=Object.create(null)}return A(e,[{key:"set",value:function(e,t){this.maps[e]=t,this.id+=1}},{key:"get",value:function(e){return this.maps[e]}}]),e}();const vI=gI;var mI=14/15;var yI=10;function bI(e,t){return("touches"in e?e.touches[0]:e)[t?"pageX":"pageY"]}var xI=r.forwardRef((function(e,t){var n=e.prefixCls,o=e.rtl,i=e.scrollOffset,a=e.scrollRange,l=e.onStartMove,s=e.onStopMove,u=e.onScroll,d=e.horizontal,f=e.spinSize,p=e.containerSize,h=e.style,g=e.thumbStyle,v=gt(r.useState(!1),2),m=v[0],y=v[1],b=gt(r.useState(null),2),x=b[0],S=b[1],_=gt(r.useState(null),2),C=_[0],E=_[1],P=!o,M=r.useRef(),k=r.useRef(),A=gt(r.useState(!1),2),I=A[0],T=A[1],j=r.useRef(),L=function(){clearTimeout(j.current),T(!0),j.current=setTimeout((function(){T(!1)}),3e3)},R=a-p||0,D=p-f||0,N=r.useMemo((function(){return 0===i||0===R?0:i/R*D}),[i,R,D]),F=r.useRef({top:N,dragging:m,pageY:x,startTop:C});F.current={top:N,dragging:m,pageY:x,startTop:C};var B=function(e){y(!0),S(bI(e,d)),E(F.current.top),l(),e.stopPropagation(),e.preventDefault()};r.useEffect((function(){var e=function(e){e.preventDefault()},t=M.current,n=k.current;return t.addEventListener("touchstart",e),n.addEventListener("touchstart",B),function(){t.removeEventListener("touchstart",e),n.removeEventListener("touchstart",B)}}),[]);var z=r.useRef();z.current=R;var H=r.useRef();H.current=D,r.useEffect((function(){if(m){var e,t=function(t){var n=F.current,r=n.dragging,o=n.pageY,i=n.startTop;if(uI.cancel(e),r){var a=bI(t,d)-o,l=i;!P&&d?l-=a:l+=a;var c=z.current,s=H.current,f=s?l/s:0,p=Math.ceil(f*c);p=Math.max(p,0),p=Math.min(p,c),e=uI((function(){u(p,d)}))}},n=function(){y(!1),s()};return window.addEventListener("mousemove",t),window.addEventListener("touchmove",t),window.addEventListener("mouseup",n),window.addEventListener("touchend",n),function(){window.removeEventListener("mousemove",t),window.removeEventListener("touchmove",t),window.removeEventListener("mouseup",n),window.removeEventListener("touchend",n),uI.cancel(e)}}}),[m]),r.useEffect((function(){L()}),[i]),r.useImperativeHandle(t,(function(){return{delayHidden:L}}));var W="".concat(n,"-scrollbar"),V={position:"absolute",visibility:I?null:"hidden"},G={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return d?(V.height=8,V.left=0,V.right=0,V.bottom=0,G.height="100%",G.width=f,P?G.left=N:G.right=N):(V.width=8,V.top=0,V.bottom=0,P?V.right=0:V.left=0,G.width="100%",G.height=f,G.top=N),r.createElement("div",{ref:M,className:c()(W,w(w(w({},"".concat(W,"-horizontal"),d),"".concat(W,"-vertical"),!d),"".concat(W,"-visible"),I)),style:O(O({},V),h),onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},onMouseMove:L},r.createElement("div",{ref:k,className:c()("".concat(W,"-thumb"),w({},"".concat(W,"-thumb-moving"),m)),style:O(O({},G),g),onMouseDown:B}))}));const wI=xI;var SI=20;function OI(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=e/(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)*e;return isNaN(t)&&(t=0),t=Math.max(t,SI),Math.floor(t)}var _I=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],CI=[],EI={overflowY:"auto",overflowAnchor:"none"};function PI(e,t){var n=e.prefixCls,o=void 0===n?"rc-virtual-list":n,i=e.className,a=e.height,l=e.itemHeight,s=e.fullHeight,u=void 0===s||s,d=e.style,f=e.data,p=e.children,m=e.itemKey,y=e.virtual,b=e.direction,x=e.scrollWidth,S=e.component,_=void 0===S?"div":S,C=e.onScroll,E=e.onVirtualScroll,P=e.onVisibleChange,M=e.innerProps,k=e.extraRender,A=e.styles,I=g(e,_I),T=r.useCallback((function(e){return"function"===typeof m?m(e):null===e||void 0===e?void 0:e[m]}),[m]),j=function(e,t,n){var o=gt(r.useState(0),2),i=o[0],a=o[1],l=(0,r.useRef)(new Map),c=(0,r.useRef)(new vI),s=(0,r.useRef)();function u(){uI.cancel(s.current)}function d(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];u();var t=function(){l.current.forEach((function(e,t){if(e&&e.offsetParent){var n=hI(e),r=n.offsetHeight;c.current.get(t)!==r&&c.current.set(t,n.offsetHeight)}})),a((function(e){return e+1}))};e?t():s.current=uI(t)}return(0,r.useEffect)((function(){return u}),[]),[function(r,o){var i=e(r),a=l.current.get(i);o?(l.current.set(i,o),d()):l.current.delete(i),!a!==!o&&(o?null===t||void 0===t||t(r):null===n||void 0===n||n(r))},d,c.current,i]}(T,null,null),L=gt(j,4),R=L[0],D=L[1],N=L[2],F=L[3],B=!(!1===y||!a||!l),z=r.useMemo((function(){return Object.values(N.maps).reduce((function(e,t){return e+t}),0)}),[N.id,N.maps]),H=B&&f&&(Math.max(l*f.length,z)>a||!!x),W="rtl"===b,V=c()(o,w({},"".concat(o,"-rtl"),W),i),G=f||CI,Y=(0,r.useRef)(),U=(0,r.useRef)(),X=(0,r.useRef)(),q=gt((0,r.useState)(0),2),K=q[0],$=q[1],Q=gt((0,r.useState)(0),2),Z=Q[0],J=Q[1],ee=gt((0,r.useState)(!1),2),te=ee[0],ne=ee[1],re=function(){ne(!0)},oe=function(){ne(!1)},ie={getKey:T};function ae(e){$((function(t){var n=function(e){var t=e;Number.isNaN(Oe.current)||(t=Math.min(t,Oe.current));return t=Math.max(t,0),t}("function"===typeof e?e(t):e);return Y.current.scrollTop=n,n}))}var le=(0,r.useRef)({start:0,end:G.length}),ce=(0,r.useRef)(),se=gt(rI(G,T),1)[0];ce.current=se;var ue=r.useMemo((function(){if(!B)return{scrollHeight:void 0,start:0,end:G.length-1,offset:void 0};var e;if(!H)return{scrollHeight:(null===(e=U.current)||void 0===e?void 0:e.offsetHeight)||0,start:0,end:G.length-1,offset:void 0};for(var t,n,r,o=0,i=G.length,c=0;c<i;c+=1){var s=G[c],u=T(s),d=N.get(u),f=o+(void 0===d?l:d);f>=K&&void 0===t&&(t=c,n=o),f>K+a&&void 0===r&&(r=c),o=f}return void 0===t&&(t=0,n=0,r=Math.ceil(a/l)),void 0===r&&(r=G.length-1),{scrollHeight:o,start:t,end:r=Math.min(r+1,G.length-1),offset:n}}),[H,B,K,G,F,a]),de=ue.scrollHeight,fe=ue.start,pe=ue.end,he=ue.offset;le.current.start=fe,le.current.end=pe;var ge=gt(r.useState({width:0,height:a}),2),ve=ge[0],me=ge[1],ye=(0,r.useRef)(),be=(0,r.useRef)(),xe=r.useMemo((function(){return OI(ve.width,x)}),[ve.width,x]),we=r.useMemo((function(){return OI(ve.height,de)}),[ve.height,de]),Se=de-a,Oe=(0,r.useRef)(Se);Oe.current=Se;var _e=K<=0,Ce=K>=Se,Ee=Z<=0,Pe=Z>=x,Me=fI(_e,Ce,Ee,Pe),ke=function(){return{x:W?-Z:Z,y:K}},Ae=(0,r.useRef)(ke()),Ie=GA((function(e){if(E){var t=O(O({},ke()),e);Ae.current.x===t.x&&Ae.current.y===t.y||(E(t),Ae.current=t)}}));function Te(e,t){var n=e;t?((0,Nu.flushSync)((function(){J(n)})),Ie()):ae(n)}var je=function(e){var t=e,n=x?x-ve.width:0;return t=Math.max(t,0),t=Math.min(t,n)},Le=GA((function(e,t){t?((0,Nu.flushSync)((function(){J((function(t){return je(t+(W?-e:e))}))})),Ie()):ae((function(t){return t+e}))})),Re=gt(pI(B,_e,Ce,Ee,Pe,!!x,Le),2),De=Re[0],Ne=Re[1];!function(e,t,n){var o,i=(0,r.useRef)(!1),a=(0,r.useRef)(0),l=(0,r.useRef)(0),c=(0,r.useRef)(null),s=(0,r.useRef)(null),u=function(e){if(i.current){var t=Math.ceil(e.touches[0].pageX),r=Math.ceil(e.touches[0].pageY),o=a.current-t,c=l.current-r,u=Math.abs(o)>Math.abs(c);u?a.current=t:l.current=r,n(u,u?o:c)&&e.preventDefault(),clearInterval(s.current),s.current=setInterval((function(){u?o*=mI:c*=mI;var e=Math.floor(u?o:c);(!n(u,e,!0)||Math.abs(e)<=.1)&&clearInterval(s.current)}),16)}},d=function(){i.current=!1,o()},f=function(e){o(),1!==e.touches.length||i.current||(i.current=!0,a.current=Math.ceil(e.touches[0].pageX),l.current=Math.ceil(e.touches[0].pageY),c.current=e.target,c.current.addEventListener("touchmove",u),c.current.addEventListener("touchend",d))};o=function(){c.current&&(c.current.removeEventListener("touchmove",u),c.current.removeEventListener("touchend",d))},XA((function(){return e&&t.current.addEventListener("touchstart",f),function(){var e;null===(e=t.current)||void 0===e||e.removeEventListener("touchstart",f),o(),clearInterval(s.current)}}),[e])}(B,Y,(function(e,t,n){return!Me(e,t,n)&&(De({preventDefault:function(){},deltaX:e?t:0,deltaY:e?0:t}),!0)})),XA((function(){function e(e){B&&e.preventDefault()}var t=Y.current;return t.addEventListener("wheel",De),t.addEventListener("DOMMouseScroll",Ne),t.addEventListener("MozMousePixelScroll",e),function(){t.removeEventListener("wheel",De),t.removeEventListener("DOMMouseScroll",Ne),t.removeEventListener("MozMousePixelScroll",e)}}),[B]),XA((function(){if(x){var e=je(Z);J(e),Ie({x:e})}}),[ve.width,x]);var Fe=function(){var e,t;null===(e=ye.current)||void 0===e||e.delayHidden(),null===(t=be.current)||void 0===t||t.delayHidden()},Be=function(e,t,n,o,i,a,l,c){var s=r.useRef(),u=gt(r.useState(null),2),d=u[0],f=u[1];return XA((function(){if(d&&d.times<yI){if(!e.current)return void f((function(e){return O({},e)}));a();var r=d.targetAlign,c=d.originAlign,s=d.index,u=d.offset,p=e.current.clientHeight,h=!1,g=r,v=null;if(p){for(var m=r||c,y=0,b=0,x=0,w=Math.min(t.length-1,s),S=0;S<=w;S+=1){var _=i(t[S]);b=y;var C=n.get(_);y=x=b+(void 0===C?o:C)}for(var E="top"===m?u:p-u,P=w;P>=0;P-=1){var M=i(t[P]),k=n.get(M);if(void 0===k){h=!0;break}if((E-=k)<=0)break}switch(m){case"top":v=b-u;break;case"bottom":v=x-p+u;break;default:var A=e.current.scrollTop;b<A?g="top":x>A+p&&(g="bottom")}null!==v&&l(v),v!==d.lastTop&&(h=!0)}h&&f(O(O({},d),{},{times:d.times+1,targetAlign:g,lastTop:v}))}}),[d,e.current]),function(e){if(null!==e&&void 0!==e){if(uI.cancel(s.current),"number"===typeof e)l(e);else if(e&&"object"===v(e)){var n,r=e.align;n="index"in e?e.index:t.findIndex((function(t){return i(t)===e.key}));var o=e.offset;f({times:0,index:n,offset:void 0===o?0:o,originAlign:r})}}else c()}}(Y,G,N,l,T,(function(){return D(!0)}),ae,Fe);r.useImperativeHandle(t,(function(){return{nativeElement:X.current,getScrollInfo:ke,scrollTo:function(e){var t;(t=e)&&"object"===v(t)&&("left"in t||"top"in t)?(void 0!==e.left&&J(je(e.left)),Be(e.top)):Be(e)}}})),XA((function(){if(P){var e=G.slice(fe,pe+1);P(e,G)}}),[fe,pe,G]);var ze=function(e,t,n,o){var i=gt(r.useMemo((function(){return[new Map,[]]}),[e,n.id,o]),2),a=i[0],l=i[1];return function(r){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r,c=a.get(r),s=a.get(i);if(void 0===c||void 0===s)for(var u=e.length,d=l.length;d<u;d+=1){var f,p=e[d],h=t(p);a.set(h,d);var g=null!==(f=n.get(h))&&void 0!==f?f:o;if(l[d]=(l[d-1]||0)+g,h===r&&(c=d),h===i&&(s=d),void 0!==c&&void 0!==s)break}return{top:l[c-1]||0,bottom:l[s]}}}(G,T,N,l),He=null===k||void 0===k?void 0:k({start:fe,end:pe,virtual:H,offsetX:Z,offsetY:he,rtl:W,getSize:ze}),We=function(e,t,n,o,i,a,l,c){var s=c.getKey;return e.slice(t,n+1).map((function(e,n){var c=l(e,t+n,{style:{width:o},offsetX:i}),u=s(e);return r.createElement(nI,{key:u,setRef:function(t){return a(e,t)}},c)}))}(G,fe,pe,x,Z,R,p,ie),Ve=null;a&&(Ve=O(w({},u?"height":"maxHeight",a),EI),B&&(Ve.overflowY="hidden",x&&(Ve.overflowX="hidden"),te&&(Ve.pointerEvents="none")));var Ge={};return W&&(Ge.dir="rtl"),r.createElement("div",h({ref:X,style:O(O({},d),{},{position:"relative"}),className:V},Ge,I),r.createElement(qh,{onResize:function(e){me({width:e.width||e.offsetWidth,height:e.height||e.offsetHeight})}},r.createElement(_,{className:"".concat(o,"-holder"),style:Ve,ref:Y,onScroll:function(e){var t=e.currentTarget.scrollTop;t!==K&&ae(t),null===C||void 0===C||C(e),Ie()},onMouseEnter:Fe},r.createElement(tI,{prefixCls:o,height:de,offsetX:Z,offsetY:he,scrollWidth:x,onInnerResize:D,ref:U,innerProps:M,rtl:W,extra:He},We))),H&&de>a&&r.createElement(wI,{ref:ye,prefixCls:o,scrollOffset:K,scrollRange:de,rtl:W,onScroll:Te,onStartMove:re,onStopMove:oe,spinSize:we,containerSize:ve.height,style:null===A||void 0===A?void 0:A.verticalScrollBar,thumbStyle:null===A||void 0===A?void 0:A.verticalScrollBarThumb}),H&&x>ve.width&&r.createElement(wI,{ref:be,prefixCls:o,scrollOffset:Z,scrollRange:x,rtl:W,onScroll:Te,onStartMove:re,onStopMove:oe,spinSize:xe,containerSize:ve.width,horizontal:!0,style:null===A||void 0===A?void 0:A.horizontalScrollBar,thumbStyle:null===A||void 0===A?void 0:A.horizontalScrollBarThumb}))}var MI=r.forwardRef(PI);MI.displayName="List";const kI=MI;var AI=FM(null),II=FM(null);const TI=function(e){var t=e.rowInfo,n=e.column,o=e.colIndex,i=e.indent,a=e.index,l=e.component,s=e.renderIndex,u=e.record,d=e.style,f=e.className,p=e.inverse,g=e.getHeight,v=n.render,m=n.dataIndex,y=n.className,b=n.width,x=BM(II,["columnsOffset"]).columnsOffset,w=Uk(t,n,o,i,a),S=w.key,_=w.fixedInfo,C=w.appendCellNode,E=w.additionalCellProps,P=E.style,M=E.colSpan,k=void 0===M?1:M,A=E.rowSpan,I=void 0===A?1:A,T=function(e,t,n){return n[e+(t||1)]-(n[e]||0)}(o-1,k,x),j=k>1?b-T:0,L=O(O(O({},P),d),{},{flex:"0 0 ".concat(T,"px"),width:"".concat(T,"px"),marginRight:j,pointerEvents:"auto"}),R=r.useMemo((function(){return p?I<=1:0===k||0===I||I>1}),[I,k,p]);R?L.visibility="hidden":p&&(L.height=null===g||void 0===g?void 0:g(I));var D=R?function(){return null}:v,N={};return 0!==I&&0!==k||(N.rowSpan=1,N.colSpan=1),r.createElement(pk,h({className:c()(y,f),ellipsis:n.ellipsis,align:n.align,scope:n.rowScope,component:l,prefixCls:t.prefixCls,key:S,record:u,index:a,renderIndex:s,dataIndex:m,render:D,shouldCellUpdate:n.shouldCellUpdate},_,{appendNode:C,additionalProps:O(O({},E),{},{style:L},N)}))};var jI=["data","index","className","rowKey","style","extra","getHeight"],LI=r.forwardRef((function(e,t){var n,o=e.data,i=e.index,a=e.className,l=e.rowKey,s=e.style,u=e.extra,d=e.getHeight,f=g(e,jI),p=o.record,v=o.indent,m=o.index,y=BM(UM,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),b=y.scrollX,x=y.flattenColumns,S=y.prefixCls,_=y.fixColumn,C=y.componentWidth,E=BM(AI,["getComponent"]).getComponent,P=Gk(p,l,i,v),M=E(["body","row"],"div"),k=E(["body","cell"],"div"),A=P.rowSupportExpand,I=P.expanded,T=P.rowProps,j=P.expandedRowRender,L=P.expandedRowClassName;if(A&&I){var R=j(p,i,v+1,I),D=null===L||void 0===L?void 0:L(p,i,v),N={};_&&(N={style:w({},"--virtual-width","".concat(C,"px"))});var F="".concat(S,"-expanded-row-cell");n=r.createElement(M,{className:c()("".concat(S,"-expanded-row"),"".concat(S,"-expanded-row-level-").concat(v+1),D)},r.createElement(pk,{component:k,prefixCls:S,className:c()(F,w({},"".concat(F,"-fixed"),_)),additionalProps:N},R))}var B=O(O({},s),{},{width:b});u&&(B.position="absolute",B.pointerEvents="none");var z=r.createElement(M,h({},T,f,{"data-row-key":l,ref:A?null:t,className:c()(a,"".concat(S,"-row"),null===T||void 0===T?void 0:T.className,w({},"".concat(S,"-row-extra"),u)),style:O(O({},B),null===T||void 0===T?void 0:T.style)}),x.map((function(e,t){return r.createElement(TI,{key:t,component:k,rowInfo:P,column:e,colIndex:t,indent:v,index:i,renderIndex:m,record:p,inverse:u,getHeight:d})})));return A?r.createElement("div",{ref:t},z,n):z}));const RI=GM(LI);var DI=r.forwardRef((function(e,t){var n=e.data,o=e.onScroll,i=BM(UM,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX"]),a=i.flattenColumns,l=i.onColumnResize,c=i.getRowKey,s=i.expandedKeys,u=i.prefixCls,d=i.childrenColumnName,f=i.scrollX,p=BM(AI),h=p.sticky,g=p.scrollY,m=p.listItemHeight,y=p.getComponent,b=p.onScroll,x=r.useRef(),w=Vk(n,d,s,c),S=r.useMemo((function(){var e=0;return a.map((function(t){var n=t.width;return[t.key,n,e+=n]}))}),[a]),O=r.useMemo((function(){return S.map((function(e){return e[2]}))}),[S]);r.useEffect((function(){S.forEach((function(e){var t=gt(e,2),n=t[0],r=t[1];l(n,r)}))}),[S]),r.useImperativeHandle(t,(function(){var e,t={scrollTo:function(e){var t;null===(t=x.current)||void 0===t||t.scrollTo(e)},nativeElement:null===(e=x.current)||void 0===e?void 0:e.nativeElement};return Object.defineProperty(t,"scrollLeft",{get:function(){var e;return(null===(e=x.current)||void 0===e?void 0:e.getScrollInfo().x)||0},set:function(e){var t;null===(t=x.current)||void 0===t||t.scrollTo({left:e})}}),t}));var _=function(e,t){var n,r=null===(n=w[t])||void 0===n?void 0:n.record,o=e.onCell;if(o){var i,a=o(r,t);return null!==(i=null===a||void 0===a?void 0:a.rowSpan)&&void 0!==i?i:1}return 1},C=r.useMemo((function(){return{columnsOffset:O}}),[O]),E="".concat(u,"-tbody"),P=y(["body","wrapper"]),M={};return h&&(M.position="sticky",M.bottom=0,"object"===v(h)&&h.offsetScroll&&(M.bottom=h.offsetScroll)),r.createElement(II.Provider,{value:C},r.createElement(kI,{fullHeight:!1,ref:x,prefixCls:"".concat(E,"-virtual"),styles:{horizontalScrollBar:M},className:E,height:g,itemHeight:m||24,data:w,itemKey:function(e){return c(e.record)},component:P,scrollWidth:f,onVirtualScroll:function(e){var t,n=e.x;o({currentTarget:null===(t=x.current)||void 0===t?void 0:t.nativeElement,scrollLeft:n})},onScroll:b,extraRender:function(e){var t=e.start,n=e.end,o=e.getSize,i=e.offsetY;if(n<0)return null;for(var l=a.filter((function(e){return 0===_(e,t)})),s=t,u=function(e){if(l=l.filter((function(t){return 0===_(t,e)})),!l.length)return s=e,1},d=t;d>=0&&!u(d);d-=1);for(var f=a.filter((function(e){return 1!==_(e,n)})),p=n,h=function(e){if(f=f.filter((function(t){return 1!==_(t,e)})),!f.length)return p=Math.max(e-1,n),1},g=n;g<w.length&&!h(g);g+=1);for(var v=[],m=function(e){if(!w[e])return 1;a.some((function(t){return _(t,e)>1}))&&v.push(e)},y=s;y<=p;y+=1)m(y);var b=v.map((function(e){var t=w[e],n=c(t.record,e),a=o(n);return r.createElement(RI,{key:e,data:t,rowKey:n,index:e,style:{top:-i+a.top},extra:!0,getHeight:function(t){var r=e+t-1,i=c(w[r].record,r),a=o(n,i);return a.bottom-a.top}})}));return b}},(function(e,t,n){var o=c(e.record,t);return r.createElement(RI,{data:e,rowKey:o,index:t,style:n.style})})))}));const NI=GM(DI);var FI=function(e,t){var n=t.ref,o=t.onScroll;return r.createElement(NI,{ref:n,data:e,onScroll:o})};function BI(e,t){var n=e.data,o=e.columns,i=e.scroll,a=e.sticky,l=e.prefixCls,s=void 0===l?RA:l,u=e.className,d=e.listItemHeight,f=e.components,p=e.onScroll,g=i||{},v=g.x,m=g.y;"number"!==typeof v&&(v=1),"number"!==typeof m&&(m=500);var y=ck((function(e,t){return nk(f,e)||t})),b=ck(p),x=r.useMemo((function(){return{sticky:a,scrollY:m,listItemHeight:d,getComponent:y,onScroll:b}}),[a,m,d,y,b]);return r.createElement(AI.Provider,{value:x},r.createElement(VA,h({},e,{className:c()(u,"".concat(s,"-virtual")),scroll:O(O({},i),{},{x:v}),components:O(O({},f),{},{body:null!==n&&void 0!==n&&n.length?FI:void 0}),columns:o,internalHooks:NM,tailor:!0,ref:t})))}var zI=r.forwardRef(BI);function HI(e){return VM(zI,e)}HI();const WI=e=>null,VI=e=>null;var GI=r.createContext(null),YI=function(e){for(var t=e.prefixCls,n=e.level,o=e.isStart,i=e.isEnd,a="".concat(t,"-indent-unit"),l=[],s=0;s<n;s+=1)l.push(r.createElement("span",{key:s,className:c()(a,w(w({},"".concat(a,"-start"),o[s]),"".concat(a,"-end"),i[s]))}));return r.createElement("span",{"aria-hidden":"true",className:"".concat(t,"-indent")},l)};const UI=r.memo(YI);function XI(e,t){return e[t]}function qI(e,t){var n=O({},e);return Array.isArray(t)&&t.forEach((function(e){delete n[e]})),n}var KI=["children"];function $I(e,t){return"".concat(e,"-").concat(t)}function QI(e,t){return null!==e&&void 0!==e?e:t}function ZI(e){var t=e||{},n=t.title||"title";return{title:n,_title:t._title||[n],key:t.key||"key",children:t.children||"children"}}function JI(e){return function e(t){return F(t).map((function(t){if(!function(e){return e&&e.type&&e.type.isTreeNode}(t))return U(!t,"Tree/TreeNode can only accept TreeNode as children."),null;var n=t.key,r=t.props,o=r.children,i=O({key:n},g(r,KI)),a=e(o);return a.length&&(i.children=a),i})).filter((function(e){return e}))}(e)}function eT(e,t,n){var r=ZI(n),o=r._title,i=r.key,a=r.children,l=new Set(!0===t?[]:t),c=[];return function e(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return n.map((function(s,u){for(var d,f=$I(r?r.pos:"0",u),p=QI(s[i],f),h=0;h<o.length;h+=1){var g=o[h];if(void 0!==s[g]){d=s[g];break}}var v=Object.assign(qI(s,[].concat(P(o),[i,a])),{title:d,key:p,parent:r,pos:f,children:null,data:s,isStart:[].concat(P(r?r.isStart:[]),[0===u]),isEnd:[].concat(P(r?r.isEnd:[]),[u===n.length-1])});return c.push(v),!0===t||l.has(p)?v.children=e(s[a]||[],v):v.children=[],v}))}(e),c}function tT(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.initWrapper,r=t.processEntity,o=t.onProcessFinished,i=t.externalGetKey,a=t.childrenPropName,l=t.fieldNames,c=i||(arguments.length>2?arguments[2]:void 0),s={},u={},d={posEntities:s,keyEntities:u};return n&&(d=n(d)||d),function(e,t,n){var r,o=("object"===v(n)?n:{externalGetKey:n})||{},i=o.childrenPropName,a=o.externalGetKey,l=ZI(o.fieldNames),c=l.key,s=l.children,u=i||s;a?"string"===typeof a?r=function(e){return e[a]}:"function"===typeof a&&(r=function(e){return a(e)}):r=function(e,t){return QI(e[c],t)},function n(o,i,a,l){var c=o?o[u]:e,s=o?$I(a.pos,i):"0",d=o?[].concat(P(l),[o]):[];if(o){var f=r(o,s),p={node:o,index:i,pos:s,key:f,parentPos:a.node?a.pos:null,level:a.level+1,nodes:d};t(p)}c&&c.forEach((function(e,t){n(e,t,{node:o,pos:s,level:a?a.level+1:-1},d)}))}(null)}(e,(function(e){var t=e.node,n=e.index,o=e.pos,i=e.key,a=e.parentPos,l=e.level,c={node:t,nodes:e.nodes,index:n,key:i,pos:o,level:l},f=QI(i,o);s[o]=c,u[f]=c,c.parent=s[a],c.parent&&(c.parent.children=c.parent.children||[],c.parent.children.push(c)),r&&r(c,d)}),{externalGetKey:c,childrenPropName:a,fieldNames:l}),o&&o(d),d}function nT(e,t){var n=t.expandedKeys,r=t.selectedKeys,o=t.loadedKeys,i=t.loadingKeys,a=t.checkedKeys,l=t.halfCheckedKeys,c=t.dragOverNodeKey,s=t.dropPosition,u=XI(t.keyEntities,e);return{eventKey:e,expanded:-1!==n.indexOf(e),selected:-1!==r.indexOf(e),loaded:-1!==o.indexOf(e),loading:-1!==i.indexOf(e),checked:-1!==a.indexOf(e),halfChecked:-1!==l.indexOf(e),pos:String(u?u.pos:""),dragOver:c===e&&0===s,dragOverGapTop:c===e&&-1===s,dragOverGapBottom:c===e&&1===s}}function rT(e){var t=e.data,n=e.expanded,r=e.selected,o=e.checked,i=e.loaded,a=e.loading,l=e.halfChecked,c=e.dragOver,s=e.dragOverGapTop,u=e.dragOverGapBottom,d=e.pos,f=e.active,p=e.eventKey,h=O(O({},t),{},{expanded:n,selected:r,checked:o,loaded:i,loading:a,halfChecked:l,dragOver:c,dragOverGapTop:s,dragOverGapBottom:u,pos:d,active:f,key:p});return"props"in h||Object.defineProperty(h,"props",{get:function(){return U(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),h}var oT=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],iT="open",aT="close",lT=function(e){j(n,e);var t=D(n);function n(){var e;M(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return w(I(e=t.call.apply(t,[this].concat(i))),"state",{dragNodeHighlight:!1}),w(I(e),"selectHandle",void 0),w(I(e),"cacheIndent",void 0),w(I(e),"onSelectorClick",(function(t){(0,e.props.context.onNodeClick)(t,rT(e.props)),e.isSelectable()?e.onSelect(t):e.onCheck(t)})),w(I(e),"onSelectorDoubleClick",(function(t){(0,e.props.context.onNodeDoubleClick)(t,rT(e.props))})),w(I(e),"onSelect",(function(t){e.isDisabled()||(0,e.props.context.onNodeSelect)(t,rT(e.props))})),w(I(e),"onCheck",(function(t){if(!e.isDisabled()){var n=e.props,r=n.disableCheckbox,o=n.checked,i=e.props.context.onNodeCheck;if(e.isCheckable()&&!r){var a=!o;i(t,rT(e.props),a)}}})),w(I(e),"onMouseEnter",(function(t){(0,e.props.context.onNodeMouseEnter)(t,rT(e.props))})),w(I(e),"onMouseLeave",(function(t){(0,e.props.context.onNodeMouseLeave)(t,rT(e.props))})),w(I(e),"onContextMenu",(function(t){(0,e.props.context.onNodeContextMenu)(t,rT(e.props))})),w(I(e),"onDragStart",(function(t){var n=e.props.context.onNodeDragStart;t.stopPropagation(),e.setState({dragNodeHighlight:!0}),n(t,I(e));try{t.dataTransfer.setData("text/plain","")}catch(r){}})),w(I(e),"onDragEnter",(function(t){var n=e.props.context.onNodeDragEnter;t.preventDefault(),t.stopPropagation(),n(t,I(e))})),w(I(e),"onDragOver",(function(t){var n=e.props.context.onNodeDragOver;t.preventDefault(),t.stopPropagation(),n(t,I(e))})),w(I(e),"onDragLeave",(function(t){var n=e.props.context.onNodeDragLeave;t.stopPropagation(),n(t,I(e))})),w(I(e),"onDragEnd",(function(t){var n=e.props.context.onNodeDragEnd;t.stopPropagation(),e.setState({dragNodeHighlight:!1}),n(t,I(e))})),w(I(e),"onDrop",(function(t){var n=e.props.context.onNodeDrop;t.preventDefault(),t.stopPropagation(),e.setState({dragNodeHighlight:!1}),n(t,I(e))})),w(I(e),"onExpand",(function(t){var n=e.props,r=n.loading,o=n.context.onNodeExpand;r||o(t,rT(e.props))})),w(I(e),"setSelectHandle",(function(t){e.selectHandle=t})),w(I(e),"getNodeState",(function(){var t=e.props.expanded;return e.isLeaf()?null:t?iT:aT})),w(I(e),"hasChildren",(function(){var t=e.props.eventKey;return!!((XI(e.props.context.keyEntities,t)||{}).children||[]).length})),w(I(e),"isLeaf",(function(){var t=e.props,n=t.isLeaf,r=t.loaded,o=e.props.context.loadData,i=e.hasChildren();return!1!==n&&(n||!o&&!i||o&&r&&!i)})),w(I(e),"isDisabled",(function(){var t=e.props.disabled;return!(!e.props.context.disabled&&!t)})),w(I(e),"isCheckable",(function(){var t=e.props.checkable,n=e.props.context.checkable;return!(!n||!1===t)&&n})),w(I(e),"syncLoadData",(function(t){var n=t.expanded,r=t.loading,o=t.loaded,i=e.props.context,a=i.loadData,l=i.onNodeLoad;r||a&&n&&!e.isLeaf()&&!o&&l(rT(e.props))})),w(I(e),"isDraggable",(function(){var t=e.props,n=t.data,r=t.context.draggable;return!(!r||r.nodeDraggable&&!r.nodeDraggable(n))})),w(I(e),"renderDragHandler",(function(){var t=e.props.context,n=t.draggable,o=t.prefixCls;return null!==n&&void 0!==n&&n.icon?r.createElement("span",{className:"".concat(o,"-draggable-icon")},n.icon):null})),w(I(e),"renderSwitcherIconDom",(function(t){var n=e.props.switcherIcon,r=e.props.context.switcherIcon,o=n||r;return"function"===typeof o?o(O(O({},e.props),{},{isLeaf:t})):o})),w(I(e),"renderSwitcher",(function(){var t=e.props.expanded,n=e.props.context.prefixCls;if(e.isLeaf()){var o=e.renderSwitcherIconDom(!0);return!1!==o?r.createElement("span",{className:c()("".concat(n,"-switcher"),"".concat(n,"-switcher-noop"))},o):null}var i=c()("".concat(n,"-switcher"),"".concat(n,"-switcher_").concat(t?iT:aT)),a=e.renderSwitcherIconDom(!1);return!1!==a?r.createElement("span",{onClick:e.onExpand,className:i},a):null})),w(I(e),"renderCheckbox",(function(){var t=e.props,n=t.checked,o=t.halfChecked,i=t.disableCheckbox,a=e.props.context.prefixCls,l=e.isDisabled(),s=e.isCheckable();if(!s)return null;var u="boolean"!==typeof s?s:null;return r.createElement("span",{className:c()("".concat(a,"-checkbox"),n&&"".concat(a,"-checkbox-checked"),!n&&o&&"".concat(a,"-checkbox-indeterminate"),(l||i)&&"".concat(a,"-checkbox-disabled")),onClick:e.onCheck},u)})),w(I(e),"renderIcon",(function(){var t=e.props.loading,n=e.props.context.prefixCls;return r.createElement("span",{className:c()("".concat(n,"-iconEle"),"".concat(n,"-icon__").concat(e.getNodeState()||"docu"),t&&"".concat(n,"-icon_loading"))})})),w(I(e),"renderSelector",(function(){var t,n,o=e.state.dragNodeHighlight,i=e.props,a=i.title,l=void 0===a?"---":a,s=i.selected,u=i.icon,d=i.loading,f=i.data,p=e.props.context,h=p.prefixCls,g=p.showIcon,v=p.icon,m=p.loadData,y=p.titleRender,b=e.isDisabled(),x="".concat(h,"-node-content-wrapper");if(g){var w=u||v;t=w?r.createElement("span",{className:c()("".concat(h,"-iconEle"),"".concat(h,"-icon__customize"))},"function"===typeof w?w(e.props):w):e.renderIcon()}else m&&d&&(t=e.renderIcon());n="function"===typeof l?l(f):y?y(f):l;var S=r.createElement("span",{className:"".concat(h,"-title")},n);return r.createElement("span",{ref:e.setSelectHandle,title:"string"===typeof l?l:"",className:c()("".concat(x),"".concat(x,"-").concat(e.getNodeState()||"normal"),!b&&(s||o)&&"".concat(h,"-node-selected")),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onContextMenu:e.onContextMenu,onClick:e.onSelectorClick,onDoubleClick:e.onSelectorDoubleClick},t,S,e.renderDropIndicator())})),w(I(e),"renderDropIndicator",(function(){var t=e.props,n=t.disabled,r=t.eventKey,o=e.props.context,i=o.draggable,a=o.dropLevelOffset,l=o.dropPosition,c=o.prefixCls,s=o.indent,u=o.dropIndicatorRender,d=o.dragOverNodeKey,f=o.direction,p=!n&&!!i&&d===r,h=null!==s&&void 0!==s?s:e.cacheIndent;return e.cacheIndent=s,p?u({dropPosition:l,dropLevelOffset:a,indent:h,prefixCls:c,direction:f}):null})),e}return A(n,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var e=this.props.selectable,t=this.props.context.selectable;return"boolean"===typeof e?e:t}},{key:"render",value:function(){var e,t=this.props,n=t.eventKey,o=t.className,i=t.style,a=t.dragOver,l=t.dragOverGapTop,s=t.dragOverGapBottom,u=t.isLeaf,d=t.isStart,f=t.isEnd,p=t.expanded,v=t.selected,m=t.checked,y=t.halfChecked,b=t.loading,x=t.domRef,S=t.active,O=(t.data,t.onMouseMove),_=t.selectable,C=g(t,oT),E=this.props.context,P=E.prefixCls,M=E.filterTreeNode,k=E.keyEntities,A=E.dropContainerKey,I=E.dropTargetKey,T=E.draggingNodeKey,j=this.isDisabled(),L=GC(C,{aria:!0,data:!0}),R=(XI(k,n)||{}).level,D=f[f.length-1],N=this.isDraggable(),F=!j&&N,B=T===n,z=void 0!==_?{"aria-selected":!!_}:void 0;return r.createElement("div",h({ref:x,className:c()(o,"".concat(P,"-treenode"),(e={},w(w(w(w(w(w(w(w(w(w(e,"".concat(P,"-treenode-disabled"),j),"".concat(P,"-treenode-switcher-").concat(p?"open":"close"),!u),"".concat(P,"-treenode-checkbox-checked"),m),"".concat(P,"-treenode-checkbox-indeterminate"),y),"".concat(P,"-treenode-selected"),v),"".concat(P,"-treenode-loading"),b),"".concat(P,"-treenode-active"),S),"".concat(P,"-treenode-leaf-last"),D),"".concat(P,"-treenode-draggable"),N),"dragging",B),w(w(w(w(w(w(e,"drop-target",I===n),"drop-container",A===n),"drag-over",!j&&a),"drag-over-gap-top",!j&&l),"drag-over-gap-bottom",!j&&s),"filter-node",M&&M(rT(this.props))))),style:i,draggable:F,"aria-grabbed":B,onDragStart:F?this.onDragStart:void 0,onDragEnter:N?this.onDragEnter:void 0,onDragOver:N?this.onDragOver:void 0,onDragLeave:N?this.onDragLeave:void 0,onDrop:N?this.onDrop:void 0,onDragEnd:N?this.onDragEnd:void 0,onMouseMove:O},z,L),r.createElement(UI,{prefixCls:P,level:R,isStart:d,isEnd:f}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),n}(r.Component),cT=function(e){return r.createElement(GI.Consumer,null,(function(t){return r.createElement(lT,h({},e,{context:t}))}))};cT.displayName="TreeNode",cT.isTreeNode=1;const sT=cT;function uT(e,t){if(!e)return[];var n=e.slice(),r=n.indexOf(t);return r>=0&&n.splice(r,1),n}function dT(e,t){var n=(e||[]).slice();return-1===n.indexOf(t)&&n.push(t),n}function fT(e){return e.split("-")}function pT(e,t){var n=[];return function e(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((function(t){var r=t.key,o=t.children;n.push(r),e(o)}))}(XI(t,e).children),n}function hT(e){if(e.parent){var t=fT(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function gT(e,t,n,r,o,i,a,l,c,s){var u,d=e.clientX,f=e.clientY,p=e.target.getBoundingClientRect(),h=p.top,g=p.height,v=(("rtl"===s?-1:1)*(((null===o||void 0===o?void 0:o.x)||0)-d)-12)/r,m=c.filter((function(e){var t;return null===(t=l[e])||void 0===t||null===(t=t.children)||void 0===t?void 0:t.length})),y=XI(l,n.props.eventKey);if(f<h+g/2){var b=a.findIndex((function(e){return e.key===y.key})),x=a[b<=0?0:b-1].key;y=XI(l,x)}var w=y.key,S=y,O=y.key,_=0,C=0;if(!m.includes(w))for(var E=0;E<v&&hT(y);E+=1)y=y.parent,C+=1;var P=t.props.data,M=y.node,k=!0;return function(e){var t=fT(e.pos);return 0===Number(t[t.length-1])}(y)&&0===y.level&&f<h+g/2&&i({dragNode:P,dropNode:M,dropPosition:-1})&&y.key===n.props.eventKey?_=-1:(S.children||[]).length&&m.includes(O)?i({dragNode:P,dropNode:M,dropPosition:0})?_=0:k=!1:0===C?v>-1.5?i({dragNode:P,dropNode:M,dropPosition:1})?_=1:k=!1:i({dragNode:P,dropNode:M,dropPosition:0})?_=0:i({dragNode:P,dropNode:M,dropPosition:1})?_=1:k=!1:i({dragNode:P,dropNode:M,dropPosition:1})?_=1:k=!1,{dropPosition:_,dropLevelOffset:C,dropTargetKey:y.key,dropTargetPos:y.pos,dragOverNodeKey:O,dropContainerKey:0===_?null:(null===(u=y.parent)||void 0===u?void 0:u.key)||null,dropAllowed:k}}function vT(e,t){if(e)return t.multiple?e.slice():e.length?[e[0]]:e}function mT(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else{if("object"!==v(e))return U(!1,"`checkedKeys` is not an array or an object"),null;t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0}}return t}function yT(e,t){var n=new Set;function r(e){if(!n.has(e)){var o=XI(t,e);if(o){n.add(e);var i=o.parent;o.node.disabled||i&&r(i.key)}}}return(e||[]).forEach((function(e){r(e)})),P(n)}function bT(e,t){var n=new Set;return e.forEach((function(e){t.has(e)||n.add(e)})),n}function xT(e){var t=e||{},n=t.disabled,r=t.disableCheckbox,o=t.checkable;return!(!n&&!r)||!1===o}function wT(e,t,n,r){var o,i=[];o=r||xT;var a,l=new Set(e.filter((function(e){var t=!!XI(n,e);return t||i.push(e),t}))),c=new Map,s=0;return Object.keys(n).forEach((function(e){var t=n[e],r=t.level,o=c.get(r);o||(o=new Set,c.set(r,o)),o.add(t),s=Math.max(s,r)})),U(!i.length,"Tree missing follow keys: ".concat(i.slice(0,100).map((function(e){return"'".concat(e,"'")})).join(", "))),a=!0===t?function(e,t,n,r){for(var o=new Set(e),i=new Set,a=0;a<=n;a+=1)(t.get(a)||new Set).forEach((function(e){var t=e.key,n=e.node,i=e.children,a=void 0===i?[]:i;o.has(t)&&!r(n)&&a.filter((function(e){return!r(e.node)})).forEach((function(e){o.add(e.key)}))}));for(var l=new Set,c=n;c>=0;c-=1)(t.get(c)||new Set).forEach((function(e){var t=e.parent,n=e.node;if(!r(n)&&e.parent&&!l.has(e.parent.key))if(r(e.parent.node))l.add(t.key);else{var a=!0,c=!1;(t.children||[]).filter((function(e){return!r(e.node)})).forEach((function(e){var t=e.key,n=o.has(t);a&&!n&&(a=!1),c||!n&&!i.has(t)||(c=!0)})),a&&o.add(t.key),c&&i.add(t.key),l.add(t.key)}}));return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(bT(i,o))}}(l,c,s,o):function(e,t,n,r,o){for(var i=new Set(e),a=new Set(t),l=0;l<=r;l+=1)(n.get(l)||new Set).forEach((function(e){var t=e.key,n=e.node,r=e.children,l=void 0===r?[]:r;i.has(t)||a.has(t)||o(n)||l.filter((function(e){return!o(e.node)})).forEach((function(e){i.delete(e.key)}))}));a=new Set;for(var c=new Set,s=r;s>=0;s-=1)(n.get(s)||new Set).forEach((function(e){var t=e.parent,n=e.node;if(!o(n)&&e.parent&&!c.has(e.parent.key))if(o(e.parent.node))c.add(t.key);else{var r=!0,l=!1;(t.children||[]).filter((function(e){return!o(e.node)})).forEach((function(e){var t=e.key,n=i.has(t);r&&!n&&(r=!1),l||!n&&!a.has(t)||(l=!0)})),r||i.delete(t.key),l&&a.add(t.key),c.add(t.key)}}));return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(bT(a,i))}}(l,t.halfCheckedKeys,c,s,o),a}var ST=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],OT=(0,r.forwardRef)((function(e,t){var n=e.prefixCls,o=void 0===n?"rc-checkbox":n,i=e.className,a=e.style,l=e.checked,s=e.disabled,u=e.defaultChecked,d=void 0!==u&&u,f=e.type,p=void 0===f?"checkbox":f,v=e.title,m=e.onChange,y=g(e,ST),b=(0,r.useRef)(null),x=(0,r.useRef)(null),S=gt(Fi(d,{value:l}),2),_=S[0],C=S[1];(0,r.useImperativeHandle)(t,(function(){return{focus:function(e){var t;null===(t=b.current)||void 0===t||t.focus(e)},blur:function(){var e;null===(e=b.current)||void 0===e||e.blur()},input:b.current,nativeElement:x.current}}));var E=c()(o,i,w(w({},"".concat(o,"-checked"),_),"".concat(o,"-disabled"),s));return r.createElement("span",{className:E,title:v,style:a,ref:x},r.createElement("input",h({},y,{className:"".concat(o,"-input"),ref:b,onChange:function(t){s||("checked"in e||C(t.target.checked),null===m||void 0===m||m({target:O(O({},e),{},{type:p,checked:t.target.checked}),stopPropagation:function(){t.stopPropagation()},preventDefault:function(){t.preventDefault()},nativeEvent:t.nativeEvent}))},disabled:s,checked:!!_,type:p})),r.createElement("span",{className:"".concat(o,"-inner")}))}));const _T=OT,CT=r.createContext(null),ET=e=>{const{checkboxCls:t}=e,n="".concat(t,"-wrapper");return[{["".concat(t,"-group")]:Object.assign(Object.assign({},Ur(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,["> ".concat(e.antCls,"-row")]:{flex:1}}),[n]:Object.assign(Object.assign({},Ur(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},["& + ".concat(n)]:{marginInlineStart:0},["&".concat(n,"-in-form-item")]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},Ur(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",["".concat(t,"-input")]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,["&:focus-visible + ".concat(t,"-inner")]:Object.assign({},qr(e))},["".concat(t,"-inner")]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:"".concat(yn(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorBorder),borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:"all ".concat(e.motionDurationSlow),"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:e.calc(e.checkboxSize).div(14).mul(5).equal(),height:e.calc(e.checkboxSize).div(14).mul(8).equal(),border:"".concat(yn(e.lineWidthBold)," solid ").concat(e.colorWhite),borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:"all ".concat(e.motionDurationFast," ").concat(e.motionEaseInBack,", opacity ").concat(e.motionDurationFast)}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{["\n        ".concat(n,":not(").concat(n,"-disabled),\n        ").concat(t,":not(").concat(t,"-disabled)\n      ")]:{["&:hover ".concat(t,"-inner")]:{borderColor:e.colorPrimary}},["".concat(n,":not(").concat(n,"-disabled)")]:{["&:hover ".concat(t,"-checked:not(").concat(t,"-disabled) ").concat(t,"-inner")]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},["&:hover ".concat(t,"-checked:not(").concat(t,"-disabled):after")]:{borderColor:e.colorPrimaryHover}}},{["".concat(t,"-checked")]:{["".concat(t,"-inner")]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:"all ".concat(e.motionDurationMid," ").concat(e.motionEaseOutBack," ").concat(e.motionDurationFast)}}},["\n        ".concat(n,"-checked:not(").concat(n,"-disabled),\n        ").concat(t,"-checked:not(").concat(t,"-disabled)\n      ")]:{["&:hover ".concat(t,"-inner")]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{["".concat(t,"-inner")]:{backgroundColor:"".concat(e.colorBgContainer," !important"),borderColor:"".concat(e.colorBorder," !important"),"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},["&:hover ".concat(t,"-inner")]:{backgroundColor:"".concat(e.colorBgContainer," !important"),borderColor:"".concat(e.colorPrimary," !important")}}}},{["".concat(n,"-disabled")]:{cursor:"not-allowed"},["".concat(t,"-disabled")]:{["&, ".concat(t,"-input")]:{cursor:"not-allowed",pointerEvents:"none"},["".concat(t,"-inner")]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},["&".concat(t,"-indeterminate ").concat(t,"-inner::after")]:{background:e.colorTextDisabled}}}]};function PT(e,t){const n=Ui(t,{checkboxCls:".".concat(e),checkboxSize:t.controlInteractiveSize});return[ET(n)]}const MT=Ol("Checkbox",((e,t)=>{let{prefixCls:n}=t;return[PT(n,e)]}));var kT=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 AT=(e,t)=>{var n;const{prefixCls:o,className:i,rootClassName:a,children:l,indeterminate:s=!1,style:u,onMouseEnter:d,onMouseLeave:p,skipGroup:h=!1,disabled:g}=e,v=kT(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:m,direction:y,checkbox:b}=r.useContext(f),x=r.useContext(CT),{isFormItemInput:w}=r.useContext(It),S=r.useContext(Ms),O=null!==(n=(null===x||void 0===x?void 0:x.disabled)||g)&&void 0!==n?n:S,_=r.useRef(v.value),C=r.useRef(null),E=kc(t,C);r.useEffect((()=>{null===x||void 0===x||x.registerValue(v.value)}),[]),r.useEffect((()=>{if(!h)return v.value!==_.current&&(null===x||void 0===x||x.cancelValue(_.current),null===x||void 0===x||x.registerValue(v.value),_.current=v.value),()=>null===x||void 0===x?void 0:x.cancelValue(v.value)}),[v.value]),r.useEffect((()=>{var e;(null===(e=C.current)||void 0===e?void 0:e.input)&&(C.current.input.indeterminate=s)}),[s]);const P=m("checkbox",o),M=ks(P),[k,A,I]=MT(P,M),T=Object.assign({},v);x&&!h&&(T.onChange=function(){v.onChange&&v.onChange.apply(v,arguments),x.toggleOption&&x.toggleOption({label:l,value:v.value})},T.name=x.name,T.checked=x.value.includes(v.value));const j=c()("".concat(P,"-wrapper"),{["".concat(P,"-rtl")]:"rtl"===y,["".concat(P,"-wrapper-checked")]:T.checked,["".concat(P,"-wrapper-disabled")]:O,["".concat(P,"-wrapper-in-form-item")]:w},null===b||void 0===b?void 0:b.className,i,a,I,M,A),L=c()({["".concat(P,"-indeterminate")]:s},ku,A);return k(r.createElement(Hf,{component:"Checkbox",disabled:O},r.createElement("label",{className:j,style:Object.assign(Object.assign({},null===b||void 0===b?void 0:b.style),u),onMouseEnter:d,onMouseLeave:p},r.createElement(_T,Object.assign({},T,{prefixCls:P,className:L,disabled:O,ref:E})),void 0!==l&&r.createElement("span",null,l))))};const IT=r.forwardRef(AT);var TT=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 jT=r.forwardRef(((e,t)=>{const{defaultValue:n,children:o,options:i=[],prefixCls:a,className:l,rootClassName:s,style:u,onChange:d}=e,p=TT(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:h,direction:g}=r.useContext(f),[v,m]=r.useState(p.value||n||[]),[y,b]=r.useState([]);r.useEffect((()=>{"value"in p&&m(p.value||[])}),[p.value]);const x=r.useMemo((()=>i.map((e=>"string"===typeof e||"number"===typeof e?{label:e,value:e}:e))),[i]),w=h("checkbox",a),S="".concat(w,"-group"),O=ks(w),[_,C,E]=MT(w,O),P=hu(p,["value","disabled"]),M=i.length?x.map((e=>r.createElement(IT,{prefixCls:w,key:e.value.toString(),disabled:"disabled"in e?e.disabled:p.disabled,value:e.value,checked:v.includes(e.value),onChange:e.onChange,className:"".concat(S,"-item"),style:e.style,title:e.title,id:e.id,required:e.required},e.label))):o,k={toggleOption:e=>{const t=v.indexOf(e.value),n=Ds(v);-1===t?n.push(e.value):n.splice(t,1),"value"in p||m(n),null===d||void 0===d||d(n.filter((e=>y.includes(e))).sort(((e,t)=>x.findIndex((t=>t.value===e))-x.findIndex((e=>e.value===t)))))},value:v,disabled:p.disabled,name:p.name,registerValue:e=>{b((t=>[].concat(Ds(t),[e])))},cancelValue:e=>{b((t=>t.filter((t=>t!==e))))}},A=c()(S,{["".concat(S,"-rtl")]:"rtl"===g},l,s,E,O,C);return _(r.createElement("div",Object.assign({className:A,style:u},P,{ref:t}),r.createElement(CT.Provider,{value:k},M)))})),LT=jT,RT=IT;RT.Group=LT,RT.__ANT_CHECKBOX=!0;const DT=RT;const NT={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"};var FT=function(e,t){return r.createElement(xs,qc({},e,{ref:t,icon:NT}))};const BT=r.forwardRef(FT);var zT=BC.ESC,HT=BC.TAB;const WT=(0,r.forwardRef)((function(e,t){var n=e.overlay,o=e.arrow,i=e.prefixCls,a=(0,r.useMemo)((function(){return"function"===typeof n?n():n}),[n]),l=zi(t,null===a||void 0===a?void 0:a.ref);return r.createElement(r.Fragment,null,o&&r.createElement("div",{className:"".concat(i,"-arrow")}),r.cloneElement(a,{ref:Wi(a)?l:void 0}))}));var VT={adjustX:1,adjustY:1},GT=[0,0];const YT={topLeft:{points:["bl","tl"],overflow:VT,offset:[0,-4],targetOffset:GT},top:{points:["bc","tc"],overflow:VT,offset:[0,-4],targetOffset:GT},topRight:{points:["br","tr"],overflow:VT,offset:[0,-4],targetOffset:GT},bottomLeft:{points:["tl","bl"],overflow:VT,offset:[0,4],targetOffset:GT},bottom:{points:["tc","bc"],overflow:VT,offset:[0,4],targetOffset:GT},bottomRight:{points:["tr","br"],overflow:VT,offset:[0,4],targetOffset:GT}};var UT=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function XT(e,t){var n,o=e.arrow,i=void 0!==o&&o,a=e.prefixCls,l=void 0===a?"rc-dropdown":a,s=e.transitionName,u=e.animation,d=e.align,f=e.placement,p=void 0===f?"bottomLeft":f,v=e.placements,m=void 0===v?YT:v,y=e.getPopupContainer,b=e.showAction,x=e.hideAction,S=e.overlayClassName,O=e.overlayStyle,_=e.visible,C=e.trigger,E=void 0===C?["hover"]:C,P=e.autoFocus,M=e.overlay,k=e.children,A=e.onVisibleChange,I=g(e,UT),T=gt(r.useState(),2),j=T[0],L=T[1],R="visible"in e?_:j,D=r.useRef(null),N=r.useRef(null),F=r.useRef(null);r.useImperativeHandle(t,(function(){return D.current}));var B=function(e){L(e),null===A||void 0===A||A(e)};!function(e){var t=e.visible,n=e.triggerRef,o=e.onVisibleChange,i=e.autoFocus,a=e.overlayRef,l=r.useRef(!1),c=function(){var e,r;t&&(null===(e=n.current)||void 0===e||null===(r=e.focus)||void 0===r||r.call(e),null===o||void 0===o||o(!1))},s=function(){var e;return!(null===(e=a.current)||void 0===e||!e.focus)&&(a.current.focus(),l.current=!0,!0)},u=function(e){switch(e.keyCode){case zT:c();break;case HT:var t=!1;l.current||(t=s()),t?e.preventDefault():c()}};r.useEffect((function(){return t?(window.addEventListener("keydown",u),i&&tg(s,3),function(){window.removeEventListener("keydown",u),l.current=!1}):function(){l.current=!1}}),[t])}({visible:R,triggerRef:F,onVisibleChange:B,autoFocus:P,overlayRef:N});var z=function(){return r.createElement(WT,{ref:N,overlay:M,prefixCls:l,arrow:i})},H=r.cloneElement(k,{className:c()(null===(n=k.props)||void 0===n?void 0:n.className,R&&function(){var t=e.openClassName;return void 0!==t?t:"".concat(l,"-open")}()),ref:Wi(k)?zi(F,k.ref):void 0}),W=x;return W||-1===E.indexOf("contextMenu")||(W=["click"]),r.createElement(dm,h({builtinPlacements:m},I,{prefixCls:l,ref:D,popupClassName:c()(S,w({},"".concat(l,"-show-arrow"),i)),popupStyle:O,action:E,showAction:b,hideAction:W,popupPlacement:p,popupAlign:d,popupTransitionName:s,popupAnimation:u,popupVisible:R,stretch:function(){var t=e.minOverlayWidthMatchTrigger,n=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?t:!n}()?"minWidth":"",popup:"function"===typeof M?z:z(),onPopupVisibleChange:B,onPopupClick:function(t){var n=e.onOverlayClick;L(!1),n&&n(t)},getPopupContainer:y}),H)}const qT=r.forwardRef(XT);var KT=r.createContext(null);function $T(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function QT(e){return $T(r.useContext(KT),e)}var ZT=["children","locked"],JT=r.createContext(null);function ej(e){var t=e.children,n=e.locked,o=g(e,ZT),i=r.useContext(JT),a=qt((function(){return function(e,t){var n=O({},e);return Object.keys(t).forEach((function(e){var r=t[e];void 0!==r&&(n[e]=r)})),n}(i,o)}),[i,o],(function(e,t){return!n&&(e[0]!==t[0]||!X(e[1],t[1],!0))}));return r.createElement(JT.Provider,{value:a},t)}var tj=[],nj=r.createContext(null);function rj(){return r.useContext(nj)}var oj=r.createContext(tj);function ij(e){var t=r.useContext(oj);return r.useMemo((function(){return void 0!==e?[].concat(P(t),[e]):t}),[t,e])}var aj=r.createContext(null);const lj=r.createContext({});function cj(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(Qv(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}function sj(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=P(e.querySelectorAll("*")).filter((function(e){return cj(e,t)}));return cj(e,t)&&n.unshift(e),n}var uj=BC.LEFT,dj=BC.RIGHT,fj=BC.UP,pj=BC.DOWN,hj=BC.ENTER,gj=BC.ESC,vj=BC.HOME,mj=BC.END,yj=[fj,pj,uj,dj];function bj(e,t){return sj(e,!0).filter((function(e){return t.has(e)}))}function xj(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var o=bj(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 wj=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($T(t,e),"']"));i&&(n.add(i),o.set(i,e),r.set(e,i))})),{elements:n,key2element:r,element2key:o}};function Sj(e,t,n,o,i,a,l,c,s,u){var d=r.useRef(),f=r.useRef();f.current=t;var p=function(){tg.cancel(d.current)};return r.useEffect((function(){return function(){p()}}),[]),function(r){var h=r.which;if([].concat(yj,[hj,gj,vj,mj]).includes(h)){var g=a(),v=wj(g,o),m=v,y=m.elements,b=m.key2element,x=m.element2key,S=function(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}(b.get(t),y),O=x.get(S),_=function(e,t,n,r){var o,i="prev",a="next",l="children",c="parent";if("inline"===e&&r===hj)return{inlineTrigger:!0};var s=w(w({},fj,i),pj,a),u=w(w(w(w({},uj,n?a:i),dj,n?i:a),pj,l),hj,l),d=w(w(w(w(w(w({},fj,i),pj,a),hj,l),gj,c),uj,n?l:c),dj,n?c:l);switch(null===(o={inline:s,horizontal:u,vertical:d,inlineSub:s,horizontalSub:d,verticalSub:d}["".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 c:return{offset:-1,sibling:!1};case l:return{offset:1,sibling:!1};default:return null}}(e,1===l(O,!0).length,n,h);if(!_&&h!==vj&&h!==mj)return;(yj.includes(h)||[vj,mj].includes(h))&&r.preventDefault();var C=function(e){if(e){var t=e,n=e.querySelector("a");null!==n&&void 0!==n&&n.getAttribute("href")&&(t=n);var r=x.get(e);c(r),p(),d.current=tg((function(){f.current===r&&t.focus()}))}};if([vj,mj].includes(h)||_.sibling||!S){var E,P,M=bj(E=S&&"inline"!==e?function(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}(S):i.current,y);P=h===vj?M[0]:h===mj?M[M.length-1]:xj(E,y,S,_.offset),C(P)}else if(_.inlineTrigger)s(O);else if(_.offset>0)s(O,!0),p(),d.current=tg((function(){v=wj(g,o);var e=S.getAttribute("aria-controls"),t=xj(document.getElementById(e),v.elements);C(t)}),5);else if(_.offset<0){var k=l(O,!0),A=k[k.length-2],I=b.get(A);s(A,!1),C(I)}}null===u||void 0===u||u(r)}}var Oj="__RC_UTIL_PATH_SPLIT__",_j=function(e){return e.join(Oj)},Cj="rc-menu-more";function Ej(){var e=gt(r.useState({}),2)[1],t=(0,r.useRef)(new Map),n=(0,r.useRef)(new Map),o=gt(r.useState([]),2),i=o[0],a=o[1],l=(0,r.useRef)(0),c=(0,r.useRef)(!1),s=(0,r.useCallback)((function(r,o){var i=_j(o);n.current.set(i,r),t.current.set(r,i),l.current+=1;var a,s=l.current;a=function(){s===l.current&&(c.current||e({}))},Promise.resolve().then(a)}),[]),u=(0,r.useCallback)((function(e,r){var o=_j(r);n.current.delete(o),t.current.delete(e)}),[]),d=(0,r.useCallback)((function(e){a(e)}),[]),f=(0,r.useCallback)((function(e,n){var r=t.current.get(e)||"",o=r.split(Oj);return n&&i.includes(o[0])&&o.unshift(Cj),o}),[i]),p=(0,r.useCallback)((function(e,t){return e.filter((function(e){return void 0!==e})).some((function(e){return f(e,!0).includes(t)}))}),[f]),h=(0,r.useCallback)((function(e){var r="".concat(t.current.get(e)).concat(Oj),o=new Set;return P(n.current.keys()).forEach((function(e){e.startsWith(r)&&o.add(n.current.get(e))})),o}),[]);return r.useEffect((function(){return function(){c.current=!0}}),[]),{registerPath:s,unregisterPath:u,refreshOverflowKeys:d,isSubPathKey:p,getKeyPath:f,getKeys:function(){var e=P(t.current.keys());return i.length&&e.push(Cj),e},getSubPathKeys:h}}function Pj(e){var t=r.useRef(e);t.current=e;var n=r.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 Mj=Math.random().toFixed(5).toString().slice(2),kj=0;function Aj(e,t,n,o){var i=r.useContext(JT),a=i.activeKey,l=i.onActive,c=i.onInactive,s={active:a===e};return t||(s.onMouseEnter=function(t){null===n||void 0===n||n({key:e,domEvent:t}),l(e)},s.onMouseLeave=function(t){null===o||void 0===o||o({key:e,domEvent:t}),c(e)}),s}function Ij(e){var t=r.useContext(JT),n=t.mode,o=t.rtl,i=t.inlineIndent;if("inline"!==n)return null;return o?{paddingRight:e*i}:{paddingLeft:e*i}}function Tj(e){var t,n=e.icon,o=e.props,i=e.children;return null===n||!1===n?null:("function"===typeof n?t=r.createElement(n,O({},o)):"boolean"!==typeof n&&(t=n),t||i||null)}var jj=["item"];function Lj(e){var t=e.item,n=g(e,jj);return Object.defineProperty(n,"item",{get:function(){return U(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var Rj=["title","attribute","elementRef"],Dj=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],Nj=["active"],Fj=function(e){j(n,e);var t=D(n);function n(){return M(this,n),t.apply(this,arguments)}return A(n,[{key:"render",value:function(){var e=this.props,t=e.title,n=e.attribute,o=e.elementRef,i=qI(g(e,Rj),["eventKey","popupClassName","popupOffset","onTitleClick"]);return U(!n,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),r.createElement(Ex.Item,h({},n,{title:"string"===typeof t?t:void 0},i,{ref:o}))}}]),n}(r.Component),Bj=r.forwardRef((function(e,t){var n=e.style,o=e.className,i=e.eventKey,a=(e.warnKey,e.disabled),l=e.itemIcon,s=e.children,u=e.role,d=e.onMouseEnter,f=e.onMouseLeave,p=e.onClick,v=e.onKeyDown,m=e.onFocus,y=g(e,Dj),b=QT(i),x=r.useContext(JT),S=x.prefixCls,_=x.onItemClick,C=x.disabled,E=x.overflowDisabled,M=x.itemIcon,k=x.selectedKeys,A=x.onActive,I=r.useContext(lj)._internalRenderMenuItem,T="".concat(S,"-item"),j=r.useRef(),L=r.useRef(),R=C||a,D=Hi(t,L),N=ij(i);var F=function(e){return{key:i,keyPath:P(N).reverse(),item:j.current,domEvent:e}},B=l||M,z=Aj(i,R,d,f),H=z.active,W=g(z,Nj),V=k.includes(i),G=Ij(N.length),Y={};"option"===e.role&&(Y["aria-selected"]=V);var U=r.createElement(Fj,h({ref:j,elementRef:D,role:null===u?"none":u||"menuitem",tabIndex:a?null:-1,"data-menu-id":E&&b?null:b},y,W,Y,{component:"li","aria-disabled":a,style:O(O({},G),n),className:c()(T,w(w(w({},"".concat(T,"-active"),H),"".concat(T,"-selected"),V),"".concat(T,"-disabled"),R),o),onClick:function(e){if(!R){var t=F(e);null===p||void 0===p||p(Lj(t)),_(t)}},onKeyDown:function(e){if(null===v||void 0===v||v(e),e.which===BC.ENTER){var t=F(e);null===p||void 0===p||p(Lj(t)),_(t)}},onFocus:function(e){A(i),null===m||void 0===m||m(e)}}),s,r.createElement(Tj,{props:O(O({},e),{},{isSelected:V}),icon:B}));return I&&(U=I(U,e,{selected:V})),U}));function zj(e,t){var n=e.eventKey,o=rj(),i=ij(n);return r.useEffect((function(){if(o)return o.registerPath(n,i),function(){o.unregisterPath(n,i)}}),[i]),o?null:r.createElement(Bj,h({},e,{ref:t}))}const Hj=r.forwardRef(zj);var Wj=["className","children"],Vj=function(e,t){var n=e.className,o=e.children,i=g(e,Wj),a=r.useContext(JT),l=a.prefixCls,s=a.mode,u=a.rtl;return r.createElement("ul",h({className:c()(l,u&&"".concat(l,"-rtl"),"".concat(l,"-sub"),"".concat(l,"-").concat("inline"===s?"inline":"vertical"),n),role:"menu"},i,{"data-menu-list":!0,ref:t}),o)},Gj=r.forwardRef(Vj);Gj.displayName="SubMenuList";const Yj=Gj;function Uj(e,t){return F(e).map((function(e,n){if(r.isValidElement(e)){var o,i,a=e.key,l=null!==(o=null===(i=e.props)||void 0===i?void 0:i.eventKey)&&void 0!==o?o:a;(null===l||void 0===l)&&(l="tmp_key-".concat([].concat(P(t),[n]).join("-")));var c={key:l,eventKey:l};return r.cloneElement(e,c)}return e}))}var Xj={adjustX:1,adjustY:1},qj={topLeft:{points:["bl","tl"],overflow:Xj},topRight:{points:["br","tr"],overflow:Xj},bottomLeft:{points:["tl","bl"],overflow:Xj},bottomRight:{points:["tr","br"],overflow:Xj},leftTop:{points:["tr","tl"],overflow:Xj},leftBottom:{points:["br","bl"],overflow:Xj},rightTop:{points:["tl","tr"],overflow:Xj},rightBottom:{points:["bl","br"],overflow:Xj}},Kj={topLeft:{points:["bl","tl"],overflow:Xj},topRight:{points:["br","tr"],overflow:Xj},bottomLeft:{points:["tl","bl"],overflow:Xj},bottomRight:{points:["tr","br"],overflow:Xj},rightTop:{points:["tr","tl"],overflow:Xj},rightBottom:{points:["br","bl"],overflow:Xj},leftTop:{points:["tl","tr"],overflow:Xj},leftBottom:{points:["bl","br"],overflow:Xj}};function $j(e,t,n){return t||(n?n[e]||n.other:void 0)}var Qj={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function Zj(e){var t=e.prefixCls,n=e.visible,o=e.children,i=e.popup,a=e.popupStyle,l=e.popupClassName,s=e.popupOffset,u=e.disabled,d=e.mode,f=e.onVisibleChange,p=r.useContext(JT),h=p.getPopupContainer,g=p.rtl,v=p.subMenuOpenDelay,m=p.subMenuCloseDelay,y=p.builtinPlacements,b=p.triggerSubMenuAction,x=p.forceSubMenuRender,S=p.rootClassName,_=p.motion,C=p.defaultMotions,E=gt(r.useState(!1),2),P=E[0],M=E[1],k=O(O({},g?Kj:qj),y),A=Qj[d],I=$j(d,_,C),T=r.useRef(I);"inline"!==d&&(T.current=I);var j=O(O({},T.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),L=r.useRef();return r.useEffect((function(){return L.current=tg((function(){M(n)})),function(){tg.cancel(L.current)}}),[n]),r.createElement(dm,{prefixCls:t,popupClassName:c()("".concat(t,"-popup"),w({},"".concat(t,"-rtl"),g),l,S),stretch:"horizontal"===d?"minWidth":null,getPopupContainer:h,builtinPlacements:k,popupPlacement:A,popupVisible:P,popup:i,popupStyle:a,popupAlign:s&&{offset:s},action:u?[]:[b],mouseEnterDelay:v,mouseLeaveDelay:m,onPopupVisibleChange:f,forceRender:x,popupMotion:j,fresh:!0},o)}function Jj(e){var t=e.id,n=e.open,o=e.keyPath,i=e.children,a="inline",l=r.useContext(JT),c=l.prefixCls,s=l.forceSubMenuRender,u=l.motion,d=l.defaultMotions,f=l.mode,p=r.useRef(!1);p.current=f===a;var g=gt(r.useState(!p.current),2),v=g[0],m=g[1],y=!!p.current&&n;r.useEffect((function(){p.current&&m(!1)}),[f]);var b=O({},$j(a,u,d));o.length>1&&(b.motionAppear=!1);var x=b.onVisibleChanged;return b.onVisibleChanged=function(e){return p.current||e||m(!0),null===x||void 0===x?void 0:x(e)},v?null:r.createElement(ej,{mode:a,locked:!p.current},r.createElement(zv,h({visible:y},b,{forceRender:s,removeOnLeave:!1,leavedClassName:"".concat(c,"-hidden")}),(function(e){var n=e.className,o=e.style;return r.createElement(Yj,{id:t,className:n,style:o},i)})))}var eL=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],tL=["active"],nL=r.forwardRef((function(e,t){var n=e.style,o=e.className,i=e.title,a=e.eventKey,l=(e.warnKey,e.disabled),s=e.internalPopupClose,u=e.children,d=e.itemIcon,f=e.expandIcon,p=e.popupClassName,v=e.popupOffset,m=e.popupStyle,y=e.onClick,b=e.onMouseEnter,x=e.onMouseLeave,S=e.onTitleClick,_=e.onTitleMouseEnter,C=e.onTitleMouseLeave,E=g(e,eL),P=QT(a),M=r.useContext(JT),k=M.prefixCls,A=M.mode,I=M.openKeys,T=M.disabled,j=M.overflowDisabled,L=M.activeKey,R=M.selectedKeys,D=M.itemIcon,N=M.expandIcon,F=M.onItemClick,B=M.onOpenChange,z=M.onActive,H=r.useContext(lj)._internalRenderSubMenuItem,W=r.useContext(aj).isSubPathKey,V=ij(),G="".concat(k,"-submenu"),Y=T||l,U=r.useRef(),X=r.useRef();var q=null!==d&&void 0!==d?d:D,K=null!==f&&void 0!==f?f:N,$=I.includes(a),Q=!j&&$,Z=W(R,a),J=Aj(a,Y,_,C),ee=J.active,te=g(J,tL),ne=gt(r.useState(!1),2),re=ne[0],oe=ne[1],ie=function(e){Y||oe(e)},ae=r.useMemo((function(){return ee||"inline"!==A&&(re||W([L],a))}),[A,ee,L,re,a,W]),le=Ij(V.length),ce=Pj((function(e){null===y||void 0===y||y(Lj(e)),F(e)})),se=P&&"".concat(P,"-popup"),ue=r.createElement("div",h({role:"menuitem",style:le,className:"".concat(G,"-title"),tabIndex:Y?null:-1,ref:U,title:"string"===typeof i?i:null,"data-menu-id":j&&P?null:P,"aria-expanded":Q,"aria-haspopup":!0,"aria-controls":se,"aria-disabled":Y,onClick:function(e){Y||(null===S||void 0===S||S({key:a,domEvent:e}),"inline"===A&&B(a,!$))},onFocus:function(){z(a)}},te),i,r.createElement(Tj,{icon:"horizontal"!==A?K:void 0,props:O(O({},e),{},{isOpen:Q,isSubMenu:!0})},r.createElement("i",{className:"".concat(G,"-arrow")}))),de=r.useRef(A);if("inline"!==A&&V.length>1?de.current="vertical":de.current=A,!j){var fe=de.current;ue=r.createElement(Zj,{mode:fe,prefixCls:G,visible:!s&&Q&&"inline"!==A,popupClassName:p,popupOffset:v,popupStyle:m,popup:r.createElement(ej,{mode:"horizontal"===fe?"vertical":fe},r.createElement(Yj,{id:se,ref:X},u)),disabled:Y,onVisibleChange:function(e){"inline"!==A&&B(a,e)}},ue)}var pe=r.createElement(Ex.Item,h({ref:t,role:"none"},E,{component:"li",style:n,className:c()(G,"".concat(G,"-").concat(A),o,w(w(w(w({},"".concat(G,"-open"),Q),"".concat(G,"-active"),ae),"".concat(G,"-selected"),Z),"".concat(G,"-disabled"),Y)),onMouseEnter:function(e){ie(!0),null===b||void 0===b||b({key:a,domEvent:e})},onMouseLeave:function(e){ie(!1),null===x||void 0===x||x({key:a,domEvent:e})}}),ue,!j&&r.createElement(Jj,{id:se,open:Q,keyPath:V},u));return H&&(pe=H(pe,e,{selected:Z,active:ae,open:Q,disabled:Y})),r.createElement(ej,{onItemClick:ce,mode:"horizontal"===A?"vertical":A,itemIcon:q,expandIcon:K},pe)}));const rL=r.forwardRef((function(e,t){var n,o=e.eventKey,i=e.children,a=ij(o),l=Uj(i,a),c=rj();return r.useEffect((function(){if(c)return c.registerPath(o,a),function(){c.unregisterPath(o,a)}}),[a]),n=c?l:r.createElement(nL,h({ref:t},e),l),r.createElement(oj.Provider,{value:a},n)}));function oL(e){var t=e.className,n=e.style,o=r.useContext(JT).prefixCls;return rj()?null:r.createElement("li",{role:"separator",className:c()("".concat(o,"-item-divider"),t),style:n})}var iL=["className","title","eventKey","children"],aL=r.forwardRef((function(e,t){var n=e.className,o=e.title,i=(e.eventKey,e.children),a=g(e,iL),l=r.useContext(JT).prefixCls,s="".concat(l,"-item-group");return r.createElement("li",h({ref:t,role:"presentation"},a,{onClick:function(e){return e.stopPropagation()},className:c()(s,n)}),r.createElement("div",{role:"presentation",className:"".concat(s,"-title"),title:"string"===typeof o?o:void 0},o),r.createElement("ul",{role:"group",className:"".concat(s,"-list")},i))}));const lL=r.forwardRef((function(e,t){var n=e.eventKey,o=Uj(e.children,ij(n));return rj()?o:r.createElement(aL,h({ref:t},qI(e,["warnKey"])),o)}));var cL=["label","children","key","type","extra"];function sL(e,t,n){var o=t.item,i=t.group,a=t.submenu,l=t.divider;return(e||[]).map((function(e,c){if(e&&"object"===v(e)){var s=e,u=s.label,d=s.children,f=s.key,p=s.type,m=s.extra,y=g(s,cL),b=null!==f&&void 0!==f?f:"tmp-".concat(c);return d||"group"===p?"group"===p?r.createElement(i,h({key:b},y,{title:u}),sL(d,t,n)):r.createElement(a,h({key:b},y,{title:u}),sL(d,t,n)):"divider"===p?r.createElement(l,h({key:b},y)):r.createElement(o,h({key:b},y),u,(!!m||0===m)&&r.createElement("span",{className:"".concat(n,"-item-extra")},m))}return null})).filter((function(e){return e}))}function uL(e,t,n,r,o){var i=e,a=O({divider:oL,item:Hj,group:lL,submenu:rL},r);return t&&(i=sL(t,a,o)),Uj(i,n)}var dL=["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"],fL=[],pL=r.forwardRef((function(e,t){var n,o=e,i=o.prefixCls,a=void 0===i?"rc-menu":i,l=o.rootClassName,s=o.style,u=o.className,d=o.tabIndex,f=void 0===d?0:d,p=o.items,v=o.children,m=o.direction,y=o.id,b=o.mode,x=void 0===b?"vertical":b,S=o.inlineCollapsed,_=o.disabled,C=o.disabledOverflow,E=o.subMenuOpenDelay,M=void 0===E?.1:E,k=o.subMenuCloseDelay,A=void 0===k?.1:k,I=o.forceSubMenuRender,T=o.defaultOpenKeys,j=o.openKeys,L=o.activeKey,R=o.defaultActiveFirst,D=o.selectable,N=void 0===D||D,F=o.multiple,B=void 0!==F&&F,z=o.defaultSelectedKeys,H=o.selectedKeys,W=o.onSelect,V=o.onDeselect,G=o.inlineIndent,Y=void 0===G?24:G,U=o.motion,q=o.defaultMotions,K=o.triggerSubMenuAction,$=void 0===K?"hover":K,Q=o.builtinPlacements,Z=o.itemIcon,J=o.expandIcon,ee=o.overflowedIndicator,te=void 0===ee?"...":ee,ne=o.overflowedIndicatorPopupClassName,re=o.getPopupContainer,oe=o.onClick,ie=o.onOpenChange,ae=o.onKeyDown,le=(o.openAnimation,o.openTransitionName,o._internalRenderMenuItem),ce=o._internalRenderSubMenuItem,se=o._internalComponents,ue=g(o,dL),de=gt(r.useMemo((function(){return[uL(v,p,fL,se,a),uL(v,p,fL,{},a)]}),[v,p,se]),2),fe=de[0],pe=de[1],he=gt(r.useState(!1),2),ge=he[0],ve=he[1],me=r.useRef(),ye=function(e){var t=gt(Fi(e,{value:e}),2),n=t[0],o=t[1];return r.useEffect((function(){kj+=1;var e="".concat(Mj,"-").concat(kj);o("rc-menu-uuid-".concat(e))}),[]),n}(y),be="rtl"===m;var xe=Fi(T,{value:j,postState:function(e){return e||fL}}),we=gt(xe,2),Se=we[0],Oe=we[1],_e=function(e){function t(){Oe(e),null===ie||void 0===ie||ie(e)}arguments.length>1&&void 0!==arguments[1]&&arguments[1]?(0,Nu.flushSync)(t):t()},Ce=gt(r.useState(Se),2),Ee=Ce[0],Pe=Ce[1],Me=r.useRef(!1),ke=gt(r.useMemo((function(){return"inline"!==x&&"vertical"!==x||!S?[x,!1]:["vertical",S]}),[x,S]),2),Ae=ke[0],Ie=ke[1],Te="inline"===Ae,je=gt(r.useState(Ae),2),Le=je[0],Re=je[1],De=gt(r.useState(Ie),2),Ne=De[0],Fe=De[1];r.useEffect((function(){Re(Ae),Fe(Ie),Me.current&&(Te?Oe(Ee):_e(fL))}),[Ae,Ie]);var Be=gt(r.useState(0),2),ze=Be[0],He=Be[1],We=ze>=fe.length-1||"horizontal"!==Le||C;r.useEffect((function(){Te&&Pe(Se)}),[Se]),r.useEffect((function(){return Me.current=!0,function(){Me.current=!1}}),[]);var Ve=Ej(),Ge=Ve.registerPath,Ye=Ve.unregisterPath,Ue=Ve.refreshOverflowKeys,Xe=Ve.isSubPathKey,qe=Ve.getKeyPath,Ke=Ve.getKeys,$e=Ve.getSubPathKeys,Qe=r.useMemo((function(){return{registerPath:Ge,unregisterPath:Ye}}),[Ge,Ye]),Ze=r.useMemo((function(){return{isSubPathKey:Xe}}),[Xe]);r.useEffect((function(){Ue(We?fL:fe.slice(ze+1).map((function(e){return e.key})))}),[ze,We]);var Je=gt(Fi(L||R&&(null===(n=fe[0])||void 0===n?void 0:n.key),{value:L}),2),et=Je[0],tt=Je[1],nt=Pj((function(e){tt(e)})),rt=Pj((function(){tt(void 0)}));(0,r.useImperativeHandle)(t,(function(){return{list:me.current,focus:function(e){var t,n,r=Ke(),o=wj(r,ye),i=o.elements,a=o.key2element,l=o.element2key,c=bj(me.current,i),s=null!==et&&void 0!==et?et:c[0]?l.get(c[0]):null===(t=fe.find((function(e){return!e.props.disabled})))||void 0===t?void 0:t.key,u=a.get(s);s&&u&&(null===u||void 0===u||null===(n=u.focus)||void 0===n||n.call(u,e))}}}));var ot=Fi(z||[],{value:H,postState:function(e){return Array.isArray(e)?e:null===e||void 0===e?fL:[e]}}),it=gt(ot,2),at=it[0],lt=it[1],ct=Pj((function(e){null===oe||void 0===oe||oe(Lj(e)),function(e){if(N){var t,n=e.key,r=at.includes(n);t=B?r?at.filter((function(e){return e!==n})):[].concat(P(at),[n]):[n],lt(t);var o=O(O({},e),{},{selectedKeys:t});r?null===V||void 0===V||V(o):null===W||void 0===W||W(o)}!B&&Se.length&&"inline"!==Le&&_e(fL)}(e)})),st=Pj((function(e,t){var n=Se.filter((function(t){return t!==e}));if(t)n.push(e);else if("inline"!==Le){var r=$e(e);n=n.filter((function(e){return!r.has(e)}))}X(Se,n,!0)||_e(n,!0)})),ut=Sj(Le,et,be,ye,me,Ke,qe,tt,(function(e,t){var n=null!==t&&void 0!==t?t:!Se.includes(e);st(e,n)}),ae);r.useEffect((function(){ve(!0)}),[]);var dt=r.useMemo((function(){return{_internalRenderMenuItem:le,_internalRenderSubMenuItem:ce}}),[le,ce]),ft="horizontal"!==Le||C?fe:fe.map((function(e,t){return r.createElement(ej,{key:e.key,overflowDisabled:t>ze},e)})),pt=r.createElement(Ex,h({id:y,ref:me,prefixCls:"".concat(a,"-overflow"),component:"ul",itemComponent:Hj,className:c()(a,"".concat(a,"-root"),"".concat(a,"-").concat(Le),u,w(w({},"".concat(a,"-inline-collapsed"),Ne),"".concat(a,"-rtl"),be),l),dir:m,style:s,role:"menu",tabIndex:f,data:ft,renderRawItem:function(e){return e},renderRawRest:function(e){var t=e.length,n=t?fe.slice(-t):null;return r.createElement(rL,{eventKey:Cj,title:te,disabled:We,internalPopupClose:0===t,popupClassName:ne},n)},maxCount:"horizontal"!==Le||C?Ex.INVALIDATE:Ex.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){He(e)},onKeyDown:ut},ue));return r.createElement(lj.Provider,{value:dt},r.createElement(KT.Provider,{value:ye},r.createElement(ej,{prefixCls:a,rootClassName:l,mode:Le,openKeys:Se,rtl:be,disabled:_,motion:ge?U:null,defaultMotions:ge?q:null,activeKey:et,onActive:nt,onInactive:rt,selectedKeys:at,inlineIndent:Y,subMenuOpenDelay:M,subMenuCloseDelay:A,forceSubMenuRender:I,builtinPlacements:Q,triggerSubMenuAction:$,getPopupContainer:re,itemIcon:Z,expandIcon:J,onItemClick:ct,onOpenChange:st},r.createElement(aj.Provider,{value:Ze},pt),r.createElement("div",{style:{display:"none"},"aria-hidden":!0},r.createElement(nj.Provider,{value:Qe},pe)))))}));var hL=pL;hL.Item=Hj,hL.SubMenu=rL,hL.ItemGroup=lL,hL.Divider=oL;const gL=hL;const vL={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"};var mL=function(e,t){return r.createElement(xs,qc({},e,{ref:t,icon:vL}))};const yL=r.forwardRef(mL);const bL={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};var xL=function(e,t){return r.createElement(xs,qc({},e,{ref:t,icon:bL}))};const wL=r.forwardRef(xL),SL=e=>!isNaN(parseFloat(e))&&isFinite(e),OL=r.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),_L=e=>{const{antCls:t,componentCls:n,colorText:r,footerBg:o,headerHeight:i,headerPadding:a,headerColor:l,footerPadding:c,fontSize:s,bodyBg:u,headerBg:d}=e;return{[n]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:u,"&, *":{boxSizing:"border-box"},["&".concat(n,"-has-sider")]:{flexDirection:"row",["> ".concat(n,", > ").concat(n,"-content")]:{width:0}},["".concat(n,"-header, &").concat(n,"-footer")]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},["".concat(n,"-header")]:{height:i,padding:a,color:l,lineHeight:yn(i),background:d,["".concat(t,"-menu")]:{lineHeight:"inherit"}},["".concat(n,"-footer")]:{padding:c,color:r,fontSize:s,background:o},["".concat(n,"-content")]:{flex:"auto",color:r,minHeight:0}}},CL=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:o,controlHeightSM:i,marginXXS:a,colorTextLightSolid:l,colorBgContainer:c}=e,s=1.25*r;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:2*n,headerPadding:"0 ".concat(s,"px"),headerColor:o,footerPadding:"".concat(i,"px ").concat(s,"px"),footerBg:t,siderBg:"#001529",triggerHeight:r+2*a,triggerBg:"#002140",triggerColor:l,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:c,lightTriggerBg:c,lightTriggerColor:o}},EL=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]],PL=Ol("Layout",(e=>[_L(e)]),CL,{deprecatedTokens:EL}),ML=e=>{const{componentCls:t,siderBg:n,motionDurationMid:r,motionDurationSlow:o,antCls:i,triggerHeight:a,triggerColor:l,triggerBg:c,headerHeight:s,zeroTriggerWidth:u,zeroTriggerHeight:d,borderRadius:f,lightSiderBg:p,lightTriggerColor:h,lightTriggerBg:g,bodyBg:v}=e;return{[t]:{position:"relative",minWidth:0,background:n,transition:"all ".concat(r,", background 0s"),"&-has-trigger":{paddingBottom:a},"&-right":{order:1},["".concat(t,"-children")]:{height:"100%",marginTop:-.1,paddingTop:.1,["".concat(i,"-menu").concat(i,"-menu-inline-collapsed")]:{width:"auto"}},["".concat(t,"-trigger")]:{position:"fixed",bottom:0,zIndex:1,height:a,color:l,lineHeight:yn(a),textAlign:"center",background:c,cursor:"pointer",transition:"all ".concat(r)},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:s,insetInlineEnd:e.calc(u).mul(-1).equal(),zIndex:1,width:u,height:d,color:l,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:n,borderStartStartRadius:0,borderStartEndRadius:f,borderEndEndRadius:f,borderEndStartRadius:0,cursor:"pointer",transition:"background ".concat(o," ease"),"&::after":{position:"absolute",inset:0,background:"transparent",transition:"all ".concat(o),content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(u).mul(-1).equal(),borderStartStartRadius:f,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:f}}},"&-light":{background:p,["".concat(t,"-trigger")]:{color:h,background:g},["".concat(t,"-zero-width-trigger")]:{color:h,background:g,border:"1px solid ".concat(v),borderInlineStart:0}}}}},kL=Ol(["Layout","Sider"],(e=>[ML(e)]),CL,{deprecatedTokens:EL});var AL=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 IL={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},TL=r.createContext({}),jL=(()=>{let e=0;return function(){return e+=1,"".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").concat(e)}})(),LL=r.forwardRef(((e,t)=>{const{prefixCls:n,className:o,trigger:i,children:a,defaultCollapsed:l=!1,theme:s="dark",style:u={},collapsible:d=!1,reverseArrow:p=!1,width:h=200,collapsedWidth:g=80,zeroWidthTriggerStyle:v,breakpoint:m,onCollapse:y,onBreakpoint:b}=e,x=AL(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:w}=(0,r.useContext)(OL),[S,O]=(0,r.useState)("collapsed"in e?e.collapsed:l),[_,C]=(0,r.useState)(!1);(0,r.useEffect)((()=>{"collapsed"in e&&O(e.collapsed)}),[e.collapsed]);const E=(t,n)=>{"collapsed"in e||O(t),null===y||void 0===y||y(t,n)},{getPrefixCls:P}=(0,r.useContext)(f),M=P("layout-sider",n),[k,A,I]=kL(M),T=(0,r.useRef)();T.current=e=>{C(e.matches),null===b||void 0===b||b(e.matches),S!==e.matches&&E(e.matches,"responsive")},(0,r.useEffect)((()=>{function e(e){return T.current(e)}let t;if("undefined"!==typeof window){const{matchMedia:r}=window;if(r&&m&&m in IL){t=r("screen and (max-width: ".concat(IL[m],")"));try{t.addEventListener("change",e)}catch(n){t.addListener(e)}e(t)}}return()=>{try{null===t||void 0===t||t.removeEventListener("change",e)}catch(n){null===t||void 0===t||t.removeListener(e)}}}),[m]),(0,r.useEffect)((()=>{const e=jL("ant-sider-");return w.addSider(e),()=>w.removeSider(e)}),[]);const j=()=>{E(!S,"clickTrigger")},L=r.useMemo((()=>({siderCollapsed:S})),[S]);return k(r.createElement(TL.Provider,{value:L},(()=>{const e=hu(x,["collapsed"]),n=S?g:h,l=SL(n)?"".concat(n,"px"):String(n),f=0===parseFloat(String(g||0))?r.createElement("span",{onClick:j,className:c()("".concat(M,"-zero-width-trigger"),"".concat(M,"-zero-width-trigger-").concat(p?"right":"left")),style:v},i||r.createElement(yL,null)):null,m={expanded:p?r.createElement(BT,null):r.createElement(wL,null),collapsed:p?r.createElement(wL,null):r.createElement(BT,null)}[S?"collapsed":"expanded"],y=null!==i?f||r.createElement("div",{className:"".concat(M,"-trigger"),onClick:j,style:{width:l}},i||m):null,b=Object.assign(Object.assign({},u),{flex:"0 0 ".concat(l),maxWidth:l,minWidth:l,width:l}),w=c()(M,"".concat(M,"-").concat(s),{["".concat(M,"-collapsed")]:!!S,["".concat(M,"-has-trigger")]:d&&null!==i&&!f,["".concat(M,"-below")]:!!_,["".concat(M,"-zero-width")]:0===parseFloat(l)},o,A,I);return r.createElement("aside",Object.assign({className:w},e,{style:b,ref:t}),r.createElement("div",{className:"".concat(M,"-children")},a),d||_&&f?y:null)})()))}));const RL=LL;const DL={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 NL=function(e,t){return r.createElement(xs,qc({},e,{ref:t,icon:DL}))};const FL=r.forwardRef(NL),BL=(0,r.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var zL=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 HL=e=>{const{prefixCls:t,className:n,dashed:o}=e,i=zL(e,["prefixCls","className","dashed"]),{getPrefixCls:a}=r.useContext(f),l=a("menu",t),s=c()({["".concat(l,"-item-divider-dashed")]:!!o},n);return r.createElement(oL,Object.assign({className:s},i))},WL=e=>{var t;const{className:n,children:o,icon:i,title:a,danger:l}=e,{prefixCls:s,firstLevel:u,direction:d,disableMenuItemTitleTooltip:f,inlineCollapsed:p}=r.useContext(BL),{siderCollapsed:h}=r.useContext(TL);let g=a;"undefined"===typeof a?g=u?o:"":!1===a&&(g="");const v={title:g};h||p||(v.title=null,v.open=!1);const m=Tc(o).length;let y=r.createElement(Hj,Object.assign({},hu(e,["title","icon","danger"]),{className:c()({["".concat(s,"-item-danger")]:l,["".concat(s,"-item-only-child")]:1===(i?m+1:m)},n),title:"string"===typeof a?a:void 0}),Cu(i,{className:c()(r.isValidElement(i)?null===(t=i.props)||void 0===t?void 0:t.className:"","".concat(s,"-item-icon"))}),(e=>{const t=null===o||void 0===o?void 0:o[0],n=r.createElement("span",{className:"".concat(s,"-title-content")},o);return(!i||r.isValidElement(o)&&"span"===o.type)&&o&&e&&u&&"string"===typeof t?r.createElement("div",{className:"".concat(s,"-inline-collapsed-noicon")},t.charAt(0)):n})(p));return f||(y=r.createElement(hy,Object.assign({},v,{placement:"rtl"===d?"left":"right",overlayClassName:"".concat(s,"-inline-collapsed-tooltip")}),y)),y};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 GL=r.createContext(null),YL=r.forwardRef(((e,t)=>{const{children:n}=e,o=VL(e,["children"]),i=r.useContext(GL),a=r.useMemo((()=>Object.assign(Object.assign({},i),o)),[i,o.prefixCls,o.mode,o.selectable,o.rootClassName]),l=function(e){return Ic(e)&&Ac(e)}(n),c=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Pc((function(){return kc.apply(void 0,t)}),t,(function(e,t){return e.length!==t.length||e.every((function(e,n){return e!==t[n]}))}))}(t,l?n.ref:null);return r.createElement(GL.Provider,{value:a},r.createElement(Xc,{space:!0},l?r.cloneElement(n,{ref:c}):n))})),UL=GL,XL=e=>({[e.componentCls]:{["".concat(e.antCls,"-motion-collapse-legacy")]:{overflow:"hidden","&-active":{transition:"height ".concat(e.motionDurationMid," ").concat(e.motionEaseInOut,",\n        opacity ").concat(e.motionDurationMid," ").concat(e.motionEaseInOut," !important")}},["".concat(e.antCls,"-motion-collapse")]:{overflow:"hidden",transition:"height ".concat(e.motionDurationMid," ").concat(e.motionEaseInOut,",\n        opacity ").concat(e.motionDurationMid," ").concat(e.motionEaseInOut," !important")}}}),qL=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:o,lineWidth:i,lineType:a,itemPaddingInline:l}=e;return{["".concat(t,"-horizontal")]:{lineHeight:r,border:0,borderBottom:"".concat(yn(i)," ").concat(a," ").concat(o),boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},["".concat(t,"-item, ").concat(t,"-submenu")]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:l},["> ".concat(t,"-item:hover,\n        > ").concat(t,"-item-active,\n        > ").concat(t,"-submenu ").concat(t,"-submenu-title:hover")]:{backgroundColor:"transparent"},["".concat(t,"-item, ").concat(t,"-submenu-title")]:{transition:["border-color ".concat(n),"background ".concat(n)].join(",")},["".concat(t,"-submenu-arrow")]:{display:"none"}}}},KL=e=>{let{componentCls:t,menuArrowOffset:n,calc:r}=e;return{["".concat(t,"-rtl")]:{direction:"rtl"},["".concat(t,"-submenu-rtl")]:{transformOrigin:"100% 0"},["".concat(t,"-rtl").concat(t,"-vertical,\n    ").concat(t,"-submenu-rtl ").concat(t,"-vertical")]:{["".concat(t,"-submenu-arrow")]:{"&::before":{transform:"rotate(-45deg) translateY(".concat(yn(r(n).mul(-1).equal()),")")},"&::after":{transform:"rotate(45deg) translateY(".concat(yn(n),")")}}}}},$L=e=>Object.assign({},qr(e)),QL=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:o,groupTitleColor:i,itemBg:a,subMenuItemBg:l,itemSelectedBg:c,activeBarHeight:s,activeBarWidth:u,activeBarBorderWidth:d,motionDurationSlow:f,motionEaseInOut:p,motionEaseOut:h,itemPaddingInline:g,motionDurationMid:v,itemHoverColor:m,lineType:y,colorSplit:b,itemDisabledColor:x,dangerItemColor:w,dangerItemHoverColor:S,dangerItemSelectedColor:O,dangerItemActiveBg:_,dangerItemSelectedBg:C,popupBg:E,itemHoverBg:P,itemActiveBg:M,menuSubMenuBg:k,horizontalItemSelectedColor:A,horizontalItemSelectedBg:I,horizontalItemBorderRadius:T,horizontalItemHoverBg:j}=e;return{["".concat(n,"-").concat(t,", ").concat(n,"-").concat(t," > ").concat(n)]:{color:r,background:a,["&".concat(n,"-root:focus-visible")]:Object.assign({},$L(e)),["".concat(n,"-item-group-title")]:{color:i},["".concat(n,"-submenu-selected")]:{["> ".concat(n,"-submenu-title")]:{color:o}},["".concat(n,"-item, ").concat(n,"-submenu-title")]:{color:r,["&:not(".concat(n,"-item-disabled):focus-visible")]:Object.assign({},$L(e))},["".concat(n,"-item-disabled, ").concat(n,"-submenu-disabled")]:{color:"".concat(x," !important")},["".concat(n,"-item:not(").concat(n,"-item-selected):not(").concat(n,"-submenu-selected)")]:{["&:hover, > ".concat(n,"-submenu-title:hover")]:{color:m}},["&:not(".concat(n,"-horizontal)")]:{["".concat(n,"-item:not(").concat(n,"-item-selected)")]:{"&:hover":{backgroundColor:P},"&:active":{backgroundColor:M}},["".concat(n,"-submenu-title")]:{"&:hover":{backgroundColor:P},"&:active":{backgroundColor:M}}},["".concat(n,"-item-danger")]:{color:w,["&".concat(n,"-item:hover")]:{["&:not(".concat(n,"-item-selected):not(").concat(n,"-submenu-selected)")]:{color:S}},["&".concat(n,"-item:active")]:{background:_}},["".concat(n,"-item a")]:{"&, &:hover":{color:"inherit"}},["".concat(n,"-item-selected")]:{color:o,["&".concat(n,"-item-danger")]:{color:O},"a, a:hover":{color:"inherit"}},["& ".concat(n,"-item-selected")]:{backgroundColor:c,["&".concat(n,"-item-danger")]:{backgroundColor:C}},["&".concat(n,"-submenu > ").concat(n)]:{backgroundColor:k},["&".concat(n,"-popup > ").concat(n)]:{backgroundColor:E},["&".concat(n,"-submenu-popup > ").concat(n)]:{backgroundColor:E},["&".concat(n,"-horizontal")]:Object.assign(Object.assign({},"dark"===t?{borderBottom:0}:{}),{["> ".concat(n,"-item, > ").concat(n,"-submenu")]:{top:d,marginTop:e.calc(d).mul(-1).equal(),marginBottom:0,borderRadius:T,"&::after":{position:"absolute",insetInline:g,bottom:0,borderBottom:"".concat(yn(s)," solid transparent"),transition:"border-color ".concat(f," ").concat(p),content:'""'},"&:hover, &-active, &-open":{background:j,"&::after":{borderBottomWidth:s,borderBottomColor:A}},"&-selected":{color:A,backgroundColor:I,"&:hover":{backgroundColor:I},"&::after":{borderBottomWidth:s,borderBottomColor:A}}}}),["&".concat(n,"-root")]:{["&".concat(n,"-inline, &").concat(n,"-vertical")]:{borderInlineEnd:"".concat(yn(d)," ").concat(y," ").concat(b)}},["&".concat(n,"-inline")]:{["".concat(n,"-sub").concat(n,"-inline")]:{background:l},["".concat(n,"-item")]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:"".concat(yn(u)," solid ").concat(o),transform:"scaleY(0.0001)",opacity:0,transition:["transform ".concat(v," ").concat(h),"opacity ".concat(v," ").concat(h)].join(","),content:'""'},["&".concat(n,"-item-danger")]:{"&::after":{borderInlineEndColor:O}}},["".concat(n,"-selected, ").concat(n,"-item-selected")]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:["transform ".concat(v," ").concat(p),"opacity ".concat(v," ").concat(p)].join(",")}}}}}},ZL=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:o,menuArrowSize:i,marginXS:a,itemMarginBlock:l,itemWidth:c,itemPaddingInline:s}=e,u=e.calc(i).add(o).add(a).equal();return{["".concat(t,"-item")]:{position:"relative",overflow:"hidden"},["".concat(t,"-item, ").concat(t,"-submenu-title")]:{height:n,lineHeight:yn(n),paddingInline:s,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:l,width:c},["> ".concat(t,"-item,\n            > ").concat(t,"-submenu > ").concat(t,"-submenu-title")]:{height:n,lineHeight:yn(n)},["".concat(t,"-item-group-list ").concat(t,"-submenu-title,\n            ").concat(t,"-submenu-title")]:{paddingInlineEnd:u}}},JL=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:o,dropdownWidth:i,controlHeightLG:a,motionEaseOut:l,paddingXL:c,itemMarginInline:s,fontSizeLG:u,motionDurationFast:d,motionDurationSlow:f,paddingXS:p,boxShadowSecondary:h,collapsedWidth:g,collapsedIconSize:v}=e,m={height:r,lineHeight:yn(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({["&".concat(t,"-root")]:{boxShadow:"none"}},ZL(e))},["".concat(t,"-submenu-popup")]:{["".concat(t,"-vertical")]:Object.assign(Object.assign({},ZL(e)),{boxShadow:h})}},{["".concat(t,"-submenu-popup ").concat(t,"-vertical").concat(t,"-sub")]:{minWidth:i,maxHeight:"calc(100vh - ".concat(yn(e.calc(a).mul(2.5).equal()),")"),padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{["".concat(t,"-inline")]:{width:"100%",["&".concat(t,"-root")]:{["".concat(t,"-item, ").concat(t,"-submenu-title")]:{display:"flex",alignItems:"center",transition:["border-color ".concat(f),"background ".concat(f),"padding ".concat(d," ").concat(l)].join(","),["> ".concat(t,"-title-content")]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},["".concat(t,"-sub").concat(t,"-inline")]:{padding:0,border:0,borderRadius:0,boxShadow:"none",["& > ".concat(t,"-submenu > ").concat(t,"-submenu-title")]:m,["& ".concat(t,"-item-group-title")]:{paddingInlineStart:c}},["".concat(t,"-item")]:m}},{["".concat(t,"-inline-collapsed")]:{width:g,["&".concat(t,"-root")]:{["".concat(t,"-item, ").concat(t,"-submenu ").concat(t,"-submenu-title")]:{["> ".concat(t,"-inline-collapsed-noicon")]:{fontSize:u,textAlign:"center"}}},["> ".concat(t,"-item,\n          > ").concat(t,"-item-group > ").concat(t,"-item-group-list > ").concat(t,"-item,\n          > ").concat(t,"-item-group > ").concat(t,"-item-group-list > ").concat(t,"-submenu > ").concat(t,"-submenu-title,\n          > ").concat(t,"-submenu > ").concat(t,"-submenu-title")]:{insetInlineStart:0,paddingInline:"calc(50% - ".concat(yn(e.calc(u).div(2).equal())," - ").concat(yn(s),")"),textOverflow:"clip",["\n            ".concat(t,"-submenu-arrow,\n            ").concat(t,"-submenu-expand-icon\n          ")]:{opacity:0},["".concat(t,"-item-icon, ").concat(n)]:{margin:0,fontSize:v,lineHeight:yn(r),"+ span":{display:"inline-block",opacity:0}}},["".concat(t,"-item-icon, ").concat(n)]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",["".concat(t,"-item-icon, ").concat(n)]:{display:"none"},"a, a:hover":{color:o}},["".concat(t,"-item-group-title")]:Object.assign(Object.assign({},Yr),{paddingInline:p})}}]},eR=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:o,motionEaseOut:i,iconCls:a,iconSize:l,iconMarginInlineEnd:c}=e;return{["".concat(t,"-item, ").concat(t,"-submenu-title")]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:["border-color ".concat(n),"background ".concat(n),"padding calc(".concat(n," + 0.1s) ").concat(o)].join(","),["".concat(t,"-item-icon, ").concat(a)]:{minWidth:l,fontSize:l,transition:["font-size ".concat(r," ").concat(i),"margin ".concat(n," ").concat(o),"color ".concat(n)].join(","),"+ span":{marginInlineStart:c,opacity:1,transition:["opacity ".concat(n," ").concat(o),"margin ".concat(n),"color ".concat(n)].join(",")}},["".concat(t,"-item-icon")]: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"}}),["&".concat(t,"-item-only-child")]:{["> ".concat(a,", > ").concat(t,"-item-icon")]:{marginInlineEnd:0}}},["".concat(t,"-item-disabled, ").concat(t,"-submenu-disabled")]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},["> ".concat(t,"-submenu-title")]:{color:"inherit !important",cursor:"not-allowed"}}}},tR=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:o,menuArrowSize:i,menuArrowOffset:a}=e;return{["".concat(t,"-submenu")]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:i,color:"currentcolor",transform:"translateY(-50%)",transition:"transform ".concat(n," ").concat(r,", opacity ").concat(n)},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(i).mul(.6).equal(),height:e.calc(i).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:o,transition:["background ".concat(n," ").concat(r),"transform ".concat(n," ").concat(r),"top ".concat(n," ").concat(r),"color ".concat(n," ").concat(r)].join(","),content:'""'},"&::before":{transform:"rotate(45deg) translateY(".concat(yn(e.calc(a).mul(-1).equal()),")")},"&::after":{transform:"rotate(-45deg) translateY(".concat(yn(a),")")}}}}},nR=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:o,motionDurationMid:i,motionEaseInOut:a,paddingXS:l,padding:c,colorSplit:s,lineWidth:u,zIndexPopup:d,borderRadiusLG:f,subMenuItemBorderRadius:p,menuArrowSize:h,menuArrowOffset:g,lineType:v,groupTitleLineHeight:m,groupTitleFontSize:y}=e;return[{"":{[n]:Object.assign(Object.assign({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"&-hidden":{display:"none"}})},["".concat(n,"-submenu-hidden")]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ur(e)),{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:"width ".concat(o," cubic-bezier(0.2, 0, 0, 1) 0s"),"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",["".concat(n,"-item")]:{flex:"none"}},["".concat(n,"-item, ").concat(n,"-submenu, ").concat(n,"-submenu-title")]:{borderRadius:e.itemBorderRadius},["".concat(n,"-item-group-title")]:{padding:"".concat(yn(l)," ").concat(yn(c)),fontSize:y,lineHeight:m,transition:"all ".concat(o)},["&-horizontal ".concat(n,"-submenu")]:{transition:["border-color ".concat(o," ").concat(a),"background ".concat(o," ").concat(a)].join(",")},["".concat(n,"-submenu, ").concat(n,"-submenu-inline")]:{transition:["border-color ".concat(o," ").concat(a),"background ".concat(o," ").concat(a),"padding ".concat(i," ").concat(a)].join(",")},["".concat(n,"-submenu ").concat(n,"-sub")]:{cursor:"initial",transition:["background ".concat(o," ").concat(a),"padding ".concat(o," ").concat(a)].join(",")},["".concat(n,"-title-content")]:{display:"inline-flex",alignItems:"center",transition:"color ".concat(o),"> a:first-child":{flexGrow:1},["> ".concat(t,"-typography-ellipsis-single-line")]:{display:"inline",verticalAlign:"unset"},["".concat(n,"-item-extra")]:{marginInlineStart:"auto",paddingInlineStart:e.padding,fontSize:e.fontSizeSM,color:e.colorTextDescription}},["".concat(n,"-item a")]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},["".concat(n,"-item-divider")]:{overflow:"hidden",lineHeight:0,borderColor:s,borderStyle:v,borderWidth:0,borderTopWidth:u,marginBlock:u,padding:0,"&-dashed":{borderStyle:"dashed"}}}),eR(e)),{["".concat(n,"-item-group")]:{["".concat(n,"-item-group-list")]:{margin:0,padding:0,["".concat(n,"-item, ").concat(n,"-submenu-title")]:{paddingInline:"".concat(yn(e.calc(r).mul(2).equal())," ").concat(yn(c))}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:d,borderRadius:f,boxShadow:"none",transformOrigin:"0 0",["&".concat(n,"-submenu")]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},["> ".concat(n)]:Object.assign(Object.assign(Object.assign({borderRadius:f},eR(e)),tR(e)),{["".concat(n,"-item, ").concat(n,"-submenu > ").concat(n,"-submenu-title")]:{borderRadius:p},["".concat(n,"-submenu-title::after")]:{transition:"transform ".concat(o," ").concat(a)}})},"\n          &-placement-leftTop,\n          &-placement-bottomRight,\n          ":{transformOrigin:"100% 0"},"\n          &-placement-leftBottom,\n          &-placement-topRight,\n          ":{transformOrigin:"100% 100%"},"\n          &-placement-rightBottom,\n          &-placement-topLeft,\n          ":{transformOrigin:"0 100%"},"\n          &-placement-bottomLeft,\n          &-placement-rightTop,\n          ":{transformOrigin:"0 0"},"\n          &-placement-leftTop,\n          &-placement-leftBottom\n          ":{paddingInlineEnd:e.paddingXS},"\n          &-placement-rightTop,\n          &-placement-rightBottom\n          ":{paddingInlineStart:e.paddingXS},"\n          &-placement-topRight,\n          &-placement-topLeft\n          ":{paddingBottom:e.paddingXS},"\n          &-placement-bottomRight,\n          &-placement-bottomLeft\n          ":{paddingTop:e.paddingXS}}}),tR(e)),{["&-inline-collapsed ".concat(n,"-submenu-arrow,\n        &-inline ").concat(n,"-submenu-arrow")]:{"&::before":{transform:"rotate(-45deg) translateX(".concat(yn(g),")")},"&::after":{transform:"rotate(45deg) translateX(".concat(yn(e.calc(g).mul(-1).equal()),")")}},["".concat(n,"-submenu-open").concat(n,"-submenu-inline > ").concat(n,"-submenu-title > ").concat(n,"-submenu-arrow")]:{transform:"translateY(".concat(yn(e.calc(h).mul(.2).mul(-1).equal()),")"),"&::after":{transform:"rotate(-45deg) translateX(".concat(yn(e.calc(g).mul(-1).equal()),")")},"&::before":{transform:"rotate(45deg) translateX(".concat(yn(g),")")}}})},{["".concat(t,"-layout-header")]:{[n]:{lineHeight:"inherit"}}}]},rR=e=>{var t,n,r;const{colorPrimary:o,colorError:i,colorTextDisabled:a,colorErrorBg:l,colorText:c,colorTextDescription:s,colorBgContainer:u,colorFillAlter:d,colorFillContent:f,lineWidth:p,lineWidthBold:h,controlItemBgActive:g,colorBgTextHover:v,controlHeightLG:m,lineHeight:y,colorBgElevated:b,marginXXS:x,padding:w,fontSize:S,controlHeightSM:O,fontSizeLG:_,colorTextLightSolid:C,colorErrorHover:E}=e,P=null!==(t=e.activeBarWidth)&&void 0!==t?t:0,M=null!==(n=e.activeBarBorderWidth)&&void 0!==n?n:p,k=null!==(r=e.itemMarginInline)&&void 0!==r?r:e.marginXXS,A=new Za(C).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:c,itemColor:c,colorItemTextHover:c,itemHoverColor:c,colorItemTextHoverHorizontal:o,horizontalItemHoverColor:o,colorGroupTitle:s,groupTitleColor:s,colorItemTextSelected:o,itemSelectedColor:o,colorItemTextSelectedHorizontal:o,horizontalItemSelectedColor:o,colorItemBg:u,itemBg:u,colorItemBgHover:v,itemHoverBg:v,colorItemBgActive:f,itemActiveBg:g,colorSubItemBg:d,subMenuItemBg:d,colorItemBgSelected:g,itemSelectedBg:g,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:P,colorActiveBarHeight:h,activeBarHeight:h,colorActiveBarBorderSize:p,activeBarBorderWidth:M,colorItemTextDisabled:a,itemDisabledColor:a,colorDangerItemText:i,dangerItemColor:i,colorDangerItemTextHover:i,dangerItemHoverColor:i,colorDangerItemTextSelected:i,dangerItemSelectedColor:i,colorDangerItemBgActive:l,dangerItemActiveBg:l,colorDangerItemBgSelected:l,dangerItemSelectedBg:l,itemMarginInline:k,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:m,groupTitleLineHeight:y,collapsedWidth:2*m,popupBg:b,itemMarginBlock:x,itemPaddingInline:w,horizontalLineHeight:"".concat(1.15*m,"px"),iconSize:S,iconMarginInlineEnd:O-S,collapsedIconSize:_,groupTitleFontSize:S,darkItemDisabledColor:new Za(C).setAlpha(.25).toRgbString(),darkItemColor:A,darkDangerItemColor:i,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:C,darkItemSelectedBg:o,darkDangerItemSelectedBg:i,darkItemHoverBg:"transparent",darkGroupTitleColor:A,darkItemHoverColor:C,darkDangerItemHoverColor:E,darkDangerItemSelectedColor:C,darkDangerItemActiveBg:i,itemWidth:P?"calc(100% + ".concat(M,"px)"):"calc(100% - ".concat(2*k,"px)")}},oR=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;const n=Ol("Menu",(e=>{const{colorBgElevated:t,controlHeightLG:n,fontSize:r,darkItemColor:o,darkDangerItemColor:i,darkItemBg:a,darkSubMenuItemBg:l,darkItemSelectedColor:c,darkItemSelectedBg:s,darkDangerItemSelectedBg:u,darkItemHoverBg:d,darkGroupTitleColor:f,darkItemHoverColor:p,darkItemDisabledColor:h,darkDangerItemHoverColor:g,darkDangerItemSelectedColor:v,darkDangerItemActiveBg:m,popupBg:y,darkPopupBg:b}=e,x=e.calc(r).div(7).mul(5).equal(),w=Ui(e,{menuArrowSize:x,menuHorizontalHeight:e.calc(n).mul(1.15).equal(),menuArrowOffset:e.calc(x).mul(.25).equal(),menuSubMenuBg:t,calc:e.calc,popupBg:y}),S=Ui(w,{itemColor:o,itemHoverColor:p,groupTitleColor:f,itemSelectedColor:c,itemBg:a,popupBg:b,subMenuItemBg:l,itemActiveBg:"transparent",itemSelectedBg:s,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:d,itemDisabledColor:h,dangerItemColor:i,dangerItemHoverColor:g,dangerItemSelectedColor:v,dangerItemActiveBg:m,dangerItemSelectedBg:u,menuSubMenuBg:l,horizontalItemSelectedColor:c,horizontalItemSelectedBg:s});return[nR(w),qL(w),JL(w),QL(w,"light"),QL(S,"dark"),KL(w),XL(w),T_(w,"slide-up"),T_(w,"slide-down"),ey(w,"zoom-big")]}),rR,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:!(arguments.length>2&&void 0!==arguments[2])||arguments[2],unitless:{groupTitleLineHeight:!0}});return n(e,t)},iR=e=>{var t;const{popupClassName:n,icon:o,title:i,theme:a}=e,l=r.useContext(BL),{prefixCls:s,inlineCollapsed:u,theme:d}=l,f=ij();let p;if(o){const e=r.isValidElement(i)&&"span"===i.type;p=r.createElement(r.Fragment,null,Cu(o,{className:c()(r.isValidElement(o)?null===(t=o.props)||void 0===t?void 0:t.className:"","".concat(s,"-item-icon"))}),e?i:r.createElement("span",{className:"".concat(s,"-title-content")},i))}else p=u&&!f.length&&i&&"string"===typeof i?r.createElement("div",{className:"".concat(s,"-inline-collapsed-noicon")},i.charAt(0)):r.createElement("span",{className:"".concat(s,"-title-content")},i);const h=r.useMemo((()=>Object.assign(Object.assign({},l),{firstLevel:!1})),[l]),[g]=_m("Menu");return r.createElement(BL.Provider,{value:h},r.createElement(rL,Object.assign({},hu(e,["icon"]),{title:p,popupClassName:c()(s,n,"".concat(s,"-").concat(a||d)),popupStyle:Object.assign({zIndex:g},e.popupStyle)})))};var aR=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};function lR(e){return null===e||!1===e}const cR={item:WL,submenu:iR,divider:HL},sR=(0,r.forwardRef)(((e,t)=>{var n;const o=r.useContext(UL),i=o||{},{getPrefixCls:a,getPopupContainer:l,direction:s,menu:u}=r.useContext(f),d=a(),{prefixCls:p,className:h,style:g,theme:v="light",expandIcon:m,_internalDisableMenuItemTitleTooltip:y,inlineCollapsed:b,siderCollapsed:x,rootClassName:w,mode:S,selectable:O,onClick:_,overflowedIndicatorPopupClassName:C}=e,E=hu(aR(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),["collapsedWidth"]);null===(n=i.validator)||void 0===n||n.call(i,{mode:S});const P=Ns((function(){var e;null===_||void 0===_||_.apply(void 0,arguments),null===(e=i.onClick)||void 0===e||e.call(i)})),M=i.mode||S,k=null!==O&&void 0!==O?O:i.selectable,A=r.useMemo((()=>void 0!==x?x:b),[b,x]),I={horizontal:{motionName:"".concat(d,"-slide-up")},inline:Am(d),other:{motionName:"".concat(d,"-zoom-big")}},T=a("menu",p||i.prefixCls),j=ks(T),[L,R,D]=oR(T,j,!o),N=c()("".concat(T,"-").concat(v),null===u||void 0===u?void 0:u.className,h),F=r.useMemo((()=>{var e,t;if("function"===typeof m||lR(m))return m||null;if("function"===typeof i.expandIcon||lR(i.expandIcon))return i.expandIcon||null;if("function"===typeof(null===u||void 0===u?void 0:u.expandIcon)||lR(null===u||void 0===u?void 0:u.expandIcon))return(null===u||void 0===u?void 0:u.expandIcon)||null;const n=null!==(e=null!==m&&void 0!==m?m:null===i||void 0===i?void 0:i.expandIcon)&&void 0!==e?e:null===u||void 0===u?void 0:u.expandIcon;return Cu(n,{className:c()("".concat(T,"-submenu-expand-icon"),r.isValidElement(n)?null===(t=n.props)||void 0===t?void 0:t.className:void 0)})}),[m,null===i||void 0===i?void 0:i.expandIcon,null===u||void 0===u?void 0:u.expandIcon,T]),B=r.useMemo((()=>({prefixCls:T,inlineCollapsed:A||!1,direction:s,firstLevel:!0,theme:v,mode:M,disableMenuItemTitleTooltip:y})),[T,A,s,y,v]);return L(r.createElement(UL.Provider,{value:null},r.createElement(BL.Provider,{value:B},r.createElement(gL,Object.assign({getPopupContainer:l,overflowedIndicator:r.createElement(FL,null),overflowedIndicatorPopupClassName:c()(T,"".concat(T,"-").concat(v),C),mode:M,selectable:k,onClick:P},E,{inlineCollapsed:A,style:Object.assign(Object.assign({},null===u||void 0===u?void 0:u.style),g),className:N,prefixCls:T,direction:s,defaultMotions:I,expandIcon:F,ref:t,rootClassName:c()(w,R,i.rootClassName,D,j),_internalComponents:cR})))))})),uR=sR,dR=(0,r.forwardRef)(((e,t)=>{const n=(0,r.useRef)(null),o=r.useContext(TL);return(0,r.useImperativeHandle)(t,(()=>({menu:n.current,focus:e=>{var t;null===(t=n.current)||void 0===t||t.focus(e)}}))),r.createElement(uR,Object.assign({ref:n},e,o))}));dR.Item=WL,dR.SubMenu=iR,dR.Divider=HL,dR.ItemGroup=lL;const fR=dR,pR=e=>{const{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:o}=e,i="".concat(n,"-item");return{["".concat(t,", ").concat(t,"-menu-submenu")]:{["".concat(n," ").concat(i)]:{["&".concat(i,"-danger:not(").concat(i,"-disabled)")]:{color:r,"&:hover":{color:o,backgroundColor:r}}}}}},hR=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:o,sizePopupArrow:i,antCls:a,iconCls:l,motionDurationMid:c,paddingBlock:s,fontSize:u,dropdownEdgeChildPadding:d,colorTextDisabled:f,fontSizeIcon:p,controlPaddingHorizontal:h,colorBgElevated:g}=e;return[{[t]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:e.calc(i).div(2).sub(o).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},["&-trigger".concat(a,"-btn")]:{["& > ".concat(l,"-down, & > ").concat(a,"-btn-icon > ").concat(l,"-down")]:{fontSize:p}},["".concat(t,"-wrap")]:{position:"relative",["".concat(a,"-btn > ").concat(l,"-down")]:{fontSize:p},["".concat(l,"-down::before")]:{transition:"transform ".concat(c)}},["".concat(t,"-wrap-open")]:{["".concat(l,"-down::before")]:{transform:"rotate(180deg)"}},"\n        &-hidden,\n        &-menu-hidden,\n        &-menu-submenu-hidden\n      ":{display:"none"},["&".concat(a,"-slide-down-enter").concat(a,"-slide-down-enter-active").concat(t,"-placement-bottomLeft,\n          &").concat(a,"-slide-down-appear").concat(a,"-slide-down-appear-active").concat(t,"-placement-bottomLeft,\n          &").concat(a,"-slide-down-enter").concat(a,"-slide-down-enter-active").concat(t,"-placement-bottom,\n          &").concat(a,"-slide-down-appear").concat(a,"-slide-down-appear-active").concat(t,"-placement-bottom,\n          &").concat(a,"-slide-down-enter").concat(a,"-slide-down-enter-active").concat(t,"-placement-bottomRight,\n          &").concat(a,"-slide-down-appear").concat(a,"-slide-down-appear-active").concat(t,"-placement-bottomRight")]:{animationName:O_},["&".concat(a,"-slide-up-enter").concat(a,"-slide-up-enter-active").concat(t,"-placement-topLeft,\n          &").concat(a,"-slide-up-appear").concat(a,"-slide-up-appear-active").concat(t,"-placement-topLeft,\n          &").concat(a,"-slide-up-enter").concat(a,"-slide-up-enter-active").concat(t,"-placement-top,\n          &").concat(a,"-slide-up-appear").concat(a,"-slide-up-appear-active").concat(t,"-placement-top,\n          &").concat(a,"-slide-up-enter").concat(a,"-slide-up-enter-active").concat(t,"-placement-topRight,\n          &").concat(a,"-slide-up-appear").concat(a,"-slide-up-appear-active").concat(t,"-placement-topRight")]:{animationName:C_},["&".concat(a,"-slide-down-leave").concat(a,"-slide-down-leave-active").concat(t,"-placement-bottomLeft,\n          &").concat(a,"-slide-down-leave").concat(a,"-slide-down-leave-active").concat(t,"-placement-bottom,\n          &").concat(a,"-slide-down-leave").concat(a,"-slide-down-leave-active").concat(t,"-placement-bottomRight")]:{animationName:__},["&".concat(a,"-slide-up-leave").concat(a,"-slide-up-leave-active").concat(t,"-placement-topLeft,\n          &").concat(a,"-slide-up-leave").concat(a,"-slide-up-leave-active").concat(t,"-placement-top,\n          &").concat(a,"-slide-up-leave").concat(a,"-slide-up-leave-active").concat(t,"-placement-topRight")]:{animationName:E_}}},Dm(e,g,{arrowPlacement:{top:!0,bottom:!0}}),{["".concat(t," ").concat(n)]:{position:"relative",margin:0},["".concat(n,"-submenu-popup")]:{position:"absolute",zIndex:r,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},["".concat(t,", ").concat(t,"-menu-submenu")]:Object.assign(Object.assign({},Ur(e)),{[n]:Object.assign(Object.assign({padding:d,listStyleType:"none",backgroundColor:g,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},Kr(e)),{"&:empty":{padding:0,boxShadow:"none"},["".concat(n,"-item-group-title")]:{padding:"".concat(yn(s)," ").concat(yn(h)),color:e.colorTextDescription,transition:"all ".concat(c)},["".concat(n,"-item")]:{position:"relative",display:"flex",alignItems:"center"},["".concat(n,"-item-icon")]:{minWidth:u,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},["".concat(n,"-title-content")]:{display:"flex",alignItems:"center",flex:"auto","> a":{color:"inherit",transition:"all ".concat(c),"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},["".concat(n,"-item-extra")]:{paddingInlineStart:e.padding,marginInlineStart:"auto",fontSize:e.fontSizeSM,color:e.colorTextDescription}},["".concat(n,"-item, ").concat(n,"-submenu-title")]:Object.assign(Object.assign({display:"flex",margin:0,padding:"".concat(yn(s)," ").concat(yn(h)),color:e.colorText,fontWeight:"normal",fontSize:u,lineHeight:e.lineHeight,cursor:"pointer",transition:"all ".concat(c),borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},Kr(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:f,cursor:"not-allowed","&:hover":{color:f,backgroundColor:g,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:"".concat(yn(e.marginXXS)," 0"),overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},["".concat(t,"-menu-submenu-expand-icon")]:{position:"absolute",insetInlineEnd:e.paddingXS,["".concat(t,"-menu-submenu-arrow-icon")]:{marginInlineEnd:"0 !important",color:e.colorTextDescription,fontSize:p,fontStyle:"normal"}}}),["".concat(n,"-item-group-list")]:{margin:"0 ".concat(yn(e.marginXS)),padding:0,listStyle:"none"},["".concat(n,"-submenu-title")]:{paddingInlineEnd:e.calc(h).add(e.fontSizeSM).equal()},["".concat(n,"-submenu-vertical")]:{position:"relative"},["".concat(n,"-submenu").concat(n,"-submenu-disabled ").concat(t,"-menu-submenu-title")]:{["&, ".concat(t,"-menu-submenu-arrow-icon")]:{color:f,backgroundColor:g,cursor:"not-allowed"}},["".concat(n,"-submenu-selected ").concat(t,"-menu-submenu-title")]:{color:e.colorPrimary}})})},[T_(e,"slide-up"),T_(e,"slide-down"),z_(e,"move-up"),z_(e,"move-down"),ey(e,"zoom-big")]]},gR=Ol("Dropdown",(e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:o}=e,i=Ui(e,{menuCls:"".concat(o,"-menu"),dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[hR(i),pR(i)]}),(e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},Lm({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),Im(e))),{resetStyle:!1}),vR=e=>{var t;const{menu:n,arrow:o,prefixCls:i,children:a,trigger:l,disabled:s,dropdownRender:u,getPopupContainer:d,overlayClassName:p,rootClassName:h,overlayStyle:g,open:v,onOpenChange:m,visible:y,onVisibleChange:b,mouseEnterDelay:x=.15,mouseLeaveDelay:w=.1,autoAdjustOverflow:S=!0,placement:O="",overlay:_,transitionName:C}=e,{getPopupContainer:E,getPrefixCls:P,direction:M,dropdown:k}=r.useContext(f);Vm("Dropdown");const A=r.useMemo((()=>{const e=P();return void 0!==C?C:O.includes("top")?"".concat(e,"-slide-down"):"".concat(e,"-slide-up")}),[P,O,C]),I=r.useMemo((()=>O?O.includes("Center")?O.slice(0,O.indexOf("Center")):O:"rtl"===M?"bottomRight":"bottomLeft"),[O,M]);const T=P("dropdown",i),j=ks(T),[L,R,D]=gR(T,j),[,N]=wl(),F=r.Children.only(a),B=Cu(F,{className:c()("".concat(T,"-trigger"),{["".concat(T,"-rtl")]:"rtl"===M},F.props.className),disabled:null!==(t=F.props.disabled)&&void 0!==t?t:s}),z=s?[]:l,H=!!(null===z||void 0===z?void 0:z.includes("contextMenu")),[W,V]=pd(!1,{value:null!==v&&void 0!==v?v:y}),G=Ns((e=>{null===m||void 0===m||m(e,{source:"trigger"}),null===b||void 0===b||b(e),V(e)})),Y=c()(p,h,R,D,j,null===k||void 0===k?void 0:k.className,{["".concat(T,"-rtl")]:"rtl"===M}),U=zm({arrowPointAtCenter:"object"===typeof o&&o.pointAtCenter,autoAdjustOverflow:S,offset:N.marginXXS,arrowWidth:o?N.sizePopupArrow:0,borderRadius:N.borderRadius}),X=r.useCallback((()=>{(null===n||void 0===n?void 0:n.selectable)&&(null===n||void 0===n?void 0:n.multiple)||(null===m||void 0===m||m(!1,{source:"menu"}),V(!1))}),[null===n||void 0===n?void 0:n.selectable,null===n||void 0===n?void 0:n.multiple]),[q,K]=_m("Dropdown",null===g||void 0===g?void 0:g.zIndex);let $=r.createElement(qT,Object.assign({alignPoint:H},hu(e,["rootClassName"]),{mouseEnterDelay:x,mouseLeaveDelay:w,visible:W,builtinPlacements:U,arrow:!!o,overlayClassName:Y,prefixCls:T,getPopupContainer:d||E,transitionName:A,trigger:z,overlay:()=>{let e;return e=(null===n||void 0===n?void 0:n.items)?r.createElement(fR,Object.assign({},n)):"function"===typeof _?_():_,u&&(e=u(e)),e=r.Children.only("string"===typeof e?r.createElement("span",null,e):e),r.createElement(YL,{prefixCls:"".concat(T,"-menu"),rootClassName:c()(D,j),expandIcon:r.createElement("span",{className:"".concat(T,"-menu-submenu-arrow")},r.createElement(BT,{className:"".concat(T,"-menu-submenu-arrow-icon")})),mode:"vertical",selectable:!1,onClick:X,validator:e=>{let{mode:t}=e}},e)},placement:I,onVisibleChange:G,overlayStyle:Object.assign(Object.assign(Object.assign({},null===k||void 0===k?void 0:k.style),g),{zIndex:q})}),B);return q&&($=r.createElement(bm.Provider,{value:K},$)),L($)};const mR=d_(vR,"dropdown",(e=>e),(function(e){return Object.assign(Object.assign({},e),{align:{overflow:{adjustX:!1,adjustY:!1}}})}));vR._InternalPanelDoNotUseOrYouWillBeFired=e=>r.createElement(mR,Object.assign({},e),r.createElement("span",null));const yR=vR;function bR(e){return["small","middle","large"].includes(e)}function xR(e){return!!e&&("number"===typeof e&&!Number.isNaN(e))}const wR=r.createContext({latestIndex:0}),SR=wR.Provider,OR=e=>{let{className:t,index:n,children:o,split:i,style:a}=e;const{latestIndex:l}=r.useContext(wR);return null===o||void 0===o?null:r.createElement(r.Fragment,null,r.createElement("div",{className:t,style:a},o),n<l&&i&&r.createElement("span",{className:"".concat(t,"-split")},i))};var _R=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(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 CR=r.forwardRef(((e,t)=>{var n,o,i;const{getPrefixCls:a,space:l,direction:s}=r.useContext(f),{size:u=(null!==(n=null===l||void 0===l?void 0:l.size)&&void 0!==n?n:"small"),align:d,className:p,rootClassName:h,children:g,direction:v="horizontal",prefixCls:m,split:y,style:b,wrap:x=!1,classNames:w,styles:S}=e,O=_R(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[_,C]=Array.isArray(u)?u:[u,u],E=bR(C),P=bR(_),M=xR(C),k=xR(_),A=Tc(g,{keepEmpty:!0}),I=void 0===d&&"horizontal"===v?"center":d,T=a("space",m),[j,L,R]=zc(T),D=c()(T,null===l||void 0===l?void 0:l.className,L,"".concat(T,"-").concat(v),{["".concat(T,"-rtl")]:"rtl"===s,["".concat(T,"-align-").concat(I)]:I,["".concat(T,"-gap-row-").concat(C)]:E,["".concat(T,"-gap-col-").concat(_)]:P},p,h,R),N=c()("".concat(T,"-item"),null!==(o=null===w||void 0===w?void 0:w.item)&&void 0!==o?o:null===(i=null===l||void 0===l?void 0:l.classNames)||void 0===i?void 0:i.item);let F=0;const B=A.map(((e,t)=>{var n,o;null!==e&&void 0!==e&&(F=t);const i=(null===e||void 0===e?void 0:e.key)||"".concat(N,"-").concat(t);return r.createElement(OR,{className:N,key:i,index:t,split:y,style:null!==(n=null===S||void 0===S?void 0:S.item)&&void 0!==n?n:null===(o=null===l||void 0===l?void 0:l.styles)||void 0===o?void 0:o.item},e)})),z=r.useMemo((()=>({latestIndex:F})),[F]);if(0===A.length)return null;const H={};return x&&(H.flexWrap="wrap"),!P&&k&&(H.columnGap=_),!E&&M&&(H.rowGap=C),j(r.createElement("div",Object.assign({ref:t,className:D,style:Object.assign(Object.assign(Object.assign({},H),null===l||void 0===l?void 0:l.style),b)},O),r.createElement(SR,{value:z},B)))})),ER=CR;ER.Compact=Uc;const PR=ER;var MR=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 kR=e=>{const{getPopupContainer:t,getPrefixCls:n,direction:o}=r.useContext(f),{prefixCls:i,type:a="default",danger:l,disabled:s,loading:u,onClick:d,htmlType:p,children:h,className:g,menu:v,arrow:m,autoFocus:y,overlay:b,trigger:x,align:w,open:S,onOpenChange:O,placement:_,getPopupContainer:C,href:E,icon:P=r.createElement(FL,null),title:M,buttonsRender:k=(e=>e),mouseEnterDelay:A,mouseLeaveDelay:I,overlayClassName:T,overlayStyle:j,destroyPopupOnHide:L,dropdownRender:R}=e,D=MR(e,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),N=n("dropdown",i),F="".concat(N,"-button"),B={menu:v,arrow:m,autoFocus:y,align:w,disabled:s,trigger:s?[]:x,onOpenChange:O,getPopupContainer:C||t,mouseEnterDelay:A,mouseLeaveDelay:I,overlayClassName:T,overlayStyle:j,destroyPopupOnHide:L,dropdownRender:R},{compactSize:z,compactItemClassnames:H}=Vc(N,o),W=c()(F,H,g);"overlay"in e&&(B.overlay=b),"open"in e&&(B.open=S),B.placement="placement"in e?_:"rtl"===o?"bottomLeft":"bottomRight";const V=r.createElement(lh,{type:a,danger:l,disabled:s,loading:u,onClick:d,htmlType:p,href:E,title:M},h),G=r.createElement(lh,{type:a,danger:l,icon:P}),[Y,U]=k([V,G]);return r.createElement(PR.Compact,Object.assign({className:W,size:z,block:!0},D),Y,r.createElement(yR,Object.assign({},B),U))};kR.__ANT_BUTTON=!0;const AR=kR,IR=yR;IR.Button=AR;const TR=IR,jR=r.createContext(null),LR=jR.Provider,RR=jR,DR=r.createContext(null),NR=DR.Provider,FR=e=>{const{componentCls:t,antCls:n}=e,r="".concat(t,"-group");return{[r]:Object.assign(Object.assign({},Ur(e)),{display:"inline-block",fontSize:0,["&".concat(r,"-rtl")]:{direction:"rtl"},["&".concat(r,"-block")]:{display:"flex"},["".concat(n,"-badge ").concat(n,"-badge-count")]:{zIndex:1},["> ".concat(n,"-badge:not(:first-child) > ").concat(n,"-button-wrapper")]:{borderInlineStart:"none"}})}},BR=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,radioSize:o,motionDurationSlow:i,motionDurationMid:a,motionEaseInOutCirc:l,colorBgContainer:c,colorBorder:s,lineWidth:u,colorBgContainerDisabled:d,colorTextDisabled:f,paddingXS:p,dotColorDisabled:h,lineType:g,radioColor:v,radioBgColor:m,calc:y}=e,b="".concat(t,"-inner"),x=y(o).sub(y(4).mul(2)),w=y(1).mul(o).equal({unit:!0});return{["".concat(t,"-wrapper")]:Object.assign(Object.assign({},Ur(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer",["&".concat(t,"-wrapper-rtl")]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},"&-block":{flex:1,justifyContent:"center"},["".concat(t,"-checked::after")]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:"".concat(yn(u)," ").concat(g," ").concat(r),borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:Object.assign(Object.assign({},Ur(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),["".concat(t,"-wrapper:hover &,\n        &:hover ").concat(b)]:{borderColor:r},["".concat(t,"-input:focus-visible + ").concat(b)]:Object.assign({},qr(e)),["".concat(t,":hover::after, ").concat(t,"-wrapper:hover &::after")]:{visibility:"visible"},["".concat(t,"-inner")]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:w,height:w,marginBlockStart:y(1).mul(o).div(-2).equal({unit:!0}),marginInlineStart:y(1).mul(o).div(-2).equal({unit:!0}),backgroundColor:v,borderBlockStart:0,borderInlineStart:0,borderRadius:w,transform:"scale(0)",opacity:0,transition:"all ".concat(i," ").concat(l),content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:w,height:w,backgroundColor:c,borderColor:s,borderStyle:"solid",borderWidth:u,borderRadius:"50%",transition:"all ".concat(a)},["".concat(t,"-input")]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},["".concat(t,"-checked")]:{[b]:{borderColor:r,backgroundColor:m,"&::after":{transform:"scale(".concat(e.calc(e.dotSize).div(o).equal(),")"),opacity:1,transition:"all ".concat(i," ").concat(l)}}},["".concat(t,"-disabled")]:{cursor:"not-allowed",[b]:{backgroundColor:d,borderColor:s,cursor:"not-allowed","&::after":{backgroundColor:h}},["".concat(t,"-input")]:{cursor:"not-allowed"},["".concat(t,"-disabled + span")]:{color:f,cursor:"not-allowed"},["&".concat(t,"-checked")]:{[b]:{"&::after":{transform:"scale(".concat(y(x).div(o).equal(),")")}}}},["span".concat(t," + *")]:{paddingInlineStart:p,paddingInlineEnd:p}})}},zR=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:o,lineType:i,colorBorder:a,motionDurationSlow:l,motionDurationMid:c,buttonPaddingInline:s,fontSize:u,buttonBg:d,fontSizeLG:f,controlHeightLG:p,controlHeightSM:h,paddingXS:g,borderRadius:v,borderRadiusSM:m,borderRadiusLG:y,buttonCheckedBg:b,buttonSolidCheckedColor:x,colorTextDisabled:w,colorBgContainerDisabled:S,buttonCheckedBgDisabled:O,buttonCheckedColorDisabled:_,colorPrimary:C,colorPrimaryHover:E,colorPrimaryActive:P,buttonSolidCheckedBg:M,buttonSolidCheckedHoverBg:k,buttonSolidCheckedActiveBg:A,calc:I}=e;return{["".concat(r,"-button-wrapper")]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:s,paddingBlock:0,color:t,fontSize:u,lineHeight:yn(I(n).sub(I(o).mul(2)).equal()),background:d,border:"".concat(yn(o)," ").concat(i," ").concat(a),borderBlockStartWidth:I(o).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:o,cursor:"pointer",transition:["color ".concat(c),"background ".concat(c),"box-shadow ".concat(c)].join(","),a:{color:t},["> ".concat(r,"-button")]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:I(o).mul(-1).equal(),insetInlineStart:I(o).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:o,paddingInline:0,backgroundColor:a,transition:"background-color ".concat(l),content:'""'}},"&:first-child":{borderInlineStart:"".concat(yn(o)," ").concat(i," ").concat(a),borderStartStartRadius:v,borderEndStartRadius:v},"&:last-child":{borderStartEndRadius:v,borderEndEndRadius:v},"&:first-child:last-child":{borderRadius:v},["".concat(r,"-group-large &")]:{height:p,fontSize:f,lineHeight:yn(I(p).sub(I(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:y,borderEndStartRadius:y},"&:last-child":{borderStartEndRadius:y,borderEndEndRadius:y}},["".concat(r,"-group-small &")]:{height:h,paddingInline:I(g).sub(o).equal(),paddingBlock:0,lineHeight:yn(I(h).sub(I(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:m,borderEndStartRadius:m},"&:last-child":{borderStartEndRadius:m,borderEndEndRadius:m}},"&:hover":{position:"relative",color:C},"&:has(:focus-visible)":Object.assign({},qr(e)),["".concat(r,"-inner, input[type='checkbox'], input[type='radio']")]:{width:0,height:0,opacity:0,pointerEvents:"none"},["&-checked:not(".concat(r,"-button-wrapper-disabled)")]:{zIndex:1,color:C,background:b,borderColor:C,"&::before":{backgroundColor:C},"&:first-child":{borderColor:C},"&:hover":{color:E,borderColor:E,"&::before":{backgroundColor:E}},"&:active":{color:P,borderColor:P,"&::before":{backgroundColor:P}}},["".concat(r,"-group-solid &-checked:not(").concat(r,"-button-wrapper-disabled)")]:{color:x,background:M,borderColor:M,"&:hover":{color:x,background:k,borderColor:k},"&:active":{color:x,background:A,borderColor:A}},"&-disabled":{color:w,backgroundColor:S,borderColor:a,cursor:"not-allowed","&:first-child, &:hover":{color:w,backgroundColor:S,borderColor:a}},["&-disabled".concat(r,"-button-wrapper-checked")]:{color:_,backgroundColor:O,borderColor:a,boxShadow:"none"},"&-block":{flex:1,textAlign:"center"}}}},HR=Ol("Radio",(e=>{const{controlOutline:t,controlOutlineWidth:n}=e,r="0 0 0 ".concat(yn(n)," ").concat(t),o=Ui(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[FR(o),BR(o),zR(o)]}),(e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:o,fontSizeLG:i,colorText:a,colorBgContainer:l,colorTextDisabled:c,controlItemBgActiveDisabled:s,colorTextLightSolid:u,colorPrimary:d,colorPrimaryHover:f,colorPrimaryActive:p,colorWhite:h}=e;return{radioSize:i,dotSize:t?i-8:i-2*(4+o),dotColorDisabled:c,buttonSolidCheckedColor:u,buttonSolidCheckedBg:d,buttonSolidCheckedHoverBg:f,buttonSolidCheckedActiveBg:p,buttonBg:l,buttonCheckedBg:l,buttonColor:a,buttonCheckedBgDisabled:s,buttonCheckedColorDisabled:c,buttonPaddingInline:n-o,wrapperMarginInlineEnd:r,radioColor:t?d:h,radioBgColor:t?l:d}}),{unitless:{radioSize:!0,dotSize:!0}});var WR=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 VR=(e,t)=>{var n,o;const i=r.useContext(RR),a=r.useContext(DR),{getPrefixCls:l,direction:s,radio:u}=r.useContext(f),d=r.useRef(null),p=kc(t,d),{isFormItemInput:h}=r.useContext(It);const g=t=>{var n,r;null===(n=e.onChange)||void 0===n||n.call(e,t),null===(r=null===i||void 0===i?void 0:i.onChange)||void 0===r||r.call(i,t)},{prefixCls:v,className:m,rootClassName:y,children:b,style:x,title:w}=e,S=WR(e,["prefixCls","className","rootClassName","children","style","title"]),O=l("radio",v),_="button"===((null===i||void 0===i?void 0:i.optionType)||a),C=_?"".concat(O,"-button"):O,E=ks(O),[P,M,k]=HR(O,E),A=Object.assign({},S),I=r.useContext(Ms);i&&(A.name=i.name,A.onChange=g,A.checked=e.value===i.value,A.disabled=null!==(n=A.disabled)&&void 0!==n?n:i.disabled),A.disabled=null!==(o=A.disabled)&&void 0!==o?o:I;const T=c()("".concat(C,"-wrapper"),{["".concat(C,"-wrapper-checked")]:A.checked,["".concat(C,"-wrapper-disabled")]:A.disabled,["".concat(C,"-wrapper-rtl")]:"rtl"===s,["".concat(C,"-wrapper-in-form-item")]:h,["".concat(C,"-wrapper-block")]:!!(null===i||void 0===i?void 0:i.block)},null===u||void 0===u?void 0:u.className,m,y,M,k,E);return P(r.createElement(Hf,{component:"Radio",disabled:A.disabled},r.createElement("label",{className:T,style:Object.assign(Object.assign({},null===u||void 0===u?void 0:u.style),x),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:w},r.createElement(_T,Object.assign({},A,{className:c()(A.className,{[ku]:!_}),type:"radio",prefixCls:C,ref:p})),void 0!==b?r.createElement("span",null,b):null)))};const GR=r.forwardRef(VR),YR=r.forwardRef(((e,t)=>{const{getPrefixCls:n,direction:o}=r.useContext(f),{prefixCls:i,className:a,rootClassName:l,options:s,buttonStyle:u="outline",disabled:d,children:p,size:h,style:g,id:v,optionType:m,name:y,defaultValue:b,value:x,block:w=!1,onChange:S,onMouseEnter:O,onMouseLeave:_,onFocus:C,onBlur:E}=e,[P,M]=pd(b,{value:x}),k=r.useCallback((t=>{const n=P,r=t.target.value;"value"in e||M(r),r!==n&&(null===S||void 0===S||S(t))}),[P,M,S]),A=n("radio",i),I="".concat(A,"-group"),T=ks(A),[j,L,R]=HR(A,T);let D=p;s&&s.length>0&&(D=s.map((e=>"string"===typeof e||"number"===typeof e?r.createElement(GR,{key:e.toString(),prefixCls:A,disabled:d,value:e,checked:P===e},e):r.createElement(GR,{key:"radio-group-value-options-".concat(e.value),prefixCls:A,disabled:e.disabled||d,value:e.value,checked:P===e.value,title:e.title,style:e.style,id:e.id,required:e.required},e.label))));const N=Dc(h),F=c()(I,"".concat(I,"-").concat(u),{["".concat(I,"-").concat(N)]:N,["".concat(I,"-rtl")]:"rtl"===o,["".concat(I,"-block")]:w},a,l,L,R,T),B=r.useMemo((()=>({onChange:k,value:P,disabled:d,name:y,optionType:m,block:w})),[k,P,d,y,m,w]);return j(r.createElement("div",Object.assign({},Ys(e,{aria:!0,data:!0}),{className:F,style:g,onMouseEnter:O,onMouseLeave:_,onFocus:C,onBlur:E,id:v,ref:t}),r.createElement(LR,{value:B},D)))})),UR=r.memo(YR);var XR=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 qR=(e,t)=>{const{getPrefixCls:n}=r.useContext(f),{prefixCls:o}=e,i=XR(e,["prefixCls"]),a=n("radio",o);return r.createElement(NR,{value:"button"},r.createElement(GR,Object.assign({prefixCls:a},i,{type:"radio",ref:t})))},KR=r.forwardRef(qR),$R=GR;$R.Button=KR,$R.Group=UR,$R.__ANT_RADIO=!0;const QR=$R,ZR={},JR="SELECT_ALL",eD="SELECT_INVERT",tD="SELECT_NONE",nD=[],rD=(e,t)=>{let n=[];return(t||[]).forEach((t=>{n.push(t),t&&"object"===typeof t&&e in t&&(n=[].concat(Ds(n),Ds(rD(e,t[e]))))})),n},oD=(e,t)=>{const{preserveSelectedRowKeys:n,selectedRowKeys:o,defaultSelectedRowKeys:i,getCheckboxProps:a,onChange:l,onSelect:s,onSelectAll:u,onSelectInvert:d,onSelectNone:f,onSelectMultiple:p,columnWidth:h,type:g,selections:v,fixed:m,renderCell:y,hideSelectAll:b,checkStrictly:x=!0}=t||{},{prefixCls:w,data:S,pageData:O,getRecordByKey:_,getRowKey:C,expandType:E,childrenColumnName:P,locale:M,getPopupContainer:k}=e,A=Vm("Table"),[I,T]=function(e){const[t,n]=(0,r.useState)(null);return[(0,r.useCallback)(((r,o,i)=>{const a=null!==t&&void 0!==t?t:r,l=Math.min(a||0,r),c=Math.max(a||0,r),s=o.slice(l,c+1).map((t=>e(t))),u=s.some((e=>!i.has(e))),d=[];return s.forEach((e=>{u?(i.has(e)||d.push(e),i.add(e)):(i.delete(e),d.push(e))})),n(u?c:null),d}),[t]),e=>{n(e)}]}((e=>e)),[j,L]=pd(o||i||nD,{value:o}),R=r.useRef(new Map),D=(0,r.useCallback)((e=>{if(n){const t=new Map;e.forEach((e=>{let n=_(e);!n&&R.current.has(e)&&(n=R.current.get(e)),t.set(e,n)})),R.current=t}}),[_,n]);r.useEffect((()=>{D(j)}),[j]);const N=(0,r.useMemo)((()=>rD(P,O)),[P,O]),{keyEntities:F}=(0,r.useMemo)((()=>{if(x)return{keyEntities:null};let e=S;if(n){const t=new Set(N.map(((e,t)=>C(e,t)))),n=Array.from(R.current).reduce(((e,n)=>{let[r,o]=n;return t.has(r)?e:e.concat(o)}),[]);e=[].concat(Ds(e),Ds(n))}return tT(e,{externalGetKey:C,childrenPropName:P})}),[S,C,x,P,n,N]),B=(0,r.useMemo)((()=>{const e=new Map;return N.forEach(((t,n)=>{const r=C(t,n),o=(a?a(t):null)||{};e.set(r,o)})),e}),[N,C,a]),z=(0,r.useCallback)((e=>{var t;return!!(null===(t=B.get(C(e)))||void 0===t?void 0:t.disabled)}),[B,C]),[H,W]=(0,r.useMemo)((()=>{if(x)return[j||[],[]];const{checkedKeys:e,halfCheckedKeys:t}=wT(j,!0,F,z);return[e||[],t]}),[j,x,F,z]),V=(0,r.useMemo)((()=>{const e="radio"===g?H.slice(0,1):H;return new Set(e)}),[H,g]),G=(0,r.useMemo)((()=>"radio"===g?new Set:new Set(W)),[W,g]);r.useEffect((()=>{t||L(nD)}),[!!t]);const Y=(0,r.useCallback)(((e,t)=>{let r,o;D(e),n?(r=e,o=e.map((e=>R.current.get(e)))):(r=[],o=[],e.forEach((e=>{const t=_(e);void 0!==t&&(r.push(e),o.push(t))}))),L(r),null===l||void 0===l||l(r,o,{type:t})}),[L,_,l,n]),U=(0,r.useCallback)(((e,t,n,r)=>{if(s){const o=n.map((e=>_(e)));s(_(e),t,o,r)}Y(n,"single")}),[s,_,Y]),X=(0,r.useMemo)((()=>{if(!v||b)return null;return(!0===v?[JR,eD,tD]:v).map((e=>e===JR?{key:"all",text:M.selectionAll,onSelect(){Y(S.map(((e,t)=>C(e,t))).filter((e=>{const t=B.get(e);return!(null===t||void 0===t?void 0:t.disabled)||V.has(e)})),"all")}}:e===eD?{key:"invert",text:M.selectInvert,onSelect(){const e=new Set(V);O.forEach(((t,n)=>{const r=C(t,n),o=B.get(r);(null===o||void 0===o?void 0:o.disabled)||(e.has(r)?e.delete(r):e.add(r))}));const t=Array.from(e);d&&(A.deprecated(!1,"onSelectInvert","onChange"),d(t)),Y(t,"invert")}}:e===tD?{key:"none",text:M.selectNone,onSelect(){null===f||void 0===f||f(),Y(Array.from(V).filter((e=>{const t=B.get(e);return null===t||void 0===t?void 0:t.disabled})),"none")}}:e)).map((e=>Object.assign(Object.assign({},e),{onSelect:function(){for(var t,n,r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];null===(n=e.onSelect)||void 0===n||(t=n).call.apply(t,[e].concat(o)),T(null)}})))}),[v,V,O,C,d,Y]),q=(0,r.useCallback)((e=>{var n;if(!t)return e.filter((e=>e!==ZR));let o=Ds(e);const i=new Set(V),a=N.map(C).filter((e=>!B.get(e).disabled)),l=a.every((e=>i.has(e))),s=a.some((e=>i.has(e))),d=()=>{const e=[];l?a.forEach((t=>{i.delete(t),e.push(t)})):a.forEach((t=>{i.has(t)||(i.add(t),e.push(t))}));const t=Array.from(i);null===u||void 0===u||u(!l,t.map((e=>_(e))),e.map((e=>_(e)))),Y(t,"all"),T(null)};let f,S,O;if("radio"!==g){let e;if(X){const t={getPopupContainer:k,items:X.map(((e,t)=>{const{key:n,text:r,onSelect:o}=e;return{key:null!==n&&void 0!==n?n:t,onClick:()=>{null===o||void 0===o||o(a)},label:r}}))};e=r.createElement("div",{className:"".concat(w,"-selection-extra")},r.createElement(TR,{menu:t,getPopupContainer:k},r.createElement("span",null,r.createElement(hC,null))))}const t=N.map(((e,t)=>{const n=C(e,t),r=B.get(n)||{};return Object.assign({checked:i.has(n)},r)})).filter((e=>{let{disabled:t}=e;return t})),n=!!t.length&&t.length===N.length,o=n&&t.every((e=>{let{checked:t}=e;return t})),c=n&&t.some((e=>{let{checked:t}=e;return t}));S=r.createElement(DT,{checked:n?o:!!N.length&&l,indeterminate:n?!o&&c:!l&&s,onChange:d,disabled:0===N.length||n,"aria-label":e?"Custom selection":"Select all",skipGroup:!0}),f=!b&&r.createElement("div",{className:"".concat(w,"-selection")},S,e)}O="radio"===g?(e,t,n)=>{const o=C(t,n),a=i.has(o);return{node:r.createElement(QR,Object.assign({},B.get(o),{checked:a,onClick:e=>e.stopPropagation(),onChange:e=>{i.has(o)||U(o,!0,[o],e.nativeEvent)}})),checked:a}}:(e,t,n)=>{var o;const l=C(t,n),c=i.has(l),s=G.has(l),u=B.get(l);let d;return d="nest"===E?s:null!==(o=null===u||void 0===u?void 0:u.indeterminate)&&void 0!==o?o:s,{node:r.createElement(DT,Object.assign({},u,{indeterminate:d,checked:c,skipGroup:!0,onClick:e=>e.stopPropagation(),onChange:e=>{let{nativeEvent:t}=e;const{shiftKey:n}=t,r=a.findIndex((e=>e===l)),o=H.some((e=>a.includes(e)));if(n&&x&&o){const e=I(r,a,i),t=Array.from(i);null===p||void 0===p||p(!c,t.map((e=>_(e))),e.map((e=>_(e)))),Y(t,"multiple")}else{const e=H;if(x){const n=c?uT(e,l):dT(e,l);U(l,!c,n,t)}else{const n=wT([].concat(Ds(e),[l]),!0,F,z),{checkedKeys:r,halfCheckedKeys:o}=n;let i=r;if(c){const e=new Set(r);e.delete(l),i=wT(Array.from(e),{checked:!1,halfCheckedKeys:o},F,z).checkedKeys}U(l,!c,i,t)}}T(c?null:r)}})),checked:c}};if(!o.includes(ZR))if(0===o.findIndex((e=>{var t;return"EXPAND_COLUMN"===(null===(t=e[Zk])||void 0===t?void 0:t.columnType)}))){const[e,...t]=o;o=[e,ZR].concat(Ds(t))}else o=[ZR].concat(Ds(o));const P=o.indexOf(ZR);o=o.filter(((e,t)=>e!==ZR||t===P));const M=o[P-1],A=o[P+1];let j=m;void 0===j&&(void 0!==(null===A||void 0===A?void 0:A.fixed)?j=A.fixed:void 0!==(null===M||void 0===M?void 0:M.fixed)&&(j=M.fixed)),j&&M&&"EXPAND_COLUMN"===(null===(n=M[Zk])||void 0===n?void 0:n.columnType)&&void 0===M.fixed&&(M.fixed=j);const L=c()("".concat(w,"-selection-col"),{["".concat(w,"-selection-col-with-dropdown")]:v&&"checkbox"===g}),R={fixed:j,width:h,className:"".concat(w,"-selection-column"),title:(null===t||void 0===t?void 0:t.columnTitle)?"function"===typeof t.columnTitle?t.columnTitle(S):t.columnTitle:f,render:(e,t,n)=>{const{node:r,checked:o}=O(e,t,n);return y?y(o,t,n,r):r},onCell:t.onCell,[Zk]:{className:L}};return o.map((e=>e===ZR?R:e))}),[C,N,t,H,V,G,h,X,E,B,p,U,z]);return[q,V]};function iD(e,t){return(0,r.useImperativeHandle)(e,(()=>{const e=t(),{nativeElement:n}=e;return"undefined"!==typeof Proxy?new Proxy(n,{get:(t,n)=>e[n]?e[n]:Reflect.get(t,n)}):(o=e,(r=n)._antProxy=r._antProxy||{},Object.keys(o).forEach((e=>{if(!(e in r._antProxy)){const t=r[e];r._antProxy[e]=t,r[e]=o[e]}})),r);var r,o}))}function aD(e){return null!==e&&void 0!==e&&e===e.window}const lD=e=>{var t,n;if("undefined"===typeof window)return 0;let r=0;return aD(e)?r=e.pageYOffset:e instanceof Document?r=e.documentElement.scrollTop:(e instanceof HTMLElement||e)&&(r=e.scrollTop),e&&!aD(e)&&"number"!==typeof r&&(r=null===(n=(null!==(t=e.ownerDocument)&&void 0!==t?t:e).documentElement)||void 0===n?void 0:n.scrollTop),r};function cD(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{getContainer:n=(()=>window),callback:r,duration:o=450}=t,i=n(),a=lD(i),l=Date.now(),c=()=>{const t=Date.now()-l,n=function(e,t,n,r){const o=n-t;return(e/=r/2)<1?o/2*e*e*e+t:o/2*((e-=2)*e*e+2)+t}(t>o?o:t,a,e,o);aD(i)?i.scrollTo(window.pageXOffset,n):i instanceof Document||"HTMLDocument"===i.constructor.name?i.documentElement.scrollTop=n:i.scrollTop=n,t<o?eu(c):"function"===typeof r&&r()};eu(c)}function sD(){const[,e]=r.useReducer((e=>e+1),0);return e}const uD=["xxl","xl","lg","md","sm","xs"],dD=e=>({xs:"(max-width: ".concat(e.screenXSMax,"px)"),sm:"(min-width: ".concat(e.screenSM,"px)"),md:"(min-width: ".concat(e.screenMD,"px)"),lg:"(min-width: ".concat(e.screenLG,"px)"),xl:"(min-width: ".concat(e.screenXL,"px)"),xxl:"(min-width: ".concat(e.screenXXL,"px)")}),fD=e=>{const t=e,n=[].concat(uD).reverse();return n.forEach(((e,r)=>{const o=e.toUpperCase(),i="screen".concat(o,"Min"),a="screen".concat(o);if(!(t[i]<=t[a]))throw new Error("".concat(i,"<=").concat(a," fails : !(").concat(t[i],"<=").concat(t[a],")"));if(r<n.length-1){const e="screen".concat(o,"Max");if(!(t[a]<=t[e]))throw new Error("".concat(a,"<=").concat(e," fails : !(").concat(t[a],"<=").concat(t[e],")"));const i=n[r+1].toUpperCase(),l="screen".concat(i,"Min");if(!(t[e]<=t[l]))throw new Error("".concat(e,"<=").concat(l," fails : !(").concat(t[e],"<=").concat(t[l],")"))}})),e};function pD(){const[,e]=wl(),t=dD(fD(e));return r.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||void 0===r||r.mql.removeListener(null===r||void 0===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])}const hD=function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const t=(0,r.useRef)({}),n=sD(),o=pD();return ud((()=>{const r=o.subscribe((r=>{t.current=r,e&&n()}));return()=>o.unsubscribe(r)}),[]),t.current};const gD={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"};var vD=function(e,t){return r.createElement(xs,qc({},e,{ref:t,icon:gD}))};const mD=r.forwardRef(vD);const yD={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"};var bD=function(e,t){return r.createElement(xs,qc({},e,{ref:t,icon:yD}))};const xD=r.forwardRef(bD);const wD={items_per_page:"\u6761/\u9875",jump_to:"\u8df3\u81f3",jump_to_confirm:"\u786e\u5b9a",page:"\u9875",prev_page:"\u4e0a\u4e00\u9875",next_page:"\u4e0b\u4e00\u9875",prev_5:"\u5411\u524d 5 \u9875",next_5:"\u5411\u540e 5 \u9875",prev_3:"\u5411\u524d 3 \u9875",next_3:"\u5411\u540e 3 \u9875",page_size:"\u9875\u7801"};var SD=["10","20","50","100"];const OD=function(e){var t=e.pageSizeOptions,n=void 0===t?SD:t,o=e.locale,i=e.changeSize,a=e.pageSize,l=e.goButton,s=e.quickGo,u=e.rootPrefixCls,d=e.selectComponentClass,f=e.selectPrefixCls,p=e.disabled,g=e.buildOptionText,m=e.showSizeChanger,y=gt(r.useState(""),2),b=y[0],x=y[1],w=function(){return!b||Number.isNaN(b)?void 0:Number(b)},S="function"===typeof g?g:function(e){return"".concat(e," ").concat(o.items_per_page)},O=function(e){""!==b&&(e.keyCode!==BC.ENTER&&"click"!==e.type||(x(""),null===s||void 0===s||s(w())))},_="".concat(u,"-options");if(!m&&!s)return null;var C=null,E=null,P=null;if(m&&d){var M="object"===v(m)?m:{},k=M.options,A=M.className,I=k?void 0:(n.some((function(e){return e.toString()===a.toString()}))?n:n.concat([a.toString()]).sort((function(e,t){return(Number.isNaN(Number(e))?0:Number(e))-(Number.isNaN(Number(t))?0:Number(t))}))).map((function(e,t){return r.createElement(d.Option,{key:t,value:e.toString()},S(e))}));C=r.createElement(d,h({disabled:p,prefixCls:f,showSearch:!1,optionLabelProp:k?"label":"children",popupMatchSelectWidth:!1,value:(a||n[0]).toString(),getPopupContainer:function(e){return e.parentNode},"aria-label":o.page_size,defaultOpen:!1},"object"===v(m)?m:null,{className:c()("".concat(_,"-size-changer"),A),options:k,onChange:function(e,t){var n;null===i||void 0===i||i(Number(e)),"object"===v(m)&&(null===(n=m.onChange)||void 0===n||n.call(m,e,t))}}),I)}return s&&(l&&(P="boolean"===typeof l?r.createElement("button",{type:"button",onClick:O,onKeyUp:O,disabled:p,className:"".concat(_,"-quick-jumper-button")},o.jump_to_confirm):r.createElement("span",{onClick:O,onKeyUp:O},l)),E=r.createElement("div",{className:"".concat(_,"-quick-jumper")},o.jump_to,r.createElement("input",{disabled:p,type:"text",value:b,onChange:function(e){x(e.target.value)},onKeyUp:O,onBlur:function(e){l||""===b||(x(""),e.relatedTarget&&(e.relatedTarget.className.indexOf("".concat(u,"-item-link"))>=0||e.relatedTarget.className.indexOf("".concat(u,"-item"))>=0)||null===s||void 0===s||s(w()))},"aria-label":o.page}),o.page,P)),r.createElement("li",{className:_},C,E)};const _D=function(e){var t=e.rootPrefixCls,n=e.page,o=e.active,i=e.className,a=e.showTitle,l=e.onClick,s=e.onKeyPress,u=e.itemRender,d="".concat(t,"-item"),f=c()(d,"".concat(d,"-").concat(n),w(w({},"".concat(d,"-active"),o),"".concat(d,"-disabled"),!n),i),p=u(n,"page",r.createElement("a",{rel:"nofollow"},n));return p?r.createElement("li",{title:a?String(n):null,className:f,onClick:function(){l(n)},onKeyDown:function(e){s(e,l,n)},tabIndex:0},p):null};var CD=function(e,t,n){return n};function ED(){}function PD(e){var t=Number(e);return"number"===typeof t&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function MD(e,t,n){var r="undefined"===typeof e?t:e;return Math.floor((n-1)/r)+1}const kD=function(e){var t=e.prefixCls,n=void 0===t?"rc-pagination":t,o=e.selectPrefixCls,i=void 0===o?"rc-select":o,a=e.className,l=e.selectComponentClass,s=e.current,u=e.defaultCurrent,d=void 0===u?1:u,f=e.total,p=void 0===f?0:f,g=e.pageSize,m=e.defaultPageSize,y=void 0===m?10:m,b=e.onChange,x=void 0===b?ED:b,S=e.hideOnSinglePage,_=e.align,C=e.showPrevNextJumpers,E=void 0===C||C,P=e.showQuickJumper,M=e.showLessItems,k=e.showTitle,A=void 0===k||k,I=e.onShowSizeChange,T=void 0===I?ED:I,j=e.locale,L=void 0===j?wD:j,R=e.style,D=e.totalBoundaryShowSizeChanger,N=void 0===D?50:D,F=e.disabled,B=e.simple,z=e.showTotal,H=e.showSizeChanger,W=void 0===H?p>N:H,V=e.pageSizeOptions,G=e.itemRender,Y=void 0===G?CD:G,U=e.jumpPrevIcon,X=e.jumpNextIcon,q=e.prevIcon,K=e.nextIcon,$=r.useRef(null),Q=gt(Fi(10,{value:g,defaultValue:y}),2),Z=Q[0],J=Q[1],ee=gt(Fi(1,{value:s,defaultValue:d,postState:function(e){return Math.max(1,Math.min(e,MD(void 0,Z,p)))}}),2),te=ee[0],ne=ee[1],re=gt(r.useState(te),2),oe=re[0],ie=re[1];(0,r.useEffect)((function(){ie(te)}),[te]);var ae=Math.max(1,te-(M?3:5)),le=Math.min(MD(void 0,Z,p),te+(M?3:5));function ce(t,o){var i=t||r.createElement("button",{type:"button","aria-label":o,className:"".concat(n,"-item-link")});return"function"===typeof t&&(i=r.createElement(t,O({},e))),i}function se(e){var t=e.target.value,n=MD(void 0,Z,p);return""===t?t:Number.isNaN(Number(t))?oe:t>=n?n:Number(t)}var ue=p>Z&&P;function de(e){var t=se(e);switch(t!==oe&&ie(t),e.keyCode){case BC.ENTER:fe(t);break;case BC.UP:fe(t-1);break;case BC.DOWN:fe(t+1)}}function fe(e){if(function(e){return PD(e)&&e!==te&&PD(p)&&p>0}(e)&&!F){var t=MD(void 0,Z,p),n=e;return e>t?n=t:e<1&&(n=1),n!==oe&&ie(n),ne(n),null===x||void 0===x||x(n,Z),n}return te}var pe=te>1,he=te<MD(void 0,Z,p);function ge(){pe&&fe(te-1)}function ve(){he&&fe(te+1)}function me(){fe(ae)}function ye(){fe(le)}function be(e,t){if("Enter"===e.key||e.charCode===BC.ENTER||e.keyCode===BC.ENTER){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];t.apply(void 0,r)}}function xe(e){"click"!==e.type&&e.keyCode!==BC.ENTER||fe(oe)}var we=null,Se=GC(e,{aria:!0,data:!0}),Oe=z&&r.createElement("li",{className:"".concat(n,"-total-text")},z(p,[0===p?0:(te-1)*Z+1,te*Z>p?p:te*Z])),_e=null,Ce=MD(void 0,Z,p);if(S&&p<=Z)return null;var Ee=[],Pe={rootPrefixCls:n,onClick:fe,onKeyPress:be,showTitle:A,itemRender:Y,page:-1},Me=te-1>0?te-1:0,ke=te+1<Ce?te+1:Ce,Ae=P&&P.goButton,Ie="object"===v(B)?B.readOnly:!B,Te=Ae,je=null;B&&(Ae&&(Te="boolean"===typeof Ae?r.createElement("button",{type:"button",onClick:xe,onKeyUp:xe},L.jump_to_confirm):r.createElement("span",{onClick:xe,onKeyUp:xe},Ae),Te=r.createElement("li",{title:A?"".concat(L.jump_to).concat(te,"/").concat(Ce):null,className:"".concat(n,"-simple-pager")},Te)),je=r.createElement("li",{title:A?"".concat(te,"/").concat(Ce):null,className:"".concat(n,"-simple-pager")},Ie?oe:r.createElement("input",{type:"text",value:oe,disabled:F,onKeyDown:function(e){e.keyCode!==BC.UP&&e.keyCode!==BC.DOWN||e.preventDefault()},onKeyUp:de,onChange:de,onBlur:function(e){fe(se(e))},size:3}),r.createElement("span",{className:"".concat(n,"-slash")},"/"),Ce));var Le=M?1:2;if(Ce<=3+2*Le){Ce||Ee.push(r.createElement(_D,h({},Pe,{key:"noPager",page:1,className:"".concat(n,"-item-disabled")})));for(var Re=1;Re<=Ce;Re+=1)Ee.push(r.createElement(_D,h({},Pe,{key:Re,page:Re,active:te===Re})))}else{var De=M?L.prev_3:L.prev_5,Ne=M?L.next_3:L.next_5,Fe=Y(ae,"jump-prev",ce(U,"prev page")),Be=Y(le,"jump-next",ce(X,"next page"));E&&(we=Fe?r.createElement("li",{title:A?De:null,key:"prev",onClick:me,tabIndex:0,onKeyDown:function(e){be(e,me)},className:c()("".concat(n,"-jump-prev"),w({},"".concat(n,"-jump-prev-custom-icon"),!!U))},Fe):null,_e=Be?r.createElement("li",{title:A?Ne:null,key:"next",onClick:ye,tabIndex:0,onKeyDown:function(e){be(e,ye)},className:c()("".concat(n,"-jump-next"),w({},"".concat(n,"-jump-next-custom-icon"),!!X))},Be):null);var ze=Math.max(1,te-Le),He=Math.min(te+Le,Ce);te-1<=Le&&(He=1+2*Le),Ce-te<=Le&&(ze=Ce-2*Le);for(var We=ze;We<=He;We+=1)Ee.push(r.createElement(_D,h({},Pe,{key:We,page:We,active:te===We})));if(te-1>=2*Le&&3!==te&&(Ee[0]=r.cloneElement(Ee[0],{className:c()("".concat(n,"-item-after-jump-prev"),Ee[0].props.className)}),Ee.unshift(we)),Ce-te>=2*Le&&te!==Ce-2){var Ve=Ee[Ee.length-1];Ee[Ee.length-1]=r.cloneElement(Ve,{className:c()("".concat(n,"-item-before-jump-next"),Ve.props.className)}),Ee.push(_e)}1!==ze&&Ee.unshift(r.createElement(_D,h({},Pe,{key:1,page:1}))),He!==Ce&&Ee.push(r.createElement(_D,h({},Pe,{key:Ce,page:Ce})))}var Ge=function(e){var t=Y(e,"prev",ce(q,"prev page"));return r.isValidElement(t)?r.cloneElement(t,{disabled:!pe}):t}(Me);if(Ge){var Ye=!pe||!Ce;Ge=r.createElement("li",{title:A?L.prev_page:null,onClick:ge,tabIndex:Ye?null:0,onKeyDown:function(e){be(e,ge)},className:c()("".concat(n,"-prev"),w({},"".concat(n,"-disabled"),Ye)),"aria-disabled":Ye},Ge)}var Ue,Xe,qe=function(e){var t=Y(e,"next",ce(K,"next page"));return r.isValidElement(t)?r.cloneElement(t,{disabled:!he}):t}(ke);qe&&(B?(Ue=!he,Xe=pe?0:null):Xe=(Ue=!he||!Ce)?null:0,qe=r.createElement("li",{title:A?L.next_page:null,onClick:ve,tabIndex:Xe,onKeyDown:function(e){be(e,ve)},className:c()("".concat(n,"-next"),w({},"".concat(n,"-disabled"),Ue)),"aria-disabled":Ue},qe));var Ke=c()(n,a,w(w(w(w(w({},"".concat(n,"-start"),"start"===_),"".concat(n,"-center"),"center"===_),"".concat(n,"-end"),"end"===_),"".concat(n,"-simple"),B),"".concat(n,"-disabled"),F));return r.createElement("ul",h({className:Ke,style:R,ref:$},Se),Oe,Ge,B?je:Ee,qe,r.createElement(OD,{locale:L,rootPrefixCls:n,disabled:F,selectComponentClass:l,selectPrefixCls:i,changeSize:function(e){var t=MD(e,Z,p),n=te>t&&0!==t?t:te;J(e),ie(n),null===T||void 0===T||T(te,e),ne(n),null===x||void 0===x||x(n,e)},pageSize:Z,pageSizeOptions:V,quickGo:ue?fe:null,goButton:Te,showSizeChanger:W}))},AD=e=>r.createElement(wC,Object.assign({},e,{showSearch:!0,size:"small"})),ID=e=>r.createElement(wC,Object.assign({},e,{showSearch:!0,size:"middle"}));AD.Option=wC.Option,ID.Option=wC.Option;const TD=e=>{const{componentCls:t}=e;return{["".concat(t,"-disabled")]:{"&, &:hover":{cursor:"not-allowed",["".concat(t,"-item-link")]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",["".concat(t,"-item-link")]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},["&".concat(t,"-disabled")]:{cursor:"not-allowed",["".concat(t,"-item")]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},["".concat(t,"-item-link")]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},["".concat(t,"-simple&")]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},["".concat(t,"-simple-pager")]:{color:e.colorTextDisabled},["".concat(t,"-jump-prev, ").concat(t,"-jump-next")]:{["".concat(t,"-item-link-icon")]:{opacity:0},["".concat(t,"-item-ellipsis")]:{opacity:1}}},["&".concat(t,"-simple")]:{["".concat(t,"-prev, ").concat(t,"-next")]:{["&".concat(t,"-disabled ").concat(t,"-item-link")]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},jD=e=>{const{componentCls:t}=e;return{["&".concat(t,"-mini ").concat(t,"-total-text, &").concat(t,"-mini ").concat(t,"-simple-pager")]:{height:e.itemSizeSM,lineHeight:yn(e.itemSizeSM)},["&".concat(t,"-mini ").concat(t,"-item")]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:yn(e.calc(e.itemSizeSM).sub(2).equal())},["&".concat(t,"-mini:not(").concat(t,"-disabled) ").concat(t,"-item:not(").concat(t,"-item-active)")]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},["&".concat(t,"-mini ").concat(t,"-prev, &").concat(t,"-mini ").concat(t,"-next")]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:yn(e.itemSizeSM)},["&".concat(t,"-mini:not(").concat(t,"-disabled)")]:{["".concat(t,"-prev, ").concat(t,"-next")]:{["&:hover ".concat(t,"-item-link")]:{backgroundColor:e.colorBgTextHover},["&:active ".concat(t,"-item-link")]:{backgroundColor:e.colorBgTextActive},["&".concat(t,"-disabled:hover ").concat(t,"-item-link")]:{backgroundColor:"transparent"}}},["\n    &".concat(t,"-mini ").concat(t,"-prev ").concat(t,"-item-link,\n    &").concat(t,"-mini ").concat(t,"-next ").concat(t,"-item-link\n    ")]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:yn(e.itemSizeSM)}},["&".concat(t,"-mini ").concat(t,"-jump-prev, &").concat(t,"-mini ").concat(t,"-jump-next")]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:yn(e.itemSizeSM)},["&".concat(t,"-mini ").concat(t,"-options")]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:yn(e.itemSizeSM),input:Object.assign(Object.assign({},Vl(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},LD=e=>{const{componentCls:t}=e;return{["\n    &".concat(t,"-simple ").concat(t,"-prev,\n    &").concat(t,"-simple ").concat(t,"-next\n    ")]:{height:e.itemSizeSM,lineHeight:yn(e.itemSizeSM),verticalAlign:"top",["".concat(t,"-item-link")]:{height:e.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSizeSM,lineHeight:yn(e.itemSizeSM)}}},["&".concat(t,"-simple ").concat(t,"-simple-pager")]:{display:"inline-block",height:e.itemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",padding:"0 ".concat(yn(e.paginationItemPaddingInline)),textAlign:"center",backgroundColor:e.itemInputBg,border:"".concat(yn(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorBorder),borderRadius:e.borderRadius,outline:"none",transition:"border-color ".concat(e.motionDurationMid),color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:"".concat(yn(e.inputOutlineOffset)," 0 ").concat(yn(e.controlOutlineWidth)," ").concat(e.controlOutline)},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},RD=e=>{const{componentCls:t}=e;return{["".concat(t,"-jump-prev, ").concat(t,"-jump-next")]:{outline:0,["".concat(t,"-item-container")]:{position:"relative",["".concat(t,"-item-link-icon")]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:"all ".concat(e.motionDurationMid),"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},["".concat(t,"-item-ellipsis")]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:"all ".concat(e.motionDurationMid)}},"&:hover":{["".concat(t,"-item-link-icon")]:{opacity:1},["".concat(t,"-item-ellipsis")]:{opacity:0}}},["\n    ".concat(t,"-prev,\n    ").concat(t,"-jump-prev,\n    ").concat(t,"-jump-next\n    ")]:{marginInlineEnd:e.marginXS},["\n    ".concat(t,"-prev,\n    ").concat(t,"-next,\n    ").concat(t,"-jump-prev,\n    ").concat(t,"-jump-next\n    ")]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:yn(e.itemSize),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:"all ".concat(e.motionDurationMid)},["".concat(t,"-prev, ").concat(t,"-next")]:{outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},["".concat(t,"-item-link")]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:"".concat(yn(e.lineWidth)," ").concat(e.lineType," transparent"),borderRadius:e.borderRadius,outline:"none",transition:"all ".concat(e.motionDurationMid)},["&:hover ".concat(t,"-item-link")]:{backgroundColor:e.colorBgTextHover},["&:active ".concat(t,"-item-link")]:{backgroundColor:e.colorBgTextActive},["&".concat(t,"-disabled:hover")]:{["".concat(t,"-item-link")]:{backgroundColor:"transparent"}}},["".concat(t,"-slash")]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},["".concat(t,"-options")]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:yn(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},Gl(e)),Al(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},kl(e)),width:e.calc(e.controlHeightLG).mul(1.25).equal(),height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},DD=e=>{const{componentCls:t}=e;return{["".concat(t,"-item")]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:yn(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:"".concat(yn(e.lineWidth)," ").concat(e.lineType," transparent"),borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:"0 ".concat(yn(e.paginationItemPaddingInline)),color:e.colorText,"&:hover":{textDecoration:"none"}},["&:not(".concat(t,"-item-active)")]:{"&:hover":{transition:"all ".concat(e.motionDurationMid),backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}}}},ND=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ur(e)),{display:"flex","&-start":{justifyContent:"start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"end"},"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},["".concat(t,"-total-text")]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:yn(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),DD(e)),RD(e)),LD(e)),jD(e)),TD(e)),{["@media only screen and (max-width: ".concat(e.screenLG,"px)")]:{["".concat(t,"-item")]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},["@media only screen and (max-width: ".concat(e.screenSM,"px)")]:{["".concat(t,"-options")]:{display:"none"}}}),["&".concat(e.componentCls,"-rtl")]:{direction:"rtl"}}},FD=e=>{const{componentCls:t}=e;return{["".concat(t,":not(").concat(t,"-disabled)")]:{["".concat(t,"-item")]:Object.assign({},Kr(e)),["".concat(t,"-jump-prev, ").concat(t,"-jump-next")]:{"&:focus-visible":Object.assign({["".concat(t,"-item-link-icon")]:{opacity:1},["".concat(t,"-item-ellipsis")]:{opacity:0}},qr(e))},["".concat(t,"-prev, ").concat(t,"-next")]:{["&:focus-visible ".concat(t,"-item-link")]:Object.assign({},qr(e))}}}},BD=e=>Object.assign({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0},Pl(e)),zD=e=>Ui(e,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginSM,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},El(e)),HD=Ol("Pagination",(e=>{const t=zD(e);return[ND(t),FD(t)]}),BD),WD=e=>{const{componentCls:t}=e;return{["".concat(t).concat(t,"-bordered").concat(t,"-disabled:not(").concat(t,"-mini)")]:{"&, &:hover":{["".concat(t,"-item-link")]:{borderColor:e.colorBorder}},"&:focus-visible":{["".concat(t,"-item-link")]:{borderColor:e.colorBorder}},["".concat(t,"-item, ").concat(t,"-item-link")]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,["&:hover:not(".concat(t,"-item-active)")]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},["&".concat(t,"-item-active")]:{backgroundColor:e.itemActiveBgDisabled}},["".concat(t,"-prev, ").concat(t,"-next")]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},["".concat(t,"-item-link")]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},["".concat(t).concat(t,"-bordered:not(").concat(t,"-mini)")]:{["".concat(t,"-prev, ").concat(t,"-next")]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},["".concat(t,"-item-link")]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},["&:hover ".concat(t,"-item-link")]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},["&".concat(t,"-disabled")]:{["".concat(t,"-item-link")]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},["".concat(t,"-item")]:{backgroundColor:e.itemBg,border:"".concat(yn(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorBorder),["&:hover:not(".concat(t,"-item-active)")]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},VD=Cl(["Pagination","bordered"],(e=>{const t=zD(e);return[WD(t)]}),BD);var GD=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 YD=e=>{const{align:t,prefixCls:n,selectPrefixCls:o,className:i,rootClassName:a,style:l,size:s,locale:u,selectComponentClass:d,responsive:p,showSizeChanger:h}=e,g=GD(e,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:v}=hD(p),[,m]=wl(),{getPrefixCls:y,direction:b,pagination:x={}}=r.useContext(f),w=y("pagination",n),[S,O,_]=HD(w),C=null!==h&&void 0!==h?h:x.showSizeChanger,E=r.useMemo((()=>{const e=r.createElement("span",{className:"".concat(w,"-item-ellipsis")},"\u2022\u2022\u2022");return{prevIcon:r.createElement("button",{className:"".concat(w,"-item-link"),type:"button",tabIndex:-1},"rtl"===b?r.createElement(BT,null):r.createElement(wL,null)),nextIcon:r.createElement("button",{className:"".concat(w,"-item-link"),type:"button",tabIndex:-1},"rtl"===b?r.createElement(wL,null):r.createElement(BT,null)),jumpPrevIcon:r.createElement("a",{className:"".concat(w,"-item-link")},r.createElement("div",{className:"".concat(w,"-item-container")},"rtl"===b?r.createElement(xD,{className:"".concat(w,"-item-link-icon")}):r.createElement(mD,{className:"".concat(w,"-item-link-icon")}),e)),jumpNextIcon:r.createElement("a",{className:"".concat(w,"-item-link")},r.createElement("div",{className:"".concat(w,"-item-container")},"rtl"===b?r.createElement(mD,{className:"".concat(w,"-item-link-icon")}):r.createElement(xD,{className:"".concat(w,"-item-link-icon")}),e))}}),[b,w]),[P]=Lg("Pagination",Og),M=Object.assign(Object.assign({},P),u),k=Dc(s),A="small"===k||!(!v||k||!p),I=y("select",o),T=c()({["".concat(w,"-").concat(t)]:!!t,["".concat(w,"-mini")]:A,["".concat(w,"-rtl")]:"rtl"===b,["".concat(w,"-bordered")]:m.wireframe},null===x||void 0===x?void 0:x.className,i,a,O,_),j=Object.assign(Object.assign({},null===x||void 0===x?void 0:x.style),l);return S(r.createElement(r.Fragment,null,m.wireframe&&r.createElement(VD,{prefixCls:w}),r.createElement(kD,Object.assign({},E,g,{style:j,prefixCls:w,selectPrefixCls:I,className:T,selectComponentClass:d||(A?AD:ID),locale:M,showSizeChanger:C}))))},UD=YD;function XD(e,t,n){var r=(n||{}).atBegin;return function(e,t,n){var r,o=n||{},i=o.noTrailing,a=void 0!==i&&i,l=o.noLeading,c=void 0!==l&&l,s=o.debounceMode,u=void 0===s?void 0:s,d=!1,f=0;function p(){r&&clearTimeout(r)}function h(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];var l=this,s=Date.now()-f;function h(){f=Date.now(),t.apply(l,o)}function g(){r=void 0}d||(c||!u||r||h(),p(),void 0===u&&s>e?c?(f=Date.now(),a||(r=setTimeout(u?g:h,e))):h():!0!==a&&(r=setTimeout(u?g:h,void 0===u?e-s:e)))}return h.cancel=function(e){var t=(e||{}).upcomingOnly,n=void 0!==t&&t;p(),d=!n},h}(e,t,{debounceMode:!1!==(void 0!==r&&r)})}const qD=100,KD=80*Math.PI,$D=e=>{const{dotClassName:t,style:n,hasCircleCls:o}=e;return r.createElement("circle",{className:c()("".concat(t,"-circle"),{["".concat(t,"-circle-bg")]:o}),r:40,cx:50,cy:50,strokeWidth:20,style:n})},QD=e=>{let{percent:t,prefixCls:n}=e;const o="".concat(n,"-dot"),i="".concat(o,"-holder"),a="".concat(i,"-hidden"),[l,s]=r.useState(!1);ud((()=>{0!==t&&s(!0)}),[0!==t]);const u=Math.max(Math.min(t,100),0);if(!l)return null;const d={strokeDashoffset:"".concat(KD/4),strokeDasharray:"".concat(KD*u/100," ").concat(KD*(100-u)/100)};return r.createElement("span",{className:c()(i,"".concat(o,"-progress"),u<=0&&a)},r.createElement("svg",{viewBox:"0 0 ".concat(qD," ").concat(qD),role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":u},r.createElement($D,{dotClassName:o,hasCircleCls:!0}),r.createElement($D,{dotClassName:o,style:d})))};function ZD(e){const{prefixCls:t,percent:n=0}=e,o="".concat(t,"-dot"),i="".concat(o,"-holder"),a="".concat(i,"-hidden");return r.createElement(r.Fragment,null,r.createElement("span",{className:c()(i,n>0&&a)},r.createElement("span",{className:c()(o,"".concat(t,"-dot-spin"))},[1,2,3,4].map((e=>r.createElement("i",{className:"".concat(t,"-dot-item"),key:e}))))),r.createElement(QD,{prefixCls:t,percent:n}))}function JD(e){const{prefixCls:t,indicator:n,percent:o}=e,i="".concat(t,"-dot");return n&&r.isValidElement(n)?Cu(n,{className:c()(n.props.className,i),percent:o}):r.createElement(ZD,{prefixCls:t,percent:o})}const eN=new Vr("antSpinMove",{to:{opacity:1}}),tN=new Vr("antRotate",{to:{transform:"rotate(405deg)"}}),nN=e=>{const{componentCls:t,calc:n}=e;return{[t]:Object.assign(Object.assign({},Ur(e)),{position:"absolute",display:"none",color:e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:"transform ".concat(e.motionDurationSlow," ").concat(e.motionEaseInOutCirc),"&-spinning":{position:"relative",display:"inline-block",opacity:1},["".concat(t,"-text")]:{fontSize:e.fontSize,paddingTop:n(n(e.dotSize).sub(e.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:"all ".concat(e.motionDurationMid),"&-show":{opacity:1,visibility:"visible"},[t]:{["".concat(t,"-dot-holder")]:{color:e.colorWhite},["".concat(t,"-text")]:{color:e.colorTextLightSolid}}},"&-nested-loading":{position:"relative",["> div > ".concat(t)]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,["".concat(t,"-dot")]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:n(e.dotSize).mul(-1).div(2).equal()},["".concat(t,"-text")]:{position:"absolute",top:"50%",width:"100%",textShadow:"0 1px 2px ".concat(e.colorBgContainer)},["&".concat(t,"-show-text ").concat(t,"-dot")]:{marginTop:n(e.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{["".concat(t,"-dot")]:{margin:n(e.dotSizeSM).mul(-1).div(2).equal()},["".concat(t,"-text")]:{paddingTop:n(n(e.dotSizeSM).sub(e.fontSize)).div(2).add(2).equal()},["&".concat(t,"-show-text ").concat(t,"-dot")]:{marginTop:n(e.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{["".concat(t,"-dot")]:{margin:n(e.dotSizeLG).mul(-1).div(2).equal()},["".concat(t,"-text")]:{paddingTop:n(n(e.dotSizeLG).sub(e.fontSize)).div(2).add(2).equal()},["&".concat(t,"-show-text ").concat(t,"-dot")]:{marginTop:n(e.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},["".concat(t,"-container")]:{position:"relative",transition:"opacity ".concat(e.motionDurationSlow),"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:"all ".concat(e.motionDurationSlow),content:'""',pointerEvents:"none"}},["".concat(t,"-blur")]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},["".concat(t,"-dot-holder")]:{width:"1em",height:"1em",fontSize:e.dotSize,display:"inline-block",transition:"transform ".concat(e.motionDurationSlow," ease, opacity ").concat(e.motionDurationSlow," ease"),transformOrigin:"50% 50%",lineHeight:1,color:e.colorPrimary,"&-hidden":{transform:"scale(0.3)",opacity:0}},["".concat(t,"-dot-progress")]:{position:"absolute",top:"50%",transform:"translate(-50%, -50%)",insetInlineStart:"50%"},["".concat(t,"-dot")]:{position:"relative",display:"inline-block",fontSize:e.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),height:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),background:"currentColor",borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:eN,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:"0s"},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:tN,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"},"&-circle":{strokeLinecap:"round",transition:["stroke-dashoffset","stroke-dasharray","stroke","stroke-width","opacity"].map((t=>"".concat(t," ").concat(e.motionDurationSlow," ease"))).join(","),fillOpacity:0,stroke:"currentcolor"},"&-circle-bg":{stroke:e.colorFillSecondary}},["&-sm ".concat(t,"-dot")]:{"&, &-holder":{fontSize:e.dotSizeSM}},["&-sm ".concat(t,"-dot-holder")]:{i:{width:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal(),height:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal()}},["&-lg ".concat(t,"-dot")]:{"&, &-holder":{fontSize:e.dotSizeLG}},["&-lg ".concat(t,"-dot-holder")]:{i:{width:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal(),height:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal()}},["&".concat(t,"-show-text ").concat(t,"-text")]:{display:"block"}})}},rN=Ol("Spin",(e=>{const t=Ui(e,{spinDotDefault:e.colorTextDescription});return[nN(t)]}),(e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:.35*t,dotSizeLG:n}})),oN=[[30,.05],[70,.03],[96,.01]];var iN=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};let aN;const lN=e=>{var t;const{prefixCls:n,spinning:o=!0,delay:i=0,className:a,rootClassName:l,size:s="default",tip:u,wrapperClassName:d,style:p,children:h,fullscreen:g=!1,indicator:v,percent:m}=e,y=iN(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen","indicator","percent"]),{getPrefixCls:b,direction:x,spin:w}=r.useContext(f),S=b("spin",n),[O,_,C]=rN(S),[E,P]=r.useState((()=>o&&!function(e,t){return!!e&&!!t&&!isNaN(Number(t))}(o,i))),M=function(e,t){const[n,o]=r.useState(0),i=r.useRef(),a="auto"===t;return r.useEffect((()=>(a&&e&&(o(0),i.current=setInterval((()=>{o((e=>{const t=100-e;for(let n=0;n<oN.length;n+=1){const[r,o]=oN[n];if(e<=r)return e+t*o}return e}))}),200)),()=>{clearInterval(i.current)})),[a,e]),a?n:t}(E,m);r.useEffect((()=>{if(o){const e=XD(i,(()=>{P(!0)}));return e(),()=>{var t;null===(t=null===e||void 0===e?void 0:e.cancel)||void 0===t||t.call(e)}}P(!1)}),[i,o]);const k=r.useMemo((()=>"undefined"!==typeof h&&!g),[h,g]);const A=c()(S,null===w||void 0===w?void 0:w.className,{["".concat(S,"-sm")]:"small"===s,["".concat(S,"-lg")]:"large"===s,["".concat(S,"-spinning")]:E,["".concat(S,"-show-text")]:!!u,["".concat(S,"-rtl")]:"rtl"===x},a,!g&&l,_,C),I=c()("".concat(S,"-container"),{["".concat(S,"-blur")]:E}),T=null!==(t=null!==v&&void 0!==v?v:null===w||void 0===w?void 0:w.indicator)&&void 0!==t?t:aN,j=Object.assign(Object.assign({},null===w||void 0===w?void 0:w.style),p),L=r.createElement("div",Object.assign({},y,{style:j,className:A,"aria-live":"polite","aria-busy":E}),r.createElement(JD,{prefixCls:S,indicator:T,percent:M}),u&&(k||g)?r.createElement("div",{className:"".concat(S,"-text")},u):null);return O(k?r.createElement("div",Object.assign({},y,{className:c()("".concat(S,"-nested-loading"),d,_,C)}),E&&r.createElement("div",{key:"loading"},L),r.createElement("div",{className:I,key:"container"},h)):g?r.createElement("div",{className:c()("".concat(S,"-fullscreen"),{["".concat(S,"-fullscreen-show")]:E},l,_,C)},L):L)};lN.setDefaultIndicator=e=>{aN=e};const cN=lN;const sN=function(e){return t=>{const{prefixCls:n,onExpand:o,record:i,expanded:a,expandable:l}=t,s="".concat(n,"-row-expand-icon");return r.createElement("button",{type:"button",onClick:e=>{o(i,e),e.stopPropagation()},className:c()(s,{["".concat(s,"-spaced")]:!l,["".concat(s,"-expanded")]:l&&a,["".concat(s,"-collapsed")]:l&&!a}),"aria-label":a?e.collapse:e.expand,"aria-expanded":a})}};const uN=(e,t)=>"key"in e&&void 0!==e.key&&null!==e.key?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex:t;function dN(e,t){return t?"".concat(t,"-").concat(e):"".concat(e)}const fN=(e,t)=>"function"===typeof e?e(t):e;const pN={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"};var hN=function(e,t){return r.createElement(xs,qc({},e,{ref:t,icon:pN}))};const gN=r.forwardRef(hN);function vN(e){if(null==e)throw new TypeError("Cannot destructure "+e)}var mN=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],yN=function(e,t){var n=e.className,o=e.style,i=e.motion,a=e.motionNodes,l=e.motionType,s=e.onMotionStart,u=e.onMotionEnd,d=e.active,f=e.treeNodeRequiredProps,p=g(e,mN),v=gt(r.useState(!0),2),m=v[0],y=v[1],b=r.useContext(GI).prefixCls,x=a&&"hide"!==l;Cn((function(){a&&x!==m&&y(x)}),[a]);var w=r.useRef(!1),S=function(){a&&!w.current&&(w.current=!0,u())};!function(e,t){var n=gt(r.useState(!1),2),o=n[0],i=n[1];Cn((function(){if(o)return e(),function(){t()}}),[o]),Cn((function(){return i(!0),function(){i(!1)}}),[])}((function(){a&&s()}),S);return a?r.createElement(zv,h({ref:t,visible:m},i,{motionAppear:"show"===l,onVisibleChanged:function(e){x===e&&S()}}),(function(e,t){var n=e.className,o=e.style;return r.createElement("div",{ref:t,className:c()("".concat(b,"-treenode-motion"),n),style:o},a.map((function(e){var t=Object.assign({},(vN(e.data),e.data)),n=e.title,o=e.key,i=e.isStart,a=e.isEnd;delete t.children;var l=nT(o,f);return r.createElement(sT,h({},t,l,{title:n,active:d,data:e.data,key:o,isStart:i,isEnd:a}))})))})):r.createElement(sT,h({domRef:t,className:n,style:o},p,{active:d}))};yN.displayName="MotionTreeNode";const bN=r.forwardRef(yN);function xN(e,t,n){var r=e.findIndex((function(e){return e.key===n})),o=e[r+1],i=t.findIndex((function(e){return e.key===n}));if(o){var a=t.findIndex((function(e){return e.key===o.key}));return t.slice(i+1,a)}return t.slice(i+1)}var wN=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],SN={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},ON=function(){},_N="RC_TREE_MOTION_".concat(Math.random()),CN={key:_N},EN={key:_N,level:0,index:0,pos:"0",node:CN,nodes:[CN]},PN={parent:null,children:[],pos:EN.pos,data:CN,title:null,key:_N,isStart:[],isEnd:[]};function MN(e,t,n,r){return!1!==t&&n?e.slice(0,Math.ceil(n/r)+1):e}function kN(e){return QI(e.key,e.pos)}var AN=r.forwardRef((function(e,t){var n=e.prefixCls,o=e.data,i=(e.selectable,e.checkable,e.expandedKeys),a=e.selectedKeys,l=e.checkedKeys,c=e.loadedKeys,s=e.loadingKeys,u=e.halfCheckedKeys,d=e.keyEntities,f=e.disabled,p=e.dragging,v=e.dragOverNodeKey,m=e.dropPosition,y=e.motion,b=e.height,x=e.itemHeight,w=e.virtual,S=e.focusable,O=e.activeItem,_=e.focused,C=e.tabIndex,E=e.onKeyDown,P=e.onFocus,M=e.onBlur,k=e.onActiveChange,A=e.onListChangeStart,I=e.onListChangeEnd,T=g(e,wN),j=r.useRef(null),L=r.useRef(null);r.useImperativeHandle(t,(function(){return{scrollTo:function(e){j.current.scrollTo(e)},getIndentWidth:function(){return L.current.offsetWidth}}}));var R=gt(r.useState(i),2),D=R[0],N=R[1],F=gt(r.useState(o),2),B=F[0],z=F[1],H=gt(r.useState(o),2),W=H[0],V=H[1],G=gt(r.useState([]),2),Y=G[0],U=G[1],X=gt(r.useState(null),2),q=X[0],K=X[1],$=r.useRef(o);function Q(){var e=$.current;z(e),V(e),U([]),K(null),I()}$.current=o,Cn((function(){N(i);var e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=e.length,r=t.length;if(1!==Math.abs(n-r))return{add:!1,key:null};function o(e,t){var n=new Map;e.forEach((function(e){n.set(e,!0)}));var r=t.filter((function(e){return!n.has(e)}));return 1===r.length?r[0]:null}return n<r?{add:!0,key:o(e,t)}:{add:!1,key:o(t,e)}}(D,i);if(null!==e.key)if(e.add){var t=B.findIndex((function(t){return t.key===e.key})),n=MN(xN(B,o,e.key),w,b,x),r=B.slice();r.splice(t+1,0,PN),V(r),U(n),K("show")}else{var a=o.findIndex((function(t){return t.key===e.key})),l=MN(xN(o,B,e.key),w,b,x),c=o.slice();c.splice(a+1,0,PN),V(c),U(l),K("hide")}else B!==o&&(z(o),V(o))}),[i,o]),r.useEffect((function(){p||Q()}),[p]);var Z=y?W:o,J={expandedKeys:i,selectedKeys:a,loadedKeys:c,loadingKeys:s,checkedKeys:l,halfCheckedKeys:u,dragOverNodeKey:v,dropPosition:m,keyEntities:d};return r.createElement(r.Fragment,null,_&&O&&r.createElement("span",{style:SN,"aria-live":"assertive"},function(e){for(var t=String(e.data.key),n=e;n.parent;)n=n.parent,t="".concat(n.data.key," > ").concat(t);return t}(O)),r.createElement("div",null,r.createElement("input",{style:SN,disabled:!1===S||f,tabIndex:!1!==S?C:null,onKeyDown:E,onFocus:P,onBlur:M,value:"",onChange:ON,"aria-label":"for screen reader"})),r.createElement("div",{className:"".concat(n,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},r.createElement("div",{className:"".concat(n,"-indent")},r.createElement("div",{ref:L,className:"".concat(n,"-indent-unit")}))),r.createElement(lO,h({},T,{data:Z,itemKey:kN,height:b,fullHeight:!1,virtual:w,itemHeight:x,prefixCls:"".concat(n,"-list"),ref:j,onVisibleChange:function(e){e.every((function(e){return kN(e)!==_N}))&&Q()}}),(function(e){var t=e.pos,n=Object.assign({},(vN(e.data),e.data)),o=e.title,i=e.key,a=e.isStart,l=e.isEnd,c=QI(i,t);delete n.key,delete n.children;var s=nT(c,J);return r.createElement(bN,h({},n,s,{title:o,active:!!O&&i===O.key,pos:t,data:e.data,isStart:a,isEnd:l,motion:y,motionNodes:i===_N?Y:null,motionType:q,onMotionStart:A,onMotionEnd:Q,treeNodeRequiredProps:J,onMouseMove:function(){k(null)}}))})))}));AN.displayName="NodeList";const IN=AN;var TN=function(e){j(n,e);var t=D(n);function n(){var e;M(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return w(I(e=t.call.apply(t,[this].concat(i))),"destroyed",!1),w(I(e),"delayedDragEnterLogic",void 0),w(I(e),"loadingRetryTimes",{}),w(I(e),"state",{keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:ZI()}),w(I(e),"dragStartMousePosition",null),w(I(e),"dragNode",void 0),w(I(e),"currentMouseOverDroppableNodeKey",null),w(I(e),"listRef",r.createRef()),w(I(e),"onNodeDragStart",(function(t,n){var r=e.state,o=r.expandedKeys,i=r.keyEntities,a=e.props.onDragStart,l=n.props.eventKey;e.dragNode=n,e.dragStartMousePosition={x:t.clientX,y:t.clientY};var c=uT(o,l);e.setState({draggingNodeKey:l,dragChildrenKeys:pT(l,i),indent:e.listRef.current.getIndentWidth()}),e.setExpandedKeys(c),window.addEventListener("dragend",e.onWindowDragEnd),null===a||void 0===a||a({event:t,node:rT(n.props)})})),w(I(e),"onNodeDragEnter",(function(t,n){var r=e.state,o=r.expandedKeys,i=r.keyEntities,a=r.dragChildrenKeys,l=r.flattenNodes,c=r.indent,s=e.props,u=s.onDragEnter,d=s.onExpand,f=s.allowDrop,p=s.direction,h=n.props,g=h.pos,v=h.eventKey,m=I(e).dragNode;if(e.currentMouseOverDroppableNodeKey!==v&&(e.currentMouseOverDroppableNodeKey=v),m){var y=gT(t,m,n,c,e.dragStartMousePosition,f,l,i,o,p),b=y.dropPosition,x=y.dropLevelOffset,w=y.dropTargetKey,S=y.dropContainerKey,O=y.dropTargetPos,_=y.dropAllowed,C=y.dragOverNodeKey;-1===a.indexOf(w)&&_?(e.delayedDragEnterLogic||(e.delayedDragEnterLogic={}),Object.keys(e.delayedDragEnterLogic).forEach((function(t){clearTimeout(e.delayedDragEnterLogic[t])})),m.props.eventKey!==n.props.eventKey&&(t.persist(),e.delayedDragEnterLogic[g]=window.setTimeout((function(){if(null!==e.state.draggingNodeKey){var r=P(o),a=XI(i,n.props.eventKey);a&&(a.children||[]).length&&(r=dT(o,n.props.eventKey)),"expandedKeys"in e.props||e.setExpandedKeys(r),null===d||void 0===d||d(r,{node:rT(n.props),expanded:!0,nativeEvent:t.nativeEvent})}}),800)),m.props.eventKey!==w||0!==x?(e.setState({dragOverNodeKey:C,dropPosition:b,dropLevelOffset:x,dropTargetKey:w,dropContainerKey:S,dropTargetPos:O,dropAllowed:_}),null===u||void 0===u||u({event:t,node:rT(n.props),expandedKeys:o})):e.resetDragState()):e.resetDragState()}else e.resetDragState()})),w(I(e),"onNodeDragOver",(function(t,n){var r=e.state,o=r.dragChildrenKeys,i=r.flattenNodes,a=r.keyEntities,l=r.expandedKeys,c=r.indent,s=e.props,u=s.onDragOver,d=s.allowDrop,f=s.direction,p=I(e).dragNode;if(p){var h=gT(t,p,n,c,e.dragStartMousePosition,d,i,a,l,f),g=h.dropPosition,v=h.dropLevelOffset,m=h.dropTargetKey,y=h.dropContainerKey,b=h.dropAllowed,x=h.dropTargetPos,w=h.dragOverNodeKey;-1===o.indexOf(m)&&b&&(p.props.eventKey===m&&0===v?null===e.state.dropPosition&&null===e.state.dropLevelOffset&&null===e.state.dropTargetKey&&null===e.state.dropContainerKey&&null===e.state.dropTargetPos&&!1===e.state.dropAllowed&&null===e.state.dragOverNodeKey||e.resetDragState():g===e.state.dropPosition&&v===e.state.dropLevelOffset&&m===e.state.dropTargetKey&&y===e.state.dropContainerKey&&x===e.state.dropTargetPos&&b===e.state.dropAllowed&&w===e.state.dragOverNodeKey||e.setState({dropPosition:g,dropLevelOffset:v,dropTargetKey:m,dropContainerKey:y,dropTargetPos:x,dropAllowed:b,dragOverNodeKey:w}),null===u||void 0===u||u({event:t,node:rT(n.props)}))}})),w(I(e),"onNodeDragLeave",(function(t,n){e.currentMouseOverDroppableNodeKey!==n.props.eventKey||t.currentTarget.contains(t.relatedTarget)||(e.resetDragState(),e.currentMouseOverDroppableNodeKey=null);var r=e.props.onDragLeave;null===r||void 0===r||r({event:t,node:rT(n.props)})})),w(I(e),"onWindowDragEnd",(function(t){e.onNodeDragEnd(t,null,!0),window.removeEventListener("dragend",e.onWindowDragEnd)})),w(I(e),"onNodeDragEnd",(function(t,n){var r=e.props.onDragEnd;e.setState({dragOverNodeKey:null}),e.cleanDragState(),null===r||void 0===r||r({event:t,node:rT(n.props)}),e.dragNode=null,window.removeEventListener("dragend",e.onWindowDragEnd)})),w(I(e),"onNodeDrop",(function(t,n){var r,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=e.state,a=i.dragChildrenKeys,l=i.dropPosition,c=i.dropTargetKey,s=i.dropTargetPos;if(i.dropAllowed){var u=e.props.onDrop;if(e.setState({dragOverNodeKey:null}),e.cleanDragState(),null!==c){var d=O(O({},nT(c,e.getTreeNodeRequiredProps())),{},{active:(null===(r=e.getActiveItem())||void 0===r?void 0:r.key)===c,data:XI(e.state.keyEntities,c).node}),f=-1!==a.indexOf(c);U(!f,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var p=fT(s),h={event:t,node:rT(d),dragNode:e.dragNode?rT(e.dragNode.props):null,dragNodesKeys:[e.dragNode.props.eventKey].concat(a),dropToGap:0!==l,dropPosition:l+Number(p[p.length-1])};o||null===u||void 0===u||u(h),e.dragNode=null}}})),w(I(e),"cleanDragState",(function(){null!==e.state.draggingNodeKey&&e.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),e.dragStartMousePosition=null,e.currentMouseOverDroppableNodeKey=null})),w(I(e),"triggerExpandActionExpand",(function(t,n){var r=e.state,o=r.expandedKeys,i=r.flattenNodes,a=n.expanded,l=n.key;if(!(n.isLeaf||t.shiftKey||t.metaKey||t.ctrlKey)){var c=i.filter((function(e){return e.key===l}))[0],s=rT(O(O({},nT(l,e.getTreeNodeRequiredProps())),{},{data:c.data}));e.setExpandedKeys(a?uT(o,l):dT(o,l)),e.onNodeExpand(t,s)}})),w(I(e),"onNodeClick",(function(t,n){var r=e.props,o=r.onClick;"click"===r.expandAction&&e.triggerExpandActionExpand(t,n),null===o||void 0===o||o(t,n)})),w(I(e),"onNodeDoubleClick",(function(t,n){var r=e.props,o=r.onDoubleClick;"doubleClick"===r.expandAction&&e.triggerExpandActionExpand(t,n),null===o||void 0===o||o(t,n)})),w(I(e),"onNodeSelect",(function(t,n){var r=e.state.selectedKeys,o=e.state,i=o.keyEntities,a=o.fieldNames,l=e.props,c=l.onSelect,s=l.multiple,u=n.selected,d=n[a.key],f=!u,p=(r=f?s?dT(r,d):[d]:uT(r,d)).map((function(e){var t=XI(i,e);return t?t.node:null})).filter((function(e){return e}));e.setUncontrolledState({selectedKeys:r}),null===c||void 0===c||c(r,{event:"select",selected:f,node:n,selectedNodes:p,nativeEvent:t.nativeEvent})})),w(I(e),"onNodeCheck",(function(t,n,r){var o,i=e.state,a=i.keyEntities,l=i.checkedKeys,c=i.halfCheckedKeys,s=e.props,u=s.checkStrictly,d=s.onCheck,f=n.key,p={event:"check",node:n,checked:r,nativeEvent:t.nativeEvent};if(u){var h=r?dT(l,f):uT(l,f);o={checked:h,halfChecked:uT(c,f)},p.checkedNodes=h.map((function(e){return XI(a,e)})).filter((function(e){return e})).map((function(e){return e.node})),e.setUncontrolledState({checkedKeys:h})}else{var g=wT([].concat(P(l),[f]),!0,a),v=g.checkedKeys,m=g.halfCheckedKeys;if(!r){var y=new Set(v);y.delete(f);var b=wT(Array.from(y),{checked:!1,halfCheckedKeys:m},a);v=b.checkedKeys,m=b.halfCheckedKeys}o=v,p.checkedNodes=[],p.checkedNodesPositions=[],p.halfCheckedKeys=m,v.forEach((function(e){var t=XI(a,e);if(t){var n=t.node,r=t.pos;p.checkedNodes.push(n),p.checkedNodesPositions.push({node:n,pos:r})}})),e.setUncontrolledState({checkedKeys:v},!1,{halfCheckedKeys:m})}null===d||void 0===d||d(o,p)})),w(I(e),"onNodeLoad",(function(t){var n,r=t.key,o=XI(e.state.keyEntities,r);if(null===o||void 0===o||null===(n=o.children)||void 0===n||!n.length){var i=new Promise((function(n,o){e.setState((function(i){var a=i.loadedKeys,l=void 0===a?[]:a,c=i.loadingKeys,s=void 0===c?[]:c,u=e.props,d=u.loadData,f=u.onLoad;return d&&-1===l.indexOf(r)&&-1===s.indexOf(r)?(d(t).then((function(){var o=dT(e.state.loadedKeys,r);null===f||void 0===f||f(o,{event:"load",node:t}),e.setUncontrolledState({loadedKeys:o}),e.setState((function(e){return{loadingKeys:uT(e.loadingKeys,r)}})),n()})).catch((function(t){if(e.setState((function(e){return{loadingKeys:uT(e.loadingKeys,r)}})),e.loadingRetryTimes[r]=(e.loadingRetryTimes[r]||0)+1,e.loadingRetryTimes[r]>=10){var i=e.state.loadedKeys;U(!1,"Retry for `loadData` many times but still failed. No more retry."),e.setUncontrolledState({loadedKeys:dT(i,r)}),n()}o(t)})),{loadingKeys:dT(s,r)}):null}))}));return i.catch((function(){})),i}})),w(I(e),"onNodeMouseEnter",(function(t,n){var r=e.props.onMouseEnter;null===r||void 0===r||r({event:t,node:n})})),w(I(e),"onNodeMouseLeave",(function(t,n){var r=e.props.onMouseLeave;null===r||void 0===r||r({event:t,node:n})})),w(I(e),"onNodeContextMenu",(function(t,n){var r=e.props.onRightClick;r&&(t.preventDefault(),r({event:t,node:n}))})),w(I(e),"onFocus",(function(){var t=e.props.onFocus;e.setState({focused:!0});for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];null===t||void 0===t||t.apply(void 0,r)})),w(I(e),"onBlur",(function(){var t=e.props.onBlur;e.setState({focused:!1}),e.onActiveChange(null);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];null===t||void 0===t||t.apply(void 0,r)})),w(I(e),"getTreeNodeRequiredProps",(function(){var t=e.state;return{expandedKeys:t.expandedKeys||[],selectedKeys:t.selectedKeys||[],loadedKeys:t.loadedKeys||[],loadingKeys:t.loadingKeys||[],checkedKeys:t.checkedKeys||[],halfCheckedKeys:t.halfCheckedKeys||[],dragOverNodeKey:t.dragOverNodeKey,dropPosition:t.dropPosition,keyEntities:t.keyEntities}})),w(I(e),"setExpandedKeys",(function(t){var n=e.state,r=eT(n.treeData,t,n.fieldNames);e.setUncontrolledState({expandedKeys:t,flattenNodes:r},!0)})),w(I(e),"onNodeExpand",(function(t,n){var r=e.state.expandedKeys,o=e.state,i=o.listChanging,a=o.fieldNames,l=e.props,c=l.onExpand,s=l.loadData,u=n.expanded,d=n[a.key];if(!i){var f=r.indexOf(d),p=!u;if(U(u&&-1!==f||!u&&-1===f,"Expand state not sync with index check"),r=p?dT(r,d):uT(r,d),e.setExpandedKeys(r),null===c||void 0===c||c(r,{node:n,expanded:p,nativeEvent:t.nativeEvent}),p&&s){var h=e.onNodeLoad(n);h&&h.then((function(){var t=eT(e.state.treeData,r,a);e.setUncontrolledState({flattenNodes:t})})).catch((function(){var t=uT(e.state.expandedKeys,d);e.setExpandedKeys(t)}))}}})),w(I(e),"onListChangeStart",(function(){e.setUncontrolledState({listChanging:!0})})),w(I(e),"onListChangeEnd",(function(){setTimeout((function(){e.setUncontrolledState({listChanging:!1})}))})),w(I(e),"onActiveChange",(function(t){var n=e.state.activeKey,r=e.props,o=r.onActiveChange,i=r.itemScrollOffset,a=void 0===i?0:i;n!==t&&(e.setState({activeKey:t}),null!==t&&e.scrollTo({key:t,offset:a}),null===o||void 0===o||o(t))})),w(I(e),"getActiveItem",(function(){var t=e.state,n=t.activeKey,r=t.flattenNodes;return null===n?null:r.find((function(e){return e.key===n}))||null})),w(I(e),"offsetActiveKey",(function(t){var n=e.state,r=n.flattenNodes,o=n.activeKey,i=r.findIndex((function(e){return e.key===o}));-1===i&&t<0&&(i=r.length);var a=r[i=(i+t+r.length)%r.length];if(a){var l=a.key;e.onActiveChange(l)}else e.onActiveChange(null)})),w(I(e),"onKeyDown",(function(t){var n=e.state,r=n.activeKey,o=n.expandedKeys,i=n.checkedKeys,a=n.fieldNames,l=e.props,c=l.onKeyDown,s=l.checkable,u=l.selectable;switch(t.which){case BC.UP:e.offsetActiveKey(-1),t.preventDefault();break;case BC.DOWN:e.offsetActiveKey(1),t.preventDefault()}var d=e.getActiveItem();if(d&&d.data){var f=e.getTreeNodeRequiredProps(),p=!1===d.data.isLeaf||!!(d.data[a.children]||[]).length,h=rT(O(O({},nT(r,f)),{},{data:d.data,active:!0}));switch(t.which){case BC.LEFT:p&&o.includes(r)?e.onNodeExpand({},h):d.parent&&e.onActiveChange(d.parent.key),t.preventDefault();break;case BC.RIGHT:p&&!o.includes(r)?e.onNodeExpand({},h):d.children&&d.children.length&&e.onActiveChange(d.children[0].key),t.preventDefault();break;case BC.ENTER:case BC.SPACE:!s||h.disabled||!1===h.checkable||h.disableCheckbox?s||!u||h.disabled||!1===h.selectable||e.onNodeSelect({},h):e.onNodeCheck({},h,!i.includes(r))}}null===c||void 0===c||c(t)})),w(I(e),"setUncontrolledState",(function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!e.destroyed){var o=!1,i=!0,a={};Object.keys(t).forEach((function(n){n in e.props?i=!1:(o=!0,a[n]=t[n])})),!o||n&&!i||e.setState(O(O({},a),r))}})),w(I(e),"scrollTo",(function(t){e.listRef.current.scrollTo(t)})),e}return A(n,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var e=this.props,t=e.activeKey,n=e.itemScrollOffset,r=void 0===n?0:n;void 0!==t&&t!==this.state.activeKey&&(this.setState({activeKey:t}),null!==t&&this.scrollTo({key:t,offset:r}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var e,t=this.state,n=t.focused,o=t.flattenNodes,i=t.keyEntities,a=t.draggingNodeKey,l=t.activeKey,s=t.dropLevelOffset,u=t.dropContainerKey,d=t.dropTargetKey,f=t.dropPosition,p=t.dragOverNodeKey,g=t.indent,m=this.props,y=m.prefixCls,b=m.className,x=m.style,S=m.showLine,O=m.focusable,_=m.tabIndex,C=void 0===_?0:_,E=m.selectable,P=m.showIcon,M=m.icon,k=m.switcherIcon,A=m.draggable,I=m.checkable,T=m.checkStrictly,j=m.disabled,L=m.motion,R=m.loadData,D=m.filterTreeNode,N=m.height,F=m.itemHeight,B=m.virtual,z=m.titleRender,H=m.dropIndicatorRender,W=m.onContextMenu,V=m.onScroll,G=m.direction,Y=m.rootClassName,U=m.rootStyle,X=GC(this.props,{aria:!0,data:!0});return A&&(e="object"===v(A)?A:"function"===typeof A?{nodeDraggable:A}:{}),r.createElement(GI.Provider,{value:{prefixCls:y,selectable:E,showIcon:P,icon:M,switcherIcon:k,draggable:e,draggingNodeKey:a,checkable:I,checkStrictly:T,disabled:j,keyEntities:i,dropLevelOffset:s,dropContainerKey:u,dropTargetKey:d,dropPosition:f,dragOverNodeKey:p,indent:g,direction:G,dropIndicatorRender:H,loadData:R,filterTreeNode:D,titleRender:z,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},r.createElement("div",{role:"tree",className:c()(y,b,Y,w(w(w({},"".concat(y,"-show-line"),S),"".concat(y,"-focused"),n),"".concat(y,"-active-focused"),null!==l)),style:U},r.createElement(IN,h({ref:this.listRef,prefixCls:y,style:x,data:o,disabled:j,selectable:E,checkable:!!I,motion:L,dragging:null!==a,height:N,itemHeight:F,virtual:B,focusable:O,focused:n,tabIndex:C,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:W,onScroll:V},this.getTreeNodeRequiredProps(),X))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n,r=t.prevProps,o={prevProps:e};function i(t){return!r&&t in e||r&&r[t]!==e[t]}var a=t.fieldNames;if(i("fieldNames")&&(a=ZI(e.fieldNames),o.fieldNames=a),i("treeData")?n=e.treeData:i("children")&&(U(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),n=JI(e.children)),n){o.treeData=n;var l=tT(n,{fieldNames:a});o.keyEntities=O(w({},_N,EN),l.keyEntities)}var c,s=o.keyEntities||t.keyEntities;if(i("expandedKeys")||r&&i("autoExpandParent"))o.expandedKeys=e.autoExpandParent||!r&&e.defaultExpandParent?yT(e.expandedKeys,s):e.expandedKeys;else if(!r&&e.defaultExpandAll){var u=O({},s);delete u[_N];var d=[];Object.keys(u).forEach((function(e){var t=u[e];t.children&&t.children.length&&d.push(t.key)})),o.expandedKeys=d}else!r&&e.defaultExpandedKeys&&(o.expandedKeys=e.autoExpandParent||e.defaultExpandParent?yT(e.defaultExpandedKeys,s):e.defaultExpandedKeys);if(o.expandedKeys||delete o.expandedKeys,n||o.expandedKeys){var f=eT(n||t.treeData,o.expandedKeys||t.expandedKeys,a);o.flattenNodes=f}if((e.selectable&&(i("selectedKeys")?o.selectedKeys=vT(e.selectedKeys,e):!r&&e.defaultSelectedKeys&&(o.selectedKeys=vT(e.defaultSelectedKeys,e))),e.checkable)&&(i("checkedKeys")?c=mT(e.checkedKeys)||{}:!r&&e.defaultCheckedKeys?c=mT(e.defaultCheckedKeys)||{}:n&&(c=mT(e.checkedKeys)||{checkedKeys:t.checkedKeys,halfCheckedKeys:t.halfCheckedKeys}),c)){var p=c,h=p.checkedKeys,g=void 0===h?[]:h,v=p.halfCheckedKeys,m=void 0===v?[]:v;if(!e.checkStrictly){var y=wT(g,!0,s);g=y.checkedKeys,m=y.halfCheckedKeys}o.checkedKeys=g,o.halfCheckedKeys=m}return i("loadedKeys")&&(o.loadedKeys=e.loadedKeys),o}}]),n}(r.Component);w(TN,"defaultProps",{prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:function(e){var t=e.dropPosition,n=e.dropLevelOffset,o=e.indent,i={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(t){case-1:i.top=0,i.left=-n*o;break;case 1:i.bottom=0,i.left=-n*o;break;case 0:i.bottom=0,i.left=o}return r.createElement("div",{style:i})},allowDrop:function(){return!0},expandAction:!1}),w(TN,"TreeNode",sT);const jN=TN;const LN={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"};var RN=function(e,t){return r.createElement(xs,qc({},e,{ref:t,icon:LN}))};const DN=r.forwardRef(RN);const NN={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"};var FN=function(e,t){return r.createElement(xs,qc({},e,{ref:t,icon:NN}))};const BN=r.forwardRef(FN);const zN={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"};var HN=function(e,t){return r.createElement(xs,qc({},e,{ref:t,icon:zN}))};const WN=r.forwardRef(HN);const VN={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"};var GN=function(e,t){return r.createElement(xs,qc({},e,{ref:t,icon:VN}))};const YN=r.forwardRef(GN),UN=e=>{let{treeCls:t,treeNodeCls:n,directoryNodeSelectedBg:r,directoryNodeSelectedColor:o,motionDurationMid:i,borderRadius:a,controlItemBgHover:l}=e;return{["".concat(t).concat(t,"-directory ").concat(n)]:{["".concat(t,"-node-content-wrapper")]:{position:"static",["> *:not(".concat(t,"-drop-indicator)")]:{position:"relative"},"&:hover":{background:"transparent"},"&:before":{position:"absolute",inset:0,transition:"background-color ".concat(i),content:'""',borderRadius:a},"&:hover:before":{background:l}},["".concat(t,"-switcher")]:{marginInlineEnd:0},"&-selected":{["".concat(t,"-switcher, ").concat(t,"-draggable-icon")]:{color:o,zIndex:1},["".concat(t,"-node-content-wrapper")]:{color:o,background:"transparent","&:before, &:hover:before":{background:r}}}}}},XN=new Vr("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),qN=(e,t)=>({[".".concat(e,"-switcher-icon")]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:"transform ".concat(t.motionDurationSlow)}}}),KN=(e,t)=>({[".".concat(e,"-drop-indicator")]:{position:"absolute",zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:"".concat(yn(t.lineWidthBold)," solid ").concat(t.colorPrimary),borderRadius:"50%",content:'""'}}}),$N=(e,t)=>{const{treeCls:n,treeNodeCls:r,treeNodePadding:o,titleHeight:i,nodeSelectedBg:a,nodeHoverBg:l,colorTextQuaternary:c}=t,s=t.marginXXS;return{[n]:Object.assign(Object.assign({},Ur(t)),{background:t.colorBgContainer,borderRadius:t.borderRadius,transition:"background-color ".concat(t.motionDurationSlow),"&-rtl":{direction:"rtl"},["&".concat(n,"-rtl ").concat(n,"-switcher_close ").concat(n,"-switcher-icon svg")]:{transform:"rotate(90deg)"},["&-focused:not(:hover):not(".concat(n,"-active-focused)")]:Object.assign({},qr(t)),["".concat(n,"-list-holder-inner")]:{alignItems:"flex-start"},["&".concat(n,"-block-node")]:{["".concat(n,"-list-holder-inner")]:{alignItems:"stretch",["".concat(n,"-node-content-wrapper")]:{flex:"auto"},["".concat(r,".dragging:after")]:{position:"absolute",inset:0,border:"1px solid ".concat(t.colorPrimary),opacity:0,animationName:XN,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:t.borderRadius}}},[r]:{display:"flex",alignItems:"flex-start",marginBottom:o,lineHeight:yn(i),position:"relative","&:before":{content:'""',position:"absolute",zIndex:1,insetInlineStart:0,width:"100%",top:"100%",height:o},["&-disabled ".concat(n,"-node-content-wrapper")]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}},["&-active ".concat(n,"-node-content-wrapper")]:{background:t.controlItemBgHover},["&:not(".concat(r,"-disabled).filter-node ").concat(n,"-title")]:{color:t.colorPrimary,fontWeight:500},"&-draggable":{cursor:"grab",["".concat(n,"-draggable-icon")]:{flexShrink:0,width:i,textAlign:"center",visibility:"visible",color:c},["&".concat(r,"-disabled ").concat(n,"-draggable-icon")]:{visibility:"hidden"}}},["".concat(n,"-indent")]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:i}},["".concat(n,"-draggable-icon")]:{visibility:"hidden"},["".concat(n,"-switcher")]:Object.assign(Object.assign({},qN(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:i,margin:0,textAlign:"center",cursor:"pointer",userSelect:"none",transition:"all ".concat(t.motionDurationSlow),marginInlineEnd:t.calc(t.calc(i).sub(t.controlInteractiveSize)).div(2).equal(),"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:i,height:i,position:"absolute",left:{_skip_check_:!0,value:0},top:0,borderRadius:t.borderRadius,transition:"all ".concat(t.motionDurationSlow)},["&:not(".concat(n,"-switcher-noop):hover:before")]:{backgroundColor:t.colorBgTextHover},["&_close ".concat(n,"-switcher-icon svg")]:{transform:"rotate(-90deg)"},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(i).div(2).equal(),bottom:t.calc(o).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:"1px solid ".concat(t.colorBorder),content:'""'},"&:after":{position:"absolute",width:t.calc(t.calc(i).div(2).equal()).mul(.8).equal(),height:t.calc(i).div(2).equal(),borderBottom:"1px solid ".concat(t.colorBorder),content:'""'}}}),["".concat(n,"-checkbox")]:{top:"initial",marginInlineEnd:s,alignSelf:"flex-start",marginTop:t.marginXXS},["".concat(n,"-node-content-wrapper")]:Object.assign(Object.assign({position:"relative",minHeight:i,padding:"0 ".concat(t.paddingXS),background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:"all ".concat(t.motionDurationMid,", border 0s, line-height 0s, box-shadow 0s")},KN(e,t)),{"&:hover":{backgroundColor:l},["&".concat(n,"-node-selected")]:{backgroundColor:a},["".concat(n,"-iconEle")]:{display:"inline-block",width:i,height:i,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}}),["".concat(n,"-unselectable ").concat(n,"-node-content-wrapper:hover")]:{backgroundColor:"transparent"},["".concat(r,".drop-container > [draggable]")]:{boxShadow:"0 0 0 2px ".concat(t.colorPrimary)},"&-show-line":{["".concat(n,"-indent-unit")]:{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(i).div(2).equal(),bottom:t.calc(o).mul(-1).equal(),borderInlineEnd:"1px solid ".concat(t.colorBorder),content:'""'},"&-end:before":{display:"none"}},["".concat(n,"-switcher")]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},["".concat(r,"-leaf-last ").concat(n,"-switcher-leaf-line:before")]:{top:"auto !important",bottom:"auto !important",height:"".concat(yn(t.calc(i).div(2).equal())," !important")}})}},QN=(e,t)=>{const n=".".concat(e),r="".concat(n,"-treenode"),o=t.calc(t.paddingXS).div(2).equal(),i=Ui(t,{treeCls:n,treeNodeCls:r,treeNodePadding:o});return[$N(e,i),UN(i)]},ZN=Ol("Tree",((e,t)=>{let{prefixCls:n}=t;return[{[e.componentCls]:PT("".concat(n,"-checkbox"),e)},QN(n,e),XL(e)]}),(e=>{const{colorTextLightSolid:t,colorPrimary:n}=e;return Object.assign(Object.assign({},(e=>{const{controlHeightSM:t}=e;return{titleHeight:t,nodeHoverBg:e.controlItemBgHover,nodeSelectedBg:e.controlItemBgActive}})(e)),{directoryNodeSelectedColor:t,directoryNodeSelectedBg:n})}));const JN=function(e){const{dropPosition:t,dropLevelOffset:n,prefixCls:o,indent:i,direction:a="ltr"}=e,l="ltr"===a?"left":"right",c={[l]:-n*i+4,["ltr"===a?"right":"left"]:0};switch(t){case-1:c.top=-3;break;case 1:c.bottom=-3;break;default:c.bottom=-3,c[l]=i+4}return r.createElement("div",{style:c,className:"".concat(o,"-drop-indicator")})};const eF={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"};var tF=function(e,t){return r.createElement(xs,qc({},e,{ref:t,icon:eF}))};const nF=r.forwardRef(tF);const rF={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"};var oF=function(e,t){return r.createElement(xs,qc({},e,{ref:t,icon:rF}))};const iF=r.forwardRef(oF);const aF={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"};var lF=function(e,t){return r.createElement(xs,qc({},e,{ref:t,icon:aF}))};const cF=r.forwardRef(lF),sF=e=>{const{prefixCls:t,switcherIcon:n,treeNodeProps:o,showLine:i,switcherLoadingIcon:a}=e,{isLeaf:l,expanded:s,loading:u}=o;if(u)return r.isValidElement(a)?a:r.createElement(tp,{className:"".concat(t,"-switcher-loading-icon")});let d;if(i&&"object"===typeof i&&(d=i.showLeafIcon),l){if(!i)return null;if("boolean"!==typeof d&&d){const e="function"===typeof d?d(o):d,n="".concat(t,"-switcher-line-custom-icon");return r.isValidElement(e)?Cu(e,{className:c()(e.props.className||"",n)}):e}return d?r.createElement(DN,{className:"".concat(t,"-switcher-line-icon")}):r.createElement("span",{className:"".concat(t,"-switcher-leaf-line")})}const f="".concat(t,"-switcher-icon"),p="function"===typeof n?n(o):n;return r.isValidElement(p)?Cu(p,{className:c()(p.props.className||"",f)}):void 0!==p?p:i?s?r.createElement(iF,{className:"".concat(t,"-switcher-line-icon")}):r.createElement(cF,{className:"".concat(t,"-switcher-line-icon")}):r.createElement(nF,{className:f})},uF=r.forwardRef(((e,t)=>{var n;const{getPrefixCls:o,direction:i,virtual:a,tree:l}=r.useContext(f),{prefixCls:s,className:u,showIcon:d=!1,showLine:p,switcherIcon:h,switcherLoadingIcon:g,blockNode:v=!1,children:m,checkable:y=!1,selectable:b=!0,draggable:x,motion:w,style:S}=e,O=o("tree",s),_=o(),C=null!==w&&void 0!==w?w:Object.assign(Object.assign({},Am(_)),{motionAppear:!1}),E=Object.assign(Object.assign({},e),{checkable:y,selectable:b,showIcon:d,motion:C,blockNode:v,showLine:Boolean(p),dropIndicatorRender:JN}),[P,M,k]=ZN(O),[,A]=wl(),I=A.paddingXS/2+((null===(n=A.Tree)||void 0===n?void 0:n.titleHeight)||A.controlHeightSM),T=r.useMemo((()=>{if(!x)return!1;let e={};switch(typeof x){case"function":e.nodeDraggable=x;break;case"object":e=Object.assign({},x)}return!1!==e.icon&&(e.icon=e.icon||r.createElement(YN,null)),e}),[x]);return P(r.createElement(jN,Object.assign({itemHeight:I,ref:t,virtual:a},E,{style:Object.assign(Object.assign({},null===l||void 0===l?void 0:l.style),S),prefixCls:O,className:c()({["".concat(O,"-icon-hide")]:!d,["".concat(O,"-block-node")]:v,["".concat(O,"-unselectable")]:!b,["".concat(O,"-rtl")]:"rtl"===i},null===l||void 0===l?void 0:l.className,u,M,k),direction:i,checkable:y?r.createElement("span",{className:"".concat(O,"-checkbox-inner")}):y,selectable:b,switcherIcon:e=>r.createElement(sF,{prefixCls:O,switcherIcon:h,switcherLoadingIcon:g,treeNodeProps:e,showLine:p}),draggable:T}),m))}));const dF=uF;function fF(e,t,n){const{key:r,children:o}=n;e.forEach((function(e){const i=e[r],a=e[o];!1!==t(i,e)&&fF(a||[],t,n)}))}function pF(e){let{treeData:t,expandedKeys:n,startKey:r,endKey:o,fieldNames:i}=e;const a=[];let l=0;if(r&&r===o)return[r];if(!r||!o)return[];return fF(t,(e=>{if(2===l)return!1;if(function(e){return e===r||e===o}(e)){if(a.push(e),0===l)l=1;else if(1===l)return l=2,!1}else 1===l&&a.push(e);return n.includes(e)}),ZI(i)),a}function hF(e,t,n){const r=Ds(t),o=[];return fF(e,((e,t)=>{const n=r.indexOf(e);return-1!==n&&(o.push(t),r.splice(n,1)),!!r.length}),ZI(n)),o}var gF=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};function vF(e){const{isLeaf:t,expanded:n}=e;return t?r.createElement(DN,null):n?r.createElement(BN,null):r.createElement(WN,null)}function mF(e){let{treeData:t,children:n}=e;return t||JI(n)}const yF=(e,t)=>{var{defaultExpandAll:n,defaultExpandParent:o,defaultExpandedKeys:i}=e,a=gF(e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const l=r.useRef(),s=r.useRef(),[u,d]=r.useState(a.selectedKeys||a.defaultSelectedKeys||[]),[p,h]=r.useState((()=>(()=>{const{keyEntities:e}=tT(mF(a));let t;return t=n?Object.keys(e):o?yT(a.expandedKeys||i||[],e):a.expandedKeys||i||[],t})()));r.useEffect((()=>{"selectedKeys"in a&&d(a.selectedKeys)}),[a.selectedKeys]),r.useEffect((()=>{"expandedKeys"in a&&h(a.expandedKeys)}),[a.expandedKeys]);const{getPrefixCls:g,direction:v}=r.useContext(f),{prefixCls:m,className:y,showIcon:b=!0,expandAction:x="click"}=a,w=gF(a,["prefixCls","className","showIcon","expandAction"]),S=g("tree",m),O=c()("".concat(S,"-directory"),{["".concat(S,"-directory-rtl")]:"rtl"===v},y);return r.createElement(dF,Object.assign({icon:vF,ref:t,blockNode:!0},w,{showIcon:b,expandAction:x,prefixCls:S,className:O,expandedKeys:p,selectedKeys:u,onSelect:(e,t)=>{var n;const{multiple:r,fieldNames:o}=a,{node:i,nativeEvent:c}=t,{key:u=""}=i,f=mF(a),h=Object.assign(Object.assign({},t),{selected:!0}),g=(null===c||void 0===c?void 0:c.ctrlKey)||(null===c||void 0===c?void 0:c.metaKey),v=null===c||void 0===c?void 0:c.shiftKey;let m;r&&g?(m=e,l.current=u,s.current=m,h.selectedNodes=hF(f,m,o)):r&&v?(m=Array.from(new Set([].concat(Ds(s.current||[]),Ds(pF({treeData:f,expandedKeys:p,startKey:u,endKey:l.current,fieldNames:o}))))),h.selectedNodes=hF(f,m,o)):(m=[u],l.current=u,s.current=m,h.selectedNodes=hF(f,m,o)),null===(n=a.onSelect)||void 0===n||n.call(a,m,h),"selectedKeys"in a||d(m)},onExpand:(e,t)=>{var n;return"expandedKeys"in a||h(e),null===(n=a.onExpand)||void 0===n?void 0:n.call(a,e,t)}}))};const bF=r.forwardRef(yF),xF=dF;xF.DirectoryTree=bF,xF.TreeNode=sT;const wF=xF,SF=e=>{const{value:t,filterSearch:n,tablePrefixCls:o,locale:i,onChange:a}=e;return n?r.createElement("div",{className:"".concat(o,"-filter-dropdown-search")},r.createElement(vg,{prefix:r.createElement(Su,null),placeholder:i.filterSearchPlaceholder,onChange:a,value:t,htmlSize:1,className:"".concat(o,"-filter-dropdown-search-input")})):null},OF=e=>{const{keyCode:t}=e;t===by.ENTER&&e.stopPropagation()};const _F=r.forwardRef(((e,t)=>r.createElement("div",{className:e.className,onClick:e=>e.stopPropagation(),onKeyDown:OF,ref:t},e.children)));function CF(e){let t=[];return(e||[]).forEach((e=>{let{value:n,children:r}=e;t.push(n),r&&(t=[].concat(Ds(t),Ds(CF(r))))})),t}function EF(e,t){return("string"===typeof t||"number"===typeof t)&&(null===t||void 0===t?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()))}function PF(e){let{filters:t,prefixCls:n,filteredKeys:o,filterMultiple:i,searchValue:a,filterSearch:l}=e;return t.map(((e,t)=>{const c=String(e.value);if(e.children)return{key:c||t,label:e.text,popupClassName:"".concat(n,"-dropdown-submenu"),children:PF({filters:e.children,prefixCls:n,filteredKeys:o,filterMultiple:i,searchValue:a,filterSearch:l})};const s=i?DT:QR,u={key:void 0!==e.value?c:t,label:r.createElement(r.Fragment,null,r.createElement(s,{checked:o.includes(c)}),r.createElement("span",null,e.text))};return a.trim()?"function"===typeof l?l(a,e)?u:null:EF(a,e.text)?u:null:u}))}function MF(e){return e||[]}const kF=e=>{var t,n;const{tablePrefixCls:o,prefixCls:i,column:a,dropdownPrefixCls:l,columnKey:s,filterOnClose:u,filterMultiple:d,filterMode:p="menu",filterSearch:h=!1,filterState:g,triggerFilter:v,locale:m,children:y,getPopupContainer:b,rootClassName:x}=e,{filterDropdownOpen:w,onFilterDropdownOpenChange:S,filterResetToDefaultFilteredValue:O,defaultFilteredValue:_,filterDropdownVisible:C,onFilterDropdownVisibleChange:E}=a,[P,M]=r.useState(!1),k=!(!g||!(null===(t=g.filteredKeys)||void 0===t?void 0:t.length)&&!g.forceFiltered),A=e=>{M(e),null===S||void 0===S||S(e),null===E||void 0===E||E(e)};const I=null!==(n=null!==w&&void 0!==w?w:C)&&void 0!==n?n:P,T=null===g||void 0===g?void 0:g.filteredKeys,[j,L]=function(e){const t=r.useRef(e),n=sD();return[()=>t.current,e=>{t.current=e,n()}]}(MF(T)),R=e=>{let{selectedKeys:t}=e;L(t)},D=(e,t)=>{let{node:n,checked:r}=t;R(d?{selectedKeys:e}:{selectedKeys:r&&n.key?[n.key]:[]})};r.useEffect((()=>{P&&R({selectedKeys:MF(T)})}),[T]);const[N,F]=r.useState([]),B=e=>{F(e)},[z,H]=r.useState(""),W=e=>{const{value:t}=e.target;H(t)};r.useEffect((()=>{P||H("")}),[P]);const V=e=>{const t=(null===e||void 0===e?void 0:e.length)?e:null;return null!==t||g&&g.filteredKeys?UO(t,null===g||void 0===g?void 0:g.filteredKeys,!0)?null:void v({column:a,key:s,filteredKeys:t}):null},G=()=>{A(!1),V(j())},Y=function(){let{confirm:e,closeDropdown:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{confirm:!1,closeDropdown:!1};e&&V([]),t&&A(!1),H(""),L(O?(_||[]).map((e=>String(e))):[])},U=function(){let{closeDropdown:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{closeDropdown:!0};e&&A(!1),V(j())},X=c()({["".concat(l,"-menu-without-submenu")]:(q=a.filters||[],!q.some((e=>{let{children:t}=e;return t})))});var q;const K=e=>{if(e.target.checked){const e=CF(null===a||void 0===a?void 0:a.filters).map((e=>String(e)));L(e)}else L([])},$=e=>{let{filters:t}=e;return(t||[]).map(((e,t)=>{const n=String(e.value),r={title:e.text,key:void 0!==e.value?n:String(t)};return e.children&&(r.children=$({filters:e.children})),r}))},Q=e=>{var t;return Object.assign(Object.assign({},e),{text:e.title,value:e.key,children:(null===(t=e.children)||void 0===t?void 0:t.map((e=>Q(e))))||[]})};let Z;const{direction:J,renderEmpty:ee}=r.useContext(f);if("function"===typeof a.filterDropdown)Z=a.filterDropdown({prefixCls:"".concat(l,"-custom"),setSelectedKeys:e=>R({selectedKeys:e}),selectedKeys:j(),confirm:U,clearFilters:Y,filters:a.filters,visible:I,close:()=>{A(!1)}});else if(a.filterDropdown)Z=a.filterDropdown;else{const e=j()||[],t=()=>{var t;const n=null!==(t=null===ee||void 0===ee?void 0:ee("Table.filter"))&&void 0!==t?t:r.createElement(x_,{image:x_.PRESENTED_IMAGE_SIMPLE,description:m.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}});if(0===(a.filters||[]).length)return n;if("tree"===p)return r.createElement(r.Fragment,null,r.createElement(SF,{filterSearch:h,value:z,onChange:W,tablePrefixCls:o,locale:m}),r.createElement("div",{className:"".concat(o,"-filter-dropdown-tree")},d?r.createElement(DT,{checked:e.length===CF(a.filters).length,indeterminate:e.length>0&&e.length<CF(a.filters).length,className:"".concat(o,"-filter-dropdown-checkall"),onChange:K},m.filterCheckall):null,r.createElement(wF,{checkable:!0,selectable:!1,blockNode:!0,multiple:d,checkStrictly:!d,className:"".concat(l,"-menu"),onCheck:D,checkedKeys:e,selectedKeys:e,showIcon:!1,treeData:$({filters:a.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:z.trim()?e=>"function"===typeof h?h(z,Q(e)):EF(z,e.title):void 0})));const c=PF({filters:a.filters||[],filterSearch:h,prefixCls:i,filteredKeys:j(),filterMultiple:d,searchValue:z}),s=c.every((e=>null===e));return r.createElement(r.Fragment,null,r.createElement(SF,{filterSearch:h,value:z,onChange:W,tablePrefixCls:o,locale:m}),s?n:r.createElement(fR,{selectable:!0,multiple:d,prefixCls:"".concat(l,"-menu"),className:X,onSelect:R,onDeselect:R,selectedKeys:e,getPopupContainer:b,openKeys:N,onOpenChange:B,items:c}))},n=()=>O?UO((_||[]).map((e=>String(e))),e,!0):0===e.length;Z=r.createElement(r.Fragment,null,t(),r.createElement("div",{className:"".concat(i,"-dropdown-btns")},r.createElement(lh,{type:"link",size:"small",disabled:n(),onClick:()=>Y()},m.filterReset),r.createElement(lh,{type:"primary",size:"small",onClick:G},m.filterConfirm)))}a.filterDropdown&&(Z=r.createElement(YL,{selectable:void 0},Z));let te;return te="function"===typeof a.filterIcon?a.filterIcon(k):a.filterIcon?a.filterIcon:r.createElement(gN,null),r.createElement("div",{className:"".concat(i,"-column")},r.createElement("span",{className:"".concat(o,"-column-title")},y),r.createElement(TR,{dropdownRender:()=>r.createElement(_F,{className:"".concat(i,"-dropdown")},Z),trigger:["click"],open:I,onOpenChange:(e,t)=>{"trigger"===t.source&&(e&&void 0!==T&&L(MF(T)),A(e),e||a.filterDropdown||!u||G())},getPopupContainer:b,placement:"rtl"===J?"bottomLeft":"bottomRight",rootClassName:x},r.createElement("span",{role:"button",tabIndex:-1,className:c()("".concat(i,"-trigger"),{active:k}),onClick:e=>{e.stopPropagation()}},te)))},AF=(e,t,n)=>{let r=[];return(e||[]).forEach(((e,o)=>{var i;const a=dN(o,n);if(e.filters||"filterDropdown"in e||"onFilter"in e)if("filteredValue"in e){let t=e.filteredValue;"filterDropdown"in e||(t=null!==(i=null===t||void 0===t?void 0:t.map(String))&&void 0!==i?i:t),r.push({column:e,key:uN(e,a),filteredKeys:t,forceFiltered:e.filtered})}else r.push({column:e,key:uN(e,a),filteredKeys:t&&e.defaultFilteredValue?e.defaultFilteredValue:void 0,forceFiltered:e.filtered});"children"in e&&(r=[].concat(Ds(r),Ds(AF(e.children,t,a))))})),r};function IF(e,t,n,o,i,a,l,c,s){return n.map(((n,u)=>{const d=dN(u,c),{filterOnClose:f=!0,filterMultiple:p=!0,filterMode:h,filterSearch:g}=n;let v=n;if(v.filters||v.filterDropdown){const c=uN(v,d),u=o.find((e=>{let{key:t}=e;return c===t}));v=Object.assign(Object.assign({},v),{title:o=>r.createElement(kF,{tablePrefixCls:e,prefixCls:"".concat(e,"-filter"),dropdownPrefixCls:t,column:v,columnKey:c,filterState:u,filterOnClose:f,filterMultiple:p,filterMode:h,filterSearch:g,triggerFilter:a,locale:i,getPopupContainer:l,rootClassName:s},fN(n.title,o))})}return"children"in v&&(v=Object.assign(Object.assign({},v),{children:IF(e,t,v.children,o,i,a,l,d,s)})),v}))}const TF=e=>{const t={};return e.forEach((e=>{let{key:n,filteredKeys:r,column:o}=e;const i=n,{filters:a,filterDropdown:l}=o;if(l)t[i]=r||null;else if(Array.isArray(r)){const e=CF(a);t[i]=e.filter((e=>r.includes(String(e))))}else t[i]=null})),t},jF=(e,t,n)=>{const r=t.reduce(((e,r)=>{const{column:{onFilter:o,filters:i},filteredKeys:a}=r;return o&&a&&a.length?e.map((e=>Object.assign({},e))).filter((e=>a.some((r=>{const a=CF(i),l=a.findIndex((e=>String(e)===String(r))),c=-1!==l?a[l]:r;return e[n]&&(e[n]=jF(e[n],t,n)),o(c,e)})))):e}),e);return r},LF=e=>e.flatMap((e=>"children"in e?[e].concat(Ds(LF(e.children||[]))):[e])),RF=e=>{const{prefixCls:t,dropdownPrefixCls:n,mergedColumns:o,onFilterChange:i,getPopupContainer:a,locale:l,rootClassName:c}=e,s=(Vm("Table"),r.useMemo((()=>LF(o||[])),[o])),[u,d]=r.useState((()=>AF(s,!0))),f=r.useMemo((()=>{const e=AF(s,!1);if(0===e.length)return e;let t=!0,n=!0;if(e.forEach((e=>{let{filteredKeys:r}=e;void 0!==r?t=!1:n=!1})),t){const e=(s||[]).map(((e,t)=>uN(e,dN(t))));return u.filter((t=>{let{key:n}=t;return e.includes(n)})).map((t=>{const n=s[e.findIndex((e=>e===t.key))];return Object.assign(Object.assign({},t),{column:Object.assign(Object.assign({},t.column),n),forceFiltered:n.filtered})}))}return e}),[s,u]),p=r.useMemo((()=>TF(f)),[f]),h=e=>{const t=f.filter((t=>{let{key:n}=t;return n!==e.key}));t.push(e),d(t),i(TF(t),t)};return[e=>IF(t,n,e,f,l,h,a,void 0,c),f,p]},DF=(e,t,n)=>{const o=r.useRef({});return[function(r){var i;if(!o.current||o.current.data!==e||o.current.childrenColumnName!==t||o.current.getRowKey!==n){const a=new Map;function l(e){e.forEach(((e,r)=>{const o=n(e,r);a.set(o,e),e&&"object"===typeof e&&t in e&&l(e[t]||[])}))}l(e),o.current={data:e,childrenColumnName:t,kvMap:a,getRowKey:n}}return null===(i=o.current.kvMap)||void 0===i?void 0:i.get(r)}]},NF=function(){const e=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let t=1;t<arguments.length;t++){const n=t<0||arguments.length<=t?void 0:arguments[t];n&&Object.keys(n).forEach((t=>{const r=n[t];void 0!==r&&(e[t]=r)}))}return e};var FF=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 BF=10;const zF=function(e,t,n){const o=n&&"object"===typeof n?n:{},{total:i=0}=o,a=FF(o,["total"]),[l,c]=(0,r.useState)((()=>({current:"defaultCurrent"in a?a.defaultCurrent:1,pageSize:"defaultPageSize"in a?a.defaultPageSize:BF}))),s=NF(l,a,{total:i>0?i:e}),u=Math.ceil((i||e)/s.pageSize);s.current>u&&(s.current=u||1);const d=(e,t)=>{c({current:null!==e&&void 0!==e?e:1,pageSize:t||s.pageSize})};return!1===n?[{},()=>{}]:[Object.assign(Object.assign({},s),{onChange:(e,r)=>{var o;n&&(null===(o=n.onChange)||void 0===o||o.call(n,e,r)),d(e,r),t(e,r||(null===s||void 0===s?void 0:s.pageSize))}}),d]};const HF={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"};var WF=function(e,t){return r.createElement(xs,qc({},e,{ref:t,icon:HF}))};const VF=r.forwardRef(WF);const GF={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"};var YF=function(e,t){return r.createElement(xs,qc({},e,{ref:t,icon:GF}))};const UF=r.forwardRef(YF),XF="ascend",qF="descend",KF=e=>"object"===typeof e.sorter&&"number"===typeof e.sorter.multiple&&e.sorter.multiple,$F=e=>"function"===typeof e?e:!(!e||"object"!==typeof e||!e.compare)&&e.compare,QF=(e,t,n)=>{let r=[];const o=(e,t)=>{r.push({column:e,key:uN(e,t),multiplePriority:KF(e),sortOrder:e.sortOrder})};return(e||[]).forEach(((e,i)=>{const a=dN(i,n);e.children?("sortOrder"in e&&o(e,a),r=[].concat(Ds(r),Ds(QF(e.children,t,a)))):e.sorter&&("sortOrder"in e?o(e,a):t&&e.defaultSortOrder&&r.push({column:e,key:uN(e,a),multiplePriority:KF(e),sortOrder:e.defaultSortOrder}))})),r},ZF=(e,t,n,o,i,a,l,s)=>{const u=(t||[]).map(((t,u)=>{const d=dN(u,s);let f=t;if(f.sorter){const s=f.sortDirections||i,u=void 0===f.showSorterTooltip?l:f.showSorterTooltip,p=uN(f,d),h=n.find((e=>{let{key:t}=e;return t===p})),g=h?h.sortOrder:null,v=((e,t)=>t?e[e.indexOf(t)+1]:e[0])(s,g);let m;if(t.sortIcon)m=t.sortIcon({sortOrder:g});else{const t=s.includes(XF)&&r.createElement(UF,{className:c()("".concat(e,"-column-sorter-up"),{active:g===XF})}),n=s.includes(qF)&&r.createElement(VF,{className:c()("".concat(e,"-column-sorter-down"),{active:g===qF})});m=r.createElement("span",{className:c()("".concat(e,"-column-sorter"),{["".concat(e,"-column-sorter-full")]:!(!t||!n)})},r.createElement("span",{className:"".concat(e,"-column-sorter-inner"),"aria-hidden":"true"},t,n))}const{cancelSort:y,triggerAsc:b,triggerDesc:x}=a||{};let w=y;v===qF?w=x:v===XF&&(w=b);const S="object"===typeof u?Object.assign({title:w},u):{title:w};f=Object.assign(Object.assign({},f),{className:c()(f.className,{["".concat(e,"-column-sort")]:g}),title:n=>{const o="".concat(e,"-column-sorters"),i=r.createElement("span",{className:"".concat(e,"-column-title")},fN(t.title,n)),a=r.createElement("div",{className:o},i,m);return u?"boolean"!==typeof u&&"sorter-icon"===(null===u||void 0===u?void 0:u.target)?r.createElement("div",{className:"".concat(o," ").concat(e,"-column-sorters-tooltip-target-sorter")},i,r.createElement(hy,Object.assign({},S),m)):r.createElement(hy,Object.assign({},S),a):a},onHeaderCell:n=>{var r;const i=(null===(r=t.onHeaderCell)||void 0===r?void 0:r.call(t,n))||{},a=i.onClick,l=i.onKeyDown;i.onClick=e=>{o({column:t,key:p,sortOrder:v,multiplePriority:KF(t)}),null===a||void 0===a||a(e)},i.onKeyDown=e=>{e.keyCode===by.ENTER&&(o({column:t,key:p,sortOrder:v,multiplePriority:KF(t)}),null===l||void 0===l||l(e))};const s=((e,t)=>{const n=fN(e,t);return"[object Object]"===Object.prototype.toString.call(n)?"":n})(t.title,{}),u=null===s||void 0===s?void 0:s.toString();return g?i["aria-sort"]="ascend"===g?"ascending":"descending":i["aria-label"]=u||"",i.className=c()(i.className,"".concat(e,"-column-has-sorters")),i.tabIndex=0,t.ellipsis&&(i.title=(null!==s&&void 0!==s?s:"").toString()),i}})}return"children"in f&&(f=Object.assign(Object.assign({},f),{children:ZF(e,f.children,n,o,i,a,l,d)})),f}));return u},JF=e=>{const{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}},eB=e=>{const t=e.filter((e=>{let{sortOrder:t}=e;return t})).map(JF);if(0===t.length&&e.length){const t=e.length-1;return Object.assign(Object.assign({},JF(e[t])),{column:void 0,order:void 0,field:void 0,columnKey:void 0})}return t.length<=1?t[0]||{}:t},tB=(e,t,n)=>{const r=t.slice().sort(((e,t)=>t.multiplePriority-e.multiplePriority)),o=e.slice(),i=r.filter((e=>{let{column:{sorter:t},sortOrder:n}=e;return $F(t)&&n}));return i.length?o.sort(((e,t)=>{for(let n=0;n<i.length;n+=1){const r=i[n],{column:{sorter:o},sortOrder:a}=r,l=$F(o);if(l&&a){const n=l(e,t,a);if(0!==n)return a===XF?n:-n}}return 0})).map((e=>{const r=e[n];return r?Object.assign(Object.assign({},e),{[n]:tB(r,t,n)}):e})):o},nB=e=>{const{prefixCls:t,mergedColumns:n,sortDirections:o,tableLocale:i,showSorterTooltip:a,onSorterChange:l}=e,[c,s]=r.useState(QF(n,!0)),u=(e,t)=>{const n=[];return e.forEach(((e,r)=>{const o=dN(r,t);if(n.push(uN(e,o)),Array.isArray(e.children)){const t=u(e.children,o);n.push.apply(n,Ds(t))}})),n},d=r.useMemo((()=>{let e=!0;const t=QF(n,!1);if(!t.length){const e=u(n);return c.filter((t=>{let{key:n}=t;return e.includes(n)}))}const r=[];function o(t){e?r.push(t):r.push(Object.assign(Object.assign({},t),{sortOrder:null}))}let i=null;return t.forEach((t=>{null===i?(o(t),t.sortOrder&&(!1===t.multiplePriority?e=!1:i=!0)):(i&&!1!==t.multiplePriority||(e=!1),o(t))})),r}),[n,c]),f=r.useMemo((()=>{var e,t;const n=d.map((e=>{let{column:t,sortOrder:n}=e;return{column:t,order:n}}));return{sortColumns:n,sortColumn:null===(e=n[0])||void 0===e?void 0:e.column,sortOrder:null===(t=n[0])||void 0===t?void 0:t.order}}),[d]),p=e=>{let t;t=!1!==e.multiplePriority&&d.length&&!1!==d[0].multiplePriority?[].concat(Ds(d.filter((t=>{let{key:n}=t;return n!==e.key}))),[e]):[e],s(t),l(eB(t),t)};return[e=>ZF(t,e,d,p,o,i,a),d,f,()=>eB(d)]},rB=(e,t)=>{const n=e.map((e=>{const n=Object.assign({},e);return n.title=fN(e.title,t),"children"in n&&(n.children=rB(n.children,t)),n}));return n},oB=e=>[r.useCallback((t=>rB(t,e)),[e])],iB=HA(((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r})),aB=iB,lB=HI(((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r})),cB=lB,sB=e=>{const{componentCls:t,lineWidth:n,lineType:r,tableBorderColor:o,tableHeaderBg:i,tablePaddingVertical:a,tablePaddingHorizontal:l,calc:c}=e,s="".concat(yn(n)," ").concat(r," ").concat(o),u=(e,r,o)=>({["&".concat(t,"-").concat(e)]:{["> ".concat(t,"-container")]:{["> ".concat(t,"-content, > ").concat(t,"-body")]:{"\n            > table > tbody > tr > th,\n            > table > tbody > tr > td\n          ":{["> ".concat(t,"-expanded-row-fixed")]:{margin:"".concat(yn(c(r).mul(-1).equal()),"\n              ").concat(yn(c(c(o).add(n)).mul(-1).equal()))}}}}}});return{["".concat(t,"-wrapper")]:{["".concat(t).concat(t,"-bordered")]:Object.assign(Object.assign(Object.assign({["> ".concat(t,"-title")]:{border:s,borderBottom:0},["> ".concat(t,"-container")]:{borderInlineStart:s,borderTop:s,["\n            > ".concat(t,"-content,\n            > ").concat(t,"-header,\n            > ").concat(t,"-body,\n            > ").concat(t,"-summary\n          ")]:{"> table":{"\n                > thead > tr > th,\n                > thead > tr > td,\n                > tbody > tr > th,\n                > tbody > tr > td,\n                > tfoot > tr > th,\n                > tfoot > tr > td\n              ":{borderInlineEnd:s},"> thead":{"> tr:not(:last-child) > th":{borderBottom:s},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n                > thead > tr,\n                > tbody > tr,\n                > tfoot > tr\n              ":{["> ".concat(t,"-cell-fix-right-first::after")]:{borderInlineEnd:s}},"\n                > tbody > tr > th,\n                > tbody > tr > td\n              ":{["> ".concat(t,"-expanded-row-fixed")]:{margin:"".concat(yn(c(a).mul(-1).equal())," ").concat(yn(c(c(l).add(n)).mul(-1).equal())),"&::after":{position:"absolute",top:0,insetInlineEnd:n,bottom:0,borderInlineEnd:s,content:'""'}}}}}},["&".concat(t,"-scroll-horizontal")]:{["> ".concat(t,"-container > ").concat(t,"-body")]:{"> table > tbody":{["\n                > tr".concat(t,"-expanded-row,\n                > tr").concat(t,"-placeholder\n              ")]:{"> th, > td":{borderInlineEnd:0}}}}}},u("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle)),u("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall)),{["> ".concat(t,"-footer")]:{border:s,borderTop:0}}),["".concat(t,"-cell")]:{["".concat(t,"-container:first-child")]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:"0 ".concat(yn(n)," 0 ").concat(yn(n)," ").concat(i)}},["".concat(t,"-bordered ").concat(t,"-cell-scrollbar")]:{borderInlineEnd:s}}}},uB=e=>{const{componentCls:t}=e;return{["".concat(t,"-wrapper")]:{["".concat(t,"-cell-ellipsis")]:Object.assign(Object.assign({},Yr),{wordBreak:"keep-all",["\n          &".concat(t,"-cell-fix-left-last,\n          &").concat(t,"-cell-fix-right-first\n        ")]:{overflow:"visible",["".concat(t,"-cell-content")]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},["".concat(t,"-column-title")]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},dB=e=>{const{componentCls:t}=e;return{["".concat(t,"-wrapper")]:{["".concat(t,"-tbody > tr").concat(t,"-placeholder")]:{textAlign:"center",color:e.colorTextDisabled,"\n          &:hover > th,\n          &:hover > td,\n        ":{background:e.colorBgContainer}}}}},fB=e=>{const{componentCls:t,antCls:n,motionDurationSlow:r,lineWidth:o,paddingXS:i,lineType:a,tableBorderColor:l,tableExpandIconBg:c,tableExpandColumnWidth:s,borderRadius:u,tablePaddingVertical:d,tablePaddingHorizontal:f,tableExpandedRowBg:p,paddingXXS:h,expandIconMarginTop:g,expandIconSize:v,expandIconHalfInner:m,expandIconScale:y,calc:b}=e,x="".concat(yn(o)," ").concat(a," ").concat(l),w=b(h).sub(o).equal();return{["".concat(t,"-wrapper")]:{["".concat(t,"-expand-icon-col")]:{width:s},["".concat(t,"-row-expand-icon-cell")]:{textAlign:"center",["".concat(t,"-row-expand-icon")]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},["".concat(t,"-row-indent")]:{height:1,float:"left"},["".concat(t,"-row-expand-icon")]:Object.assign(Object.assign({},$r(e)),{position:"relative",float:"left",width:v,height:v,color:"inherit",lineHeight:yn(v),background:c,border:x,borderRadius:u,transform:"scale(".concat(y,")"),"&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:"transform ".concat(r," ease-out"),content:'""'},"&::before":{top:m,insetInlineEnd:w,insetInlineStart:w,height:o},"&::after":{top:w,bottom:w,insetInlineStart:m,width:o,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),["".concat(t,"-row-indent + ").concat(t,"-row-expand-icon")]:{marginTop:g,marginInlineEnd:i},["tr".concat(t,"-expanded-row")]:{"&, &:hover":{"> th, > td":{background:p}},["".concat(n,"-descriptions-view")]:{display:"flex",table:{flex:"auto",width:"100%"}}},["".concat(t,"-expanded-row-fixed")]:{position:"relative",margin:"".concat(yn(b(d).mul(-1).equal())," ").concat(yn(b(f).mul(-1).equal())),padding:"".concat(yn(d)," ").concat(yn(f))}}}},pB=e=>{const{componentCls:t,antCls:n,iconCls:r,tableFilterDropdownWidth:o,tableFilterDropdownSearchWidth:i,paddingXXS:a,paddingXS:l,colorText:c,lineWidth:s,lineType:u,tableBorderColor:d,headerIconColor:f,fontSizeSM:p,tablePaddingHorizontal:h,borderRadius:g,motionDurationSlow:v,colorTextDescription:m,colorPrimary:y,tableHeaderFilterActiveBg:b,colorTextDisabled:x,tableFilterDropdownBg:w,tableFilterDropdownHeight:S,controlItemBgHover:O,controlItemBgActive:_,boxShadowSecondary:C,filterDropdownMenuBg:E,calc:P}=e,M="".concat(n,"-dropdown"),k="".concat(t,"-filter-dropdown"),A="".concat(n,"-tree"),I="".concat(yn(s)," ").concat(u," ").concat(d);return[{["".concat(t,"-wrapper")]:{["".concat(t,"-filter-column")]:{display:"flex",justifyContent:"space-between"},["".concat(t,"-filter-trigger")]:{position:"relative",display:"flex",alignItems:"center",marginBlock:P(a).mul(-1).equal(),marginInline:"".concat(yn(a)," ").concat(yn(P(h).div(2).mul(-1).equal())),padding:"0 ".concat(yn(a)),color:f,fontSize:p,borderRadius:g,cursor:"pointer",transition:"all ".concat(v),"&:hover":{color:m,background:b},"&.active":{color:y}}}},{["".concat(n,"-dropdown")]:{[k]:Object.assign(Object.assign({},Ur(e)),{minWidth:o,backgroundColor:w,borderRadius:g,boxShadow:C,overflow:"hidden",["".concat(M,"-menu")]:{maxHeight:S,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:E,"&:empty::after":{display:"block",padding:"".concat(yn(l)," 0"),color:x,fontSize:p,textAlign:"center",content:'"Not Found"'}},["".concat(k,"-tree")]:{paddingBlock:"".concat(yn(l)," 0"),paddingInline:l,[A]:{padding:0},["".concat(A,"-treenode ").concat(A,"-node-content-wrapper:hover")]:{backgroundColor:O},["".concat(A,"-treenode-checkbox-checked ").concat(A,"-node-content-wrapper")]:{"&, &:hover":{backgroundColor:_}}},["".concat(k,"-search")]:{padding:l,borderBottom:I,"&-input":{input:{minWidth:i},[r]:{color:x}}},["".concat(k,"-checkall")]:{width:"100%",marginBottom:a,marginInlineStart:a},["".concat(k,"-btns")]:{display:"flex",justifyContent:"space-between",padding:"".concat(yn(P(l).sub(s).equal())," ").concat(yn(l)),overflow:"hidden",borderTop:I}})}},{["".concat(n,"-dropdown ").concat(k,", ").concat(k,"-submenu")]:{["".concat(n,"-checkbox-wrapper + span")]:{paddingInlineStart:l,color:c},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},hB=e=>{const{componentCls:t,lineWidth:n,colorSplit:r,motionDurationSlow:o,zIndexTableFixed:i,tableBg:a,zIndexTableSticky:l,calc:c}=e,s=r;return{["".concat(t,"-wrapper")]:{["\n        ".concat(t,"-cell-fix-left,\n        ").concat(t,"-cell-fix-right\n      ")]:{position:"sticky !important",zIndex:i,background:a},["\n        ".concat(t,"-cell-fix-left-first::after,\n        ").concat(t,"-cell-fix-left-last::after\n      ")]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:c(n).mul(-1).equal(),width:30,transform:"translateX(100%)",transition:"box-shadow ".concat(o),content:'""',pointerEvents:"none"},["".concat(t,"-cell-fix-left-all::after")]:{display:"none"},["\n        ".concat(t,"-cell-fix-right-first::after,\n        ").concat(t,"-cell-fix-right-last::after\n      ")]:{position:"absolute",top:0,bottom:c(n).mul(-1).equal(),left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:"box-shadow ".concat(o),content:'""',pointerEvents:"none"},["".concat(t,"-container")]:{position:"relative","&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:c(l).add(1).equal({unit:!1}),width:30,transition:"box-shadow ".concat(o),content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},["".concat(t,"-ping-left")]:{["&:not(".concat(t,"-has-fix-left) ").concat(t,"-container::before")]:{boxShadow:"inset 10px 0 8px -8px ".concat(s)},["\n          ".concat(t,"-cell-fix-left-first::after,\n          ").concat(t,"-cell-fix-left-last::after\n        ")]:{boxShadow:"inset 10px 0 8px -8px ".concat(s)},["".concat(t,"-cell-fix-left-last::before")]:{backgroundColor:"transparent !important"}},["".concat(t,"-ping-right")]:{["&:not(".concat(t,"-has-fix-right) ").concat(t,"-container::after")]:{boxShadow:"inset -10px 0 8px -8px ".concat(s)},["\n          ".concat(t,"-cell-fix-right-first::after,\n          ").concat(t,"-cell-fix-right-last::after\n        ")]:{boxShadow:"inset -10px 0 8px -8px ".concat(s)}},["".concat(t,"-fixed-column-gapped")]:{["\n        ".concat(t,"-cell-fix-left-first::after,\n        ").concat(t,"-cell-fix-left-last::after,\n        ").concat(t,"-cell-fix-right-first::after,\n        ").concat(t,"-cell-fix-right-last::after\n      ")]:{boxShadow:"none"}}}}},gB=e=>{const{componentCls:t,antCls:n,margin:r}=e;return{["".concat(t,"-wrapper")]:{["".concat(t,"-pagination").concat(n,"-pagination")]:{margin:"".concat(yn(r)," 0")},["".concat(t,"-pagination")]:{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},vB=e=>{const{componentCls:t,tableRadius:n}=e;return{["".concat(t,"-wrapper")]:{[t]:{["".concat(t,"-title, ").concat(t,"-header")]:{borderRadius:"".concat(yn(n)," ").concat(yn(n)," 0 0")},["".concat(t,"-title + ").concat(t,"-container")]:{borderStartStartRadius:0,borderStartEndRadius:0,["".concat(t,"-header, table")]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:n,borderStartEndRadius:n,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:n},"> *:last-child":{borderStartEndRadius:n}}},"&-footer":{borderRadius:"0 0 ".concat(yn(n)," ").concat(yn(n))}}}}},mB=e=>{const{componentCls:t}=e;return{["".concat(t,"-wrapper-rtl")]:{direction:"rtl",table:{direction:"rtl"},["".concat(t,"-pagination-left")]:{justifyContent:"flex-end"},["".concat(t,"-pagination-right")]:{justifyContent:"flex-start"},["".concat(t,"-row-expand-icon")]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},["".concat(t,"-container")]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},["".concat(t,"-row-indent")]:{float:"right"}}}}},yB=e=>{const{componentCls:t,antCls:n,iconCls:r,fontSizeIcon:o,padding:i,paddingXS:a,headerIconColor:l,headerIconHoverColor:c,tableSelectionColumnWidth:s,tableSelectedRowBg:u,tableSelectedRowHoverBg:d,tableRowHoverBg:f,tablePaddingHorizontal:p,calc:h}=e;return{["".concat(t,"-wrapper")]:{["".concat(t,"-selection-col")]:{width:s,["&".concat(t,"-selection-col-with-dropdown")]:{width:h(s).add(o).add(h(i).div(4)).equal()}},["".concat(t,"-bordered ").concat(t,"-selection-col")]:{width:h(s).add(h(a).mul(2)).equal(),["&".concat(t,"-selection-col-with-dropdown")]:{width:h(s).add(o).add(h(i).div(4)).add(h(a).mul(2)).equal()}},["\n        table tr th".concat(t,"-selection-column,\n        table tr td").concat(t,"-selection-column,\n        ").concat(t,"-selection-column\n      ")]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:"center",["".concat(n,"-radio-wrapper")]:{marginInlineEnd:0}},["table tr th".concat(t,"-selection-column").concat(t,"-cell-fix-left")]:{zIndex:h(e.zIndexTableFixed).add(1).equal({unit:!1})},["table tr th".concat(t,"-selection-column::after")]:{backgroundColor:"transparent !important"},["".concat(t,"-selection")]:{position:"relative",display:"inline-flex",flexDirection:"column"},["".concat(t,"-selection-extra")]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:"all ".concat(e.motionDurationSlow),marginInlineStart:"100%",paddingInlineStart:yn(h(p).div(4).equal()),[r]:{color:l,fontSize:o,verticalAlign:"baseline","&:hover":{color:c}}},["".concat(t,"-tbody")]:{["".concat(t,"-row")]:{["&".concat(t,"-row-selected")]:{["> ".concat(t,"-cell")]:{background:u,"&-row-hover":{background:d}}},["> ".concat(t,"-cell-row-hover")]:{background:f}}}}}},bB=e=>{const{componentCls:t,tableExpandColumnWidth:n,calc:r}=e,o=(e,o,i,a)=>({["".concat(t).concat(t,"-").concat(e)]:{fontSize:a,["\n        ".concat(t,"-title,\n        ").concat(t,"-footer,\n        ").concat(t,"-cell,\n        ").concat(t,"-thead > tr > th,\n        ").concat(t,"-tbody > tr > th,\n        ").concat(t,"-tbody > tr > td,\n        tfoot > tr > th,\n        tfoot > tr > td\n      ")]:{padding:"".concat(yn(o)," ").concat(yn(i))},["".concat(t,"-filter-trigger")]:{marginInlineEnd:yn(r(i).div(2).mul(-1).equal())},["".concat(t,"-expanded-row-fixed")]:{margin:"".concat(yn(r(o).mul(-1).equal())," ").concat(yn(r(i).mul(-1).equal()))},["".concat(t,"-tbody")]:{["".concat(t,"-wrapper:only-child ").concat(t)]:{marginBlock:yn(r(o).mul(-1).equal()),marginInline:"".concat(yn(r(n).sub(i).equal())," ").concat(yn(r(i).mul(-1).equal()))}},["".concat(t,"-selection-extra")]:{paddingInlineStart:yn(r(i).div(4).equal())}}});return{["".concat(t,"-wrapper")]:Object.assign(Object.assign({},o("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle)),o("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall))}},xB=e=>{const{componentCls:t,marginXXS:n,fontSizeIcon:r,headerIconColor:o,headerIconHoverColor:i}=e;return{["".concat(t,"-wrapper")]:{["".concat(t,"-thead th").concat(t,"-column-has-sorters")]:{outline:"none",cursor:"pointer",transition:"all ".concat(e.motionDurationSlow,", left 0s"),"&:hover":{background:e.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:e.colorPrimary},["\n          &".concat(t,"-cell-fix-left:hover,\n          &").concat(t,"-cell-fix-right:hover\n        ")]:{background:e.tableFixedHeaderSortActiveBg}},["".concat(t,"-thead th").concat(t,"-column-sort")]:{background:e.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},["td".concat(t,"-column-sort")]:{background:e.tableBodySortBg},["".concat(t,"-column-title")]:{position:"relative",zIndex:1,flex:1},["".concat(t,"-column-sorters")]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},["".concat(t,"-column-sorters-tooltip-target-sorter")]:{"&::after":{content:"none"}},["".concat(t,"-column-sorter")]:{marginInlineStart:n,color:o,fontSize:0,transition:"color ".concat(e.motionDurationSlow),"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:r,"&.active":{color:e.colorPrimary}},["".concat(t,"-column-sorter-up + ").concat(t,"-column-sorter-down")]:{marginTop:"-0.3em"}},["".concat(t,"-column-sorters:hover ").concat(t,"-column-sorter")]:{color:i}}}},wB=e=>{const{componentCls:t,opacityLoading:n,tableScrollThumbBg:r,tableScrollThumbBgHover:o,tableScrollThumbSize:i,tableScrollBg:a,zIndexTableSticky:l,stickyScrollBarBorderRadius:c,lineWidth:s,lineType:u,tableBorderColor:d}=e,f="".concat(yn(s)," ").concat(u," ").concat(d);return{["".concat(t,"-wrapper")]:{["".concat(t,"-sticky")]:{"&-holder":{position:"sticky",zIndex:l,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:"".concat(yn(i)," !important"),zIndex:l,display:"flex",alignItems:"center",background:a,borderTop:f,opacity:n,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:i,backgroundColor:r,borderRadius:c,transition:"all ".concat(e.motionDurationSlow,", transform none"),position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:o}}}}}}},SB=e=>{const{componentCls:t,lineWidth:n,tableBorderColor:r,calc:o}=e,i="".concat(yn(n)," ").concat(e.lineType," ").concat(r);return{["".concat(t,"-wrapper")]:{["".concat(t,"-summary")]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:i}}},["div".concat(t,"-summary")]:{boxShadow:"0 ".concat(yn(o(n).mul(-1).equal())," 0 ").concat(r)}}}},OB=e=>{const{componentCls:t,motionDurationMid:n,lineWidth:r,lineType:o,tableBorderColor:i,calc:a}=e,l="".concat(yn(r)," ").concat(o," ").concat(i),c="".concat(t,"-expanded-row-cell");return{["".concat(t,"-wrapper")]:{["".concat(t,"-tbody-virtual")]:{["".concat(t,"-tbody-virtual-holder-inner")]:{["\n            & > ".concat(t,"-row, \n            & > div:not(").concat(t,"-row) > ").concat(t,"-row\n          ")]:{display:"flex",boxSizing:"border-box",width:"100%"}},["".concat(t,"-cell")]:{borderBottom:l,transition:"background ".concat(n)},["".concat(t,"-expanded-row")]:{["".concat(c).concat(c,"-fixed")]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:"calc(var(--virtual-width) - ".concat(yn(r),")"),borderInlineEnd:"none"}}},["".concat(t,"-bordered")]:{["".concat(t,"-tbody-virtual")]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:l,position:"absolute"},["".concat(t,"-cell")]:{borderInlineEnd:l,["&".concat(t,"-cell-fix-right-first:before")]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:a(r).mul(-1).equal(),borderInlineStart:l}}},["&".concat(t,"-virtual")]:{["".concat(t,"-placeholder ").concat(t,"-cell")]:{borderInlineEnd:l,borderBottom:l}}}}}},_B=e=>{const{componentCls:t,fontWeightStrong:n,tablePaddingVertical:r,tablePaddingHorizontal:o,tableExpandColumnWidth:i,lineWidth:a,lineType:l,tableBorderColor:c,tableFontSize:s,tableBg:u,tableRadius:d,tableHeaderTextColor:f,motionDurationMid:p,tableHeaderBg:h,tableHeaderCellSplitColor:g,tableFooterTextColor:v,tableFooterBg:m,calc:y}=e,b="".concat(yn(a)," ").concat(l," ").concat(c);return{["".concat(t,"-wrapper")]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{[t]:Object.assign(Object.assign({},Ur(e)),{fontSize:s,background:u,borderRadius:"".concat(yn(d)," ").concat(yn(d)," 0 0"),scrollbarColor:"".concat(e.tableScrollThumbBg," ").concat(e.tableScrollBg)}),table:{width:"100%",textAlign:"start",borderRadius:"".concat(yn(d)," ").concat(yn(d)," 0 0"),borderCollapse:"separate",borderSpacing:0},["\n          ".concat(t,"-cell,\n          ").concat(t,"-thead > tr > th,\n          ").concat(t,"-tbody > tr > th,\n          ").concat(t,"-tbody > tr > td,\n          tfoot > tr > th,\n          tfoot > tr > td\n        ")]:{position:"relative",padding:"".concat(yn(r)," ").concat(yn(o)),overflowWrap:"break-word"},["".concat(t,"-title")]:{padding:"".concat(yn(r)," ").concat(yn(o))},["".concat(t,"-thead")]:{"\n          > tr > th,\n          > tr > td\n        ":{position:"relative",color:f,fontWeight:n,textAlign:"start",background:h,borderBottom:b,transition:"background ".concat(p," ease"),"&[colspan]:not([colspan='1'])":{textAlign:"center"},["&:not(:last-child):not(".concat(t,"-selection-column):not(").concat(t,"-row-expand-icon-cell):not([colspan])::before")]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:g,transform:"translateY(-50%)",transition:"background-color ".concat(p),content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},["".concat(t,"-tbody")]:{"> tr":{"> th, > td":{transition:"background ".concat(p,", border-color ").concat(p),borderBottom:b,["\n              > ".concat(t,"-wrapper:only-child,\n              > ").concat(t,"-expanded-row-fixed > ").concat(t,"-wrapper:only-child\n            ")]:{[t]:{marginBlock:yn(y(r).mul(-1).equal()),marginInline:"".concat(yn(y(i).sub(o).equal()),"\n                ").concat(yn(y(o).mul(-1).equal())),["".concat(t,"-tbody > tr:last-child > td")]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:f,fontWeight:n,textAlign:"start",background:h,borderBottom:b,transition:"background ".concat(p," ease")}}},["".concat(t,"-footer")]:{padding:"".concat(yn(r)," ").concat(yn(o)),color:v,background:m}})}},CB=Ol("Table",(e=>{const{colorTextHeading:t,colorSplit:n,colorBgContainer:r,controlInteractiveSize:o,headerBg:i,headerColor:a,headerSortActiveBg:l,headerSortHoverBg:c,bodySortBg:s,rowHoverBg:u,rowSelectedBg:d,rowSelectedHoverBg:f,rowExpandedBg:p,cellPaddingBlock:h,cellPaddingInline:g,cellPaddingBlockMD:v,cellPaddingInlineMD:m,cellPaddingBlockSM:y,cellPaddingInlineSM:b,borderColor:x,footerBg:w,footerColor:S,headerBorderRadius:O,cellFontSize:_,cellFontSizeMD:C,cellFontSizeSM:E,headerSplitColor:P,fixedHeaderSortActiveBg:M,headerFilterHoverBg:k,filterDropdownBg:A,expandIconBg:I,selectionColumnWidth:T,stickyScrollBarBg:j,calc:L}=e,R=Ui(e,{tableFontSize:_,tableBg:r,tableRadius:O,tablePaddingVertical:h,tablePaddingHorizontal:g,tablePaddingVerticalMiddle:v,tablePaddingHorizontalMiddle:m,tablePaddingVerticalSmall:y,tablePaddingHorizontalSmall:b,tableBorderColor:x,tableHeaderTextColor:a,tableHeaderBg:i,tableFooterTextColor:S,tableFooterBg:w,tableHeaderCellSplitColor:P,tableHeaderSortBg:l,tableHeaderSortHoverBg:c,tableBodySortBg:s,tableFixedHeaderSortActiveBg:M,tableHeaderFilterActiveBg:k,tableFilterDropdownBg:A,tableRowHoverBg:u,tableSelectedRowBg:d,tableSelectedRowHoverBg:f,zIndexTableFixed:2,zIndexTableSticky:L(2).add(1).equal({unit:!1}),tableFontSizeMiddle:C,tableFontSizeSmall:E,tableSelectionColumnWidth:T,tableExpandIconBg:I,tableExpandColumnWidth:L(o).add(L(e.padding).mul(2)).equal(),tableExpandedRowBg:p,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:j,tableScrollThumbBgHover:t,tableScrollBg:n});return[_B(R),gB(R),SB(R),xB(R),pB(R),sB(R),vB(R),fB(R),SB(R),dB(R),yB(R),hB(R),wB(R),uB(R),bB(R),mB(R),OB(R)]}),(e=>{const{colorFillAlter:t,colorBgContainer:n,colorTextHeading:r,colorFillSecondary:o,colorFillContent:i,controlItemBgActive:a,controlItemBgActiveHover:l,padding:c,paddingSM:s,paddingXS:u,colorBorderSecondary:d,borderRadiusLG:f,controlHeight:p,colorTextPlaceholder:h,fontSize:g,fontSizeSM:v,lineHeight:m,lineWidth:y,colorIcon:b,colorIconHover:x,opacityLoading:w,controlInteractiveSize:S}=e,O=new Za(o).onBackground(n).toHexShortString(),_=new Za(i).onBackground(n).toHexShortString(),C=new Za(t).onBackground(n).toHexShortString(),E=new Za(b),P=new Za(x),M=S/2-y,k=2*M+3*y;return{headerBg:C,headerColor:r,headerSortActiveBg:O,headerSortHoverBg:_,bodySortBg:C,rowHoverBg:C,rowSelectedBg:a,rowSelectedHoverBg:l,rowExpandedBg:t,cellPaddingBlock:c,cellPaddingInline:c,cellPaddingBlockMD:s,cellPaddingInlineMD:u,cellPaddingBlockSM:u,cellPaddingInlineSM:u,borderColor:d,headerBorderRadius:f,footerBg:C,footerColor:r,cellFontSize:g,cellFontSizeMD:g,cellFontSizeSM:g,headerSplitColor:d,fixedHeaderSortActiveBg:O,headerFilterHoverBg:i,filterDropdownMenuBg:n,filterDropdownBg:n,expandIconBg:n,selectionColumnWidth:p,stickyScrollBarBg:h,stickyScrollBarBorderRadius:100,expandIconMarginTop:(g*m-3*y)/2-Math.ceil((1.4*v-3*y)/2),headerIconColor:E.clone().setAlpha(E.getAlpha()*w).toRgbString(),headerIconHoverColor:P.clone().setAlpha(P.getAlpha()*w).toRgbString(),expandIconHalfInner:M,expandIconSize:k,expandIconScale:S/k}}),{unitless:{expandIconScale:!0}}),EB=[],PB=(e,t)=>{var n,o;const{prefixCls:i,className:a,rootClassName:l,style:s,size:u,bordered:d,dropdownPrefixCls:p,dataSource:h,pagination:g,rowSelection:v,rowKey:m="key",rowClassName:y,columns:b,children:x,childrenColumnName:w,onChange:S,getPopupContainer:O,loading:_,expandIcon:C,expandable:E,expandedRowRender:P,expandIconColumnIndex:M,indentSize:k,scroll:A,sortDirections:I,locale:T,showSorterTooltip:j={target:"full-header"},virtual:L}=e;Vm("Table");const R=r.useMemo((()=>b||uA(x)),[b,x]),D=r.useMemo((()=>R.some((e=>e.responsive))),[R]),N=hD(D),F=r.useMemo((()=>{const e=new Set(Object.keys(N).filter((e=>N[e])));return R.filter((t=>!t.responsive||t.responsive.some((t=>e.has(t)))))}),[R,N]),B=hu(e,["className","style","columns"]),{locale:z=jg,direction:H,table:W,renderEmpty:V,getPrefixCls:G,getPopupContainer:Y}=r.useContext(f),U=Dc(u),X=Object.assign(Object.assign({},z.Table),T),q=h||EB,K=G("table",i),$=G("dropdown",p),[,Q]=wl(),Z=ks(K),[J,ee,te]=CB(K,Z),ne=Object.assign(Object.assign({childrenColumnName:w,expandIconColumnIndex:M},E),{expandIcon:null!==(n=null===E||void 0===E?void 0:E.expandIcon)&&void 0!==n?n:null===(o=null===W||void 0===W?void 0:W.expandable)||void 0===o?void 0:o.expandIcon}),{childrenColumnName:re="children"}=ne,oe=r.useMemo((()=>q.some((e=>null===e||void 0===e?void 0:e[re]))?"nest":P||(null===E||void 0===E?void 0:E.expandedRowRender)?"row":null),[q]),ie={body:r.useRef()},ae=function(e){return(t,n)=>{const r=t.querySelector(".".concat(e,"-container"));let o=n;if(r){const e=getComputedStyle(r);o=n-parseInt(e.borderLeftWidth,10)-parseInt(e.borderRightWidth,10)}return o}}(K),le=r.useRef(null),ce=r.useRef(null);iD(t,(()=>Object.assign(Object.assign({},ce.current),{nativeElement:le.current})));const se=r.useMemo((()=>"function"===typeof m?m:e=>null===e||void 0===e?void 0:e[m]),[m]),[ue]=DF(q,re,se),de={},fe=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];var r,o,i,a;const l=Object.assign(Object.assign({},de),e);n&&(null===(r=de.resetPagination)||void 0===r||r.call(de),(null===(o=l.pagination)||void 0===o?void 0:o.current)&&(l.pagination.current=1),g&&(null===(i=g.onChange)||void 0===i||i.call(g,1,null===(a=l.pagination)||void 0===a?void 0:a.pageSize))),A&&!1!==A.scrollToFirstRowOnChange&&ie.body.current&&cD(0,{getContainer:()=>ie.body.current}),null===S||void 0===S||S(l.pagination,l.filters,l.sorter,{currentDataSource:jF(tB(q,l.sorterStates,re),l.filterStates,re),action:t})},[pe,he,ge,ve]=nB({prefixCls:K,mergedColumns:F,onSorterChange:(e,t)=>{fe({sorter:e,sorterStates:t},"sort",!1)},sortDirections:I||["ascend","descend"],tableLocale:X,showSorterTooltip:j}),me=r.useMemo((()=>tB(q,he,re)),[q,he]);de.sorter=ve(),de.sorterStates=he;const[ye,be,xe]=RF({prefixCls:K,locale:X,dropdownPrefixCls:$,mergedColumns:F,onFilterChange:(e,t)=>{fe({filters:e,filterStates:t},"filter",!0)},getPopupContainer:O||Y,rootClassName:c()(l,Z)}),we=jF(me,be,re);de.filters=xe,de.filterStates=be;const Se=r.useMemo((()=>{const e={};return Object.keys(xe).forEach((t=>{null!==xe[t]&&(e[t]=xe[t])})),Object.assign(Object.assign({},ge),{filters:e})}),[ge,xe]),[Oe]=oB(Se),[_e,Ce]=zF(we.length,((e,t)=>{fe({pagination:Object.assign(Object.assign({},de.pagination),{current:e,pageSize:t})},"paginate")}),g);de.pagination=!1===g?{}:function(e,t){const n={current:e.current,pageSize:e.pageSize},r=t&&"object"===typeof t?t:{};return Object.keys(r).forEach((t=>{const r=e[t];"function"!==typeof r&&(n[t]=r)})),n}(_e,g),de.resetPagination=Ce;const Ee=r.useMemo((()=>{if(!1===g||!_e.pageSize)return we;const{current:e=1,total:t,pageSize:n=BF}=_e;return we.length<t?we.length>n?we.slice((e-1)*n,e*n):we:we.slice((e-1)*n,e*n)}),[!!g,we,null===_e||void 0===_e?void 0:_e.current,null===_e||void 0===_e?void 0:_e.pageSize,null===_e||void 0===_e?void 0:_e.total]),[Pe,Me]=oD({prefixCls:K,data:we,pageData:Ee,getRowKey:se,getRecordByKey:ue,expandType:oe,childrenColumnName:re,locale:X,getPopupContainer:O||Y},v);ne.__PARENT_RENDER_ICON__=ne.expandIcon,ne.expandIcon=ne.expandIcon||C||sN(X),"nest"===oe&&void 0===ne.expandIconColumnIndex?ne.expandIconColumnIndex=v?1:0:ne.expandIconColumnIndex>0&&v&&(ne.expandIconColumnIndex-=1),"number"!==typeof ne.indentSize&&(ne.indentSize="number"===typeof k?k:15);const ke=r.useCallback((e=>Oe(Pe(ye(pe(e))))),[pe,ye,Pe]);let Ae,Ie,Te;if(!1!==g&&(null===_e||void 0===_e?void 0:_e.total)){let e;e=_e.size?_e.size:"small"===U||"middle"===U?"small":void 0;const t=t=>r.createElement(UD,Object.assign({},_e,{className:c()("".concat(K,"-pagination ").concat(K,"-pagination-").concat(t),_e.className),size:e})),n="rtl"===H?"left":"right",{position:o}=_e;if(null!==o&&Array.isArray(o)){const e=o.find((e=>e.includes("top"))),r=o.find((e=>e.includes("bottom"))),i=o.every((e=>"none"==="".concat(e)));e||r||i||(Ie=t(n)),e&&(Ae=t(e.toLowerCase().replace("top",""))),r&&(Ie=t(r.toLowerCase().replace("bottom","")))}else Ie=t(n)}"boolean"===typeof _?Te={spinning:_}:"object"===typeof _&&(Te=Object.assign({spinning:!0},_));const je=c()(te,Z,"".concat(K,"-wrapper"),null===W||void 0===W?void 0:W.className,{["".concat(K,"-wrapper-rtl")]:"rtl"===H},a,l,ee),Le=Object.assign(Object.assign({},null===W||void 0===W?void 0:W.style),s),Re="undefined"!==typeof(null===T||void 0===T?void 0:T.emptyText)?T.emptyText:(null===V||void 0===V?void 0:V("Table"))||r.createElement(w_,{componentName:"Table"}),De=L?cB:aB,Ne={},Fe=r.useMemo((()=>{const{fontSize:e,lineHeight:t,padding:n,paddingXS:r,paddingSM:o}=Q,i=Math.floor(e*t);switch(U){case"large":return 2*n+i;case"small":return 2*r+i;default:return 2*o+i}}),[Q,U]);return L&&(Ne.listItemHeight=Fe),J(r.createElement("div",{ref:le,className:je,style:Le},r.createElement(cN,Object.assign({spinning:!1},Te),Ae,r.createElement(De,Object.assign({},Ne,B,{ref:ce,columns:F,direction:H,expandable:ne,prefixCls:K,className:c()({["".concat(K,"-middle")]:"middle"===U,["".concat(K,"-small")]:"small"===U,["".concat(K,"-bordered")]:d,["".concat(K,"-empty")]:0===q.length},te,Z,ee),data:Ee,rowKey:se,rowClassName:(e,t,n)=>{let r;return r="function"===typeof y?c()(y(e,t,n)):c()(y),c()({["".concat(K,"-row-selected")]:Me.has(se(e,t))},r)},emptyText:Re,internalHooks:NM,internalRefs:ie,transformColumns:ke,getContainerWidth:ae})),Ie)))},MB=r.forwardRef(PB),kB=(e,t)=>{const n=r.useRef(0);return n.current+=1,r.createElement(MB,Object.assign({},e,{ref:t,_renderTimes:n.current}))},AB=r.forwardRef(kB);AB.SELECTION_COLUMN=ZR,AB.EXPAND_COLUMN=DM,AB.SELECTION_ALL=JR,AB.SELECTION_INVERT=eD,AB.SELECTION_NONE=tD,AB.Column=WI,AB.ColumnGroup=VI,AB.Summary=xk;const IB=AB;const TB={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 jB=function(e,t){return r.createElement(xs,qc({},e,{ref:t,icon:TB}))};const LB=r.forwardRef(jB),RB=(0,r.createContext)(null);const DB=function(e){var t=e.activeTabOffset,n=e.horizontal,o=e.rtl,i=e.indicator,a=void 0===i?{}:i,l=a.size,c=a.align,s=void 0===c?"center":c,u=gt((0,r.useState)(),2),d=u[0],f=u[1],p=(0,r.useRef)(),h=r.useCallback((function(e){return"function"===typeof l?l(e):"number"===typeof l?l:e}),[l]);function g(){tg.cancel(p.current)}return(0,r.useEffect)((function(){var e={};if(t)if(n){e.width=h(t.width);var r=o?"right":"left";"start"===s&&(e[r]=t[r]),"center"===s&&(e[r]=t[r]+t.width/2,e.transform=o?"translateX(50%)":"translateX(-50%)"),"end"===s&&(e[r]=t[r]+t.width,e.transform="translateX(-100%)")}else e.height=h(t.height),"start"===s&&(e.top=t.top),"center"===s&&(e.top=t.top+t.height/2,e.transform="translateY(-50%)"),"end"===s&&(e.top=t.top+t.height,e.transform="translateY(-100%)");return g(),p.current=tg((function(){f(e)})),g}),[t,n,o,s,h]),{style:d}};var NB={width:0,height:0,left:0,top:0};function FB(e,t){var n=r.useRef(e),o=gt(r.useState({}),2)[1];return[n.current,function(e){var r="function"===typeof e?e(n.current):e;r!==n.current&&t(r,n.current),n.current=r,o({})}]}var BB=Math.pow(.995,20);function zB(e){var t=gt((0,r.useState)(0),2),n=t[0],o=t[1],i=(0,r.useRef)(0),a=(0,r.useRef)();return a.current=e,_n((function(){var e;null===(e=a.current)||void 0===e||e.call(a)}),[n]),function(){i.current===n&&(i.current+=1,o(i.current))}}var HB={width:0,height:0,left:0,top:0,right:0};function WB(e){var t;return e instanceof Map?(t={},e.forEach((function(e,n){t[n]=e}))):t=e,JSON.stringify(t)}function VB(e){return String(e).replace(/"/g,"TABS_DQ")}function GB(e,t,n,r){return!(!n||r||!1===e||void 0===e&&(!1===t||null===t))}var YB=r.forwardRef((function(e,t){var n=e.prefixCls,o=e.editable,i=e.locale,a=e.style;return o&&!1!==o.showAdd?r.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:a,"aria-label":(null===i||void 0===i?void 0:i.addAriaLabel)||"Add tab",onClick:function(e){o.onEdit("add",{event:e})}},o.addIcon||"+"):null}));const UB=YB;var XB=r.forwardRef((function(e,t){var n,o=e.position,i=e.prefixCls,a=e.extra;if(!a)return null;var l={};return"object"!==v(a)||r.isValidElement(a)?l.right=a:l=a,"right"===o&&(n=l.right),"left"===o&&(n=l.left),n?r.createElement("div",{className:"".concat(i,"-extra-content"),ref:t},n):null}));const qB=XB;var KB=r.forwardRef((function(e,t){var n=e.prefixCls,o=e.id,i=e.tabs,a=e.locale,l=e.mobile,s=e.more,u=void 0===s?{}:s,d=e.style,f=e.className,p=e.editable,g=e.tabBarGutter,v=e.rtl,m=e.removeAriaLabel,y=e.onTabClick,b=e.getPopupContainer,x=e.popupClassName,S=gt((0,r.useState)(!1),2),O=S[0],_=S[1],C=gt((0,r.useState)(null),2),E=C[0],P=C[1],M=u.icon,k=void 0===M?"More":M,A="".concat(o,"-more-popup"),I="".concat(n,"-dropdown"),T=null!==E?"".concat(A,"-").concat(E):null,j=null===a||void 0===a?void 0:a.dropdownAriaLabel;var L=r.createElement(gL,{onClick:function(e){var t=e.key,n=e.domEvent;y(t,n),_(!1)},prefixCls:"".concat(I,"-menu"),id:A,tabIndex:-1,role:"listbox","aria-activedescendant":T,selectedKeys:[E],"aria-label":void 0!==j?j:"expanded dropdown"},i.map((function(e){var t=e.closable,n=e.disabled,i=e.closeIcon,a=e.key,l=e.label,c=GB(t,i,p,n);return r.createElement(Hj,{key:a,id:"".concat(A,"-").concat(a),role:"option","aria-controls":o&&"".concat(o,"-panel-").concat(a),disabled:n},r.createElement("span",null,l),c&&r.createElement("button",{type:"button","aria-label":m||"remove",tabIndex:0,className:"".concat(I,"-menu-item-remove"),onClick:function(e){e.stopPropagation(),function(e,t){e.preventDefault(),e.stopPropagation(),p.onEdit("remove",{key:t,event:e})}(e,a)}},i||p.removeIcon||"\xd7"))})));function R(e){for(var t=i.filter((function(e){return!e.disabled})),n=t.findIndex((function(e){return e.key===E}))||0,r=t.length,o=0;o<r;o+=1){var a=t[n=(n+e+r)%r];if(!a.disabled)return void P(a.key)}}(0,r.useEffect)((function(){var e=document.getElementById(T);e&&e.scrollIntoView&&e.scrollIntoView(!1)}),[E]),(0,r.useEffect)((function(){O||P(null)}),[O]);var D=w({},v?"marginRight":"marginLeft",g);i.length||(D.visibility="hidden",D.order=1);var N=c()(w({},"".concat(I,"-rtl"),v)),F=l?null:r.createElement(qT,h({prefixCls:I,overlay:L,visible:!!i.length&&O,onVisibleChange:_,overlayClassName:c()(N,x),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:b},u),r.createElement("button",{type:"button",className:"".concat(n,"-nav-more"),style:D,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":A,id:"".concat(o,"-more"),"aria-expanded":O,onKeyDown:function(e){var t=e.which;if(O)switch(t){case BC.UP:R(-1),e.preventDefault();break;case BC.DOWN:R(1),e.preventDefault();break;case BC.ESC:_(!1);break;case BC.SPACE:case BC.ENTER:null!==E&&y(E,e)}else[BC.DOWN,BC.SPACE,BC.ENTER].includes(t)&&(_(!0),e.preventDefault())}},k));return r.createElement("div",{className:c()("".concat(n,"-nav-operations"),f),style:d,ref:t},F,r.createElement(UB,{prefixCls:n,locale:a,editable:p}))}));const $B=r.memo(KB,(function(e,t){return t.tabMoving}));const QB=function(e){var t=e.prefixCls,n=e.id,o=e.active,i=e.tab,a=i.key,l=i.label,s=i.disabled,u=i.closeIcon,d=i.icon,f=e.closable,p=e.renderWrapper,h=e.removeAriaLabel,g=e.editable,v=e.onClick,m=e.onFocus,y=e.style,b="".concat(t,"-tab"),x=GB(f,u,g,s);function S(e){s||v(e)}var O=r.useMemo((function(){return d&&"string"===typeof l?r.createElement("span",null,l):l}),[l,d]),_=r.createElement("div",{key:a,"data-node-key":VB(a),className:c()(b,w(w(w({},"".concat(b,"-with-remove"),x),"".concat(b,"-active"),o),"".concat(b,"-disabled"),s)),style:y,onClick:S},r.createElement("div",{role:"tab","aria-selected":o,id:n&&"".concat(n,"-tab-").concat(a),className:"".concat(b,"-btn"),"aria-controls":n&&"".concat(n,"-panel-").concat(a),"aria-disabled":s,tabIndex:s?null:0,onClick:function(e){e.stopPropagation(),S(e)},onKeyDown:function(e){[BC.SPACE,BC.ENTER].includes(e.which)&&(e.preventDefault(),S(e))},onFocus:m},d&&r.createElement("span",{className:"".concat(b,"-icon")},d),l&&O),x&&r.createElement("button",{type:"button","aria-label":h||"remove",tabIndex:0,className:"".concat(b,"-remove"),onClick:function(e){var t;e.stopPropagation(),(t=e).preventDefault(),t.stopPropagation(),g.onEdit("remove",{key:a,event:t})}},u||g.removeIcon||"\xd7"));return p?p(_):_};var ZB=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(),l=a.width,c=a.height;if(Math.abs(l-r)<1)return[l,c]}return[r,i]},JB=function(e,t){return e[t?0:1]},ez=r.forwardRef((function(e,t){var n=e.className,o=e.style,i=e.id,a=e.animated,l=e.activeKey,s=e.rtl,u=e.extra,d=e.editable,f=e.locale,p=e.tabPosition,g=e.tabBarGutter,v=e.children,m=e.onTabClick,y=e.onTabScroll,b=e.indicator,x=r.useContext(RB),S=x.prefixCls,_=x.tabs,C=(0,r.useRef)(null),E=(0,r.useRef)(null),M=(0,r.useRef)(null),k=(0,r.useRef)(null),A=(0,r.useRef)(null),I=(0,r.useRef)(null),T=(0,r.useRef)(null),j="top"===p||"bottom"===p,L=FB(0,(function(e,t){j&&y&&y({direction:e>t?"left":"right"})})),R=gt(L,2),D=R[0],N=R[1],F=FB(0,(function(e,t){!j&&y&&y({direction:e>t?"top":"bottom"})})),B=gt(F,2),z=B[0],H=B[1],W=gt((0,r.useState)([0,0]),2),V=W[0],G=W[1],Y=gt((0,r.useState)([0,0]),2),U=Y[0],X=Y[1],q=gt((0,r.useState)([0,0]),2),K=q[0],$=q[1],Q=gt((0,r.useState)([0,0]),2),Z=Q[0],J=Q[1],ee=function(e){var t=(0,r.useRef)([]),n=gt((0,r.useState)({}),2)[1],o=(0,r.useRef)("function"===typeof e?e():e),i=zB((function(){var e=o.current;t.current.forEach((function(t){e=t(e)})),t.current=[],o.current=e,n({})}));return[o.current,function(e){t.current.push(e),i()}]}(new Map),te=gt(ee,2),ne=te[0],re=te[1],oe=function(e,t,n){return(0,r.useMemo)((function(){for(var n,r=new Map,o=t.get(null===(n=e[0])||void 0===n?void 0:n.key)||NB,i=o.left+o.width,a=0;a<e.length;a+=1){var l,c=e[a].key,s=t.get(c);s||(s=t.get(null===(l=e[a-1])||void 0===l?void 0:l.key)||NB);var u=r.get(c)||O({},s);u.right=i-u.left-u.width,r.set(c,u)}return r}),[e.map((function(e){return e.key})).join("_"),t,n])}(_,ne,U[0]),ie=JB(V,j),ae=JB(U,j),le=JB(K,j),ce=JB(Z,j),se=Math.floor(ie)<Math.floor(ae+le),ue=se?ie-ce:ie-le,de="".concat(S,"-nav-operations-hidden"),fe=0,pe=0;function he(e){return e<fe?fe:e>pe?pe:e}j&&s?(fe=0,pe=Math.max(0,ae-ue)):(fe=Math.min(0,ue-ae),pe=0);var ge=(0,r.useRef)(null),ve=gt((0,r.useState)(),2),me=ve[0],ye=ve[1];function be(){ye(Date.now())}function xe(){ge.current&&clearTimeout(ge.current)}!function(e,t){var n=gt((0,r.useState)(),2),o=n[0],i=n[1],a=gt((0,r.useState)(0),2),l=a[0],c=a[1],s=gt((0,r.useState)(0),2),u=s[0],d=s[1],f=gt((0,r.useState)(),2),p=f[0],h=f[1],g=(0,r.useRef)(),v=(0,r.useRef)(),m=(0,r.useRef)(null);m.current={onTouchStart:function(e){var t=e.touches[0],n=t.screenX,r=t.screenY;i({x:n,y:r}),window.clearInterval(g.current)},onTouchMove:function(e){if(o){var n=e.touches[0],r=n.screenX,a=n.screenY;i({x:r,y:a});var s=r-o.x,u=a-o.y;t(s,u);var f=Date.now();c(f),d(f-l),h({x:s,y:u})}},onTouchEnd:function(){if(o&&(i(null),h(null),p)){var e=p.x/u,n=p.y/u,r=Math.abs(e),a=Math.abs(n);if(Math.max(r,a)<.1)return;var l=e,c=n;g.current=window.setInterval((function(){Math.abs(l)<.01&&Math.abs(c)<.01?window.clearInterval(g.current):t(20*(l*=BB),20*(c*=BB))}),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()}},r.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)}}),[])}(k,(function(e,t){function n(e,t){e((function(e){return he(e+t)}))}return!!se&&(j?n(N,e):n(H,t),xe(),be(),!0)})),(0,r.useEffect)((function(){return xe(),me&&(ge.current=setTimeout((function(){ye(0)}),100)),xe}),[me]);var we=function(e,t,n,o,i,a,l){var c,s,u,d=l.tabs,f=l.tabPosition,p=l.rtl;return["top","bottom"].includes(f)?(c="width",s=p?"right":"left",u=Math.abs(n)):(c="height",s="top",u=-n),(0,r.useMemo)((function(){if(!d.length)return[0,0];for(var n=d.length,r=n,o=0;o<n;o+=1){var i=e.get(d[o].key)||HB;if(Math.floor(i[s]+i[c])>Math.floor(u+t)){r=o-1;break}}for(var a=0,l=n-1;l>=0;l-=1)if((e.get(d[l].key)||HB)[s]<u){a=l+1;break}return a>=r?[0,0]:[a,r]}),[e,t,o,i,a,u,f,d.map((function(e){return e.key})).join("_"),p])}(oe,ue,j?D:z,ae,le,ce,O(O({},e),{},{tabs:_})),Se=gt(we,2),Oe=Se[0],_e=Se[1],Ce=Ri((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l,t=oe.get(e)||{width:0,height:0,left:0,right:0,top:0};if(j){var n=D;s?t.right<D?n=t.right:t.right+t.width>D+ue&&(n=t.right+t.width-ue):t.left<-D?n=-t.left:t.left+t.width>-D+ue&&(n=-(t.left+t.width-ue)),H(0),N(he(n))}else{var r=z;t.top<-z?r=-t.top:t.top+t.height>-z+ue&&(r=-(t.top+t.height-ue)),N(0),H(he(r))}})),Ee={};"top"===p||"bottom"===p?Ee[s?"marginRight":"marginLeft"]=g:Ee.marginTop=g;var Pe=_.map((function(e,t){var n=e.key;return r.createElement(QB,{id:i,prefixCls:S,key:n,tab:e,style:0===t?void 0:Ee,closable:e.closable,editable:d,active:n===l,renderWrapper:v,removeAriaLabel:null===f||void 0===f?void 0:f.removeAriaLabel,onClick:function(e){m(n,e)},onFocus:function(){Ce(n),be(),k.current&&(s||(k.current.scrollLeft=0),k.current.scrollTop=0)}})})),Me=function(){return re((function(){var e,t=new Map,n=null===(e=A.current)||void 0===e?void 0:e.getBoundingClientRect();return _.forEach((function(e){var r,o=e.key,i=null===(r=A.current)||void 0===r?void 0:r.querySelector('[data-node-key="'.concat(VB(o),'"]'));if(i){var a=function(e,t){var n=e.offsetWidth,r=e.offsetHeight,o=e.offsetTop,i=e.offsetLeft,a=e.getBoundingClientRect(),l=a.width,c=a.height,s=a.left,u=a.top;return Math.abs(l-n)<1?[l,c,s-t.left,u-t.top]:[n,r,i,o]}(i,n),l=gt(a,4),c=l[0],s=l[1],u=l[2],d=l[3];t.set(o,{width:c,height:s,left:u,top:d})}})),t}))};(0,r.useEffect)((function(){Me()}),[_.map((function(e){return e.key})).join("_")]);var ke=zB((function(){var e=ZB(C),t=ZB(E),n=ZB(M);G([e[0]-t[0]-n[0],e[1]-t[1]-n[1]]);var r=ZB(T);$(r);var o=ZB(I);J(o);var i=ZB(A);X([i[0]-r[0],i[1]-r[1]]),Me()})),Ae=_.slice(0,Oe),Ie=_.slice(_e+1),Te=[].concat(P(Ae),P(Ie)),je=oe.get(l),Le=DB({activeTabOffset:je,horizontal:j,indicator:b,rtl:s}).style;(0,r.useEffect)((function(){Ce()}),[l,fe,pe,WB(je),WB(oe),j]),(0,r.useEffect)((function(){ke()}),[s]);var Re,De,Ne,Fe,Be=!!Te.length,ze="".concat(S,"-nav-wrap");return j?s?(De=D>0,Re=D!==pe):(Re=D<0,De=D!==fe):(Ne=z<0,Fe=z!==fe),r.createElement(qh,{onResize:ke},r.createElement("div",{ref:Hi(t,C),role:"tablist",className:c()("".concat(S,"-nav"),n),style:o,onKeyDown:function(){be()}},r.createElement(qB,{ref:E,position:"left",extra:u,prefixCls:S}),r.createElement(qh,{onResize:ke},r.createElement("div",{className:c()(ze,w(w(w(w({},"".concat(ze,"-ping-left"),Re),"".concat(ze,"-ping-right"),De),"".concat(ze,"-ping-top"),Ne),"".concat(ze,"-ping-bottom"),Fe)),ref:k},r.createElement(qh,{onResize:ke},r.createElement("div",{ref:A,className:"".concat(S,"-nav-list"),style:{transform:"translate(".concat(D,"px, ").concat(z,"px)"),transition:me?"none":void 0}},Pe,r.createElement(UB,{ref:T,prefixCls:S,locale:f,editable:d,style:O(O({},0===Pe.length?void 0:Ee),{},{visibility:Be?"hidden":null})}),r.createElement("div",{className:c()("".concat(S,"-ink-bar"),w({},"".concat(S,"-ink-bar-animated"),a.inkBar)),style:Le}))))),r.createElement($B,h({},e,{removeAriaLabel:null===f||void 0===f?void 0:f.removeAriaLabel,ref:I,prefixCls:S,tabs:Te,className:!Be&&de,tabMoving:!!me})),r.createElement(qB,{ref:M,position:"right",extra:u,prefixCls:S})))}));const tz=ez;var nz=r.forwardRef((function(e,t){var n=e.prefixCls,o=e.className,i=e.style,a=e.id,l=e.active,s=e.tabKey,u=e.children;return r.createElement("div",{id:a&&"".concat(a,"-panel-").concat(s),role:"tabpanel",tabIndex:l?0:-1,"aria-labelledby":a&&"".concat(a,"-tab-").concat(s),"aria-hidden":!l,style:i,className:c()(n,l&&"".concat(n,"-active"),o),ref:t},u)}));const rz=nz;var oz=["renderTabBar"],iz=["label","key"];const az=function(e){var t=e.renderTabBar,n=g(e,oz),o=r.useContext(RB).tabs;return t?t(O(O({},n),{},{panes:o.map((function(e){var t=e.label,n=e.key,o=g(e,iz);return r.createElement(rz,h({tab:t,key:n,tabKey:n},o))}))}),tz):r.createElement(tz,n)};var lz=["key","forceRender","style","className","destroyInactiveTabPane"];const cz=function(e){var t=e.id,n=e.activeKey,o=e.animated,i=e.tabPosition,a=e.destroyInactiveTabPane,l=r.useContext(RB),s=l.prefixCls,u=l.tabs,d=o.tabPane,f="".concat(s,"-tabpane");return r.createElement("div",{className:c()("".concat(s,"-content-holder"))},r.createElement("div",{className:c()("".concat(s,"-content"),"".concat(s,"-content-").concat(i),w({},"".concat(s,"-content-animated"),d))},u.map((function(e){var i=e.key,l=e.forceRender,s=e.style,u=e.className,p=e.destroyInactiveTabPane,v=g(e,lz),m=i===n;return r.createElement(zv,h({key:i,visible:m,forceRender:l,removeOnLeave:!(!a&&!p),leavedClassName:"".concat(f,"-hidden")},o.tabPaneMotion),(function(e,n){var o=e.style,a=e.className;return r.createElement(rz,h({},v,{prefixCls:f,id:t,tabKey:i,animated:d,active:m,style:O(O({},s),o),className:c()(u,a),ref:n}))}))}))))};var sz=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],uz=0,dz=r.forwardRef((function(e,t){var n=e.id,o=e.prefixCls,i=void 0===o?"rc-tabs":o,a=e.className,l=e.items,s=e.direction,u=e.activeKey,d=e.defaultActiveKey,f=e.editable,p=e.animated,m=e.tabPosition,y=void 0===m?"top":m,b=e.tabBarGutter,x=e.tabBarStyle,S=e.tabBarExtraContent,_=e.locale,C=e.more,E=e.destroyInactiveTabPane,P=e.renderTabBar,M=e.onChange,k=e.onTabClick,A=e.onTabScroll,I=e.getPopupContainer,T=e.popupClassName,j=e.indicator,L=g(e,sz),R=r.useMemo((function(){return(l||[]).filter((function(e){return e&&"object"===v(e)&&"key"in e}))}),[l]),D="rtl"===s,N=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}:O({inkBar:!0},"object"===v(t)?t:{})).tabPaneMotion&&void 0===e.tabPane&&(e.tabPane=!0),!e.tabPaneMotion&&e.tabPane&&(e.tabPane=!1),e}(p),F=gt((0,r.useState)(!1),2),B=F[0],z=F[1];(0,r.useEffect)((function(){z(Kg())}),[]);var H=gt(Fi((function(){var e;return null===(e=R[0])||void 0===e?void 0:e.key}),{value:u,defaultValue:d}),2),W=H[0],V=H[1],G=gt((0,r.useState)((function(){return R.findIndex((function(e){return e.key===W}))})),2),Y=G[0],U=G[1];(0,r.useEffect)((function(){var e,t=R.findIndex((function(e){return e.key===W}));-1===t&&(t=Math.max(0,Math.min(Y,R.length-1)),V(null===(e=R[t])||void 0===e?void 0:e.key));U(t)}),[R.map((function(e){return e.key})).join("_"),W,Y]);var X=gt(Fi(null,{value:n}),2),q=X[0],K=X[1];(0,r.useEffect)((function(){n||(K("rc-tabs-".concat(uz)),uz+=1)}),[]);var $={id:q,activeKey:W,animated:N,tabPosition:y,rtl:D,mobile:B},Q=O(O({},$),{},{editable:f,locale:_,more:C,tabBarGutter:b,onTabClick:function(e,t){null===k||void 0===k||k(e,t);var n=e!==W;V(e),n&&(null===M||void 0===M||M(e))},onTabScroll:A,extra:S,style:x,panes:null,getPopupContainer:I,popupClassName:T,indicator:j});return r.createElement(RB.Provider,{value:{tabs:R,prefixCls:i}},r.createElement("div",h({ref:t,id:n,className:c()(i,"".concat(i,"-").concat(y),w(w(w({},"".concat(i,"-mobile"),B),"".concat(i,"-editable"),f),"".concat(i,"-rtl"),D),a)},L),r.createElement(az,h({},Q,{renderTabBar:P})),r.createElement(cz,h({destroyInactiveTabPane:E},$,{animated:N}))))}));const fz=dz,pz={motionAppear:!1,motionEnter:!0,motionLeave:!0};var hz=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 gz=e=>{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{["".concat(t,"-switch")]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:"opacity ".concat(n)}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:"opacity ".concat(n)}}}}},[T_(e,"slide-up"),T_(e,"slide-down")]]},vz=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:o,colorBorderSecondary:i,itemSelectedColor:a}=e;return{["".concat(t,"-card")]:{["> ".concat(t,"-nav, > div > ").concat(t,"-nav")]:{["".concat(t,"-tab")]:{margin:0,padding:n,background:r,border:"".concat(yn(e.lineWidth)," ").concat(e.lineType," ").concat(i),transition:"all ".concat(e.motionDurationSlow," ").concat(e.motionEaseInOut)},["".concat(t,"-tab-active")]:{color:a,background:e.colorBgContainer},["".concat(t,"-ink-bar")]:{visibility:"hidden"}},["&".concat(t,"-top, &").concat(t,"-bottom")]:{["> ".concat(t,"-nav, > div > ").concat(t,"-nav")]:{["".concat(t,"-tab + ").concat(t,"-tab")]:{marginLeft:{_skip_check_:!0,value:yn(o)}}}},["&".concat(t,"-top")]:{["> ".concat(t,"-nav, > div > ").concat(t,"-nav")]:{["".concat(t,"-tab")]:{borderRadius:"".concat(yn(e.borderRadiusLG)," ").concat(yn(e.borderRadiusLG)," 0 0")},["".concat(t,"-tab-active")]:{borderBottomColor:e.colorBgContainer}}},["&".concat(t,"-bottom")]:{["> ".concat(t,"-nav, > div > ").concat(t,"-nav")]:{["".concat(t,"-tab")]:{borderRadius:"0 0 ".concat(yn(e.borderRadiusLG)," ").concat(yn(e.borderRadiusLG))},["".concat(t,"-tab-active")]:{borderTopColor:e.colorBgContainer}}},["&".concat(t,"-left, &").concat(t,"-right")]:{["> ".concat(t,"-nav, > div > ").concat(t,"-nav")]:{["".concat(t,"-tab + ").concat(t,"-tab")]:{marginTop:yn(o)}}},["&".concat(t,"-left")]:{["> ".concat(t,"-nav, > div > ").concat(t,"-nav")]:{["".concat(t,"-tab")]:{borderRadius:{_skip_check_:!0,value:"".concat(yn(e.borderRadiusLG)," 0 0 ").concat(yn(e.borderRadiusLG))}},["".concat(t,"-tab-active")]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},["&".concat(t,"-right")]:{["> ".concat(t,"-nav, > div > ").concat(t,"-nav")]:{["".concat(t,"-tab")]:{borderRadius:{_skip_check_:!0,value:"0 ".concat(yn(e.borderRadiusLG)," ").concat(yn(e.borderRadiusLG)," 0")}},["".concat(t,"-tab-active")]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},mz=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{["".concat(t,"-dropdown")]:Object.assign(Object.assign({},Ur(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},["".concat(t,"-dropdown-menu")]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:"".concat(yn(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({},Yr),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:"".concat(yn(e.paddingXXS)," ").concat(yn(e.paddingSM)),color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:"all ".concat(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"}}})}})}},yz=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:o,verticalItemPadding:i,verticalItemMargin:a,calc:l}=e;return{["".concat(t,"-top, ").concat(t,"-bottom")]:{flexDirection:"column",["> ".concat(t,"-nav, > div > ").concat(t,"-nav")]:{margin:o,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:"".concat(yn(e.lineWidth)," ").concat(e.lineType," ").concat(r),content:"''"},["".concat(t,"-ink-bar")]:{height:e.lineWidthBold,"&-animated":{transition:"width ".concat(e.motionDurationSlow,", left ").concat(e.motionDurationSlow,",\n            right ").concat(e.motionDurationSlow)}},["".concat(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},["&".concat(t,"-nav-wrap-ping-left::before")]:{opacity:1},["&".concat(t,"-nav-wrap-ping-right::after")]:{opacity:1}}}},["".concat(t,"-top")]:{["> ".concat(t,"-nav,\n        > div > ").concat(t,"-nav")]:{"&::before":{bottom:0},["".concat(t,"-ink-bar")]:{bottom:0}}},["".concat(t,"-bottom")]:{["> ".concat(t,"-nav, > div > ").concat(t,"-nav")]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},["".concat(t,"-ink-bar")]:{top:0}},["> ".concat(t,"-content-holder, > div > ").concat(t,"-content-holder")]:{order:0}},["".concat(t,"-left, ").concat(t,"-right")]:{["> ".concat(t,"-nav, > div > ").concat(t,"-nav")]:{flexDirection:"column",minWidth:l(e.controlHeight).mul(1.25).equal(),["".concat(t,"-tab")]:{padding:i,textAlign:"center"},["".concat(t,"-tab + ").concat(t,"-tab")]:{margin:a},["".concat(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},["&".concat(t,"-nav-wrap-ping-top::before")]:{opacity:1},["&".concat(t,"-nav-wrap-ping-bottom::after")]:{opacity:1}},["".concat(t,"-ink-bar")]:{width:e.lineWidthBold,"&-animated":{transition:"height ".concat(e.motionDurationSlow,", top ").concat(e.motionDurationSlow)}},["".concat(t,"-nav-list, ").concat(t,"-nav-operations")]:{flex:"1 0 auto",flexDirection:"column"}}},["".concat(t,"-left")]:{["> ".concat(t,"-nav, > div > ").concat(t,"-nav")]:{["".concat(t,"-ink-bar")]:{right:{_skip_check_:!0,value:0}}},["> ".concat(t,"-content-holder, > div > ").concat(t,"-content-holder")]:{marginLeft:{_skip_check_:!0,value:yn(l(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:"".concat(yn(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorBorder)},["> ".concat(t,"-content > ").concat(t,"-tabpane")]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},["".concat(t,"-right")]:{["> ".concat(t,"-nav, > div > ").concat(t,"-nav")]:{order:1,["".concat(t,"-ink-bar")]:{left:{_skip_check_:!0,value:0}}},["> ".concat(t,"-content-holder, > div > ").concat(t,"-content-holder")]:{order:0,marginRight:{_skip_check_:!0,value:l(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:"".concat(yn(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorBorder)},["> ".concat(t,"-content > ").concat(t,"-tabpane")]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},bz=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,horizontalItemPaddingSM:o,horizontalItemPaddingLG:i}=e;return{[t]:{"&-small":{["> ".concat(t,"-nav")]:{["".concat(t,"-tab")]:{padding:o,fontSize:e.titleFontSizeSM}}},"&-large":{["> ".concat(t,"-nav")]:{["".concat(t,"-tab")]:{padding:i,fontSize:e.titleFontSizeLG}}}},["".concat(t,"-card")]:{["&".concat(t,"-small")]:{["> ".concat(t,"-nav")]:{["".concat(t,"-tab")]:{padding:n}},["&".concat(t,"-bottom")]:{["> ".concat(t,"-nav ").concat(t,"-tab")]:{borderRadius:"0 0 ".concat(yn(e.borderRadius)," ").concat(yn(e.borderRadius))}},["&".concat(t,"-top")]:{["> ".concat(t,"-nav ").concat(t,"-tab")]:{borderRadius:"".concat(yn(e.borderRadius)," ").concat(yn(e.borderRadius)," 0 0")}},["&".concat(t,"-right")]:{["> ".concat(t,"-nav ").concat(t,"-tab")]:{borderRadius:{_skip_check_:!0,value:"0 ".concat(yn(e.borderRadius)," ").concat(yn(e.borderRadius)," 0")}}},["&".concat(t,"-left")]:{["> ".concat(t,"-nav ").concat(t,"-tab")]:{borderRadius:{_skip_check_:!0,value:"".concat(yn(e.borderRadius)," 0 0 ").concat(yn(e.borderRadius))}}}},["&".concat(t,"-large")]:{["> ".concat(t,"-nav")]:{["".concat(t,"-tab")]:{padding:r}}}}}},xz=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:o,tabsHorizontalItemMargin:i,horizontalItemPadding:a,itemSelectedColor:l,itemColor:c}=e,s="".concat(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:c,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:n}},Kr(e)),"&-btn":{outline:"none",transition:"all ".concat(e.motionDurationSlow),["".concat(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 ".concat(e.motionDurationSlow),"&:hover":{color:e.colorTextHeading}},"&:hover":{color:r},["&".concat(s,"-active ").concat(s,"-btn")]:{color:l,textShadow:e.tabsActiveTextShadow},["&".concat(s,"-disabled")]:{color:e.colorTextDisabled,cursor:"not-allowed"},["&".concat(s,"-disabled ").concat(s,"-btn, &").concat(s,"-disabled ").concat(t,"-remove")]:{"&:focus, &:active":{color:e.colorTextDisabled}},["& ".concat(s,"-remove ").concat(o)]:{margin:0},["".concat(o,":not(:last-child)")]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},["".concat(s," + ").concat(s)]:{margin:{_skip_check_:!0,value:i}}}},wz=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:o,calc:i}=e;return{["".concat(t,"-rtl")]:{direction:"rtl",["".concat(t,"-nav")]:{["".concat(t,"-tab")]:{margin:{_skip_check_:!0,value:n},["".concat(t,"-tab:last-of-type")]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:yn(e.marginSM)}},["".concat(t,"-tab-remove")]:{marginRight:{_skip_check_:!0,value:yn(e.marginXS)},marginLeft:{_skip_check_:!0,value:yn(i(e.marginXXS).mul(-1).equal())},[r]:{margin:0}}}},["&".concat(t,"-left")]:{["> ".concat(t,"-nav")]:{order:1},["> ".concat(t,"-content-holder")]:{order:0}},["&".concat(t,"-right")]:{["> ".concat(t,"-nav")]:{order:0},["> ".concat(t,"-content-holder")]:{order:1}},["&".concat(t,"-card").concat(t,"-top, &").concat(t,"-card").concat(t,"-bottom")]:{["> ".concat(t,"-nav, > div > ").concat(t,"-nav")]:{["".concat(t,"-tab + ").concat(t,"-tab")]:{marginRight:{_skip_check_:!0,value:o},marginLeft:{_skip_check_:!0,value:0}}}}},["".concat(t,"-dropdown-rtl")]:{direction:"rtl"},["".concat(t,"-menu-item")]:{["".concat(t,"-dropdown-rtl")]:{textAlign:{_skip_check_:!0,value:"right"}}}}},Sz=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:o,itemHoverColor:i,itemActiveColor:a,colorBorderSecondary:l}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Ur(e)),{display:"flex",["> ".concat(t,"-nav, > div > ").concat(t,"-nav")]:{position:"relative",display:"flex",flex:"none",alignItems:"center",["".concat(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 ".concat(e.motionDurationSlow),content:"''",pointerEvents:"none"}},["".concat(t,"-nav-list")]:{position:"relative",display:"flex",transition:"opacity ".concat(e.motionDurationSlow)},["".concat(t,"-nav-operations")]:{display:"flex",alignSelf:"stretch"},["".concat(t,"-nav-operations-hidden")]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},["".concat(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:"''"}},["".concat(t,"-nav-add")]:Object.assign({minWidth:r,minHeight:r,marginLeft:{_skip_check_:!0,value:o},padding:"0 ".concat(yn(e.paddingXS)),background:"transparent",border:"".concat(yn(e.lineWidth)," ").concat(e.lineType," ").concat(l),borderRadius:"".concat(yn(e.borderRadiusLG)," ").concat(yn(e.borderRadiusLG)," 0 0"),outline:"none",cursor:"pointer",color:e.colorText,transition:"all ".concat(e.motionDurationSlow," ").concat(e.motionEaseInOut),"&:hover":{color:i},"&:active, &:focus:not(:focus-visible)":{color:a}},Kr(e))},["".concat(t,"-extra-content")]:{flex:"none"},["".concat(t,"-ink-bar")]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),xz(e)),{["".concat(t,"-content")]:{position:"relative",width:"100%"},["".concat(t,"-content-holder")]:{flex:"auto",minWidth:0,minHeight:0},["".concat(t,"-tabpane")]:{outline:"none","&-hidden":{display:"none"}}}),["".concat(t,"-centered")]:{["> ".concat(t,"-nav, > div > ").concat(t,"-nav")]:{["".concat(t,"-nav-wrap")]:{["&:not([class*='".concat(t,"-nav-wrap-ping'])")]:{justifyContent:"center"}}}}}},Oz=Ol("Tabs",(e=>{const t=Ui(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:"0 0 0 ".concat(yn(e.horizontalItemGutter)),tabsHorizontalItemMarginRTL:"0 0 0 ".concat(yn(e.horizontalItemGutter))});return[bz(t),wz(t),yz(t),mz(t),vz(t),Sz(t),gz(t)]}),(e=>{const t=e.controlHeightLG;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:"".concat((t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth,"px ").concat(e.padding,"px"),cardPaddingSM:"".concat(1.5*e.paddingXXS,"px ").concat(e.padding,"px"),cardPaddingLG:"".concat(e.paddingXS,"px ").concat(e.padding,"px ").concat(1.5*e.paddingXXS,"px"),titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:"0 0 ".concat(e.margin,"px 0"),horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:"".concat(e.paddingSM,"px 0"),horizontalItemPaddingSM:"".concat(e.paddingXS,"px 0"),horizontalItemPaddingLG:"".concat(e.padding,"px 0"),verticalItemPadding:"".concat(e.paddingXS,"px ").concat(e.paddingLG,"px"),verticalItemMargin:"".concat(e.margin,"px 0 0 0"),itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}}));var _z=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(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 Cz=e=>{var t,n,o,i,a,l,s,u,d,p,h;const{type:g,className:v,rootClassName:m,size:y,onEdit:b,hideAdd:x,centered:w,addIcon:S,removeIcon:O,moreIcon:_,more:C,popupClassName:E,children:P,items:M,animated:k,style:A,indicatorSize:I,indicator:T}=e,j=_z(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:L}=j,{direction:R,tabs:D,getPrefixCls:N,getPopupContainer:F}=r.useContext(f),B=N("tabs",L),z=ks(B),[H,W,V]=Oz(B,z);let G;"editable-card"===g&&(G={onEdit:(e,t)=>{let{key:n,event:r}=t;null===b||void 0===b||b("add"===e?r:n,e)},removeIcon:null!==(t=null!==O&&void 0!==O?O:null===D||void 0===D?void 0:D.removeIcon)&&void 0!==t?t:r.createElement(dC,null),addIcon:(null!==S&&void 0!==S?S:null===D||void 0===D?void 0:D.addIcon)||r.createElement(LB,null),showAdd:!0!==x});const Y=N();const U=Dc(y),X=function(e,t){if(e)return e;const n=Tc(t).map((e=>{if(r.isValidElement(e)){const{key:t,props:n}=e,r=n||{},{tab:o}=r,i=hz(r,["tab"]);return Object.assign(Object.assign({key:String(t)},i),{label:o})}return null}));return function(e){return e.filter((e=>e))}(n)}(M,P),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({},pz),{motionName:km(e,"switch")})),t}(B,k),K=Object.assign(Object.assign({},null===D||void 0===D?void 0:D.style),A),$={align:null!==(n=null===T||void 0===T?void 0:T.align)&&void 0!==n?n:null===(o=null===D||void 0===D?void 0:D.indicator)||void 0===o?void 0:o.align,size:null!==(s=null!==(a=null!==(i=null===T||void 0===T?void 0:T.size)&&void 0!==i?i:I)&&void 0!==a?a:null===(l=null===D||void 0===D?void 0:D.indicator)||void 0===l?void 0:l.size)&&void 0!==s?s:null===D||void 0===D?void 0:D.indicatorSize};return H(r.createElement(fz,Object.assign({direction:R,getPopupContainer:F},j,{items:X,className:c()({["".concat(B,"-").concat(U)]:U,["".concat(B,"-card")]:["card","editable-card"].includes(g),["".concat(B,"-editable-card")]:"editable-card"===g,["".concat(B,"-centered")]:w},null===D||void 0===D?void 0:D.className,v,m,W,V,z),popupClassName:c()(E,W,V,z),style:K,editable:G,more:Object.assign({icon:null!==(h=null!==(p=null!==(d=null===(u=null===D||void 0===D?void 0:D.more)||void 0===u?void 0:u.icon)&&void 0!==d?d:null===D||void 0===D?void 0:D.moreIcon)&&void 0!==p?p:_)&&void 0!==h?h:r.createElement(FL,null),transitionName:"".concat(Y,"-slide-up")},C),prefixCls:B,animated:q,indicator:$})))};Cz.TabPane=()=>null;const Ez=Cz;var Pz=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 Mz=e=>{var{prefixCls:t,className:n,hoverable:o=!0}=e,i=Pz(e,["prefixCls","className","hoverable"]);const{getPrefixCls:a}=r.useContext(f),l=a("card",t),s=c()("".concat(l,"-grid"),n,{["".concat(l,"-grid-hoverable")]:o});return r.createElement("div",Object.assign({},i,{className:s}))},kz=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 ".concat(yn(o)),color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:"".concat(yn(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorBorderSecondary),borderRadius:"".concat(yn(e.borderRadiusLG)," ").concat(yn(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},Yr),{["\n          > ".concat(n,"-typography,\n          > ").concat(n,"-typography-edit-content\n        ")]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),["".concat(t,"-tabs-top")]:{clear:"both",marginBottom:i,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:"".concat(yn(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorBorderSecondary)}}})},Az=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:o}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:"\n      ".concat(yn(o)," 0 0 0 ").concat(n,",\n      0 ").concat(yn(o)," 0 0 ").concat(n,",\n      ").concat(yn(o)," ").concat(yn(o)," 0 0 ").concat(n,",\n      ").concat(yn(o)," 0 0 0 ").concat(n," inset,\n      0 ").concat(yn(o)," 0 0 ").concat(n," inset;\n    "),transition:"all ".concat(e.motionDurationMid),"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},Iz=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:"".concat(yn(e.lineWidth)," ").concat(e.lineType," ").concat(i),display:"flex",borderRadius:"0 0 ".concat(yn(e.borderRadiusLG)," ").concat(yn(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 ".concat(e.motionDurationMid)},["a:not(".concat(t,"-btn), > ").concat(n)]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:yn(e.fontHeight),transition:"color ".concat(e.motionDurationMid),"&:hover":{color:e.colorPrimary}},["> ".concat(n)]:{fontSize:o,lineHeight:yn(e.calc(o).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:"".concat(yn(e.lineWidth)," ").concat(e.lineType," ").concat(i)}}})},Tz=e=>Object.assign(Object.assign({margin:"".concat(yn(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},Yr),"&-description":{color:e.colorTextDescription}}),jz=e=>{const{componentCls:t,cardPaddingBase:n,colorFillAlter:r}=e;return{["".concat(t,"-head")]:{padding:"0 ".concat(yn(n)),background:r,"&-title":{fontSize:e.fontSize}},["".concat(t,"-body")]:{padding:"".concat(yn(e.padding)," ").concat(yn(n))}}},Lz=e=>{const{componentCls:t}=e;return{overflow:"hidden",["".concat(t,"-body")]:{userSelect:"none"}}},Rz=e=>{const{componentCls:t,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:o,boxShadowTertiary:i,cardPaddingBase:a,extraColor:l}=e;return{[t]:Object.assign(Object.assign({},Ur(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,["&:not(".concat(t,"-bordered)")]:{boxShadow:i},["".concat(t,"-head")]:kz(e),["".concat(t,"-extra")]:{marginInlineStart:"auto",color:l,fontWeight:"normal",fontSize:e.fontSize},["".concat(t,"-body")]:Object.assign({padding:a,borderRadius:"0 0 ".concat(yn(e.borderRadiusLG)," ").concat(yn(e.borderRadiusLG))},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),["".concat(t,"-grid")]:Az(e),["".concat(t,"-cover")]:{"> *":{display:"block",width:"100%",borderRadius:"".concat(yn(e.borderRadiusLG)," ").concat(yn(e.borderRadiusLG)," 0 0")}},["".concat(t,"-actions")]:Iz(e),["".concat(t,"-meta")]:Tz(e)}),["".concat(t,"-bordered")]:{border:"".concat(yn(e.lineWidth)," ").concat(e.lineType," ").concat(o),["".concat(t,"-cover")]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},["".concat(t,"-hoverable")]:{cursor:"pointer",transition:"box-shadow ".concat(e.motionDurationMid,", border-color ").concat(e.motionDurationMid),"&:hover":{borderColor:"transparent",boxShadow:n}},["".concat(t,"-contain-grid")]:{borderRadius:"".concat(yn(e.borderRadiusLG)," ").concat(yn(e.borderRadiusLG)," 0 0 "),["".concat(t,"-body")]:{display:"flex",flexWrap:"wrap"},["&:not(".concat(t,"-loading) ").concat(t,"-body")]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},["".concat(t,"-contain-tabs")]:{["> div".concat(t,"-head")]:{minHeight:0,["".concat(t,"-head-title, ").concat(t,"-extra")]:{paddingTop:r}}},["".concat(t,"-type-inner")]:jz(e),["".concat(t,"-loading")]:Lz(e),["".concat(t,"-rtl")]:{direction:"rtl"}}},Dz=e=>{const{componentCls:t,cardPaddingSM:n,headerHeightSM:r,headerFontSizeSM:o}=e;return{["".concat(t,"-small")]:{["> ".concat(t,"-head")]:{minHeight:r,padding:"0 ".concat(yn(n)),fontSize:o,["> ".concat(t,"-head-wrapper")]:{["> ".concat(t,"-extra")]:{fontSize:e.fontSize}}},["> ".concat(t,"-body")]:{padding:n}},["".concat(t,"-small").concat(t,"-contain-tabs")]:{["> ".concat(t,"-head")]:{["".concat(t,"-head-title, ").concat(t,"-extra")]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},Nz=Ol("Card",(e=>{const t=Ui(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[Rz(t),Dz(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:"".concat(e.paddingSM,"px 0"),tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText})));var Fz=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 Bz=e=>{const{actionClasses:t,actions:n=[],actionStyle:o}=e;return r.createElement("ul",{className:t,style:o},n.map(((e,t)=>{const o="action-".concat(t);return r.createElement("li",{style:{width:"".concat(100/n.length,"%")},key:o},r.createElement("span",null,e))})))},zz=r.forwardRef(((e,t)=>{const{prefixCls:n,className:o,rootClassName:i,style:a,extra:l,headStyle:s={},bodyStyle:u={},title:d,loading:p,bordered:h=!0,size:g,type:v,cover:m,actions:y,tabList:b,children:x,activeTabKey:w,defaultActiveTabKey:S,tabBarExtraContent:O,hoverable:_,tabProps:C={},classNames:E,styles:P}=e,M=Fz(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:k,direction:A,card:I}=r.useContext(f);const T=e=>{var t;return c()(null===(t=null===I||void 0===I?void 0:I.classNames)||void 0===t?void 0:t[e],null===E||void 0===E?void 0:E[e])},j=e=>{var t;return Object.assign(Object.assign({},null===(t=null===I||void 0===I?void 0:I.styles)||void 0===t?void 0:t[e]),null===P||void 0===P?void 0:P[e])},L=r.useMemo((()=>{let e=!1;return r.Children.forEach(x,(t=>{(null===t||void 0===t?void 0:t.type)===Mz&&(e=!0)})),e}),[x]),R=k("card",n),[D,N,F]=Nz(R),B=r.createElement(LE,{loading:!0,active:!0,paragraph:{rows:4},title:!1},x),z=void 0!==w,H=Object.assign(Object.assign({},C),{[z?"activeKey":"defaultActiveKey"]:z?w:S,tabBarExtraContent:O});let W;const V=Dc(g),G=V&&"default"!==V?V:"large",Y=b?r.createElement(Ez,Object.assign({size:G},H,{className:"".concat(R,"-head-tabs"),onChange:t=>{var n;null===(n=e.onTabChange)||void 0===n||n.call(e,t)},items:b.map((e=>{var{tab:t}=e,n=Fz(e,["tab"]);return Object.assign({label:t},n)}))})):null;if(d||l||Y){const e=c()("".concat(R,"-head"),T("header")),t=c()("".concat(R,"-head-title"),T("title")),n=c()("".concat(R,"-extra"),T("extra")),o=Object.assign(Object.assign({},s),j("header"));W=r.createElement("div",{className:e,style:o},r.createElement("div",{className:"".concat(R,"-head-wrapper")},d&&r.createElement("div",{className:t,style:j("title")},d),l&&r.createElement("div",{className:n,style:j("extra")},l)),Y)}const U=c()("".concat(R,"-cover"),T("cover")),X=m?r.createElement("div",{className:U,style:j("cover")},m):null,q=c()("".concat(R,"-body"),T("body")),K=Object.assign(Object.assign({},u),j("body")),$=r.createElement("div",{className:q,style:K},p?B:x),Q=c()("".concat(R,"-actions"),T("actions")),Z=(null===y||void 0===y?void 0:y.length)?r.createElement(Bz,{actionClasses:Q,actionStyle:j("actions"),actions:y}):null,J=hu(M,["onTabChange"]),ee=c()(R,null===I||void 0===I?void 0:I.className,{["".concat(R,"-loading")]:p,["".concat(R,"-bordered")]:h,["".concat(R,"-hoverable")]:_,["".concat(R,"-contain-grid")]:L,["".concat(R,"-contain-tabs")]:null===b||void 0===b?void 0:b.length,["".concat(R,"-").concat(V)]:V,["".concat(R,"-type-").concat(v)]:!!v,["".concat(R,"-rtl")]:"rtl"===A},o,i,N,F),te=Object.assign(Object.assign({},null===I||void 0===I?void 0:I.style),a);return D(r.createElement("div",Object.assign({ref:t},J,{className:ee,style:te}),W,X,$,Z))}));var Hz=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 Wz=e=>{const{prefixCls:t,className:n,avatar:o,title:i,description:a}=e,l=Hz(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:s}=r.useContext(f),u=s("card",t),d=c()("".concat(u,"-meta"),n),p=o?r.createElement("div",{className:"".concat(u,"-meta-avatar")},o):null,h=i?r.createElement("div",{className:"".concat(u,"-meta-title")},i):null,g=a?r.createElement("div",{className:"".concat(u,"-meta-description")},a):null,v=h||g?r.createElement("div",{className:"".concat(u,"-meta-detail")},h,g):null;return r.createElement("div",Object.assign({},l,{className:d}),p,v)},Vz=zz;Vz.Grid=Mz,Vz.Meta=Wz;const Gz=Vz;var Yz=n(627),Uz=n.n(Yz),Xz=n(8836),qz=n.n(Xz),Kz=n(7366),$z=n.n(Kz),Qz=n(8e3),Zz=n.n(Qz),Jz=n(2849),eH=n.n(Jz),tH=n(7301),nH=n.n(tH),rH=n(7879),oH=n.n(rH);Uz().extend(oH()),Uz().extend(nH()),Uz().extend(qz()),Uz().extend($z()),Uz().extend(Zz()),Uz().extend(eH()),Uz().extend((function(e,t){var n=t.prototype,r=n.format;n.format=function(e){var t=(e||"").replace("Wo","wo");return r.bind(this)(t)}}));var iH={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},aH=function(e){return iH[e]||e.split("_")[0]},lH=function(){Md(!1,"Not match any format. Please help to fire a issue about this.")},cH={getNow:function(){var e=Uz()();return"function"===typeof e.tz?e.tz():e},getFixedDate:function(e){return Uz()(e,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(e){return e.endOf("month")},getWeekDay:function(e){var t=e.locale("en");return t.weekday()+t.localeData().firstDayOfWeek()},getYear:function(e){return e.year()},getMonth:function(e){return e.month()},getDate:function(e){return e.date()},getHour:function(e){return e.hour()},getMinute:function(e){return e.minute()},getSecond:function(e){return e.second()},getMillisecond:function(e){return e.millisecond()},addYear:function(e,t){return e.add(t,"year")},addMonth:function(e,t){return e.add(t,"month")},addDate:function(e,t){return e.add(t,"day")},setYear:function(e,t){return e.year(t)},setMonth:function(e,t){return e.month(t)},setDate:function(e,t){return e.date(t)},setHour:function(e,t){return e.hour(t)},setMinute:function(e,t){return e.minute(t)},setSecond:function(e,t){return e.second(t)},setMillisecond:function(e,t){return e.millisecond(t)},isAfter:function(e,t){return e.isAfter(t)},isValidate:function(e){return e.isValid()},locale:{getWeekFirstDay:function(e){return Uz()().locale(aH(e)).localeData().firstDayOfWeek()},getWeekFirstDate:function(e,t){return t.locale(aH(e)).weekday(0)},getWeek:function(e,t){return t.locale(aH(e)).week()},getShortWeekDays:function(e){return Uz()().locale(aH(e)).localeData().weekdaysMin()},getShortMonths:function(e){return Uz()().locale(aH(e)).localeData().monthsShort()},format:function(e,t,n){return t.locale(aH(e)).format(n)},parse:function(e,t,n){for(var r=aH(e),o=0;o<n.length;o+=1){var i=n[o],a=t;if(i.includes("wo")||i.includes("Wo")){for(var l=a.split("-")[0],c=a.split("-")[1],s=Uz()(l,"YYYY").startOf("year").locale(r),u=0;u<=52;u+=1){var d=s.add(u,"week");if(d.format("Wo")===c)return d}return lH(),null}var f=Uz()(a,i,!0).locale(r);if(f.isValid())return f}return t&&lH(),null}}};const sH=cH;const uH={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"};var dH=function(e,t){return r.createElement(xs,qc({},e,{ref:t,icon:uH}))};const fH=r.forwardRef(dH);const pH={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"};var hH=function(e,t){return r.createElement(xs,qc({},e,{ref:t,icon:pH}))};const gH=r.forwardRef(hH);const vH={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"};var mH=function(e,t){return r.createElement(xs,qc({},e,{ref:t,icon:vH}))};const yH=r.forwardRef(mH);function bH(){return bH=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},bH.apply(null,arguments)}function xH(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 wH(e,t){if(e){if("string"==typeof e)return xH(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)?xH(e,t):void 0}}function SH(e){return function(e){if(Array.isArray(e))return xH(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||wH(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.")}()}function OH(e,t){return function(e){if(Array.isArray(e))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,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||wH(e,t)||function(){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 _H(e){return _H="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},_H(e)}function CH(e){var t=function(e,t){if("object"!=_H(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=_H(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==_H(t)?t:String(t)}function EH(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 PH(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?EH(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=CH(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):EH(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function MH(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function kH(e,t){if(e){if("string"===typeof e)return MH(e,t);var n=Object.prototype.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)?MH(e,t):void 0}}function AH(e,t){return function(e){if(Array.isArray(e))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,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||kH(e,t)||function(){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 IH(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function TH(e){return e instanceof HTMLElement||e instanceof SVGElement}function jH(e){var t;return null===e||void 0===e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function LH(e){return function(e){return jH(e)instanceof ShadowRoot}(e)?jH(e):null}function RH(e){var t=r.useRef();t.current=e;var n=r.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 DH=0;var NH=PH({},o).useId;const FH=NH?function(e){var t=NH();return e||t}:function(e){var t=AH(r.useState("ssr-id"),2),n=t[0],o=t[1];return r.useEffect((function(){var e=DH;DH+=1,o("rc_unique_".concat(e))}),[]),e||n};var BH="undefined"!==typeof window&&window.document&&window.document.createElement?r.useLayoutEffect:r.useEffect,zH=function(e,t){var n=r.useRef(!0);BH((function(){return e(n.current)}),t),BH((function(){return n.current=!1,function(){n.current=!0}}),[])};const HH=zH;function WH(){return WH=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},WH.apply(this,arguments)}function VH(e){return VH="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},VH(e)}function GH(e){var t=function(e,t){if("object"!=VH(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=VH(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==VH(t)?t:String(t)}function YH(e,t,n){return(t=GH(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function UH(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 XH(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?UH(Object(n),!0).forEach((function(t){YH(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):UH(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function qH(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function KH(e,t){return function(e){if(Array.isArray(e))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,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"===typeof e)return qH(e,t);var n=Object.prototype.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)?qH(e,t):void 0}}(e,t)||function(){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 $H(e){return function(e){return e instanceof HTMLElement||e instanceof SVGElement}(e)?e:e instanceof r.Component?Nu.findDOMNode(e):null}function QH(e,t){"function"===typeof e?e(t):"object"===VH(e)&&e&&"current"in e&&(e.current=t)}function ZH(e){var t,n,r=(0,N.isMemo)(e)?e.type.type:e.type;return!!("function"!==typeof r||null!==(t=r.prototype)&&void 0!==t&&t.render||r.$$typeof===N.ForwardRef)&&!!("function"!==typeof e||null!==(n=e.prototype)&&void 0!==n&&n.render||e.$$typeof===N.ForwardRef)}var JH=r.createContext({});function eW(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tW(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,GH(r.key),r)}}function nW(e,t,n){return t&&tW(e.prototype,t),n&&tW(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function rW(e,t){return rW=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},rW(e,t)}function oW(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&&rW(e,t)}function iW(e){return iW=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},iW(e)}function aW(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(aW=function(){return!!e})()}function lW(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function cW(e){var t=aW();return function(){var n,r=iW(e);if(t){var o=iW(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===VH(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return lW(e)}(this,n)}}var sW=function(e){oW(n,e);var t=cW(n);function n(){return eW(this,n),t.apply(this,arguments)}return nW(n,[{key:"render",value:function(){return this.props.children}}]),n}(r.Component);const uW=sW;function dW(e){var t=r.useRef(!1),n=KH(r.useState(e),2),o=n[0],i=n[1];return r.useEffect((function(){return t.current=!1,function(){t.current=!0}}),[]),[o,function(e,n){n&&t.current||i(e)}]}var fW="none",pW="appear",hW="enter",gW="leave",vW="none",mW="prepare",yW="start",bW="active",xW="end",wW="prepared";function SW(){return!("undefined"===typeof window||!window.document||!window.document.createElement)}function OW(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 _W=function(e,t){var n={animationend:OW("Animation","AnimationEnd"),transitionend:OW("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}(SW(),"undefined"!==typeof window?window:{}),CW={};if(SW()){var EW=document.createElement("div");CW=EW.style}var PW={};function MW(e){if(PW[e])return PW[e];var t=_W[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 CW)return PW[e]=t[i],PW[e]}return""}var kW=MW("animationend"),AW=MW("transitionend"),IW=!(!kW||!AW),TW=kW||"animationend",jW=AW||"transitionend";function LW(e,t){if(!e)return null;if("object"===VH(e)){var n=t.replace(/-\w/g,(function(e){return e[1].toUpperCase()}));return e[n]}return"".concat(e,"-").concat(t)}const RW=function(e){var t=(0,r.useRef)(),n=(0,r.useRef)(e);n.current=e;var o=r.useCallback((function(e){n.current(e)}),[]);function i(e){e&&(e.removeEventListener(jW,o),e.removeEventListener(TW,o))}return r.useEffect((function(){return function(){i(t.current)}}),[]),[function(e){t.current&&t.current!==e&&i(t.current),e&&e!==t.current&&(e.addEventListener(jW,o),e.addEventListener(TW,o),t.current=e)},i]};const DW=SW()?r.useLayoutEffect:r.useEffect;var NW=function(e){return+setTimeout(e,16)},FW=function(e){return clearTimeout(e)};"undefined"!==typeof window&&"requestAnimationFrame"in window&&(NW=function(e){return window.requestAnimationFrame(e)},FW=function(e){return window.cancelAnimationFrame(e)});var BW=0,zW=new Map;function HW(e){zW.delete(e)}var WW=function(e){var t=BW+=1;return function n(r){if(0===r)HW(t),e();else{var o=NW((function(){n(r-1)}));zW.set(t,o)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};WW.cancel=function(e){var t=zW.get(e);return HW(e),FW(t)};const VW=WW;var GW=[mW,yW,bW,xW],YW=[mW,wW],UW=!1,XW=!0;function qW(e){return e===bW||e===xW}const KW=function(e,t,n){var o=KH(dW(vW),2),i=o[0],a=o[1],l=function(){var e=r.useRef(null);function t(){VW.cancel(e.current)}return r.useEffect((function(){return function(){t()}}),[]),[function n(r){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;t();var i=VW((function(){o<=1?r({isCanceled:function(){return i!==e.current}}):n(r,o-1)}));e.current=i},t]}(),c=KH(l,2),s=c[0],u=c[1];var d=t?YW:GW;return DW((function(){if(i!==vW&&i!==xW){var e=d.indexOf(i),t=d[e+1],r=n(i);r===UW?a(t,!0):t&&s((function(e){function n(){e.isCanceled()||a(t,!0)}!0===r?n():Promise.resolve(r).then(n)}))}}),[e,i]),r.useEffect((function(){return function(){u()}}),[]),[function(){a(mW,!0)},i]};const $W=function(e){var t=e;"object"===VH(e)&&(t=e.transitionSupport);var n=r.forwardRef((function(e,n){var o=e.visible,i=void 0===o||o,a=e.removeOnLeave,l=void 0===a||a,s=e.forceRender,u=e.children,d=e.motionName,f=e.leavedClassName,p=e.eventProps,h=function(e,n){return!(!e.motionName||!t||!1===n)}(e,r.useContext(JH).motion),g=(0,r.useRef)(),v=(0,r.useRef)();var m=function(e,t,n,o){var i=o.motionEnter,a=void 0===i||i,l=o.motionAppear,c=void 0===l||l,s=o.motionLeave,u=void 0===s||s,d=o.motionDeadline,f=o.motionLeaveImmediately,p=o.onAppearPrepare,h=o.onEnterPrepare,g=o.onLeavePrepare,v=o.onAppearStart,m=o.onEnterStart,y=o.onLeaveStart,b=o.onAppearActive,x=o.onEnterActive,w=o.onLeaveActive,S=o.onAppearEnd,O=o.onEnterEnd,_=o.onLeaveEnd,C=o.onVisibleChanged,E=KH(dW(),2),P=E[0],M=E[1],k=KH(dW(fW),2),A=k[0],I=k[1],T=KH(dW(null),2),j=T[0],L=T[1],R=(0,r.useRef)(!1),D=(0,r.useRef)(null);function N(){return n()}var F=(0,r.useRef)(!1);function B(){I(fW,!0),L(null,!0)}function z(e){var t=N();if(!e||e.deadline||e.target===t){var n,r=F.current;A===pW&&r?n=null===S||void 0===S?void 0:S(t,e):A===hW&&r?n=null===O||void 0===O?void 0:O(t,e):A===gW&&r&&(n=null===_||void 0===_?void 0:_(t,e)),A!==fW&&r&&!1!==n&&B()}}var H=KH(RW(z),1)[0],W=function(e){var t,n,r;switch(e){case pW:return YH(t={},mW,p),YH(t,yW,v),YH(t,bW,b),t;case hW:return YH(n={},mW,h),YH(n,yW,m),YH(n,bW,x),n;case gW:return YH(r={},mW,g),YH(r,yW,y),YH(r,bW,w),r;default:return{}}},V=r.useMemo((function(){return W(A)}),[A]),G=KH(KW(A,!e,(function(e){if(e===mW){var t=V[mW];return t?t(N()):UW}var n;return U in V&&L((null===(n=V[U])||void 0===n?void 0:n.call(V,N(),null))||null),U===bW&&(H(N()),d>0&&(clearTimeout(D.current),D.current=setTimeout((function(){z({deadline:!0})}),d))),U===wW&&B(),XW})),2),Y=G[0],U=G[1],X=qW(U);F.current=X,DW((function(){M(t);var n,r=R.current;R.current=!0,!r&&t&&c&&(n=pW),r&&t&&a&&(n=hW),(r&&!t&&u||!r&&f&&!t&&u)&&(n=gW);var o=W(n);n&&(e||o[mW])?(I(n),Y()):I(fW)}),[t]),(0,r.useEffect)((function(){(A===pW&&!c||A===hW&&!a||A===gW&&!u)&&I(fW)}),[c,a,u]),(0,r.useEffect)((function(){return function(){R.current=!1,clearTimeout(D.current)}}),[]);var q=r.useRef(!1);(0,r.useEffect)((function(){P&&(q.current=!0),void 0!==P&&A===fW&&((q.current||P)&&(null===C||void 0===C||C(P)),q.current=!0)}),[P,A]);var K=j;return V[mW]&&U===yW&&(K=XH({transition:"none"},K)),[A,U,K,null!==P&&void 0!==P?P:t]}(h,i,(function(){try{return g.current instanceof HTMLElement?g.current:$H(v.current)}catch(N1){return null}}),e),y=KH(m,4),b=y[0],x=y[1],w=y[2],S=y[3],O=r.useRef(S);S&&(O.current=!0);var _,C=r.useCallback((function(e){g.current=e,QH(n,e)}),[n]),E=XH(XH({},p),{},{visible:i});if(u)if(b===fW)_=S?u(XH({},E),C):!l&&O.current&&f?u(XH(XH({},E),{},{className:f}),C):s||!l&&!f?u(XH(XH({},E),{},{style:{display:"none"}}),C):null;else{var P,M;x===mW?M="prepare":qW(x)?M="active":x===yW&&(M="start");var k=LW(d,"".concat(b,"-").concat(M));_=u(XH(XH({},E),{},{className:c()(LW(d,b),(P={},YH(P,k,k&&M),YH(P,d,"string"===typeof d),P)),style:w}),C)}else _=null;r.isValidElement(_)&&ZH(_)&&(_.ref||(_=r.cloneElement(_,{ref:C})));return r.createElement(uW,{ref:v},_)}));return n.displayName="CSSMotion",n}(IW);function QW(){return QW=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},QW.apply(this,arguments)}function ZW(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var JW="add",eV="keep",tV="remove",nV="removed";function rV(e){var t;return XH(XH({},t=e&&"object"===VH(e)&&"key"in e?e:{key:e}),{},{key:String(t.key)})}function oV(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(rV)}var iV=["component","children","onVisibleChanged","onAllRemoved"],aV=["status"],lV=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];!function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:$W,n=function(e){oW(o,e);var n=cW(o);function o(){var e;eW(this,o);for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return YH(lW(e=n.call.apply(n,[this].concat(r))),"state",{keyEntities:[]}),YH(lW(e),"removeKey",(function(t){var n=e.state.keyEntities.map((function(e){return e.key!==t?e:XH(XH({},e),{},{status:nV})}));return e.setState({keyEntities:n}),n.filter((function(e){return e.status!==nV})).length})),e}return nW(o,[{key:"render",value:function(){var e=this,n=this.state.keyEntities,o=this.props,i=o.component,a=o.children,l=o.onVisibleChanged,c=o.onAllRemoved,s=ZW(o,iV),u=i||r.Fragment,d={};return lV.forEach((function(e){d[e]=s[e],delete s[e]})),delete s.keys,r.createElement(u,s,n.map((function(n,o){var i=n.status,s=ZW(n,aV),u=i===JW||i===eV;return r.createElement(t,QW({},d,{key:s.key,visible:u,eventProps:s,onVisibleChanged:function(t){(null===l||void 0===l||l(t,{key:s.key}),t)||0===e.removeKey(s.key)&&c&&c()}}),(function(e,t){return a(XH(XH({},e),{},{index:o}),t)}))})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.keys,r=t.keyEntities,o=oV(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=oV(e),a=oV(t);i.forEach((function(e){for(var t=!1,i=r;i<o;i+=1){var l=a[i];if(l.key===e.key){r<i&&(n=n.concat(a.slice(r,i).map((function(e){return XH(XH({},e),{},{status:JW})}))),r=i),n.push(XH(XH({},l),{},{status:eV})),r+=1,t=!0;break}}t||n.push(XH(XH({},e),{},{status:tV}))})),r<o&&(n=n.concat(a.slice(r).map((function(e){return XH(XH({},e),{},{status:JW})}))));var l={};return n.forEach((function(e){var t=e.key;l[t]=(l[t]||0)+1})),Object.keys(l).filter((function(e){return l[e]>1})).forEach((function(e){(n=n.filter((function(t){var n=t.key,r=t.status;return n!==e||r!==tV}))).forEach((function(t){t.key===e&&(t.status=eV)}))})),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!==nV||e.status!==tV}))}}}]),o}(r.Component);YH(n,"defaultProps",{component:"div"})}(IW);const cV=$W;function sV(e,t){"function"===typeof e?e(t):"object"===_H(e)&&e&&"current"in e&&(e.current=t)}function uV(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter((function(e){return e}));return r.length<=1?r[0]:function(e){t.forEach((function(t){sV(t,e)}))}}function dV(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e,t,n){var o=r.useRef({});return"value"in o.current&&!n(o.current.condition,t)||(o.current.value=e(),o.current.condition=t),o.current.value}((function(){return uV.apply(void 0,t)}),t,(function(e,t){return e.length!==t.length||e.every((function(e,n){return e!==t[n]}))}))}function fV(e){var t,n,r=(0,N.isMemo)(e)?e.type.type:e.type;return!!("function"!==typeof r||null!==(t=r.prototype)&&void 0!==t&&t.render||r.$$typeof===N.ForwardRef)&&!!("function"!==typeof e||null!==(n=e.prototype)&&void 0!==n&&n.render||e.$$typeof===N.ForwardRef)}function pV(e){var t=e.prefixCls,n=e.align,o=e.arrow,i=e.arrowPos,a=o||{},l=a.className,s=a.content,u=i.x,d=void 0===u?0:u,f=i.y,p=void 0===f?0:f,h=r.useRef();if(!n||!n.points)return null;var g={position:"absolute"};if(!1!==n.autoArrow){var v=n.points[0],m=n.points[1],y=v[0],b=v[1],x=m[0],w=m[1];y!==x&&["t","b"].includes(y)?"t"===y?g.top=0:g.bottom=0:g.top=p,b!==w&&["l","r"].includes(b)?"l"===b?g.left=0:g.right=0:g.left=d}return r.createElement("div",{ref:h,className:c()("".concat(t,"-arrow"),l),style:g},s)}function hV(e){var t=e.prefixCls,n=e.open,o=e.zIndex,i=e.mask,a=e.motion;return i?r.createElement(cV,WH({},a,{motionAppear:!0,visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return r.createElement("div",{style:{zIndex:o},className:c()("".concat(t,"-mask"),n)})})):null}var gV=r.memo((function(e){return e.children}),(function(e,t){return t.cache}));const vV=gV;var mV=r.forwardRef((function(e,t){var n=e.popup,o=e.className,i=e.prefixCls,a=e.style,l=e.target,s=e.onVisibleChanged,u=e.open,d=e.keepDom,f=e.fresh,p=e.onClick,h=e.mask,g=e.arrow,v=e.arrowPos,m=e.align,y=e.motion,b=e.maskMotion,x=e.forceRender,w=e.getPopupContainer,S=e.autoDestroy,O=e.portal,_=e.zIndex,C=e.onMouseEnter,E=e.onMouseLeave,P=e.onPointerEnter,M=e.ready,k=e.offsetX,A=e.offsetY,I=e.offsetR,T=e.offsetB,j=e.onAlign,L=e.onPrepare,R=e.stretch,D=e.targetWidth,N=e.targetHeight,F="function"===typeof n?n():n,B=u||d,z=(null===w||void 0===w?void 0:w.length)>0,H=AH(r.useState(!w||!z),2),W=H[0],V=H[1];if(HH((function(){!W&&z&&l&&V(!0)}),[W,z,l]),!W)return null;var G="auto",Y={left:"-1000vw",top:"-1000vh",right:G,bottom:G};if(M||!u){var U,X=m.points,q=m.dynamicInset||(null===(U=m._experimental)||void 0===U?void 0:U.dynamicInset),K=q&&"r"===X[0][1],$=q&&"b"===X[0][0];K?(Y.right=I,Y.left=G):(Y.left=k,Y.right=G),$?(Y.bottom=T,Y.top=G):(Y.top=A,Y.bottom=G)}var Q={};return R&&(R.includes("height")&&N?Q.height=N:R.includes("minHeight")&&N&&(Q.minHeight=N),R.includes("width")&&D?Q.width=D:R.includes("minWidth")&&D&&(Q.minWidth=D)),u||(Q.pointerEvents="none"),r.createElement(O,{open:x||B,getContainer:w&&function(){return w(l)},autoDestroy:S},r.createElement(hV,{prefixCls:i,open:u,zIndex:_,mask:h,motion:b}),r.createElement(qh,{onResize:j,disabled:!u},(function(e){return r.createElement(cV,WH({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:x,leavedClassName:"".concat(i,"-hidden")},y,{onAppearPrepare:L,onEnterPrepare:L,visible:u,onVisibleChanged:function(e){var t;null===y||void 0===y||null===(t=y.onVisibleChanged)||void 0===t||t.call(y,e),s(e)}}),(function(n,l){var s=n.className,d=n.style,h=c()(i,s,o);return r.createElement("div",{ref:uV(e,t,l),className:h,style:PH(PH(PH(PH({"--arrow-x":"".concat(v.x||0,"px"),"--arrow-y":"".concat(v.y||0,"px")},Y),Q),d),{},{boxSizing:"border-box",zIndex:_},a),onMouseEnter:C,onMouseLeave:E,onPointerEnter:P,onClick:p},g&&r.createElement(pV,{prefixCls:i,arrow:g,arrowPos:v,align:m}),r.createElement(vV,{cache:!u&&!f},F))}))})))}));const yV=mV;var bV=r.forwardRef((function(e,t){var n=e.children,o=e.getTriggerDOMNode,i=fV(n),a=r.useCallback((function(e){sV(t,o?o(e):e)}),[o]),l=dV(a,n.ref);return i?r.cloneElement(n,{ref:l}):n}));const xV=bV;const wV=r.createContext(null);function SV(e){return e?Array.isArray(e)?e:[e]:[]}const OV=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 _V(){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 CV(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function EV(e){return e.ownerDocument.defaultView}function PV(e){for(var t=[],n=null===e||void 0===e?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=EV(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 MV(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function kV(e){return MV(parseFloat(e),0)}function AV(e,t){var n=PH({},e);return(t||[]).forEach((function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=EV(e).getComputedStyle(e),r=t.overflow,o=t.overflowClipMargin,i=t.borderTopWidth,a=t.borderBottomWidth,l=t.borderLeftWidth,c=t.borderRightWidth,s=e.getBoundingClientRect(),u=e.offsetHeight,d=e.clientHeight,f=e.offsetWidth,p=e.clientWidth,h=kV(i),g=kV(a),v=kV(l),m=kV(c),y=MV(Math.round(s.width/f*1e3)/1e3),b=MV(Math.round(s.height/u*1e3)/1e3),x=(f-p-v-m)*y,w=(u-d-h-g)*b,S=h*b,O=g*b,_=v*y,C=m*y,E=0,P=0;if("clip"===r){var M=kV(o);E=M*y,P=M*b}var k=s.x+_-E,A=s.y+S-P,I=k+s.width+2*E-_-C-x,T=A+s.height+2*P-S-O-w;n.left=Math.max(n.left,k),n.top=Math.max(n.top,A),n.right=Math.min(n.right,I),n.bottom=Math.min(n.bottom,T)}})),n}function IV(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 TV(e,t){var n=AH(t||[],2),r=n[0],o=n[1];return[IV(e.width,r),IV(e.height,o)]}function jV(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function LV(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 RV(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("")}function DV(e){return function(e){if(Array.isArray(e))return MH(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||kH(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 NV={},FV=[];function BV(e,t){}function zV(e,t){}function HV(e,t,n){t||NV[n]||(e(!1,n),NV[n]=!0)}function WV(e,t){HV(BV,e,t)}WV.preMessage=function(e){FV.push(e)},WV.resetWarned=function(){NV={}},WV.noteOnce=function(e,t){HV(zV,e,t)};var VV=["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 GV=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Yg,t=r.forwardRef((function(t,n){var o=t.prefixCls,i=void 0===o?"rc-trigger-popup":o,a=t.children,l=t.action,s=void 0===l?"hover":l,u=t.showAction,d=t.hideAction,f=t.popupVisible,p=t.defaultPopupVisible,h=t.onPopupVisibleChange,g=t.afterPopupVisibleChange,v=t.mouseEnterDelay,m=t.mouseLeaveDelay,y=void 0===m?.1:m,b=t.focusDelay,x=t.blurDelay,w=t.mask,S=t.maskClosable,O=void 0===S||S,_=t.getPopupContainer,C=t.forceRender,E=t.autoDestroy,P=t.destroyPopupOnHide,M=t.popup,k=t.popupClassName,A=t.popupStyle,I=t.popupPlacement,T=t.builtinPlacements,j=void 0===T?{}:T,L=t.popupAlign,R=t.zIndex,D=t.stretch,N=t.getPopupClassNameFromAlign,F=t.fresh,B=t.alignPoint,z=t.onPopupClick,H=t.onPopupAlign,W=t.arrow,V=t.popupMotion,G=t.maskMotion,Y=t.popupTransitionName,U=t.popupAnimation,X=t.maskTransitionName,q=t.maskAnimation,K=t.className,$=t.getTriggerDOMNode,Q=IH(t,VV),Z=E||P||!1,J=AH(r.useState(!1),2),ee=J[0],te=J[1];HH((function(){te(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?void 0:e.substr(0,4))}())}),[]);var ne=r.useRef({}),re=r.useContext(wV),oe=r.useMemo((function(){return{registerSubPopup:function(e,t){ne.current[e]=t,null===re||void 0===re||re.registerSubPopup(e,t)}}}),[re]),ie=FH(),ae=AH(r.useState(null),2),le=ae[0],ce=ae[1],se=RH((function(e){TH(e)&&le!==e&&ce(e),null===re||void 0===re||re.registerSubPopup(ie,e)})),ue=AH(r.useState(null),2),de=ue[0],fe=ue[1],pe=r.useRef(null),he=RH((function(e){TH(e)&&de!==e&&(fe(e),pe.current=e)})),ge=r.Children.only(a),ve=(null===ge||void 0===ge?void 0:ge.props)||{},me={},ye=RH((function(e){var t,n,r=de;return(null===r||void 0===r?void 0:r.contains(e))||(null===(t=LH(r))||void 0===t?void 0:t.host)===e||e===r||(null===le||void 0===le?void 0:le.contains(e))||(null===(n=LH(le))||void 0===n?void 0:n.host)===e||e===le||Object.values(ne.current).some((function(t){return(null===t||void 0===t?void 0:t.contains(e))||e===t}))})),be=CV(i,V,U,Y),xe=CV(i,G,q,X),we=AH(r.useState(p||!1),2),Se=we[0],Oe=we[1],_e=null!==f&&void 0!==f?f:Se,Ce=RH((function(e){void 0===f&&Oe(e)}));HH((function(){Oe(f||!1)}),[f]);var Ee=r.useRef(_e);Ee.current=_e;var Pe=r.useRef([]);Pe.current=[];var Me=RH((function(e){var t;Ce(e),(null!==(t=Pe.current[Pe.current.length-1])&&void 0!==t?t:_e)!==e&&(Pe.current.push(e),null===h||void 0===h||h(e))})),ke=r.useRef(),Ae=function(){clearTimeout(ke.current)},Ie=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;Ae(),0===t?Me(e):ke.current=setTimeout((function(){Me(e)}),1e3*t)};r.useEffect((function(){return Ae}),[]);var Te=AH(r.useState(!1),2),je=Te[0],Le=Te[1];HH((function(e){e&&!_e||Le(!0)}),[_e]);var Re=AH(r.useState(null),2),De=Re[0],Ne=Re[1],Fe=AH(r.useState([0,0]),2),Be=Fe[0],ze=Fe[1],He=function(e){ze([e.clientX,e.clientY])},We=function(e,t,n,o,i,a,l){var c=AH(r.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[o]||{}}),2),s=c[0],u=c[1],d=r.useRef(0),f=r.useMemo((function(){return t?PV(t):[]}),[t]),p=r.useRef({});e||(p.current={});var h=RH((function(){if(t&&n&&e){var r,c,s,d=t,h=d.ownerDocument,g=EV(d).getComputedStyle(d),v=g.width,m=g.height,y=g.position,b=d.style.left,x=d.style.top,w=d.style.right,S=d.style.bottom,O=d.style.overflow,_=PH(PH({},i[o]),a),C=h.createElement("div");if(null===(r=d.parentElement)||void 0===r||r.appendChild(C),C.style.left="".concat(d.offsetLeft,"px"),C.style.top="".concat(d.offsetTop,"px"),C.style.position=y,C.style.height="".concat(d.offsetHeight,"px"),C.style.width="".concat(d.offsetWidth,"px"),d.style.left="0",d.style.top="0",d.style.right="auto",d.style.bottom="auto",d.style.overflow="hidden",Array.isArray(n))s={x:n[0],y:n[1],width:0,height:0};else{var E=n.getBoundingClientRect();s={x:E.x,y:E.y,width:E.width,height:E.height}}var P=d.getBoundingClientRect(),M=h.documentElement,k=M.clientWidth,A=M.clientHeight,I=M.scrollWidth,T=M.scrollHeight,j=M.scrollTop,L=M.scrollLeft,R=P.height,D=P.width,N=s.height,F=s.width,B={left:0,top:0,right:k,bottom:A},z={left:-L,top:-j,right:I-L,bottom:T-j},H=_.htmlRegion,W="visible",V="visibleFirst";"scroll"!==H&&H!==V&&(H=W);var G=H===V,Y=AV(z,f),U=AV(B,f),X=H===W?U:Y,q=G?U:X;d.style.left="auto",d.style.top="auto",d.style.right="0",d.style.bottom="0";var K=d.getBoundingClientRect();d.style.left=b,d.style.top=x,d.style.right=w,d.style.bottom=S,d.style.overflow=O,null===(c=d.parentElement)||void 0===c||c.removeChild(C);var $=MV(Math.round(D/parseFloat(v)*1e3)/1e3),Q=MV(Math.round(R/parseFloat(m)*1e3)/1e3);if(0===$||0===Q||TH(n)&&!OV(n))return;var Z=_.offset,J=_.targetOffset,ee=AH(TV(P,Z),2),te=ee[0],ne=ee[1],re=AH(TV(s,J),2),oe=re[0],ie=re[1];s.x-=oe,s.y-=ie;var ae=AH(_.points||[],2),le=ae[0],ce=jV(ae[1]),se=jV(le),ue=LV(s,ce),de=LV(P,se),fe=PH({},_),pe=ue.x-de.x+te,he=ue.y-de.y+ne;function lt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:X,r=P.x+e,o=P.y+t,i=r+D,a=o+R,l=Math.max(r,n.left),c=Math.max(o,n.top),s=Math.min(i,n.right),u=Math.min(a,n.bottom);return Math.max(0,(s-l)*(u-c))}var ge,ve,me,ye,be=lt(pe,he),xe=lt(pe,he,U),we=LV(s,["t","l"]),Se=LV(P,["t","l"]),Oe=LV(s,["b","r"]),_e=LV(P,["b","r"]),Ce=_.overflow||{},Ee=Ce.adjustX,Pe=Ce.adjustY,Me=Ce.shiftX,ke=Ce.shiftY,Ae=function(e){return"boolean"===typeof e?e:e>=0};function ct(){ge=P.y+he,ve=ge+R,me=P.x+pe,ye=me+D}ct();var Ie=Ae(Pe),Te=se[0]===ce[0];if(Ie&&"t"===se[0]&&(ve>q.bottom||p.current.bt)){var je=he;Te?je-=R-N:je=we.y-_e.y-ne;var Le=lt(pe,je),Re=lt(pe,je,U);Le>be||Le===be&&(!G||Re>=xe)?(p.current.bt=!0,he=je,ne=-ne,fe.points=[RV(se,0),RV(ce,0)]):p.current.bt=!1}if(Ie&&"b"===se[0]&&(ge<q.top||p.current.tb)){var De=he;Te?De+=R-N:De=Oe.y-Se.y-ne;var Ne=lt(pe,De),Fe=lt(pe,De,U);Ne>be||Ne===be&&(!G||Fe>=xe)?(p.current.tb=!0,he=De,ne=-ne,fe.points=[RV(se,0),RV(ce,0)]):p.current.tb=!1}var Be=Ae(Ee),ze=se[1]===ce[1];if(Be&&"l"===se[1]&&(ye>q.right||p.current.rl)){var He=pe;ze?He-=D-F:He=we.x-_e.x-te;var We=lt(He,he),Ve=lt(He,he,U);We>be||We===be&&(!G||Ve>=xe)?(p.current.rl=!0,pe=He,te=-te,fe.points=[RV(se,1),RV(ce,1)]):p.current.rl=!1}if(Be&&"r"===se[1]&&(me<q.left||p.current.lr)){var Ge=pe;ze?Ge+=D-F:Ge=Oe.x-Se.x-te;var Ye=lt(Ge,he),Ue=lt(Ge,he,U);Ye>be||Ye===be&&(!G||Ue>=xe)?(p.current.lr=!0,pe=Ge,te=-te,fe.points=[RV(se,1),RV(ce,1)]):p.current.lr=!1}ct();var Xe=!0===Me?0:Me;"number"===typeof Xe&&(me<U.left&&(pe-=me-U.left-te,s.x+F<U.left+Xe&&(pe+=s.x-U.left+F-Xe)),ye>U.right&&(pe-=ye-U.right-te,s.x>U.right-Xe&&(pe+=s.x-U.right+Xe)));var qe=!0===ke?0:ke;"number"===typeof qe&&(ge<U.top&&(he-=ge-U.top-ne,s.y+N<U.top+qe&&(he+=s.y-U.top+N-qe)),ve>U.bottom&&(he-=ve-U.bottom-ne,s.y>U.bottom-qe&&(he+=s.y-U.bottom+qe)));var Ke=P.x+pe,$e=Ke+D,Qe=P.y+he,Ze=Qe+R,Je=s.x,et=Je+F,tt=s.y,nt=tt+N,rt=(Math.max(Ke,Je)+Math.min($e,et))/2-Ke,ot=(Math.max(Qe,tt)+Math.min(Ze,nt))/2-Qe;null===l||void 0===l||l(t,fe);var it=K.right-P.x-(pe+P.width),at=K.bottom-P.y-(he+P.height);u({ready:!0,offsetX:pe/$,offsetY:he/Q,offsetR:it/$,offsetB:at/Q,arrowX:rt/$,arrowY:ot/Q,scaleX:$,scaleY:Q,align:fe})}})),g=function(){u((function(e){return PH(PH({},e),{},{ready:!1})}))};return HH(g,[o]),HH((function(){e||g()}),[e]),[s.ready,s.offsetX,s.offsetY,s.offsetR,s.offsetB,s.arrowX,s.arrowY,s.scaleX,s.scaleY,s.align,function(){d.current+=1;var e=d.current;Promise.resolve().then((function(){d.current===e&&h()}))}]}(_e,le,B?Be:de,I,j,L,H),Ve=AH(We,11),Ge=Ve[0],Ye=Ve[1],Ue=Ve[2],Xe=Ve[3],qe=Ve[4],Ke=Ve[5],$e=Ve[6],Qe=Ve[7],Ze=Ve[8],Je=Ve[9],et=Ve[10],tt=function(e,t,n,o){return r.useMemo((function(){var r=SV(null!==n&&void 0!==n?n:t),i=SV(null!==o&&void 0!==o?o:t),a=new Set(r),l=new Set(i);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),l.has("hover")&&(l.delete("hover"),l.add("click"))),[a,l]}),[e,t,n,o])}(ee,s,u,d),nt=AH(tt,2),rt=nt[0],ot=nt[1],it=rt.has("click"),at=ot.has("click")||ot.has("contextMenu"),lt=RH((function(){je||et()}));!function(e,t,n,r,o){HH((function(){if(e&&t&&n){var i=n,a=PV(t),l=PV(i),c=EV(i),s=new Set([c].concat(DV(a),DV(l)));function u(){r(),o()}return s.forEach((function(e){e.addEventListener("scroll",u,{passive:!0})})),c.addEventListener("resize",u,{passive:!0}),r(),function(){s.forEach((function(e){e.removeEventListener("scroll",u),c.removeEventListener("resize",u)}))}}}),[e,t,n])}(_e,de,le,lt,(function(){Ee.current&&B&&at&&Ie(!1)})),HH((function(){lt()}),[Be,I]),HH((function(){!_e||null!==j&&void 0!==j&&j[I]||lt()}),[JSON.stringify(L)]);var ct=r.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 l,c=i[a];if(_V(null===(l=e[c])||void 0===l?void 0:l.points,o,r))return"".concat(t,"-placement-").concat(c)}return""}(j,i,Je,B);return c()(e,null===N||void 0===N?void 0:N(Je))}),[Je,N,j,i,B]);r.useImperativeHandle(n,(function(){return{nativeElement:pe.current,forceAlign:lt}}));var st=AH(r.useState(0),2),ut=st[0],dt=st[1],ft=AH(r.useState(0),2),pt=ft[0],ht=ft[1],gt=function(){if(D&&de){var e=de.getBoundingClientRect();dt(e.width),ht(e.height)}};function vt(e,t,n,r){me[e]=function(o){var i;null===r||void 0===r||r(o),Ie(t,n);for(var a=arguments.length,l=new Array(a>1?a-1:0),c=1;c<a;c++)l[c-1]=arguments[c];null===(i=ve[e])||void 0===i||i.call.apply(i,[ve,o].concat(l))}}HH((function(){De&&(et(),De(),Ne(null))}),[De]),(it||at)&&(me.onClick=function(e){var t;Ee.current&&at?Ie(!1):!Ee.current&&it&&(He(e),Ie(!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=ve.onClick)||void 0===t||t.call.apply(t,[ve,e].concat(r))}),function(e,t,n,o,i,a,l,c){var s=r.useRef(e);s.current=e,r.useEffect((function(){if(t&&o&&(!i||a)){var e=function(e){var t=e.target;s.current&&!l(t)&&c(!1)},r=EV(o);r.addEventListener("mousedown",e,!0),r.addEventListener("contextmenu",e,!0);var u=LH(n);return u&&(u.addEventListener("mousedown",e,!0),u.addEventListener("contextmenu",e,!0)),function(){r.removeEventListener("mousedown",e,!0),r.removeEventListener("contextmenu",e,!0),u&&(u.removeEventListener("mousedown",e,!0),u.removeEventListener("contextmenu",e,!0))}}}),[t,n,o,i,a])}(_e,at,de,le,w,O,ye,Ie);var mt,yt,bt=rt.has("hover"),xt=ot.has("hover");bt&&(vt("onMouseEnter",!0,v,(function(e){He(e)})),vt("onPointerEnter",!0,v,(function(e){He(e)})),mt=function(e){(_e||je)&&null!==le&&void 0!==le&&le.contains(e.target)&&Ie(!0,v)},B&&(me.onMouseMove=function(e){var t;null===(t=ve.onMouseMove)||void 0===t||t.call(ve,e)})),xt&&(vt("onMouseLeave",!1,y),vt("onPointerLeave",!1,y),yt=function(){Ie(!1,y)}),rt.has("focus")&&vt("onFocus",!0,b),ot.has("focus")&&vt("onBlur",!1,x),rt.has("contextMenu")&&(me.onContextMenu=function(e){var t;Ee.current&&ot.has("contextMenu")?Ie(!1):(He(e),Ie(!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=ve.onContextMenu)||void 0===t||t.call.apply(t,[ve,e].concat(r))}),K&&(me.className=c()(ve.className,K));var wt=PH(PH({},ve),me),St={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach((function(e){Q[e]&&(St[e]=function(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];null===(t=wt[e])||void 0===t||t.call.apply(t,[wt].concat(r)),Q[e].apply(Q,r)})}));var Ot=r.cloneElement(ge,PH(PH({},wt),St)),_t={x:Ke,y:$e},Ct=W?PH({},!0!==W?W:{}):null;return r.createElement(r.Fragment,null,r.createElement(qh,{disabled:!_e,ref:he,onResize:function(){gt(),lt()}},r.createElement(xV,{getTriggerDOMNode:$},Ot)),r.createElement(wV.Provider,{value:oe},r.createElement(yV,{portal:e,ref:se,prefixCls:i,popup:M,className:c()(k,ct),style:A,target:de,onMouseEnter:mt,onMouseLeave:yt,onPointerEnter:mt,zIndex:R,open:_e,keepDom:je,fresh:F,onClick:z,mask:w,motion:be,maskMotion:xe,onVisibleChanged:function(e){Le(!1),et(),null===g||void 0===g||g(e)},onPrepare:function(){return new Promise((function(e){gt(),Ne((function(){return e}))}))},forceRender:C,autoDestroy:Z,getPopupContainer:_,align:Je,arrow:Ct,arrowPos:_t,ready:Ge,offsetX:Ye,offsetY:Ue,offsetR:Xe,offsetB:qe,onAlign:lt,stretch:D,targetWidth:ut/Qe,targetHeight:pt/Ze})))}));return t}(Yg);new Map;function YV(e,t){return void 0!==e?e:t?"bottomRight":"bottomLeft"}function UV(e,t){var n=YV(e,t),r=(null===n||void 0===n?void 0:n.toLowerCase().endsWith("right"))?"insetInlineEnd":"insetInlineStart";return t&&(r=["insetInlineStart","insetInlineEnd"].find((function(e){return e!==r}))),r}const XV=r.createContext(null);var qV={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};const KV=function(e){var t=e.popupElement,n=e.popupStyle,o=e.popupClassName,i=e.popupAlign,a=e.transitionName,l=e.getPopupContainer,s=e.children,u=e.range,d=e.placement,f=e.builtinPlacements,p=void 0===f?qV:f,h=e.direction,g=e.visible,v=e.onClose,m=r.useContext(XV).prefixCls,y="".concat(m,"-dropdown"),b=YV(d,"rtl"===h);return r.createElement(GV,{showAction:[],hideAction:["click"],popupPlacement:b,builtinPlacements:p,prefixCls:y,popupTransitionName:a,popup:t,popupAlign:i,popupVisible:g,popupClassName:c()(o,Eg(Eg({},"".concat(y,"-range"),u),"".concat(y,"-rtl"),"rtl"===h)),popupStyle:n,stretch:"minWidth",getPopupContainer:l,onPopupVisibleChange:function(e){e||v()}},s)};function $V(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"0",r=String(e);r.length<t;)r="".concat(n).concat(r);return r}function QV(e){return null===e||void 0===e?[]:Array.isArray(e)?e:[e]}function ZV(e,t,n){var r=SH(e);return r[t]=n,r}function JV(e,t){var n={};return(t||Object.keys(e)).forEach((function(t){void 0!==e[t]&&(n[t]=e[t])})),n}function eG(e,t,n){if(n)return n;switch(e){case"time":return t.fieldTimeFormat;case"datetime":return t.fieldDateTimeFormat;case"month":return t.fieldMonthFormat;case"year":return t.fieldYearFormat;case"quarter":return t.fieldQuarterFormat;case"week":return t.fieldWeekFormat;default:return t.fieldDateFormat}}function tG(e,t,n){var r=void 0!==n?n:t[t.length-1],o=t.find((function(t){return e[t]}));return r!==o?e[o]:void 0}function nG(e){return JV(e,["placement","builtinPlacements","popupAlign","getPopupContainer","transitionName","direction"])}function rG(e,t,n,o){var i=r.useMemo((function(){return e||function(e,r){var o=e;return t&&"date"===r.type?t(o,r.today):n&&"month"===r.type?n(o,r.locale):r.originNode}}),[e,n,t]),a=r.useCallback((function(e,t){return i(e,Mg(Mg({},t),{},{range:o}))}),[i,o]);return a}function oG(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=OH(r.useState([!1,!1]),2),i=o[0],a=o[1],l=r.useMemo((function(){return i.map((function(r,o){if(r)return!0;var i=e[o];return!!i&&(!n[o]&&!i||!(!i||!t(i,{activeIndex:o})))}))}),[e,i,t,n]);return[l,function(e,t){a((function(n){return ZV(n,t,e)}))}]}function iG(e,t,n,r,o){var i="",a=[];return e&&a.push(o?"hh":"HH"),t&&a.push("mm"),n&&a.push("ss"),i=a.join(":"),r&&(i+=".SSS"),o&&(i+=" A"),i}function aG(e,t){var n=t.showHour,o=t.showMinute,i=t.showSecond,a=t.showMillisecond,l=t.use12Hours;return r.useMemo((function(){return function(e,t,n,r,o,i){var a=e.fieldDateTimeFormat,l=e.fieldDateFormat,c=e.fieldTimeFormat,s=e.fieldMonthFormat,u=e.fieldYearFormat,d=e.fieldWeekFormat,f=e.fieldQuarterFormat,p=e.yearFormat,h=e.cellYearFormat,g=e.cellQuarterFormat,v=e.dayFormat,m=e.cellDateFormat,y=iG(t,n,r,o,i);return Mg(Mg({},e),{},{fieldDateTimeFormat:a||"YYYY-MM-DD ".concat(y),fieldDateFormat:l||"YYYY-MM-DD",fieldTimeFormat:c||y,fieldMonthFormat:s||"YYYY-MM",fieldYearFormat:u||"YYYY",fieldWeekFormat:d||"gggg-wo",fieldQuarterFormat:f||"YYYY-[Q]Q",yearFormat:p||"YYYY",cellYearFormat:h||"YYYY",cellQuarterFormat:g||"[Q]Q",cellDateFormat:m||v||"D"})}(e,n,o,i,a,l)}),[e,n,o,i,a,l])}function lG(e,t,n){return null!==n&&void 0!==n?n:t.some((function(t){return e.includes(t)}))}var cG=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function sG(e){return e&&"string"===typeof e}function uG(e,t,n,r){return[e,t,n,r].some((function(e){return void 0!==e}))}function dG(e,t,n,r,o){var i=t,a=n,l=r;if(e||i||a||l||o){if(e){var c,s,u,d=[i,a,l].some((function(e){return!1===e})),f=[i,a,l].some((function(e){return!0===e})),p=!!d||!f;i=null!==(c=i)&&void 0!==c?c:p,a=null!==(s=a)&&void 0!==s?s:p,l=null!==(u=l)&&void 0!==u?u:p}}else i=!0,a=!0,l=!0;return[i,a,l,o]}function fG(e){var t=e.showTime,n=function(e){var t=JV(e,cG),n=e.format,r=e.picker,o=null;return n&&(o=n,Array.isArray(o)&&(o=o[0]),o="object"===_g(o)?o.format:o),"time"===r&&(t.format=o),[t,o]}(e),r=OH(n,2),o=r[0],i=r[1],a=t&&"object"===_g(t)?t:{},l=Mg(Mg({defaultOpenValue:a.defaultOpenValue||a.defaultValue},o),a),c=l.showMillisecond,s=l.showHour,u=l.showMinute,d=l.showSecond,f=OH(dG(uG(s,u,d,c),s,u,d,c),3);return s=f[0],u=f[1],d=f[2],[l,Mg(Mg({},l),{},{showHour:s,showMinute:u,showSecond:d,showMillisecond:c}),l.format,i]}function pG(e,t,n,r,o){if("datetime"===e||"time"===e){for(var i=r,a=eG(e,o,null),l=[t,n],c=0;c<l.length;c+=1){var s=QV(l[c])[0];if(sG(s)){a=s;break}}var u=i.showHour,d=i.showMinute,f=i.showSecond,p=i.showMillisecond,h=lG(a,["a","A","LT","LLL","LTS"],i.use12Hours),g=uG(u,d,f,p);g||(u=lG(a,["H","h","k","LT","LLL"]),d=lG(a,["m","LT","LLL"]),f=lG(a,["s","LTS"]),p=lG(a,["SSS"]));var v=OH(dG(g,u,d,f,p),3);u=v[0],d=v[1],f=v[2];var m=t||iG(u,d,f,p,h);return Mg(Mg({},i),{},{format:m,showHour:u,showMinute:d,showSecond:f,showMillisecond:p,use12Hours:h})}return null}function hG(e,t,n){return!1===t?null:(t&&"object"===_g(t)?t:{}).clearIcon||n||r.createElement("span",{className:"".concat(e,"-clear-btn")})}var gG=7;function vG(e,t,n){return!e&&!t||e===t||!(!e||!t)&&n()}function mG(e,t,n){return vG(t,n,(function(){return Math.floor(e.getYear(t)/10)===Math.floor(e.getYear(n)/10)}))}function yG(e,t,n){return vG(t,n,(function(){return e.getYear(t)===e.getYear(n)}))}function bG(e,t){return Math.floor(e.getMonth(t)/3)+1}function xG(e,t,n){return vG(t,n,(function(){return yG(e,t,n)&&e.getMonth(t)===e.getMonth(n)}))}function wG(e,t,n){return vG(t,n,(function(){return yG(e,t,n)&&xG(e,t,n)&&e.getDate(t)===e.getDate(n)}))}function SG(e,t,n){return vG(t,n,(function(){return e.getHour(t)===e.getHour(n)&&e.getMinute(t)===e.getMinute(n)&&e.getSecond(t)===e.getSecond(n)}))}function OG(e,t,n){return vG(t,n,(function(){return wG(e,t,n)&&SG(e,t,n)&&e.getMillisecond(t)===e.getMillisecond(n)}))}function _G(e,t,n,r){return vG(n,r,(function(){var o=e.locale.getWeekFirstDate(t,n),i=e.locale.getWeekFirstDate(t,r);return yG(e,o,i)&&e.locale.getWeek(t,n)===e.locale.getWeek(t,r)}))}function CG(e,t,n,r,o){switch(o){case"date":return wG(e,n,r);case"week":return _G(e,t.locale,n,r);case"month":return xG(e,n,r);case"quarter":return function(e,t,n){return vG(t,n,(function(){return yG(e,t,n)&&bG(e,t)===bG(e,n)}))}(e,n,r);case"year":return yG(e,n,r);case"decade":return mG(e,n,r);case"time":return SG(e,n,r);default:return OG(e,n,r)}}function EG(e,t,n,r){return!!(t&&n&&r)&&(e.isAfter(r,t)&&e.isAfter(n,r))}function PG(e,t,n,r,o){return!!CG(e,t,n,r,o)||e.isAfter(n,r)}function MG(e,t){var n=t.generateConfig,r=t.locale,o=t.format;return e?"function"===typeof o?o(e):n.locale.format(r.locale,e,o):""}function kG(e,t,n){var r=t,o=["getHour","getMinute","getSecond","getMillisecond"];return["setHour","setMinute","setSecond","setMillisecond"].forEach((function(t,i){r=n?e[t](r,e[o[i]](n)):e[t](r,0)})),r}function AG(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=r.useMemo((function(){var n=e?QV(e):e;return t&&n&&(n[1]=n[1]||n[0]),n}),[e,t]);return n}function IG(e,t){var n=e.generateConfig,o=e.locale,i=e.picker,a=void 0===i?"date":i,l=e.prefixCls,c=void 0===l?"rc-picker":l,s=e.styles,u=void 0===s?{}:s,d=e.classNames,f=void 0===d?{}:d,p=e.order,h=void 0===p||p,g=e.components,v=void 0===g?{}:g,m=e.inputRender,y=e.allowClear,b=e.clearIcon,x=e.needConfirm,w=e.multiple,S=e.format,O=e.inputReadOnly,_=e.disabledDate,C=e.minDate,E=e.maxDate,P=e.showTime,M=e.value,k=e.defaultValue,A=e.pickerValue,I=e.defaultPickerValue,T=AG(M),j=AG(k),L=AG(A),R=AG(I),D="date"===a&&P?"datetime":a,N="time"===D||"datetime"===D,F=N||w,B=null!==x&&void 0!==x?x:N,z=OH(fG(e),4),H=z[0],W=z[1],V=z[2],G=z[3],Y=aG(o,W),U=r.useMemo((function(){return pG(D,V,G,H,Y)}),[D,V,G,H,Y]);var X=r.useMemo((function(){return Mg(Mg({},e),{},{prefixCls:c,locale:Y,picker:a,styles:u,classNames:f,order:h,components:Mg({input:m},v),clearIcon:hG(c,y,b),showTime:U,value:T,defaultValue:j,pickerValue:L,defaultPickerValue:R},null===t||void 0===t?void 0:t())}),[e]),q=function(e,t,n){return r.useMemo((function(){var r=QV(eG(e,t,n)),o=r[0],i="object"===_g(o)&&"mask"===o.type?o.format:null;return[r.map((function(e){return"string"===typeof e||"function"===typeof e?e:e.format})),i]}),[e,t,n])}(D,Y,S),K=OH(q,2),$=K[0],Q=K[1],Z=function(e,t,n){return!("function"!==typeof e[0]&&!n)||t}($,O,w),J=function(e,t,n,r,o){var i=Ns((function(i,a){return!(!n||!n(i,a))||!(!r||!e.isAfter(r,i)||CG(e,t,r,i,a.type))||!(!o||!e.isAfter(i,o)||CG(e,t,o,i,a.type))}));return i}(n,o,_,C,E),ee=function(e,t,n,r){var o=Ns((function(o,i){var a=Mg({type:t},i);if(delete a.activeIndex,!e.isValidate(o)||n&&n(o,a))return!0;if(("date"===t||"time"===t)&&r){var l,c=i&&1===i.activeIndex?"end":"start",s=(null===(l=r.disabledTime)||void 0===l?void 0:l.call(r,o,c,{from:a.from}))||{},u=s.disabledHours,d=s.disabledMinutes,f=s.disabledSeconds,p=s.disabledMilliseconds,h=r.disabledHours,g=r.disabledMinutes,v=r.disabledSeconds,m=u||h,y=d||g,b=f||v,x=e.getHour(o),w=e.getMinute(o),S=e.getSecond(o),O=e.getMillisecond(o);if(m&&m().includes(x))return!0;if(y&&y(x).includes(w))return!0;if(b&&b(x,w).includes(S))return!0;if(p&&p(x,w,S).includes(O))return!0}return!1}));return o}(n,a,J,U);return[r.useMemo((function(){return Mg(Mg({},X),{},{needConfirm:B,inputReadOnly:Z,disabledDate:J})}),[X,B,Z,J]),D,F,$,Q,ee]}function TG(e,t){var n=arguments.length>3?arguments[3]:void 0,o=function(e,t,n){var o=OH(pd(t,{value:e}),2),i=o[0],a=o[1],l=r.useRef(e),c=r.useRef(),s=function(){eu.cancel(c.current)},u=Ns((function(){a(l.current),n&&i!==l.current&&n(l.current)})),d=Ns((function(e,t){s(),l.current=e,e||t?u():c.current=eu(u)}));return r.useEffect((function(){return s}),[]),[i,d]}(!(arguments.length>2&&void 0!==arguments[2]?arguments[2]:[]).every((function(e){return e}))&&e,t||!1,n),i=OH(o,2),a=i[0],l=i[1];return[a,function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.inherit&&!a||l(e,t.force)}]}function jG(e){var t=r.useRef();return r.useImperativeHandle(e,(function(){var e;return{nativeElement:null===(e=t.current)||void 0===e?void 0:e.nativeElement,focus:function(e){var n;null===(n=t.current)||void 0===n||n.focus(e)},blur:function(){var e;null===(e=t.current)||void 0===e||e.blur()}}})),t}function LG(e,t){return r.useMemo((function(){return e||(t?(kd(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(t).map((function(e){var t=OH(e,2);return{label:t[0],value:t[1]}}))):[])}),[e,t])}function RG(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,o=r.useRef(t);o.current=t,sd((function(){if(!e){var t=eu((function(){o.current(e)}),n);return function(){eu.cancel(t)}}o.current(e)}),[e])}function DG(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=OH(r.useState(0),2),i=o[0],a=o[1],l=OH(r.useState(!1),2),c=l[0],s=l[1],u=r.useRef([]),d=r.useRef(null);return RG(c||n,(function(){c||(u.current=[])})),r.useEffect((function(){c&&u.current.push(i)}),[c,i]),[c,function(e){s(e)},function(e){return e&&(d.current=e),d.current},i,a,function(n){var r=u.current,o=new Set(r.filter((function(e){return n[e]||t[e]}))),i=0===r[r.length-1]?1:0;return o.size>=2||e[i]?null:i},u.current]}function NG(e,t,n,r){switch(t){case"date":case"week":return e.addMonth(n,r);case"month":case"quarter":return e.addYear(n,r);case"year":return e.addYear(n,10*r);case"decade":return e.addYear(n,100*r);default:return n}}var FG=[];function BG(e,t,n,o,i,a,l,c){var s=arguments.length>8&&void 0!==arguments[8]?arguments[8]:FG,u=arguments.length>10&&void 0!==arguments[10]?arguments[10]:FG,d=arguments.length>11?arguments[11]:void 0,f=arguments.length>12?arguments[12]:void 0,p=arguments.length>13?arguments[13]:void 0,h="time"===l,g=a||0,v=function(t){var r=e.getNow();return h&&(r=kG(e,r)),s[t]||n[t]||r},m=OH(arguments.length>9&&void 0!==arguments[9]?arguments[9]:FG,2),y=m[0],b=m[1],x=OH(pd((function(){return v(0)}),{value:y}),2),w=x[0],S=x[1],O=OH(pd((function(){return v(1)}),{value:b}),2),_=O[0],C=O[1],E=r.useMemo((function(){var t=[w,_][g];return h?t:kG(e,t,u[g])}),[h,w,_,g,e,u]),P=function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"panel";(0,[S,C][g])(n);var i=[w,_];i[g]=n,!d||CG(e,t,w,i[0],l)&&CG(e,t,_,i[1],l)||d(i,{source:r,range:1===g?"end":"start",mode:o})},M=r.useRef(null);return ud((function(){if(i&&!s[g]){var r=h?null:e.getNow();if(null!==M.current&&M.current!==g?r=[w,_][1^g]:n[g]?r=0===g?n[0]:function(n,r){if(c){var o={date:"month",week:"month",month:"year",quarter:"year"}[l];if(o&&!CG(e,t,n,r,o))return NG(e,l,r,-1);if("year"===l&&n&&Math.floor(e.getYear(n)/10)!==Math.floor(e.getYear(r)/10))return NG(e,l,r,-1)}return r}(n[0],n[1]):n[1^g]&&(r=n[1^g]),r){f&&e.isAfter(f,r)&&(r=f);var o=c?NG(e,l,r,1):r;p&&e.isAfter(o,p)&&(r=c?NG(e,l,p,-1):p),P(r,"reset")}}}),[i,g,n[g]]),r.useEffect((function(){M.current=i?g:null}),[i,g]),ud((function(){i&&s&&s[g]&&P(s[g],"reset")}),[i,g]),[E,P]}function zG(e,t){var n=r.useRef(e),o=OH(r.useState({}),2)[1],i=function(e){return e&&void 0!==t?t:n.current};return[i,function(e){n.current=e,o({})},i(!0)]}var HG=[];function WG(e,t,n){return[function(r){return r.map((function(r){return MG(r,{generateConfig:e,locale:t,format:n[0]})}))},function(t,n){for(var r=Math.max(t.length,n.length),o=-1,i=0;i<r;i+=1){var a=t[i]||null,l=n[i]||null;if(a!==l&&!OG(e,a,l)){o=i;break}}return[o<0,0!==o]}]}function VG(e,t){return SH(e).sort((function(e,n){return t.isAfter(e,n)?1:-1}))}function GG(e,t,n,o,i,a,l,c,s){var u=OH(pd(a,{value:l}),2),d=u[0],f=u[1],p=d||HG,h=function(e){var t=OH(zG(e),2),n=t[0],o=t[1],i=Ns((function(){o(e)}));return r.useEffect((function(){i()}),[e]),[n,o]}(p),g=OH(h,2),v=g[0],m=g[1],y=OH(WG(e,t,n),2),b=y[0],x=y[1],w=Ns((function(t){var n=SH(t);if(o)for(var r=0;r<2;r+=1)n[r]=n[r]||null;else i&&(n=VG(n.filter((function(e){return e})),e));var a=OH(x(v(),n),2),l=a[0],s=a[1];if(!l&&(m(n),c)){var u=b(n);c(n,u,{range:s?"end":"start"})}}));return[p,f,v,w,function(){s&&s(v())}]}function YG(e,t,n,o,i,a,l,c,s,u){var d=e.generateConfig,f=e.locale,p=e.picker,h=e.onChange,g=e.allowEmpty,v=e.order,m=!a.some((function(e){return e}))&&v,y=OH(WG(d,f,l),2),b=y[0],x=y[1],w=OH(zG(t),2),S=w[0],O=w[1],_=Ns((function(){O(t)}));r.useEffect((function(){_()}),[t]);var C=Ns((function(e){var r=null===e,o=SH(e||S());if(r)for(var l=Math.max(a.length,o.length),c=0;c<l;c+=1)a[c]||(o[c]=null);m&&o[0]&&o[1]&&(o=VG(o,d)),i(o);var s=OH(o,2),y=s[0],w=s[1],O=!y,_=!w,C=!g||(!O||g[0])&&(!_||g[1]),E=!v||O||_||CG(d,f,y,w,p)||d.isAfter(w,y),P=(!y||!u(y,{activeIndex:0}))&&(!w||!u(w,{from:y,activeIndex:1})),M=r||C&&E&&P;if(M){n(o);var k=OH(x(o,t),1)[0];h&&!k&&h(r&&o.every((function(e){return!e}))?null:o,b(o))}return M})),E=Ns((function(e,t){var n=ZV(S(),e,o()[e]);O(n),t&&C()})),P=!c&&!s;return RG(!P,(function(){P&&(C(),i(t),_())}),2),[E,C]}function UG(e,t,n,r,o){return("date"===t||"time"===t)&&(void 0!==n?n:void 0!==r?r:!o&&("date"===e||"time"===e))}function XG(){return[]}function qG(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:2,a=[],l=n>=1?0|n:1,c=e;c<=t;c+=l){var s=o.includes(c);s&&r||a.push({label:$V(c,i),value:c,disabled:s})}return a}function KG(e){var t=arguments.length>2?arguments[2]:void 0,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})||{},o=n.use12Hours,i=n.hourStep,a=void 0===i?1:i,l=n.minuteStep,c=void 0===l?1:l,s=n.secondStep,u=void 0===s?1:s,d=n.millisecondStep,f=void 0===d?100:d,p=n.hideDisabledOptions,h=n.disabledTime,g=n.disabledHours,v=n.disabledMinutes,m=n.disabledSeconds,y=r.useMemo((function(){return t||e.getNow()}),[t,e]),b=r.useCallback((function(e){var t=(null===h||void 0===h?void 0:h(e))||{};return[t.disabledHours||g||XG,t.disabledMinutes||v||XG,t.disabledSeconds||m||XG,t.disabledMilliseconds||XG]}),[h,g,v,m]),x=OH(r.useMemo((function(){return b(y)}),[y,b]),4),w=x[0],S=x[1],O=x[2],_=x[3],C=r.useCallback((function(e,t,n,r){var i=qG(0,23,a,p,e()),l=o?i.map((function(e){return Mg(Mg({},e),{},{label:$V(e.value%12||12,2)})})):i;return[l,function(e){return qG(0,59,c,p,t(e))},function(e,t){return qG(0,59,u,p,n(e,t))},function(e,t,n){return qG(0,999,f,p,r(e,t,n),3)}]}),[p,a,o,f,c,u]),E=OH(r.useMemo((function(){return C(w,S,O,_)}),[C,w,S,O,_]),4),P=E[0],M=E[1],k=E[2],A=E[3];return[function(t,n){var r=function(){return P},o=M,i=k,a=A;if(n){var l=OH(b(n),4),c=l[0],s=l[1],u=l[2],d=l[3],f=OH(C(c,s,u,d),4),p=f[0];r=function(){return p},o=f[1],i=f[2],a=f[3]}var h=function(e,t,n,r,o,i){var a=e;function l(e,t,n){var r=i[e](a),o=n.find((function(e){return e.value===r}));if(!o||o.disabled){var l=n.filter((function(e){return!e.disabled})),c=SH(l).reverse().find((function(e){return e.value<=r}))||l[0];c&&(r=c.value,a=i[t](a,r))}return r}var c=l("getHour","setHour",t()),s=l("getMinute","setMinute",n(c)),u=l("getSecond","setSecond",r(c,s));return l("getMillisecond","setMillisecond",o(c,s,u)),a}(t,r,o,i,a,e);return h},P,M,k,A]}function $G(e){var t=e.mode,n=e.internalMode,o=e.renderExtraFooter,i=e.showNow,a=e.showTime,l=e.onSubmit,s=e.onNow,u=e.invalid,d=e.needConfirm,f=e.generateConfig,p=e.disabledDate,h=r.useContext(XV),g=h.prefixCls,v=h.locale,m=h.button,y=void 0===m?"button":m,b=f.getNow(),x=OH(KG(f,a,b),1)[0],w=null===o||void 0===o?void 0:o(t),S=p(b,{type:t}),O="".concat(g,"-now"),_="".concat(O,"-btn"),C=i&&r.createElement("li",{className:O},r.createElement("a",{className:c()(_,S&&"".concat(_,"-disabled")),"aria-disabled":S,onClick:function(){if(!S){var e=x(b);s(e)}}},"date"===n?v.today:v.now)),E=d&&r.createElement("li",{className:"".concat(g,"-ok")},r.createElement(y,{disabled:u,onClick:l},v.ok)),P=(C||E)&&r.createElement("ul",{className:"".concat(g,"-ranges")},C,E);return w||P?r.createElement("div",{className:"".concat(g,"-footer")},w&&r.createElement("div",{className:"".concat(g,"-footer-extra")},w),P):null}function QG(e,t,n){return function(r,o){var i=r.findIndex((function(r){return CG(e,t,r,o,n)}));if(-1===i)return[].concat(SH(r),[o]);var a=SH(r);return a.splice(i,1),a}}var ZG=r.createContext(null);function JG(){return r.useContext(ZG)}function eY(e,t){var n=e.prefixCls,r=e.generateConfig,o=e.locale,i=e.disabledDate,a=e.minDate,l=e.maxDate,c=e.cellRender,s=e.hoverValue,u=e.hoverRangeValue,d=e.onHover,f=e.values,p=e.pickerValue,h=e.onSelect,g=e.prevIcon,v=e.nextIcon,m=e.superPrevIcon,y=e.superNextIcon,b=r.getNow();return[{now:b,values:f,pickerValue:p,prefixCls:n,disabledDate:i,minDate:a,maxDate:l,cellRender:c,hoverValue:s,hoverRangeValue:u,onHover:d,locale:o,generateConfig:r,onSelect:h,panelType:t,prevIcon:g,nextIcon:v,superPrevIcon:m,superNextIcon:y},b]}var tY=r.createContext({});function nY(e){for(var t=e.rowNum,n=e.colNum,o=e.baseDate,i=e.getCellDate,a=e.prefixColumn,l=e.rowClassName,s=e.titleFormat,u=e.getCellText,d=e.getCellClassName,f=e.headerCells,p=e.cellSelection,h=void 0===p||p,g=e.disabledDate,v=JG(),m=v.prefixCls,y=v.panelType,b=v.now,x=v.disabledDate,w=v.cellRender,S=v.onHover,O=v.hoverValue,_=v.hoverRangeValue,C=v.generateConfig,E=v.values,P=v.locale,M=v.onSelect,k=g||x,A="".concat(m,"-cell"),I=r.useContext(tY).onCellDblClick,T=function(e){return E.some((function(t){return t&&CG(C,P,e,t,y)}))},j=[],L=0;L<t;L+=1){for(var R=[],D=void 0,N=function(){var e=i(o,L*n+F),t=null===k||void 0===k?void 0:k(e,{type:y});0===F&&(D=e,a&&R.push(a(D)));var l=!1,f=!1,p=!1;if(h&&_){var g=OH(_,2),v=g[0],x=g[1];l=EG(C,v,x,e),f=CG(C,P,e,v,y),p=CG(C,P,e,x,y)}var E=s?MG(e,{locale:P,format:s,generateConfig:C}):void 0,j=r.createElement("div",{className:"".concat(A,"-inner")},u(e));R.push(r.createElement("td",{key:F,title:E,className:c()(A,Mg(Eg(Eg(Eg(Eg(Eg(Eg({},"".concat(A,"-disabled"),t),"".concat(A,"-hover"),(O||[]).some((function(t){return CG(C,P,e,t,y)}))),"".concat(A,"-in-range"),l&&!f&&!p),"".concat(A,"-range-start"),f),"".concat(A,"-range-end"),p),"".concat(m,"-cell-selected"),!_&&"week"!==y&&T(e)),d(e))),onClick:function(){t||M(e)},onDoubleClick:function(){!t&&I&&I()},onMouseEnter:function(){t||null===S||void 0===S||S(e)},onMouseLeave:function(){t||null===S||void 0===S||S(null)}},w?w(e,{prefixCls:m,originNode:j,today:b,type:y,locale:P}):j))},F=0;F<n;F+=1)N();j.push(r.createElement("tr",{key:L,className:null===l||void 0===l?void 0:l(D)},R))}return r.createElement("div",{className:"".concat(m,"-body")},r.createElement("table",{className:"".concat(m,"-content")},f&&r.createElement("thead",null,r.createElement("tr",null,f)),r.createElement("tbody",null,j)))}var rY={visibility:"hidden"};const oY=function(e){var t=e.offset,n=e.superOffset,o=e.onChange,i=e.getStart,a=e.getEnd,l=e.children,s=JG(),u=s.prefixCls,d=s.prevIcon,f=void 0===d?"\u2039":d,p=s.nextIcon,h=void 0===p?"\u203a":p,g=s.superPrevIcon,v=void 0===g?"\xab":g,m=s.superNextIcon,y=void 0===m?"\xbb":m,b=s.minDate,x=s.maxDate,w=s.generateConfig,S=s.locale,O=s.pickerValue,_=s.panelType,C="".concat(u,"-header"),E=r.useContext(tY),P=E.hidePrev,M=E.hideNext,k=E.hideHeader,A=r.useMemo((function(){if(!b||!t||!a)return!1;var e=a(t(-1,O));return!PG(w,S,e,b,_)}),[b,t,O,a,w,S,_]),I=r.useMemo((function(){if(!b||!n||!a)return!1;var e=a(n(-1,O));return!PG(w,S,e,b,_)}),[b,n,O,a,w,S,_]),T=r.useMemo((function(){if(!x||!t||!i)return!1;var e=i(t(1,O));return!PG(w,S,x,e,_)}),[x,t,O,i,w,S,_]),j=r.useMemo((function(){if(!x||!n||!i)return!1;var e=i(n(1,O));return!PG(w,S,x,e,_)}),[x,n,O,i,w,S,_]),L=function(e){t&&o(t(e,O))},R=function(e){n&&o(n(e,O))};if(k)return null;var D="".concat(C,"-prev-btn"),N="".concat(C,"-next-btn"),F="".concat(C,"-super-prev-btn"),B="".concat(C,"-super-next-btn");return r.createElement("div",{className:C},n&&r.createElement("button",{type:"button","aria-label":"super-prev-year",onClick:function(){return R(-1)},tabIndex:-1,className:c()(F,I&&"".concat(F,"-disabled")),disabled:I,style:P?rY:{}},v),t&&r.createElement("button",{type:"button","aria-label":"prev-year",onClick:function(){return L(-1)},tabIndex:-1,className:c()(D,A&&"".concat(D,"-disabled")),disabled:A,style:P?rY:{}},f),r.createElement("div",{className:"".concat(C,"-view")},l),t&&r.createElement("button",{type:"button","aria-label":"next-year",onClick:function(){return L(1)},tabIndex:-1,className:c()(N,T&&"".concat(N,"-disabled")),disabled:T,style:M?rY:{}},h),n&&r.createElement("button",{type:"button","aria-label":"super-next-year",onClick:function(){return R(1)},tabIndex:-1,className:c()(B,j&&"".concat(B,"-disabled")),disabled:j,style:M?rY:{}},y))};function iY(e){var t=e.prefixCls,n=e.panelName,o=void 0===n?"date":n,i=e.locale,a=e.generateConfig,l=e.pickerValue,s=e.onPickerValueChange,u=e.onModeChange,d=e.mode,f=void 0===d?"date":d,p=e.disabledDate,h=e.onSelect,g=e.onHover,v=e.showWeek,m="".concat(t,"-").concat(o,"-panel"),y="".concat(t,"-cell"),b="week"===f,x=OH(eY(e,f),2),w=x[0],S=x[1],O=a.locale.getWeekFirstDay(i.locale),_=a.setDate(l,1),C=function(e,t,n){var r=t.locale.getWeekFirstDay(e),o=t.setDate(n,1),i=t.getWeekDay(o),a=t.addDate(o,r-i);return t.getMonth(a)===t.getMonth(n)&&t.getDate(a)>1&&(a=t.addDate(a,-7)),a}(i.locale,a,_),E=a.getMonth(l),P=(void 0===v?b:v)?function(e){var t=null===p||void 0===p?void 0:p(e,{type:"week"});return r.createElement("td",{key:"week",className:c()(y,"".concat(y,"-week"),Eg({},"".concat(y,"-disabled"),t)),onClick:function(){t||h(e)},onMouseEnter:function(){t||null===g||void 0===g||g(e)},onMouseLeave:function(){t||null===g||void 0===g||g(null)}},r.createElement("div",{className:"".concat(y,"-inner")},a.locale.getWeek(i.locale,e)))}:null,M=[],k=i.shortWeekDays||(a.locale.getShortWeekDays?a.locale.getShortWeekDays(i.locale):[]);P&&M.push(r.createElement("th",{key:"empty","aria-label":"empty cell"}));for(var A=0;A<gG;A+=1)M.push(r.createElement("th",{key:A},k[(A+O)%gG]));var I=i.shortMonths||(a.locale.getShortMonths?a.locale.getShortMonths(i.locale):[]),T=r.createElement("button",{type:"button","aria-label":"year panel",key:"year",onClick:function(){u("year",l)},tabIndex:-1,className:"".concat(t,"-year-btn")},MG(l,{locale:i,format:i.yearFormat,generateConfig:a})),j=r.createElement("button",{type:"button","aria-label":"month panel",key:"month",onClick:function(){u("month",l)},tabIndex:-1,className:"".concat(t,"-month-btn")},i.monthFormat?MG(l,{locale:i,format:i.monthFormat,generateConfig:a}):I[E]),L=i.monthBeforeYear?[j,T]:[T,j];return r.createElement(ZG.Provider,{value:w},r.createElement("div",{className:c()(m,v&&"".concat(m,"-show-week"))},r.createElement(oY,{offset:function(e){return a.addMonth(l,e)},superOffset:function(e){return a.addYear(l,e)},onChange:s,getStart:function(e){return a.setDate(e,1)},getEnd:function(e){var t=a.setDate(e,1);return t=a.addMonth(t,1),a.addDate(t,-1)}},L),r.createElement(nY,bH({titleFormat:i.fieldDateFormat},e,{colNum:gG,rowNum:6,baseDate:C,headerCells:M,getCellDate:function(e,t){return a.addDate(e,t)},getCellText:function(e){return MG(e,{locale:i,format:i.cellDateFormat,generateConfig:a})},getCellClassName:function(e){return Eg(Eg({},"".concat(t,"-cell-in-view"),xG(a,e,l)),"".concat(t,"-cell-today"),wG(a,e,S))},prefixColumn:P,cellSelection:!b}))))}var aY=1/3;var lY=300;function cY(e){var t=e.units,n=e.value,o=e.optionalValue,i=e.type,a=e.onChange,l=e.onHover,s=e.onDblClick,u=e.changeOnScroll,d=JG(),f=d.prefixCls,p=d.cellRender,h=d.now,g=d.locale,v="".concat(f,"-time-panel"),m="".concat(f,"-time-panel-cell"),y=r.useRef(null),b=r.useRef(),x=function(){clearTimeout(b.current)},w=function(e,t){var n=r.useRef(!1),o=r.useRef(null),i=r.useRef(null),a=function(){eu.cancel(o.current),n.current=!1},l=r.useRef();return[Ns((function(){var r=e.current;if(i.current=null,l.current=0,r){var c=r.querySelector('[data-value="'.concat(t,'"]')),s=r.querySelector("li");c&&s&&function e(){a(),n.current=!0,l.current+=1;var t=r.scrollTop,u=s.offsetTop,d=c.offsetTop,f=d-u;if(0===d&&c!==s||!Eu(r))l.current<=5&&(o.current=eu(e));else{var p=t+(f-t)*aY,h=Math.abs(f-p);if(null!==i.current&&i.current<h)a();else{if(i.current=h,h<=1)return r.scrollTop=f,void a();r.scrollTop=p,o.current=eu(e)}}}()}})),a,function(){return n.current}]}(y,null!==n&&void 0!==n?n:o),S=OH(w,3),O=S[0],_=S[1],C=S[2];ud((function(){return O(),x(),function(){_(),x()}}),[n,o,t]);var E="".concat(v,"-column");return r.createElement("ul",{className:E,ref:y,"data-type":i,onScroll:function(e){x();var n=e.target;!C()&&u&&(b.current=setTimeout((function(){var e=y.current,r=e.querySelector("li").offsetTop,o=Array.from(e.querySelectorAll("li")).map((function(e){return e.offsetTop-r})).map((function(e,r){return t[r].disabled?Number.MAX_SAFE_INTEGER:Math.abs(e-n.scrollTop)})),i=Math.min.apply(Math,SH(o)),l=o.findIndex((function(e){return e===i})),c=t[l];c&&!c.disabled&&a(c.value)}),lY))}},t.map((function(e){var t=e.label,o=e.value,u=e.disabled,d=r.createElement("div",{className:"".concat(m,"-inner")},t);return r.createElement("li",{key:o,className:c()(m,Eg(Eg({},"".concat(m,"-selected"),n===o),"".concat(m,"-disabled"),u)),onClick:function(){u||a(o)},onDoubleClick:function(){!u&&s&&s()},onMouseEnter:function(){l(o)},onMouseLeave:function(){l(null)},"data-value":o},p?p(o,{prefixCls:f,originNode:d,today:h,type:"time",subType:i,locale:g}):d)})))}function sY(e){return e<12}function uY(e){var t=e.showHour,n=e.showMinute,o=e.showSecond,i=e.showMillisecond,a=e.use12Hours,l=e.changeOnScroll,c=JG(),s=c.prefixCls,u=c.values,d=c.generateConfig,f=c.locale,p=c.onSelect,h=c.onHover,g=void 0===h?function(){}:h,v=c.pickerValue,m=(null===u||void 0===u?void 0:u[0])||null,y=r.useContext(tY).onCellDblClick,b=OH(KG(d,e,m),5),x=b[0],w=b[1],S=b[2],O=b[3],_=b[4],C=function(e){return[m&&d[e](m),v&&d[e](v)]},E=OH(C("getHour"),2),P=E[0],M=E[1],k=OH(C("getMinute"),2),A=k[0],I=k[1],T=OH(C("getSecond"),2),j=T[0],L=T[1],R=OH(C("getMillisecond"),2),D=R[0],N=R[1],F=null===P?null:sY(P)?"am":"pm",B=r.useMemo((function(){return a?sY(P)?w.filter((function(e){return sY(e.value)})):w.filter((function(e){return!sY(e.value)})):w}),[P,w,a]),z=function(e,t){var n,r=e.filter((function(e){return!e.disabled}));return null!==t&&void 0!==t?t:null===r||void 0===r||null===(n=r[0])||void 0===n?void 0:n.value},H=z(w,P),W=r.useMemo((function(){return S(H)}),[S,H]),V=z(W,A),G=r.useMemo((function(){return O(H,V)}),[O,H,V]),Y=z(G,j),U=r.useMemo((function(){return _(H,V,Y)}),[_,H,V,Y]),X=z(U,D),q=r.useMemo((function(){if(!a)return[];var e=d.getNow(),t=d.setHour(e,6),n=d.setHour(e,18),r=function(e,t){var n=f.cellMeridiemFormat;return n?MG(e,{generateConfig:d,locale:f,format:n}):t};return[{label:r(t,"AM"),value:"am",disabled:w.every((function(e){return e.disabled||!sY(e.value)}))},{label:r(n,"PM"),value:"pm",disabled:w.every((function(e){return e.disabled||sY(e.value)}))}]}),[w,a,d,f]),K=function(e){var t=x(e);p(t)},$=r.useMemo((function(){var e=m||v||d.getNow(),t=function(e){return null!==e&&void 0!==e};return t(P)?(e=d.setHour(e,P),e=d.setMinute(e,A),e=d.setSecond(e,j),e=d.setMillisecond(e,D)):t(M)?(e=d.setHour(e,M),e=d.setMinute(e,I),e=d.setSecond(e,L),e=d.setMillisecond(e,N)):t(H)&&(e=d.setHour(e,H),e=d.setMinute(e,V),e=d.setSecond(e,Y),e=d.setMillisecond(e,X)),e}),[m,v,P,A,j,D,H,V,Y,X,M,I,L,N,d]),Q=function(e,t){return null===e?null:d[t]($,e)},Z=function(e){return Q(e,"setHour")},J=function(e){return Q(e,"setMinute")},ee=function(e){return Q(e,"setSecond")},te=function(e){return Q(e,"setMillisecond")},ne=function(e){return null===e?null:"am"!==e||sY(P)?"pm"===e&&sY(P)?d.setHour($,P+12):$:d.setHour($,P-12)},re={onDblClick:y,changeOnScroll:l};return r.createElement("div",{className:"".concat(s,"-content")},t&&r.createElement(cY,bH({units:B,value:P,optionalValue:M,type:"hour",onChange:function(e){K(Z(e))},onHover:function(e){g(Z(e))}},re)),n&&r.createElement(cY,bH({units:W,value:A,optionalValue:I,type:"minute",onChange:function(e){K(J(e))},onHover:function(e){g(J(e))}},re)),o&&r.createElement(cY,bH({units:G,value:j,optionalValue:L,type:"second",onChange:function(e){K(ee(e))},onHover:function(e){g(ee(e))}},re)),i&&r.createElement(cY,bH({units:U,value:D,optionalValue:N,type:"millisecond",onChange:function(e){K(te(e))},onHover:function(e){g(te(e))}},re)),a&&r.createElement(cY,bH({units:q,value:F,type:"meridiem",onChange:function(e){K(ne(e))},onHover:function(e){g(ne(e))}},re)))}function dY(e){var t=e.prefixCls,n=e.value,o=e.locale,i=e.generateConfig,a=e.showTime,l=(a||{}).format,s="".concat(t,"-time-panel"),u=OH(eY(e,"time"),1)[0];return r.createElement(ZG.Provider,{value:u},r.createElement("div",{className:c()(s)},r.createElement(oY,null,n?MG(n,{locale:o,format:l,generateConfig:i}):"\xa0"),r.createElement(uY,a)))}var fY={date:iY,datetime:function(e){var t=e.prefixCls,n=e.generateConfig,o=e.showTime,i=e.onSelect,a=e.value,l=e.pickerValue,c=e.onHover,s="".concat(t,"-datetime-panel"),u=OH(KG(n,o),1)[0],d=function(e){return kG(n,e,a||l)};return r.createElement("div",{className:s},r.createElement(iY,bH({},e,{onSelect:function(e){var t=d(e);i(u(t,t))},onHover:function(e){null===c||void 0===c||c(e?d(e):e)}})),r.createElement(dY,e))},week:function(e){var t=e.prefixCls,n=e.generateConfig,o=e.locale,i=e.value,a=e.hoverValue,l=e.hoverRangeValue,s=o.locale,u="".concat(t,"-week-panel-row");return r.createElement(iY,bH({},e,{mode:"week",panelName:"week",rowClassName:function(e){var t={};if(l){var r=OH(l,2),o=r[0],d=r[1],f=_G(n,s,o,e),p=_G(n,s,d,e);t["".concat(u,"-range-start")]=f,t["".concat(u,"-range-end")]=p,t["".concat(u,"-range-hover")]=!f&&!p&&EG(n,o,d,e)}return a&&(t["".concat(u,"-hover")]=a.some((function(t){return _G(n,s,e,t)}))),c()(u,Eg({},"".concat(u,"-selected"),!l&&_G(n,s,i,e)),t)}}))},month:function(e){var t=e.prefixCls,n=e.locale,o=e.generateConfig,i=e.pickerValue,a=e.disabledDate,l=e.onPickerValueChange,c=e.onModeChange,s="".concat(t,"-month-panel"),u=OH(eY(e,"month"),1)[0],d=o.setMonth(i,0),f=n.shortMonths||(o.locale.getShortMonths?o.locale.getShortMonths(n.locale):[]),p=a?function(e,t){var n=o.setDate(e,1),r=o.setMonth(n,o.getMonth(n)+1),i=o.addDate(r,-1);return a(n,t)&&a(i,t)}:null,h=r.createElement("button",{type:"button",key:"year","aria-label":"year panel",onClick:function(){c("year")},tabIndex:-1,className:"".concat(t,"-year-btn")},MG(i,{locale:n,format:n.yearFormat,generateConfig:o}));return r.createElement(ZG.Provider,{value:u},r.createElement("div",{className:s},r.createElement(oY,{superOffset:function(e){return o.addYear(i,e)},onChange:l,getStart:function(e){return o.setMonth(e,0)},getEnd:function(e){return o.setMonth(e,11)}},h),r.createElement(nY,bH({},e,{disabledDate:p,titleFormat:n.fieldMonthFormat,colNum:3,rowNum:4,baseDate:d,getCellDate:function(e,t){return o.addMonth(e,t)},getCellText:function(e){var t=o.getMonth(e);return n.monthFormat?MG(e,{locale:n,format:n.monthFormat,generateConfig:o}):f[t]},getCellClassName:function(){return Eg({},"".concat(t,"-cell-in-view"),!0)}}))))},quarter:function(e){var t=e.prefixCls,n=e.locale,o=e.generateConfig,i=e.pickerValue,a=e.onPickerValueChange,l=e.onModeChange,c="".concat(t,"-quarter-panel"),s=OH(eY(e,"quarter"),1)[0],u=o.setMonth(i,0),d=r.createElement("button",{type:"button",key:"year","aria-label":"year panel",onClick:function(){l("year")},tabIndex:-1,className:"".concat(t,"-year-btn")},MG(i,{locale:n,format:n.yearFormat,generateConfig:o}));return r.createElement(ZG.Provider,{value:s},r.createElement("div",{className:c},r.createElement(oY,{superOffset:function(e){return o.addYear(i,e)},onChange:a,getStart:function(e){return o.setMonth(e,0)},getEnd:function(e){return o.setMonth(e,11)}},d),r.createElement(nY,bH({},e,{titleFormat:n.fieldQuarterFormat,colNum:4,rowNum:1,baseDate:u,getCellDate:function(e,t){return o.addMonth(e,3*t)},getCellText:function(e){return MG(e,{locale:n,format:n.cellQuarterFormat,generateConfig:o})},getCellClassName:function(){return Eg({},"".concat(t,"-cell-in-view"),!0)}}))))},year:function(e){var t=e.prefixCls,n=e.locale,o=e.generateConfig,i=e.pickerValue,a=e.disabledDate,l=e.onPickerValueChange,c=e.onModeChange,s="".concat(t,"-year-panel"),u=OH(eY(e,"year"),1)[0],d=function(e){var t=10*Math.floor(o.getYear(i)/10);return o.setYear(e,t)},f=function(e){var t=d(e);return o.addYear(t,9)},p=d(i),h=f(i),g=o.addYear(p,-1),v=a?function(e,t){var n=o.setMonth(e,0),r=o.setDate(n,1),i=o.addYear(r,1),l=o.addDate(i,-1);return a(r,t)&&a(l,t)}:null,m=r.createElement("button",{type:"button",key:"decade","aria-label":"decade panel",onClick:function(){c("decade")},tabIndex:-1,className:"".concat(t,"-decade-btn")},MG(p,{locale:n,format:n.yearFormat,generateConfig:o}),"-",MG(h,{locale:n,format:n.yearFormat,generateConfig:o}));return r.createElement(ZG.Provider,{value:u},r.createElement("div",{className:s},r.createElement(oY,{superOffset:function(e){return o.addYear(i,10*e)},onChange:l,getStart:d,getEnd:f},m),r.createElement(nY,bH({},e,{disabledDate:v,titleFormat:n.fieldYearFormat,colNum:3,rowNum:4,baseDate:g,getCellDate:function(e,t){return o.addYear(e,t)},getCellText:function(e){return MG(e,{locale:n,format:n.cellYearFormat,generateConfig:o})},getCellClassName:function(e){return Eg({},"".concat(t,"-cell-in-view"),yG(o,e,p)||yG(o,e,h)||EG(o,p,h,e))}}))))},decade:function(e){var t=e.prefixCls,n=e.locale,o=e.generateConfig,i=e.pickerValue,a=e.disabledDate,l=e.onPickerValueChange,c="".concat(t,"-decade-panel"),s=OH(eY(e,"decade"),1)[0],u=function(e){var t=100*Math.floor(o.getYear(i)/100);return o.setYear(e,t)},d=function(e){var t=u(e);return o.addYear(t,99)},f=u(i),p=d(i),h=o.addYear(f,-10),g=a?function(e,t){var n=o.setDate(e,1),r=o.setMonth(n,0),i=o.setYear(r,10*Math.floor(o.getYear(r)/10)),l=o.addYear(i,10),c=o.addDate(l,-1);return a(i,t)&&a(c,t)}:null,v="".concat(MG(f,{locale:n,format:n.yearFormat,generateConfig:o}),"-").concat(MG(p,{locale:n,format:n.yearFormat,generateConfig:o}));return r.createElement(ZG.Provider,{value:s},r.createElement("div",{className:c},r.createElement(oY,{superOffset:function(e){return o.addYear(i,100*e)},onChange:l,getStart:u,getEnd:d},v),r.createElement(nY,bH({},e,{disabledDate:g,colNum:3,rowNum:4,baseDate:h,getCellDate:function(e,t){return o.addYear(e,10*t)},getCellText:function(e){var t=n.cellYearFormat,r=MG(e,{locale:n,format:t,generateConfig:o}),i=MG(o.addYear(e,9),{locale:n,format:t,generateConfig:o});return"".concat(r,"-").concat(i)},getCellClassName:function(e){return Eg({},"".concat(t,"-cell-in-view"),mG(o,e,f)||mG(o,e,p)||EG(o,f,p,e))}}))))},time:dY};function pY(e,t){var n,o=e.locale,i=e.generateConfig,a=e.direction,l=e.prefixCls,s=e.tabIndex,u=void 0===s?0:s,d=e.multiple,f=e.defaultValue,p=e.value,h=e.onChange,g=e.onSelect,v=e.defaultPickerValue,m=e.pickerValue,y=e.onPickerValueChange,b=e.mode,x=e.onPanelChange,w=e.picker,S=void 0===w?"date":w,O=e.showTime,_=e.hoverValue,C=e.hoverRangeValue,E=e.cellRender,P=e.dateRender,M=e.monthCellRender,k=e.components,A=void 0===k?{}:k,I=e.hideHeader,T=(null===(n=r.useContext(XV))||void 0===n?void 0:n.prefixCls)||l||"rc-picker",j=r.useRef();r.useImperativeHandle(t,(function(){return{nativeElement:j.current}}));var L=OH(fG(e),4),R=L[0],D=L[1],N=L[2],F=L[3],B=aG(o,D),z="date"===S&&O?"datetime":S,H=r.useMemo((function(){return pG(z,N,F,R,B)}),[z,N,F,R,B]),W=i.getNow(),V=OH(pd(S,{value:b,postState:function(e){return e||"date"}}),2),G=V[0],Y=V[1],U="date"===G&&H?"datetime":G,X=QG(i,o,z),q=OH(pd(f,{value:p}),2),K=q[0],$=q[1],Q=r.useMemo((function(){var e=QV(K).filter((function(e){return e}));return d?e:e.slice(0,1)}),[K,d]),Z=Ns((function(e){$(e),h&&(null===e||Q.length!==e.length||Q.some((function(t,n){return!CG(i,o,t,e[n],z)})))&&(null===h||void 0===h||h(d?e:e[0]))})),J=Ns((function(e){if(null===g||void 0===g||g(e),G===S){var t=d?X(Q,e):[e];Z(t)}})),ee=OH(pd(v||Q[0]||W,{value:m}),2),te=ee[0],ne=ee[1];r.useEffect((function(){Q[0]&&!m&&ne(Q[0])}),[Q[0]]);var re=function(e,t){null===x||void 0===x||x(e||m,t||G)},oe=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];ne(e),null===y||void 0===y||y(e),t&&re(e)},ie=function(e,t){Y(e),t&&oe(t),re(t,e)},ae=r.useMemo((function(){var e,t;if(Array.isArray(C)){var n=OH(C,2);e=n[0],t=n[1]}else e=C;return e||t?(e=e||t,t=t||e,i.isAfter(e,t)?[t,e]:[e,t]):null}),[C,i]),le=rG(E,P,M),ce=A[U]||fY[U]||iY,se=r.useContext(tY),ue=r.useMemo((function(){return Mg(Mg({},se),{},{hideHeader:I})}),[se,I]);var de="".concat(T,"-panel"),fe=JV(e,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return r.createElement(tY.Provider,{value:ue},r.createElement("div",{ref:j,tabIndex:u,className:c()(de,Eg({},"".concat(de,"-rtl"),"rtl"===a))},r.createElement(ce,bH({},fe,{showTime:H,prefixCls:T,locale:B,generateConfig:i,onModeChange:ie,pickerValue:te,onPickerValueChange:function(e){oe(e,!0)},value:Q[0],onSelect:function(e){if(J(e),oe(e),G!==S){var t=["decade","year"],n=[].concat(t,["month"]),r={quarter:[].concat(t,["quarter"]),week:[].concat(SH(n),["week"]),date:[].concat(SH(n),["date"])}[S]||n,o=r.indexOf(G),i=r[o+1];i&&ie(i,e)}},values:Q,cellRender:le,hoverRangeValue:ae,hoverValue:_}))))}const hY=r.memo(r.forwardRef(pY));function gY(e){var t=e.picker,n=e.multiplePanel,o=e.pickerValue,i=e.onPickerValueChange,a=e.needConfirm,l=e.onSubmit,c=e.range,s=e.hoverValue,u=r.useContext(XV),d=u.prefixCls,f=u.generateConfig,p=r.useCallback((function(e,n){return NG(f,t,e,n)}),[f,t]),h=r.useMemo((function(){return p(o,1)}),[o,p]),g={onCellDblClick:function(){a&&l()}},v="time"===t,m=Mg(Mg({},e),{},{hoverValue:null,hoverRangeValue:null,hideHeader:v});return c?m.hoverRangeValue=s:m.hoverValue=s,n?r.createElement("div",{className:"".concat(d,"-panels")},r.createElement(tY.Provider,{value:Mg(Mg({},g),{},{hideNext:!0})},r.createElement(hY,m)),r.createElement(tY.Provider,{value:Mg(Mg({},g),{},{hidePrev:!0})},r.createElement(hY,bH({},m,{pickerValue:h,onPickerValueChange:function(e){i(p(e,-1))}})))):r.createElement(tY.Provider,{value:Mg({},g)},r.createElement(hY,m))}function vY(e){return"function"===typeof e?e():e}function mY(e){var t=e.prefixCls,n=e.presets,o=e.onClick,i=e.onHover;return n.length?r.createElement("div",{className:"".concat(t,"-presets")},r.createElement("ul",null,n.map((function(e,t){var n=e.label,a=e.value;return r.createElement("li",{key:t,onClick:function(){o(vY(a))},onMouseEnter:function(){i(vY(a))},onMouseLeave:function(){i(null)}},n)})))):null}function yY(e){var t=e.panelRender,n=e.internalMode,o=e.picker,i=e.showNow,a=e.range,l=e.multiple,s=e.activeOffset,u=void 0===s?0:s,d=e.placement,f=e.presets,p=e.onPresetHover,h=e.onPresetSubmit,g=e.onFocus,v=e.onBlur,m=e.onPanelMouseDown,y=e.direction,b=e.value,x=e.onSelect,w=e.isInvalid,S=e.defaultOpenValue,O=e.onOk,_=e.onSubmit,C=r.useContext(XV).prefixCls,E="".concat(C,"-panel"),P="rtl"===y,M=r.useRef(null),k=r.useRef(null),A=OH(r.useState(0),2),I=A[0],T=A[1],j=OH(r.useState(0),2),L=j[0],R=j[1];function D(e){return e.filter((function(e){return e}))}r.useEffect((function(){if(a){var e,t=(null===(e=M.current)||void 0===e?void 0:e.offsetWidth)||0;R(u<=I-t?0:u+t-I)}}),[I,u,a]);var N=r.useMemo((function(){return D(QV(b))}),[b]),F="time"===o&&!N.length,B=r.useMemo((function(){return F?D([S]):N}),[F,N,S]),z=F?S:N,H=r.useMemo((function(){return!B.length||B.some((function(e){return w(e)}))}),[B,w]),W=r.createElement("div",{className:"".concat(C,"-panel-layout")},r.createElement(mY,{prefixCls:C,presets:f,onClick:h,onHover:p}),r.createElement("div",null,r.createElement(gY,bH({},e,{value:z})),r.createElement($G,bH({},e,{showNow:!l&&i,invalid:H,onSubmit:function(){F&&x(S),O(),_()}}))));t&&(W=t(W));var V="".concat(E,"-container"),G="marginLeft",Y="marginRight",U=r.createElement("div",{onMouseDown:m,tabIndex:-1,className:c()(V,"".concat(C,"-").concat(n,"-panel-container")),style:Eg(Eg({},P?Y:G,L),P?G:Y,"auto"),onFocus:g,onBlur:v},W);if(a){var X=UV(YV(d,P),P);U=r.createElement("div",{onMouseDown:m,ref:k,className:c()("".concat(C,"-range-wrapper"),"".concat(C,"-").concat(o,"-range-wrapper"))},r.createElement("div",{ref:M,className:"".concat(C,"-range-arrow"),style:Eg({},X,u)}),r.createElement(qh,{onResize:function(e){e.offsetWidth&&T(e.offsetWidth)}},U))}return U}function bY(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.indexOf(r)>=0)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.indexOf(n)>=0||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function xY(e,t){var n=e.format,o=e.maskFormat,i=e.generateConfig,a=e.locale,l=e.preserveInvalidOnBlur,c=e.inputReadOnly,s=e.required,u=e["aria-required"],d=e.onSubmit,f=e.onFocus,p=e.onBlur,h=e.onInputChange,g=e.onInvalid,v=e.open,m=e.onOpenChange,y=e.onKeyDown,b=e.onChange,x=e.activeHelp,w=e.name,S=e.autoComplete,O=e.id,_=e.value,C=e.invalid,E=e.placeholder,P=e.disabled,M=e.activeIndex,k=e.allHelp,A=e.picker,I=function(e,t){var n=i.locale.parse(a.locale,e,[t]);return n&&i.isValidate(n)?n:null},T=n[0],j=r.useCallback((function(e){return MG(e,{locale:a,format:T,generateConfig:i})}),[a,i,T]),L=r.useMemo((function(){return _.map(j)}),[_,j]),R=r.useMemo((function(){var e="time"===A?8:10,t="function"===typeof T?T(i.getNow()).length:T.length;return Math.max(e,t)+2}),[T,A,i]),D=function(e){for(var t=0;t<n.length;t+=1){var r=n[t];if("string"===typeof r){var o=I(e,r);if(o)return o}}return!1};return[function(n){function r(e){return void 0!==n?e[n]:e}var i=Mg(Mg({},Ys(e,{aria:!0,data:!0})),{},{format:o,validateFormat:function(e){return!!D(e)},preserveInvalidOnBlur:l,readOnly:c,required:s,"aria-required":u,name:w,autoComplete:S,size:R,id:r(O),value:r(L)||"",invalid:r(C),placeholder:r(E),active:M===n,helped:k||x&&M===n,disabled:r(P),onFocus:function(e){f(e,n)},onBlur:function(e){p(e,n)},onSubmit:d,onChange:function(e){h();var t=D(e);if(t)return g(!1,n),void b(t,n);g(!!e,n)},onHelp:function(){m(!0,{index:n})},onKeyDown:function(e){var t=!1;if(null===y||void 0===y||y(e,(function(){t=!0})),!e.defaultPrevented&&!t)switch(e.key){case"Escape":m(!1,{index:n});break;case"Enter":v||m(!0)}}},null===t||void 0===t?void 0:t({valueTexts:L}));return Object.keys(i).forEach((function(e){void 0===i[e]&&delete i[e]})),i},j]}var wY=["onMouseEnter","onMouseLeave"];function SY(e){return r.useMemo((function(){return JV(e,wY)}),[e])}var OY=["icon","type"],_Y=["onClear"];function CY(e){var t=e.icon,n=e.type,o=bY(e,OY),i=r.useContext(XV).prefixCls;return t?r.createElement("span",bH({className:"".concat(i,"-").concat(n)},o),t):null}function EY(e){var t=e.onClear,n=bY(e,_Y);return r.createElement(CY,bH({},n,{type:"clear",role:"button",onMouseDown:function(e){e.preventDefault()},onClick:function(e){e.stopPropagation(),t()}}))}function PY(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,Cg(r.key),r)}}var MY=["YYYY","MM","DD","HH","mm","ss","SSS"],kY=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Eg(this,"format",void 0),Eg(this,"maskFormat",void 0),Eg(this,"cells",void 0),Eg(this,"maskCells",void 0),this.format=t;var n=MY.map((function(e){return"(".concat(e,")")})).join("|"),r=new RegExp(n,"g");this.maskFormat=t.replace(r,(function(e){return"\u9867".repeat(e.length)}));var o=new RegExp("(".concat(MY.join("|"),")")),i=(t.split(o)||[]).filter((function(e){return e})),a=0;this.cells=i.map((function(e){var t=MY.includes(e),n=a,r=a+e.length;return a=r,{text:e,mask:t,start:n,end:r}})),this.maskCells=this.cells.filter((function(e){return e.mask}))}var t,n,r;return t=e,(n=[{key:"getSelection",value:function(e){var t=this.maskCells[e]||{};return[t.start||0,t.end||0]}},{key:"match",value:function(e){for(var t=0;t<this.maskFormat.length;t+=1){var n=this.maskFormat[t],r=e[t];if(!r||"\u9867"!==n&&n!==r)return!1}return!0}},{key:"size",value:function(){return this.maskCells.length}},{key:"getMaskCellIndex",value:function(e){for(var t=Number.MAX_SAFE_INTEGER,n=0,r=0;r<this.maskCells.length;r+=1){var o=this.maskCells[r],i=o.start,a=o.end;if(e>=i&&e<=a)return r;var l=Math.min(Math.abs(e-i),Math.abs(e-a));l<t&&(t=l,n=r)}return n}}])&&PY(t.prototype,n),r&&PY(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();var AY=["active","showActiveCls","suffixIcon","format","validateFormat","onChange","onInput","helped","onHelp","onSubmit","onKeyDown","preserveInvalidOnBlur","invalid","clearIcon"],IY=r.forwardRef((function(e,t){var n=e.active,o=e.showActiveCls,i=void 0===o||o,a=e.suffixIcon,l=e.format,s=e.validateFormat,u=e.onChange,d=(e.onInput,e.helped),f=e.onHelp,p=e.onSubmit,h=e.onKeyDown,g=e.preserveInvalidOnBlur,v=void 0!==g&&g,m=e.invalid,y=e.clearIcon,b=bY(e,AY),x=e.value,w=e.onFocus,S=e.onBlur,O=e.onMouseUp,_=r.useContext(XV),C=_.prefixCls,E=_.input,P=void 0===E?"input":E,M="".concat(C,"-input"),k=OH(r.useState(!1),2),A=k[0],I=k[1],T=OH(r.useState(x),2),j=T[0],L=T[1],R=OH(r.useState(""),2),D=R[0],N=R[1],F=OH(r.useState(null),2),B=F[0],z=F[1],H=OH(r.useState(null),2),W=H[0],V=H[1],G=j||"";r.useEffect((function(){L(x)}),[x]);var Y=r.useRef(),U=r.useRef();r.useImperativeHandle(t,(function(){return{nativeElement:Y.current,inputElement:U.current,focus:function(e){U.current.focus(e)},blur:function(){U.current.blur()}}}));var X=r.useMemo((function(){return new kY(l||"")}),[l]),q=OH(r.useMemo((function(){return d?[0,0]:X.getSelection(B)}),[X,B,d]),2),K=q[0],$=q[1],Q=function(e){e&&e!==l&&e!==x&&f()},Z=Ns((function(e){s(e)&&u(e),L(e),Q(e)})),J=r.useRef(!1),ee=function(e){S(e)};RG(n,(function(){n||v||L(x)}));var te=function(e){"Enter"===e.key&&s(G)&&p(),null===h||void 0===h||h(e)},ne=r.useRef();ud((function(){if(A&&l&&!J.current){if(X.match(G))return U.current.setSelectionRange(K,$),ne.current=eu((function(){U.current.setSelectionRange(K,$)})),function(){eu.cancel(ne.current)};Z(l)}}),[X,l,A,G,B,K,$,W,Z]);var re=l?{onFocus:function(e){I(!0),z(0),N(""),w(e)},onBlur:function(e){I(!1),ee(e)},onKeyDown:function(e){te(e);var t=e.key,n=null,r=null,o=$-K,i=l.slice(K,$),a=function(e){z((function(t){var n=t+e;return n=Math.max(n,0),n=Math.min(n,X.size()-1)}))},c=function(e){var t=function(e){return{YYYY:[0,9999,(new Date).getFullYear()],MM:[1,12],DD:[1,31],HH:[0,23],mm:[0,59],ss:[0,59],SSS:[0,999]}[e]}(i),n=OH(t,3),r=n[0],o=n[1],a=n[2],l=G.slice(K,$),c=Number(l);if(isNaN(c))return String(a||(e>0?r:o));var s=o-r+1;return String(r+(s+(c+e)-r)%s)};switch(t){case"Backspace":case"Delete":n="",r=i;break;case"ArrowLeft":n="",a(-1);break;case"ArrowRight":n="",a(1);break;case"ArrowUp":n="",r=c(1);break;case"ArrowDown":n="",r=c(-1);break;default:isNaN(Number(t))||(r=n=D+t)}if(null!==n&&(N(n),n.length>=o&&(a(1),N(""))),null!==r){var s=G.slice(0,K)+$V(r,o)+G.slice($);Z(s.slice(0,l.length))}V({})},onMouseDown:function(){J.current=!0},onMouseUp:function(e){var t=e.target.selectionStart,n=X.getMaskCellIndex(t);z(n),V({}),null===O||void 0===O||O(e),J.current=!1},onPaste:function(e){var t=e.clipboardData.getData("text");s(t)&&Z(t)}}:{};return r.createElement("div",{ref:Y,className:c()(M,Eg(Eg({},"".concat(M,"-active"),n&&i),"".concat(M,"-placeholder"),d))},r.createElement(P,bH({ref:U,"aria-invalid":m,autoComplete:"off"},b,{onKeyDown:te,onBlur:ee},re,{value:G,onChange:function(e){if(!l){var t=e.target.value;Q(t),L(t),u(t)}}})),r.createElement(CY,{type:"suffix",icon:a}),y)}));const TY=IY;var jY=["id","clearIcon","suffixIcon","separator","activeIndex","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","value","onChange","onSubmit","onInputChange","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onActiveOffset","placement","onMouseDown","required","aria-required","autoFocus"],LY=["index"];function RY(e,t){var n=e.id,o=e.clearIcon,i=e.suffixIcon,a=e.separator,l=void 0===a?"~":a,s=e.activeIndex,u=(e.activeHelp,e.allHelp,e.focused),d=(e.onFocus,e.onBlur,e.onKeyDown,e.locale,e.generateConfig,e.placeholder),f=e.className,p=e.style,h=e.onClick,g=e.onClear,v=e.value,m=(e.onChange,e.onSubmit,e.onInputChange,e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid,e.disabled),y=e.invalid,b=(e.inputReadOnly,e.direction),x=(e.onOpenChange,e.onActiveOffset),w=e.placement,S=e.onMouseDown,O=(e.required,e["aria-required"],e.autoFocus),_=bY(e,jY),C="rtl"===b,E=r.useContext(XV).prefixCls,P=r.useMemo((function(){if("string"===typeof n)return[n];var e=n||{};return[e.start,e.end]}),[n]),M=r.useRef(),k=r.useRef(),A=r.useRef(),I=function(e){var t;return null===(t=[k,A][e])||void 0===t?void 0:t.current};r.useImperativeHandle(t,(function(){return{nativeElement:M.current,focus:function(e){if("object"===_g(e)){var t,n=e||{},r=n.index,o=void 0===r?0:r,i=bY(n,LY);null===(t=I(o))||void 0===t||t.focus(i)}else{var a;null===(a=I(null!==e&&void 0!==e?e:0))||void 0===a||a.focus()}},blur:function(){var e,t;null===(e=I(0))||void 0===e||e.blur(),null===(t=I(1))||void 0===t||t.blur()}}}));var T=SY(_),j=r.useMemo((function(){return Array.isArray(d)?d:[d,d]}),[d]),L=OH(xY(Mg(Mg({},e),{},{id:P,placeholder:j})),1)[0],R=YV(w,C),D=UV(R,C),N=null===R||void 0===R?void 0:R.toLowerCase().endsWith("right"),F=OH(r.useState({position:"absolute",width:0}),2),B=F[0],z=F[1],H=Ns((function(){var e=I(s);if(e){var t=e.nativeElement,n=t.offsetWidth,r=t.offsetLeft,o=t.offsetParent,i=(null===o||void 0===o?void 0:o.offsetWidth)||0,a=N?i-n-r:r;z((function(e){return Mg(Mg({},e),{},Eg({width:n},D,a))})),x(a)}}));r.useEffect((function(){H()}),[s]);var W=o&&(v[0]&&!m[0]||v[1]&&!m[1]),V=O&&!m[0],G=O&&!V&&!m[1];return r.createElement(qh,{onResize:H},r.createElement("div",bH({},T,{className:c()(E,"".concat(E,"-range"),Eg(Eg(Eg(Eg({},"".concat(E,"-focused"),u),"".concat(E,"-disabled"),m.every((function(e){return e}))),"".concat(E,"-invalid"),y.some((function(e){return e}))),"".concat(E,"-rtl"),C),f),style:p,ref:M,onClick:h,onMouseDown:function(e){var t=e.target;t!==k.current.inputElement&&t!==A.current.inputElement&&e.preventDefault(),null===S||void 0===S||S(e)}}),r.createElement(TY,bH({ref:k},L(0),{autoFocus:V,"date-range":"start"})),r.createElement("div",{className:"".concat(E,"-range-separator")},l),r.createElement(TY,bH({ref:A},L(1),{autoFocus:G,"date-range":"end"})),r.createElement("div",{className:"".concat(E,"-active-bar"),style:B}),r.createElement(CY,{type:"suffix",icon:i}),W&&r.createElement(EY,{icon:o,onClear:g})))}const DY=r.forwardRef(RY);function NY(e,t){var n=null!==e&&void 0!==e?e:t;return Array.isArray(n)?n:[n,n]}function FY(e){return 1===e?"end":"start"}function BY(e,t){var n=IG(e,(function(){var t=e.disabled,n=e.allowEmpty;return{disabled:NY(t,!1),allowEmpty:NY(n,!1)}})),o=OH(n,6),i=o[0],a=o[1],l=o[2],c=o[3],s=o[4],u=o[5],d=i.prefixCls,f=i.styles,p=i.classNames,h=i.placement,g=i.defaultValue,v=i.value,m=i.needConfirm,y=i.onKeyDown,b=i.disabled,x=i.allowEmpty,w=i.disabledDate,S=i.minDate,O=i.maxDate,_=i.defaultOpen,C=i.open,E=i.onOpenChange,P=i.locale,M=i.generateConfig,k=i.picker,A=i.showNow,I=i.showToday,T=i.showTime,j=i.mode,L=i.onPanelChange,R=i.onCalendarChange,D=i.onOk,N=i.defaultPickerValue,F=i.pickerValue,B=i.onPickerValueChange,z=i.inputReadOnly,H=i.suffixIcon,W=i.onFocus,V=i.onBlur,G=i.presets,Y=i.ranges,U=i.components,X=i.cellRender,q=i.dateRender,K=i.monthCellRender,$=i.onClick,Q=jG(t),Z=OH(TG(C,_,b,E),2),J=Z[0],ee=Z[1],te=function(e,t){!b.some((function(e){return!e}))&&e||ee(e,t)},ne=OH(GG(M,P,c,!0,!1,g,v,R,D),5),re=ne[0],oe=ne[1],ie=ne[2],ae=ne[3],le=ne[4],ce=ie(),se=OH(DG(b,x,J),7),ue=se[0],de=se[1],fe=se[2],pe=se[3],he=se[4],ge=se[5],ve=se[6],me=function(e,t){de(!0),null===W||void 0===W||W(e,{range:FY(null!==t&&void 0!==t?t:pe)})},ye=function(e,t){de(!1),null===V||void 0===V||V(e,{range:FY(null!==t&&void 0!==t?t:pe)})},be=r.useMemo((function(){if(!T)return null;var e=T.disabledTime,t=e?function(t){var n=FY(pe),r=tG(ce,ve,pe);return e(t,n,{from:r})}:void 0;return Mg(Mg({},T),{},{disabledTime:t})}),[T,pe,ce,ve]),xe=OH(pd([k,k],{value:j}),2),we=xe[0],Se=xe[1],Oe=we[pe]||k,_e="date"===Oe&&be?"datetime":Oe,Ce=_e===k&&"time"!==_e,Ee=UG(k,Oe,A,I,!0),Pe=OH(YG(i,re,oe,ie,ae,b,c,ue,J,u),2),Me=Pe[0],ke=Pe[1],Ae=function(e,t,n,r,o,i){var a=n[n.length-1];return function(l,c){var s=OH(e,2),u=s[0],d=s[1],f=Mg(Mg({},c),{},{from:tG(e,n)});return!(1!==a||!t[0]||!u||CG(r,o,u,l,f.type)||!r.isAfter(u,l))||!(0!==a||!t[1]||!d||CG(r,o,d,l,f.type)||!r.isAfter(l,d))||(null===i||void 0===i?void 0:i(l,f))}}(ce,b,ve,M,P,w),Ie=OH(oG(ce,u,x),2),Te=Ie[0],je=Ie[1],Le=OH(BG(M,P,ce,we,J,pe,a,Ce,N,F,null===be||void 0===be?void 0:be.defaultOpenValue,B,S,O),2),Re=Le[0],De=Le[1],Ne=Ns((function(e,t,n){var r=ZV(we,pe,t);if(r[0]===we[0]&&r[1]===we[1]||Se(r),L&&!1!==n){var o=SH(ce);e&&(o[pe]=e),L(o,r)}})),Fe=function(e,t){return ZV(ce,t,e)},Be=function(e,t){var n=ce;e&&(n=Fe(e,pe));var r=ge(n);ae(n),Me(pe,null===r),null===r?te(!1,{force:!0}):t||Q.current.focus({index:r})},ze=OH(r.useState(null),2),He=ze[0],We=ze[1],Ve=OH(r.useState(null),2),Ge=Ve[0],Ye=Ve[1],Ue=r.useMemo((function(){return Ge||ce}),[ce,Ge]);r.useEffect((function(){J||Ye(null)}),[J]);var Xe=OH(r.useState(0),2),qe=Xe[0],Ke=Xe[1],$e=LG(G,Y),Qe=rG(X,q,K,FY(pe)),Ze=ce[pe]||null,Je=Ns((function(e){return u(e,{activeIndex:pe})})),et=r.useMemo((function(){var e=Ys(i,!1);return hu(i,[].concat(SH(Object.keys(e)),["onChange","onCalendarChange","style","className","onPanelChange","disabledTime"]))}),[i]),tt=r.createElement(yY,bH({},et,{showNow:Ee,showTime:be,range:!0,multiplePanel:Ce,activeOffset:qe,placement:h,disabledDate:Ae,onFocus:function(e){te(!0),me(e)},onBlur:ye,onPanelMouseDown:function(){fe("panel")},picker:k,mode:Oe,internalMode:_e,onPanelChange:Ne,format:s,value:Ze,isInvalid:Je,onChange:null,onSelect:function(e){var t=ZV(ce,pe,e);ae(t),m||l||a!==_e||Be(e)},pickerValue:Re,defaultOpenValue:QV(null===T||void 0===T?void 0:T.defaultOpenValue)[pe],onPickerValueChange:De,hoverValue:Ue,onHover:function(e){Ye(e?Fe(e,pe):null),We("cell")},needConfirm:m,onSubmit:Be,onOk:le,presets:$e,onPresetHover:function(e){Ye(e),We("preset")},onPresetSubmit:function(e){ke(e)&&te(!1,{force:!0})},onNow:function(e){Be(e)},cellRender:Qe})),nt=r.useMemo((function(){return{prefixCls:d,locale:P,generateConfig:M,button:U.button,input:U.input}}),[d,P,M,U.button,U.input]);return ud((function(){J&&void 0!==pe&&Ne(null,k,!1)}),[J,pe,k]),ud((function(){var e=fe();J||"input"!==e||(te(!1),Be(null,!0)),J||!l||m||"panel"!==e||(te(!0),Be())}),[J]),r.createElement(XV.Provider,{value:nt},r.createElement(KV,bH({},nG(i),{popupElement:tt,popupStyle:f.popup,popupClassName:p.popup,visible:J,onClose:function(){te(!1)},range:!0}),r.createElement(DY,bH({},i,{ref:Q,suffixIcon:H,activeIndex:ue||J?pe:null,activeHelp:!!Ge,allHelp:!!Ge&&"preset"===He,focused:ue,onFocus:function(e,t){fe("input"),te(!0,{inherit:!0}),pe!==t&&J&&!m&&l&&Be(null,!0),he(t),me(e,t)},onBlur:function(e,t){if(te(!1),!m&&"input"===fe()){var n=ge(ce);Me(pe,null===n)}ye(e,t)},onKeyDown:function(e,t){"Tab"===e.key&&Be(null,!0),null===y||void 0===y||y(e,t)},onSubmit:Be,value:Ue,maskFormat:s,onChange:function(e,t){var n=Fe(e,t);ae(n)},onInputChange:function(){fe("input")},format:c,inputReadOnly:z,disabled:b,open:J,onOpenChange:te,onClick:function(e){var t,n=e.target.getRootNode();if(!Q.current.nativeElement.contains(null!==(t=n.activeElement)&&void 0!==t?t:document.activeElement)){var r=b.findIndex((function(e){return!e}));r>=0&&Q.current.focus({index:r})}te(!0),null===$||void 0===$||$(e)},onClear:function(){ke(null),te(!1,{force:!0})},invalid:Te,onInvalid:je,onActiveOffset:Ke}))))}const zY=r.forwardRef(BY);function HY(e){var t=e.prefixCls,n=e.value,o=e.onRemove,i=e.removeIcon,a=void 0===i?"\xd7":i,l=e.formatDate,s=e.disabled,u=e.maxTagCount,d=e.placeholder,f="".concat(t,"-selector"),p="".concat(t,"-selection"),h="".concat(p,"-overflow");function g(e,t){return r.createElement("span",{className:c()("".concat(p,"-item")),title:"string"===typeof e?e:null},r.createElement("span",{className:"".concat(p,"-item-content")},e),!s&&t&&r.createElement("span",{onMouseDown:function(e){e.preventDefault()},onClick:t,className:"".concat(p,"-item-remove")},a))}return r.createElement("div",{className:f},r.createElement(Ex,{prefixCls:h,data:n,renderItem:function(e){return g(l(e),(function(t){t&&t.stopPropagation(),o(e)}))},renderRest:function(e){return g("+ ".concat(e.length," ..."))},itemKey:function(e){return l(e)},maxCount:u}),!n.length&&r.createElement("span",{className:"".concat(t,"-selection-placeholder")},d))}var WY=["id","open","clearIcon","suffixIcon","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","internalPicker","value","onChange","onSubmit","onInputChange","multiple","maxTagCount","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onMouseDown","required","aria-required","autoFocus","removeIcon"];function VY(e,t){e.id;var n=e.open,o=e.clearIcon,i=e.suffixIcon,a=(e.activeHelp,e.allHelp,e.focused),l=(e.onFocus,e.onBlur,e.onKeyDown,e.locale),s=e.generateConfig,u=e.placeholder,d=e.className,f=e.style,p=e.onClick,h=e.onClear,g=e.internalPicker,v=e.value,m=e.onChange,y=e.onSubmit,b=(e.onInputChange,e.multiple),x=e.maxTagCount,w=(e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid,e.disabled),S=e.invalid,O=(e.inputReadOnly,e.direction),_=(e.onOpenChange,e.onMouseDown),C=(e.required,e["aria-required"],e.autoFocus),E=e.removeIcon,P=bY(e,WY),M="rtl"===O,k=r.useContext(XV).prefixCls,A=r.useRef(),I=r.useRef();r.useImperativeHandle(t,(function(){return{nativeElement:A.current,focus:function(e){var t;null===(t=I.current)||void 0===t||t.focus(e)},blur:function(){var e;null===(e=I.current)||void 0===e||e.blur()}}}));var T=SY(P),j=xY(Mg(Mg({},e),{},{onChange:function(e){m([e])}}),(function(e){return{value:e.valueTexts[0]||"",active:a}})),L=OH(j,2),R=L[0],D=L[1],N=!(!o||!v.length||w),F=b?r.createElement(r.Fragment,null,r.createElement(HY,{prefixCls:k,value:v,onRemove:function(e){var t=v.filter((function(t){return t&&!CG(s,l,t,e,g)}));m(t),n||y()},formatDate:D,maxTagCount:x,disabled:w,removeIcon:E,placeholder:u}),r.createElement("input",{className:"".concat(k,"-multiple-input"),value:v.map(D).join(","),ref:I,readOnly:!0,autoFocus:C}),r.createElement(CY,{type:"suffix",icon:i}),N&&r.createElement(EY,{icon:o,onClear:h})):r.createElement(TY,bH({ref:I},R(),{autoFocus:C,suffixIcon:i,clearIcon:N&&r.createElement(EY,{icon:o,onClear:h}),showActiveCls:!1}));return r.createElement("div",bH({},T,{className:c()(k,Eg(Eg(Eg(Eg(Eg({},"".concat(k,"-multiple"),b),"".concat(k,"-focused"),a),"".concat(k,"-disabled"),w),"".concat(k,"-invalid"),S),"".concat(k,"-rtl"),M),d),style:f,ref:A,onClick:p,onMouseDown:function(e){var t;e.target!==(null===(t=I.current)||void 0===t?void 0:t.inputElement)&&e.preventDefault(),null===_||void 0===_||_(e)}}),F)}const GY=r.forwardRef(VY);function YY(e,t){var n=OH(IG(e),6),o=n[0],i=n[1],a=n[2],l=n[3],c=n[4],s=n[5],u=o,d=u.prefixCls,f=u.styles,p=u.classNames,h=u.order,g=u.defaultValue,v=u.value,m=u.needConfirm,y=u.onChange,b=u.onKeyDown,x=u.disabled,w=u.disabledDate,S=u.minDate,O=u.maxDate,_=u.defaultOpen,C=u.open,E=u.onOpenChange,P=u.locale,M=u.generateConfig,k=u.picker,A=u.showNow,I=u.showToday,T=u.showTime,j=u.mode,L=u.onPanelChange,R=u.onCalendarChange,D=u.onOk,N=u.multiple,F=u.defaultPickerValue,B=u.pickerValue,z=u.onPickerValueChange,H=u.inputReadOnly,W=u.suffixIcon,V=u.removeIcon,G=u.onFocus,Y=u.onBlur,U=u.presets,X=u.components,q=u.cellRender,K=u.dateRender,$=u.monthCellRender,Q=u.onClick,Z=jG(t);function J(e){return null===e?null:N?e:e[0]}var ee=QG(M,P,i),te=OH(TG(C,_,[x],E),2),ne=te[0],re=te[1],oe=OH(GG(M,P,l,!1,h,g,v,(function(e,t,n){if(R){var r=Mg({},n);delete r.range,R(J(e),J(t),r)}}),(function(e){null===D||void 0===D||D(J(e))})),5),ie=oe[0],ae=oe[1],le=oe[2],ce=oe[3],se=oe[4],ue=le(),de=OH(DG([x]),4),fe=de[0],pe=de[1],he=de[2],ge=de[3],ve=function(e){pe(!0),null===G||void 0===G||G(e,{})},me=function(e){pe(!1),null===Y||void 0===Y||Y(e,{})},ye=OH(pd(k,{value:j}),2),be=ye[0],xe=ye[1],we="date"===be&&T?"datetime":be,Se=UG(k,be,A,I),Oe=y&&function(e,t){y(J(e),J(t))},_e=OH(YG(Mg(Mg({},o),{},{onChange:Oe}),ie,ae,le,ce,[],l,fe,ne,s),2)[1],Ce=OH(oG(ue,s),2),Ee=Ce[0],Pe=Ce[1],Me=r.useMemo((function(){return Ee.some((function(e){return e}))}),[Ee]),ke=OH(BG(M,P,ue,[be],ne,ge,i,!1,F,B,QV(null===T||void 0===T?void 0:T.defaultOpenValue),(function(e,t){if(z){var n=Mg(Mg({},t),{},{mode:t.mode[0]});delete n.range,z(e[0],n)}}),S,O),2),Ae=ke[0],Ie=ke[1],Te=Ns((function(e,t,n){if(xe(t),L&&!1!==n){var r=e||ue[ue.length-1];L(r,t)}})),je=function(){_e(le()),re(!1,{force:!0})},Le=OH(r.useState(null),2),Re=Le[0],De=Le[1],Ne=OH(r.useState(null),2),Fe=Ne[0],Be=Ne[1],ze=r.useMemo((function(){var e=[Fe].concat(SH(ue)).filter((function(e){return e}));return N?e:e.slice(0,1)}),[ue,Fe,N]),He=r.useMemo((function(){return!N&&Fe?[Fe]:ue.filter((function(e){return e}))}),[ue,Fe,N]);r.useEffect((function(){ne||Be(null)}),[ne]);var We=LG(U),Ve=function(e){var t=N?ee(le(),e):[e];_e(t)&&!N&&re(!1,{force:!0})},Ge=rG(q,K,$),Ye=r.useMemo((function(){var e=Ys(o,!1);return Mg(Mg({},hu(o,[].concat(SH(Object.keys(e)),["onChange","onCalendarChange","style","className","onPanelChange"]))),{},{multiple:o.multiple})}),[o]),Ue=r.createElement(yY,bH({},Ye,{showNow:Se,showTime:T,disabledDate:w,onFocus:function(e){re(!0),ve(e)},onBlur:me,picker:k,mode:be,internalMode:we,onPanelChange:Te,format:c,value:ue,isInvalid:s,onChange:null,onSelect:function(e){he("panel");var t=N?ee(le(),e):[e];ce(t),m||a||i!==we||je()},pickerValue:Ae,defaultOpenValue:null===T||void 0===T?void 0:T.defaultOpenValue,onPickerValueChange:Ie,hoverValue:ze,onHover:function(e){Be(e),De("cell")},needConfirm:m,onSubmit:je,onOk:se,presets:We,onPresetHover:function(e){Be(e),De("preset")},onPresetSubmit:Ve,onNow:function(e){Ve(e)},cellRender:Ge})),Xe=r.useMemo((function(){return{prefixCls:d,locale:P,generateConfig:M,button:X.button,input:X.input}}),[d,P,M,X.button,X.input]);return ud((function(){ne&&void 0!==ge&&Te(null,k,!1)}),[ne,ge,k]),ud((function(){var e=he();ne||"input"!==e||(re(!1),je()),ne||!a||m||"panel"!==e||(re(!0),je())}),[ne]),r.createElement(XV.Provider,{value:Xe},r.createElement(KV,bH({},nG(o),{popupElement:Ue,popupStyle:f.popup,popupClassName:p.popup,visible:ne,onClose:function(){re(!1)}}),r.createElement(GY,bH({},o,{ref:Z,suffixIcon:W,removeIcon:V,activeHelp:!!Fe,allHelp:!!Fe&&"preset"===Re,focused:fe,onFocus:function(e){he("input"),re(!0,{inherit:!0}),ve(e)},onBlur:function(e){re(!1),me(e)},onKeyDown:function(e,t){"Tab"===e.key&&je(),null===b||void 0===b||b(e,t)},onSubmit:je,value:He,maskFormat:c,onChange:function(e){ce(e)},onInputChange:function(){he("input")},internalPicker:i,format:l,inputReadOnly:H,disabled:x,open:ne,onOpenChange:re,onClick:function(e){x||Z.current.nativeElement.contains(document.activeElement)||Z.current.focus(),re(!0),null===Q||void 0===Q||Q(e)},onClear:function(){_e(null),re(!1,{force:!0})},invalid:Me,onInvalid:function(e){Pe(e,0)}}))))}const UY=r.forwardRef(YY),XY=(e,t)=>{const{componentCls:n,controlHeight:r}=e,o=t?"".concat(n,"-").concat(t):"",i=V_(e);return[{["".concat(n,"-multiple").concat(o)]:{paddingBlock:i.containerPadding,paddingInlineStart:i.basePadding,minHeight:r,["".concat(n,"-selection-item")]:{height:i.itemHeight,lineHeight:yn(i.itemLineHeight)}}}]},qY=e=>{const{componentCls:t,calc:n,lineWidth:r}=e,o=Ui(e,{fontHeight:e.fontSize,selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS,controlHeight:e.controlHeightSM}),i=Ui(e,{fontHeight:n(e.multipleItemHeightLG).sub(n(r).mul(2).equal()).equal(),fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius,controlHeight:e.controlHeightLG});return[XY(o,"small"),XY(e),XY(i,"large"),{["".concat(t).concat(t,"-multiple")]:Object.assign(Object.assign({width:"100%",cursor:"text",["".concat(t,"-selector")]:{flex:"auto",padding:0,position:"relative","&:after":{margin:0},["".concat(t,"-selection-placeholder")]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:0,transform:"translateY(-50%)",transition:"all ".concat(e.motionDurationSlow),overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}}},G_(e)),{["".concat(t,"-multiple-input")]:{width:0,height:0,border:0,visibility:"hidden",position:"absolute",zIndex:-1}})}]},KY=e=>{const{pickerCellCls:t,pickerCellInnerCls:n,cellHeight:r,borderRadiusSM:o,motionDurationMid:i,cellHoverBg:a,lineWidth:l,lineType:c,colorPrimary:s,cellActiveWithRangeBg:u,colorTextLightSolid:d,colorTextDisabled:f,cellBgDisabled:p,colorFillSecondary:h}=e;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:r,transform:"translateY(-50%)",content:'""'},[n]:{position:"relative",zIndex:2,display:"inline-block",minWidth:r,height:r,lineHeight:yn(r),borderRadius:o,transition:"background ".concat(i)},["&:hover:not(".concat(t,"-in-view):not(").concat(t,"-disabled),\n    &:hover:not(").concat(t,"-selected):not(").concat(t,"-range-start):not(").concat(t,"-range-end):not(").concat(t,"-disabled)")]:{[n]:{background:a}},["&-in-view".concat(t,"-today ").concat(n)]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:"".concat(yn(l)," ").concat(c," ").concat(s),borderRadius:o,content:'""'}},["&-in-view".concat(t,"-in-range,\n      &-in-view").concat(t,"-range-start,\n      &-in-view").concat(t,"-range-end")]:{position:"relative",["&:not(".concat(t,"-disabled):before")]:{background:u}},["&-in-view".concat(t,"-selected,\n      &-in-view").concat(t,"-range-start,\n      &-in-view").concat(t,"-range-end")]:{["&:not(".concat(t,"-disabled) ").concat(n)]:{color:d,background:s},["&".concat(t,"-disabled ").concat(n)]:{background:h}},["&-in-view".concat(t,"-range-start:not(").concat(t,"-disabled):before")]:{insetInlineStart:"50%"},["&-in-view".concat(t,"-range-end:not(").concat(t,"-disabled):before")]:{insetInlineEnd:"50%"},["&-in-view".concat(t,"-range-start:not(").concat(t,"-range-end) ").concat(n)]:{borderStartStartRadius:o,borderEndStartRadius:o,borderStartEndRadius:0,borderEndEndRadius:0},["&-in-view".concat(t,"-range-end:not(").concat(t,"-range-start) ").concat(n)]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:o,borderEndEndRadius:o},"&-disabled":{color:f,cursor:"not-allowed",[n]:{background:"transparent"},"&::before":{background:p}},["&-disabled".concat(t,"-today ").concat(n,"::before")]:{borderColor:f}}},$Y=e=>{const{componentCls:t,pickerCellCls:n,pickerCellInnerCls:r,pickerYearMonthCellWidth:o,pickerControlIconSize:i,cellWidth:a,paddingSM:l,paddingXS:c,paddingXXS:s,colorBgContainer:u,lineWidth:d,lineType:f,borderRadiusLG:p,colorPrimary:h,colorTextHeading:g,colorSplit:v,pickerControlIconBorderWidth:m,colorIcon:y,textHeight:b,motionDurationMid:x,colorIconHover:w,fontWeightStrong:S,cellHeight:O,pickerCellPaddingVertical:_,colorTextDisabled:C,colorText:E,fontSize:P,motionDurationSlow:M,withoutTimeCellHeight:k,pickerQuarterPanelContentHeight:A,borderRadiusSM:I,colorTextLightSolid:T,cellHoverBg:j,timeColumnHeight:L,timeColumnWidth:R,timeCellHeight:D,controlItemBgActive:N,marginXXS:F,pickerDatePanelPaddingHorizontal:B,pickerControlIconMargin:z}=e,H=e.calc(a).mul(7).add(e.calc(B).mul(2)).equal();return{[t]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:u,borderRadius:p,outline:"none","&-focused":{borderColor:h},"&-rtl":{["".concat(t,"-prev-icon,\n              ").concat(t,"-super-prev-icon")]:{transform:"rotate(45deg)"},["".concat(t,"-next-icon,\n              ").concat(t,"-super-next-icon")]:{transform:"rotate(-135deg)"},["".concat(t,"-time-panel")]:{["".concat(t,"-content")]:{direction:"ltr","> *":{direction:"rtl"}}}}},"&-decade-panel,\n        &-year-panel,\n        &-quarter-panel,\n        &-month-panel,\n        &-week-panel,\n        &-date-panel,\n        &-time-panel":{display:"flex",flexDirection:"column",width:H},"&-header":{display:"flex",padding:"0 ".concat(yn(c)),color:g,borderBottom:"".concat(yn(d)," ").concat(f," ").concat(v),"> *":{flex:"none"},button:{padding:0,color:y,lineHeight:yn(b),background:"transparent",border:0,cursor:"pointer",transition:"color ".concat(x),fontSize:"inherit",display:"inline-flex",alignItems:"center",justifyContent:"center"},"> button":{minWidth:"1.6em",fontSize:P,"&:hover":{color:w},"&:disabled":{opacity:.25,pointerEvents:"none"}},"&-view":{flex:"auto",fontWeight:S,lineHeight:yn(b),"> button":{color:"inherit",fontWeight:"inherit","&:not(:first-child)":{marginInlineStart:c},"&:hover":{color:h}}}},"&-prev-icon,\n        &-next-icon,\n        &-super-prev-icon,\n        &-super-next-icon":{position:"relative",width:i,height:i,"&::before":{position:"absolute",top:0,insetInlineStart:0,width:i,height:i,border:"0 solid currentcolor",borderBlockWidth:"".concat(yn(m)," 0"),borderInlineWidth:"".concat(yn(m)," 0"),content:'""'}},"&-super-prev-icon,\n        &-super-next-icon":{"&::after":{position:"absolute",top:z,insetInlineStart:z,display:"inline-block",width:i,height:i,border:"0 solid currentcolor",borderBlockWidth:"".concat(yn(m)," 0"),borderInlineWidth:"".concat(yn(m)," 0"),content:'""'}},"&-prev-icon, &-super-prev-icon":{transform:"rotate(-45deg)"},"&-next-icon, &-super-next-icon":{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:O,fontWeight:"normal"},th:{height:e.calc(O).add(e.calc(_).mul(2)).equal(),color:E,verticalAlign:"middle"}},"&-cell":Object.assign({padding:"".concat(yn(_)," 0"),color:C,cursor:"pointer","&-in-view":{color:E}},KY(e)),"&-decade-panel,\n        &-year-panel,\n        &-quarter-panel,\n        &-month-panel":{["".concat(t,"-content")]:{height:e.calc(k).mul(4).equal()},[r]:{padding:"0 ".concat(yn(c))}},"&-quarter-panel":{["".concat(t,"-content")]:{height:A}},"&-decade-panel":{[r]:{padding:"0 ".concat(yn(e.calc(c).div(2).equal()))},["".concat(t,"-cell::before")]:{display:"none"}},"&-year-panel,\n        &-quarter-panel,\n        &-month-panel":{["".concat(t,"-body")]:{padding:"0 ".concat(yn(c))},[r]:{width:o}},"&-date-panel":{["".concat(t,"-body")]:{padding:"".concat(yn(c)," ").concat(yn(B))},["".concat(t,"-content th")]:{boxSizing:"border-box",padding:0}},"&-week-panel":{["".concat(t,"-cell")]:{["&:hover ".concat(r,",\n            &-selected ").concat(r,",\n            ").concat(r)]:{background:"transparent !important"}},"&-row":{td:{"&:before":{transition:"background ".concat(x)},"&:first-child:before":{borderStartStartRadius:I,borderEndStartRadius:I},"&:last-child:before":{borderStartEndRadius:I,borderEndEndRadius:I}},"&:hover td":{"&:before":{background:j}},"&-range-start td, &-range-end td, &-selected td, &-hover td":{["&".concat(n)]:{"&:before":{background:h},["&".concat(t,"-cell-week")]:{color:new Za(T).setAlpha(.5).toHexString()},[r]:{color:T}}},"&-range-hover td:before":{background:N}}},"&-week-panel, &-date-panel-show-week":{["".concat(t,"-body")]:{padding:"".concat(yn(c)," ").concat(yn(l))},["".concat(t,"-content th")]:{width:"auto"}},"&-datetime-panel":{display:"flex",["".concat(t,"-time-panel")]:{borderInlineStart:"".concat(yn(d)," ").concat(f," ").concat(v)},["".concat(t,"-date-panel,\n          ").concat(t,"-time-panel")]:{transition:"opacity ".concat(M)},"&-active":{["".concat(t,"-date-panel,\n            ").concat(t,"-time-panel")]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",["".concat(t,"-content")]:{display:"flex",flex:"auto",height:L},"&-column":{flex:"1 0 auto",width:R,margin:"".concat(yn(s)," 0"),padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:"background ".concat(x),overflowX:"hidden","&::-webkit-scrollbar":{width:8,backgroundColor:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:e.colorTextTertiary,borderRadius:e.borderRadiusSM},"&":{scrollbarWidth:"thin",scrollbarColor:"".concat(e.colorTextTertiary," transparent")},"&::after":{display:"block",height:e.calc("100%").sub(D).equal(),content:'""'},"&:not(:first-child)":{borderInlineStart:"".concat(yn(d)," ").concat(f," ").concat(v)},"&-active":{background:new Za(N).setAlpha(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,["&".concat(t,"-time-panel-cell")]:{marginInline:F,["".concat(t,"-time-panel-cell-inner")]:{display:"block",width:e.calc(R).sub(e.calc(F).mul(2)).equal(),height:D,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:e.calc(R).sub(D).div(2).equal(),color:E,lineHeight:yn(D),borderRadius:I,cursor:"pointer",transition:"background ".concat(x),"&:hover":{background:j}},"&-selected":{["".concat(t,"-time-panel-cell-inner")]:{background:N}},"&-disabled":{["".concat(t,"-time-panel-cell-inner")]:{color:C,background:"transparent",cursor:"not-allowed"}}}}}}}}},QY=e=>{const{componentCls:t,textHeight:n,lineWidth:r,paddingSM:o,antCls:i,colorPrimary:a,cellActiveWithRangeBg:l,colorPrimaryBorder:c,lineType:s,colorSplit:u}=e;return{["".concat(t,"-dropdown")]:{["".concat(t,"-footer")]:{borderTop:"".concat(yn(r)," ").concat(s," ").concat(u),"&-extra":{padding:"0 ".concat(yn(o)),lineHeight:yn(e.calc(n).sub(e.calc(r).mul(2)).equal()),textAlign:"start","&:not(:last-child)":{borderBottom:"".concat(yn(r)," ").concat(s," ").concat(u)}}},["".concat(t,"-panels + ").concat(t,"-footer ").concat(t,"-ranges")]:{justifyContent:"space-between"},["".concat(t,"-ranges")]:{marginBlock:0,paddingInline:yn(o),overflow:"hidden",textAlign:"start",listStyle:"none",display:"flex",justifyContent:"center",alignItems:"center","> li":{lineHeight:yn(e.calc(n).sub(e.calc(r).mul(2)).equal()),display:"inline-block"},["".concat(t,"-now-btn-disabled")]:{pointerEvents:"none",color:e.colorTextDisabled},["".concat(t,"-preset > ").concat(i,"-tag-blue")]:{color:a,background:l,borderColor:c,cursor:"pointer"},["".concat(t,"-ok")]:{paddingBlock:e.calc(r).mul(2).equal(),marginInlineStart:"auto"}}}}},ZY=e=>{const{componentCls:t}=e;return{[t]:[Object.assign(Object.assign(Object.assign({},Tl(e)),Fl(e)),Rl(e)),{"&-outlined":{["&".concat(t,"-multiple ").concat(t,"-selection-item")]:{background:e.multipleItemBg,border:"".concat(yn(e.lineWidth)," ").concat(e.lineType," ").concat(e.multipleItemBorderColor)}},"&-filled":{["&".concat(t,"-multiple ").concat(t,"-selection-item")]:{background:e.colorBgContainer,border:"".concat(yn(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorSplit)}},"&-borderless":{["&".concat(t,"-multiple ").concat(t,"-selection-item")]:{background:e.multipleItemBg,border:"".concat(yn(e.lineWidth)," ").concat(e.lineType," ").concat(e.multipleItemBorderColor)}}}]}},JY=(e,t,n,r)=>{const o=e.calc(n).add(2).equal(),i=e.max(e.calc(t).sub(o).div(2).equal(),0),a=e.max(e.calc(t).sub(o).sub(i).equal(),0);return{padding:"".concat(yn(i)," ").concat(yn(r)," ").concat(yn(a))}},eU=e=>{const{componentCls:t,colorError:n,colorWarning:r}=e;return{["".concat(t,":not(").concat(t,"-disabled):not([disabled])")]:{["&".concat(t,"-status-error")]:{["".concat(t,"-active-bar")]:{background:n}},["&".concat(t,"-status-warning")]:{["".concat(t,"-active-bar")]:{background:r}}}}},tU=e=>{const{componentCls:t,antCls:n,controlHeight:r,paddingInline:o,lineWidth:i,lineType:a,colorBorder:l,borderRadius:c,motionDurationMid:s,colorTextDisabled:u,colorTextPlaceholder:d,controlHeightLG:f,fontSizeLG:p,controlHeightSM:h,paddingInlineSM:g,paddingXS:v,marginXS:m,colorTextDescription:y,lineWidthBold:b,colorPrimary:x,motionDurationSlow:w,zIndexPopup:S,paddingXXS:O,sizePopupArrow:_,colorBgElevated:C,borderRadiusLG:E,boxShadowSecondary:P,borderRadiusSM:M,colorSplit:k,cellHoverBg:A,presetsWidth:I,presetsMaxWidth:T,boxShadowPopoverArrow:j,fontHeight:L,fontHeightLG:R,lineHeightLG:D}=e;return[{[t]:Object.assign(Object.assign(Object.assign({},Ur(e)),JY(e,r,L,o)),{position:"relative",display:"inline-flex",alignItems:"center",lineHeight:1,borderRadius:c,transition:"border ".concat(s,", box-shadow ").concat(s,", background ").concat(s),["".concat(t,"-input")]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",color:"inherit",fontSize:e.fontSize,lineHeight:e.lineHeight,transition:"all ".concat(s)},Hl(d)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,fontFamily:"inherit","&:focus":{boxShadow:"none",outline:0},"&[disabled]":{background:"transparent",color:u,cursor:"not-allowed"}}),"&-placeholder":{"> input":{color:d}}},"&-large":Object.assign(Object.assign({},JY(e,f,R,o)),{["".concat(t,"-input > input")]:{fontSize:p,lineHeight:D}}),"&-small":Object.assign({},JY(e,h,L,g)),["".concat(t,"-suffix")]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:e.calc(v).div(2).equal(),color:u,lineHeight:1,pointerEvents:"none",transition:"opacity ".concat(s,", color ").concat(s),"> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:m}}},["".concat(t,"-clear")]:{position:"absolute",top:"50%",insetInlineEnd:0,color:u,lineHeight:1,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:"opacity ".concat(s,", color ").concat(s),"> *":{verticalAlign:"top"},"&:hover":{color:y}},"&:hover":{["".concat(t,"-clear")]:{opacity:1},["".concat(t,"-suffix:not(:last-child)")]:{opacity:0}},["".concat(t,"-separator")]:{position:"relative",display:"inline-block",width:"1em",height:p,color:u,fontSize:p,verticalAlign:"top",cursor:"default",["".concat(t,"-focused &")]:{color:y},["".concat(t,"-range-separator &")]:{["".concat(t,"-disabled &")]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",["".concat(t,"-active-bar")]:{bottom:e.calc(i).mul(-1).equal(),height:b,background:x,opacity:0,transition:"all ".concat(w," ease-out"),pointerEvents:"none"},["&".concat(t,"-focused")]:{["".concat(t,"-active-bar")]:{opacity:1}},["".concat(t,"-range-separator")]:{alignItems:"center",padding:"0 ".concat(yn(v)),lineHeight:1}},"&-range, &-multiple":{["".concat(t,"-clear")]:{insetInlineEnd:o},["&".concat(t,"-small")]:{["".concat(t,"-clear")]:{insetInlineEnd:g}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},Ur(e)),$Y(e)),{pointerEvents:"none",position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:S,["&".concat(t,"-dropdown-hidden")]:{display:"none"},"&-rtl":{direction:"rtl"},["&".concat(t,"-dropdown-placement-bottomLeft,\n            &").concat(t,"-dropdown-placement-bottomRight")]:{["".concat(t,"-range-arrow")]:{top:0,display:"block",transform:"translateY(-100%)"}},["&".concat(t,"-dropdown-placement-topLeft,\n            &").concat(t,"-dropdown-placement-topRight")]:{["".concat(t,"-range-arrow")]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},["&".concat(n,"-slide-up-enter").concat(n,"-slide-up-enter-active").concat(t,"-dropdown-placement-topLeft,\n          &").concat(n,"-slide-up-enter").concat(n,"-slide-up-enter-active").concat(t,"-dropdown-placement-topRight,\n          &").concat(n,"-slide-up-appear").concat(n,"-slide-up-appear-active").concat(t,"-dropdown-placement-topLeft,\n          &").concat(n,"-slide-up-appear").concat(n,"-slide-up-appear-active").concat(t,"-dropdown-placement-topRight")]:{animationName:C_},["&".concat(n,"-slide-up-enter").concat(n,"-slide-up-enter-active").concat(t,"-dropdown-placement-bottomLeft,\n          &").concat(n,"-slide-up-enter").concat(n,"-slide-up-enter-active").concat(t,"-dropdown-placement-bottomRight,\n          &").concat(n,"-slide-up-appear").concat(n,"-slide-up-appear-active").concat(t,"-dropdown-placement-bottomLeft,\n          &").concat(n,"-slide-up-appear").concat(n,"-slide-up-appear-active").concat(t,"-dropdown-placement-bottomRight")]:{animationName:O_},["&".concat(n,"-slide-up-leave ").concat(t,"-panel-container")]:{pointerEvents:"none"},["&".concat(n,"-slide-up-leave").concat(n,"-slide-up-leave-active").concat(t,"-dropdown-placement-topLeft,\n          &").concat(n,"-slide-up-leave").concat(n,"-slide-up-leave-active").concat(t,"-dropdown-placement-topRight")]:{animationName:E_},["&".concat(n,"-slide-up-leave").concat(n,"-slide-up-leave-active").concat(t,"-dropdown-placement-bottomLeft,\n          &").concat(n,"-slide-up-leave").concat(n,"-slide-up-leave-active").concat(t,"-dropdown-placement-bottomRight")]:{animationName:__},["".concat(t,"-panel > ").concat(t,"-time-panel")]:{paddingTop:O},["".concat(t,"-range-wrapper")]:{display:"flex",position:"relative"},["".concat(t,"-range-arrow")]:Object.assign(Object.assign({position:"absolute",zIndex:1,display:"none",paddingInline:e.calc(o).mul(1.5).equal(),boxSizing:"content-box",transition:"all ".concat(w," ease-out")},Tm(e,C,j)),{"&:before":{insetInlineStart:e.calc(o).mul(1.5).equal()}}),["".concat(t,"-panel-container")]:{overflow:"hidden",verticalAlign:"top",background:C,borderRadius:E,boxShadow:P,transition:"margin ".concat(w),display:"inline-block",pointerEvents:"auto",["".concat(t,"-panel-layout")]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},["".concat(t,"-presets")]:{display:"flex",flexDirection:"column",minWidth:I,maxWidth:T,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:v,borderInlineEnd:"".concat(yn(i)," ").concat(a," ").concat(k),li:Object.assign(Object.assign({},Yr),{borderRadius:M,paddingInline:v,paddingBlock:e.calc(h).sub(L).div(2).equal(),cursor:"pointer",transition:"all ".concat(w),"+ li":{marginTop:m},"&:hover":{background:A}})}},["".concat(t,"-panels")]:{display:"inline-flex",flexWrap:"nowrap","&:last-child":{["".concat(t,"-panel")]:{borderWidth:0}}},["".concat(t,"-panel")]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,["".concat(t,"-content, table")]:{textAlign:"center"},"&-focused":{borderColor:l}}}}),"&-dropdown-range":{padding:"".concat(yn(e.calc(_).mul(2).div(3).equal())," 0"),"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",["".concat(t,"-separator")]:{transform:"rotate(180deg)"},["".concat(t,"-footer")]:{"&-extra":{direction:"rtl"}}}})},T_(e,"slide-up"),T_(e,"slide-down"),z_(e,"move-up"),z_(e,"move-down")]},nU=Ol("DatePicker",(e=>{const t=Ui(El(e),(e=>{const{componentCls:t,controlHeightLG:n,paddingXXS:r,padding:o}=e;return{pickerCellCls:"".concat(t,"-cell"),pickerCellInnerCls:"".concat(t,"-cell-inner"),pickerYearMonthCellWidth:e.calc(n).mul(1.5).equal(),pickerQuarterPanelContentHeight:e.calc(n).mul(1.4).equal(),pickerCellPaddingVertical:e.calc(r).add(e.calc(r).div(2)).equal(),pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconMargin:4,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:e.calc(o).add(e.calc(r).div(2)).equal()}})(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[QY(t),tU(t),ZY(t),eU(t),qY(t),Jr(e,{focusElCls:"".concat(e.componentCls,"-focused")})]}),(e=>Object.assign(Object.assign(Object.assign(Object.assign({},Pl(e)),(e=>{const{colorBgContainerDisabled:t,controlHeight:n,controlHeightSM:r,controlHeightLG:o,paddingXXS:i,lineWidth:a}=e,l=2*i,c=2*a,s=Math.min(n-l,n-c),u=Math.min(r-l,r-c),d=Math.min(o-l,o-c);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(i/2),cellHoverBg:e.controlItemBgHover,cellActiveWithRangeBg:e.controlItemBgActive,cellHoverWithRangeBg:new Za(e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new Za(e.colorPrimary).lighten(20).toHexString(),cellBgDisabled:t,timeColumnWidth:1.4*o,timeColumnHeight:224,timeCellHeight:28,cellWidth:1.5*r,cellHeight:r,textHeight:o,withoutTimeCellHeight:1.65*o,multipleItemBg:e.colorFillSecondary,multipleItemBorderColor:"transparent",multipleItemHeight:s,multipleItemHeightSM:u,multipleItemHeightLG:d,multipleSelectorBgDisabled:t,multipleItemColorDisabled:e.colorTextDisabled,multipleItemBorderColorDisabled:"transparent"}})(e)),Im(e)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50})));function rU(e,t,n){return void 0!==n?n:"year"===t&&e.lang.yearPlaceholder?e.lang.yearPlaceholder:"quarter"===t&&e.lang.quarterPlaceholder?e.lang.quarterPlaceholder:"month"===t&&e.lang.monthPlaceholder?e.lang.monthPlaceholder:"week"===t&&e.lang.weekPlaceholder?e.lang.weekPlaceholder:"time"===t&&e.timePickerLocale.placeholder?e.timePickerLocale.placeholder:e.lang.placeholder}function oU(e,t,n){return void 0!==n?n:"year"===t&&e.lang.yearPlaceholder?e.lang.rangeYearPlaceholder:"quarter"===t&&e.lang.quarterPlaceholder?e.lang.rangeQuarterPlaceholder:"month"===t&&e.lang.monthPlaceholder?e.lang.rangeMonthPlaceholder:"week"===t&&e.lang.weekPlaceholder?e.lang.rangeWeekPlaceholder:"time"===t&&e.timePickerLocale.placeholder?e.timePickerLocale.rangePlaceholder:e.lang.rangePlaceholder}function iU(e,t){const n={adjustX:1,adjustY:1};switch(t){case"bottomLeft":return{points:["tl","bl"],offset:[0,4],overflow:n};case"bottomRight":return{points:["tr","br"],offset:[0,4],overflow:n};case"topLeft":return{points:["bl","tl"],offset:[0,-4],overflow:n};case"topRight":return{points:["br","tr"],offset:[0,-4],overflow:n};default:return{points:"rtl"===e?["tr","br"]:["tl","bl"],offset:[0,4],overflow:n}}}function aU(e,t){const{allowClear:n=!0}=e,{clearIcon:o,removeIcon:i}=gC(Object.assign(Object.assign({},e),{prefixCls:t,componentName:"DatePicker"}));return[r.useMemo((()=>{if(!1===n)return!1;const e=!0===n?{}:n;return Object.assign({clearIcon:o},e)}),[n,o]),i]}const[lU,cU]=["week","WeekPicker"],[sU,uU]=["month","MonthPicker"],[dU,fU]=["year","YearPicker"],[pU,hU]=["quarter","QuarterPicker"],[gU,vU]=["time","TimePicker"],mU=e=>r.createElement(lh,Object.assign({size:"small",type:"primary"},e));function yU(e){return(0,r.useMemo)((()=>Object.assign({button:mU},e)),[e])}var bU=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 xU=e=>{const t=(0,r.forwardRef)(((t,n)=>{var o;const{prefixCls:i,getPopupContainer:a,components:l,className:s,style:u,placement:d,size:p,disabled:h,bordered:g=!0,placeholder:v,popupClassName:m,dropdownClassName:y,status:b,rootClassName:x,variant:w,picker:S}=t,O=bU(t,["prefixCls","getPopupContainer","components","className","style","placement","size","disabled","bordered","placeholder","popupClassName","dropdownClassName","status","rootClassName","variant","picker"]),_=r.useRef(null),{getPrefixCls:C,direction:E,getPopupContainer:P,rangePicker:M}=(0,r.useContext)(f),k=C("picker",i),{compactSize:A,compactItemClassnames:I}=Vc(k,E),T=C(),[j,L]=As("rangePicker",w,g),R=ks(k),[D,N,F]=nU(k,R);const[B]=aU(t,k),z=yU(l),H=Dc((e=>{var t;return null!==(t=null!==p&&void 0!==p?p:A)&&void 0!==t?t:e})),W=r.useContext(Ms),V=null!==h&&void 0!==h?h:W,G=(0,r.useContext)(It),{hasFeedback:Y,status:U,feedbackIcon:X}=G,q=r.createElement(r.Fragment,null,S===gU?r.createElement(gH,null):r.createElement(fH,null),Y&&X);(0,r.useImperativeHandle)(n,(()=>_.current));const[K]=Lg("Calendar",Ig),$=Object.assign(Object.assign({},K),t.locale),[Q]=_m("DatePicker",null===(o=t.popupStyle)||void 0===o?void 0:o.zIndex);return D(r.createElement(Xc,{space:!0},r.createElement(zY,Object.assign({separator:r.createElement("span",{"aria-label":"to",className:"".concat(k,"-separator")},r.createElement(yH,null)),disabled:V,ref:_,popupAlign:iU(E,d),placement:d,placeholder:oU($,S,v),suffixIcon:q,prevIcon:r.createElement("span",{className:"".concat(k,"-prev-icon")}),nextIcon:r.createElement("span",{className:"".concat(k,"-next-icon")}),superPrevIcon:r.createElement("span",{className:"".concat(k,"-super-prev-icon")}),superNextIcon:r.createElement("span",{className:"".concat(k,"-super-next-icon")}),transitionName:"".concat(T,"-slide-up"),picker:S},O,{className:c()({["".concat(k,"-").concat(H)]:H,["".concat(k,"-").concat(j)]:L},_s(k,Cs(U,b),Y),N,I,s,null===M||void 0===M?void 0:M.className,F,R,x),style:Object.assign(Object.assign({},null===M||void 0===M?void 0:M.style),u),locale:$.lang,prefixCls:k,getPopupContainer:a||P,generateConfig:e,components:z,direction:E,classNames:{popup:c()(N,m||y,F,R,x)},styles:{popup:Object.assign(Object.assign({},t.popupStyle),{zIndex:Q})},allowClear:B}))))}));return t};var wU=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 SU=e=>{const t=(t,n)=>{const o=n===vU?"timePicker":"datePicker",i=(0,r.forwardRef)(((n,i)=>{var a;const{prefixCls:l,getPopupContainer:s,components:u,style:d,className:p,rootClassName:h,size:g,bordered:v,placement:m,placeholder:y,popupClassName:b,dropdownClassName:x,disabled:w,status:S,variant:O,onCalendarChange:_}=n,C=wU(n,["prefixCls","getPopupContainer","components","style","className","rootClassName","size","bordered","placement","placeholder","popupClassName","dropdownClassName","disabled","status","variant","onCalendarChange"]),{getPrefixCls:E,direction:P,getPopupContainer:M,[o]:k}=(0,r.useContext)(f),A=E("picker",l),{compactSize:I,compactItemClassnames:T}=Vc(A,P),j=r.useRef(null),[L,R]=As("datePicker",O,v),D=ks(A),[N,F,B]=nU(A,D);(0,r.useImperativeHandle)(i,(()=>j.current));const z=t||n.picker,H=E(),{onSelect:W,multiple:V}=C,G=W&&"time"===t&&!V;const[Y,U]=aU(n,A),X=yU(u),q=Dc((e=>{var t;return null!==(t=null!==g&&void 0!==g?g:I)&&void 0!==t?t:e})),K=r.useContext(Ms),$=null!==w&&void 0!==w?w:K,Q=(0,r.useContext)(It),{hasFeedback:Z,status:J,feedbackIcon:ee}=Q,te=r.createElement(r.Fragment,null,"time"===z?r.createElement(gH,null):r.createElement(fH,null),Z&&ee),[ne]=Lg("DatePicker",Ig),re=Object.assign(Object.assign({},ne),n.locale),[oe]=_m("DatePicker",null===(a=n.popupStyle)||void 0===a?void 0:a.zIndex);return N(r.createElement(Xc,{space:!0},r.createElement(UY,Object.assign({ref:j,placeholder:rU(re,z,y),suffixIcon:te,dropdownAlign:iU(P,m),placement:m,prevIcon:r.createElement("span",{className:"".concat(A,"-prev-icon")}),nextIcon:r.createElement("span",{className:"".concat(A,"-next-icon")}),superPrevIcon:r.createElement("span",{className:"".concat(A,"-super-prev-icon")}),superNextIcon:r.createElement("span",{className:"".concat(A,"-super-next-icon")}),transitionName:"".concat(H,"-slide-up"),picker:t,onCalendarChange:(e,t,n)=>{null===_||void 0===_||_(e,t,n),G&&W(e)}},{showToday:!0},C,{locale:re.lang,className:c()({["".concat(A,"-").concat(q)]:q,["".concat(A,"-").concat(L)]:R},_s(A,Cs(J,S),Z),F,T,null===k||void 0===k?void 0:k.className,p,B,D,h),style:Object.assign(Object.assign({},null===k||void 0===k?void 0:k.style),d),prefixCls:A,getPopupContainer:s||M,generateConfig:e,components:X,direction:P,disabled:$,classNames:{popup:c()(F,B,D,h,b||x)},styles:{popup:Object.assign(Object.assign({},n.popupStyle),{zIndex:oe})},allowClear:Y,removeIcon:U}))))}));return i},n=t(),o=t(lU,cU),i=t(sU,uU),a=t(dU,fU),l=t(pU,hU);return{DatePicker:n,WeekPicker:o,MonthPicker:i,YearPicker:a,TimePicker:t(gU,vU),QuarterPicker:l}},OU=e=>{const{DatePicker:t,WeekPicker:n,MonthPicker:r,YearPicker:o,TimePicker:i,QuarterPicker:a}=SU(e),l=xU(e),c=t;return c.WeekPicker=n,c.MonthPicker=r,c.YearPicker=o,c.RangePicker=l,c.TimePicker=i,c.QuarterPicker=a,c},_U=OU(sH);function CU(e){const t=iU(e.direction,e.placement);return t.overflow.adjustY=!1,t.overflow.adjustX=!1,Object.assign(Object.assign({},e),{dropdownAlign:t})}const EU=d_(_U,"picker",null,CU);_U._InternalPanelDoNotUseOrYouWillBeFired=EU;const PU=d_(_U.RangePicker,"picker",null,CU);_U._InternalRangePanelDoNotUseOrYouWillBeFired=PU,_U.generatePicker=OU;const MU=_U;const kU={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"};var AU=function(e,t){return r.createElement(xs,qc({},e,{ref:t,icon:kU}))};const IU=r.forwardRef(AU);const TU={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M899.6 276.5L705 396.4 518.4 147.5a8.06 8.06 0 00-12.9 0L319 396.4 124.3 276.5c-5.7-3.5-13.1 1.2-12.2 7.9L188.5 865c1.1 7.9 7.9 14 16 14h615.1c8 0 14.9-6 15.9-14l76.4-580.6c.8-6.7-6.5-11.4-12.3-7.9zM512 734.2c-62.1 0-112.6-50.5-112.6-112.6S449.9 509 512 509s112.6 50.5 112.6 112.6S574.1 734.2 512 734.2zm0-160.9c-26.6 0-48.2 21.6-48.2 48.3 0 26.6 21.6 48.3 48.2 48.3s48.2-21.6 48.2-48.3c0-26.6-21.6-48.3-48.2-48.3z"}}]},name:"crown",theme:"filled"};var jU=function(e,t){return r.createElement(xs,qc({},e,{ref:t,icon:TU}))};const LU=r.forwardRef(jU);var RU=n(446),DU=n.n(RU),NU=n(9223),FU=n.n(NU),BU=n(199),zU=n.n(BU);function HU(e,t){return function(){return e.apply(t,arguments)}}const{toString:WU}=Object.prototype,{getPrototypeOf:VU}=Object,GU=(e=>t=>{const n=WU.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),YU=e=>(e=e.toLowerCase(),t=>GU(t)===e),UU=e=>t=>typeof t===e,{isArray:XU}=Array,qU=UU("undefined");const KU=YU("ArrayBuffer");const $U=UU("string"),QU=UU("function"),ZU=UU("number"),JU=e=>null!==e&&"object"===typeof e,eX=e=>{if("object"!==GU(e))return!1;const t=VU(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},tX=YU("Date"),nX=YU("File"),rX=YU("Blob"),oX=YU("FileList"),iX=YU("URLSearchParams"),[aX,lX,cX,sX]=["ReadableStream","Request","Response","Headers"].map(YU);function uX(e,t){let n,r,{allOwnKeys:o=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),XU(e))for(n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else{const r=o?Object.getOwnPropertyNames(e):Object.keys(e),i=r.length;let a;for(n=0;n<i;n++)a=r[n],t.call(null,e[a],a,e)}}function dX(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const fX="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:global,pX=e=>!qU(e)&&e!==fX;const hX=(gX="undefined"!==typeof Uint8Array&&VU(Uint8Array),e=>gX&&e instanceof gX);var gX;const vX=YU("HTMLFormElement"),mX=(e=>{let{hasOwnProperty:t}=e;return(e,n)=>t.call(e,n)})(Object.prototype),yX=YU("RegExp"),bX=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};uX(n,((n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)})),Object.defineProperties(e,r)},xX="abcdefghijklmnopqrstuvwxyz",wX="0123456789",SX={DIGIT:wX,ALPHA:xX,ALPHA_DIGIT:xX+xX.toUpperCase()+wX};const OX=YU("AsyncFunction"),_X=(CX="function"===typeof setImmediate,EX=QU(fX.postMessage),CX?setImmediate:EX?((e,t)=>(fX.addEventListener("message",(n=>{let{source:r,data:o}=n;r===fX&&o===e&&t.length&&t.shift()()}),!1),n=>{t.push(n),fX.postMessage(e,"*")}))("axios@".concat(Math.random()),[]):e=>setTimeout(e));var CX,EX;const PX="undefined"!==typeof queueMicrotask?queueMicrotask.bind(fX):"undefined"!==typeof process&&process.nextTick||_X,MX={isArray:XU,isArrayBuffer:KU,isBuffer:function(e){return null!==e&&!qU(e)&&null!==e.constructor&&!qU(e.constructor)&&QU(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"===typeof FormData&&e instanceof FormData||QU(e.append)&&("formdata"===(t=GU(e))||"object"===t&&QU(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&KU(e.buffer),t},isString:$U,isNumber:ZU,isBoolean:e=>!0===e||!1===e,isObject:JU,isPlainObject:eX,isReadableStream:aX,isRequest:lX,isResponse:cX,isHeaders:sX,isUndefined:qU,isDate:tX,isFile:nX,isBlob:rX,isRegExp:yX,isFunction:QU,isStream:e=>JU(e)&&QU(e.pipe),isURLSearchParams:iX,isTypedArray:hX,isFileList:oX,forEach:uX,merge:function e(){const{caseless:t}=pX(this)&&this||{},n={},r=(r,o)=>{const i=t&&dX(n,o)||o;eX(n[i])&&eX(r)?n[i]=e(n[i],r):eX(r)?n[i]=e({},r):XU(r)?n[i]=r.slice():n[i]=r};for(let o=0,i=arguments.length;o<i;o++)arguments[o]&&uX(arguments[o],r);return n},extend:function(e,t,n){let{allOwnKeys:r}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return uX(t,((t,r)=>{n&&QU(t)?e[r]=HU(t,n):e[r]=t}),{allOwnKeys:r}),e},trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,i,a;const l={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],r&&!r(a,e,t)||l[a]||(t[a]=e[a],l[a]=!0);e=!1!==n&&VU(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:GU,kindOfTest:YU,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(XU(e))return e;let t=e.length;if(!ZU(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:vX,hasOwnProperty:mX,hasOwnProp:mX,reduceDescriptors:bX,freezeMethods:e=>{bX(e,((t,n)=>{if(QU(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];QU(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return XU(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:dX,global:fX,isContextDefined:pX,ALPHABET:SX,generateString:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:16,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:SX.ALPHA_DIGIT,n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&QU(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(JU(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const o=XU(e)?[]:{};return uX(e,((e,t)=>{const i=n(e,r+1);!qU(i)&&(o[t]=i)})),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:OX,isThenable:e=>e&&(JU(e)||QU(e))&&QU(e.then)&&QU(e.catch),setImmediate:_X,asap:PX};function kX(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}MX.inherits(kX,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:MX.toJSONObject(this.config),code:this.code,status:this.status}}});const AX=kX.prototype,IX={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{IX[e]={value:e}})),Object.defineProperties(kX,IX),Object.defineProperty(AX,"isAxiosError",{value:!0}),kX.from=(e,t,n,r,o,i)=>{const a=Object.create(AX);return MX.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),kX.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const TX=kX;function jX(e){return MX.isPlainObject(e)||MX.isArray(e)}function LX(e){return MX.endsWith(e,"[]")?e.slice(0,-2):e}function RX(e,t,n){return e?e.concat(t).map((function(e,t){return e=LX(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const DX=MX.toFlatObject(MX,{},null,(function(e){return/^is[A-Z]/.test(e)}));const NX=function(e,t,n){if(!MX.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=MX.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!MX.isUndefined(t[e])}))).metaTokens,o=n.visitor||s,i=n.dots,a=n.indexes,l=(n.Blob||"undefined"!==typeof Blob&&Blob)&&MX.isSpecCompliantForm(t);if(!MX.isFunction(o))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(MX.isDate(e))return e.toISOString();if(!l&&MX.isBlob(e))throw new TX("Blob is not supported. Use a Buffer instead.");return MX.isArrayBuffer(e)||MX.isTypedArray(e)?l&&"function"===typeof Blob?new Blob([e]):Buffer.from(e):e}function s(e,n,o){let l=e;if(e&&!o&&"object"===typeof e)if(MX.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(MX.isArray(e)&&function(e){return MX.isArray(e)&&!e.some(jX)}(e)||(MX.isFileList(e)||MX.endsWith(n,"[]"))&&(l=MX.toArray(e)))return n=LX(n),l.forEach((function(e,r){!MX.isUndefined(e)&&null!==e&&t.append(!0===a?RX([n],r,i):null===a?n:n+"[]",c(e))})),!1;return!!jX(e)||(t.append(RX(o,n,i),c(e)),!1)}const u=[],d=Object.assign(DX,{defaultVisitor:s,convertValue:c,isVisitable:jX});if(!MX.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!MX.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),MX.forEach(n,(function(n,i){!0===(!(MX.isUndefined(n)||null===n)&&o.call(t,n,MX.isString(i)?i.trim():i,r,d))&&e(n,r?r.concat(i):[i])})),u.pop()}}(e),t};function FX(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function BX(e,t){this._pairs=[],e&&NX(e,this,t)}const zX=BX.prototype;zX.append=function(e,t){this._pairs.push([e,t])},zX.toString=function(e){const t=e?function(t){return e.call(this,t,FX)}:FX;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};const HX=BX;function WX(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function VX(e,t,n){if(!t)return e;const r=n&&n.encode||WX,o=n&&n.serialize;let i;if(i=o?o(t,n):MX.isURLSearchParams(t)?t.toString():new HX(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}const GX=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){MX.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},YX={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},UX={isBrowser:!0,classes:{URLSearchParams:"undefined"!==typeof URLSearchParams?URLSearchParams:HX,FormData:"undefined"!==typeof FormData?FormData:null,Blob:"undefined"!==typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},XX="undefined"!==typeof window&&"undefined"!==typeof document,qX="object"===typeof navigator&&navigator||void 0,KX=XX&&(!qX||["ReactNative","NativeScript","NS"].indexOf(qX.product)<0),$X="undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"===typeof self.importScripts,QX=XX&&window.location.href||"http://localhost",ZX={...e,...UX};const JX=function(e){function t(e,n,r,o){let i=e[o++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),l=o>=e.length;if(i=!i&&MX.isArray(r)?r.length:i,l)return MX.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a;r[i]&&MX.isObject(r[i])||(r[i]=[]);return t(e,n,r[i],o)&&MX.isArray(r[i])&&(r[i]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}(r[i])),!a}if(MX.isFormData(e)&&MX.isFunction(e.entries)){const n={};return MX.forEachEntry(e,((e,r)=>{t(function(e){return MX.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null};const eq={transitional:YX,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=MX.isObject(e);o&&MX.isHTMLForm(e)&&(e=new FormData(e));if(MX.isFormData(e))return r?JSON.stringify(JX(e)):e;if(MX.isArrayBuffer(e)||MX.isBuffer(e)||MX.isStream(e)||MX.isFile(e)||MX.isBlob(e)||MX.isReadableStream(e))return e;if(MX.isArrayBufferView(e))return e.buffer;if(MX.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return NX(e,new ZX.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return ZX.isNode&&MX.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=MX.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return NX(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(MX.isString(e))try{return(t||JSON.parse)(e),MX.trim(e)}catch(N1){if("SyntaxError"!==N1.name)throw N1}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||eq.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(MX.isResponse(e)||MX.isReadableStream(e))return e;if(e&&MX.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(N1){if(n){if("SyntaxError"===N1.name)throw TX.from(N1,TX.ERR_BAD_RESPONSE,this,null,this.response);throw N1}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ZX.classes.FormData,Blob:ZX.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};MX.forEach(["delete","get","head","post","put","patch"],(e=>{eq.headers[e]={}}));const tq=eq,nq=MX.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),rq=Symbol("internals");function oq(e){return e&&String(e).trim().toLowerCase()}function iq(e){return!1===e||null==e?e:MX.isArray(e)?e.map(iq):String(e)}function aq(e,t,n,r,o){return MX.isFunction(r)?r.call(this,t,n):(o&&(t=n),MX.isString(t)?MX.isString(r)?-1!==t.indexOf(r):MX.isRegExp(r)?r.test(t):void 0:void 0)}class lq{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=oq(t);if(!o)throw new Error("header name must be a non-empty string");const i=MX.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=iq(e))}const i=(e,t)=>MX.forEach(e,((e,n)=>o(e,n,t)));if(MX.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(MX.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&nq[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t);else if(MX.isHeaders(e))for(const[a,l]of e.entries())o(l,a,n);else null!=e&&o(t,e,n);return this}get(e,t){if(e=oq(e)){const n=MX.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(MX.isFunction(t))return t.call(this,e,n);if(MX.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=oq(e)){const n=MX.findKey(this,e);return!(!n||void 0===this[n]||t&&!aq(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=oq(e)){const o=MX.findKey(n,e);!o||t&&!aq(0,n[o],o,t)||(delete n[o],r=!0)}}return MX.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!aq(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return MX.forEach(this,((r,o)=>{const i=MX.findKey(n,o);if(i)return t[i]=iq(r),void delete t[o];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(o):String(o).trim();a!==o&&delete t[o],t[a]=iq(r),n[a]=!0})),this}concat(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.constructor.concat(this,...t)}toJSON(e){const t=Object.create(null);return MX.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&MX.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((e=>{let[t,n]=e;return t+": "+n})).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e){const t=new this(e);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return r.forEach((e=>t.set(e))),t}static accessor(e){const t=(this[rq]=this[rq]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=oq(e);t[r]||(!function(e,t){const n=MX.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})}))}(n,e),t[r]=!0)}return MX.isArray(e)?e.forEach(r):r(e),this}}lq.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),MX.reduceDescriptors(lq.prototype,((e,t)=>{let{value:n}=e,r=t[0].toUpperCase()+t.slice(1);return{get:()=>n,set(e){this[r]=e}}})),MX.freezeMethods(lq);const cq=lq;function sq(e,t){const n=this||tq,r=t||n,o=cq.from(r.headers);let i=r.data;return MX.forEach(e,(function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function uq(e){return!(!e||!e.__CANCEL__)}function dq(e,t,n){TX.call(this,null==e?"canceled":e,TX.ERR_CANCELED,t,n),this.name="CanceledError"}MX.inherits(dq,TX,{__CANCEL__:!0});const fq=dq;function pq(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new TX("Request failed with status code "+n.status,[TX.ERR_BAD_REQUEST,TX.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}const hq=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,i=0,a=0;return t=void 0!==t?t:1e3,function(l){const c=Date.now(),s=r[a];o||(o=c),n[i]=l,r[i]=c;let u=a,d=0;for(;u!==i;)d+=n[u++],u%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),c-o<t)return;const f=s&&c-s;return f?Math.round(1e3*d/f):void 0}};const gq=function(e,t){let n,r,o=0,i=1e3/t;const a=function(t){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Date.now();o=i,n=null,r&&(clearTimeout(r),r=null),e.apply(null,t)};return[function(){const e=Date.now(),t=e-o;for(var l=arguments.length,c=new Array(l),s=0;s<l;s++)c[s]=arguments[s];t>=i?a(c,e):(n=c,r||(r=setTimeout((()=>{r=null,a(n)}),i-t)))},()=>n&&a(n)]},vq=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3,r=0;const o=hq(50,250);return gq((n=>{const i=n.loaded,a=n.lengthComputable?n.total:void 0,l=i-r,c=o(l);r=i;e({loaded:i,total:a,progress:a?i/a:void 0,bytes:l,rate:c||void 0,estimated:c&&a&&i<=a?(a-i)/c:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})}),n)},mq=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},yq=e=>function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return MX.asap((()=>e(...n)))},bq=ZX.hasStandardBrowserEnv?function(){const e=ZX.navigator&&/(msie|trident)/i.test(ZX.navigator.userAgent),t=document.createElement("a");let n;function r(n){let r=n;return e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(e){const t=MX.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0},xq=ZX.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];MX.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),MX.isString(r)&&a.push("path="+r),MX.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function wq(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Sq=e=>e instanceof cq?{...e}:e;function Oq(e,t){t=t||{};const n={};function r(e,t,n){return MX.isPlainObject(e)&&MX.isPlainObject(t)?MX.merge.call({caseless:n},e,t):MX.isPlainObject(t)?MX.merge({},t):MX.isArray(t)?t.slice():t}function o(e,t,n){return MX.isUndefined(t)?MX.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function i(e,t){if(!MX.isUndefined(t))return r(void 0,t)}function a(e,t){return MX.isUndefined(t)?MX.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function l(n,o,i){return i in t?r(n,o):i in e?r(void 0,n):void 0}const c={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:l,headers:(e,t)=>o(Sq(e),Sq(t),!0)};return MX.forEach(Object.keys(Object.assign({},e,t)),(function(r){const i=c[r]||o,a=i(e[r],t[r],r);MX.isUndefined(a)&&i!==l||(n[r]=a)})),n}const _q=e=>{const t=Oq({},e);let n,{data:r,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:a,headers:l,auth:c}=t;if(t.headers=l=cq.from(l),t.url=VX(wq(t.baseURL,t.url),e.params,e.paramsSerializer),c&&l.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),MX.isFormData(r))if(ZX.hasStandardBrowserEnv||ZX.hasStandardBrowserWebWorkerEnv)l.setContentType(void 0);else if(!1!==(n=l.getContentType())){const[e,...t]=n?n.split(";").map((e=>e.trim())).filter(Boolean):[];l.setContentType([e||"multipart/form-data",...t].join("; "))}if(ZX.hasStandardBrowserEnv&&(o&&MX.isFunction(o)&&(o=o(t)),o||!1!==o&&bq(t.url))){const e=i&&a&&xq.read(a);e&&l.set(i,e)}return t},Cq="undefined"!==typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const r=_q(e);let o=r.data;const i=cq.from(r.headers).normalize();let a,l,c,s,u,{responseType:d,onUploadProgress:f,onDownloadProgress:p}=r;function h(){s&&s(),u&&u(),r.cancelToken&&r.cancelToken.unsubscribe(a),r.signal&&r.signal.removeEventListener("abort",a)}let g=new XMLHttpRequest;function v(){if(!g)return;const r=cq.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders());pq((function(e){t(e),h()}),(function(e){n(e),h()}),{data:d&&"text"!==d&&"json"!==d?g.response:g.responseText,status:g.status,statusText:g.statusText,headers:r,config:e,request:g}),g=null}g.open(r.method.toUpperCase(),r.url,!0),g.timeout=r.timeout,"onloadend"in g?g.onloadend=v:g.onreadystatechange=function(){g&&4===g.readyState&&(0!==g.status||g.responseURL&&0===g.responseURL.indexOf("file:"))&&setTimeout(v)},g.onabort=function(){g&&(n(new TX("Request aborted",TX.ECONNABORTED,e,g)),g=null)},g.onerror=function(){n(new TX("Network Error",TX.ERR_NETWORK,e,g)),g=null},g.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||YX;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new TX(t,o.clarifyTimeoutError?TX.ETIMEDOUT:TX.ECONNABORTED,e,g)),g=null},void 0===o&&i.setContentType(null),"setRequestHeader"in g&&MX.forEach(i.toJSON(),(function(e,t){g.setRequestHeader(t,e)})),MX.isUndefined(r.withCredentials)||(g.withCredentials=!!r.withCredentials),d&&"json"!==d&&(g.responseType=r.responseType),p&&([c,u]=vq(p,!0),g.addEventListener("progress",c)),f&&g.upload&&([l,s]=vq(f),g.upload.addEventListener("progress",l),g.upload.addEventListener("loadend",s)),(r.cancelToken||r.signal)&&(a=t=>{g&&(n(!t||t.type?new fq(null,e,g):t),g.abort(),g=null)},r.cancelToken&&r.cancelToken.subscribe(a),r.signal&&(r.signal.aborted?a():r.signal.addEventListener("abort",a)));const m=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);m&&-1===ZX.protocols.indexOf(m)?n(new TX("Unsupported protocol "+m+":",TX.ERR_BAD_REQUEST,e)):g.send(o||null)}))},Eq=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const o=function(e){if(!n){n=!0,a();const t=e instanceof Error?e:this.reason;r.abort(t instanceof TX?t:new fq(t instanceof Error?t.message:t))}};let i=t&&setTimeout((()=>{i=null,o(new TX("timeout ".concat(t," of ms exceeded"),TX.ETIMEDOUT))}),t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)})),e=null)};e.forEach((e=>e.addEventListener("abort",o)));const{signal:l}=r;return l.unsubscribe=()=>MX.asap(a),l}},Pq=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let r,o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},Mq=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},kq=(e,t,n,r)=>{const o=async function*(e,t){for await(const n of Mq(e))yield*Pq(n,t)}(e,t);let i,a=0,l=e=>{i||(i=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await o.next();if(t)return l(),void e.close();let i=r.byteLength;if(n){let e=a+=i;n(e)}e.enqueue(new Uint8Array(r))}catch(t){throw l(t),t}},cancel:e=>(l(e),o.return())},{highWaterMark:2})},Aq="function"===typeof fetch&&"function"===typeof Request&&"function"===typeof Response,Iq=Aq&&"function"===typeof ReadableStream,Tq=Aq&&("function"===typeof TextEncoder?(jq=new TextEncoder,e=>jq.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var jq;const Lq=function(e){try{for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return!!e(...n)}catch(N1){return!1}},Rq=Iq&&Lq((()=>{let e=!1;const t=new Request(ZX.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),Dq=Iq&&Lq((()=>MX.isReadableStream(new Response("").body))),Nq={stream:Dq&&(e=>e.body)};var Fq;Aq&&(Fq=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!Nq[e]&&(Nq[e]=MX.isFunction(Fq[e])?t=>t[e]():(t,n)=>{throw new TX("Response type '".concat(e,"' is not supported"),TX.ERR_NOT_SUPPORT,n)})})));const Bq=async(e,t)=>{const n=MX.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(MX.isBlob(e))return e.size;if(MX.isSpecCompliantForm(e)){const t=new Request(ZX.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return MX.isArrayBufferView(e)||MX.isArrayBuffer(e)?e.byteLength:(MX.isURLSearchParams(e)&&(e+=""),MX.isString(e)?(await Tq(e)).byteLength:void 0)})(t):n},zq=Aq&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:a,onDownloadProgress:l,onUploadProgress:c,responseType:s,headers:u,withCredentials:d="same-origin",fetchOptions:f}=_q(e);s=s?(s+"").toLowerCase():"text";let p,h=Eq([o,i&&i.toAbortSignal()],a);const g=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let v;try{if(c&&Rq&&"get"!==n&&"head"!==n&&0!==(v=await Bq(u,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(MX.isFormData(r)&&(e=n.headers.get("content-type"))&&u.setContentType(e),n.body){const[e,t]=mq(v,vq(yq(c)));r=kq(n.body,65536,e,t)}}MX.isString(d)||(d=d?"include":"omit");const o="credentials"in Request.prototype;p=new Request(t,{...f,signal:h,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:o?d:void 0});let i=await fetch(p);const a=Dq&&("stream"===s||"response"===s);if(Dq&&(l||a&&g)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=i[t]}));const t=MX.toFiniteNumber(i.headers.get("content-length")),[n,r]=l&&mq(t,vq(yq(l),!0))||[];i=new Response(kq(i.body,65536,n,(()=>{r&&r(),g&&g()})),e)}s=s||"text";let m=await Nq[MX.findKey(Nq,s)||"text"](i,e);return!a&&g&&g(),await new Promise(((t,n)=>{pq(t,n,{data:m,headers:cq.from(i.headers),status:i.status,statusText:i.statusText,config:e,request:p})}))}catch(m){if(g&&g(),m&&"TypeError"===m.name&&/fetch/i.test(m.message))throw Object.assign(new TX("Network Error",TX.ERR_NETWORK,e,p),{cause:m.cause||m});throw TX.from(m,m&&m.code,e,p)}}),Hq={http:null,xhr:Cq,fetch:zq};MX.forEach(Hq,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(N1){}Object.defineProperty(e,"adapterName",{value:t})}}));const Wq=e=>"- ".concat(e),Vq=e=>MX.isFunction(e)||null===e||!1===e,Gq=e=>{e=MX.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i<t;i++){let t;if(n=e[i],r=n,!Vq(n)&&(r=Hq[(t=String(n)).toLowerCase()],void 0===r))throw new TX("Unknown adapter '".concat(t,"'"));if(r)break;o[t||"#"+i]=r}if(!r){const e=Object.entries(o).map((e=>{let[t,n]=e;return"adapter ".concat(t," ")+(!1===n?"is not supported by the environment":"is not available in the build")}));let n=t?e.length>1?"since :\n"+e.map(Wq).join("\n"):" "+Wq(e[0]):"as no adapter specified";throw new TX("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return r};function Yq(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new fq(null,e)}function Uq(e){Yq(e),e.headers=cq.from(e.headers),e.data=sq.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return Gq(e.adapter||tq.adapter)(e).then((function(t){return Yq(e),t.data=sq.call(e,e.transformResponse,t),t.headers=cq.from(t.headers),t}),(function(t){return uq(t)||(Yq(e),t&&t.response&&(t.response.data=sq.call(e,e.transformResponse,t.response),t.response.headers=cq.from(t.response.headers))),Promise.reject(t)}))}const Xq="1.7.7",qq={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{qq[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const Kq={};qq.transitional=function(e,t,n){function r(e,t){return"[Axios v1.7.7] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new TX(r(o," has been removed"+(t?" in "+t:"")),TX.ERR_DEPRECATED);return t&&!Kq[o]&&(Kq[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}};const $q={assertOptions:function(e,t,n){if("object"!==typeof e)throw new TX("options must be an object",TX.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const t=e[i],n=void 0===t||a(t,i,e);if(!0!==n)throw new TX("option "+i+" must be "+n,TX.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new TX("Unknown option "+i,TX.ERR_BAD_OPTION)}},validators:qq},Qq=$q.validators;class Zq{constructor(e){this.defaults=e,this.interceptors={request:new GX,response:new GX}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error){let e;Error.captureStackTrace?Error.captureStackTrace(e={}):e=new Error;const t=e.stack?e.stack.replace(/^.+\n/,""):"";try{n.stack?t&&!String(n.stack).endsWith(t.replace(/^.+\n.+\n/,""))&&(n.stack+="\n"+t):n.stack=t}catch(N1){}}throw n}}_request(e,t){"string"===typeof e?(t=t||{}).url=e:t=e||{},t=Oq(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&$q.assertOptions(n,{silentJSONParsing:Qq.transitional(Qq.boolean),forcedJSONParsing:Qq.transitional(Qq.boolean),clarifyTimeoutError:Qq.transitional(Qq.boolean)},!1),null!=r&&(MX.isFunction(r)?t.paramsSerializer={serialize:r}:$q.assertOptions(r,{encode:Qq.function,serialize:Qq.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&MX.merge(o.common,o[t.method]);o&&MX.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=cq.concat(i,o);const a=[];let l=!0;this.interceptors.request.forEach((function(e){"function"===typeof e.runWhen&&!1===e.runWhen(t)||(l=l&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const c=[];let s;this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)}));let u,d=0;if(!l){const e=[Uq.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,c),u=e.length,s=Promise.resolve(t);d<u;)s=s.then(e[d++],e[d++]);return s}u=a.length;let f=t;for(d=0;d<u;){const e=a[d++],t=a[d++];try{f=e(f)}catch(p){t.call(this,p);break}}try{s=Uq.call(this,f)}catch(p){return Promise.reject(p)}for(d=0,u=c.length;d<u;)s=s.then(c[d++],c[d++]);return s}getUri(e){return VX(wq((e=Oq(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}MX.forEach(["delete","get","head","options"],(function(e){Zq.prototype[e]=function(t,n){return this.request(Oq(n||{},{method:e,url:t,data:(n||{}).data}))}})),MX.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(Oq(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}Zq.prototype[e]=t(),Zq.prototype[e+"Form"]=t(!0)}));const Jq=Zq;class eK{constructor(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,o){n.reason||(n.reason=new fq(e,r,o),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new eK((function(t){e=t})),cancel:e}}}const tK=eK;const nK={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(nK).forEach((e=>{let[t,n]=e;nK[n]=t}));const rK=nK;const oK=function e(t){const n=new Jq(t),r=HU(Jq.prototype.request,n);return MX.extend(r,Jq.prototype,n,{allOwnKeys:!0}),MX.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(Oq(t,n))},r}(tq);oK.Axios=Jq,oK.CanceledError=fq,oK.CancelToken=tK,oK.isCancel=uq,oK.VERSION=Xq,oK.toFormData=NX,oK.AxiosError=TX,oK.Cancel=oK.CanceledError,oK.all=function(e){return Promise.all(e)},oK.spread=function(e){return function(t){return e.apply(null,t)}},oK.isAxiosError=function(e){return MX.isObject(e)&&!0===e.isAxiosError},oK.mergeConfig=Oq,oK.AxiosHeaders=cq,oK.formToJSON=e=>JX(MX.isHTMLForm(e)?new FormData(e):e),oK.getAdapter=Gq,oK.HttpStatusCode=rK,oK.default=oK;const iK=oK;var aK=n(64),lK=n.n(aK),cK=n(5173),sK=n.n(cK),uK=n(579);DU().extend(FU()),DU().extend(zU());const{Search:dK}=vg,{Text:fK,Paragraph:pK}=gb,{Option:hK}=wC;class gK extends r.Component{constructor(){super(...arguments),this.state={keyword:"",anniversary:"20200928",anniversaries:[],drawer:!1,loading:!1,searchData:[],events:[],event_date:DU()(),visible:!1},this.cols=[{title:"\u4e8b\u4ef6",dataIndex:"event",render:(e,t)=>(0,uK.jsxs)(lh,{type:"text",onClick:()=>MP.info({title:e,content:t.description}),children:[e,(0,uK.jsx)(IU,{style:{color:"#3fc3ee"}})]})},{title:"\u65e5\u671f",dataIndex:"date",render:(e,t)=>"".concat(DU()(e).format("YYYY\u5e74MM\u6708DD\u65e5"))},{title:"\u63cf\u8ff0",dataIndex:"date",render:(e,t)=>"\u5df2".concat(t.adj).concat(this.state.event_date.diff(DU()(e),"days")+1,"\u5929")}],this.handleDayChange=(e,t)=>{let n=this.state.anniversary;e<DU()(n)&&(n="20190621"),this.setState({event_date:e}),iK.get("https://api.drjchn.com/api/v2/tieba/event",{params:{date:t,token:this.context.encrypt(t)}}).then((e=>{let t=e.data.event.length>0?e.data.event:["\u65e0"];this.setState({events:t,anniversary:n})}))},this.handleSearch=e=>{let t=e;0!==t.length?(this.setState({loading:!0}),iK.get("https://api.drjchn.com/api/v2/tieba/user",{params:{keyword:t,token:this.context.encrypt(t)}}).then((e=>{this.setState({searchData:e.data.users,keyword:t,loading:!1})})).catch((e=>{this.setState({loading:!1}),fM.error("\u641c\u7d22\u7528\u6237\u4fe1\u606f\u5931\u8d25")}))):this.setState({searchData:[]})}}componentDidMount(){this.context.onRef(this,"search");const e=DU()().format("YYYY-MM-DD");iK.get("https://api.drjchn.com/api/v2/tieba/event",{params:{date:e,token:this.context.encrypt(e)}}).then((e=>{let t=e.data.event.length>0?e.data.event:["\u65e0"];this.setState({events:t})}))}render(){const{keyword:e,drawer:t,loading:n,events:r,anniversary:o,searchData:i,visible:a}=this.state,l=[{title:"\u6392\u540d",dataIndex:"rank"},{title:"\u5427\u53cb",dataIndex:"name",render:(e,t)=>(0,uK.jsx)(lh,{type:"text",onClick:()=>{this.setState({spin:!0,loading:!0}),iK.post("https://api.drjchn.com/api/v2/tieba/user",{link:t.link,token:this.context.encrypt(t.link)}).then((n=>{this.setState({link:n.data.user.avatar,spin:!1,loading:!1},(()=>{const r=n.data.user.nickname,o=t.member?'<span><i aria-label="icon: crown" class="anticon anticon-crown" style="color: rgb(255, 197, 61);"><svg viewBox="64 64 896 896" focusable="false" class="" data-icon="crown" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M899.6 276.5L705 396.4 518.4 147.5a8.06 8.06 0 0 0-12.9 0L319 396.4 124.3 276.5c-5.7-3.5-13.1 1.2-12.2 7.9L188.5 865c1.1 7.9 7.9 14 16 14h615.1c8 0 14.9-6 15.9-14l76.4-580.6c.8-6.7-6.5-11.4-12.3-7.9zM512 734.2c-62.1 0-112.6-50.5-112.6-112.6S449.9 509 512 509s112.6 50.5 112.6 112.6S574.1 734.2 512 734.2zm0-160.9c-26.6 0-48.2 21.6-48.2 48.3 0 26.6 21.6 48.3 48.2 48.3s48.2-21.6 48.2-48.3c0-26.6-21.6-48.3-48.2-48.3z"></path></svg></i> <span class="ant-typography ant-typography-danger">'+r+"</span></span>":r;lK().fire({imageUrl:this.state.link,title:o,text:e})}))})).catch((e=>{fM.error("\u8be5\u7528\u6237\u4e0d\u5b58\u5728"),this.setState({spin:!1,loading:!1})}))},children:t.member?(0,uK.jsxs)("span",{children:[(0,uK.jsx)(LU,{style:{color:"#ffc53d"}})," ",(0,uK.jsx)(fK,{type:"danger",children:t.nickname?t.nickname:e})]}):t.nickname?t.nickname:e})},{title:"\u7b49\u7ea7",dataIndex:"level"},{title:"\u7ecf\u9a8c\u503c",dataIndex:"exp"}];return(0,uK.jsxs)(RM,{title:"\u641c\u7d22",placement:"right",width:window.outerWidth>520?500:window.outerWidth,onClose:()=>this.setState({visible:!1}),open:a,style:{textAlign:"center"},children:[(0,uK.jsx)(RM,{title:"\u9ed1\u6697\u53f2\u8bb0",placement:"right",width:window.outerWidth>520?500:window.outerWidth,onClose:()=>{this.setState({drawer:!1})},open:t,style:{textAlign:"center"},children:(0,uK.jsx)(IB,{columns:this.cols,dataSource:this.props.anniversaries,rowKey:"event"})}),(0,uK.jsx)(dK,{placeholder:"\u641c\u7d22\u7528\u6237",value:e,onChange:e=>{0===e.target.value.length&&this.setState({results:this.state.data}),this.setState({keyword:e.target.value})},onSearch:this.handleSearch,allowClear:!0}),(0,uK.jsx)(cN,{tip:"\u52a0\u8f7d\u4e2d...",spinning:n,indicator:(0,uK.jsx)(tp,{}),children:(0,uK.jsx)(IB,{dataSource:i,columns:l,rowKey:"rank",style:{background:"#fff",marginTop:20,marginBottom:40}})}),(0,uK.jsxs)(Gz,{title:"\u5927\u4e8b\u4ef6",children:[this.state.event_date>=DU()("20190621")&&(0,uK.jsxs)("div",{children:[(0,uK.jsx)(wC,{value:o,style:{width:100,marginRight:10},onChange:e=>this.setState({anniversary:e}),children:this.props.anniversaries.map((e=>this.state.event_date>=DU()(e.date)&&(0,uK.jsx)(hK,{value:e.date,children:e.event.match(/\(/g)?e.event.split("(")[0]:e.event},e.date)))}),(0,uK.jsxs)(fK,{children:["\u7b2c ",this.state.event_date.diff(DU()(o),"days")+1," \u5929"]}),(0,uK.jsx)(lh,{type:"primary",style:{marginLeft:10},onClick:()=>{this.setState({drawer:!0})},children:"\u6c47\u603b"})]}),(0,uK.jsx)(MU,{style:{marginBottom:20,marginTop:20},onChange:this.handleDayChange,value:this.state.event_date,allowClear:!1,placeholder:"\u9009\u62e9\u65e5\u671f",cellRender:e=>{const t={};return-1!==this.props.days.indexOf(e.format("YYYY-MM-DD"))&&(t.border="1px solid #1677ff",t.borderRadius="50%"),(0,uK.jsx)("div",{className:"ant-picker-cell-inner",style:t,children:e.date()})}}),1===r.length?(0,uK.jsx)(pK,{children:r[0]}):r.map(((e,t)=>(0,uK.jsxs)(pK,{children:[t+1,". ",e]},"event"+t)))]})]})}}gK.contextTypes={onRef:sK().func,encrypt:sK().func};const vK=gK,mK=e=>{const{lineWidth:t,fontSizeIcon:n,calc:r}=e,o=e.fontSizeSM;return Ui(e,{tagFontSize:o,tagLineHeight:yn(r(e.lineHeightSM).mul(o).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},yK=e=>({defaultBg:new Za(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),bK=Ol("Tag",(e=>(e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:o,calc:i}=e,a=i(r).sub(n).equal(),l=i(t).sub(n).equal();return{[o]:Object.assign(Object.assign({},Ur(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:a,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:"".concat(yn(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorBorder),borderRadius:e.borderRadiusSM,opacity:1,transition:"all ".concat(e.motionDurationMid),textAlign:"start",position:"relative",["&".concat(o,"-rtl")]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},["".concat(o,"-close-icon")]:{marginInlineStart:l,fontSize:e.tagIconSize,color:e.colorTextDescription,cursor:"pointer",transition:"all ".concat(e.motionDurationMid),"&:hover":{color:e.colorTextHeading}},["&".concat(o,"-has-color")]:{borderColor:"transparent",["&, a, a:hover, ".concat(e.iconCls,"-close, ").concat(e.iconCls,"-close:hover")]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",["&:not(".concat(o,"-checkable-checked):hover")]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},["> ".concat(e.iconCls," + span, > span + ").concat(e.iconCls)]:{marginInlineStart:a}}),["".concat(o,"-borderless")]:{borderColor:"transparent",background:e.tagBorderlessBg}}})(mK(e))),yK);var xK=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 wK=r.forwardRef(((e,t)=>{const{prefixCls:n,style:o,className:i,checked:a,onChange:l,onClick:s}=e,u=xK(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:d,tag:p}=r.useContext(f),h=d("tag",n),[g,v,m]=bK(h),y=c()(h,"".concat(h,"-checkable"),{["".concat(h,"-checkable-checked")]:a},null===p||void 0===p?void 0:p.className,i,v,m);return g(r.createElement("span",Object.assign({},u,{ref:t,style:Object.assign(Object.assign({},o),null===p||void 0===p?void 0:p.style),className:y,onClick:e=>{null===l||void 0===l||l(!a),null===s||void 0===s||s(e)}})))})),SK=wK,OK=Cl(["Tag","preset"],(e=>(e=>ny(e,((t,n)=>{let{textColor:r,lightBorderColor:o,lightColor:i,darkColor:a}=n;return{["".concat(e.componentCls).concat(e.componentCls,"-").concat(t)]:{color:r,background:i,borderColor:o,"&-inverse":{color:e.colorTextLightSolid,background:a,borderColor:a},["&".concat(e.componentCls,"-borderless")]:{borderColor:"transparent"}}}})))(mK(e))),yK);const _K=(e,t,n)=>{const r="string"!==typeof(o=n)?o:o.charAt(0).toUpperCase()+o.slice(1);var o;return{["".concat(e.componentCls).concat(e.componentCls,"-").concat(t)]:{color:e["color".concat(n)],background:e["color".concat(r,"Bg")],borderColor:e["color".concat(r,"Border")],["&".concat(e.componentCls,"-borderless")]:{borderColor:"transparent"}}}},CK=Cl(["Tag","status"],(e=>{const t=mK(e);return[_K(t,"success","Success"),_K(t,"processing","Info"),_K(t,"error","Error"),_K(t,"warning","Warning")]}),yK);var EK=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 PK=r.forwardRef(((e,t)=>{const{prefixCls:n,className:o,rootClassName:i,style:a,children:l,icon:s,color:u,onClose:d,bordered:p=!0,visible:h}=e,g=EK(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:v,direction:m,tag:y}=r.useContext(f),[b,x]=r.useState(!0),w=hu(g,["closeIcon","closable"]);r.useEffect((()=>{void 0!==h&&x(h)}),[h]);const S=cy(u),O=function(e){return ly.includes(e)}(u),_=S||O,C=Object.assign(Object.assign({backgroundColor:u&&!_?u:void 0},null===y||void 0===y?void 0:y.style),a),E=v("tag",n),[P,M,k]=bK(E),A=c()(E,null===y||void 0===y?void 0:y.className,{["".concat(E,"-").concat(u)]:_,["".concat(E,"-has-color")]:u&&!_,["".concat(E,"-hidden")]:!b,["".concat(E,"-rtl")]:"rtl"===m,["".concat(E,"-borderless")]:!p},o,i,M,k),I=e=>{e.stopPropagation(),null===d||void 0===d||d(e),e.defaultPrevented||x(!1)},[,T]=cE(oE(e),oE(y),{closable:!1,closeIconRender:e=>{const t=r.createElement("span",{className:"".concat(E,"-close-icon"),onClick:I},e);return _u(e,t,(e=>({onClick:t=>{var n;null===(n=null===e||void 0===e?void 0:e.onClick)||void 0===n||n.call(e,t),I(t)},className:c()(null===e||void 0===e?void 0:e.className,"".concat(E,"-close-icon"))})))}}),j="function"===typeof g.onClick||l&&"a"===l.type,L=s||null,R=L?r.createElement(r.Fragment,null,L,l&&r.createElement("span",null,l)):l,D=r.createElement("span",Object.assign({},w,{ref:t,className:A,style:C}),R,T,S&&r.createElement(OK,{key:"preset",prefixCls:E}),O&&r.createElement(CK,{key:"status",prefixCls:E}));return P(j?r.createElement(Hf,{component:"Tag"},D):D)})),MK=PK;MK.CheckableTag=SK;const kK=MK,AK=(0,r.createContext)({}),IK=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},TK=(e,t)=>((e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:o}=e,i={};for(let a=o;a>=0;a--)0===a?(i["".concat(r).concat(t,"-").concat(a)]={display:"none"},i["".concat(r,"-push-").concat(a)]={insetInlineStart:"auto"},i["".concat(r,"-pull-").concat(a)]={insetInlineEnd:"auto"},i["".concat(r).concat(t,"-push-").concat(a)]={insetInlineStart:"auto"},i["".concat(r).concat(t,"-pull-").concat(a)]={insetInlineEnd:"auto"},i["".concat(r).concat(t,"-offset-").concat(a)]={marginInlineStart:0},i["".concat(r).concat(t,"-order-").concat(a)]={order:0}):(i["".concat(r).concat(t,"-").concat(a)]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:"0 0 ".concat(a/o*100,"%"),maxWidth:"".concat(a/o*100,"%")}],i["".concat(r).concat(t,"-push-").concat(a)]={insetInlineStart:"".concat(a/o*100,"%")},i["".concat(r).concat(t,"-pull-").concat(a)]={insetInlineEnd:"".concat(a/o*100,"%")},i["".concat(r).concat(t,"-offset-").concat(a)]={marginInlineStart:"".concat(a/o*100,"%")},i["".concat(r).concat(t,"-order-").concat(a)]={order:a});return i["".concat(r).concat(t,"-flex")]={flex:"var(--".concat(n).concat(t,"-flex)")},i})(e,t),jK=Ol("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"}}}}),(()=>({}))),LK=Ol("Grid",(e=>{const t=Ui(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[IK(t),TK(t,""),TK(t,"-xs"),Object.keys(n).map((e=>((e,t,n)=>({["@media (min-width: ".concat(yn(t),")")]:Object.assign({},TK(e,n))}))(t,n[e],e))).reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{})]}),(()=>({})));var RK=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};function DK(e,t){const[n,o]=r.useState("string"===typeof e?e:"");return r.useEffect((()=>{(()=>{if("string"===typeof e&&o(e),"object"===typeof e)for(let n=0;n<uD.length;n++){const r=uD[n];if(!t[r])continue;const i=e[r];if(void 0!==i)return void o(i)}})()}),[JSON.stringify(e),t]),n}const NK=r.forwardRef(((e,t)=>{const{prefixCls:n,justify:o,align:i,className:a,style:l,children:s,gutter:u=0,wrap:d}=e,p=RK(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:h,direction:g}=r.useContext(f),[v,m]=r.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[y,b]=r.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),x=DK(i,y),w=DK(o,y),S=r.useRef(u),O=pD();r.useEffect((()=>{const e=O.subscribe((e=>{b(e);const t=S.current||0;(!Array.isArray(t)&&"object"===typeof t||Array.isArray(t)&&("object"===typeof t[0]||"object"===typeof t[1]))&&m(e)}));return()=>O.unsubscribe(e)}),[]);const _=h("row",n),[C,E,P]=jK(_),M=(()=>{const e=[void 0,void 0];return(Array.isArray(u)?u:[u,void 0]).forEach(((t,n)=>{if("object"===typeof t)for(let r=0;r<uD.length;r++){const o=uD[r];if(v[o]&&void 0!==t[o]){e[n]=t[o];break}}else e[n]=t})),e})(),k=c()(_,{["".concat(_,"-no-wrap")]:!1===d,["".concat(_,"-").concat(w)]:w,["".concat(_,"-").concat(x)]:x,["".concat(_,"-rtl")]:"rtl"===g},a,E,P),A={},I=null!=M[0]&&M[0]>0?M[0]/-2:void 0;I&&(A.marginLeft=I,A.marginRight=I);const[T,j]=M;A.rowGap=j;const L=r.useMemo((()=>({gutter:[T,j],wrap:d})),[T,j,d]);return C(r.createElement(AK.Provider,{value:L},r.createElement("div",Object.assign({},p,{className:k,style:Object.assign(Object.assign({},A),l),ref:t}),s)))}));const FK=NK,BK=FK;var zK=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};function HK(e){return"number"===typeof e?"".concat(e," ").concat(e," auto"):/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?"0 0 ".concat(e):e}const WK=["xs","sm","md","lg","xl","xxl"],VK=r.forwardRef(((e,t)=>{const{getPrefixCls:n,direction:o}=r.useContext(f),{gutter:i,wrap:a}=r.useContext(AK),{prefixCls:l,span:s,order:u,offset:d,push:p,pull:h,className:g,children:v,flex:m,style:y}=e,b=zK(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),x=n("col",l),[w,S,O]=LK(x),_={};let C={};WK.forEach((t=>{let n={};const r=e[t];"number"===typeof r?n.span=r:"object"===typeof r&&(n=r||{}),delete b[t],C=Object.assign(Object.assign({},C),{["".concat(x,"-").concat(t,"-").concat(n.span)]:void 0!==n.span,["".concat(x,"-").concat(t,"-order-").concat(n.order)]:n.order||0===n.order,["".concat(x,"-").concat(t,"-offset-").concat(n.offset)]:n.offset||0===n.offset,["".concat(x,"-").concat(t,"-push-").concat(n.push)]:n.push||0===n.push,["".concat(x,"-").concat(t,"-pull-").concat(n.pull)]:n.pull||0===n.pull,["".concat(x,"-rtl")]:"rtl"===o}),n.flex&&(C["".concat(x,"-").concat(t,"-flex")]=!0,_["--".concat(x,"-").concat(t,"-flex")]=HK(n.flex))}));const E=c()(x,{["".concat(x,"-").concat(s)]:void 0!==s,["".concat(x,"-order-").concat(u)]:u,["".concat(x,"-offset-").concat(d)]:d,["".concat(x,"-push-").concat(p)]:p,["".concat(x,"-pull-").concat(h)]:h},g,C,S,O),P={};if(i&&i[0]>0){const e=i[0]/2;P.paddingLeft=e,P.paddingRight=e}return m&&(P.flex=HK(m),!1!==a||P.minWidth||(P.minWidth=0)),w(r.createElement("div",Object.assign({},b,{style:Object.assign(Object.assign(Object.assign({},P),y),_),className:E,ref:t}),v))}));const GK=VK,YK=GK,UK=e=>{const{value:t,formatter:n,precision:o,decimalSeparator:i,groupSeparator:a="",prefixCls:l}=e;let c;if("function"===typeof n)c=n(t);else{const e=String(t),n=e.match(/^(-?)(\d*)(\.(\d+))?$/);if(n&&"-"!==e){const e=n[1];let t=n[2]||"0",s=n[4]||"";t=t.replace(/\B(?=(\d{3})+(?!\d))/g,a),"number"===typeof o&&(s=s.padEnd(o,"0").slice(0,o>0?o:0)),s&&(s="".concat(i).concat(s)),c=[r.createElement("span",{key:"int",className:"".concat(l,"-content-value-int")},e,t),s&&r.createElement("span",{key:"decimal",className:"".concat(l,"-content-value-decimal")},s)]}else c=e}return r.createElement("span",{className:"".concat(l,"-content-value")},c)},XK=e=>{const{componentCls:t,marginXXS:n,padding:r,colorTextDescription:o,titleFontSize:i,colorTextHeading:a,contentFontSize:l,fontFamily:c}=e;return{[t]:Object.assign(Object.assign({},Ur(e)),{["".concat(t,"-title")]:{marginBottom:n,color:o,fontSize:i},["".concat(t,"-skeleton")]:{paddingTop:r},["".concat(t,"-content")]:{color:a,fontSize:l,fontFamily:c,["".concat(t,"-content-value")]:{display:"inline-block",direction:"ltr"},["".concat(t,"-content-prefix, ").concat(t,"-content-suffix")]:{display:"inline-block"},["".concat(t,"-content-prefix")]:{marginInlineEnd:n},["".concat(t,"-content-suffix")]:{marginInlineStart:n}}})}},qK=Ol("Statistic",(e=>{const t=Ui(e,{});return[XK(t)]}),(e=>{const{fontSizeHeading3:t,fontSize:n}=e;return{titleFontSize:n,contentFontSize:t}}));var KK=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 $K=e=>{const{prefixCls:t,className:n,rootClassName:o,style:i,valueStyle:a,value:l=0,title:s,valueRender:u,prefix:d,suffix:p,loading:h=!1,formatter:g,precision:v,decimalSeparator:m=".",groupSeparator:y=",",onMouseEnter:b,onMouseLeave:x}=e,w=KK(e,["prefixCls","className","rootClassName","style","valueStyle","value","title","valueRender","prefix","suffix","loading","formatter","precision","decimalSeparator","groupSeparator","onMouseEnter","onMouseLeave"]),{getPrefixCls:S,direction:O,statistic:_}=r.useContext(f),C=S("statistic",t),[E,P,M]=qK(C),k=r.createElement(UK,{decimalSeparator:m,groupSeparator:y,prefixCls:C,formatter:g,precision:v,value:l}),A=c()(C,{["".concat(C,"-rtl")]:"rtl"===O},null===_||void 0===_?void 0:_.className,n,o,P,M),I=Ys(w,{aria:!0,data:!0});return E(r.createElement("div",Object.assign({},I,{className:A,style:Object.assign(Object.assign({},null===_||void 0===_?void 0:_.style),i),onMouseEnter:b,onMouseLeave:x}),s&&r.createElement("div",{className:"".concat(C,"-title")},s),r.createElement(LE,{paragraph:!1,loading:h,className:"".concat(C,"-skeleton")},r.createElement("div",{style:a,className:"".concat(C,"-content")},d&&r.createElement("span",{className:"".concat(C,"-content-prefix")},d),u?u(k):k,p&&r.createElement("span",{className:"".concat(C,"-content-suffix")},p)))))},QK=[["Y",31536e6],["M",2592e6],["D",864e5],["H",36e5],["m",6e4],["s",1e3],["S",1]];function ZK(e,t){const{format:n=""}=t,r=new Date(e).getTime(),o=Date.now();return function(e,t){let n=e;const r=/\[[^\]]*]/g,o=(t.match(r)||[]).map((e=>e.slice(1,-1))),i=t.replace(r,"[]"),a=QK.reduce(((e,t)=>{let[r,o]=t;if(e.includes(r)){const t=Math.floor(n/o);return n-=t*o,e.replace(new RegExp("".concat(r,"+"),"g"),(e=>{const n=e.length;return t.toString().padStart(n,"0")}))}return e}),i);let l=0;return a.replace(r,(()=>{const e=o[l];return l+=1,e}))}(Math.max(r-o,0),n)}var JK=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 e$=e=>{const{value:t,format:n="HH:mm:ss",onChange:o,onFinish:i}=e,a=JK(e,["value","format","onChange","onFinish"]),l=sD(),c=r.useRef(null),s=()=>{const e=function(e){return new Date(e).getTime()}(t);e>=Date.now()&&(c.current=setInterval((()=>{l(),null===o||void 0===o||o(e-Date.now()),e<Date.now()&&(null===i||void 0===i||i(),c.current&&(clearInterval(c.current),c.current=null))}),33.333333333333336))};r.useEffect((()=>(s(),()=>{c.current&&(clearInterval(c.current),c.current=null)})),[t]);return r.createElement($K,Object.assign({},a,{value:t,valueRender:e=>Cu(e,{title:void 0}),formatter:(e,t)=>ZK(e,Object.assign(Object.assign({},t),{format:n}))}))},t$=r.memo(e$);$K.Countdown=t$;const n$=$K,r$=r.createContext({});r$.Consumer;var 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};const i$=r.forwardRef(((e,t)=>{const{prefixCls:n,children:o,actions:i,extra:a,styles:l,className:s,classNames:u,colStyle:d}=e,p=o$(e,["prefixCls","children","actions","extra","styles","className","classNames","colStyle"]),{grid:h,itemLayout:g}=(0,r.useContext)(r$),{getPrefixCls:v,list:m}=(0,r.useContext)(f),y=e=>{var t,n;return c()(null===(n=null===(t=null===m||void 0===m?void 0:m.item)||void 0===t?void 0:t.classNames)||void 0===n?void 0:n[e],null===u||void 0===u?void 0:u[e])},b=e=>{var t,n;return Object.assign(Object.assign({},null===(n=null===(t=null===m||void 0===m?void 0:m.item)||void 0===t?void 0:t.styles)||void 0===n?void 0:n[e]),null===l||void 0===l?void 0:l[e])},x=v("list",n),w=i&&i.length>0&&r.createElement("ul",{className:c()("".concat(x,"-item-action"),y("actions")),key:"actions",style:b("actions")},i.map(((e,t)=>r.createElement("li",{key:"".concat(x,"-item-action-").concat(t)},e,t!==i.length-1&&r.createElement("em",{className:"".concat(x,"-item-action-split")}))))),S=h?"div":"li",O=r.createElement(S,Object.assign({},p,h?{}:{ref:t},{className:c()("".concat(x,"-item"),{["".concat(x,"-item-no-flex")]:!("vertical"===g?a:!(()=>{let e=!1;return r.Children.forEach(o,(t=>{"string"===typeof t&&(e=!0)})),e&&r.Children.count(o)>1})())},s)}),"vertical"===g&&a?[r.createElement("div",{className:"".concat(x,"-item-main"),key:"content"},o,w),r.createElement("div",{className:c()("".concat(x,"-item-extra"),y("extra")),key:"extra",style:b("extra")},a)]:[o,w,Cu(a,{key:"extra"})]);return h?r.createElement(GK,{ref:t,flex:1,style:d},O):O})),a$=i$;a$.Meta=e=>{var{prefixCls:t,className:n,avatar:o,title:i,description:a}=e,l=o$(e,["prefixCls","className","avatar","title","description"]);const{getPrefixCls:s}=(0,r.useContext)(f),u=s("list",t),d=c()("".concat(u,"-item-meta"),n),p=r.createElement("div",{className:"".concat(u,"-item-meta-content")},i&&r.createElement("h4",{className:"".concat(u,"-item-meta-title")},i),a&&r.createElement("div",{className:"".concat(u,"-item-meta-description")},a));return r.createElement("div",Object.assign({},l,{className:d}),o&&r.createElement("div",{className:"".concat(u,"-item-meta-avatar")},o),(i||a)&&p)};const l$=a$,c$=e=>{const{listBorderedCls:t,componentCls:n,paddingLG:r,margin:o,itemPaddingSM:i,itemPaddingLG:a,marginLG:l,borderRadiusLG:c}=e;return{[t]:{border:"".concat(yn(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorBorder),borderRadius:c,["".concat(n,"-header,").concat(n,"-footer,").concat(n,"-item")]:{paddingInline:r},["".concat(n,"-pagination")]:{margin:"".concat(yn(o)," ").concat(yn(l))}},["".concat(t).concat(n,"-sm")]:{["".concat(n,"-item,").concat(n,"-header,").concat(n,"-footer")]:{padding:i}},["".concat(t).concat(n,"-lg")]:{["".concat(n,"-item,").concat(n,"-header,").concat(n,"-footer")]:{padding:a}}}},s$=e=>{const{componentCls:t,screenSM:n,screenMD:r,marginLG:o,marginSM:i,margin:a}=e;return{["@media screen and (max-width:".concat(r,"px)")]:{[t]:{["".concat(t,"-item")]:{["".concat(t,"-item-action")]:{marginInlineStart:o}}},["".concat(t,"-vertical")]:{["".concat(t,"-item")]:{["".concat(t,"-item-extra")]:{marginInlineStart:o}}}},["@media screen and (max-width: ".concat(n,"px)")]:{[t]:{["".concat(t,"-item")]:{flexWrap:"wrap",["".concat(t,"-action")]:{marginInlineStart:i}}},["".concat(t,"-vertical")]:{["".concat(t,"-item")]:{flexWrap:"wrap-reverse",["".concat(t,"-item-main")]:{minWidth:e.contentWidth},["".concat(t,"-item-extra")]:{margin:"auto auto ".concat(yn(a))}}}}}},u$=e=>{const{componentCls:t,antCls:n,controlHeight:r,minHeight:o,paddingSM:i,marginLG:a,padding:l,itemPadding:c,colorPrimary:s,itemPaddingSM:u,itemPaddingLG:d,paddingXS:f,margin:p,colorText:h,colorTextDescription:g,motionDurationSlow:v,lineWidth:m,headerBg:y,footerBg:b,emptyTextPadding:x,metaMarginBottom:w,avatarMarginRight:S,titleMarginBottom:O,descriptionFontSize:_}=e;return{[t]:Object.assign(Object.assign({},Ur(e)),{position:"relative","*":{outline:"none"},["".concat(t,"-header")]:{background:y},["".concat(t,"-footer")]:{background:b},["".concat(t,"-header, ").concat(t,"-footer")]:{paddingBlock:i},["".concat(t,"-pagination")]:{marginBlockStart:a,["".concat(n,"-pagination-options")]:{textAlign:"start"}},["".concat(t,"-spin")]:{minHeight:o,textAlign:"center"},["".concat(t,"-items")]:{margin:0,padding:0,listStyle:"none"},["".concat(t,"-item")]:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:c,color:h,["".concat(t,"-item-meta")]:{display:"flex",flex:1,alignItems:"flex-start",maxWidth:"100%",["".concat(t,"-item-meta-avatar")]:{marginInlineEnd:S},["".concat(t,"-item-meta-content")]:{flex:"1 0",width:0,color:h},["".concat(t,"-item-meta-title")]:{margin:"0 0 ".concat(yn(e.marginXXS)," 0"),color:h,fontSize:e.fontSize,lineHeight:e.lineHeight,"> a":{color:h,transition:"all ".concat(v),"&:hover":{color:s}}},["".concat(t,"-item-meta-description")]:{color:g,fontSize:_,lineHeight:e.lineHeight}},["".concat(t,"-item-action")]:{flex:"0 0 auto",marginInlineStart:e.marginXXL,padding:0,fontSize:0,listStyle:"none","& > li":{position:"relative",display:"inline-block",padding:"0 ".concat(yn(f)),color:g,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"center","&:first-child":{paddingInlineStart:0}},["".concat(t,"-item-action-split")]:{position:"absolute",insetBlockStart:"50%",insetInlineEnd:0,width:m,height:e.calc(e.fontHeight).sub(e.calc(e.marginXXS).mul(2)).equal(),transform:"translateY(-50%)",backgroundColor:e.colorSplit}}},["".concat(t,"-empty")]:{padding:"".concat(yn(l)," 0"),color:g,fontSize:e.fontSizeSM,textAlign:"center"},["".concat(t,"-empty-text")]:{padding:x,color:e.colorTextDisabled,fontSize:e.fontSize,textAlign:"center"},["".concat(t,"-item-no-flex")]:{display:"block"}}),["".concat(t,"-grid ").concat(n,"-col > ").concat(t,"-item")]:{display:"block",maxWidth:"100%",marginBlockEnd:p,paddingBlock:0,borderBlockEnd:"none"},["".concat(t,"-vertical ").concat(t,"-item")]:{alignItems:"initial",["".concat(t,"-item-main")]:{display:"block",flex:1},["".concat(t,"-item-extra")]:{marginInlineStart:a},["".concat(t,"-item-meta")]:{marginBlockEnd:w,["".concat(t,"-item-meta-title")]:{marginBlockStart:0,marginBlockEnd:O,color:h,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}},["".concat(t,"-item-action")]:{marginBlockStart:l,marginInlineStart:"auto","> li":{padding:"0 ".concat(yn(l)),"&:first-child":{paddingInlineStart:0}}}},["".concat(t,"-split ").concat(t,"-item")]:{borderBlockEnd:"".concat(yn(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorSplit),"&:last-child":{borderBlockEnd:"none"}},["".concat(t,"-split ").concat(t,"-header")]:{borderBlockEnd:"".concat(yn(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorSplit)},["".concat(t,"-split").concat(t,"-empty ").concat(t,"-footer")]:{borderTop:"".concat(yn(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorSplit)},["".concat(t,"-loading ").concat(t,"-spin-nested-loading")]:{minHeight:r},["".concat(t,"-split").concat(t,"-something-after-last-item ").concat(n,"-spin-container > ").concat(t,"-items > ").concat(t,"-item:last-child")]:{borderBlockEnd:"".concat(yn(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorSplit)},["".concat(t,"-lg ").concat(t,"-item")]:{padding:d},["".concat(t,"-sm ").concat(t,"-item")]:{padding:u},["".concat(t,":not(").concat(t,"-vertical)")]:{["".concat(t,"-item-no-flex")]:{["".concat(t,"-item-action")]:{float:"right"}}}}},d$=Ol("List",(e=>{const t=Ui(e,{listBorderedCls:"".concat(e.componentCls,"-bordered"),minHeight:e.controlHeightLG});return[u$(t),c$(t),s$(t)]}),(e=>({contentWidth:220,itemPadding:"".concat(yn(e.paddingContentVertical)," 0"),itemPaddingSM:"".concat(yn(e.paddingContentVerticalSM)," ").concat(yn(e.paddingContentHorizontal)),itemPaddingLG:"".concat(yn(e.paddingContentVerticalLG)," ").concat(yn(e.paddingContentHorizontalLG)),headerBg:"transparent",footerBg:"transparent",emptyTextPadding:e.padding,metaMarginBottom:e.padding,avatarMarginRight:e.padding,titleMarginBottom:e.paddingSM,descriptionFontSize:e.fontSize})));var f$=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(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};function p$(e,t){var{pagination:n=!1,prefixCls:o,bordered:i=!1,split:a=!0,className:l,rootClassName:s,style:u,children:d,itemLayout:p,loadMore:h,grid:g,dataSource:v=[],size:m,header:y,footer:b,loading:x=!1,rowKey:w,renderItem:S,locale:O}=e,_=f$(e,["pagination","prefixCls","bordered","split","className","rootClassName","style","children","itemLayout","loadMore","grid","dataSource","size","header","footer","loading","rowKey","renderItem","locale"]);const C=n&&"object"===typeof n?n:{},[E,P]=r.useState(C.defaultCurrent||1),[M,k]=r.useState(C.defaultPageSize||10),{getPrefixCls:A,renderEmpty:I,direction:T,list:j}=r.useContext(f),L=e=>(t,r)=>{var o;P(t),k(r),n&&(null===(o=null===n||void 0===n?void 0:n[e])||void 0===o||o.call(n,t,r))},R=L("onChange"),D=L("onShowSizeChange"),N=A("list",o),[F,B,z]=d$(N);let H=x;"boolean"===typeof H&&(H={spinning:H});const W=!!(null===H||void 0===H?void 0:H.spinning);let V="";switch(Dc(m)){case"large":V="lg";break;case"small":V="sm"}const G=c()(N,{["".concat(N,"-vertical")]:"vertical"===p,["".concat(N,"-").concat(V)]:V,["".concat(N,"-split")]:a,["".concat(N,"-bordered")]:i,["".concat(N,"-loading")]:W,["".concat(N,"-grid")]:!!g,["".concat(N,"-something-after-last-item")]:!!(h||n||b),["".concat(N,"-rtl")]:"rtl"===T},null===j||void 0===j?void 0:j.className,l,s,B,z),Y=NF({current:1,total:0},{total:v.length,current:E,pageSize:M},n||{}),U=Math.ceil(Y.total/Y.pageSize);Y.current>U&&(Y.current=U);const X=n&&r.createElement("div",{className:c()("".concat(N,"-pagination"))},r.createElement(UD,Object.assign({align:"end"},Y,{onChange:R,onShowSizeChange:D})));let q=Ds(v);n&&v.length>(Y.current-1)*Y.pageSize&&(q=Ds(v).splice((Y.current-1)*Y.pageSize,Y.pageSize));const K=Object.keys(g||{}).some((e=>["xs","sm","md","lg","xl","xxl"].includes(e))),$=hD(K),Q=r.useMemo((()=>{for(let e=0;e<uD.length;e+=1){const t=uD[e];if($[t])return t}}),[$]),Z=r.useMemo((()=>{if(!g)return;const e=Q&&g[Q]?g[Q]:g.column;return e?{width:"".concat(100/e,"%"),maxWidth:"".concat(100/e,"%")}:void 0}),[JSON.stringify(g),Q]);let J=W&&r.createElement("div",{style:{minHeight:53}});if(q.length>0){const e=q.map(((e,t)=>((e,t)=>{if(!S)return null;let n;return n="function"===typeof w?w(e):w?e[w]:e.key,n||(n="list-item-".concat(t)),r.createElement(r.Fragment,{key:n},S(e,t))})(e,t)));J=g?r.createElement(FK,{gutter:g.gutter},r.Children.map(e,(e=>r.createElement("div",{key:null===e||void 0===e?void 0:e.key,style:Z},e)))):r.createElement("ul",{className:"".concat(N,"-items")},e)}else d||W||(J=r.createElement("div",{className:"".concat(N,"-empty-text")},(null===O||void 0===O?void 0:O.emptyText)||(null===I||void 0===I?void 0:I("List"))||r.createElement(w_,{componentName:"List"})));const ee=Y.position||"bottom",te=r.useMemo((()=>({grid:g,itemLayout:p})),[JSON.stringify(g),p]);return F(r.createElement(r$.Provider,{value:te},r.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},null===j||void 0===j?void 0:j.style),u),className:G},_),("top"===ee||"both"===ee)&&X,y&&r.createElement("div",{className:"".concat(N,"-header")},y),r.createElement(cN,Object.assign({},H),J,d),b&&r.createElement("div",{className:"".concat(N,"-footer")},b),h||("bottom"===ee||"both"===ee)&&X)))}const h$=r.forwardRef(p$);h$.Item=l$;const g$=h$,v$=e=>{const{componentCls:t,calc:n}=e;return{[t]:Object.assign(Object.assign({},Ur(e)),{margin:0,padding:0,listStyle:"none",["".concat(t,"-item")]:{position:"relative",margin:0,paddingBottom:e.itemPaddingBottom,fontSize:e.fontSize,listStyle:"none","&-tail":{position:"absolute",insetBlockStart:e.itemHeadSize,insetInlineStart:n(n(e.itemHeadSize).sub(e.tailWidth)).div(2).equal(),height:"calc(100% - ".concat(yn(e.itemHeadSize),")"),borderInlineStart:"".concat(yn(e.tailWidth)," ").concat(e.lineType," ").concat(e.tailColor)},"&-pending":{["".concat(t,"-item-head")]:{fontSize:e.fontSizeSM,backgroundColor:"transparent"},["".concat(t,"-item-tail")]:{display:"none"}},"&-head":{position:"absolute",width:e.itemHeadSize,height:e.itemHeadSize,backgroundColor:e.dotBg,border:"".concat(yn(e.dotBorderWidth)," ").concat(e.lineType," transparent"),borderRadius:"50%","&-blue":{color:e.colorPrimary,borderColor:e.colorPrimary},"&-red":{color:e.colorError,borderColor:e.colorError},"&-green":{color:e.colorSuccess,borderColor:e.colorSuccess},"&-gray":{color:e.colorTextDisabled,borderColor:e.colorTextDisabled}},"&-head-custom":{position:"absolute",insetBlockStart:n(e.itemHeadSize).div(2).equal(),insetInlineStart:n(e.itemHeadSize).div(2).equal(),width:"auto",height:"auto",marginBlockStart:0,paddingBlock:e.customHeadPaddingVertical,lineHeight:1,textAlign:"center",border:0,borderRadius:0,transform:"translate(-50%, -50%)"},"&-content":{position:"relative",insetBlockStart:n(n(e.fontSize).mul(e.lineHeight).sub(e.fontSize)).mul(-1).add(e.lineWidth).equal(),marginInlineStart:n(e.margin).add(e.itemHeadSize).equal(),marginInlineEnd:0,marginBlockStart:0,marginBlockEnd:0,wordBreak:"break-word"},"&-last":{["> ".concat(t,"-item-tail")]:{display:"none"},["> ".concat(t,"-item-content")]:{minHeight:n(e.controlHeightLG).mul(1.2).equal()}}},["&".concat(t,"-alternate,\n        &").concat(t,"-right,\n        &").concat(t,"-label")]:{["".concat(t,"-item")]:{"&-tail, &-head, &-head-custom":{insetInlineStart:"50%"},"&-head":{marginInlineStart:n(e.marginXXS).mul(-1).equal(),"&-custom":{marginInlineStart:n(e.tailWidth).div(2).equal()}},"&-left":{["".concat(t,"-item-content")]:{insetInlineStart:"calc(50% - ".concat(yn(e.marginXXS),")"),width:"calc(50% - ".concat(yn(e.marginSM),")"),textAlign:"start"}},"&-right":{["".concat(t,"-item-content")]:{width:"calc(50% - ".concat(yn(e.marginSM),")"),margin:0,textAlign:"end"}}}},["&".concat(t,"-right")]:{["".concat(t,"-item-right")]:{["".concat(t,"-item-tail,\n            ").concat(t,"-item-head,\n            ").concat(t,"-item-head-custom")]:{insetInlineStart:"calc(100% - ".concat(yn(n(n(e.itemHeadSize).add(e.tailWidth)).div(2).equal()),")")},["".concat(t,"-item-content")]:{width:"calc(100% - ".concat(yn(n(e.itemHeadSize).add(e.marginXS).equal()),")")}}},["&".concat(t,"-pending\n        ").concat(t,"-item-last\n        ").concat(t,"-item-tail")]:{display:"block",height:"calc(100% - ".concat(yn(e.margin),")"),borderInlineStart:"".concat(yn(e.tailWidth)," dotted ").concat(e.tailColor)},["&".concat(t,"-reverse\n        ").concat(t,"-item-last\n        ").concat(t,"-item-tail")]:{display:"none"},["&".concat(t,"-reverse ").concat(t,"-item-pending")]:{["".concat(t,"-item-tail")]:{insetBlockStart:e.margin,display:"block",height:"calc(100% - ".concat(yn(e.margin),")"),borderInlineStart:"".concat(yn(e.tailWidth)," dotted ").concat(e.tailColor)},["".concat(t,"-item-content")]:{minHeight:n(e.controlHeightLG).mul(1.2).equal()}},["&".concat(t,"-label")]:{["".concat(t,"-item-label")]:{position:"absolute",insetBlockStart:n(n(e.fontSize).mul(e.lineHeight).sub(e.fontSize)).mul(-1).add(e.tailWidth).equal(),width:"calc(50% - ".concat(yn(e.marginSM),")"),textAlign:"end"},["".concat(t,"-item-right")]:{["".concat(t,"-item-label")]:{insetInlineStart:"calc(50% + ".concat(yn(e.marginSM),")"),width:"calc(50% - ".concat(yn(e.marginSM),")"),textAlign:"start"}}},"&-rtl":{direction:"rtl",["".concat(t,"-item-head-custom")]:{transform:"translate(50%, -50%)"}}})}},m$=Ol("Timeline",(e=>{const t=Ui(e,{itemHeadSize:10,customHeadPaddingVertical:e.paddingXXS,paddingInlineEnd:2});return[v$(t)]}),(e=>({tailColor:e.colorSplit,tailWidth:e.lineWidthBold,dotBorderWidth:e.wireframe?e.lineWidthBold:3*e.lineWidth,dotBg:e.colorBgContainer,itemPaddingBottom:1.25*e.padding})));var y$=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 b$=e=>{var{prefixCls:t,className:n,color:o="blue",dot:i,pending:a=!1,position:l,label:s,children:u}=e,d=y$(e,["prefixCls","className","color","dot","pending","position","label","children"]);const{getPrefixCls:p}=r.useContext(f),h=p("timeline",t),g=c()("".concat(h,"-item"),{["".concat(h,"-item-pending")]:a},n),v=/blue|red|green|gray/.test(o||"")?void 0:o,m=c()("".concat(h,"-item-head"),{["".concat(h,"-item-head-custom")]:!!i,["".concat(h,"-item-head-").concat(o)]:!v});return r.createElement("li",Object.assign({},d,{className:g}),s&&r.createElement("div",{className:"".concat(h,"-item-label")},s),r.createElement("div",{className:"".concat(h,"-item-tail")}),r.createElement("div",{className:m,style:{borderColor:v,color:v}},i),r.createElement("div",{className:"".concat(h,"-item-content")},u))};var x$=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(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 w$=e=>{var{prefixCls:t,className:n,pending:o=!1,children:i,items:a,rootClassName:l,reverse:s=!1,direction:u,hashId:d,pendingDot:f,mode:p=""}=e,h=x$(e,["prefixCls","className","pending","children","items","rootClassName","reverse","direction","hashId","pendingDot","mode"]);const g=(e,n)=>"alternate"===p?"".concat(t,"right"===e?"-item-right":"left"===e||n%2===0?"-item-left":"-item-right"):"left"===p?"".concat(t,"-item-left"):"right"===p||"right"===e?"".concat(t,"-item-right"):"",v=Ds(a||[]),m="boolean"===typeof o?null:o;o&&v.push({pending:!!o,dot:f||r.createElement(tp,null),children:m}),s&&v.reverse();const y=v.length,b="".concat(t,"-item-last"),x=v.filter((e=>!!e)).map(((e,t)=>{var n;const i=t===y-2?b:"",a=t===y-1?b:"",{className:l}=e,u=x$(e,["className"]);return r.createElement(b$,Object.assign({},u,{className:c()([l,!s&&o?i:a,g(null!==(n=null===e||void 0===e?void 0:e.position)&&void 0!==n?n:"",t)]),key:(null===e||void 0===e?void 0:e.key)||t}))})),w=v.some((e=>!!(null===e||void 0===e?void 0:e.label))),S=c()(t,{["".concat(t,"-pending")]:!!o,["".concat(t,"-reverse")]:!!s,["".concat(t,"-").concat(p)]:!!p&&!w,["".concat(t,"-label")]:w,["".concat(t,"-rtl")]:"rtl"===u},n,l,d);return r.createElement("ul",Object.assign({},h,{className:S}),x)};const S$=function(e,t){return e&&Array.isArray(e)?e:Tc(t).map((e=>{var t,n;return Object.assign({children:null!==(n=null===(t=null===e||void 0===e?void 0:e.props)||void 0===t?void 0:t.children)&&void 0!==n?n:""},e.props)}))};var 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};const _$=e=>{const{getPrefixCls:t,direction:n,timeline:o}=r.useContext(f),{prefixCls:i,children:a,items:l,className:s,style:u}=e,d=O$(e,["prefixCls","children","items","className","style"]),p=t("timeline",i);const h=ks(p),[g,v,m]=m$(p,h),y=S$(l,a);return g(r.createElement(w$,Object.assign({},d,{className:c()(null===o||void 0===o?void 0:o.className,s,m,h),style:Object.assign(Object.assign({},null===o||void 0===o?void 0:o.style),u),prefixCls:p,direction:n,items:y,hashId:v})))};_$.Item=b$;const C$=_$;const E$={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M859.9 168H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zM518.3 355a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V848c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V509.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 355z"}}]},name:"vertical-align-top",theme:"outlined"};var P$=function(e,t){return r.createElement(xs,qc({},e,{ref:t,icon:E$}))};const M$=r.forwardRef(P$);const k$=function(e){let t;const n=function(){if(null==t){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];t=eu((n=>()=>{t=null,e.apply(void 0,Ds(n))})(r))}};return n.cancel=()=>{eu.cancel(t),t=null},n},A$=r.createContext(void 0),{Provider:I$}=A$,T$=A$,j$=new Vr("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),L$=new Vr("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),R$=new Vr("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),D$=new Vr("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),N$=new Vr("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),F$=new Vr("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),B$=e=>{const{fontHeight:t,lineWidth:n,marginXS:r,colorBorderBg:o}=e;return Ui(e,{badgeFontHeight:t,badgeShadowSize:n,badgeTextColor:e.colorTextLightSolid,badgeColor:e.colorError,badgeColorHover:e.colorErrorHover,badgeShadowColor:o,badgeProcessingDuration:"1.2s",badgeRibbonOffset:r,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},z$=e=>{const{fontSize:t,lineHeight:n,fontSizeSM:r,lineWidth:o}=e;return{indicatorZIndex:"auto",indicatorHeight:Math.round(t*n)-2*o,indicatorHeightSM:t,dotSize:r/2,textFontSize:r,textFontSizeSM:r,textFontWeight:"normal",statusSize:r/2}},H$=Ol("Badge",(e=>(e=>{const{componentCls:t,iconCls:n,antCls:r,badgeShadowSize:o,textFontSize:i,textFontSizeSM:a,statusSize:l,dotSize:c,textFontWeight:s,indicatorHeight:u,indicatorHeightSM:d,marginXS:f,calc:p}=e,h="".concat(r,"-scroll-number"),g=ny(e,((e,n)=>{let{darkColor:r}=n;return{["&".concat(t," ").concat(t,"-color-").concat(e)]:{background:r,["&:not(".concat(t,"-count)")]:{color:r},"a:hover &":{background:r}}}}));return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Ur(e)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,["".concat(t,"-count")]:{display:"inline-flex",justifyContent:"center",zIndex:e.indicatorZIndex,minWidth:u,height:u,color:e.badgeTextColor,fontWeight:s,fontSize:i,lineHeight:yn(u),whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:p(u).div(2).equal(),boxShadow:"0 0 0 ".concat(yn(o)," ").concat(e.badgeShadowColor),transition:"background ".concat(e.motionDurationMid),a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},["".concat(t,"-count-sm")]:{minWidth:d,height:d,fontSize:a,lineHeight:yn(d),borderRadius:p(d).div(2).equal()},["".concat(t,"-multiple-words")]:{padding:"0 ".concat(yn(e.paddingXS)),bdi:{unicodeBidi:"plaintext"}},["".concat(t,"-dot")]:{zIndex:e.indicatorZIndex,width:c,minWidth:c,height:c,background:e.badgeColor,borderRadius:"100%",boxShadow:"0 0 0 ".concat(yn(o)," ").concat(e.badgeShadowColor)},["".concat(t,"-count, ").concat(t,"-dot, ").concat(h,"-custom-component")]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",["&".concat(n,"-spin")]:{animationName:F$,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},["&".concat(t,"-status")]:{lineHeight:"inherit",verticalAlign:"baseline",["".concat(t,"-status-dot")]:{position:"relative",top:-1,display:"inline-block",width:l,height:l,verticalAlign:"middle",borderRadius:"50%"},["".concat(t,"-status-success")]:{backgroundColor:e.colorSuccess},["".concat(t,"-status-processing")]:{overflow:"visible",color:e.colorInfo,backgroundColor:e.colorInfo,borderColor:"currentcolor","&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:o,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:j$,animationDuration:e.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},["".concat(t,"-status-default")]:{backgroundColor:e.colorTextPlaceholder},["".concat(t,"-status-error")]:{backgroundColor:e.colorError},["".concat(t,"-status-warning")]:{backgroundColor:e.colorWarning},["".concat(t,"-status-text")]:{marginInlineStart:f,color:e.colorText,fontSize:e.fontSize}}}),g),{["".concat(t,"-zoom-appear, ").concat(t,"-zoom-enter")]:{animationName:L$,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},["".concat(t,"-zoom-leave")]:{animationName:R$,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},["&".concat(t,"-not-a-wrapper")]:{["".concat(t,"-zoom-appear, ").concat(t,"-zoom-enter")]:{animationName:D$,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},["".concat(t,"-zoom-leave")]:{animationName:N$,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},["&:not(".concat(t,"-status)")]:{verticalAlign:"middle"},["".concat(h,"-custom-component, ").concat(t,"-count")]:{transform:"none"},["".concat(h,"-custom-component, ").concat(h)]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[h]:{overflow:"hidden",transition:"all ".concat(e.motionDurationMid," ").concat(e.motionEaseOutBack),["".concat(h,"-only")]:{position:"relative",display:"inline-block",height:u,transition:"all ".concat(e.motionDurationSlow," ").concat(e.motionEaseOutBack),WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",["> p".concat(h,"-only-unit")]:{height:u,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},["".concat(h,"-symbol")]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",["".concat(t,"-count, ").concat(t,"-dot, ").concat(h,"-custom-component")]:{transform:"translate(-50%, -50%)"}}})}})(B$(e))),z$),W$=Ol(["Badge","Ribbon"],(e=>(e=>{const{antCls:t,badgeFontHeight:n,marginXS:r,badgeRibbonOffset:o,calc:i}=e,a="".concat(t,"-ribbon"),l="".concat(t,"-ribbon-wrapper"),c=ny(e,((e,t)=>{let{darkColor:n}=t;return{["&".concat(a,"-color-").concat(e)]:{background:n,color:n}}}));return{[l]:{position:"relative"},[a]:Object.assign(Object.assign(Object.assign(Object.assign({},Ur(e)),{position:"absolute",top:r,padding:"0 ".concat(yn(e.paddingXS)),color:e.colorPrimary,lineHeight:yn(n),whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,["".concat(a,"-text")]:{color:e.badgeTextColor},["".concat(a,"-corner")]:{position:"absolute",top:"100%",width:o,height:o,color:"currentcolor",border:"".concat(yn(i(o).div(2).equal())," solid"),transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter}}),c),{["&".concat(a,"-placement-end")]:{insetInlineEnd:i(o).mul(-1).equal(),borderEndEndRadius:0,["".concat(a,"-corner")]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},["&".concat(a,"-placement-start")]:{insetInlineStart:i(o).mul(-1).equal(),borderEndStartRadius:0,["".concat(a,"-corner")]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}})(B$(e))),z$);const V$=e=>{const{className:t,prefixCls:n,style:o,color:i,children:a,text:l,placement:s="end",rootClassName:u}=e,{getPrefixCls:d,direction:p}=r.useContext(f),h=d("ribbon",n),g="".concat(h,"-wrapper"),[v,m,y]=W$(h,g),b=cy(i,!1),x=c()(h,"".concat(h,"-placement-").concat(s),{["".concat(h,"-rtl")]:"rtl"===p,["".concat(h,"-color-").concat(i)]:b},t),w={},S={};return i&&!b&&(w.background=i,S.color=i),v(r.createElement("div",{className:c()(g,u,m,y)},a,r.createElement("div",{className:c()(x,m),style:Object.assign(Object.assign({},w),o)},r.createElement("span",{className:"".concat(h,"-text")},l),r.createElement("div",{className:"".concat(h,"-corner"),style:S}))))},G$=e=>{const{prefixCls:t,value:n,current:o,offset:i=0}=e;let a;return i&&(a={position:"absolute",top:"".concat(i,"00%"),left:0}),r.createElement("span",{style:a,className:c()("".concat(t,"-only-unit"),{current:o})},n)};function Y$(e,t,n){let r=e,o=0;for(;(r+10)%10!==t;)r+=n,o+=n;return o}const U$=e=>{const{prefixCls:t,count:n,value:o}=e,i=Number(o),a=Math.abs(n),[l,c]=r.useState(i),[s,u]=r.useState(a),d=()=>{c(i),u(a)};let f,p;if(r.useEffect((()=>{const e=setTimeout(d,1e3);return()=>clearTimeout(e)}),[i]),l===i||Number.isNaN(i)||Number.isNaN(l))f=[r.createElement(G$,Object.assign({},e,{key:i,current:!0}))],p={transition:"none"};else{f=[];const t=i+10,n=[];for(let e=i;e<=t;e+=1)n.push(e);const o=n.findIndex((e=>e%10===l));f=n.map(((t,n)=>{const i=t%10;return r.createElement(G$,Object.assign({},e,{key:t,value:i,offset:n-o,current:n===o}))}));p={transform:"translateY(".concat(-Y$(l,i,s<a?1:-1),"00%)")}}return r.createElement("span",{className:"".concat(t,"-only"),style:p,onTransitionEnd:d},f)};var X$=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(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 q$=r.forwardRef(((e,t)=>{const{prefixCls:n,count:o,className:i,motionClassName:a,style:l,title:s,show:u,component:d="sup",children:p}=e,h=X$(e,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:g}=r.useContext(f),v=g("scroll-number",n),m=Object.assign(Object.assign({},h),{"data-show":u,style:l,className:c()(v,i,a),title:s});let y=o;if(o&&Number(o)%1===0){const e=String(o).split("");y=r.createElement("bdi",null,e.map(((t,n)=>r.createElement(U$,{prefixCls:v,count:Number(o),value:t,key:e.length-n}))))}return(null===l||void 0===l?void 0:l.borderColor)&&(m.style=Object.assign(Object.assign({},l),{boxShadow:"0 0 0 1px ".concat(l.borderColor," inset")})),p?Cu(p,(e=>({className:c()("".concat(v,"-custom-component"),null===e||void 0===e?void 0:e.className,a)}))):r.createElement(d,Object.assign({},m,{ref:t}),y)})),K$=q$;var $$=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 Q$=r.forwardRef(((e,t)=>{var n,o,i,a,l;const{prefixCls:s,scrollNumberPrefixCls:u,children:d,status:p,text:h,color:g,count:v=null,overflowCount:m=99,dot:y=!1,size:b="default",title:x,offset:w,style:S,className:O,rootClassName:_,classNames:C,styles:E,showZero:P=!1}=e,M=$$(e,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:k,direction:A,badge:I}=r.useContext(f),T=k("badge",s),[j,L,R]=H$(T),D=v>m?"".concat(m,"+"):v,N="0"===D||0===D,F=(null!==p&&void 0!==p||null!==g&&void 0!==g)&&(null===v||N&&!P),B=y&&!N,z=B?"":D,H=(0,r.useMemo)((()=>(null===z||void 0===z||""===z||N&&!P)&&!B),[z,N,P,B]),W=(0,r.useRef)(v);H||(W.current=v);const V=W.current,G=(0,r.useRef)(z);H||(G.current=z);const Y=G.current,U=(0,r.useRef)(B);H||(U.current=B);const X=(0,r.useMemo)((()=>{if(!w)return Object.assign(Object.assign({},null===I||void 0===I?void 0:I.style),S);const e={marginTop:w[1]};return"rtl"===A?e.left=parseInt(w[0],10):e.right=-parseInt(w[0],10),Object.assign(Object.assign(Object.assign({},e),null===I||void 0===I?void 0:I.style),S)}),[A,w,S,null===I||void 0===I?void 0:I.style]),q=null!==x&&void 0!==x?x:"string"===typeof V||"number"===typeof V?V:void 0,K=H||!h?null:r.createElement("span",{className:"".concat(T,"-status-text")},h),$=V&&"object"===typeof V?Cu(V,(e=>({style:Object.assign(Object.assign({},X),e.style)}))):void 0,Q=cy(g,!1),Z=c()(null===C||void 0===C?void 0:C.indicator,null===(n=null===I||void 0===I?void 0:I.classNames)||void 0===n?void 0:n.indicator,{["".concat(T,"-status-dot")]:F,["".concat(T,"-status-").concat(p)]:!!p,["".concat(T,"-color-").concat(g)]:Q}),J={};g&&!Q&&(J.color=g,J.background=g);const ee=c()(T,{["".concat(T,"-status")]:F,["".concat(T,"-not-a-wrapper")]:!d,["".concat(T,"-rtl")]:"rtl"===A},O,_,null===I||void 0===I?void 0:I.className,null===(o=null===I||void 0===I?void 0:I.classNames)||void 0===o?void 0:o.root,null===C||void 0===C?void 0:C.root,L,R);if(!d&&F){const e=X.color;return j(r.createElement("span",Object.assign({},M,{className:ee,style:Object.assign(Object.assign(Object.assign({},null===E||void 0===E?void 0:E.root),null===(i=null===I||void 0===I?void 0:I.styles)||void 0===i?void 0:i.root),X)}),r.createElement("span",{className:Z,style:Object.assign(Object.assign(Object.assign({},null===E||void 0===E?void 0:E.indicator),null===(a=null===I||void 0===I?void 0:I.styles)||void 0===a?void 0:a.indicator),J)}),h&&r.createElement("span",{style:{color:e},className:"".concat(T,"-status-text")},h)))}return j(r.createElement("span",Object.assign({ref:t},M,{className:ee,style:Object.assign(Object.assign({},null===(l=null===I||void 0===I?void 0:I.styles)||void 0===l?void 0:l.root),null===E||void 0===E?void 0:E.root)}),d,r.createElement(bf,{visible:!H,motionName:"".concat(T,"-zoom"),motionAppear:!1,motionDeadline:1e3},(e=>{let{className:t}=e;var n,o;const i=k("scroll-number",u),a=U.current,l=c()(null===C||void 0===C?void 0:C.indicator,null===(n=null===I||void 0===I?void 0:I.classNames)||void 0===n?void 0:n.indicator,{["".concat(T,"-dot")]:a,["".concat(T,"-count")]:!a,["".concat(T,"-count-sm")]:"small"===b,["".concat(T,"-multiple-words")]:!a&&Y&&Y.toString().length>1,["".concat(T,"-status-").concat(p)]:!!p,["".concat(T,"-color-").concat(g)]:Q});let s=Object.assign(Object.assign(Object.assign({},null===E||void 0===E?void 0:E.indicator),null===(o=null===I||void 0===I?void 0:I.styles)||void 0===o?void 0:o.indicator),X);return g&&!Q&&(s=s||{},s.background=g),r.createElement(K$,{prefixCls:i,show:!H,motionClassName:t,className:l,count:Y,title:q,style:s,key:"scrollNumber"},$)})),K))})),Z$=Q$;Z$.Ribbon=V$;const J$=Z$;const eQ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM504 618H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8z"}}]},name:"file-text",theme:"outlined"};var tQ=function(e,t){return r.createElement(xs,qc({},e,{ref:t,icon:eQ}))};const nQ=r.forwardRef(tQ),rQ=e=>{const{icon:t,description:n,prefixCls:o,className:i}=e,a=r.createElement("div",{className:"".concat(o,"-icon")},r.createElement(nQ,null));return r.createElement("div",{onClick:e.onClick,onFocus:e.onFocus,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,className:c()(i,"".concat(o,"-content"))},t||n?r.createElement(r.Fragment,null,t&&r.createElement("div",{className:"".concat(o,"-icon")},t),n&&r.createElement("div",{className:"".concat(o,"-description")},n)):a)},oQ=(0,r.memo)(rQ),iQ=e=>0===e?0:e-Math.sqrt(Math.pow(e,2)/2),aQ=e=>{const{componentCls:t,floatButtonSize:n,motionDurationSlow:r,motionEaseInOutCirc:o,calc:i}=e,a=new Vr("antFloatButtonMoveTopIn",{"0%":{transform:"translate3d(0, ".concat(yn(n),", 0)"),transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),l=new Vr("antFloatButtonMoveTopOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, ".concat(yn(n),", 0)"),transformOrigin:"0 0",opacity:0}}),c=new Vr("antFloatButtonMoveRightIn",{"0%":{transform:"translate3d(".concat(i(n).mul(-1).equal(),", 0, 0)"),transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),s=new Vr("antFloatButtonMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(".concat(i(n).mul(-1).equal(),", 0, 0)"),transformOrigin:"0 0",opacity:0}}),u=new Vr("antFloatButtonMoveBottomIn",{"0%":{transform:"translate3d(0, ".concat(i(n).mul(-1).equal(),", 0)"),transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),d=new Vr("antFloatButtonMoveBottomOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, ".concat(i(n).mul(-1).equal(),", 0)"),transformOrigin:"0 0",opacity:0}}),f=new Vr("antFloatButtonMoveLeftIn",{"0%":{transform:"translate3d(".concat(yn(n),", 0, 0)"),transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),p=new Vr("antFloatButtonMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(".concat(yn(n),", 0, 0)"),transformOrigin:"0 0",opacity:0}}),h="".concat(t,"-group");return[{[h]:{["&".concat(h,"-top ").concat(h,"-wrap")]:Um("".concat(h,"-wrap"),a,l,r,!0),["&".concat(h,"-bottom ").concat(h,"-wrap")]:Um("".concat(h,"-wrap"),u,d,r,!0),["&".concat(h,"-left ").concat(h,"-wrap")]:Um("".concat(h,"-wrap"),f,p,r,!0),["&".concat(h,"-right ").concat(h,"-wrap")]:Um("".concat(h,"-wrap"),c,s,r,!0)}},{["".concat(h,"-wrap")]:{["&".concat(h,"-wrap-enter, &").concat(h,"-wrap-appear")]:{opacity:0,animationTimingFunction:o},["&".concat(h,"-wrap-leave")]:{opacity:1,animationTimingFunction:o}}}]},lQ=e=>{const{antCls:t,componentCls:n,floatButtonSize:r,margin:o,borderRadiusLG:i,borderRadiusSM:a,badgeOffset:l,floatButtonBodyPadding:c,zIndexPopupBase:s,calc:u}=e,d="".concat(n,"-group");return{[d]:Object.assign(Object.assign({},Ur(e)),{zIndex:s,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",border:"none",position:"fixed",height:"auto",boxShadow:"none",minWidth:r,minHeight:r,insetInlineEnd:e.floatButtonInsetInlineEnd,bottom:e.floatButtonInsetBlockEnd,borderRadius:i,["".concat(d,"-wrap")]:{zIndex:-1,display:"flex",justifyContent:"center",alignItems:"center",position:"absolute"},["&".concat(d,"-rtl")]:{direction:"rtl"},[n]:{position:"static"}}),["".concat(d,"-top > ").concat(d,"-wrap")]:{flexDirection:"column",top:"auto",bottom:u(r).add(o).equal(),"&::after":{content:'""',position:"absolute",width:"100%",height:o,bottom:u(o).mul(-1).equal()}},["".concat(d,"-bottom > ").concat(d,"-wrap")]:{flexDirection:"column",top:u(r).add(o).equal(),bottom:"auto","&::after":{content:'""',position:"absolute",width:"100%",height:o,top:u(o).mul(-1).equal()}},["".concat(d,"-right > ").concat(d,"-wrap")]:{flexDirection:"row",left:{_skip_check_:!0,value:u(r).add(o).equal()},right:{_skip_check_:!0,value:"auto"},"&::after":{content:'""',position:"absolute",width:o,height:"100%",left:{_skip_check_:!0,value:u(o).mul(-1).equal()}}},["".concat(d,"-left > ").concat(d,"-wrap")]:{flexDirection:"row",left:{_skip_check_:!0,value:"auto"},right:{_skip_check_:!0,value:u(r).add(o).equal()},"&::after":{content:'""',position:"absolute",width:o,height:"100%",right:{_skip_check_:!0,value:u(o).mul(-1).equal()}}},["".concat(d,"-circle")]:{gap:o,["".concat(d,"-wrap")]:{gap:o}},["".concat(d,"-square")]:{["".concat(n,"-square")]:{padding:0,borderRadius:0,["&".concat(d,"-trigger")]:{borderRadius:i},"&:first-child":{borderStartStartRadius:i,borderStartEndRadius:i},"&:last-child":{borderEndStartRadius:i,borderEndEndRadius:i},"&:not(:last-child)":{borderBottom:"".concat(yn(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorSplit)},["".concat(t,"-badge")]:{["".concat(t,"-badge-count")]:{top:u(u(c).add(l)).mul(-1).equal(),insetInlineEnd:u(u(c).add(l)).mul(-1).equal()}}},["".concat(d,"-wrap")]:{borderRadius:i,boxShadow:e.boxShadowSecondary,["".concat(n,"-square")]:{boxShadow:"none",borderRadius:0,padding:c,["".concat(n,"-body")]:{width:e.floatButtonBodySize,height:e.floatButtonBodySize,borderRadius:a}}}},["".concat(d,"-top > ").concat(d,"-wrap, ").concat(d,"-bottom > ").concat(d,"-wrap")]:{["> ".concat(n,"-square")]:{"&:first-child":{borderStartStartRadius:i,borderStartEndRadius:i},"&:last-child":{borderEndStartRadius:i,borderEndEndRadius:i},"&:not(:last-child)":{borderBottom:"".concat(yn(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorSplit)}}},["".concat(d,"-left > ").concat(d,"-wrap, ").concat(d,"-right > ").concat(d,"-wrap")]:{["> ".concat(n,"-square")]:{"&:first-child":{borderStartStartRadius:i,borderEndStartRadius:i},"&:last-child":{borderStartEndRadius:i,borderEndEndRadius:i},"&:not(:last-child)":{borderInlineEnd:"".concat(yn(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorSplit)}}},["".concat(d,"-circle-shadow")]:{boxShadow:"none"},["".concat(d,"-square-shadow")]:{boxShadow:e.boxShadowSecondary,["".concat(n,"-square")]:{boxShadow:"none",padding:c,["".concat(n,"-body")]:{width:e.floatButtonBodySize,height:e.floatButtonBodySize,borderRadius:a}}}}},cQ=e=>{const{antCls:t,componentCls:n,floatButtonBodyPadding:r,floatButtonIconSize:o,floatButtonSize:i,borderRadiusLG:a,badgeOffset:l,dotOffsetInSquare:c,dotOffsetInCircle:s,zIndexPopupBase:u,calc:d}=e;return{[n]:Object.assign(Object.assign({},Ur(e)),{border:"none",position:"fixed",cursor:"pointer",zIndex:u,display:"block",width:i,height:i,insetInlineEnd:e.floatButtonInsetInlineEnd,bottom:e.floatButtonInsetBlockEnd,boxShadow:e.boxShadowSecondary,"&-pure":{position:"relative",inset:"auto"},"&:empty":{display:"none"},["".concat(t,"-badge")]:{width:"100%",height:"100%",["".concat(t,"-badge-count")]:{transform:"translate(0, 0)",transformOrigin:"center",top:d(l).mul(-1).equal(),insetInlineEnd:d(l).mul(-1).equal()}},["".concat(n,"-body")]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",transition:"all ".concat(e.motionDurationMid),["".concat(n,"-content")]:{overflow:"hidden",textAlign:"center",minHeight:i,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",padding:"".concat(yn(d(r).div(2).equal())," ").concat(yn(r)),["".concat(n,"-icon")]:{textAlign:"center",margin:"auto",width:o,fontSize:o,lineHeight:1}}}}),["".concat(n,"-rtl")]:{direction:"rtl"},["".concat(n,"-circle")]:{height:i,borderRadius:"50%",["".concat(t,"-badge")]:{["".concat(t,"-badge-dot")]:{top:s,insetInlineEnd:s}},["".concat(n,"-body")]:{borderRadius:"50%"}},["".concat(n,"-square")]:{height:"auto",minHeight:i,borderRadius:a,["".concat(t,"-badge")]:{["".concat(t,"-badge-dot")]:{top:c,insetInlineEnd:c}},["".concat(n,"-body")]:{height:"auto",borderRadius:a}},["".concat(n,"-default")]:{backgroundColor:e.floatButtonBackgroundColor,transition:"background-color ".concat(e.motionDurationMid),["".concat(n,"-body")]:{backgroundColor:e.floatButtonBackgroundColor,transition:"background-color ".concat(e.motionDurationMid),"&:hover":{backgroundColor:e.colorFillContent},["".concat(n,"-content")]:{["".concat(n,"-icon")]:{color:e.colorText},["".concat(n,"-description")]:{display:"flex",alignItems:"center",lineHeight:yn(e.fontSizeLG),color:e.colorText,fontSize:e.fontSizeSM}}}},["".concat(n,"-primary")]:{backgroundColor:e.colorPrimary,["".concat(n,"-body")]:{backgroundColor:e.colorPrimary,transition:"background-color ".concat(e.motionDurationMid),"&:hover":{backgroundColor:e.colorPrimaryHover},["".concat(n,"-content")]:{["".concat(n,"-icon")]:{color:e.colorTextLightSolid},["".concat(n,"-description")]:{display:"flex",alignItems:"center",lineHeight:yn(e.fontSizeLG),color:e.colorTextLightSolid,fontSize:e.fontSizeSM}}}}}},sQ=Ol("FloatButton",(e=>{const{colorTextLightSolid:t,colorBgElevated:n,controlHeightLG:r,marginXXL:o,marginLG:i,fontSize:a,fontSizeIcon:l,controlItemBgHover:c,paddingXXS:s,calc:u}=e,d=Ui(e,{floatButtonBackgroundColor:n,floatButtonColor:t,floatButtonHoverBackgroundColor:c,floatButtonFontSize:a,floatButtonIconSize:u(l).mul(1.5).equal(),floatButtonSize:r,floatButtonInsetBlockEnd:o,floatButtonInsetInlineEnd:i,floatButtonBodySize:u(r).sub(u(s).mul(2)).equal(),floatButtonBodyPadding:s,badgeOffset:u(s).mul(1.5).equal()});return[lQ(d),cQ(d),GE(e),aQ(d)]}),(e=>({dotOffsetInCircle:iQ(e.controlHeightLG/2),dotOffsetInSquare:iQ(e.borderRadiusLG)})));var uQ=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 dQ="float-btn",fQ=r.forwardRef(((e,t)=>{const{prefixCls:n,className:o,rootClassName:i,style:a,type:l="default",shape:s="circle",icon:u,description:d,tooltip:p,htmlType:h="button",badge:g={}}=e,v=uQ(e,["prefixCls","className","rootClassName","style","type","shape","icon","description","tooltip","htmlType","badge"]),{getPrefixCls:m,direction:y}=(0,r.useContext)(f),b=(0,r.useContext)(T$),x=m(dQ,n),w=ks(x),[S,O,_]=sQ(x,w),C=b||s,E=c()(O,_,w,x,o,i,"".concat(x,"-").concat(l),"".concat(x,"-").concat(C),{["".concat(x,"-rtl")]:"rtl"===y}),[P]=_m("FloatButton",null===a||void 0===a?void 0:a.zIndex),M=Object.assign(Object.assign({},a),{zIndex:P}),k=hu(g,["title","children","status","text"]),A=(0,r.useMemo)((()=>({prefixCls:x,description:d,icon:u,type:l})),[x,d,u,l]);let I=r.createElement("div",{className:"".concat(x,"-body")},r.createElement(oQ,Object.assign({},A)));return"badge"in e&&(I=r.createElement(J$,Object.assign({},k),I)),"tooltip"in e&&(I=r.createElement(hy,{title:p,placement:"rtl"===y?"right":"left"},I)),S(e.href?r.createElement("a",Object.assign({ref:t},v,{className:E,style:M}),I):r.createElement("button",Object.assign({ref:t},v,{className:E,style:M,type:h}),I))}));const pQ=fQ;var hQ=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 gQ=r.forwardRef(((e,t)=>{const{prefixCls:n,className:o,type:i="default",shape:a="circle",visibilityHeight:l=400,icon:s=r.createElement(M$,null),target:u,onClick:d,duration:p=450}=e,h=hQ(e,["prefixCls","className","type","shape","visibilityHeight","icon","target","onClick","duration"]),[g,v]=(0,r.useState)(0===l),m=r.useRef(null);r.useImperativeHandle(t,(()=>({nativeElement:m.current})));const y=()=>{var e;return(null===(e=m.current)||void 0===e?void 0:e.ownerDocument)||window},b=k$((e=>{const t=lD(e.target);v(t>=l)}));(0,r.useEffect)((()=>{const e=(u||y)();return b({target:e}),null===e||void 0===e||e.addEventListener("scroll",b),()=>{b.cancel(),null===e||void 0===e||e.removeEventListener("scroll",b)}}),[u]);const x=e=>{cD(0,{getContainer:u||y,duration:p}),null===d||void 0===d||d(e)},{getPrefixCls:w}=(0,r.useContext)(f),S=w(dQ,n),O=w(),_=(0,r.useContext)(T$)||a,C=Object.assign({prefixCls:S,icon:s,type:i,shape:_},h);return r.createElement(bf,{visible:g,motionName:"".concat(O,"-fade")},((e,t)=>{let{className:n}=e;return r.createElement(pQ,Object.assign({ref:kc(m,t)},C,{onClick:x,className:c()(o,n)}))}))}));const vQ=gQ;var mQ=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 yQ=e=>{var t;const{prefixCls:n,className:o,style:i,shape:a="circle",type:l="default",placement:s="top",icon:u=r.createElement(nQ,null),closeIcon:d,description:p,trigger:h,children:g,onOpenChange:v,open:m,onClick:y}=e,b=mQ(e,["prefixCls","className","style","shape","type","placement","icon","closeIcon","description","trigger","children","onOpenChange","open","onClick"]),{direction:x,getPrefixCls:w,floatButtonGroup:S}=r.useContext(f),O=null!==(t=null!==d&&void 0!==d?d:null===S||void 0===S?void 0:S.closeIcon)&&void 0!==t?t:r.createElement(dC,null),_=w(dQ,n),C=ks(_),[E,P,M]=sQ(_,C),k="".concat(_,"-group"),A=h&&["click","hover"].includes(h),I=s&&["top","left","right","bottom"].includes(s),T=c()(k,P,M,C,o,{["".concat(k,"-rtl")]:"rtl"===x,["".concat(k,"-").concat(a)]:a,["".concat(k,"-").concat(a,"-shadow")]:!A,["".concat(k,"-").concat(s)]:A&&I}),[j]=_m("FloatButton",null===i||void 0===i?void 0:i.zIndex),L=Object.assign(Object.assign({},i),{zIndex:j}),R=c()(P,"".concat(k,"-wrap")),[D,N]=pd(!1,{value:m}),F=r.useRef(null),B="hover"===h,z="click"===h,H=Ns((e=>{D!==e&&(N(e),null===v||void 0===v||v(e))}));return r.useEffect((()=>{if(z){const e=e=>{var t;(null===(t=F.current)||void 0===t?void 0:t.contains(e.target))||H(!1)};return document.addEventListener("click",e,{capture:!0}),()=>document.removeEventListener("click",e,{capture:!0})}}),[z]),E(r.createElement(I$,{value:a},r.createElement("div",{ref:F,className:T,style:L,onMouseEnter:()=>{B&&H(!0)},onMouseLeave:()=>{B&&H(!1)}},A?r.createElement(r.Fragment,null,r.createElement(bf,{visible:D,motionName:"".concat(k,"-wrap")},(e=>{let{className:t}=e;return r.createElement("div",{className:c()(t,R)},g)})),r.createElement(pQ,Object.assign({type:l,icon:D?O:u,description:p,"aria-label":e["aria-label"],className:"".concat(k,"-trigger"),onClick:e=>{z&&H(!D),null===y||void 0===y||y(e)}},b))):g)))};var bQ=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 xQ=e=>{var{backTop:t}=e,n=bQ(e,["backTop"]);return t?r.createElement(vQ,Object.assign({},n,{visibilityHeight:0})):r.createElement(pQ,Object.assign({},n))},wQ=e=>{var{className:t,items:n}=e,o=bQ(e,["className","items"]);const{prefixCls:i}=o,{getPrefixCls:a}=r.useContext(f),l=a(dQ,i),s="".concat(l,"-pure");return n?r.createElement(yQ,Object.assign({className:c()(t,s)},o),n.map(((e,t)=>r.createElement(xQ,Object.assign({key:t},e))))):r.createElement(xQ,Object.assign({className:c()(t,s)},o))};pQ.BackTop=vQ,pQ.Group=yQ,pQ._InternalPanelDoNotUseOrYouWillBeFired=wQ;const SQ=pQ,{TabPane:OQ}=Ez,{Text:_Q,Title:CQ}=gb,EQ=[{title:"\u5730\u533a",dataIndex:"title"},{title:"\u786e\u8bca",dataIndex:"diagnose",render:e=>(0,uK.jsx)(_Q,{style:{color:"#cf1322"},children:e}),sorter:(e,t)=>e.diagnose-t.diagnose,sortDirections:["descend","ascend"]},{title:"\u7591\u4f3c",dataIndex:"suspected",sorter:(e,t)=>e.suspected-t.suspected,sortDirections:["descend","ascend"]},{title:"\u6cbb\u6108",dataIndex:"cure",render:e=>(0,uK.jsx)(_Q,{style:{color:"#008dff"},children:e}),sorter:(e,t)=>e.cure-t.cure,sortDirections:["descend","ascend"]},{title:"\u6b7b\u4ea1",dataIndex:"die",sorter:(e,t)=>e.die-t.die,sortDirections:["descend","ascend"]},{title:"\u603b\u6570",dataIndex:"total",sorter:(e,t)=>e.total-t.total,sortDirections:["descend","ascend"]}];let PQ=!0;class MQ extends r.Component{constructor(){super(...arguments),this.state={loading:{virus:!1,news:!0},key:"1",virus:{global_stats:{diagnose:0,suspected:0,cure:0,die:0,total:0,time:DU()().format("YYYY-MM-DD HH:mm:ss")},prov_stats:[],other_stats:[],news:[],page:1},drawer:!1,tab:null},this.getVirusData=()=>{this.props.changeLoading(!0),iK.get("https://h5.peopleapp.com/2019ncov/Home/index").then((e=>{let t=e.data;t.news=[],t.page=1,this.props.changeLoading(!1),this.setState({virus:t,drawer:!0})}))},this.sortProvince=(e,t)=>e.total<t.total?1:-1,this.getVirusRate=e=>{const t=this.state.virus.global_stats;return(e/(t.total+t.die+t.cure)*100).toFixed(2)},this.getNews=e=>{const{loading:t}=this.state,n=this.state.virus;if(t.news=!0,this.setState({loading:t}),e){n.news=[],n.page=1;const e=document.getElementById("tab");e&&(e.scrollTop=0)}else n.page+=1;iK.get("https://h5.peopleapp.com/2019ncov/newsApi",{params:{type:2,page_size:10,page:n.page}}).then((e=>{for(let t of e.data.items)n.news.push(t);t.news=!1,this.setState({loading:t,virus:n},(()=>{if(PQ=!0,!this.state.tab){const e=document.getElementById("tab");e.addEventListener("scroll",(e=>{const{scrollTop:t,scrollHeight:n,clientHeight:r}=e.target;t+r>=n&&PQ&&0!==t&&(PQ=!1,this.getNews(!1))})),this.setState({tab:e})}}))}))}}componentDidMount(){this.context.onRef(this,"virus")}render(){const{loading:e,key:t,drawer:n,virus:r}=this.state;return(0,uK.jsx)(RM,{title:"\u75ab\u60c5\u5b9e\u51b5",placement:"right",width:window.outerWidth>520?500:window.outerWidth,onClose:()=>this.setState({drawer:!1,key:"1"}),open:n,style:{textAlign:"center"},children:(0,uK.jsxs)(Ez,{activeKey:t,onTabClick:e=>{this.setState({key:e}),"3"===e.toString()&&this.getNews(!0)},children:[(0,uK.jsxs)(OQ,{tab:"\u56fd\u5185\u6570\u636e",children:[(0,uK.jsxs)(kK,{color:"red",children:["\u622a\u6b62 ",r.global_stats.time," \u6570\u636e\u7edf\u8ba1"]}),(0,uK.jsxs)(BK,{style:{marginTop:10,marginBottom:10},children:[(0,uK.jsxs)(YK,{span:6,children:[(0,uK.jsx)(n$,{title:"\u786e\u8bca",value:r.global_stats.diagnose,valueStyle:{color:"#cf1322"}}),(0,uK.jsx)(n$,{title:"\u6bd4\u4f8b",value:this.getVirusRate(r.global_stats.diagnose),suffix:"%",valueStyle:{color:"#cf1322"}})]}),(0,uK.jsxs)(YK,{span:6,children:[(0,uK.jsx)(n$,{title:"\u7591\u4f3c",value:r.global_stats.suspected}),(0,uK.jsx)(n$,{title:"\u6bd4\u4f8b",value:this.getVirusRate(r.global_stats.suspected),suffix:"%"})]}),(0,uK.jsxs)(YK,{span:6,children:[(0,uK.jsx)(n$,{title:"\u6cbb\u6108",value:r.global_stats.cure,valueStyle:{color:"#008dff"}}),(0,uK.jsx)(n$,{title:"\u6bd4\u4f8b",value:this.getVirusRate(r.global_stats.cure),suffix:"%",valueStyle:{color:"#008dff"}})]}),(0,uK.jsxs)(YK,{span:6,children:[(0,uK.jsx)(n$,{title:"\u6b7b\u4ea1",value:r.global_stats.die}),(0,uK.jsx)(n$,{title:"\u6bd4\u4f8b",value:this.getVirusRate(r.global_stats.die),suffix:"%"})]})]}),(0,uK.jsx)(IB,{columns:EQ,dataSource:r.prov_stats.sort(this.sortProvince),rowKey:"title",scroll:{x:500}})]},"1"),(0,uK.jsx)(OQ,{tab:"\u56fd\u9645\u6570\u636e",style:{height:window.innerHeight-165,overflow:"auto"},children:(0,uK.jsx)(g$,{dataSource:r.other_stats,renderItem:e=>(0,uK.jsx)(g$.Item,{children:e.title})})},"2"),(0,uK.jsx)(OQ,{tab:"\u5b9e\u65f6\u64ad\u62a5",style:{height:window.innerHeight-165,overflow:"auto"},children:(0,uK.jsxs)("div",{id:"tab",style:{height:window.innerHeight-165,overflow:"auto"},children:[(0,uK.jsx)(cN,{spinning:e.news,indicator:(0,uK.jsx)(tp,{spin:!0}),style:{marginBottom:15}}),(0,uK.jsx)(C$,{style:{textAlign:"left"},children:r.news.map((e=>(0,uK.jsxs)(C$.Item,{children:[(0,uK.jsx)(_Q,{style:{marginRight:10},children:DU()(e.publish_time).fromNow()}),(0,uK.jsx)(_Q,{children:e.publish_time}),(0,uK.jsx)(CQ,{level:4,children:e.title}),(0,uK.jsx)(_Q,{children:e.content})]},e.publish_time)))}),(0,uK.jsx)(SQ.BackTop,{target:()=>document.getElementById("tab")})]})},"3")]})})}}MQ.contextTypes={onRef:sK().func};const kQ=MQ;var AQ={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},IQ=function(){var e=(0,r.useRef)([]),t=(0,r.useRef)(null);return(0,r.useEffect)((function(){var n=Date.now(),r=!1;e.current.forEach((function(e){if(e){r=!0;var o=e.style;o.transitionDuration=".3s, .3s, .3s, .06s",t.current&&n-t.current<100&&(o.transitionDuration="0s, 0s")}})),r&&(t.current=Date.now())})),e.current};var TQ=0,jQ=Rt();const LQ=function(e){var t=gt(r.useState(),2),n=t[0],o=t[1];return r.useEffect((function(){o("rc_progress_".concat(function(){var e;return jQ?(e=TQ,TQ+=1):e="TEST_OR_SSR",e}()))}),[]),e||n};var RQ=function(e){var t=e.bg,n=e.children;return r.createElement("div",{style:{width:"100%",height:"100%",background:t}},n)};function DQ(e,t){return Object.keys(e).map((function(n){var r=parseFloat(n),o="".concat(Math.floor(r*t),"%");return"".concat(e[n]," ").concat(o)}))}var NQ=r.forwardRef((function(e,t){var n=e.prefixCls,o=e.color,i=e.gradientId,a=e.radius,l=e.style,c=e.ptg,s=e.strokeLinecap,u=e.strokeWidth,d=e.size,f=e.gapDegree,p=o&&"object"===v(o),h=p?"#FFF":void 0,g=d/2,m=r.createElement("circle",{className:"".concat(n,"-circle-path"),r:a,cx:g,cy:g,stroke:h,strokeLinecap:s,strokeWidth:u,opacity:0===c?0:1,style:l,ref:t});if(!p)return m;var y="".concat(i,"-conic"),b=f?"".concat(180+f/2,"deg"):"0deg",x=DQ(o,(360-f)/360),w=DQ(o,1),S="conic-gradient(from ".concat(b,", ").concat(x.join(", "),")"),O="linear-gradient(to ".concat(f?"bottom":"top",", ").concat(w.join(", "),")");return r.createElement(r.Fragment,null,r.createElement("mask",{id:y},m),r.createElement("foreignObject",{x:0,y:0,width:d,height:d,mask:"url(#".concat(y,")")},r.createElement(RQ,{bg:O},r.createElement(RQ,{bg:S}))))}));const FQ=NQ;var BQ=100,zQ=function(e,t,n,r,o,i,a,l,c,s){var u=arguments.length>10&&void 0!==arguments[10]?arguments[10]:0,d=n/100*360*((360-i)/360),f=0===i?0:{bottom:0,top:180,left:90,right:-90}[a],p=(100-r)/100*t;"round"===c&&100!==r&&(p+=s/2)>=t&&(p=t-.01);return{stroke:"string"===typeof l?l:void 0,strokeDasharray:"".concat(t,"px ").concat(e),strokeDashoffset:p+u,transform:"rotate(".concat(o+d+f,"deg)"),transformOrigin:"".concat(50,"px ").concat(50,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},HQ=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function WQ(e){var t=null!==e&&void 0!==e?e:[];return Array.isArray(t)?t:[t]}const VQ=function(e){var t=O(O({},AQ),e),n=t.id,o=t.prefixCls,i=t.steps,a=t.strokeWidth,l=t.trailWidth,s=t.gapDegree,u=void 0===s?0:s,d=t.gapPosition,f=t.trailColor,p=t.strokeLinecap,m=t.style,y=t.className,b=t.strokeColor,x=t.percent,w=g(t,HQ),S=LQ(n),_="".concat(S,"-gradient"),C=50-a/2,E=2*Math.PI*C,P=u>0?90+u/2:-90,M=E*((360-u)/360),k="object"===v(i)?i:{count:i,gap:2},A=k.count,I=k.gap,T=WQ(x),j=WQ(b),L=j.find((function(e){return e&&"object"===v(e)})),R=L&&"object"===v(L)?"butt":p,D=zQ(E,M,0,100,P,u,d,f,R,a),N=IQ();return r.createElement("svg",h({className:c()("".concat(o,"-circle"),y),viewBox:"0 0 ".concat(BQ," ").concat(BQ),style:m,id:n,role:"presentation"},w),!A&&r.createElement("circle",{className:"".concat(o,"-circle-trail"),r:C,cx:50,cy:50,stroke:f,strokeLinecap:R,strokeWidth:l||a,style:D}),A?function(){var e=Math.round(A*(T[0]/100)),t=100/A,n=0;return new Array(A).fill(null).map((function(i,l){var c=l<=e-1?j[0]:f,s=c&&"object"===v(c)?"url(#".concat(_,")"):void 0,p=zQ(E,M,n,t,P,u,d,c,"butt",a,I);return n+=100*(M-p.strokeDashoffset+I)/M,r.createElement("circle",{key:l,className:"".concat(o,"-circle-path"),r:C,cx:50,cy:50,stroke:s,strokeWidth:a,opacity:1,style:p,ref:function(e){N[l]=e}})}))}():function(){var e=0;return T.map((function(t,n){var i=j[n]||j[j.length-1],l=zQ(E,M,e,t,P,u,d,i,R,a);return e+=t,r.createElement(FQ,{key:n,color:i,ptg:t,radius:C,prefixCls:o,gradientId:_,style:l,strokeLinecap:R,strokeWidth:a,gapDegree:u,ref:function(e){N[n]=e},size:BQ})})).reverse()}())};function GQ(e){return!e||e<0?0:e>100?100:e}function YQ(e){let{success:t,successPercent:n}=e,r=n;return t&&"progress"in t&&(r=t.progress),t&&"percent"in t&&(r=t.percent),r}const UQ=(e,t,n)=>{var r,o,i,a;let l=-1,c=-1;if("step"===t){const t=n.steps,r=n.strokeWidth;"string"===typeof e||"undefined"===typeof e?(l="small"===e?2:14,c=null!==r&&void 0!==r?r:8):"number"===typeof e?[l,c]=[e,e]:[l=14,c=8]=Array.isArray(e)?e:[e.width,e.height],l*=t}else if("line"===t){const t=null===n||void 0===n?void 0:n.strokeWidth;"string"===typeof e||"undefined"===typeof e?c=t||("small"===e?6:8):"number"===typeof e?[l,c]=[e,e]:[l=-1,c=8]=Array.isArray(e)?e:[e.width,e.height]}else"circle"!==t&&"dashboard"!==t||("string"===typeof e||"undefined"===typeof e?[l,c]="small"===e?[60,60]:[120,120]:"number"===typeof e?[l,c]=[e,e]:Array.isArray(e)&&(l=null!==(o=null!==(r=e[0])&&void 0!==r?r:e[1])&&void 0!==o?o:120,c=null!==(a=null!==(i=e[0])&&void 0!==i?i:e[1])&&void 0!==a?a:120));return[l,c]},XQ=e=>{const{prefixCls:t,trailColor:n=null,strokeLinecap:o="round",gapPosition:i,gapDegree:a,width:l=120,type:s,children:u,success:d,size:f=l,steps:p}=e,[h,g]=UQ(f,"circle");let{strokeWidth:v}=e;void 0===v&&(v=Math.max((e=>3/e*100)(h),6));const m={width:h,height:g,fontSize:.15*h+6},y=r.useMemo((()=>a||0===a?a:"dashboard"===s?75:void 0),[a,s]),b=(e=>{let{percent:t,success:n,successPercent:r}=e;const o=GQ(YQ({success:n,successPercent:r}));return[o,GQ(GQ(t)-o)]})(e),x=i||"dashboard"===s&&"bottom"||void 0,w="[object Object]"===Object.prototype.toString.call(e.strokeColor),S=(e=>{let{success:t={},strokeColor:n}=e;const{strokeColor:r}=t;return[r||xa.green,n||null]})({success:d,strokeColor:e.strokeColor}),O=c()("".concat(t,"-inner"),{["".concat(t,"-circle-gradient")]:w}),_=r.createElement(VQ,{steps:p,percent:p?b[1]:b,strokeWidth:v,trailWidth:v,strokeColor:p?S[1]:S,strokeLinecap:o,trailColor:n,prefixCls:t,gapDegree:y,gapPosition:x}),C=h<=20,E=r.createElement("div",{className:O,style:m},_,!C&&u);return C?r.createElement(hy,{title:u},E):E},qQ="--progress-line-stroke-color",KQ="--progress-percent",$Q=e=>{const t=e?"100%":"-100%";return new Vr("antProgress".concat(e?"RTL":"LTR","Active"),{"0%":{transform:"translateX(".concat(t,") scaleX(0)"),opacity:.1},"20%":{transform:"translateX(".concat(t,") scaleX(0)"),opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},QQ=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:Object.assign(Object.assign({},Ur(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize},["".concat(t,"-outer")]:{display:"inline-flex",alignItems:"center",width:"100%"},["".concat(t,"-inner")]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:e.remainingColor,borderRadius:e.lineBorderRadius},["".concat(t,"-inner:not(").concat(t,"-circle-gradient)")]:{["".concat(t,"-circle-path")]:{stroke:e.defaultColor}},["".concat(t,"-success-bg, ").concat(t,"-bg")]:{position:"relative",background:e.defaultColor,borderRadius:e.lineBorderRadius,transition:"all ".concat(e.motionDurationSlow," ").concat(e.motionEaseInOutCirc)},["".concat(t,"-layout-bottom")]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",["".concat(t,"-text")]:{width:"max-content",marginInlineStart:0,marginTop:e.marginXXS}},["".concat(t,"-bg")]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit","var(".concat(qQ,")")]},height:"100%",width:"calc(1 / var(".concat(KQ,") * 100%)"),display:"block"},["&".concat(t,"-bg-inner")]:{minWidth:"max-content","&::after":{content:"none"},["".concat(t,"-text-inner")]:{color:e.colorWhite,["&".concat(t,"-text-bright")]:{color:"rgba(0, 0, 0, 0.45)"}}}},["".concat(t,"-success-bg")]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},["".concat(t,"-text")]:{display:"inline-block",marginInlineStart:e.marginXS,color:e.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[n]:{fontSize:e.fontSize},["&".concat(t,"-text-outer")]:{width:"max-content"},["&".concat(t,"-text-outer").concat(t,"-text-start")]:{width:"max-content",marginInlineStart:0,marginInlineEnd:e.marginXS}},["".concat(t,"-text-inner")]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:"0 ".concat(yn(e.paddingXXS)),["&".concat(t,"-text-start")]:{justifyContent:"start"},["&".concat(t,"-text-end")]:{justifyContent:"end"}},["&".concat(t,"-status-active")]:{["".concat(t,"-bg::before")]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.lineBorderRadius,opacity:0,animationName:$Q(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},["&".concat(t,"-rtl").concat(t,"-status-active")]:{["".concat(t,"-bg::before")]:{animationName:$Q(!0)}},["&".concat(t,"-status-exception")]:{["".concat(t,"-bg")]:{backgroundColor:e.colorError},["".concat(t,"-text")]:{color:e.colorError}},["&".concat(t,"-status-exception ").concat(t,"-inner:not(").concat(t,"-circle-gradient)")]:{["".concat(t,"-circle-path")]:{stroke:e.colorError}},["&".concat(t,"-status-success")]:{["".concat(t,"-bg")]:{backgroundColor:e.colorSuccess},["".concat(t,"-text")]:{color:e.colorSuccess}},["&".concat(t,"-status-success ").concat(t,"-inner:not(").concat(t,"-circle-gradient)")]:{["".concat(t,"-circle-path")]:{stroke:e.colorSuccess}}})}},ZQ=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{["".concat(t,"-circle-trail")]:{stroke:e.remainingColor},["&".concat(t,"-circle ").concat(t,"-inner")]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},["&".concat(t,"-circle ").concat(t,"-text")]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.circleTextColor,fontSize:e.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[n]:{fontSize:e.circleIconFontSize}},["".concat(t,"-circle&-status-exception")]:{["".concat(t,"-text")]:{color:e.colorError}},["".concat(t,"-circle&-status-success")]:{["".concat(t,"-text")]:{color:e.colorSuccess}}},["".concat(t,"-inline-circle")]:{lineHeight:1,["".concat(t,"-inner")]:{verticalAlign:"bottom"}}}},JQ=e=>{const{componentCls:t}=e;return{[t]:{["".concat(t,"-steps")]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.remainingColor,transition:"all ".concat(e.motionDurationSlow),"&-active":{backgroundColor:e.defaultColor}}}}}},eZ=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{["".concat(t,"-small&-line, ").concat(t,"-small&-line ").concat(t,"-text ").concat(n)]:{fontSize:e.fontSizeSM}}}},tZ=Ol("Progress",(e=>{const t=e.calc(e.marginXXS).div(2).equal(),n=Ui(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[QQ(n),ZQ(n),JQ(n),eZ(n)]}),(e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:"".concat(e.fontSize/e.fontSizeSM,"em")})));var nZ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(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 rZ=(e,t)=>{const{from:n=xa.blue,to:r=xa.blue,direction:o=("rtl"===t?"to left":"to right")}=e,i=nZ(e,["from","to","direction"]);if(0!==Object.keys(i).length){const e=(e=>{let t=[];return Object.keys(e).forEach((n=>{const r=parseFloat(n.replace(/%/g,""));isNaN(r)||t.push({key:r,value:e[n]})})),t=t.sort(((e,t)=>e.key-t.key)),t.map((e=>{let{key:t,value:n}=e;return"".concat(n," ").concat(t,"%")})).join(", ")})(i),t="linear-gradient(".concat(o,", ").concat(e,")");return{background:t,[qQ]:t}}const a="linear-gradient(".concat(o,", ").concat(n,", ").concat(r,")");return{background:a,[qQ]:a}},oZ=e=>{const{prefixCls:t,direction:n,percent:o,size:i,strokeWidth:a,strokeColor:l,strokeLinecap:s="round",children:u,trailColor:d=null,percentPosition:f,success:p}=e,{align:h,type:g}=f,v=l&&"string"!==typeof l?rZ(l,n):{[qQ]:l,background:l},m="square"===s||"butt"===s?0:void 0,y=null!==i&&void 0!==i?i:[-1,a||("small"===i?6:8)],[b,x]=UQ(y,"line",{strokeWidth:a});const w={backgroundColor:d||void 0,borderRadius:m},S=Object.assign(Object.assign({width:"".concat(GQ(o),"%"),height:x,borderRadius:m},v),{[KQ]:GQ(o)/100}),O=YQ(e),_={width:"".concat(GQ(O),"%"),height:x,borderRadius:m,backgroundColor:null===p||void 0===p?void 0:p.strokeColor},C={width:b<0?"100%":b},E=r.createElement("div",{className:"".concat(t,"-inner"),style:w},r.createElement("div",{className:c()("".concat(t,"-bg"),"".concat(t,"-bg-").concat(g)),style:S},"inner"===g&&u),void 0!==O&&r.createElement("div",{className:"".concat(t,"-success-bg"),style:_})),P="outer"===g&&"start"===h,M="outer"===g&&"end"===h;return"outer"===g&&"center"===h?r.createElement("div",{className:"".concat(t,"-layout-bottom")},E,u):r.createElement("div",{className:"".concat(t,"-outer"),style:C},P&&u,E,M&&u)},iZ=e=>{const{size:t,steps:n,percent:o=0,strokeWidth:i=8,strokeColor:a,trailColor:l=null,prefixCls:s,children:u}=e,d=Math.round(n*(o/100)),f=null!==t&&void 0!==t?t:["small"===t?2:14,i],[p,h]=UQ(f,"step",{steps:n,strokeWidth:i}),g=p/n,v=new Array(n);for(let m=0;m<n;m++){const e=Array.isArray(a)?a[m]:a;v[m]=r.createElement("div",{key:m,className:c()("".concat(s,"-steps-item"),{["".concat(s,"-steps-item-active")]:m<=d-1}),style:{backgroundColor:m<=d-1?e:l,width:g,height:h}})}return r.createElement("div",{className:"".concat(s,"-steps-outer")},v,u)};var aZ=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 lZ=["normal","exception","active","success"],cZ=r.forwardRef(((e,t)=>{const{prefixCls:n,className:o,rootClassName:i,steps:a,strokeColor:l,percent:s=0,size:u="default",showInfo:d=!0,type:p="line",status:h,format:g,style:v,percentPosition:m={}}=e,y=aZ(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:b="end",type:x="outer"}=m,w=Array.isArray(l)?l[0]:l,S="string"===typeof l||Array.isArray(l)?l:void 0,O=r.useMemo((()=>{if(w){const e="string"===typeof w?w:Object.values(w)[0];return new Za(e).isLight()}return!1}),[l]),_=r.useMemo((()=>{var t,n;const r=YQ(e);return parseInt(void 0!==r?null===(t=null!==r&&void 0!==r?r:0)||void 0===t?void 0:t.toString():null===(n=null!==s&&void 0!==s?s:0)||void 0===n?void 0:n.toString(),10)}),[s,e.success,e.successPercent]),C=r.useMemo((()=>!lZ.includes(h)&&_>=100?"success":h||"normal"),[h,_]),{getPrefixCls:E,direction:P,progress:M}=r.useContext(f),k=E("progress",n),[A,I,T]=tZ(k),j="line"===p,L=j&&!a,R=r.useMemo((()=>{if(!d)return null;const t=YQ(e);let n;const o=g||(e=>"".concat(e,"%")),i=j&&O&&"inner"===x;return"inner"===x||g||"exception"!==C&&"success"!==C?n=o(GQ(s),GQ(t)):"exception"===C?n=j?r.createElement(Ss,null):r.createElement(dC,null):"success"===C&&(n=j?r.createElement(_C,null):r.createElement(zy,null)),r.createElement("span",{className:c()("".concat(k,"-text"),{["".concat(k,"-text-bright")]:i,["".concat(k,"-text-").concat(b)]:L,["".concat(k,"-text-").concat(x)]:L}),title:"string"===typeof n?n:void 0},n)}),[d,s,_,C,p,k,g]);let D;"line"===p?D=a?r.createElement(iZ,Object.assign({},e,{strokeColor:S,prefixCls:k,steps:"object"===typeof a?a.count:a}),R):r.createElement(oZ,Object.assign({},e,{strokeColor:w,prefixCls:k,direction:P,percentPosition:{align:b,type:x}}),R):"circle"!==p&&"dashboard"!==p||(D=r.createElement(XQ,Object.assign({},e,{strokeColor:w,prefixCls:k,progressStatus:C}),R));const N=c()(k,"".concat(k,"-status-").concat(C),{["".concat(k,"-").concat("dashboard"===p?"circle":p)]:"line"!==p,["".concat(k,"-inline-circle")]:"circle"===p&&UQ(u,"circle")[0]<=20,["".concat(k,"-line")]:L,["".concat(k,"-line-align-").concat(b)]:L,["".concat(k,"-line-position-").concat(x)]:L,["".concat(k,"-steps")]:a,["".concat(k,"-show-info")]:d,["".concat(k,"-").concat(u)]:"string"===typeof u,["".concat(k,"-rtl")]:"rtl"===P},null===M||void 0===M?void 0:M.className,o,i,I,T);return A(r.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},null===M||void 0===M?void 0:M.style),v),className:N,role:"progressbar","aria-valuenow":_,"aria-valuemin":0,"aria-valuemax":100},hu(y,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),D))}));const sZ=cZ,uZ=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:o,textPaddingInline:i,orientationMargin:a,verticalMarginInline:l}=e;return{[t]:Object.assign(Object.assign({},Ur(e)),{borderBlockStart:"".concat(yn(o)," solid ").concat(r),"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:l,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:"".concat(yn(o)," solid ").concat(r)},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:"".concat(yn(e.dividerHorizontalGutterMargin)," 0")},["&-horizontal".concat(t,"-with-text")]:{display:"flex",alignItems:"center",margin:"".concat(yn(e.dividerHorizontalWithTextGutterMargin)," 0"),color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:"0 ".concat(r),"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:"".concat(yn(o)," solid transparent"),borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},["&-horizontal".concat(t,"-with-text-left")]:{"&::before":{width:"calc(".concat(a," * 100%)")},"&::after":{width:"calc(100% - ".concat(a," * 100%)")}},["&-horizontal".concat(t,"-with-text-right")]:{"&::before":{width:"calc(100% - ".concat(a," * 100%)")},"&::after":{width:"calc(".concat(a," * 100%)")}},["".concat(t,"-inner-text")]:{display:"inline-block",paddingBlock:0,paddingInline:i},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:"".concat(yn(o)," 0 0")},["&-horizontal".concat(t,"-with-text").concat(t,"-dashed")]:{"&::before, &::after":{borderStyle:"dashed none none"}},["&-vertical".concat(t,"-dashed")]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:r,borderStyle:"dotted",borderWidth:"".concat(yn(o)," 0 0")},["&-horizontal".concat(t,"-with-text").concat(t,"-dotted")]:{"&::before, &::after":{borderStyle:"dotted none none"}},["&-vertical".concat(t,"-dotted")]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},["&-plain".concat(t,"-with-text")]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},["&-horizontal".concat(t,"-with-text-left").concat(t,"-no-default-orientation-margin-left")]:{"&::before":{width:0},"&::after":{width:"100%"},["".concat(t,"-inner-text")]:{paddingInlineStart:n}},["&-horizontal".concat(t,"-with-text-right").concat(t,"-no-default-orientation-margin-right")]:{"&::before":{width:"100%"},"&::after":{width:0},["".concat(t,"-inner-text")]:{paddingInlineEnd:n}}})}},dZ=Ol("Divider",(e=>{const t=Ui(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[uZ(t)]}),(e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS})),{unitless:{orientationMargin:!0}});var fZ=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 pZ=e=>{const{getPrefixCls:t,direction:n,divider:o}=r.useContext(f),{prefixCls:i,type:a="horizontal",orientation:l="center",orientationMargin:s,className:u,rootClassName:d,children:p,dashed:h,variant:g="solid",plain:v,style:m}=e,y=fZ(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style"]),b=t("divider",i),[x,w,S]=dZ(b),O=!!p,_="left"===l&&null!=s,C="right"===l&&null!=s,E=c()(b,null===o||void 0===o?void 0:o.className,w,S,"".concat(b,"-").concat(a),{["".concat(b,"-with-text")]:O,["".concat(b,"-with-text-").concat(l)]:O,["".concat(b,"-dashed")]:!!h,["".concat(b,"-").concat(g)]:"solid"!==g,["".concat(b,"-plain")]:!!v,["".concat(b,"-rtl")]:"rtl"===n,["".concat(b,"-no-default-orientation-margin-left")]:_,["".concat(b,"-no-default-orientation-margin-right")]:C},u,d),P=r.useMemo((()=>"number"===typeof s?s:/^\d+$/.test(s)?Number(s):s),[s]),M=Object.assign(Object.assign({},_&&{marginLeft:P}),C&&{marginRight:P});return x(r.createElement("div",Object.assign({className:E,style:Object.assign(Object.assign({},null===o||void 0===o?void 0:o.style),m)},y,{role:"separator"}),p&&"vertical"!==a&&r.createElement("span",{className:"".concat(b,"-inner-text"),style:M},p)))};const hZ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M868 545.5L536.1 163a31.96 31.96 0 00-48.3 0L156 545.5a7.97 7.97 0 006 13.2h81c4.6 0 9-2 12.1-5.5L474 300.9V864c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V300.9l218.9 252.3c3 3.5 7.4 5.5 12.1 5.5h81c6.8 0 10.5-8 6-13.2z"}}]},name:"arrow-up",theme:"outlined"};var gZ=function(e,t){return r.createElement(xs,qc({},e,{ref:t,icon:hZ}))};const vZ=r.forwardRef(gZ);const mZ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M862 465.3h-81c-4.6 0-9 2-12.1 5.5L550 723.1V160c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v563.1L255.1 470.8c-3-3.5-7.4-5.5-12.1-5.5h-81c-6.8 0-10.5 8.1-6 13.2L487.9 861a31.96 31.96 0 0048.3 0L868 478.5c4.5-5.2.8-13.2-6-13.2z"}}]},name:"arrow-down",theme:"outlined"};var yZ=function(e,t){return r.createElement(xs,qc({},e,{ref:t,icon:mZ}))};const bZ=r.forwardRef(yZ);const xZ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"}}]},name:"user",theme:"outlined"};var wZ=function(e,t){return r.createElement(xs,qc({},e,{ref:t,icon:xZ}))};const SZ=r.forwardRef(wZ);const OZ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M899.6 276.5L705 396.4 518.4 147.5a8.06 8.06 0 00-12.9 0L319 396.4 124.3 276.5c-5.7-3.5-13.1 1.2-12.2 7.9L188.5 865c1.1 7.9 7.9 14 16 14h615.1c8 0 14.9-6 15.9-14l76.4-580.6c.8-6.7-6.5-11.4-12.3-7.9zm-126 534.1H250.3l-53.8-409.4 139.8 86.1L512 252.9l175.7 234.4 139.8-86.1-53.9 409.4zM512 509c-62.1 0-112.6 50.5-112.6 112.6S449.9 734.2 512 734.2s112.6-50.5 112.6-112.6S574.1 509 512 509zm0 160.9c-26.6 0-48.2-21.6-48.2-48.3 0-26.6 21.6-48.3 48.2-48.3s48.2 21.6 48.2 48.3c0 26.6-21.6 48.3-48.2 48.3z"}}]},name:"crown",theme:"outlined"};var _Z=function(e,t){return r.createElement(xs,qc({},e,{ref:t,icon:OZ}))};const CZ=r.forwardRef(_Z);const EZ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M678.3 642.4c24.2-13 51.9-20.4 81.4-20.4h.1c3 0 4.4-3.6 2.2-5.6a371.67 371.67 0 00-103.7-65.8c-.4-.2-.8-.3-1.2-.5C719.2 505 759.6 431.7 759.6 349c0-137-110.8-248-247.5-248S264.7 212 264.7 349c0 82.7 40.4 156 102.6 201.1-.4.2-.8.3-1.2.5-44.7 18.9-84.8 46-119.3 80.6a373.42 373.42 0 00-80.4 119.5A373.6 373.6 0 00137 888.8a8 8 0 008 8.2h59.9c4.3 0 7.9-3.5 8-7.8 2-77.2 32.9-149.5 87.6-204.3C357 628.2 432.2 597 512.2 597c56.7 0 111.1 15.7 158 45.1a8.1 8.1 0 008.1.3zM512.2 521c-45.8 0-88.9-17.9-121.4-50.4A171.2 171.2 0 01340.5 349c0-45.9 17.9-89.1 50.3-121.6S466.3 177 512.2 177s88.9 17.9 121.4 50.4A171.2 171.2 0 01683.9 349c0 45.9-17.9 89.1-50.3 121.6C601.1 503.1 558 521 512.2 521zM880 759h-84v-84c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v84h-84c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h84v84c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-84h84c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"}}]},name:"user-add",theme:"outlined"};var PZ=function(e,t){return r.createElement(xs,qc({},e,{ref:t,icon:EZ}))};const MZ=r.forwardRef(PZ);var kZ=n(4917),AZ=n(5360),IZ=n.n(AZ);DU().extend(FU()),DU().extend(zU());const{Title:TZ}=gb,jZ=[{title:"\u7b49\u7ea7",dataIndex:"level"},{title:"\u6392\u540d",dataIndex:"rank"},{title:"\u53d8\u5316",dataIndex:"delta",render:e=>{return(0,uK.jsx)(n$,{value:Math.abs(e),valueStyle:{color:(t=e,t>0?"#cf1322":t<0?"#3f8600":"#555"),fontSize:15},prefix:0!==parseInt(e)&&(e>0?(0,uK.jsx)(vZ,{}):(0,uK.jsx)(bZ,{}))});var t}}];class LZ extends r.Component{constructor(){super(...arguments),this.state={distribution:[],percent:{ten:null,membership:null,vip:null,signin:null},data:{membership:0,vip:0,ten:0,total:0,average:0,signin:0},drawer:!1,day:DU()()},this.getStatisticalData=e=>{this.setState({day:e}),this.props.changeLoading(!0),IZ().start(),iK.get("https://api.drjchn.com/api/v2/tieba/distribution",{params:{token:this.context.encrypt(e.format("YYYY-MM-DD")),date:e.format("YYYY-MM-DD")}}).then((e=>{let t=e.data.distribution;t[0].count=t[0].rank;for(let n=1;n<t.length;n++)t[n].count=t[n].rank-t[n-1].rank;for(let n of t)if(10===n.level){let r={},o=this.state.data;o.ten=n.rank,o.membership=e.data.membership,o.vip=e.data.vip,o.signin=e.data.signin,o.total=e.data.total,o.average=Number((e.data.posts/e.data.total).toFixed(2)),r.ten=Number((n.rank/e.data.total*100).toFixed(2)),r.membership=Number((o.membership/e.data.total*100).toFixed(2)),r.vip=Number((e.data.vip/e.data.total*100).toFixed(2)),r.signin=Number((e.data.signin/e.data.total*100).toFixed(2)),this.props.changeLoading(!1),IZ().done(),this.setState({drawer:!0,distribution:t,posts:e.data.posts,percent:r,data:o})}})).catch((e=>{this.props.changeLoading(!1),IZ().done(),fM.error("\u8bb0\u5f55\u4e22\u5931\uff0c\u6570\u636e\u52a0\u8f7d\u5931\u8d25")}))}}componentDidMount(){this.context.onRef(this,"users")}render(){const{distribution:e,data:t,percent:n,drawer:r,day:o}=this.state;return(0,uK.jsxs)(RM,{title:"\u7528\u6237\u7edf\u8ba1",placement:"right",width:window.outerWidth>520?500:window.outerWidth,onClose:()=>this.setState({drawer:!1}),open:r,style:{textAlign:"center"},children:[(0,uK.jsx)(MU,{onChange:this.getStatisticalData,disabledDate:e=>e<DU()("20191107")||e>DU()(),value:o,allowClear:!1,placeholder:"\u9009\u62e9\u65e5\u671f",style:{marginBottom:20}}),(0,uK.jsx)(TZ,{level:4,children:"\u9ec4\u724c\u7387"}),(0,uK.jsx)(sZ,{type:"circle",percent:n.ten,strokeColor:"#ffec3d"}),(0,uK.jsx)(n$,{value:t.ten,suffix:"/ "+t.total,style:{marginTop:10}}),(0,uK.jsx)(pZ,{}),(0,uK.jsx)(TZ,{level:4,children:"\u4f1a\u5458\u7387"}),(0,uK.jsx)(sZ,{type:"circle",percent:n.membership}),(0,uK.jsx)(n$,{value:t.membership,prefix:(0,uK.jsx)(SZ,{}),style:{marginTop:10}}),(0,uK.jsx)(pZ,{}),(0,uK.jsx)(TZ,{level:4,children:"VIP\u6bd4\u4f8b"}),(0,uK.jsx)(sZ,{type:"circle",percent:n.vip,strokeColor:"#f5222d"}),(0,uK.jsx)(n$,{value:t.vip,prefix:(0,uK.jsx)(CZ,{}),style:{marginTop:10}}),(0,uK.jsx)(pZ,{}),(0,uK.jsx)(TZ,{level:4,children:"\u7b7e\u5230\u4eba\u6570"}),(0,uK.jsx)(sZ,{type:"circle",percent:n.signin,strokeColor:"#fa8c16",format:e=>e>0?e+"%":"NaN"}),(0,uK.jsx)(n$,{value:t.signin,prefix:(0,uK.jsx)(MZ,{}),style:{marginTop:10},formatter:e=>e>0?e:"\u65e0\u6570\u636e"}),(0,uK.jsx)(pZ,{}),(0,uK.jsx)(TZ,{level:4,children:"\u4eba\u5747\u53d1\u5e16\u6570"}),(0,uK.jsx)(n$,{value:t.average,prefix:(0,uK.jsx)(Vy,{}),style:{marginTop:10}}),(0,uK.jsx)(pZ,{}),(0,uK.jsx)(TZ,{level:4,children:"\u7b49\u7ea7\u5206\u5e03"}),(0,uK.jsx)(kZ.Chart,{height:300,autoFit:!0,data:e,scale:{count:{alias:"\u4eba\u6570"},level:{alias:"\u7b49\u7ea7"}},padding:[50,30,30,50],children:(0,uK.jsx)(kZ.Interval,{position:"level*count",label:"count"})}),(0,uK.jsx)(pZ,{}),(0,uK.jsx)(TZ,{level:4,children:"\u7b49\u7ea7\u6392\u540d"}),(0,uK.jsx)(IB,{columns:jZ,dataSource:e,pagination:{pageSize:20},rowKey:"rank"})]})}}LZ.contextTypes={onRef:sK().func,encrypt:sK().func};const RZ=LZ;var DZ=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],NZ=r.forwardRef((function(e,t){var n,o=e.prefixCls,i=void 0===o?"rc-switch":o,a=e.className,l=e.checked,s=e.defaultChecked,u=e.disabled,d=e.loadingIcon,f=e.checkedChildren,p=e.unCheckedChildren,v=e.onClick,m=e.onChange,y=e.onKeyDown,b=g(e,DZ),x=gt(Fi(!1,{value:l,defaultValue:s}),2),S=x[0],O=x[1];function _(e,t){var n=S;return u||(O(n=e),null===m||void 0===m||m(n,t)),n}var C=c()(i,a,(w(n={},"".concat(i,"-checked"),S),w(n,"".concat(i,"-disabled"),u),n));return r.createElement("button",h({},b,{type:"button",role:"switch","aria-checked":S,disabled:u,className:C,ref:t,onKeyDown:function(e){e.which===BC.LEFT?_(!1,e):e.which===BC.RIGHT&&_(!0,e),null===y||void 0===y||y(e)},onClick:function(e){var t=_(!S,e);null===v||void 0===v||v(t,e)}}),d,r.createElement("span",{className:"".concat(i,"-inner")},r.createElement("span",{className:"".concat(i,"-inner-checked")},f),r.createElement("span",{className:"".concat(i,"-inner-unchecked")},p)))}));NZ.displayName="Switch";const FZ=NZ,BZ=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:o,innerMinMarginSM:i,innerMaxMarginSM:a,handleSizeSM:l,calc:c}=e,s="".concat(t,"-inner"),u=yn(c(l).add(c(r).mul(2)).equal()),d=yn(c(a).mul(2).equal());return{[t]:{["&".concat(t,"-small")]:{minWidth:o,height:n,lineHeight:yn(n),["".concat(t,"-inner")]:{paddingInlineStart:a,paddingInlineEnd:i,["".concat(s,"-checked, ").concat(s,"-unchecked")]:{minHeight:n},["".concat(s,"-checked")]:{marginInlineStart:"calc(-100% + ".concat(u," - ").concat(d,")"),marginInlineEnd:"calc(100% - ".concat(u," + ").concat(d,")")},["".concat(s,"-unchecked")]:{marginTop:c(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},["".concat(t,"-handle")]:{width:l,height:l},["".concat(t,"-loading-icon")]:{top:c(c(l).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},["&".concat(t,"-checked")]:{["".concat(t,"-inner")]:{paddingInlineStart:i,paddingInlineEnd:a,["".concat(s,"-checked")]:{marginInlineStart:0,marginInlineEnd:0},["".concat(s,"-unchecked")]:{marginInlineStart:"calc(100% - ".concat(u," + ").concat(d,")"),marginInlineEnd:"calc(-100% + ".concat(u," - ").concat(d,")")}},["".concat(t,"-handle")]:{insetInlineStart:"calc(100% - ".concat(yn(c(l).add(r).equal()),")")}},["&:not(".concat(t,"-disabled):active")]:{["&:not(".concat(t,"-checked) ").concat(s)]:{["".concat(s,"-unchecked")]:{marginInlineStart:c(e.marginXXS).div(2).equal(),marginInlineEnd:c(e.marginXXS).mul(-1).div(2).equal()}},["&".concat(t,"-checked ").concat(s)]:{["".concat(s,"-checked")]:{marginInlineStart:c(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:c(e.marginXXS).div(2).equal()}}}}}}},zZ=e=>{const{componentCls:t,handleSize:n,calc:r}=e;return{[t]:{["".concat(t,"-loading-icon").concat(e.iconCls)]:{position:"relative",top:r(r(n).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},["&".concat(t,"-checked ").concat(t,"-loading-icon")]:{color:e.switchColor}}}},HZ=e=>{const{componentCls:t,trackPadding:n,handleBg:r,handleShadow:o,handleSize:i,calc:a}=e,l="".concat(t,"-handle");return{[t]:{[l]:{position:"absolute",top:n,insetInlineStart:n,width:i,height:i,transition:"all ".concat(e.switchDuration," ease-in-out"),"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:r,borderRadius:a(i).div(2).equal(),boxShadow:o,transition:"all ".concat(e.switchDuration," ease-in-out"),content:'""'}},["&".concat(t,"-checked ").concat(l)]:{insetInlineStart:"calc(100% - ".concat(yn(a(i).add(n).equal()),")")},["&:not(".concat(t,"-disabled):active")]:{["".concat(l,"::before")]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},["&".concat(t,"-checked ").concat(l,"::before")]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},WZ=e=>{const{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:o,innerMaxMargin:i,handleSize:a,calc:l}=e,c="".concat(t,"-inner"),s=yn(l(a).add(l(r).mul(2)).equal()),u=yn(l(i).mul(2).equal());return{[t]:{[c]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:i,paddingInlineEnd:o,transition:"padding-inline-start ".concat(e.switchDuration," ease-in-out, padding-inline-end ").concat(e.switchDuration," ease-in-out"),["".concat(c,"-checked, ").concat(c,"-unchecked")]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:"margin-inline-start ".concat(e.switchDuration," ease-in-out, margin-inline-end ").concat(e.switchDuration," ease-in-out"),pointerEvents:"none",minHeight:n},["".concat(c,"-checked")]:{marginInlineStart:"calc(-100% + ".concat(s," - ").concat(u,")"),marginInlineEnd:"calc(100% - ".concat(s," + ").concat(u,")")},["".concat(c,"-unchecked")]:{marginTop:l(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},["&".concat(t,"-checked ").concat(c)]:{paddingInlineStart:o,paddingInlineEnd:i,["".concat(c,"-checked")]:{marginInlineStart:0,marginInlineEnd:0},["".concat(c,"-unchecked")]:{marginInlineStart:"calc(100% - ".concat(s," + ").concat(u,")"),marginInlineEnd:"calc(-100% + ".concat(s," - ").concat(u,")")}},["&:not(".concat(t,"-disabled):active")]:{["&:not(".concat(t,"-checked) ").concat(c)]:{["".concat(c,"-unchecked")]:{marginInlineStart:l(r).mul(2).equal(),marginInlineEnd:l(r).mul(-1).mul(2).equal()}},["&".concat(t,"-checked ").concat(c)]:{["".concat(c,"-checked")]:{marginInlineStart:l(r).mul(-1).mul(2).equal(),marginInlineEnd:l(r).mul(2).equal()}}}}}},VZ=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Ur(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:n,lineHeight:yn(n),verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:"all ".concat(e.motionDurationMid),userSelect:"none",["&:hover:not(".concat(t,"-disabled)")]:{background:e.colorTextTertiary}}),Kr(e)),{["&".concat(t,"-checked")]:{background:e.switchColor,["&:hover:not(".concat(t,"-disabled)")]:{background:e.colorPrimaryHover}},["&".concat(t,"-loading, &").concat(t,"-disabled")]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},["&".concat(t,"-rtl")]:{direction:"rtl"}})}},GZ=Ol("Switch",(e=>{const t=Ui(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:"rgba(0, 0, 0, ".concat(e.opacityLoading,")"),switchHandleActiveInset:"-30%"});return[VZ(t),WZ(t),HZ(t),zZ(t),BZ(t)]}),(e=>{const{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:o}=e,i=t*n,a=r/2,l=i-4,c=a-4;return{trackHeight:i,trackHeightSM:a,trackMinWidth:2*l+8,trackMinWidthSM:2*c+4,trackPadding:2,handleBg:o,handleSize:l,handleSizeSM:c,handleShadow:"0 2px 4px 0 ".concat(new Za("#00230b").setAlpha(.2).toRgbString()),innerMinMargin:l/2,innerMaxMargin:l+2+4,innerMinMarginSM:c/2,innerMaxMarginSM:c+2+4}}));var YZ=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 UZ=r.forwardRef(((e,t)=>{const{prefixCls:n,size:o,disabled:i,loading:a,className:l,rootClassName:s,style:u,checked:d,value:p,defaultChecked:h,defaultValue:g,onChange:v}=e,m=YZ(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[y,b]=pd(!1,{value:null!==d&&void 0!==d?d:p,defaultValue:null!==h&&void 0!==h?h:g}),{getPrefixCls:x,direction:w,switch:S}=r.useContext(f),O=r.useContext(Ms),_=(null!==i&&void 0!==i?i:O)||a,C=x("switch",n),E=r.createElement("div",{className:"".concat(C,"-handle")},a&&r.createElement(tp,{className:"".concat(C,"-loading-icon")})),[P,M,k]=GZ(C),A=Dc(o),I=c()(null===S||void 0===S?void 0:S.className,{["".concat(C,"-small")]:"small"===A,["".concat(C,"-loading")]:a,["".concat(C,"-rtl")]:"rtl"===w},l,s,M,k),T=Object.assign(Object.assign({},null===S||void 0===S?void 0:S.style),u);return P(r.createElement(Hf,{component:"Switch"},r.createElement(FZ,Object.assign({},m,{checked:y,onChange:function(){b(arguments.length<=0?void 0:arguments[0]),null===v||void 0===v||v.apply(void 0,arguments)},prefixCls:C,className:I,style:T,disabled:_,ref:t,loadingIcon:E}))))})),XZ=UZ;XZ.__ANT_SWITCH=!0;const qZ=XZ;DU().extend(FU()),DU().extend(zU());const{Text:KZ,Title:$Z}=gb,QZ={posts:{min:0,alias:"\u5355\u65e5\u603b\u5e16\u6570"},total:{alias:"\u603b\u5e16\u6570"},date:{type:"time",formatter:e=>DU()(e).format("YY-MM-DD")}};class ZZ extends r.Component{constructor(){super(...arguments),this.state={detail:!1,range:{start:1,end:8},drawer:!1,postData:[],posts:0,day:{start:DU()().subtract(7,"days"),end:DU()().subtract(1,"days")}},this.handleDateChange=(e,t,n)=>{const r={...this.state.day};n?r.start=e:r.end=e,this.setState({day:r},(()=>this.updateRange()))},this.updateRange=()=>{const e={...this.state.day},t={...this.state.range},n=this.state.postData;for(let r=0;r<n.length;r++)DU()(n[r].date).format("YYYY-MM-DD")===DU()(e.start).format("YYYY-MM-DD")&&(t.end=r+1);for(let r=0;r<n.length;r++)DU()(n[r].date).format("YYYY-MM-DD")===DU()(e.end).format("YYYY-MM-DD")&&(t.start=r);this.setState({range:t})},this.getPostData=()=>{const e={...this.state.loading};this.props.changeLoading(!0),this.setState({loading:e}),IZ().start(),iK.get("https://api.drjchn.com/api/v2/tieba/post",{params:{date:DU()().format("YYYY-MM-DD"),token:this.context.encrypt(DU()().format("YYYY-MM-DD"))}}).then((t=>{const n={...this.state.day};n.end=DU()().subtract(1,"days"),n.start=DU()().subtract(7,"days"),this.setState({posts:t.data.total,day:n}),iK.get("https://api.drjchn.com/api/v2/tieba/posts",{params:{page:0,token:this.context.encrypt(0)}}).then((t=>{this.props.changeLoading(!1);let n=t.data.results;for(let e=0;e<n.length-1;e++)n[e].posts=n[e].total-n[e+1].total,n[e].date=DU()(n[e].date).valueOf();n[n.length-1].date=DU()(n[n.length-1].date).valueOf(),n[n.length-1].posts=n[n.length-1].total;const r=this.state.posts-n[0].total;n.splice(0,0,{date:DU()().valueOf(),total:this.state.posts,posts:r}),IZ().done(),this.setState({postData:n,loading:e,drawer:!0})}))}))}}componentDidMount(){this.context.onRef(this,"posts")}render(){const{detail:e,range:t,drawer:n,postData:r,posts:o}=this.state,i=[{title:"\u65e5\u671f",dataIndex:"date",render:e=>DU()(e).format("YYYY-MM-DD")+"("+DU()(e).format("dddd")[2]+")"},{title:"\u603b\u5e16\u6570",dataIndex:"total",render:t=>e?t:(t/1e4).toFixed(2)+"W"},{title:"\u5f53\u65e5\u53d1\u5e16\u6570",dataIndex:"posts",render:t=>e?t:(t/1e4).toFixed(2)+"W",sorter:(e,t)=>e.posts-t.posts,sortDirections:["descend","ascend"]}];return(0,uK.jsxs)(RM,{title:"\u53d1\u5e16\u7edf\u8ba1",placement:"right",width:window.outerWidth>520?500:window.outerWidth,onClose:()=>{const{range:e}=this.state;e.start=1,e.end=8,this.setState({drawer:!1,range:e})},open:n,style:{textAlign:"center"},children:[(0,uK.jsx)(KZ,{style:{marginRight:10},children:"\u8be6\u7ec6\u6570\u636e"}),(0,uK.jsx)(qZ,{checked:e,onChange:()=>this.setState({detail:!e})}),(0,uK.jsx)(pZ,{}),(0,uK.jsx)(n$,{title:"\u603b\u53d1\u5e16\u6570",value:o,style:{marginTop:10},formatter:t=>e?t:(t/1e4).toFixed(2)+"W"}),(0,uK.jsx)(pZ,{}),(0,uK.jsx)($Z,{level:3,children:"\u53d1\u5e16\u7edf\u8ba1\u56fe\u8868"}),(0,uK.jsx)(MU,{onChange:(e,t)=>this.handleDateChange(e,t,!0),value:this.state.day.start,allowClear:!1,placeholder:"\u9009\u62e9\u8d77\u59cb\u65e5\u671f",disabledDate:e=>e<DU()("20191106")||e>=this.state.day.end}),(0,uK.jsx)(MU,{style:{marginBottom:20},onChange:(e,t)=>this.handleDateChange(e,t,!1),value:this.state.day.end,allowClear:!1,placeholder:"\u9009\u62e9\u7ed3\u675f\u65e5\u671f",disabledDate:e=>e<DU()("20191106")||e>DU()()||e<=this.state.day.start}),(0,uK.jsx)($Z,{level:4,children:"\u53d1\u5e16\u603b\u6570\u8d8b\u52bf"}),(0,uK.jsx)(kZ.Chart,{scale:QZ,padding:[0,30,30,80],autoFit:!0,height:300,data:r.slice(t.start,t.end),children:(0,uK.jsx)(kZ.Line,{shape:"smooth",position:"date*total",color:"l (270) 0:rgba(255, 146, 255, 1) .5:rgba(100, 268, 255, 1) 1:rgba(215, 0, 255, 1)"})}),(0,uK.jsx)($Z,{level:4,children:"\u5355\u65e5\u53d1\u5e16\u8d8b\u52bf"}),(0,uK.jsx)(kZ.Chart,{scale:QZ,padding:[0,30,30,80],autoFit:!0,height:300,data:r.slice(t.start,t.end),children:(0,uK.jsx)(kZ.Line,{shape:"smooth",position:"date*posts",color:"l (270) 0:rgba(255, 146, 255, 1) .5:rgba(100, 268, 255, 1) 1:rgba(215, 0, 255, 1)"})}),(0,uK.jsx)(pZ,{}),(0,uK.jsx)($Z,{level:4,children:"\u53d1\u5e16\u6570\u636e\u8bb0\u5f55"}),(0,uK.jsx)(IB,{dataSource:r,columns:i,rowKey:"date"})]})}}ZZ.contextTypes={onRef:sK().func,encrypt:sK().func};const JZ=ZZ;var eJ=n(109),tJ=n.n(eJ);DU().extend(tJ());const{Title:nJ,Text:rJ}=gb,oJ={income:{alias:"\u6d41\u6c34"},date:{type:"time",formatter:e=>DU()(e).format("YY-MM-DD")}},iJ={income:{alias:"\u6d41\u6c34"},date:{formatter:e=>DU()(e).format("YY-MM")}};class aJ extends r.Component{constructor(){super(...arguments),this.state={data:[],income:[],month:[],visible:!1,detail:!1,average:0},this.fetchData=()=>{this.props.changeLoading(!0);const e="20200928",t=DU()().format("YYYYMMDD"),n=this.context.encrypt(e+t);iK.get("https://api.drjchn.com/api/v2/tieba/income",{params:{token:n,start:e,end:t}}).then((e=>{this.setState({visible:!0}),this.props.changeLoading(!1);const{data:t,income:n,average:r,month:o}=e.data;o.sort(((e,t)=>DU()(t.date)-DU()(e.date))),this.setState({data:t,income:n,average:r,month:o})})).catch((e=>{this.props.changeLoading(!1),e.response?fM.error("Session\u5df2\u5931\u6548"):fM.error("\u83b7\u53d6\u6570\u636e\u5931\u8d25")}))},this.solveData=()=>{const{data:e,average:t}=this.state,n=[];for(let r=0;r<e.length;r++)e[r].type="\u5b9e\u9645\u6536\u5165";for(let r of e){n.push(r);const e={date:r.date,income:t,type:"\u5e73\u5747\u6536\u5165"};n.push(e)}return n},this.solveMonth=()=>{const{month:e}=this.state,t=[];for(let n of e)t.push({date:1e3*DU()(n.date).unix(),income:n.income});return t},this.solveIncome=()=>{const{month:e}=this.state;return JSON.parse(JSON.stringify(e)).sort(((e,t)=>e.date-t.date))},this.solveCharacter=()=>{const{income:e}=this.state,t=[],n=JSON.parse(JSON.stringify(e)).sort(((e,t)=>DU()(e.date)-DU()(t.date)));for(let r of n)t.push({name:r.short,type:"\u4e94\u5929\u603b\u6d41\u6c34",income:r.income}),t.push({name:r.short,type:"\u5cf0\u503c\u6d41\u6c34",income:r.max});return t}}componentDidMount(){this.context.onRef(this,"income")}render(){const{visible:e,income:t,detail:n,month:r}=this.state,o=[{title:"\u5361\u6c60",dataIndex:"name",render:(e,t)=>{const n=DU().duration(DU()().diff(DU()(t.date)));return n.days()>=5||n.months()>0||n.years()>0?e:"".concat(e,"(").concat(n.days(),"\u5929)")}},{title:"\u65e5\u671f",dataIndex:"date",render:e=>DU()(e).format("YYYY-MM-DD")},{title:"\u6d41\u6c34\u603b\u6570",dataIndex:"income",render:e=>n?e:(e/1e4).toFixed(2)+"W",sorter:(e,t)=>e.income-t.income},{title:"\u6d41\u6c34\u5cf0\u503c",dataIndex:"max",render:e=>n?e:(e/1e4).toFixed(2)+"W",sorter:(e,t)=>e.max-t.max}],i=[{title:"\u6708\u4efd",dataIndex:"date",key:"date",render:e=>DU()(e).format("YYYY-MM")},{title:"\u6d41\u6c34",dataIndex:"income",key:"income",render:e=>n?e:(e/1e4).toFixed(2)+"W",sorter:(e,t)=>e.income-t.income}];return(0,uK.jsxs)(RM,{title:"\u6d41\u6c34\u7edf\u8ba1",placement:"right",open:e,width:window.outerWidth>520?500:window.outerWidth,onClose:()=>{this.setState({visible:!1})},style:{textAlign:"center"},children:[(0,uK.jsx)(rJ,{style:{marginRight:10},children:"\u8be6\u7ec6\u6570\u636e"}),(0,uK.jsx)(qZ,{checked:n,onChange:()=>this.setState({detail:!n})}),(0,uK.jsx)(pZ,{}),(0,uK.jsx)(nJ,{level:4,children:"\u5386\u53f2\u6d41\u6c34"}),(0,uK.jsxs)(kZ.Chart,{scale:oJ,padding:[0,30,50,80],autoFit:!0,height:300,data:this.solveData(),children:[(0,uK.jsx)(kZ.Line,{position:"date*income",color:"type"}),(0,uK.jsx)(kZ.Slider,{start:.5,padding:[0,0,0,0],formatter:e=>DU()(e).format("YYYY-MM-DD")}),(0,uK.jsx)(kZ.Tooltip,{shared:!0,showCrosshairs:!0}),(0,uK.jsx)(kZ.Legend,{offsetY:-10,position:"top-right",background:{padding:[5,100,5,20],style:{fill:"#eaeaea",stroke:"#fff"}}})]}),(0,uK.jsx)(pZ,{}),(0,uK.jsx)(nJ,{level:4,children:"\u89d2\u8272\u6c605\u65e5\u6d41\u6c34\u7edf\u8ba1"}),(0,uK.jsxs)(kZ.Chart,{height:400,padding:"auto",data:this.solveCharacter(),autoFit:!0,children:[(0,uK.jsx)(kZ.Interval,{adjust:[{type:"dodge",marginRatio:0}],color:"type",position:"name*income"}),(0,uK.jsx)(kZ.Slider,{start:.8,padding:[0,0,0,0]}),(0,uK.jsx)(kZ.Tooltip,{shared:!0})]}),(0,uK.jsx)("br",{}),(0,uK.jsx)(IB,{dataSource:t,columns:o,rowKey:"name"}),(0,uK.jsx)(pZ,{}),(0,uK.jsx)(nJ,{level:4,children:"\u6bcf\u6708\u6d41\u6c34\u7edf\u8ba1"}),(0,uK.jsxs)(kZ.Chart,{height:300,autoFit:!0,data:this.solveIncome(),scale:iJ,children:[(0,uK.jsx)(kZ.Interval,{position:"date*income"}),(0,uK.jsx)(kZ.Slider,{start:.8,padding:[0,0,0,0],formatter:e=>DU()(e).format("YYYY-MM")}),(0,uK.jsx)(kZ.Tooltip,{shared:!0})]}),(0,uK.jsx)("br",{}),(0,uK.jsx)(IB,{dataSource:r,columns:i,rowKey:"name"}),(0,uK.jsx)(rJ,{type:"secondary",style:{float:"left"},children:"*\u6570\u636e\u6765\u6e90\uff1a\u8749\u5927\u5e08"}),(0,uK.jsx)("br",{}),(0,uK.jsx)("br",{})]})}}aJ.contextTypes={onRef:sK().func,encrypt:sK().func};const lJ=aJ;var cJ=n(7664),sJ=n.n(cJ),uJ=n(7931),dJ=n.n(uJ);const fJ=e=>{let{children:t}=e;const{getPrefixCls:n}=r.useContext(f),o=n("breadcrumb");return r.createElement("li",{className:"".concat(o,"-separator"),"aria-hidden":"true"},""===t?t:t||"/")};fJ.__ANT_BREADCRUMB_SEPARATOR=!0;const pJ=fJ;var hJ=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};function gJ(e,t,n,o){if(null===n||void 0===n)return null;const{className:i,onClick:a}=t,l=hJ(t,["className","onClick"]),s=Object.assign(Object.assign({},Ys(l,{data:!0,aria:!0})),{onClick:a});return void 0!==o?r.createElement("a",Object.assign({},s,{className:c()("".concat(e,"-link"),i),href:o}),n):r.createElement("span",Object.assign({},s,{className:c()("".concat(e,"-link"),i)}),n)}function vJ(e,t){return(n,r,o,i,a)=>{if(t)return t(n,r,o,i);const l=function(e,t){if(void 0===e.title||null===e.title)return null;const n=Object.keys(t).join("|");return"object"===typeof e.title?e.title:String(e.title).replace(new RegExp(":(".concat(n,")"),"g"),((e,n)=>t[n]||e))}(n,r);return gJ(e,n,l,a)}}var mJ=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 yJ=e=>{const{prefixCls:t,separator:n="/",children:o,menu:i,overlay:a,dropdownProps:l,href:c}=e;const s=(e=>{if(i||a){const n=Object.assign({},l);if(i){const e=i||{},{items:t}=e,o=mJ(e,["items"]);n.menu=Object.assign(Object.assign({},o),{items:null===t||void 0===t?void 0:t.map(((e,t)=>{var{key:n,title:o,label:i,path:a}=e,l=mJ(e,["key","title","label","path"]);let s=null!==i&&void 0!==i?i:o;return a&&(s=r.createElement("a",{href:"".concat(c).concat(a)},s)),Object.assign(Object.assign({},l),{key:null!==n&&void 0!==n?n:t,label:s})}))})}else a&&(n.overlay=a);return r.createElement(yR,Object.assign({placement:"bottom"},n),r.createElement("span",{className:"".concat(t,"-overlay-link")},e,r.createElement(hC,null)))}return e})(o);return void 0!==s&&null!==s?r.createElement(r.Fragment,null,r.createElement("li",null,s),n&&r.createElement(pJ,null,n)):null},bJ=e=>{const{prefixCls:t,children:n,href:o}=e,i=mJ(e,["prefixCls","children","href"]),{getPrefixCls:a}=r.useContext(f),l=a("breadcrumb",t);return r.createElement(yJ,Object.assign({},i,{prefixCls:l}),gJ(l,i,n,o))};bJ.__ANT_BREADCRUMB_ITEM=!0;const xJ=bJ,wJ=Ol("Breadcrumb",(e=>(e=>{const{componentCls:t,iconCls:n,calc:r}=e;return{[t]:Object.assign(Object.assign({},Ur(e)),{color:e.itemColor,fontSize:e.fontSize,[n]:{fontSize:e.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:e.linkColor,transition:"color ".concat(e.motionDurationMid),padding:"0 ".concat(yn(e.paddingXXS)),borderRadius:e.borderRadiusSM,height:e.fontHeight,display:"inline-block",marginInline:r(e.marginXXS).mul(-1).equal(),"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover}},Kr(e)),"li:last-child":{color:e.lastItemColor},["".concat(t,"-separator")]:{marginInline:e.separatorMargin,color:e.separatorColor},["".concat(t,"-link")]:{["\n          > ".concat(n," + span,\n          > ").concat(n," + a\n        ")]:{marginInlineStart:e.marginXXS}},["".concat(t,"-overlay-link")]:{borderRadius:e.borderRadiusSM,height:e.fontHeight,display:"inline-block",padding:"0 ".concat(yn(e.paddingXXS)),marginInline:r(e.marginXXS).mul(-1).equal(),["> ".concat(n)]:{marginInlineStart:e.marginXXS,fontSize:e.fontSizeIcon},"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover,a:{color:e.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},["&".concat(e.componentCls,"-rtl")]:{direction:"rtl"}})}})(Ui(e,{}))),(e=>({itemColor:e.colorTextDescription,lastItemColor:e.colorText,iconFontSize:e.fontSize,linkColor:e.colorTextDescription,linkHoverColor:e.colorText,separatorColor:e.colorTextDescription,separatorMargin:e.marginXS})));var SJ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(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};function OJ(e){const{breadcrumbName:t,children:n}=e,r=SJ(e,["breadcrumbName","children"]),o=Object.assign({title:t},r);return n&&(o.menu={items:n.map((e=>{var{breadcrumbName:t}=e,n=SJ(e,["breadcrumbName"]);return Object.assign(Object.assign({},n),{title:t})}))}),o}var _J=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 CJ=e=>{const{prefixCls:t,separator:n="/",style:o,className:i,rootClassName:a,routes:l,items:s,children:u,itemRender:d,params:p={}}=e,h=_J(e,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:g,direction:v,breadcrumb:m}=r.useContext(f);let y;const b=g("breadcrumb",t),[x,w,S]=wJ(b),O=function(e,t){return(0,r.useMemo)((()=>e||(t?t.map(OJ):null)),[e,t])}(s,l);const _=vJ(b,d);if(O&&O.length>0){const e=[],t=s||l;y=O.map(((o,i)=>{const{path:a,key:l,type:c,menu:s,overlay:u,onClick:d,className:f,separator:h,dropdownProps:g}=o,v=((e,t)=>{if(void 0===t)return t;let n=(t||"").replace(/^\//,"");return Object.keys(e).forEach((t=>{n=n.replace(":".concat(t),e[t])})),n})(p,a);void 0!==v&&e.push(v);const m=null!==l&&void 0!==l?l:i;if("separator"===c)return r.createElement(pJ,{key:m},h);const y={},x=i===O.length-1;s?y.menu=s:u&&(y.overlay=u);let{href:w}=o;return e.length&&void 0!==v&&(w="#/".concat(e.join("/"))),r.createElement(yJ,Object.assign({key:m},y,Ys(o,{data:!0,aria:!0}),{className:f,dropdownProps:g,href:w,separator:x?"":n,onClick:d,prefixCls:b}),_(o,p,t,e,w))}))}else if(u){const e=Tc(u).length;y=Tc(u).map(((t,r)=>{if(!t)return t;return Cu(t,{separator:r===e-1?"":n,key:r})}))}const C=c()(b,null===m||void 0===m?void 0:m.className,{["".concat(b,"-rtl")]:"rtl"===v},i,a,w,S),E=Object.assign(Object.assign({},null===m||void 0===m?void 0:m.style),o);return x(r.createElement("nav",Object.assign({className:C,style:E},h),r.createElement("ol",null,y)))};CJ.Item=xJ,CJ.Separator=pJ;const EJ=CJ,PJ=r.createContext({}),MJ=e=>{const{antCls:t,componentCls:n,iconCls:r,avatarBg:o,avatarColor:i,containerSize:a,containerSizeLG:l,containerSizeSM:c,textFontSize:s,textFontSizeLG:u,textFontSizeSM:d,borderRadius:f,borderRadiusLG:p,borderRadiusSM:h,lineWidth:g,lineType:v}=e,m=(e,t,o)=>({width:e,height:e,borderRadius:"50%",["&".concat(n,"-square")]:{borderRadius:o},["&".concat(n,"-icon")]:{fontSize:t,["> ".concat(r)]:{margin:0}}});return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},Ur(e)),{position:"relative",display:"inline-flex",justifyContent:"center",alignItems:"center",overflow:"hidden",color:i,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:o,border:"".concat(yn(g)," ").concat(v," transparent"),"&-image":{background:"transparent"},["".concat(t,"-image-img")]:{display:"block"}}),m(a,s,f)),{"&-lg":Object.assign({},m(l,u,p)),"&-sm":Object.assign({},m(c,d,h)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},kJ=e=>{const{componentCls:t,groupBorderColor:n,groupOverlapping:r,groupSpace:o}=e;return{["".concat(t,"-group")]:{display:"inline-flex",[t]:{borderColor:n},"> *:not(:first-child)":{marginInlineStart:r}},["".concat(t,"-group-popover")]:{["".concat(t," + ").concat(t)]:{marginInlineStart:o}}}},AJ=Ol("Avatar",(e=>{const{colorTextLightSolid:t,colorTextPlaceholder:n}=e,r=Ui(e,{avatarBg:n,avatarColor:t});return[MJ(r),kJ(r)]}),(e=>{const{controlHeight:t,controlHeightLG:n,controlHeightSM:r,fontSize:o,fontSizeLG:i,fontSizeXL:a,fontSizeHeading3:l,marginXS:c,marginXXS:s,colorBorderBg:u}=e;return{containerSize:t,containerSizeLG:n,containerSizeSM:r,textFontSize:Math.round((i+a)/2),textFontSizeLG:l,textFontSizeSM:o,groupSpace:s,groupOverlapping:-c,groupBorderColor:u}}));var IJ=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 TJ=(e,t)=>{const[n,o]=r.useState(1),[i,a]=r.useState(!1),[l,s]=r.useState(!0),u=r.useRef(null),d=r.useRef(null),p=kc(t,u),{getPrefixCls:h,avatar:g}=r.useContext(f),v=r.useContext(PJ),m=()=>{if(!d.current||!u.current)return;const t=d.current.offsetWidth,n=u.current.offsetWidth;if(0!==t&&0!==n){const{gap:r=4}=e;2*r<n&&o(n-2*r<t?(n-2*r)/t:1)}};r.useEffect((()=>{a(!0)}),[]),r.useEffect((()=>{s(!0),o(1)}),[e.src]),r.useEffect(m,[e.gap]);const y=()=>{const{onError:t}=e;!1!==(null===t||void 0===t?void 0:t())&&s(!1)},{prefixCls:b,shape:x,size:w,src:S,srcSet:O,icon:_,className:C,rootClassName:E,alt:P,draggable:M,children:k,crossOrigin:A}=e,I=IJ(e,["prefixCls","shape","size","src","srcSet","icon","className","rootClassName","alt","draggable","children","crossOrigin"]),T=Dc((e=>{var t,n;return null!==(n=null!==(t=null!==w&&void 0!==w?w:null===v||void 0===v?void 0:v.size)&&void 0!==t?t:e)&&void 0!==n?n:"default"})),j=Object.keys("object"===typeof T&&T||{}).some((e=>["xs","sm","md","lg","xl","xxl"].includes(e))),L=hD(j),R=r.useMemo((()=>{if("object"!==typeof T)return{};const e=uD.find((e=>L[e])),t=T[e];return t?{width:t,height:t,fontSize:t&&(_||k)?t/2:18}:{}}),[L,T]);const D=h("avatar",b),N=ks(D),[F,B,z]=AJ(D,N),H=c()({["".concat(D,"-lg")]:"large"===T,["".concat(D,"-sm")]:"small"===T}),W=r.isValidElement(S),V=x||(null===v||void 0===v?void 0:v.shape)||"circle",G=c()(D,H,null===g||void 0===g?void 0:g.className,"".concat(D,"-").concat(V),{["".concat(D,"-image")]:W||S&&l,["".concat(D,"-icon")]:!!_},z,N,C,E,B),Y="number"===typeof T?{width:T,height:T,fontSize:_?T/2:18}:{};let U;if("string"===typeof S&&l)U=r.createElement("img",{src:S,draggable:M,srcSet:O,onError:y,alt:P,crossOrigin:A});else if(W)U=S;else if(_)U=_;else if(i||1!==n){const e="scale(".concat(n,")"),t={msTransform:e,WebkitTransform:e,transform:e};U=r.createElement(qh,{onResize:m},r.createElement("span",{className:"".concat(D,"-string"),ref:d,style:Object.assign({},t)},k))}else U=r.createElement("span",{className:"".concat(D,"-string"),style:{opacity:0},ref:d},k);return delete I.onError,delete I.gap,F(r.createElement("span",Object.assign({},I,{style:Object.assign(Object.assign(Object.assign(Object.assign({},Y),R),null===g||void 0===g?void 0:g.style),I.style),className:G,ref:p}),U))};const jJ=r.forwardRef(TJ),LJ=e=>e?"function"===typeof e?e():e:null,RJ=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:o,innerPadding:i,boxShadowSecondary:a,colorTextHeading:l,borderRadiusLG:c,zIndexPopup:s,titleMarginBottom:u,colorBgElevated:d,popoverBg:f,titleBorderBottom:p,innerContentPadding:h,titlePadding:g}=e;return[{[t]:Object.assign(Object.assign({},Ur(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:s,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"--antd-arrow-background-color":d,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},["".concat(t,"-content")]:{position:"relative"},["".concat(t,"-inner")]:{backgroundColor:f,backgroundClip:"padding-box",borderRadius:c,boxShadow:a,padding:i},["".concat(t,"-title")]:{minWidth:r,marginBottom:u,color:l,fontWeight:o,borderBottom:p,padding:g},["".concat(t,"-inner-content")]:{color:n,padding:h}})},Dm(e,"var(--antd-arrow-background-color)"),{["".concat(t,"-pure")]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",["".concat(t,"-content")]:{display:"inline-block"}}}]},DJ=e=>{const{componentCls:t}=e;return{[t]:ty.map((n=>{const r=e["".concat(n,"6")];return{["&".concat(t,"-").concat(n)]:{"--antd-arrow-background-color":r,["".concat(t,"-inner")]:{backgroundColor:r},["".concat(t,"-arrow")]:{background:"transparent"}}}}))}},NJ=Ol("Popover",(e=>{const{colorBgElevated:t,colorText:n}=e,r=Ui(e,{popoverBg:t,popoverColor:n});return[RJ(r),DJ(r),ey(r,"zoom-big")]}),(e=>{const{lineWidth:t,controlHeight:n,fontHeight:r,padding:o,wireframe:i,zIndexPopupBase:a,borderRadiusLG:l,marginXS:c,lineType:s,colorSplit:u,paddingSM:d}=e,f=n-r,p=f/2,h=f/2-t,g=o;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:a+30},Im(e)),Lm({contentRadius:l,limitVerticalRadius:!0})),{innerPadding:i?0:12,titleMarginBottom:i?0:c,titlePadding:i?"".concat(p,"px ").concat(g,"px ").concat(h,"px"):0,titleBorderBottom:i?"".concat(t,"px ").concat(s," ").concat(u):"none",innerContentPadding:i?"".concat(d,"px ").concat(g,"px"):0})}),{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var FJ=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 BJ=e=>{let{title:t,content:n,prefixCls:o}=e;return t||n?r.createElement(r.Fragment,null,t&&r.createElement("div",{className:"".concat(o,"-title")},t),n&&r.createElement("div",{className:"".concat(o,"-inner-content")},n)):null},zJ=e=>{const{hashId:t,prefixCls:n,className:o,style:i,placement:a="top",title:l,content:s,children:u}=e,d=LJ(l),f=LJ(s),p=c()(t,n,"".concat(n,"-pure"),"".concat(n,"-placement-").concat(a),o);return r.createElement("div",{className:p,style:i},r.createElement("div",{className:"".concat(n,"-arrow")}),r.createElement(Rg,Object.assign({},e,{className:t,prefixCls:n}),u||r.createElement(BJ,{prefixCls:n,title:d,content:f})))},HJ=e=>{const{prefixCls:t,className:n}=e,o=FJ(e,["prefixCls","className"]),{getPrefixCls:i}=r.useContext(f),a=i("popover",t),[l,s,u]=NJ(a);return l(r.createElement(zJ,Object.assign({},o,{prefixCls:a,hashId:s,className:c()(n,u)})))};var WJ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(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 VJ=r.forwardRef(((e,t)=>{var n,o;const{prefixCls:i,title:a,content:l,overlayClassName:s,placement:u="top",trigger:d="hover",children:p,mouseEnterDelay:h=.1,mouseLeaveDelay:g=.1,onOpenChange:v,overlayStyle:m={}}=e,y=WJ(e,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle"]),{getPrefixCls:b}=r.useContext(f),x=b("popover",i),[w,S,O]=NJ(x),_=b(),C=c()(s,S,O),[E,P]=pd(!1,{value:null!==(n=e.open)&&void 0!==n?n:e.visible,defaultValue:null!==(o=e.defaultOpen)&&void 0!==o?o:e.defaultVisible}),M=(e,t)=>{P(e,!0),null===v||void 0===v||v(e,t)},k=LJ(a),A=LJ(l);return w(r.createElement(hy,Object.assign({placement:u,trigger:d,mouseEnterDelay:h,mouseLeaveDelay:g,overlayStyle:m},y,{prefixCls:x,overlayClassName:C,ref:t,open:E,onOpenChange:e=>{M(e)},overlay:k||A?r.createElement(BJ,{prefixCls:x,title:k,content:A}):null,transitionName:km(_,"zoom-big",y.transitionName),"data-popover-inject":!0}),Cu(p,{onKeyDown:e=>{var t,n;r.isValidElement(p)&&(null===(n=null===p||void 0===p?void 0:(t=p.props).onKeyDown)||void 0===n||n.call(t,e)),(e=>{e.keyCode===by.ESC&&M(!1,e)})(e)}})))}));VJ._InternalPanelDoNotUseOrYouWillBeFired=HJ;const GJ=VJ,YJ=e=>{const{size:t,shape:n}=r.useContext(PJ),o=r.useMemo((()=>({size:e.size||t,shape:e.shape||n})),[e.size,e.shape,t,n]);return r.createElement(PJ.Provider,{value:o},e.children)},UJ=e=>{var t,n,o;const{getPrefixCls:i,direction:a}=r.useContext(f),{prefixCls:l,className:s,rootClassName:u,style:d,maxCount:p,maxStyle:h,size:g,shape:v,maxPopoverPlacement:m,maxPopoverTrigger:y,children:b,max:x}=e;const w=i("avatar",l),S="".concat(w,"-group"),O=ks(w),[_,C,E]=AJ(w,O),P=c()(S,{["".concat(S,"-rtl")]:"rtl"===a},E,O,s,u,C),M=Tc(b).map(((e,t)=>Cu(e,{key:"avatar-key-".concat(t)}))),k=(null===x||void 0===x?void 0:x.count)||p,A=M.length;if(k&&k<A){const e=M.slice(0,k),i=M.slice(k,A),a=(null===x||void 0===x?void 0:x.style)||h,l=(null===(t=null===x||void 0===x?void 0:x.popover)||void 0===t?void 0:t.trigger)||y||"hover",s=(null===(n=null===x||void 0===x?void 0:x.popover)||void 0===n?void 0:n.placement)||m||"top",u=Object.assign(Object.assign({content:i},null===x||void 0===x?void 0:x.popover),{overlayClassName:c()("".concat(S,"-popover"),null===(o=null===x||void 0===x?void 0:x.popover)||void 0===o?void 0:o.overlayClassName),placement:s,trigger:l});return e.push(r.createElement(GJ,Object.assign({key:"avatar-popover-key",destroyTooltipOnHide:!0},u),r.createElement(jJ,{style:a},"+".concat(A-k)))),_(r.createElement(YJ,{shape:v,size:g},r.createElement("div",{className:P,style:d},e)))}return _(r.createElement(YJ,{shape:v,size:g},r.createElement("div",{className:P,style:d},M)))},XJ=jJ;XJ.Group=UJ;const qJ=XJ,KJ=e=>{const t=(null===e||void 0===e?void 0:e.algorithm)?dn(e.algorithm):dn(cl),n=Object.assign(Object.assign({},Ka),null===e||void 0===e?void 0:e.token);return Dn(n,{override:null===e||void 0===e?void 0:e.token},t,gl)};const $J=(e,t)=>{const n=null!==t&&void 0!==t?t:cl(e),r=n.fontSizeSM,o=n.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n),function(e){const{sizeUnit:t,sizeStep:n}=e,r=n-2;return{sizeXXL:t*(r+10),sizeXL:t*(r+6),sizeLG:t*(r+2),sizeMD:t*(r+2),sizeMS:t*(r+1),size:t*r,sizeSM:t*r,sizeXS:t*(r-1),sizeXXS:t*(r-1)}}(null!==t&&void 0!==t?t:e)),rl(r)),{controlHeight:o}),tl(Object.assign(Object.assign({},n),{controlHeight:o})))},QJ=(e,t)=>new Za(e).setAlpha(t).toRgbString(),ZJ=(e,t)=>new Za(e).lighten(t).toHexString(),JJ=e=>{const t=ba(e,{theme:"dark"});return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[6],6:t[5],7:t[4],8:t[6],9:t[5],10:t[4]}},e0=(e,t)=>{const n=e||"#000",r=t||"#fff";return{colorBgBase:n,colorTextBase:r,colorText:QJ(r,.85),colorTextSecondary:QJ(r,.65),colorTextTertiary:QJ(r,.45),colorTextQuaternary:QJ(r,.25),colorFill:QJ(r,.18),colorFillSecondary:QJ(r,.12),colorFillTertiary:QJ(r,.08),colorFillQuaternary:QJ(r,.04),colorBgSolid:QJ(r,.95),colorBgSolidHover:QJ(r,1),colorBgSolidActive:QJ(r,.9),colorBgElevated:ZJ(n,12),colorBgContainer:ZJ(n,8),colorBgLayout:ZJ(n,0),colorBgSpotlight:ZJ(n,26),colorBgBlur:QJ(r,.04),colorBorder:ZJ(n,26),colorBorderSecondary:ZJ(n,19)}},t0=(e,t)=>{const n=Object.keys(qa).map((t=>{const n=ba(e[t],{theme:"dark"});return new Array(10).fill(1).reduce(((e,r,o)=>(e["".concat(t,"-").concat(o+1)]=n[o],e["".concat(t).concat(o+1)]=n[o],e)),{})})).reduce(((e,t)=>e=Object.assign(Object.assign({},e),t)),{}),r=null!==t&&void 0!==t?t:cl(e);return Object.assign(Object.assign(Object.assign({},r),n),Ja(e,{generateColorPalettes:JJ,generateNeutralColorPalettes:e0}))};const n0={defaultSeed:ul.token,useToken:function(){const[e,t,n]=wl();return{theme:e,token:t,hashId:n}},defaultAlgorithm:cl,darkAlgorithm:t0,compactAlgorithm:$J,getDesignToken:KJ,defaultConfig:ul,_internalContext:dl};var r0=n(9461);const o0=()=>{},i0=o0(),a0=Object,l0=e=>e===i0,c0=e=>"function"==typeof e,s0=(e,t)=>({...e,...t}),u0=new WeakMap;let d0=0;const f0=e=>{const t=typeof e,n=e&&e.constructor,r=n==Date;let o,i;if(a0(e)!==e||r||n==RegExp)o=r?e.toJSON():"symbol"==t?e.toString():"string"==t?JSON.stringify(e):""+e;else{if(o=u0.get(e),o)return o;if(o=++d0+"~",u0.set(e,o),n==Array){for(o="@",i=0;i<e.length;i++)o+=f0(e[i])+",";u0.set(e,o)}if(n==a0){o="#";const t=a0.keys(e).sort();for(;!l0(i=t.pop());)l0(e[i])||(o+=i+":"+f0(e[i])+",");u0.set(e,o)}}return o},p0=new WeakMap,h0={},g0={},v0="undefined",m0=typeof window!=v0,y0=typeof document!=v0,b0=(e,t)=>{const n=p0.get(e);return[()=>!l0(t)&&e.get(t)||h0,r=>{if(!l0(t)){const o=e.get(t);t in g0||(g0[t]=o),n[5](t,s0(o,r),o||h0)}},n[6],()=>!l0(t)&&t in g0?g0[t]:!l0(t)&&e.get(t)||h0]};let x0=!0;const[w0,S0]=m0&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[o0,o0],O0={isOnline:()=>x0,isVisible:()=>{const e=y0&&document.visibilityState;return l0(e)||"hidden"!==e}},_0={initFocus:e=>(y0&&document.addEventListener("visibilitychange",e),w0("focus",e),()=>{y0&&document.removeEventListener("visibilitychange",e),S0("focus",e)}),initReconnect:e=>{const t=()=>{x0=!0,e()},n=()=>{x0=!1};return w0("online",t),w0("offline",n),()=>{S0("online",t),S0("offline",n)}}},C0=!r.useId,E0=!m0||"Deno"in window,P0=e=>m0&&typeof window.requestAnimationFrame!=v0?window.requestAnimationFrame(e):setTimeout(e,1),M0=E0?r.useEffect:r.useLayoutEffect,k0="undefined"!==typeof navigator&&navigator.connection,A0=!E0&&k0&&(["slow-2g","2g"].includes(k0.effectiveType)||k0.saveData),I0=e=>{if(c0(e))try{e=e()}catch(n){e=""}const t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?f0(e):"",t]};let T0=0;const j0=()=>++T0;var L0=3,R0=0,D0=2,N0=1;async function F0(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const[r,o,i,a]=t,l=s0({populateCache:!0,throwOnError:!0},"boolean"===typeof a?{revalidate:a}:a||{});let c=l.populateCache;const s=l.rollbackOnError;let u=l.optimisticData;const d=l.throwOnError;if(c0(o)){const e=o,t=[],n=r.keys();for(const o of n)!/^\$(inf|sub)\$/.test(o)&&e(r.get(o)._k)&&t.push(o);return Promise.all(t.map(f))}return f(o);async function f(e){const[n]=I0(e);if(!n)return;const[o,a]=b0(r,n),[f,p,h,g]=p0.get(r),v=()=>{const t=f[n];return(c0(l.revalidate)?l.revalidate(o().data,e):!1!==l.revalidate)&&(delete h[n],delete g[n],t&&t[0])?t[0](2).then((()=>o().data)):o().data};if(t.length<3)return v();let m,y=i;const b=j0();p[n]=[b,0];const x=!l0(u),w=o(),S=w.data,O=w._c,_=l0(O)?S:O;if(x&&(u=c0(u)?u(_,S):u,a({data:u,_c:_})),c0(y))try{y=y(_)}catch(C){m=C}if(y&&c0(y.then)){if(y=await y.catch((e=>{m=e})),b!==p[n][0]){if(m)throw m;return y}m&&x&&(e=>"function"===typeof s?s(e):!1!==s)(m)&&(c=!0,a({data:_,_c:i0}))}if(c&&!m)if(c0(c)){const e=c(y,_);a({data:e,error:i0,_c:i0})}else a({data:y,error:i0,_c:i0});if(p[n][1]=j0(),Promise.resolve(v()).then((()=>{a({_c:i0})})),!m)return y;if(d)throw m}}const B0=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},z0=(e,t)=>{if(!p0.has(e)){const n=s0(_0,t),r={},o=F0.bind(i0,e);let i=o0;const a={},l=(e,t)=>{const n=a[e]||[];return a[e]=n,n.push(t),()=>n.splice(n.indexOf(t),1)},c=(t,n,r)=>{e.set(t,n);const o=a[t];if(o)for(const e of o)e(n,r)},s=()=>{if(!p0.has(e)&&(p0.set(e,[r,{},{},{},o,c,l]),!E0)){const t=n.initFocus(setTimeout.bind(i0,B0.bind(i0,r,0))),o=n.initReconnect(setTimeout.bind(i0,B0.bind(i0,r,1)));i=()=>{t&&t(),o&&o(),p0.delete(e)}}};return s(),[e,o,s,i]}return[e,p0.get(e)[4]]},[H0,W0]=z0(new Map),V0=s0({onLoadingSlow:o0,onSuccess:o0,onError:o0,onErrorRetry:(e,t,n,r,o)=>{const i=n.errorRetryCount,a=o.retryCount,l=~~((Math.random()+.5)*(1<<(a<8?a:8)))*n.errorRetryInterval;!l0(i)&&a>i||setTimeout(r,l,o)},onDiscarded:o0,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:A0?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:A0?5e3:3e3,compare:(e,t)=>f0(e)==f0(t),isPaused:()=>!1,cache:H0,mutate:W0,fallback:{}},O0),G0=(e,t)=>{const n=s0(e,t);if(t){const{use:r,fallback:o}=e,{use:i,fallback:a}=t;r&&i&&(n.use=r.concat(i)),o&&a&&(n.fallback=s0(o,a))}return n},Y0=(0,r.createContext)({}),U0=m0&&window.__SWR_DEVTOOLS_USE__,X0=U0?window.__SWR_DEVTOOLS_USE__:[],q0=e=>c0(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],K0=X0.concat((e=>(t,n,r)=>e(t,n&&function(){const[e]=I0(t),[,,,r]=p0.get(H0);if(e.startsWith("$inf$"))return n(...arguments);const o=r[e];return l0(o)?n(...arguments):(delete r[e],o)},r)));U0&&(window.__SWR_DEVTOOLS_REACT__=r);const $0=r.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(e.status="pending",e.then((t=>{e.status="fulfilled",e.value=t}),(t=>{e.status="rejected",e.reason=t})),e)}),Q0={dedupe:!0};a0.defineProperty((e=>{const{value:t}=e,n=(0,r.useContext)(Y0),o=c0(t),i=(0,r.useMemo)((()=>o?t(n):t),[o,n,t]),a=(0,r.useMemo)((()=>o?i:G0(n,i)),[o,n,i]),l=i&&i.provider,c=(0,r.useRef)(i0);l&&!c.current&&(c.current=z0(l(a.cache||H0),i));const s=c.current;return s&&(a.cache=s[0],a.mutate=s[1]),M0((()=>{if(s)return s[2]&&s[2](),s[3]}),[]),(0,r.createElement)(Y0.Provider,s0(e,{value:a}))}),"defaultValue",{value:V0}),Z0=(e,t,n)=>{const{cache:o,compare:i,suspense:a,fallbackData:l,revalidateOnMount:c,revalidateIfStale:s,refreshInterval:u,refreshWhenHidden:d,refreshWhenOffline:f,keepPreviousData:p}=n,[h,g,v,m]=p0.get(o),[y,b]=I0(e),x=(0,r.useRef)(!1),w=(0,r.useRef)(!1),S=(0,r.useRef)(y),O=(0,r.useRef)(t),_=(0,r.useRef)(n),C=()=>_.current,E=()=>C().isVisible()&&C().isOnline(),[P,M,k,A]=b0(o,y),I=(0,r.useRef)({}).current,T=l0(l)?n.fallback[y]:l,j=(e,t)=>{for(const n in I){const r=n;if("data"===r){if(!i(e[r],t[r])){if(!l0(e[r]))return!1;if(!i(W,t[r]))return!1}}else if(t[r]!==e[r])return!1}return!0},L=(0,r.useMemo)((()=>{const e=!!y&&!!t&&(l0(c)?!C().isPaused()&&!a&&(!!l0(s)||s):c),n=t=>{const n=s0(t);return delete n._k,e?{isValidating:!0,isLoading:!0,...n}:n},r=P(),o=A(),i=n(r),l=r===o?i:n(o);let u=i;return[()=>{const e=n(P());return j(e,u)?(u.data=e.data,u.isLoading=e.isLoading,u.isValidating=e.isValidating,u.error=e.error,u):(u=e,e)},()=>l]}),[o,y]),R=(0,r0.useSyncExternalStore)((0,r.useCallback)((e=>k(y,((t,n)=>{j(n,t)||e()}))),[o,y]),L[0],L[1]),D=!x.current,N=h[y]&&h[y].length>0,F=R.data,B=l0(F)?T:F,z=R.error,H=(0,r.useRef)(B),W=p?l0(F)?H.current:F:B,V=!(N&&!l0(z))&&(D&&!l0(c)?c:!C().isPaused()&&(a?!l0(B)&&s:l0(B)||s)),G=!!(y&&t&&D&&V),Y=l0(R.isValidating)?G:R.isValidating,U=l0(R.isLoading)?G:R.isLoading,X=(0,r.useCallback)((async e=>{const t=O.current;if(!y||!t||w.current||C().isPaused())return!1;let r,o,a=!0;const l=e||{},c=!v[y]||!l.dedupe,s=()=>C0?!w.current&&y===S.current&&x.current:y===S.current,u={isValidating:!1,isLoading:!1},d=()=>{M(u)},f=()=>{const e=v[y];e&&e[1]===o&&delete v[y]},p={isValidating:!0};l0(P().data)&&(p.isLoading=!0);try{if(c&&(M(p),n.loadingTimeout&&l0(P().data)&&setTimeout((()=>{a&&s()&&C().onLoadingSlow(y,n)}),n.loadingTimeout),v[y]=[t(b),j0()]),[r,o]=v[y],r=await r,c&&setTimeout(f,n.dedupingInterval),!v[y]||v[y][1]!==o)return c&&s()&&C().onDiscarded(y),!1;u.error=i0;const e=g[y];if(!l0(e)&&(o<=e[0]||o<=e[1]||0===e[1]))return d(),c&&s()&&C().onDiscarded(y),!1;const l=P().data;u.data=i(l,r)?l:r,c&&s()&&C().onSuccess(r,y,n)}catch(m){f();const e=C(),{shouldRetryOnError:t}=e;e.isPaused()||(u.error=m,c&&s()&&(e.onError(m,y,e),(!0===t||c0(t)&&t(m))&&(C().revalidateOnFocus&&C().revalidateOnReconnect&&!E()||e.onErrorRetry(m,y,e,(e=>{const t=h[y];t&&t[0]&&t[0](L0,e)}),{retryCount:(l.retryCount||0)+1,dedupe:!0}))))}return a=!1,d(),!0}),[y,o]),q=(0,r.useCallback)((function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return F0(o,S.current,...t)}),[]);if(M0((()=>{O.current=t,_.current=n,l0(F)||(H.current=F)})),M0((()=>{if(!y)return;const e=X.bind(i0,Q0);let t=0;const n=((e,t,n)=>{const r=t[e]||(t[e]=[]);return r.push(n),()=>{const e=r.indexOf(n);e>=0&&(r[e]=r[r.length-1],r.pop())}})(y,h,(function(n){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(n==R0){const n=Date.now();C().revalidateOnFocus&&n>t&&E()&&(t=n+C().focusThrottleInterval,e())}else if(n==N0)C().revalidateOnReconnect&&E()&&e();else{if(n==D0)return X();if(n==L0)return X(r)}}));return w.current=!1,S.current=y,x.current=!0,M({_k:b}),V&&(l0(B)||E0?e():P0(e)),()=>{w.current=!0,n()}}),[y]),M0((()=>{let e;function t(){const t=c0(u)?u(P().data):u;t&&-1!==e&&(e=setTimeout(n,t))}function n(){P().error||!d&&!C().isVisible()||!f&&!C().isOnline()?t():X(Q0).then(t)}return t(),()=>{e&&(clearTimeout(e),e=-1)}}),[u,d,f,y]),(0,r.useDebugValue)(W),a&&l0(B)&&y){if(!C0&&E0)throw new Error("Fallback data is required when using suspense in SSR.");O.current=t,_.current=n,w.current=!1;const e=m[y];if(!l0(e)){const t=q(e);$0(t)}if(!l0(z))throw z;{const e=X(Q0);l0(W)||(e.status="fulfilled",e.value=!0),$0(e)}}return{mutate:q,get data(){return I.data=!0,W},get error(){return I.error=!0,z},get isValidating(){return I.isValidating=!0,Y},get isLoading(){return I.isLoading=!0,U}}};var Z0;var J0,e1=function(e,t){return{getMessage:function(n,r){var o=Ve(t,n.replace(/\[(\d+)\]/g,".$1").split("."))||"";if(o)return o;if("zh-CN"===e.replace("_","-"))return r;var i=o1["zh-CN"];return i?i.getMessage(n,r):r},locale:e}},t1=e1("mn_MN",{moneySymbol:"\u20ae",form:{lightFilter:{more:"\u0418\u043b\u04af\u04af",clear:"\u0426\u044d\u0432\u044d\u0440\u043b\u044d\u0445",confirm:"\u0411\u0430\u0442\u0430\u043b\u0433\u0430\u0430\u0436\u0443\u0443\u043b\u0430\u0445",itemUnit:"\u041d\u044d\u0433\u0436\u04af\u04af\u0434"}},tableForm:{search:"\u0425\u0430\u0439\u0445",reset:"\u0428\u0438\u043d\u044d\u0447\u043b\u044d\u0445",submit:"\u0418\u043b\u0433\u044d\u044d\u0445",collapsed:"\u04e8\u0440\u0433\u04e9\u0442\u0433\u04e9\u0445",expand:"\u0425\u0443\u0440\u0430\u0430\u0445",inputPlaceholder:"\u0423\u0442\u0433\u0430 \u043e\u0440\u0443\u0443\u043b\u043d\u0430 \u0443\u0443",selectPlaceholder:"\u0423\u0442\u0433\u0430 \u0441\u043e\u043d\u0433\u043e\u043d\u043e \u0443\u0443"},alert:{clear:"\u0426\u044d\u0432\u044d\u0440\u043b\u044d\u0445",selected:"\u0421\u043e\u043d\u0433\u043e\u0433\u0434\u0441\u043e\u043d",item:"\u041d\u044d\u0433\u0436"},pagination:{total:{range:" ",total:"\u041d\u0438\u0439\u0442",item:"\u043c\u04e9\u0440"}},tableToolBar:{leftPin:"\u0417\u04af\u04af\u043d \u0442\u0438\u0439\u0448 \u0431\u044d\u0445\u043b\u044d\u0445",rightPin:"\u0411\u0430\u0440\u0443\u0443\u043d \u0442\u0438\u0439\u0448 \u0431\u044d\u0445\u043b\u044d\u0445",noPin:"\u0411\u044d\u0445\u043b\u044d\u0445\u0433\u04af\u0439",leftFixedTitle:"\u0417\u04af\u04af\u043d \u0437\u044d\u0440\u044d\u0433\u0446\u04af\u04af\u043b\u044d\u0445",rightFixedTitle:"\u0411\u0430\u0440\u0443\u0443\u043d \u0437\u044d\u0440\u044d\u0433\u0446\u04af\u04af\u043b\u044d\u0445",noFixedTitle:"\u0417\u044d\u0440\u044d\u0433\u0446\u04af\u04af\u043b\u044d\u0445\u0433\u04af\u0439",reset:"\u0428\u0438\u043d\u044d\u0447\u043b\u044d\u0445",columnDisplay:"\u0411\u0430\u0433\u0430\u043d\u0430\u0430\u0440 \u0445\u0430\u0440\u0443\u0443\u043b\u0430\u0445",columnSetting:"\u0422\u043e\u0445\u0438\u0440\u0433\u043e\u043e",fullScreen:"\u0411\u04af\u0442\u044d\u043d \u0434\u044d\u043b\u0433\u044d\u0446\u044d\u044d\u0440",exitFullScreen:"\u0411\u04af\u0442\u044d\u043d \u0434\u044d\u043b\u0433\u044d\u0446 \u0446\u0443\u0446\u043b\u0430\u0445",reload:"\u0428\u0438\u043d\u044d\u0447\u043b\u044d\u0445",density:"\u0425\u044d\u043c\u0436\u044d\u044d",densityDefault:"\u0425\u044d\u0432\u0438\u0439\u043d",densityLarger:"\u0422\u043e\u043c",densityMiddle:"\u0414\u0443\u043d\u0434",densitySmall:"\u0416\u0438\u0436\u0438\u0433"},stepsForm:{next:"\u0414\u0430\u0440\u0430\u0430\u0445",prev:"\u04e8\u043c\u043d\u04e9\u0445",submit:"\u0414\u0443\u0443\u0441\u0433\u0430\u0445"},loginForm:{submitText:"\u041d\u044d\u0432\u0442\u0440\u044d\u0445"},editableTable:{action:{save:"\u0425\u0430\u0434\u0433\u0430\u043b\u0430\u0445",cancel:"\u0426\u0443\u0446\u043b\u0430\u0445",delete:"\u0423\u0441\u0442\u0433\u0430\u0445",add:"\u041c\u04e9\u0440 \u043d\u044d\u043c\u044d\u0445"}},switch:{open:"\u041d\u044d\u044d\u0445",close:"\u0425\u0430\u0430\u0445"}}),n1=e1("ar_EG",{moneySymbol:"$",form:{lightFilter:{more:"\u0627\u0644\u0645\u0632\u064a\u062f",clear:"\u0646\u0638\u0641",confirm:"\u062a\u0623\u0643\u064a\u062f",itemUnit:"\u0639\u0646\u0627\u0635\u0631"}},tableForm:{search:"\u0627\u0628\u062d\u062b",reset:"\u0625\u0639\u0627\u062f\u0629 \u062a\u0639\u064a\u064a\u0646",submit:"\u0627\u0631\u0633\u0627\u0644",collapsed:"\u0645\u064f\u0642\u0644\u0635",expand:"\u0645\u064f\u0648\u0633\u0639",inputPlaceholder:"\u0627\u0644\u0631\u062c\u0627\u0621 \u0627\u0644\u0625\u062f\u062e\u0627\u0644",selectPlaceholder:"\u0627\u0644\u0631\u062c\u0627\u0621 \u0627\u0644\u0625\u062e\u062a\u064a\u0627\u0631"},alert:{clear:"\u0646\u0638\u0641",selected:"\u0645\u062d\u062f\u062f",item:"\u0639\u0646\u0635\u0631"},pagination:{total:{range:" ",total:"\u0645\u0646",item:"\u0639\u0646\u0627\u0635\u0631"}},tableToolBar:{leftPin:"\u062b\u0628\u062a \u0639\u0644\u0649 \u0627\u0644\u064a\u0633\u0627\u0631",rightPin:"\u062b\u0628\u062a \u0639\u0644\u0649 \u0627\u0644\u064a\u0645\u064a\u0646",noPin:"\u0627\u0644\u063a\u0627\u0621 \u0627\u0644\u062a\u062b\u0628\u064a\u062a",leftFixedTitle:"\u0644\u0635\u0642 \u0639\u0644\u0649 \u0627\u0644\u064a\u0633\u0627\u0631",rightFixedTitle:"\u0644\u0635\u0642 \u0639\u0644\u0649 \u0627\u0644\u064a\u0645\u064a\u0646",noFixedTitle:"\u0625\u0644\u063a\u0627\u0621 \u0627\u0644\u0625\u0644\u0635\u0627\u0642",reset:"\u0625\u0639\u0627\u062f\u0629 \u062a\u0639\u064a\u064a\u0646",columnDisplay:"\u0627\u0644\u0623\u0639\u0645\u062f\u0629 \u0627\u0644\u0645\u0639\u0631\u0648\u0636\u0629",columnSetting:"\u0627\u0644\u0625\u0639\u062f\u0627\u062f\u0627\u062a",fullScreen:"\u0648\u0636\u0639 \u0643\u0627\u0645\u0644 \u0627\u0644\u0634\u0627\u0634\u0629",exitFullScreen:"\u0627\u0644\u062e\u0631\u0648\u062c \u0645\u0646 \u0648\u0636\u0639 \u0643\u0627\u0645\u0644 \u0627\u0644\u0634\u0627\u0634\u0629",reload:"\u062a\u062d\u062f\u064a\u062b",density:"\u0627\u0644\u0643\u062b\u0627\u0641\u0629",densityDefault:"\u0627\u0641\u062a\u0631\u0627\u0636\u064a",densityLarger:"\u0623\u0643\u0628\u0631",densityMiddle:"\u0648\u0633\u0637",densitySmall:"\u0645\u062f\u0645\u062c"},stepsForm:{next:"\u0627\u0644\u062a\u0627\u0644\u064a",prev:"\u0627\u0644\u0633\u0627\u0628\u0642",submit:"\u0623\u0646\u0647\u0649"},loginForm:{submitText:"\u062a\u0633\u062c\u064a\u0644 \u0627\u0644\u062f\u062e\u0648\u0644"},editableTable:{action:{save:"\u0623\u0646\u0642\u0630",cancel:"\u0625\u0644\u063a\u0627\u0621 \u0627\u0644\u0623\u0645\u0631",delete:"\u062d\u0630\u0641",add:"\u0625\u0636\u0627\u0641\u0629 \u0635\u0641 \u0645\u0646 \u0627\u0644\u0628\u064a\u0627\u0646\u0627\u062a"}},switch:{open:"\u0645\u0641\u062a\u0648\u062d",close:"\u063a\u0644\u0642"}}),r1=e1("zh_CN",{moneySymbol:"\xa5",deleteThisLine:"\u5220\u9664\u6b64\u9879",copyThisLine:"\u590d\u5236\u6b64\u9879",form:{lightFilter:{more:"\u66f4\u591a\u7b5b\u9009",clear:"\u6e05\u9664",confirm:"\u786e\u8ba4",itemUnit:"\u9879"}},tableForm:{search:"\u67e5\u8be2",reset:"\u91cd\u7f6e",submit:"\u63d0\u4ea4",collapsed:"\u5c55\u5f00",expand:"\u6536\u8d77",inputPlaceholder:"\u8bf7\u8f93\u5165",selectPlaceholder:"\u8bf7\u9009\u62e9"},alert:{clear:"\u53d6\u6d88\u9009\u62e9",selected:"\u5df2\u9009\u62e9",item:"\u9879"},pagination:{total:{range:"\u7b2c",total:"\u6761/\u603b\u5171",item:"\u6761"}},tableToolBar:{leftPin:"\u56fa\u5b9a\u5728\u5217\u9996",rightPin:"\u56fa\u5b9a\u5728\u5217\u5c3e",noPin:"\u4e0d\u56fa\u5b9a",leftFixedTitle:"\u56fa\u5b9a\u5728\u5de6\u4fa7",rightFixedTitle:"\u56fa\u5b9a\u5728\u53f3\u4fa7",noFixedTitle:"\u4e0d\u56fa\u5b9a",reset:"\u91cd\u7f6e",columnDisplay:"\u5217\u5c55\u793a",columnSetting:"\u5217\u8bbe\u7f6e",fullScreen:"\u5168\u5c4f",exitFullScreen:"\u9000\u51fa\u5168\u5c4f",reload:"\u5237\u65b0",density:"\u5bc6\u5ea6",densityDefault:"\u6b63\u5e38",densityLarger:"\u5bbd\u677e",densityMiddle:"\u4e2d\u7b49",densitySmall:"\u7d27\u51d1"},stepsForm:{next:"\u4e0b\u4e00\u6b65",prev:"\u4e0a\u4e00\u6b65",submit:"\u63d0\u4ea4"},loginForm:{submitText:"\u767b\u5f55"},editableTable:{onlyOneLineEditor:"\u53ea\u80fd\u540c\u65f6\u7f16\u8f91\u4e00\u884c",action:{save:"\u4fdd\u5b58",cancel:"\u53d6\u6d88",delete:"\u5220\u9664",add:"\u6dfb\u52a0\u4e00\u884c\u6570\u636e"}},switch:{open:"\u6253\u5f00",close:"\u5173\u95ed"}}),o1={"mn-MN":t1,"ar-EG":n1,"zh-CN":r1,"en-US":e1("en_US",{moneySymbol:"$",deleteThisLine:"Delete this line",copyThisLine:"Copy this line",form:{lightFilter:{more:"More",clear:"Clear",confirm:"Confirm",itemUnit:"Items"}},tableForm:{search:"Query",reset:"Reset",submit:"Submit",collapsed:"Expand",expand:"Collapse",inputPlaceholder:"Please enter",selectPlaceholder:"Please select"},alert:{clear:"Clear",selected:"Selected",item:"Item"},pagination:{total:{range:" ",total:"of",item:"items"}},tableToolBar:{leftPin:"Pin to left",rightPin:"Pin to right",noPin:"Unpinned",leftFixedTitle:"Fixed to the left",rightFixedTitle:"Fixed to the right",noFixedTitle:"Not Fixed",reset:"Reset",columnDisplay:"Column Display",columnSetting:"Table Settings",fullScreen:"Full Screen",exitFullScreen:"Exit Full Screen",reload:"Refresh",density:"Density",densityDefault:"Default",densityLarger:"Larger",densityMiddle:"Middle",densitySmall:"Compact"},stepsForm:{next:"Next",prev:"Previous",submit:"Finish"},loginForm:{submitText:"Login"},editableTable:{onlyOneLineEditor:"Only one line can be edited",onlyAddOneLine:"Only one line can be added",action:{save:"Save",cancel:"Cancel",delete:"Delete",add:"add a row of data"}},switch:{open:"open",close:"close"}}),"en-GB":e1("en_GB",{moneySymbol:"\xa3",form:{lightFilter:{more:"More",clear:"Clear",confirm:"Confirm",itemUnit:"Items"}},tableForm:{search:"Query",reset:"Reset",submit:"Submit",collapsed:"Expand",expand:"Collapse",inputPlaceholder:"Please enter",selectPlaceholder:"Please select"},alert:{clear:"Clear",selected:"Selected",item:"Item"},pagination:{total:{range:" ",total:"of",item:"items"}},tableToolBar:{leftPin:"Pin to left",rightPin:"Pin to right",noPin:"Unpinned",leftFixedTitle:"Fixed to the left",rightFixedTitle:"Fixed to the right",noFixedTitle:"Not Fixed",reset:"Reset",columnDisplay:"Column Display",columnSetting:"Table Settings",fullScreen:"Full Screen",exitFullScreen:"Exit Full Screen",reload:"Refresh",density:"Density",densityDefault:"Default",densityLarger:"Larger",densityMiddle:"Middle",densitySmall:"Compact"},stepsForm:{next:"Next",prev:"Previous",submit:"Finish"},loginForm:{submitText:"Login"},editableTable:{onlyOneLineEditor:"Only one line can be edited",onlyAddOneLine:"Only one line can be added",action:{save:"Save",cancel:"Cancel",delete:"Delete",add:"add a row of data"}},switch:{open:"open",close:"close"}}),"vi-VN":e1("vi_VN",{moneySymbol:"\u20ab",form:{lightFilter:{more:"Nhi\u1ec1u h\u01a1n",clear:"Trong",confirm:"X\xe1c nh\u1eadn",itemUnit:"M\u1ee5c"}},tableForm:{search:"T\xecm ki\u1ebfm",reset:"L\xe0m l\u1ea1i",submit:"G\u1eedi \u0111i",collapsed:"M\u1edf r\u1ed9ng",expand:"Thu g\u1ecdn",inputPlaceholder:"nh\u1eadp d\u1eef li\u1ec7u",selectPlaceholder:"Vui l\xf2ng ch\u1ecdn"},alert:{clear:"X\xf3a",selected:"\u0111\xe3 ch\u1ecdn",item:"m\u1ee5c"},pagination:{total:{range:" ",total:"tr\xean",item:"m\u1eb7t h\xe0ng"}},tableToolBar:{leftPin:"Ghim tr\xe1i",rightPin:"Ghim ph\u1ea3i",noPin:"B\u1ecf ghim",leftFixedTitle:"C\u1ed1 \u0111\u1ecbnh tr\xe1i",rightFixedTitle:"C\u1ed1 \u0111\u1ecbnh ph\u1ea3i",noFixedTitle:"Ch\u01b0a c\u1ed1 \u0111\u1ecbnh",reset:"L\xe0m l\u1ea1i",columnDisplay:"C\u1ed9t hi\u1ec3n th\u1ecb",columnSetting:"C\u1ea5u h\xecnh",fullScreen:"Ch\u1ebf \u0111\u1ed9 to\xe0n m\xe0n h\xecnh",exitFullScreen:"Tho\xe1t ch\u1ebf \u0111\u1ed9 to\xe0n m\xe0n h\xecnh",reload:"L\xe0m m\u1edbi",density:"M\u1eadt \u0111\u1ed9 hi\u1ec3n th\u1ecb",densityDefault:"M\u1eb7c \u0111\u1ecbnh",densityLarger:"M\u1eb7c \u0111\u1ecbnh",densityMiddle:"Trung b\xecnh",densitySmall:"Ch\u1eadt"},stepsForm:{next:"Sau",prev:"Tr\u01b0\u1edbc",submit:"K\u1ebft th\xfac"},loginForm:{submitText:"\u0110\u0103ng nh\u1eadp"},editableTable:{action:{save:"C\u1ee9u",cancel:"H\u1ee7y",delete:"X\xf3a",add:"th\xeam m\u1ed9t h\xe0ng d\u1eef li\u1ec7u"}},switch:{open:"m\u1edf",close:"\u0111\xf3ng"}}),"it-IT":e1("it_IT",{moneySymbol:"\u20ac",form:{lightFilter:{more:"pi\xf9",clear:"pulisci",confirm:"conferma",itemUnit:"elementi"}},tableForm:{search:"Filtra",reset:"Pulisci",submit:"Invia",collapsed:"Espandi",expand:"Contrai",inputPlaceholder:"Digita",selectPlaceholder:"Seleziona"},alert:{clear:"Rimuovi",selected:"Selezionati",item:"elementi"},pagination:{total:{range:" ",total:"di",item:"elementi"}},tableToolBar:{leftPin:"Fissa a sinistra",rightPin:"Fissa a destra",noPin:"Ripristina posizione",leftFixedTitle:"Fissato a sinistra",rightFixedTitle:"Fissato a destra",noFixedTitle:"Non fissato",reset:"Ripristina",columnDisplay:"Disposizione colonne",columnSetting:"Impostazioni",fullScreen:"Modalit\xe0 schermo intero",exitFullScreen:"Esci da modalit\xe0 schermo intero",reload:"Ricarica",density:"Grandezza tabella",densityDefault:"predefinito",densityLarger:"Grande",densityMiddle:"Media",densitySmall:"Compatta"},stepsForm:{next:"successivo",prev:"precedente",submit:"finisci"},loginForm:{submitText:"Accedi"},editableTable:{action:{save:"salva",cancel:"annulla",delete:"Delete",add:"add a row of data"}},switch:{open:"open",close:"chiudi"}}),"ja-JP":e1("ja_JP",{moneySymbol:"\xa5",form:{lightFilter:{more:"\u66f4\u306b",clear:"\u30af\u30ea\u30a2",confirm:"\u78ba\u8a8d",itemUnit:"\u30a2\u30a4\u30c6\u30e0"}},tableForm:{search:"\u691c\u7d22",reset:"\u30ea\u30bb\u30c3\u30c8",submit:"\u9001\u4fe1",collapsed:"\u62e1\u5927",expand:"\u6298\u7573",inputPlaceholder:"\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044",selectPlaceholder:"\u9078\u629e\u3057\u3066\u304f\u3060\u3055\u3044"},alert:{clear:"\u30af\u30ea\u30a2",selected:"\u9078\u629e\u3057\u305f",item:"\u30a2\u30a4\u30c6\u30e0"},pagination:{total:{range:"\u30ec\u30b3\u30fc\u30c9",total:"/\u5408\u8a08",item:" "}},tableToolBar:{leftPin:"\u5de6\u306b\u56fa\u5b9a",rightPin:"\u53f3\u306b\u56fa\u5b9a",noPin:"\u30ad\u30e3\u30f3\u30bb\u30eb",leftFixedTitle:"\u5de6\u306b\u56fa\u5b9a\u3055\u308c\u305f\u9805\u76ee",rightFixedTitle:"\u53f3\u306b\u56fa\u5b9a\u3055\u308c\u305f\u9805\u76ee",noFixedTitle:"\u56fa\u5b9a\u3055\u308c\u3066\u306a\u3044\u9805\u76ee",reset:"\u30ea\u30bb\u30c3\u30c8",columnDisplay:"\u8868\u793a\u5217",columnSetting:"\u5217\u8868\u793a\u8a2d\u5b9a",fullScreen:"\u30d5\u30eb\u30b9\u30af\u30ea\u30fc\u30f3",exitFullScreen:"\u7d42\u4e86",reload:"\u66f4\u65b0",density:"\u884c\u9ad8",densityDefault:"\u30c7\u30d5\u30a9\u30eb\u30c8",densityLarger:"\u5927",densityMiddle:"\u4e2d",densitySmall:"\u5c0f"},stepsForm:{next:"\u6b21\u3078",prev:"\u524d\u3078",submit:"\u9001\u4fe1"},loginForm:{submitText:"\u30ed\u30b0\u30a4\u30f3"},editableTable:{action:{save:"\u4fdd\u5b58",cancel:"\u30ad\u30e3\u30f3\u30bb\u30eb",delete:"\u524a\u9664",add:"\u8ffd\u52a0"}},switch:{open:"\u958b\u304f",close:"\u9589\u3058\u308b"}}),"es-ES":e1("es_ES",{moneySymbol:"\u20ac",form:{lightFilter:{more:"M\xe1s",clear:"Limpiar",confirm:"Confirmar",itemUnit:"art\xedculos"}},tableForm:{search:"Buscar",reset:"Limpiar",submit:"Submit",collapsed:"Expandir",expand:"Colapsar",inputPlaceholder:"Ingrese valor",selectPlaceholder:"Seleccione valor"},alert:{clear:"Limpiar",selected:"Seleccionado",item:"Articulo"},pagination:{total:{range:" ",total:"de",item:"art\xedculos"}},tableToolBar:{leftPin:"Pin a la izquierda",rightPin:"Pin a la derecha",noPin:"Sin Pin",leftFixedTitle:"Fijado a la izquierda",rightFixedTitle:"Fijado a la derecha",noFixedTitle:"Sin Fijar",reset:"Reiniciar",columnDisplay:"Mostrar Columna",columnSetting:"Configuraci\xf3n",fullScreen:"Pantalla Completa",exitFullScreen:"Salir Pantalla Completa",reload:"Refrescar",density:"Densidad",densityDefault:"Por Defecto",densityLarger:"Largo",densityMiddle:"Medio",densitySmall:"Compacto"},stepsForm:{next:"Siguiente",prev:"Anterior",submit:"Finalizar"},loginForm:{submitText:"Entrar"},editableTable:{action:{save:"Guardar",cancel:"Descartar",delete:"Borrar",add:"a\xf1adir una fila de datos"}},switch:{open:"abrir",close:"cerrar"}}),"ca-ES":e1("ca_ES",{moneySymbol:"\u20ac",form:{lightFilter:{more:"M\xe9s",clear:"Netejar",confirm:"Confirmar",itemUnit:"Elements"}},tableForm:{search:"Cercar",reset:"Netejar",submit:"Enviar",collapsed:"Expandir",expand:"Col\xb7lapsar",inputPlaceholder:"Introdu\xefu valor",selectPlaceholder:"Seleccioneu valor"},alert:{clear:"Netejar",selected:"Seleccionat",item:"Article"},pagination:{total:{range:" ",total:"de",item:"articles"}},tableToolBar:{leftPin:"Pin a l'esquerra",rightPin:"Pin a la dreta",noPin:"Sense Pin",leftFixedTitle:"Fixat a l'esquerra",rightFixedTitle:"Fixat a la dreta",noFixedTitle:"Sense fixar",reset:"Reiniciar",columnDisplay:"Mostrar Columna",columnSetting:"Configuraci\xf3",fullScreen:"Pantalla Completa",exitFullScreen:"Sortir Pantalla Completa",reload:"Refrescar",density:"Densitat",densityDefault:"Per Defecte",densityLarger:"Llarg",densityMiddle:"Mitj\xe0",densitySmall:"Compacte"},stepsForm:{next:"Seg\xfcent",prev:"Anterior",submit:"Finalizar"},loginForm:{submitText:"Entrar"},editableTable:{action:{save:"Guardar",cancel:"Cancel\xb7lar",delete:"Eliminar",add:"afegir una fila de dades"}},switch:{open:"obert",close:"tancat"}}),"ru-RU":e1("ru_RU",{moneySymbol:"\u20bd",form:{lightFilter:{more:"\u0415\u0449\u0435",clear:"\u041e\u0447\u0438\u0441\u0442\u0438\u0442\u044c",confirm:"\u041e\u041a",itemUnit:"\u041f\u043e\u0437\u0438\u0446\u0438\u0438"}},tableForm:{search:"\u041d\u0430\u0439\u0442\u0438",reset:"\u0421\u0431\u0440\u043e\u0441",submit:"\u041e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c",collapsed:"\u0420\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u044c",expand:"\u0421\u0432\u0435\u0440\u043d\u0443\u0442\u044c",inputPlaceholder:"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435",selectPlaceholder:"\u0412\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435"},alert:{clear:"\u041e\u0447\u0438\u0441\u0442\u0438\u0442\u044c",selected:"\u0412\u044b\u0431\u0440\u0430\u043d\u043e",item:"\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432"},pagination:{total:{range:" ",total:"\u0438\u0437",item:"\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432"}},tableToolBar:{leftPin:"\u0417\u0430\u043a\u0440\u0435\u043f\u0438\u0442\u044c \u0441\u043b\u0435\u0432\u0430",rightPin:"\u0417\u0430\u043a\u0440\u0435\u043f\u0438\u0442\u044c \u0441\u043f\u0440\u0430\u0432\u0430",noPin:"\u041e\u0442\u043a\u0440\u0435\u043f\u0438\u0442\u044c",leftFixedTitle:"\u0417\u0430\u043a\u0440\u0435\u043f\u043b\u0435\u043d\u043e \u0441\u043b\u0435\u0432\u0430",rightFixedTitle:"\u0417\u0430\u043a\u0440\u0435\u043f\u043b\u0435\u043d\u043e \u0441\u043f\u0440\u0430\u0432\u0430",noFixedTitle:"\u041d\u0435 \u0437\u0430\u043a\u0440\u0435\u043f\u043b\u0435\u043d\u043e",reset:"\u0421\u0431\u0440\u043e\u0441",columnDisplay:"\u041e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u0441\u0442\u043e\u043b\u0431\u0446\u0430",columnSetting:"\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438",fullScreen:"\u041f\u043e\u043b\u043d\u044b\u0439 \u044d\u043a\u0440\u0430\u043d",exitFullScreen:"\u0412\u044b\u0439\u0442\u0438 \u0438\u0437 \u043f\u043e\u043b\u043d\u043e\u044d\u043a\u0440\u0430\u043d\u043d\u043e\u0433\u043e \u0440\u0435\u0436\u0438\u043c\u0430",reload:"\u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c",density:"\u0420\u0430\u0437\u043c\u0435\u0440",densityDefault:"\u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e",densityLarger:"\u0411\u043e\u043b\u044c\u0448\u043e\u0439",densityMiddle:"\u0421\u0440\u0435\u0434\u043d\u0438\u0439",densitySmall:"\u0421\u0436\u0430\u0442\u044b\u0439"},stepsForm:{next:"\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439",prev:"\u041f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0439",submit:"\u0417\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044c"},loginForm:{submitText:"\u0412\u0445\u043e\u0434"},editableTable:{action:{save:"\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c",cancel:"\u041e\u0442\u043c\u0435\u043d\u0438\u0442\u044c",delete:"\u0423\u0434\u0430\u043b\u0438\u0442\u044c",add:"\u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0440\u044f\u0434 \u0434\u0430\u043d\u043d\u044b\u0445"}},switch:{open:"\u041e\u0442\u043a\u0440\u044b\u0442\u044b\u0439 \u0447\u0435\u043c\u043f\u0438\u043e\u043d\u0430\u0442 \u043c\u0438\u0440\u0430 \u043f\u043e \u0442\u0435\u043d\u043d\u0438\u0441\u0443",close:"\u041f\u043e \u0430\u0434\u0440\u0435\u0441\u0443:"}}),"sr-RS":e1("sr_RS",{moneySymbol:"RSD",form:{lightFilter:{more:"Vi\u0161e",clear:"O\u010disti",confirm:"Potvrdi",itemUnit:"Stavke"}},tableForm:{search:"Prona\u0111i",reset:"Resetuj",submit:"Po\u0161alji",collapsed:"Pro\u0161iri",expand:"Skupi",inputPlaceholder:"Molimo unesite",selectPlaceholder:"Molimo odaberite"},alert:{clear:"O\u010disti",selected:"Odabrano",item:"Stavka"},pagination:{total:{range:" ",total:"od",item:"stavki"}},tableToolBar:{leftPin:"Zaka\u010di levo",rightPin:"Zaka\u010di desno",noPin:"Nije zaka\u010deno",leftFixedTitle:"Fiksirano levo",rightFixedTitle:"Fiksirano desno",noFixedTitle:"Nije fiksirano",reset:"Resetuj",columnDisplay:"Prikaz kolona",columnSetting:"Pode\u0161avanja",fullScreen:"Pun ekran",exitFullScreen:"Zatvori pun ekran",reload:"Osve\u017ei",density:"Veli\u010dina",densityDefault:"Podrazumevana",densityLarger:"Ve\u0107a",densityMiddle:"Srednja",densitySmall:"Kompaktna"},stepsForm:{next:"Dalje",prev:"Nazad",submit:"Gotovo"},loginForm:{submitText:"Prijavi se"},editableTable:{action:{save:"Sa\u010duvaj",cancel:"Poni\u0161ti",delete:"Obri\u0161i",add:"dodajte red podataka"}},switch:{open:"\u041e\u0442\u0432\u043e\u0440\u0438\u0442\u0435",close:"\u0417\u0430\u0442\u0432\u043e\u0440\u0438\u0442\u0435"}}),"ms-MY":e1("ms_MY",{moneySymbol:"RM",form:{lightFilter:{more:"Lebih banyak",clear:"Jelas",confirm:"Mengesahkan",itemUnit:"Item"}},tableForm:{search:"Cari",reset:"Menetapkan semula",submit:"Hantar",collapsed:"Kembang",expand:"Kuncup",inputPlaceholder:"Sila masuk",selectPlaceholder:"Sila pilih"},alert:{clear:"Padam",selected:"Dipilih",item:"Item"},pagination:{total:{range:" ",total:"daripada",item:"item"}},tableToolBar:{leftPin:"Pin ke kiri",rightPin:"Pin ke kanan",noPin:"Tidak pin",leftFixedTitle:"Tetap ke kiri",rightFixedTitle:"Tetap ke kanan",noFixedTitle:"Tidak Tetap",reset:"Menetapkan semula",columnDisplay:"Lajur",columnSetting:"Settings",fullScreen:"Full Screen",exitFullScreen:"Keluar Full Screen",reload:"Muat Semula",density:"Densiti",densityDefault:"Biasa",densityLarger:"Besar",densityMiddle:"Tengah",densitySmall:"Kecil"},stepsForm:{next:"Seterusnya",prev:"Sebelumnya",submit:"Selesai"},loginForm:{submitText:"Log Masuk"},editableTable:{action:{save:"Simpan",cancel:"Membatalkan",delete:"Menghapuskan",add:"tambah baris data"}},switch:{open:"Terbuka",close:"Tutup"}}),"zh-TW":e1("zh_TW",{moneySymbol:"NT$",deleteThisLine:"\u522a\u9664\u6b64\u9879",copyThisLine:"\u8907\u88fd\u6b64\u9879",form:{lightFilter:{more:"\u66f4\u591a\u7be9\u9078",clear:"\u6e05\u9664",confirm:"\u78ba\u8a8d",itemUnit:"\u9805"}},tableForm:{search:"\u67e5\u8a62",reset:"\u91cd\u7f6e",submit:"\u63d0\u4ea4",collapsed:"\u5c55\u958b",expand:"\u6536\u8d77",inputPlaceholder:"\u8acb\u8f38\u5165",selectPlaceholder:"\u8acb\u9078\u64c7"},alert:{clear:"\u53d6\u6d88\u9078\u64c7",selected:"\u5df2\u9078\u64c7",item:"\u9805"},pagination:{total:{range:"\u7b2c",total:"\u689d/\u7e3d\u5171",item:"\u689d"}},tableToolBar:{leftPin:"\u56fa\u5b9a\u5230\u5de6\u908a",rightPin:"\u56fa\u5b9a\u5230\u53f3\u908a",noPin:"\u4e0d\u56fa\u5b9a",leftFixedTitle:"\u56fa\u5b9a\u5728\u5de6\u5074",rightFixedTitle:"\u56fa\u5b9a\u5728\u53f3\u5074",noFixedTitle:"\u4e0d\u56fa\u5b9a",reset:"\u91cd\u7f6e",columnDisplay:"\u5217\u5c55\u793a",columnSetting:"\u5217\u8a2d\u7f6e",fullScreen:"\u5168\u5c4f",exitFullScreen:"\u9000\u51fa\u5168\u5c4f",reload:"\u5237\u65b0",density:"\u5bc6\u5ea6",densityDefault:"\u6b63\u5e38",densityLarger:"\u5bec\u9b06",densityMiddle:"\u4e2d\u7b49",densitySmall:"\u7dca\u6e4a"},stepsForm:{next:"\u4e0b\u4e00\u6b65",prev:"\u4e0a\u4e00\u6b65",submit:"\u5b8c\u6210"},loginForm:{submitText:"\u767b\u5165"},editableTable:{onlyOneLineEditor:"\u53ea\u80fd\u540c\u6642\u7de8\u8f2f\u4e00\u884c",action:{save:"\u4fdd\u5b58",cancel:"\u53d6\u6d88",delete:"\u522a\u9664",add:"\u65b0\u589e\u4e00\u884c\u8cc7\u6599"}},switch:{open:"\u6253\u958b",close:"\u95dc\u9589"}}),"fr-FR":e1("fr_FR",{moneySymbol:"\u20ac",form:{lightFilter:{more:"Plus",clear:"Effacer",confirm:"Confirmer",itemUnit:"Items"}},tableForm:{search:"Rechercher",reset:"R\xe9initialiser",submit:"Envoyer",collapsed:"Agrandir",expand:"R\xe9duire",inputPlaceholder:"Entrer une valeur",selectPlaceholder:"S\xe9lectionner une valeur"},alert:{clear:"R\xe9initialiser",selected:"S\xe9lectionn\xe9",item:"Item"},pagination:{total:{range:" ",total:"sur",item:"\xe9l\xe9ments"}},tableToolBar:{leftPin:"\xc9pingler \xe0 gauche",rightPin:"\xc9pingler \xe0 gauche",noPin:"Sans \xe9pingle",leftFixedTitle:"Fixer \xe0 gauche",rightFixedTitle:"Fixer \xe0 droite",noFixedTitle:"Non fix\xe9",reset:"R\xe9initialiser",columnDisplay:"Affichage colonne",columnSetting:"R\xe9glages",fullScreen:"Plein \xe9cran",exitFullScreen:"Quitter Plein \xe9cran",reload:"Rafraichir",density:"Densit\xe9",densityDefault:"Par d\xe9faut",densityLarger:"Larger",densityMiddle:"Moyenne",densitySmall:"Compacte"},stepsForm:{next:"Suivante",prev:"Pr\xe9c\xe9dente",submit:"Finaliser"},loginForm:{submitText:"Se connecter"},editableTable:{action:{save:"Sauvegarder",cancel:"Annuler",delete:"Supprimer",add:"ajouter une ligne de donn\xe9es"}},switch:{open:"ouvert",close:"pr\xe8s"}}),"pt-BR":e1("pt_BR",{moneySymbol:"R$",form:{lightFilter:{more:"Mais",clear:"Limpar",confirm:"Confirmar",itemUnit:"Itens"}},tableForm:{search:"Filtrar",reset:"Limpar",submit:"Confirmar",collapsed:"Expandir",expand:"Colapsar",inputPlaceholder:"Por favor insira",selectPlaceholder:"Por favor selecione"},alert:{clear:"Limpar",selected:"Selecionado(s)",item:"Item(s)"},pagination:{total:{range:" ",total:"de",item:"itens"}},tableToolBar:{leftPin:"Fixar \xe0 esquerda",rightPin:"Fixar \xe0 direita",noPin:"Desfixado",leftFixedTitle:"Fixado \xe0 esquerda",rightFixedTitle:"Fixado \xe0 direita",noFixedTitle:"N\xe3o fixado",reset:"Limpar",columnDisplay:"Mostrar Coluna",columnSetting:"Configura\xe7\xf5es",fullScreen:"Tela Cheia",exitFullScreen:"Sair da Tela Cheia",reload:"Atualizar",density:"Densidade",densityDefault:"Padr\xe3o",densityLarger:"Largo",densityMiddle:"M\xe9dio",densitySmall:"Compacto"},stepsForm:{next:"Pr\xf3ximo",prev:"Anterior",submit:"Enviar"},loginForm:{submitText:"Entrar"},editableTable:{action:{save:"Salvar",cancel:"Cancelar",delete:"Apagar",add:"adicionar uma linha de dados"}},switch:{open:"abrir",close:"fechar"}}),"ko-KR":e1("ko_KR",{moneySymbol:"\u20a9",form:{lightFilter:{more:"\ub354\ubcf4\uae30",clear:"\ucd08\uae30\ud654",confirm:"\ud655\uc778",itemUnit:"\uac74\uc218"}},tableForm:{search:"\uc870\ud68c",reset:"\ucd08\uae30\ud654",submit:"\uc81c\ucd9c",collapsed:"\ud655\uc7a5",expand:"\ub2eb\uae30",inputPlaceholder:"\uc785\ub825\ud574 \uc8fc\uc138\uc694",selectPlaceholder:"\uc120\ud0dd\ud574 \uc8fc\uc138\uc694"},alert:{clear:"\ucde8\uc18c",selected:"\uc120\ud0dd",item:"\uac74"},pagination:{total:{range:" ",total:"/ \ucd1d",item:"\uac74"}},tableToolBar:{leftPin:"\uc67c\ucabd\uc73c\ub85c \ud540",rightPin:"\uc624\ub978\ucabd\uc73c\ub85c \ud540",noPin:"\ud540 \uc81c\uac70",leftFixedTitle:"\uc67c\ucabd\uc73c\ub85c \uace0\uc815",rightFixedTitle:"\uc624\ub978\ucabd\uc73c\ub85c \uace0\uc815",noFixedTitle:"\ube44\uace0\uc815",reset:"\ucd08\uae30\ud654",columnDisplay:"\uceec\ub7fc \ud45c\uc2dc",columnSetting:"\uc124\uc815",fullScreen:"\uc804\uccb4 \ud654\uba74",exitFullScreen:"\uc804\uccb4 \ud654\uba74 \ucde8\uc18c",reload:"\uc0c8\ub85c \uace0\uce68",density:"\uc5ec\ubc31",densityDefault:"\uae30\ubcf8",densityLarger:"\ub9ce\uc740 \uc5ec\ubc31",densityMiddle:"\uc911\uac04 \uc5ec\ubc31",densitySmall:"\uc881\uc740 \uc5ec\ubc31"},stepsForm:{next:"\ub2e4\uc74c",prev:"\uc774\uc804",submit:"\uc885\ub8cc"},loginForm:{submitText:"\ub85c\uadf8\uc778"},editableTable:{action:{save:"\uc800\uc7a5",cancel:"\ucde8\uc18c",delete:"\uc0ad\uc81c",add:"\ub370\uc774\ud130 \ud589 \ucd94\uac00"}},switch:{open:"\uc5f4",close:"\uac00\uae4c \uc6b4"}}),"id-ID":e1("id_ID",{moneySymbol:"RP",form:{lightFilter:{more:"Lebih",clear:"Hapus",confirm:"Konfirmasi",itemUnit:"Unit"}},tableForm:{search:"Cari",reset:"Atur ulang",submit:"Kirim",collapsed:"Lebih sedikit",expand:"Lebih banyak",inputPlaceholder:"Masukkan pencarian",selectPlaceholder:"Pilih"},alert:{clear:"Hapus",selected:"Dipilih",item:"Butir"},pagination:{total:{range:" ",total:"Dari",item:"Butir"}},tableToolBar:{leftPin:"Pin kiri",rightPin:"Pin kanan",noPin:"Tidak ada pin",leftFixedTitle:"Rata kiri",rightFixedTitle:"Rata kanan",noFixedTitle:"Tidak tetap",reset:"Atur ulang",columnDisplay:"Tampilan kolom",columnSetting:"Pengaturan",fullScreen:"Layar penuh",exitFullScreen:"Keluar layar penuh",reload:"Atur ulang",density:"Kerapatan",densityDefault:"Standar",densityLarger:"Lebih besar",densityMiddle:"Sedang",densitySmall:"Rapat"},stepsForm:{next:"Selanjutnya",prev:"Sebelumnya",submit:"Selesai"},loginForm:{submitText:"Login"},editableTable:{action:{save:"simpan",cancel:"batal",delete:"hapus",add:"Tambahkan baris data"}},switch:{open:"buka",close:"tutup"}}),"de-DE":e1("de_DE",{moneySymbol:"\u20ac",form:{lightFilter:{more:"Mehr",clear:"Zur\xfccksetzen",confirm:"Best\xe4tigen",itemUnit:"Eintr\xe4ge"}},tableForm:{search:"Suchen",reset:"Zur\xfccksetzen",submit:"Absenden",collapsed:"Zeige mehr",expand:"Zeige weniger",inputPlaceholder:"Bitte eingeben",selectPlaceholder:"Bitte ausw\xe4hlen"},alert:{clear:"Zur\xfccksetzen",selected:"Ausgew\xe4hlt",item:"Eintrag"},pagination:{total:{range:" ",total:"von",item:"Eintr\xe4gen"}},tableToolBar:{leftPin:"Links anheften",rightPin:"Rechts anheften",noPin:"Nicht angeheftet",leftFixedTitle:"Links fixiert",rightFixedTitle:"Rechts fixiert",noFixedTitle:"Nicht fixiert",reset:"Zur\xfccksetzen",columnDisplay:"Angezeigte Reihen",columnSetting:"Einstellungen",fullScreen:"Vollbild",exitFullScreen:"Vollbild verlassen",reload:"Aktualisieren",density:"Abstand",densityDefault:"Standard",densityLarger:"Gr\xf6\xdfer",densityMiddle:"Mittel",densitySmall:"Kompakt"},stepsForm:{next:"Weiter",prev:"Zur\xfcck",submit:"Abschlie\xdfen"},loginForm:{submitText:"Anmelden"},editableTable:{action:{save:"Retten",cancel:"Abbrechen",delete:"L\xf6schen",add:"Hinzuf\xfcgen einer Datenzeile"}},switch:{open:"offen",close:"schlie\xdfen"}}),"fa-IR":e1("fa_IR",{moneySymbol:"\u062a\u0648\u0645\u0627\u0646",form:{lightFilter:{more:"\u0628\u06cc\u0634\u062a\u0631",clear:"\u067e\u0627\u06a9 \u06a9\u0631\u062f\u0646",confirm:"\u062a\u0627\u06cc\u06cc\u062f",itemUnit:"\u0645\u0648\u0631\u062f"}},tableForm:{search:"\u062c\u0633\u062a\u062c\u0648",reset:"\u0628\u0627\u0632\u0646\u0634\u0627\u0646\u06cc",submit:"\u062a\u0627\u06cc\u06cc\u062f",collapsed:"\u0646\u0645\u0627\u06cc\u0634 \u0628\u06cc\u0634\u062a\u0631",expand:"\u0646\u0645\u0627\u06cc\u0634 \u06a9\u0645\u062a\u0631",inputPlaceholder:"\u067e\u06cc\u062f\u0627 \u06a9\u0646\u06cc\u062f",selectPlaceholder:"\u0627\u0646\u062a\u062e\u0627\u0628 \u06a9\u0646\u06cc\u062f"},alert:{clear:"\u067e\u0627\u06a9 \u0633\u0627\u0632\u06cc",selected:"\u0627\u0646\u062a\u062e\u0627\u0628",item:"\u0645\u0648\u0631\u062f"},pagination:{total:{range:" ",total:"\u0627\u0632",item:"\u0645\u0648\u0631\u062f"}},tableToolBar:{leftPin:"\u0633\u0646\u062c\u0627\u0642 \u0628\u0647 \u0686\u067e",rightPin:"\u0633\u0646\u062c\u0627\u0642 \u0628\u0647 \u0631\u0627\u0633\u062a",noPin:"\u0633\u0646\u062c\u0627\u0642 \u0646\u0634\u062f\u0647",leftFixedTitle:"\u062b\u0627\u0628\u062a \u0634\u062f\u0647 \u062f\u0631 \u0686\u067e",rightFixedTitle:"\u062b\u0627\u0628\u062a \u0634\u062f\u0647 \u062f\u0631 \u0631\u0627\u0633\u062a",noFixedTitle:"\u0634\u0646\u0627\u0648\u0631",reset:"\u0628\u0627\u0632\u0646\u0634\u0627\u0646\u06cc",columnDisplay:"\u0646\u0645\u0627\u06cc\u0634 \u0647\u0645\u0647",columnSetting:"\u062a\u0646\u0638\u06cc\u0645\u0627\u062a",fullScreen:"\u062a\u0645\u0627\u0645 \u0635\u0641\u062d\u0647",exitFullScreen:"\u062e\u0631\u0648\u062c \u0627\u0632 \u062d\u0627\u0644\u062a \u062a\u0645\u0627\u0645 \u0635\u0641\u062d\u0647",reload:"\u062a\u0627\u0632\u0647 \u0633\u0627\u0632\u06cc",density:"\u062a\u0631\u0627\u06a9\u0645",densityDefault:"\u067e\u06cc\u0634 \u0641\u0631\u0636",densityLarger:"\u0628\u0632\u0631\u06af",densityMiddle:"\u0645\u062a\u0648\u0633\u0637",densitySmall:"\u06a9\u0648\u0686\u06a9"},stepsForm:{next:"\u0628\u0639\u062f\u06cc",prev:"\u0642\u0628\u0644\u06cc",submit:"\u0627\u062a\u0645\u0627\u0645"},loginForm:{submitText:"\u0648\u0631\u0648\u062f"},editableTable:{action:{save:"\u0630\u062e\u06cc\u0631\u0647",cancel:"\u0644\u063a\u0648",delete:"\u062d\u0630\u0641",add:"\u06cc\u06a9 \u0631\u062f\u06cc\u0641 \u062f\u0627\u062f\u0647 \u0627\u0636\u0627\u0641\u0647 \u06a9\u0646\u06cc\u062f"}},switch:{open:"\u0628\u0627\u0632",close:"\u0646\u0632\u062f\u06cc\u06a9"}}),"tr-TR":e1("tr_TR",{moneySymbol:"\u20ba",form:{lightFilter:{more:"Daha Fazla",clear:"Temizle",confirm:"Onayla",itemUnit:"\xd6\u011feler"}},tableForm:{search:"Filtrele",reset:"S\u0131f\u0131rla",submit:"G\xf6nder",collapsed:"Daha fazla",expand:"Daha az",inputPlaceholder:"Filtrelemek i\xe7in bir de\u011fer girin",selectPlaceholder:"Filtrelemek i\xe7in bir de\u011fer se\xe7in"},alert:{clear:"Temizle",selected:"Se\xe7ili",item:"\xd6\u011fe"},pagination:{total:{range:" ",total:"Toplam",item:"\xd6\u011fe"}},tableToolBar:{leftPin:"Sola sabitle",rightPin:"Sa\u011fa sabitle",noPin:"Sabitlemeyi kald\u0131r",leftFixedTitle:"Sola sabitlendi",rightFixedTitle:"Sa\u011fa sabitlendi",noFixedTitle:"Sabitlenmedi",reset:"S\u0131f\u0131rla",columnDisplay:"Kolon G\xf6r\xfcn\xfcm\xfc",columnSetting:"Ayarlar",fullScreen:"Tam Ekran",exitFullScreen:"Tam Ekrandan \xc7\u0131k",reload:"Yenile",density:"Kal\u0131nl\u0131k",densityDefault:"Varsay\u0131lan",densityLarger:"B\xfcy\xfck",densityMiddle:"Orta",densitySmall:"K\xfc\xe7\xfck"},stepsForm:{next:"S\u0131radaki",prev:"\xd6nceki",submit:"G\xf6nder"},loginForm:{submitText:"Giri\u015f Yap"},editableTable:{action:{save:"Kaydet",cancel:"Vazge\xe7",delete:"Sil",add:"foegje in rige gegevens ta"}},switch:{open:"a\xe7\u0131k",close:"kapatmak"}}),"pl-PL":e1("pl_PL",{moneySymbol:"z\u0142",form:{lightFilter:{more:"Wi\u0119cej",clear:"Wyczy\u015b\u0107",confirm:"Potwierd\u017a",itemUnit:"Ilo\u015b\u0107"}},tableForm:{search:"Szukaj",reset:"Reset",submit:"Zatwierd\u017a",collapsed:"Poka\u017c wiecej",expand:"Poka\u017c mniej",inputPlaceholder:"Prosz\u0119 poda\u0107",selectPlaceholder:"Prosz\u0119 wybra\u0107"},alert:{clear:"Wyczy\u015b\u0107",selected:"Wybrane",item:"Wpis"},pagination:{total:{range:" ",total:"z",item:"Wpis\xf3w"}},tableToolBar:{leftPin:"Przypnij do lewej",rightPin:"Przypnij do prawej",noPin:"Odepnij",leftFixedTitle:"Przypi\u0119te do lewej",rightFixedTitle:"Przypi\u0119te do prawej",noFixedTitle:"Nieprzypi\u0119te",reset:"Reset",columnDisplay:"Wy\u015bwietlane wiersze",columnSetting:"Ustawienia",fullScreen:"Pe\u0142en ekran",exitFullScreen:"Zamknij pe\u0142en ekran",reload:"Od\u015bwie\u017c",density:"Odst\u0119p",densityDefault:"Standard",densityLarger:"Wiekszy",densityMiddle:"Sredni",densitySmall:"Kompaktowy"},stepsForm:{next:"Weiter",prev:"Zur\xfcck",submit:"Abschlie\xdfen"},loginForm:{submitText:"Zaloguj si\u0119"},editableTable:{action:{save:"Zapisa\u0107",cancel:"Anuluj",delete:"Usun\u0105\u0107",add:"dodawanie wiersza danych"}},switch:{open:"otwiera\u0107",close:"zamyka\u0107"}}),"hr-HR":e1("hr_",{moneySymbol:"kn",form:{lightFilter:{more:"Vi\u0161e",clear:"O\u010disti",confirm:"Potvrdi",itemUnit:"Stavke"}},tableForm:{search:"Pretra\u017ei",reset:"Poni\u0161ti",submit:"Potvrdi",collapsed:"Ra\u0161iri",expand:"Skupi",inputPlaceholder:"Unesite",selectPlaceholder:"Odaberite"},alert:{clear:"O\u010disti",selected:"Odaberi",item:"stavke"},pagination:{total:{range:" ",total:"od",item:"stavke"}},tableToolBar:{leftPin:"Prika\u010di lijevo",rightPin:"Prika\u010di desno",noPin:"Bez prika\u010denja",leftFixedTitle:"Fiksiraj lijevo",rightFixedTitle:"Fiksiraj desno",noFixedTitle:"Bez fiksiranja",reset:"Resetiraj",columnDisplay:"Prikaz stupaca",columnSetting:"Postavke",fullScreen:"Puni zaslon",exitFullScreen:"Iza\u0111i iz punog zaslona",reload:"Ponovno u\u010ditaj",density:"Veli\u010dina",densityDefault:"Zadano",densityLarger:"Veliko",densityMiddle:"Srednje",densitySmall:"Malo"},stepsForm:{next:"Sljede\u0107i",prev:"Prethodni",submit:"Kraj"},loginForm:{submitText:"Prijava"},editableTable:{action:{save:"Spremi",cancel:"Odustani",delete:"Obri\u0161i",add:"dodajte red podataka"}},switch:{open:"otvori",close:"zatvori"}}),"th-TH":e1("th_TH",{moneySymbol:"\u0e3f",deleteThisLine:"\u0e25\u0e1a\u0e1a\u0e23\u0e23\u0e17\u0e31\u0e14\u0e19\u0e35\u0e49",copyThisLine:"\u0e04\u0e31\u0e14\u0e25\u0e2d\u0e01\u0e1a\u0e23\u0e23\u0e17\u0e31\u0e14\u0e19\u0e35\u0e49",form:{lightFilter:{more:"\u0e21\u0e32\u0e01\u0e01\u0e27\u0e48\u0e32",clear:"\u0e0a\u0e31\u0e14\u0e40\u0e08\u0e19",confirm:"\u0e22\u0e37\u0e19\u0e22\u0e31\u0e19",itemUnit:"\u0e23\u0e32\u0e22\u0e01\u0e32\u0e23"}},tableForm:{search:"\u0e2a\u0e2d\u0e1a\u0e16\u0e32\u0e21",reset:"\u0e23\u0e35\u0e40\u0e0b\u0e47\u0e15",submit:"\u0e2a\u0e48\u0e07",collapsed:"\u0e02\u0e22\u0e32\u0e22",expand:"\u0e17\u0e23\u0e38\u0e14",inputPlaceholder:"\u0e01\u0e23\u0e38\u0e13\u0e32\u0e1b\u0e49\u0e2d\u0e19",selectPlaceholder:"\u0e42\u0e1b\u0e23\u0e14\u0e40\u0e25\u0e37\u0e2d\u0e01"},alert:{clear:"\u0e0a\u0e31\u0e14\u0e40\u0e08\u0e19",selected:"\u0e40\u0e25\u0e37\u0e2d\u0e01\u0e41\u0e25\u0e49\u0e27",item:"\u0e23\u0e32\u0e22\u0e01\u0e32\u0e23"},pagination:{total:{range:" ",total:"\u0e02\u0e2d\u0e07",item:"\u0e23\u0e32\u0e22\u0e01\u0e32\u0e23"}},tableToolBar:{leftPin:"\u0e1b\u0e31\u0e01\u0e2b\u0e21\u0e38\u0e14\u0e44\u0e1b\u0e17\u0e32\u0e07\u0e0b\u0e49\u0e32\u0e22",rightPin:"\u0e1b\u0e31\u0e01\u0e2b\u0e21\u0e38\u0e14\u0e44\u0e1b\u0e17\u0e32\u0e07\u0e02\u0e27\u0e32",noPin:"\u0e40\u0e25\u0e34\u0e01\u0e15\u0e23\u0e36\u0e07\u0e41\u0e25\u0e49\u0e27",leftFixedTitle:"\u0e41\u0e01\u0e49\u0e44\u0e02\u0e14\u0e49\u0e32\u0e19\u0e0b\u0e49\u0e32\u0e22",rightFixedTitle:"\u0e41\u0e01\u0e49\u0e44\u0e02\u0e14\u0e49\u0e32\u0e19\u0e02\u0e27\u0e32",noFixedTitle:"\u0e44\u0e21\u0e48\u0e04\u0e07\u0e17\u0e35\u0e48",reset:"\u0e23\u0e35\u0e40\u0e0b\u0e47\u0e15",columnDisplay:"\u0e01\u0e32\u0e23\u0e41\u0e2a\u0e14\u0e07\u0e04\u0e2d\u0e25\u0e31\u0e21\u0e19\u0e4c",columnSetting:"\u0e01\u0e32\u0e23\u0e15\u0e31\u0e49\u0e07\u0e04\u0e48\u0e32",fullScreen:"\u0e40\u0e15\u0e47\u0e21\u0e08\u0e2d",exitFullScreen:"\u0e2d\u0e2d\u0e01\u0e08\u0e32\u0e01\u0e42\u0e2b\u0e21\u0e14\u0e40\u0e15\u0e47\u0e21\u0e2b\u0e19\u0e49\u0e32\u0e08\u0e2d",reload:"\u0e23\u0e35\u0e40\u0e1f\u0e23\u0e0a",density:"\u0e04\u0e27\u0e32\u0e21\u0e2b\u0e19\u0e32\u0e41\u0e19\u0e48\u0e19",densityDefault:"\u0e04\u0e48\u0e32\u0e40\u0e23\u0e34\u0e48\u0e21\u0e15\u0e49\u0e19",densityLarger:"\u0e02\u0e19\u0e32\u0e14\u0e43\u0e2b\u0e0d\u0e48\u0e02\u0e36\u0e49\u0e19",densityMiddle:"\u0e01\u0e25\u0e32\u0e07",densitySmall:"\u0e01\u0e30\u0e17\u0e31\u0e14\u0e23\u0e31\u0e14"},stepsForm:{next:"\u0e16\u0e31\u0e14\u0e44\u0e1b",prev:"\u0e01\u0e48\u0e2d\u0e19\u0e2b\u0e19\u0e49\u0e32",submit:"\u0e40\u0e2a\u0e23\u0e47\u0e08"},loginForm:{submitText:"\u0e40\u0e02\u0e49\u0e32\u0e2a\u0e39\u0e48\u0e23\u0e30\u0e1a\u0e1a"},editableTable:{onlyOneLineEditor:"\u0e41\u0e01\u0e49\u0e44\u0e02\u0e44\u0e14\u0e49\u0e40\u0e1e\u0e35\u0e22\u0e07\u0e1a\u0e23\u0e23\u0e17\u0e31\u0e14\u0e40\u0e14\u0e35\u0e22\u0e27\u0e40\u0e17\u0e48\u0e32\u0e19\u0e31\u0e49\u0e19",action:{save:"\u0e1a\u0e31\u0e19\u0e17\u0e36\u0e01",cancel:"\u0e22\u0e01\u0e40\u0e25\u0e34\u0e01",delete:"\u0e25\u0e1a",add:"\u0e40\u0e1e\u0e34\u0e48\u0e21\u0e41\u0e16\u0e27\u0e02\u0e2d\u0e07\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25"}},switch:{open:"\u0e40\u0e1b\u0e34\u0e14",close:"\u0e1b\u0e34\u0e14"}}),"cs-CZ":e1("cs_cz",{moneySymbol:"K\u010d",deleteThisLine:"Smazat tento \u0159\xe1dek",copyThisLine:"Kop\xedrovat tento \u0159\xe1dek",form:{lightFilter:{more:"V\xedc",clear:"Vymazat",confirm:"Potvrdit",itemUnit:"Polo\u017eky"}},tableForm:{search:"Dotaz",reset:"Resetovat",submit:"Odeslat",collapsed:"Zv\u011bt\u0161it",expand:"Zmen\u0161it",inputPlaceholder:"Zadejte pros\xedm",selectPlaceholder:"Vyberte pros\xedm"},alert:{clear:"Vymazat",selected:"Vybran\xfd",item:"Polo\u017eka"},pagination:{total:{range:" ",total:"z",item:"polo\u017eek"}},tableToolBar:{leftPin:"P\u0159ipnout doleva",rightPin:"P\u0159ipnout doprava",noPin:"Odepnuto",leftFixedTitle:"Fixov\xe1no nalevo",rightFixedTitle:"Fixov\xe1no napravo",noFixedTitle:"Neopraveno",reset:"Resetovat",columnDisplay:"Zobrazen\xed sloupc\u016f",columnSetting:"Nastaven\xed",fullScreen:"Cel\xe1 obrazovka",exitFullScreen:"Ukon\u010dete celou obrazovku",reload:"Obnovit",density:"Hustota",densityDefault:"V\xfdchoz\xed",densityLarger:"V\u011bt\u0161\xed",densityMiddle:"St\u0159edn\xed",densitySmall:"Kompaktn\xed"},stepsForm:{next:"Dal\u0161\xed",prev:"P\u0159edchoz\xed",submit:"Dokon\u010dit"},loginForm:{submitText:"P\u0159ihl\xe1sit se"},editableTable:{onlyOneLineEditor:"Upravit lze pouze jeden \u0159\xe1dek",action:{save:"Ulo\u017eit",cancel:"Zru\u0161it",delete:"Vymazat",add:"p\u0159idat \u0159\xe1dek dat"}},switch:{open:"otev\u0159\xedt",close:"zav\u0159\xedt"}}),"sk-SK":e1("sk_SK",{moneySymbol:"\u20ac",deleteThisLine:"Odstr\xe1ni\u0165 tento riadok",copyThisLine:"Skop\xedrujte tento riadok",form:{lightFilter:{more:"Viac",clear:"Vy\u010disti\u0165",confirm:"Potvr\u010fte",itemUnit:"Polo\u017eky"}},tableForm:{search:"Vyhlada\u0165",reset:"Resetova\u0165",submit:"Odosla\u0165",collapsed:"Rozbali\u0165",expand:"Zbali\u0165",inputPlaceholder:"Pros\xedm, zadajte",selectPlaceholder:"Pros\xedm, vyberte"},alert:{clear:"Vy\u010disti\u0165",selected:"Vybran\xfd",item:"Polo\u017eka"},pagination:{total:{range:" ",total:"z",item:"polo\u017eiek"}},tableToolBar:{leftPin:"Pripn\xfa\u0165 v\u013eavo",rightPin:"Pripn\xfa\u0165 vpravo",noPin:"Odopnut\xe9",leftFixedTitle:"Fixovan\xe9 na \u013eavo",rightFixedTitle:"Fixovan\xe9 na pravo",noFixedTitle:"Nefixovan\xe9",reset:"Resetova\u0165",columnDisplay:"Zobrazenie st\u013apcov",columnSetting:"Nastavenia",fullScreen:"Cel\xe1 obrazovka",exitFullScreen:"Ukon\u010di\u0165 cel\xfa obrazovku",reload:"Obnovi\u0165",density:"Hustota",densityDefault:"Predvolen\xe9",densityLarger:"V\xe4\u010d\u0161ie",densityMiddle:"Stredn\xe9",densitySmall:"Kompaktn\xe9"},stepsForm:{next:"\u010eal\u0161ie",prev:"Predch\xe1dzaj\xface",submit:"Potvrdi\u0165"},loginForm:{submitText:"Prihl\xe1si\u0165 sa"},editableTable:{onlyOneLineEditor:"Upravova\u0165 mo\u017eno iba jeden riadok",action:{save:"Ulo\u017ei\u0165",cancel:"Zru\u0161i\u0165",delete:"Odstr\xe1ni\u0165",add:"prida\u0165 riadok \xfadajov"}},switch:{open:"otvori\u0165",close:"zavrie\u0165"}}),"he-IL":e1("he_IL",{moneySymbol:"\u20aa",deleteThisLine:"\u05de\u05d7\u05e7 \u05e9\u05d5\u05e8\u05d4 \u05d6\u05d5",copyThisLine:"\u05d4\u05e2\u05ea\u05e7 \u05e9\u05d5\u05e8\u05d4 \u05d6\u05d5",form:{lightFilter:{more:"\u05d9\u05d5\u05ea\u05e8",clear:"\u05e0\u05e7\u05d4",confirm:"\u05d0\u05d9\u05e9\u05d5\u05e8",itemUnit:"\u05e4\u05e8\u05d9\u05d8\u05d9\u05dd"}},tableForm:{search:"\u05d7\u05d9\u05e4\u05d5\u05e9",reset:"\u05d0\u05d9\u05e4\u05d5\u05e1",submit:"\u05e9\u05dc\u05d7",collapsed:"\u05d4\u05e8\u05d7\u05d1",expand:"\u05db\u05d5\u05d5\u05e5",inputPlaceholder:"\u05d0\u05e0\u05d0 \u05d4\u05db\u05e0\u05e1",selectPlaceholder:"\u05d0\u05e0\u05d0 \u05d1\u05d7\u05e8"},alert:{clear:"\u05e0\u05e7\u05d4",selected:"\u05e0\u05d1\u05d7\u05e8",item:"\u05e4\u05e8\u05d9\u05d8"},pagination:{total:{range:" ",total:"\u05de\u05ea\u05d5\u05da",item:"\u05e4\u05e8\u05d9\u05d8\u05d9\u05dd"}},tableToolBar:{leftPin:"\u05d4\u05e6\u05de\u05d3 \u05dc\u05e9\u05de\u05d0\u05dc",rightPin:"\u05d4\u05e6\u05de\u05d3 \u05dc\u05d9\u05de\u05d9\u05df",noPin:"\u05dc\u05d0 \u05de\u05e6\u05d5\u05e8\u05e3",leftFixedTitle:"\u05de\u05d5\u05e6\u05de\u05d3 \u05dc\u05e9\u05de\u05d0\u05dc",rightFixedTitle:"\u05de\u05d5\u05e6\u05de\u05d3 \u05dc\u05d9\u05de\u05d9\u05df",noFixedTitle:"\u05dc\u05d0 \u05de\u05d5\u05e6\u05de\u05d3",reset:"\u05d0\u05d9\u05e4\u05d5\u05e1",columnDisplay:"\u05ea\u05e6\u05d5\u05d2\u05ea \u05e2\u05de\u05d5\u05d3\u05d5\u05ea",columnSetting:"\u05d4\u05d2\u05d3\u05e8\u05d5\u05ea",fullScreen:"\u05de\u05e1\u05da \u05de\u05dc\u05d0",exitFullScreen:"\u05e6\u05d0 \u05de\u05de\u05e1\u05da \u05de\u05dc\u05d0",reload:"\u05e8\u05e2\u05e0\u05df",density:"\u05e8\u05d6\u05d5\u05dc\u05d5\u05e6\u05d9\u05d4",densityDefault:"\u05d1\u05e8\u05d9\u05e8\u05ea \u05de\u05d7\u05d3\u05dc",densityLarger:"\u05d2\u05d3\u05d5\u05dc",densityMiddle:"\u05d1\u05d9\u05e0\u05d5\u05e0\u05d9",densitySmall:"\u05e7\u05d8\u05df"},stepsForm:{next:"\u05d4\u05d1\u05d0",prev:"\u05e7\u05d5\u05d3\u05dd",submit:"\u05e1\u05d9\u05d5\u05dd"},loginForm:{submitText:"\u05db\u05e0\u05d9\u05e1\u05d4"},editableTable:{onlyOneLineEditor:"\u05e0\u05d9\u05ea\u05df \u05dc\u05e2\u05e8\u05d5\u05da \u05e8\u05e7 \u05e9\u05d5\u05e8\u05d4 \u05d0\u05d7\u05ea",action:{save:"\u05e9\u05de\u05d5\u05e8",cancel:"\u05d1\u05d9\u05d8\u05d5\u05dc",delete:"\u05de\u05d7\u05d9\u05e7\u05d4",add:"\u05d4\u05d5\u05e1\u05e3 \u05e9\u05d5\u05e8\u05ea \u05e0\u05ea\u05d5\u05e0\u05d9\u05dd"}},switch:{open:"\u05e4\u05ea\u05d7",close:"\u05e1\u05d2\u05d5\u05e8"}}),"uk-UA":e1("uk_UA",{moneySymbol:"\u20b4",deleteThisLine:"\u0412\u0438\u0434\u0430\u0442\u0438\u043b\u0438 \u0440\u044f\u0434\u043e\u043a",copyThisLine:"\u0421\u043a\u043e\u043f\u0456\u044e\u0432\u0430\u0442\u0438 \u0440\u044f\u0434\u043e\u043a",form:{lightFilter:{more:"\u0429\u0435",clear:"\u041e\u0447\u0438\u0441\u0442\u0438\u0442\u0438",confirm:"\u041e\u043a",itemUnit:"\u041f\u043e\u0437\u0438\u0446\u0456\u0457"}},tableForm:{search:"\u041f\u043e\u0448\u0443\u043a",reset:"\u041e\u0447\u0438\u0441\u0442\u0438\u0442\u0438",submit:"\u0412\u0456\u0434\u043f\u0440\u0430\u0432\u0438\u0442\u0438",collapsed:"\u0420\u043e\u0437\u0433\u043e\u0440\u043d\u0443\u0442\u0438",expand:"\u0417\u0433\u043e\u0440\u043d\u0443\u0442\u0438",inputPlaceholder:"\u0412\u0432\u0435\u0434\u0456\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f",selectPlaceholder:"\u041e\u0431\u0435\u0440\u0456\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f"},alert:{clear:"\u041e\u0447\u0438\u0441\u0442\u0438\u0442\u0438",selected:"\u041e\u0431\u0440\u0430\u043d\u043e",item:"\u0435\u043b\u0435\u043c\u0435\u043d\u0442\u0456\u0432"},pagination:{total:{range:" ",total:"\u0437",item:"\u0435\u043b\u0435\u043c\u0435\u043d\u0442\u0456\u0432"}},tableToolBar:{leftPin:"\u0417\u0430\u043a\u0440\u0456\u043f\u0438\u0442\u0438 \u0437\u043b\u0456\u0432\u0430",rightPin:"\u0417\u0430\u043a\u0440\u0456\u043f\u0438\u0442\u0438 \u0441\u043f\u0440\u0430\u0432\u0430",noPin:"\u0412\u0456\u0434\u043a\u0440\u0456\u043f\u0438\u0442\u0438",leftFixedTitle:"\u0417\u0430\u043a\u0440\u0456\u043f\u043b\u0435\u043d\u043e \u0437\u043b\u0456\u0432\u0430",rightFixedTitle:"\u0417\u0430\u043a\u0440\u0456\u043f\u043b\u0435\u043d\u043e \u0441\u043f\u0440\u0430\u0432\u0430",noFixedTitle:"\u041d\u0435 \u0437\u0430\u043a\u0440\u0456\u043f\u043b\u0435\u043d\u043e",reset:"\u0421\u043a\u0438\u043d\u0443\u0442\u0438",columnDisplay:"\u0412\u0456\u0434\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u043d\u044f \u0441\u0442\u043e\u0432\u043f\u0446\u0456\u0432",columnSetting:"\u041d\u0430\u043b\u0430\u0448\u0442\u0443\u0432\u0430\u043d\u043d\u044f",fullScreen:"\u041f\u043e\u0432\u043d\u043e\u0435\u043a\u0440\u0430\u043d\u043d\u0438\u0439 \u0440\u0435\u0436\u0438\u043c",exitFullScreen:"\u0412\u0438\u0439\u0442\u0438 \u0437 \u043f\u043e\u0432\u043d\u043e\u0435\u043a\u0440\u0430\u043d\u043d\u043e\u0433\u043e \u0440\u0435\u0436\u0438\u043c\u0443",reload:"\u041e\u043d\u043e\u0432\u0438\u0442\u0438",density:"\u0420\u043e\u0437\u043c\u0456\u0440",densityDefault:"\u0417\u0430 \u0437\u0430\u043c\u043e\u0432\u0447\u0443\u0432\u0430\u043d\u043d\u044f\u043c",densityLarger:"\u0412\u0435\u043b\u0438\u043a\u0438\u0439",densityMiddle:"\u0421\u0435\u0440\u0435\u0434\u043d\u0456\u0439",densitySmall:"\u0421\u0442\u0438\u0441\u043b\u0438\u0439"},stepsForm:{next:"\u041d\u0430\u0441\u0442\u0443\u043f\u043d\u0438\u0439",prev:"\u041f\u043e\u043f\u0435\u0440\u0435\u0434\u043d\u0456\u0439",submit:"\u0417\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u0438"},loginForm:{submitText:"\u0412\u0445\u0456\u0445"},editableTable:{onlyOneLineEditor:"\u0422\u0456\u043b\u044c\u043a\u0438 \u043e\u0434\u0438\u043d \u0440\u044f\u0434\u043e\u043a \u043c\u043e\u0436\u0435 \u0431\u0443\u0442\u0438 \u0440\u0435\u0434\u0430\u0433\u043e\u0432\u0430\u043d\u0438\u0439 \u043e\u0434\u043d\u043e\u0447\u0430\u0441\u043d\u043e",action:{save:"\u0417\u0431\u0435\u0440\u0435\u0433\u0442\u0438",cancel:"\u0412\u0456\u0434\u043c\u0456\u043d\u0438\u0442\u0438",delete:"\u0412\u0438\u0434\u0430\u043b\u0438\u0442\u0438",add:"\u0434\u043e\u0434\u0430\u0442\u0438 \u0440\u044f\u0434\u043e\u043a"}},switch:{open:"\u0412\u0456\u0434\u043a\u0440\u0438\u0442\u043e",close:"\u0417\u0430\u043a\u0440\u0438\u0442\u043e"}}),"uz-UZ":e1("uz_UZ",{moneySymbol:"UZS",form:{lightFilter:{more:"Yana",clear:"Tozalash",confirm:"OK",itemUnit:"Pozitsiyalar"}},tableForm:{search:"Qidirish",reset:"Qayta tiklash",submit:"Yuborish",collapsed:"Yig\u2018ish",expand:"Kengaytirish",inputPlaceholder:"Qiymatni kiriting",selectPlaceholder:"Qiymatni tanlang"},alert:{clear:"Tozalash",selected:"Tanlangan",item:"elementlar"},pagination:{total:{range:" ",total:"dan",item:"elementlar"}},tableToolBar:{leftPin:"Chapga mahkamlash",rightPin:"O\u2018ngga mahkamlash",noPin:"Mahkamlashni olib tashlash",leftFixedTitle:"Chapga mahkamlangan",rightFixedTitle:"O\u2018ngga mahkamlangan",noFixedTitle:"Mahkamlashsiz",reset:"Qayta tiklash",columnDisplay:"Ustunni ko\u2018rsatish",columnSetting:"Sozlamalar",fullScreen:"To\u2018liq ekran",exitFullScreen:"To\u2018liq ekrandan chiqish",reload:"Yangilash",density:"O\u2018lcham",densityDefault:"Standart",densityLarger:"Katta",densityMiddle:"O\u2018rtacha",densitySmall:"Kichik"},stepsForm:{next:"Keyingi",prev:"Oldingi",submit:"Tugatish"},loginForm:{submitText:"Kirish"},editableTable:{action:{save:"Saqlash",cancel:"Bekor qilish",delete:"O\u2018chirish",add:"ma\u02bclumotlar qatorini qo\u2018shish"}},switch:{open:"Ochish",close:"Yopish"}})},i1=(Object.keys(o1),n(4114),{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",colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff7875",colorInfo:"#1677ff",colorTextBase:"#000",colorBgBase:"#fff",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'",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)",motionEaseInQuint:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:4,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,"blue-1":"#e6f4ff","blue-2":"#bae0ff","blue-3":"#91caff","blue-4":"#69b1ff","blue-5":"#4096ff","blue-6":"#1677ff","blue-7":"#0958d9","blue-8":"#003eb3","blue-9":"#002c8c","blue-10":"#001d66","purple-1":"#f9f0ff","purple-2":"#efdbff","purple-3":"#d3adf7","purple-4":"#b37feb","purple-5":"#9254de","purple-6":"#722ed1","purple-7":"#531dab","purple-8":"#391085","purple-9":"#22075e","purple-10":"#120338","cyan-1":"#e6fffb","cyan-2":"#b5f5ec","cyan-3":"#87e8de","cyan-4":"#5cdbd3","cyan-5":"#36cfc9","cyan-6":"#13c2c2","cyan-7":"#08979c","cyan-8":"#006d75","cyan-9":"#00474f","cyan-10":"#002329","green-1":"#f6ffed","green-2":"#d9f7be","green-3":"#b7eb8f","green-4":"#95de64","green-5":"#73d13d","green-6":"#52c41a","green-7":"#389e0d","green-8":"#237804","green-9":"#135200","green-10":"#092b00","magenta-1":"#fff0f6","magenta-2":"#ffd6e7","magenta-3":"#ffadd2","magenta-4":"#ff85c0","magenta-5":"#f759ab","magenta-6":"#eb2f96","magenta-7":"#c41d7f","magenta-8":"#9e1068","magenta-9":"#780650","magenta-10":"#520339","pink-1":"#fff0f6","pink-2":"#ffd6e7","pink-3":"#ffadd2","pink-4":"#ff85c0","pink-5":"#f759ab","pink-6":"#eb2f96","pink-7":"#c41d7f","pink-8":"#9e1068","pink-9":"#780650","pink-10":"#520339","red-1":"#fff1f0","red-2":"#ffccc7","red-3":"#ffa39e","red-4":"#ff7875","red-5":"#ff4d4f","red-6":"#f5222d","red-7":"#cf1322","red-8":"#a8071a","red-9":"#820014","red-10":"#5c0011","orange-1":"#fff7e6","orange-2":"#ffe7ba","orange-3":"#ffd591","orange-4":"#ffc069","orange-5":"#ffa940","orange-6":"#fa8c16","orange-7":"#d46b08","orange-8":"#ad4e00","orange-9":"#873800","orange-10":"#612500","yellow-1":"#feffe6","yellow-2":"#ffffb8","yellow-3":"#fffb8f","yellow-4":"#fff566","yellow-5":"#ffec3d","yellow-6":"#fadb14","yellow-7":"#d4b106","yellow-8":"#ad8b00","yellow-9":"#876800","yellow-10":"#614700","volcano-1":"#fff2e8","volcano-2":"#ffd8bf","volcano-3":"#ffbb96","volcano-4":"#ff9c6e","volcano-5":"#ff7a45","volcano-6":"#fa541c","volcano-7":"#d4380d","volcano-8":"#ad2102","volcano-9":"#871400","volcano-10":"#610b00","geekblue-1":"#f0f5ff","geekblue-2":"#d6e4ff","geekblue-3":"#adc6ff","geekblue-4":"#85a5ff","geekblue-5":"#597ef7","geekblue-6":"#2f54eb","geekblue-7":"#1d39c4","geekblue-8":"#10239e","geekblue-9":"#061178","geekblue-10":"#030852","gold-1":"#fffbe6","gold-2":"#fff1b8","gold-3":"#ffe58f","gold-4":"#ffd666","gold-5":"#ffc53d","gold-6":"#faad14","gold-7":"#d48806","gold-8":"#ad6800","gold-9":"#874d00","gold-10":"#613400","lime-1":"#fcffe6","lime-2":"#f4ffb8","lime-3":"#eaff8f","lime-4":"#d3f261","lime-5":"#bae637","lime-6":"#a0d911","lime-7":"#7cb305","lime-8":"#5b8c00","lime-9":"#3f6600","lime-10":"#254000",colorText:"rgba(0, 0, 0, 0.88)",colorTextSecondary:"rgba(0, 0, 0, 0.65)",colorTextTertiary:"rgba(0, 0, 0, 0.45)",colorTextQuaternary:"rgba(0, 0, 0, 0.25)",colorFill:"rgba(0, 0, 0, 0.15)",colorFillSecondary:"rgba(0, 0, 0, 0.06)",colorFillTertiary:"rgba(0, 0, 0, 0.04)",colorFillQuaternary:"rgba(0, 0, 0, 0.02)",colorBgLayout:"hsl(220,23%,97%)",colorBgContainer:"#ffffff",colorBgElevated:"#ffffff",colorBgSpotlight:"rgba(0, 0, 0, 0.85)",colorBorder:"#d9d9d9",colorBorderSecondary:"#f0f0f0",colorPrimaryBg:"#e6f4ff",colorPrimaryBgHover:"#bae0ff",colorPrimaryBorder:"#91caff",colorPrimaryBorderHover:"#69b1ff",colorPrimaryHover:"#4096ff",colorPrimaryActive:"#0958d9",colorPrimaryTextHover:"#4096ff",colorPrimaryText:"#1677ff",colorPrimaryTextActive:"#0958d9",colorSuccessBg:"#f6ffed",colorSuccessBgHover:"#d9f7be",colorSuccessBorder:"#b7eb8f",colorSuccessBorderHover:"#95de64",colorSuccessHover:"#95de64",colorSuccessActive:"#389e0d",colorSuccessTextHover:"#73d13d",colorSuccessText:"#52c41a",colorSuccessTextActive:"#389e0d",colorErrorBg:"#fff2f0",colorErrorBgHover:"#fff1f0",colorErrorBorder:"#ffccc7",colorErrorBorderHover:"#ffa39e",colorErrorHover:"#ffa39e",colorErrorActive:"#d9363e",colorErrorTextHover:"#ff7875",colorErrorText:"#ff4d4f",colorErrorTextActive:"#d9363e",colorWarningBg:"#fffbe6",colorWarningBgHover:"#fff1b8",colorWarningBorder:"#ffe58f",colorWarningBorderHover:"#ffd666",colorWarningHover:"#ffd666",colorWarningActive:"#d48806",colorWarningTextHover:"#ffc53d",colorWarningText:"#faad14",colorWarningTextActive:"#d48806",colorInfoBg:"#e6f4ff",colorInfoBgHover:"#bae0ff",colorInfoBorder:"#91caff",colorInfoBorderHover:"#69b1ff",colorInfoHover:"#69b1ff",colorInfoActive:"#0958d9",colorInfoTextHover:"#4096ff",colorInfoText:"#1677ff",colorInfoTextActive:"#0958d9",colorBgMask:"rgba(0, 0, 0, 0.45)",colorWhite:"#fff",sizeXXL:48,sizeXL:32,sizeLG:24,sizeMD:20,sizeMS:16,size:16,sizeSM:12,sizeXS:8,sizeXXS:4,controlHeightSM:24,controlHeightXS:16,controlHeightLG:40,motionDurationFast:"0.1s",motionDurationMid:"0.2s",motionDurationSlow:"0.3s",fontSizes:[12,14,16,20,24,30,38,46,56,68],lineHeights:[1.6666666666666667,1.5714285714285714,1.5,1.4,1.3333333333333333,1.2666666666666666,1.2105263157894737,1.173913043478261,1.1428571428571428,1.1176470588235294],lineWidthBold:2,borderRadiusXS:1,borderRadiusSM:4,borderRadiusLG:8,borderRadiusOuter:4,colorLink:"#1677ff",colorLinkHover:"#69b1ff",colorLinkActive:"#0958d9",colorFillContent:"rgba(0, 0, 0, 0.06)",colorFillContentHover:"rgba(0, 0, 0, 0.15)",colorFillAlter:"rgba(0, 0, 0, 0.02)",colorBgContainerDisabled:"rgba(0, 0, 0, 0.04)",colorBorderBg:"#ffffff",colorSplit:"rgba(5, 5, 5, 0.06)",colorTextPlaceholder:"rgba(0, 0, 0, 0.25)",colorTextDisabled:"rgba(0, 0, 0, 0.25)",colorTextHeading:"rgba(0, 0, 0, 0.88)",colorTextLabel:"rgba(0, 0, 0, 0.65)",colorTextDescription:"rgba(0, 0, 0, 0.45)",colorTextLightSolid:"#fff",colorHighlight:"#ff7875",colorBgTextHover:"rgba(0, 0, 0, 0.06)",colorBgTextActive:"rgba(0, 0, 0, 0.15)",colorIcon:"rgba(0, 0, 0, 0.45)",colorIconHover:"rgba(0, 0, 0, 0.88)",colorErrorOutline:"rgba(255, 38, 5, 0.06)",colorWarningOutline:"rgba(255, 215, 5, 0.1)",fontSizeSM:12,fontSizeLG:16,fontSizeXL:20,fontSizeHeading1:38,fontSizeHeading2:30,fontSizeHeading3:24,fontSizeHeading4:20,fontSizeHeading5:16,fontSizeIcon:12,lineHeight:1.5714285714285714,lineHeightLG:1.5,lineHeightSM:1.6666666666666667,lineHeightHeading1:1.2105263157894737,lineHeightHeading2:1.2666666666666666,lineHeightHeading3:1.3333333333333333,lineHeightHeading4:1.4,lineHeightHeading5:1.5,controlOutlineWidth:2,controlInteractiveSize:16,controlItemBgHover:"rgba(0, 0, 0, 0.04)",controlItemBgActive:"#e6f4ff",controlItemBgActiveHover:"#bae0ff",controlItemBgActiveDisabled:"rgba(0, 0, 0, 0.15)",controlTmpOutline:"rgba(0, 0, 0, 0.02)",controlOutline:"rgba(5, 145, 255, 0.1)",fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:4,paddingXS:8,paddingSM:12,padding:16,paddingMD:20,paddingLG:24,paddingXL:32,paddingContentHorizontalLG:24,paddingContentVerticalLG:16,paddingContentHorizontal:16,paddingContentVertical:12,paddingContentHorizontalSM:16,paddingContentVerticalSM:8,marginXXS:4,marginXS:8,marginSM:12,margin:16,marginMD:20,marginLG:24,marginXL:32,marginXXL:48,boxShadow:"0 1px 2px 0 rgba(0, 0, 0, 0.03),0 1px 6px -1px rgba(0, 0, 0, 0.02),0 2px 4px 0 rgba(0, 0, 0, 0.02)",boxShadowSecondary:"0 6px 16px 0 rgba(0, 0, 0, 0.08),0 3px 6px -4px rgba(0, 0, 0, 0.12),0 9px 28px 8px rgba(0, 0, 0, 0.05)",screenXS:480,screenXSMin:480,screenXSMax:479,screenSM:576,screenSMMin:576,screenSMMax:575,screenMD:768,screenMDMin:768,screenMDMax:767,screenLG:992,screenLGMin:992,screenLGMax:991,screenXL:1200,screenXLMin:1200,screenXLMax:1199,screenXXL:1600,screenXXLMin:1600,screenXXLMax:1599,boxShadowPopoverArrow:"3px 3px 7px rgba(0, 0, 0, 0.1)",boxShadowCard:"0 1px 2px -2px rgba(0, 0, 0, 0.16),0 3px 6px 0 rgba(0, 0, 0, 0.12),0 5px 12px 4px rgba(0, 0, 0, 0.09)",boxShadowDrawerRight:"-6px 0 16px 0 rgba(0, 0, 0, 0.08),-3px 0 6px -4px rgba(0, 0, 0, 0.12),-9px 0 28px 8px rgba(0, 0, 0, 0.05)",boxShadowDrawerLeft:"6px 0 16px 0 rgba(0, 0, 0, 0.08),3px 0 6px -4px rgba(0, 0, 0, 0.12),9px 0 28px 8px rgba(0, 0, 0, 0.05)",boxShadowDrawerUp:"0 6px 16px 0 rgba(0, 0, 0, 0.08),0 3px 6px -4px rgba(0, 0, 0, 0.12),0 9px 28px 8px rgba(0, 0, 0, 0.05)",boxShadowDrawerDown:"0 -6px 16px 0 rgba(0, 0, 0, 0.08),0 -3px 6px -4px rgba(0, 0, 0, 0.12),0 -9px 28px 8px rgba(0, 0, 0, 0.05)",boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)",_tokenKey:"19w80ff",_hashId:"css-dev-only-do-not-override-i2zu9q"}),a1=function(e){for(var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=3735928559^n,o=1103547991^n,i=0;i<e.length;i++)t=e.charCodeAt(i),r=Math.imul(r^t,2654435761),o=Math.imul(o^t,1597334677);return r=Math.imul(r^r>>>16,2246822507)^Math.imul(o^o>>>13,3266489909),4294967296*(2097151&(o=Math.imul(o^o>>>16,2246822507)^Math.imul(r^r>>>13,3266489909)))+(r>>>0)},l1=dn((function(e){return e})),c1={theme:l1,token:O(O({},i1),null===n0||void 0===n0||null===(J0=n0.defaultAlgorithm)||void 0===J0?void 0:J0.call(n0,null===n0||void 0===n0?void 0:n0.defaultSeed)),hashId:"pro-".concat(a1(JSON.stringify(i1)))},s1=function(){return c1},u1=(n(8936),r.createContext({intl:O(O({},r1),{},{locale:"default"}),valueTypeMap:{},theme:l1,hashed:!0,dark:!1,token:i1}));u1.Consumer;u1.displayName="ProProvider";var d1=u1;var f1=("undefined"!==typeof n0&&n0?n0:t).useToken,p1=function(e){return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none"}},h1=function(e){return{color:e.colorLink,outline:"none",cursor:"pointer",transition:"color ".concat(e.motionDurationSlow),"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}};var g1=function(e){var t;return w({},e.componentCls,O(O({},null===p1||void 0===p1?void 0:p1(e)),{},w(w(w(w(w(w(w(w({position:"relative",backgroundColor:e.colorWhite,paddingBlock:e.pageHeaderPaddingVertical+2,paddingInline:e.pageHeaderPadding,"&&-ghost":{backgroundColor:e.pageHeaderBgGhost},"&-no-children":{height:null===(t=e.layout)||void 0===t||null===(t=t.pageContainer)||void 0===t?void 0:t.paddingBlockPageContainerContent},"&&-has-breadcrumb":{paddingBlockStart:e.pageHeaderPaddingBreadCrumb},"&&-has-footer":{paddingBlockEnd:0},"& &-back":w({marginInlineEnd:e.margin,fontSize:16,lineHeight:1,"&-button":O(O({fontSize:16},null===h1||void 0===h1?void 0:h1(e)),{},{color:e.pageHeaderColorBack,cursor:"pointer"})},"".concat(e.componentCls,"-rlt &"),{float:"right",marginInlineEnd:0,marginInlineStart:0})},"& ".concat("ant","-divider-vertical"),{height:14,marginBlock:0,marginInline:e.marginSM,verticalAlign:"middle"}),"& &-breadcrumb + &-heading",{marginBlockStart:e.marginXS}),"& &-heading",{display:"flex",justifyContent:"space-between","&-left":{display:"flex",alignItems:"center",marginBlock:e.marginXS/2,marginInlineEnd:0,marginInlineStart:0,overflow:"hidden"},"&-title":O(O({marginInlineEnd:e.marginSM,marginBlockEnd:0,color:e.colorTextHeading,fontWeight:600,fontSize:e.pageHeaderFontSizeHeaderTitle,lineHeight:e.controlHeight+"px"},{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}),{},w({},"".concat(e.componentCls,"-rlt &"),{marginInlineEnd:0,marginInlineStart:e.marginSM})),"&-avatar":w({marginInlineEnd:e.marginSM},"".concat(e.componentCls,"-rlt &"),{float:"right",marginInlineEnd:0,marginInlineStart:e.marginSM}),"&-tags":w({},"".concat(e.componentCls,"-rlt &"),{float:"right"}),"&-sub-title":O(O({marginInlineEnd:e.marginSM,color:e.colorTextSecondary,fontSize:e.pageHeaderFontSizeHeaderSubTitle,lineHeight:e.lineHeight},{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}),{},w({},"".concat(e.componentCls,"-rlt &"),{float:"right",marginInlineEnd:0,marginInlineStart:12})),"&-extra":w(w({marginBlock:e.marginXS/2,marginInlineEnd:0,marginInlineStart:0,whiteSpace:"nowrap","> *":w({"white-space":"unset"},"".concat(e.componentCls,"-rlt &"),{marginInlineEnd:e.marginSM,marginInlineStart:0})},"".concat(e.componentCls,"-rlt &"),{float:"left"}),"*:first-child",w({},"".concat(e.componentCls,"-rlt &"),{marginInlineEnd:0}))}),"&-content",{paddingBlockStart:e.pageHeaderPaddingContentPadding}),"&-footer",{marginBlockStart:e.margin}),"&-compact &-heading",{flexWrap:"wrap"}),"&-wide",{maxWidth:1152,margin:"0 auto"}),"&-rtl",{direction:"rtl"})))};function v1(e){return function(e,t){var n,o=(0,r.useContext)(d1).token,i=void 0===o?{}:o,a=(0,r.useContext)(d1).hashed,l=f1(),c=l.token,s=l.hashId,u=(0,r.useContext)(d1).theme,d=(0,r.useContext)(s_.ConfigContext).getPrefixCls;return i.layout||(i=O({},c)),i.proComponentsCls=null!==(n=i.proComponentsCls)&&void 0!==n?n:".".concat(d("pro")),i.antCls=".".concat(d()),{wrapSSR:zr({theme:u,token:i,path:[e]},(function(){return t(i)})),hashId:a?s:""}}("ProLayoutPageHeader",(function(t){var n=O(O({},t),{},{componentCls:".".concat(e),pageHeaderBgGhost:"transparent",pageHeaderPadding:16,pageHeaderPaddingVertical:4,pageHeaderPaddingBreadCrumb:t.paddingSM,pageHeaderColorBack:t.colorTextHeading,pageHeaderFontSizeHeaderTitle:t.fontSizeHeading4,pageHeaderFontSizeHeaderSubTitle:14,pageHeaderPaddingContentPadding:t.paddingSM});return[g1(n)]}))}var m1=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"ltr",r=arguments.length>3?arguments[3]:void 0,o=t.title,i=t.avatar,a=t.subTitle,l=t.tags,s=t.extra,u=t.onBack,d="".concat(e,"-heading"),f=o||a||l||s;if(!f)return null;var p=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ltr";return void 0!==e.backIcon?e.backIcon:"rtl"===t?(0,uK.jsx)(dJ(),{}):(0,uK.jsx)(sJ(),{})}(t,n),h=function(e,t,n,r){return n&&r?(0,uK.jsx)("div",{className:"".concat(e,"-back ").concat(t).trim(),children:(0,uK.jsx)("div",{role:"button",onClick:function(e){null===r||void 0===r||r(e)},className:"".concat(e,"-back-button ").concat(t).trim(),"aria-label":"back",children:n})}):null}(e,r,p,u),g=h||i||f;return(0,uK.jsxs)("div",{className:d+" "+r,children:[g&&(0,uK.jsxs)("div",{className:"".concat(d,"-left ").concat(r).trim(),children:[h,i&&(0,uK.jsx)(qJ,O({className:c()("".concat(d,"-avatar"),r,i.className)},i)),o&&(0,uK.jsx)("span",{className:"".concat(d,"-title ").concat(r).trim(),title:"string"===typeof o?o:void 0,children:o}),a&&(0,uK.jsx)("span",{className:"".concat(d,"-sub-title ").concat(r).trim(),title:"string"===typeof a?a:void 0,children:a}),l&&(0,uK.jsx)("span",{className:"".concat(d,"-tags ").concat(r).trim(),children:l})]}),s&&(0,uK.jsx)("span",{className:"".concat(d,"-extra ").concat(r).trim(),children:(0,uK.jsx)(PR,{children:s})})]})},y1=function e(t){return null===t||void 0===t?void 0:t.map((function(t){var n;return Y(!!t.breadcrumbName,"Route.breadcrumbName is deprecated, please use Route.title instead."),O(O({},t),{},{breadcrumbName:void 0,children:void 0,title:t.title||t.breadcrumbName},null!==(n=t.children)&&void 0!==n&&n.length?{menu:{items:e(t.children)}}:{})}))},b1=function(e){var t,n=gt(r.useState(!1),2),o=n[0],i=n[1],a=r.useContext(s_.ConfigContext),l=a.getPrefixCls,s=a.direction,u=e.prefixCls,d=e.style,f=e.footer,p=e.children,h=e.breadcrumb,g=e.breadcrumbRender,v=e.className,m=e.contentWidth,y=e.layout,b=e.ghost,x=void 0===b||b,S=l("page-header",u),_=v1(S),C=_.wrapSSR,E=_.hashId,P=(!h||null!==h&&void 0!==h&&h.items||null===h||void 0===h||!h.routes||(Y(!1,"The routes of Breadcrumb is deprecated, please use items instead."),h.items=y1(h.routes)),null!==h&&void 0!==h&&h.items?function(e,t){var n;return null!==(n=e.items)&&void 0!==n&&n.length?(0,uK.jsx)(EJ,O(O({},e),{},{className:c()("".concat(t,"-breadcrumb"),e.className)})):null}(h,S):null),M=h&&"props"in h,k=null!==(t=null===g||void 0===g?void 0:g(O(O({},e),{},{prefixCls:S}),P))&&void 0!==t?t:P,A=M?h:k,I=c()(S,E,v,w(w(w(w(w(w({},"".concat(S,"-has-breadcrumb"),!!A),"".concat(S,"-has-footer"),!!f),"".concat(S,"-rtl"),"rtl"===s),"".concat(S,"-compact"),o),"".concat(S,"-wide"),"Fixed"===m&&"top"==y),"".concat(S,"-ghost"),x)),T=m1(S,e,s,E),j=p&&function(e,t,n){return(0,uK.jsx)("div",{className:"".concat(e,"-content ").concat(n).trim(),children:t})}(S,p,E),L=function(e,t,n){return t?(0,uK.jsx)("div",{className:"".concat(e,"-footer ").concat(n).trim(),children:t}):null}(S,f,E);return A||T||L||j?C((0,uK.jsx)(qh,{onResize:function(e){var t=e.width;return i(t<768)},children:(0,uK.jsxs)("div",{className:I,style:d,children:[A,T,j,L]})})):(0,uK.jsx)("div",{className:c()(E,["".concat(S,"-no-children")])})};var x1=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};function w1(e){let{suffixCls:t,tagName:n,displayName:o}=e;return e=>r.forwardRef(((o,i)=>r.createElement(e,Object.assign({ref:i,suffixCls:t,tagName:n},o))))}const S1=r.forwardRef(((e,t)=>{const{prefixCls:n,suffixCls:o,className:i,tagName:a}=e,l=x1(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:s}=r.useContext(f),u=s("layout",n),[d,p,h]=PL(u),g=o?"".concat(u,"-").concat(o):u;return d(r.createElement(a,Object.assign({className:c()(n||g,i,p,h),ref:t},l)))})),O1=r.forwardRef(((e,t)=>{const{direction:n}=r.useContext(f),[o,i]=r.useState([]),{prefixCls:a,className:l,rootClassName:s,children:u,hasSider:d,tagName:p,style:h}=e,g=hu(x1(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),["suffixCls"]),{getPrefixCls:v,layout:m}=r.useContext(f),y=v("layout",a),b=function(e,t,n){return"boolean"===typeof n?n:!!e.length||Tc(t).some((e=>e.type===RL))}(o,u,d),[x,w,S]=PL(y),O=c()(y,{["".concat(y,"-has-sider")]:b,["".concat(y,"-rtl")]:"rtl"===n},null===m||void 0===m?void 0:m.className,l,s,w,S),_=r.useMemo((()=>({siderHook:{addSider:e=>{i((t=>[].concat(Ds(t),[e])))},removeSider:e=>{i((t=>t.filter((t=>t!==e))))}}})),[]);return x(r.createElement(OL.Provider,{value:_},r.createElement(p,Object.assign({ref:t,className:O,style:Object.assign(Object.assign({},null===m||void 0===m?void 0:m.style),h)},g),u)))})),_1=w1({tagName:"div",displayName:"Layout"})(O1),C1=w1({suffixCls:"header",tagName:"header",displayName:"Header"})(S1),E1=w1({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(S1),P1=w1({suffixCls:"content",tagName:"main",displayName:"Content"})(S1),M1=_1;M1.Header=C1,M1.Footer=E1,M1.Content=P1,M1.Sider=RL,M1._InternalSiderContext=TL;const k1=M1;n(6484);var A1=n(4199),I1=n.n(A1);const T1=e=>I1()("genshin"+e).toString(),{Content:j1}=k1,{Text:L1}=gb;DU().locale("zh-cn");class R1 extends r.Component{getChildContext(){return{encrypt:T1,onRef:this.onRef}}constructor(){super(...arguments),this.state={results:[],anniversaries:[],loading:{page:!0,users:!1,search:!1,posts:!1,virus:!1,income:!1},spin:!1,contentHeight:null,link:"",drawer:{users:null,search:null,posts:null,virus:null,income:null},pagination:{}},this.updateSize=()=>{let e=window.innerHeight;e=window.innerWidth>576?e-80:e-64,this.setState({contentHeight:e})},this.handleTableChange=e=>{const t=this.state.pagination;t.current=e.current,t.pageSize=e.pageSize,window.localStorage.setItem("pageSize",e.pageSize),this.setState({pagination:t,spin:!0}),iK.get("https://api.drjchn.com/api/v2/tieba/users",{params:{page:t.current,pageSize:t.pageSize,token:T1(t.current)}}).then((e=>{t.total=e.data.total,this.setState({pagination:t,results:e.data.users,spin:!1})})).catch((e=>{console.log(e),this.setState({spin:!1}),fM.error("\u52a0\u8f7d\u5931\u8d25")}))},this.onRef=(e,t)=>{const n=this.state.drawer;n[t]=e,this.setState({drawer:n})};const e={...this.state.loading},t=window.localStorage.getItem("pageSize")||10;iK.get("https://api.drjchn.com/api/v2/tieba/anniversary").then((e=>{let t=e.data.anniversaries.reverse();this.setState({anniversaries:t})})),iK.get("https://api.drjchn.com/api/v2/tieba/events").then((e=>{let t=e.data.days;this.setState({days:t})})),iK.get("https://api.drjchn.com/api/v2/tieba/users",{params:{page:1,pageSize:t,token:T1("1")}}).then((n=>{e.page=!1;const{pagination:r}=this.state;r.current=1,r.total=n.data.total,r.showQuickJumper=!0,r.size="small",r.showSizeChanger=!0,r.pageSizeOptions=["10","20"],r.pageSize=t,this.setState({loading:e,pagination:r,results:n.data.users})})).catch((t=>{console.log(t),e.page=!1,this.setState({loading:e}),fM.error("\u9875\u9762\u52a0\u8f7d\u5931\u8d25")}))}componentDidMount(){this.updateSize(),window.addEventListener("resize",(()=>this.updateSize()))}componentWillUnmount(){window.removeEventListener("resize",(()=>this.updateSize()))}render(){const{results:e,loading:t,contentHeight:n,spin:r,pagination:o}=this.state,i=[{title:"\u6392\u540d",dataIndex:"rank"},{title:"\u5427\u53cb",dataIndex:"name",render:(e,t)=>(0,uK.jsx)(lh,{type:"text",onClick:()=>{const n={...this.state.loading};n.search=!0,this.setState({spin:!0,loading:n}),iK.post("https://api.drjchn.com/api/v2/tieba/user",{link:t.link,token:T1(t.link)}).then((r=>{n.search=!1,this.setState({link:r.data.user.avatar,spin:!1,loading:n},(()=>{const n=r.data.user.nickname,o=t.member?'<span><i aria-label="icon: crown" class="anticon anticon-crown" style="color: rgb(255, 197, 61);"><svg viewBox="64 64 896 896" focusable="false" class="" data-icon="crown" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M899.6 276.5L705 396.4 518.4 147.5a8.06 8.06 0 0 0-12.9 0L319 396.4 124.3 276.5c-5.7-3.5-13.1 1.2-12.2 7.9L188.5 865c1.1 7.9 7.9 14 16 14h615.1c8 0 14.9-6 15.9-14l76.4-580.6c.8-6.7-6.5-11.4-12.3-7.9zM512 734.2c-62.1 0-112.6-50.5-112.6-112.6S449.9 509 512 509s112.6 50.5 112.6 112.6S574.1 734.2 512 734.2zm0-160.9c-26.6 0-48.2 21.6-48.2 48.3 0 26.6 21.6 48.3 48.2 48.3s48.2-21.6 48.2-48.3c0-26.6-21.6-48.3-48.2-48.3z"></path></svg></i> <span style="color: #f5222d">'+n+"</span></span>":n;lK().fire({imageUrl:this.state.link,title:o,text:e})}))})).catch((e=>{console.log(e),n.search=!1,fM.error("\u8be5\u7528\u6237\u4e0d\u5b58\u5728"),this.setState({spin:!1,loading:n})}))},children:t.member?(0,uK.jsxs)("span",{children:[(0,uK.jsx)(LU,{style:{color:"#ffc53d"}})," ",(0,uK.jsx)(L1,{type:"danger",children:t.nickname?t.nickname:e})]}):t.nickname?t.nickname:e})},{title:"\u7b49\u7ea7",dataIndex:"level"},{title:"\u7ecf\u9a8c\u503c",dataIndex:"exp"}];return(0,uK.jsxs)(k1,{children:[(0,uK.jsx)(b1,{avatar:{src:a},title:"\u539f\u795e\u5427\u6392\u884c\u699c"}),(0,uK.jsx)(k1,{children:(0,uK.jsxs)(j1,{style:{padding:24,overflowX:"hidden",maxHeight:n,zIndex:100},children:[(0,uK.jsx)(RZ,{changeLoading:e=>{const t=this.state.loading;t.users=e,this.setState({loading:t})}}),(0,uK.jsx)(vK,{days:this.state.days,anniversaries:this.state.anniversaries}),(0,uK.jsx)(kQ,{changeLoading:e=>{const t=this.state.loading;t.virus=e,this.setState({loading:t})}}),(0,uK.jsx)(JZ,{changeLoading:e=>{const t=this.state.loading;t.posts=e,this.setState({loading:t})}}),(0,uK.jsx)(lJ,{changeLoading:e=>{const t=this.state.loading;t.income=e,this.setState({loading:t})}}),(0,uK.jsxs)(LE,{active:!0,loading:t.page,children:[(0,uK.jsxs)(BK,{children:[(0,uK.jsx)(lh,{type:"primary",style:{marginRight:20},onClick:()=>this.state.drawer.search?this.state.drawer.search.setState({visible:!0}):()=>{},children:"\u641c\u7d22"}),(0,uK.jsx)(lh,{loading:t.posts,onClick:this.state.drawer.posts?this.state.drawer.posts.getPostData:()=>{},style:{marginRight:20},children:"\u53d1\u5e16\u7edf\u8ba1"})]}),(0,uK.jsx)(cN,{tip:"\u52a0\u8f7d\u4e2d...",spinning:r,indicator:(0,uK.jsx)(tp,{}),children:(0,uK.jsx)(IB,{dataSource:e,columns:i,rowKey:"rank",pagination:o,onChange:this.handleTableChange,size:10===o.pageSize?"medium":"small",style:{background:"#fff",marginTop:20}})})]})]})})]})}}R1.childContextTypes={encrypt:sK().func,onRef:sK().func};const D1=R1;Boolean("localhost"===window.location.hostname||"[::1]"===window.location.hostname||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/));(0,i.H)(document.getElementById("root")).render((0,uK.jsx)(D1,{})),"serviceWorker"in navigator&&navigator.serviceWorker.ready.then((e=>{e.unregister()}))})()})();
//# sourceMappingURL=main.58a44dca.js.map