@xfers/design-system 5.0.0-dev.6d501f8a49 → 5.0.0-dev.7624cd9986

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/cjs/StraitsXDecoVertical-70fd7a91.js +2 -0
  2. package/cjs/StraitsXDecoVertical-70fd7a91.js.map +1 -0
  3. package/cjs/StraitsXPersonalAccountLightLogo-44c49e48.js +2 -0
  4. package/cjs/StraitsXPersonalAccountLightLogo-44c49e48.js.map +1 -0
  5. package/cjs/icons.js +1 -1
  6. package/cjs/icons.js.map +1 -1
  7. package/cjs/index.js +4 -20
  8. package/cjs/index.js.map +1 -1
  9. package/cjs/logos.js +1 -1
  10. package/dist/components/DatePicker/index.js +2 -2
  11. package/dist/components/DatePicker/index.js.map +1 -1
  12. package/dist/components/Form/index.js +1 -1
  13. package/dist/components/Form/index.js.map +1 -1
  14. package/dist/components/Input/index.js +0 -1
  15. package/dist/components/Input/index.js.map +1 -1
  16. package/dist/components/Input/inputStyles.js +2 -2
  17. package/dist/components/Input/inputStyles.js.map +1 -1
  18. package/dist/components/RangePicker/index.js +2 -2
  19. package/dist/components/RangePicker/index.js.map +1 -1
  20. package/dist/components/Select/helpers.js +2 -2
  21. package/dist/components/Select/helpers.js.map +1 -1
  22. package/dist/components/Select/index.js +1 -1
  23. package/dist/components/Select/index.js.map +1 -1
  24. package/dist/components/Select/style.js +10 -6
  25. package/dist/components/Select/style.js.map +1 -1
  26. package/dist/icons/Coins.js +23 -0
  27. package/dist/icons/Coins.js.map +1 -0
  28. package/dist/icons/StraitsXDecoVertical.js +25 -0
  29. package/dist/icons/StraitsXDecoVertical.js.map +1 -0
  30. package/dist/icons/SwitchAccount.js +20 -0
  31. package/dist/icons/SwitchAccount.js.map +1 -0
  32. package/dist/icons/index.js +8 -2
  33. package/dist/icons/index.js.map +1 -1
  34. package/dist/logos/Base.js +5 -2
  35. package/dist/logos/Base.js.map +1 -1
  36. package/dist/shared/momentDatePicker.js +9 -0
  37. package/dist/shared/momentDatePicker.js.map +1 -0
  38. package/dist/types/components/RangePicker/index.d.ts +2 -1
  39. package/dist/types/components/Select/style.d.ts +1 -0
  40. package/dist/types/icons/Coins.d.ts +3 -0
  41. package/dist/types/icons/StraitsXDecoVertical.d.ts +3 -0
  42. package/dist/types/icons/SwitchAccount.d.ts +3 -0
  43. package/dist/types/icons/index.d.ts +3 -0
  44. package/dist/types/shared/momentDatePicker.d.ts +34 -0
  45. package/es/StraitsXDecoVertical-0243d5ce.js +2 -0
  46. package/es/StraitsXDecoVertical-0243d5ce.js.map +1 -0
  47. package/es/{StraitsXPersonalAccountLightLogo-2319d5c0.js → StraitsXPersonalAccountLightLogo-17fc73c1.js} +2 -2
  48. package/es/{StraitsXPersonalAccountLightLogo-2319d5c0.js.map → StraitsXPersonalAccountLightLogo-17fc73c1.js.map} +1 -1
  49. package/es/icons.js +1 -1
  50. package/es/icons.js.map +1 -1
  51. package/es/index.js +4 -20
  52. package/es/index.js.map +1 -1
  53. package/es/logos.js +1 -1
  54. package/package.json +1 -1
  55. package/cjs/MintSetupWallet-000e4d82.js +0 -2
  56. package/cjs/MintSetupWallet-000e4d82.js.map +0 -1
  57. package/cjs/StraitsXPersonalAccountLightLogo-042665bf.js +0 -2
  58. package/cjs/StraitsXPersonalAccountLightLogo-042665bf.js.map +0 -1
  59. package/es/MintSetupWallet-16164339.js +0 -2
  60. package/es/MintSetupWallet-16164339.js.map +0 -1
package/cjs/index.js CHANGED
@@ -1,38 +1,22 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("antd"),n=require("./MintSetupWallet-000e4d82.js"),r=require("./_tslib-33b9f00a.js"),o=require("react-dom"),i=require("./StraitsXPersonalAccountLightLogo-042665bf.js");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function s(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}var l=a(e),c=s(e),u=a(o);var d=function(){function e(e){this.isSpeedy=void 0===e.speedy?"production"===process.env.NODE_ENV:e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.before=null}var t=e.prototype;return t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t,n=function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t}(this);t=0===this.tags.length?this.before:this.tags[this.tags.length-1].nextSibling,this.container.insertBefore(n,t),this.tags.push(n)}var r=this.tags[this.tags.length-1];if(this.isSpeedy){var o=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(r);try{var i=105===e.charCodeAt(1)&&64===e.charCodeAt(0);o.insertRule(e,i?0:o.cssRules.length)}catch(t){"production"!==process.env.NODE_ENV&&console.warn('There was a problem inserting the following rule: "'+e+'"',t)}}else r.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){return e.parentNode.removeChild(e)}),this.tags=[],this.ctr=0},e}();function p(e){function t(e,r,l,c,p){for(var h,f,m,g,x,_=0,S=0,E=0,k=0,O=0,R=0,D=m=h=0,F=0,L=0,j=0,z=0,B=l.length,H=B-1,V="",$="",W="",U="";F<B;){if(f=l.charCodeAt(F),F===H&&0!==S+k+E+_&&(0!==S&&(f=47===S?10:47),k=E=_=0,B++,H++),0===S+k+E+_){if(F===H&&(0<L&&(V=V.replace(d,"")),0<V.trim().length)){switch(f){case 32:case 9:case 59:case 13:case 10:break;default:V+=l.charAt(F)}f=59}switch(f){case 123:for(h=(V=V.trim()).charCodeAt(0),m=1,z=++F;F<B;){switch(f=l.charCodeAt(F)){case 123:m++;break;case 125:m--;break;case 47:switch(f=l.charCodeAt(F+1)){case 42:case 47:e:{for(D=F+1;D<H;++D)switch(l.charCodeAt(D)){case 47:if(42===f&&42===l.charCodeAt(D-1)&&F+2!==D){F=D+1;break e}break;case 10:if(47===f){F=D+1;break e}}F=D}}break;case 91:f++;case 40:f++;case 34:case 39:for(;F++<H&&l.charCodeAt(F)!==f;);}if(0===m)break;F++}if(m=l.substring(z,F),0===h&&(h=(V=V.replace(u,"").trim()).charCodeAt(0)),64===h){switch(0<L&&(V=V.replace(d,"")),f=V.charCodeAt(1)){case 100:case 109:case 115:case 45:L=r;break;default:L=P}if(z=(m=t(r,L,m,f,p+1)).length,0<N&&(x=s(3,m,L=n(P,V,j),r,M,C,z,f,p,c),V=L.join(""),void 0!==x&&0===(z=(m=x.trim()).length)&&(f=0,m="")),0<z)switch(f){case 115:V=V.replace(w,a);case 100:case 109:case 45:m=V+"{"+m+"}";break;case 107:m=(V=V.replace(v,"$1 $2"))+"{"+m+"}",m=1===A||2===A&&i("@"+m,3)?"@-webkit-"+m+"@"+m:"@"+m;break;default:m=V+m,112===c&&($+=m,m="")}else m=""}else m=t(r,n(r,V,j),m,c,p+1);W+=m,m=j=L=D=h=0,V="",f=l.charCodeAt(++F);break;case 125:case 59:if(1<(z=(V=(0<L?V.replace(d,""):V).trim()).length))switch(0===D&&(h=V.charCodeAt(0),45===h||96<h&&123>h)&&(z=(V=V.replace(" ",":")).length),0<N&&void 0!==(x=s(1,V,r,e,M,C,$.length,c,p,c))&&0===(z=(V=x.trim()).length)&&(V="\0\0"),h=V.charCodeAt(0),f=V.charCodeAt(1),h){case 0:break;case 64:if(105===f||99===f){U+=V+l.charAt(F);break}default:58!==V.charCodeAt(z-1)&&($+=o(V,h,f,V.charCodeAt(2)))}j=L=D=h=0,V="",f=l.charCodeAt(++F)}}switch(f){case 13:case 10:47===S?S=0:0===1+h&&107!==c&&0<V.length&&(L=1,V+="\0"),0<N*I&&s(0,V,r,e,M,C,$.length,c,p,c),C=1,M++;break;case 59:case 125:if(0===S+k+E+_){C++;break}default:switch(C++,g=l.charAt(F),f){case 9:case 32:if(0===k+_+S)switch(O){case 44:case 58:case 9:case 32:g="";break;default:32!==f&&(g=" ")}break;case 0:g="\\0";break;case 12:g="\\f";break;case 11:g="\\v";break;case 38:0===k+S+_&&(L=j=1,g="\f"+g);break;case 108:if(0===k+S+_+T&&0<D)switch(F-D){case 2:112===O&&58===l.charCodeAt(F-3)&&(T=O);case 8:111===R&&(T=R)}break;case 58:0===k+S+_&&(D=F);break;case 44:0===S+E+k+_&&(L=1,g+="\r");break;case 34:case 39:0===S&&(k=k===f?0:0===k?f:k);break;case 91:0===k+S+E&&_++;break;case 93:0===k+S+E&&_--;break;case 41:0===k+S+_&&E--;break;case 40:if(0===k+S+_){if(0===h)if(2*O+3*R==533);else h=1;E++}break;case 64:0===S+E+k+_+D+m&&(m=1);break;case 42:case 47:if(!(0<k+_+E))switch(S){case 0:switch(2*f+3*l.charCodeAt(F+1)){case 235:S=47;break;case 220:z=F,S=42}break;case 42:47===f&&42===O&&z+2!==F&&(33===l.charCodeAt(z+2)&&($+=l.substring(z,F+1)),g="",S=0)}}0===S&&(V+=g)}R=O,O=f,F++}if(0<(z=$.length)){if(L=r,0<N&&(void 0!==(x=s(2,$,L,e,M,C,z,c,p,c))&&0===($=x).length))return U+$+W;if($=L.join(",")+"{"+$+"}",0!==A*T){switch(2!==A||i($,2)||(T=0),T){case 111:$=$.replace(y,":-moz-$1")+$;break;case 112:$=$.replace(b,"::-webkit-input-$1")+$.replace(b,"::-moz-$1")+$.replace(b,":-ms-input-$1")+$}T=0}}return U+$+W}function n(e,t,n){var o=t.trim().split(m);t=o;var i=o.length,a=e.length;switch(a){case 0:case 1:var s=0;for(e=0===a?"":e[0]+" ";s<i;++s)t[s]=r(e,t[s],n).trim();break;default:var l=s=0;for(t=[];s<i;++s)for(var c=0;c<a;++c)t[l++]=r(e[c]+" ",o[s],n).trim()}return t}function r(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(g,"$1"+e.trim());case 58:return e.trim()+t.replace(g,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(g,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function o(e,t,n,r){var a=e+";",s=2*t+3*n+4*r;if(944===s){e=a.indexOf(":",9)+1;var l=a.substring(e,a.length-1).trim();return l=a.substring(0,e).trim()+l+";",1===A||2===A&&i(l,1)?"-webkit-"+l+l:l}if(0===A||2===A&&!i(a,1))return a;switch(s){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(O,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(l=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+l+a;case 1005:return h.test(a)?a.replace(p,":-webkit-")+a.replace(p,":-moz-")+a:a;case 1e3:switch(t=(l=a.substring(13).trim()).indexOf("-")+1,l.charCodeAt(0)+l.charCodeAt(t)){case 226:l=a.replace(x,"tb");break;case 232:l=a.replace(x,"tb-rl");break;case 220:l=a.replace(x,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+l+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,s=(l=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|l.charCodeAt(7))){case 203:if(111>l.charCodeAt(8))break;case 115:a=a.replace(l,"-webkit-"+l)+";"+a;break;case 207:case 102:a=a.replace(l,"-webkit-"+(102<s?"inline-":"")+"box")+";"+a.replace(l,"-webkit-"+l)+";"+a.replace(l,"-ms-"+l+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return l=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+l+"-ms-flex-"+l+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(S,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(S,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===k.test(e))return 115===(l=e.substring(e.indexOf(":")+1)).charCodeAt(0)?o(e.replace("stretch","fill-available"),t,n,r).replace(":fill-available",":stretch"):a.replace(l,"-webkit-"+l)+a.replace(l,"-moz-"+l.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===n+r&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(f,"$1-webkit-$2")+a}return a}function i(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),D(2!==t?r:r.replace(E,"$1"),n,t)}function a(e,t){var n=o(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(_," or ($1)").substring(4):"("+t+")"}function s(e,t,n,r,o,i,a,s,l,u){for(var d,p=0,h=t;p<N;++p)switch(d=R[p].call(c,e,h,n,r,o,i,a,s,l,u)){case void 0:case!1:case!0:case null:break;default:h=d}if(h!==t)return h}function l(e){return void 0!==(e=e.prefix)&&(D=null,e?"function"!=typeof e?A=1:(A=2,D=e):A=0),l}function c(e,n){var r=e;if(33>r.charCodeAt(0)&&(r=r.trim()),r=[r],0<N){var o=s(-1,n,r,r,M,C,0,0,0,0);void 0!==o&&"string"==typeof o&&(n=o)}var i=t(P,r,n,0,0);return 0<N&&(void 0!==(o=s(-2,i,r,r,M,C,i.length,0,0,0))&&(i=o)),T=0,C=M=1,i}var u=/^\0+/g,d=/[\0\r\f]/g,p=/: */g,h=/zoo|gra/,f=/([,: ])(transform)/g,m=/,\r+?/g,g=/([\t\r\n ])*\f?&/g,v=/@(k\w+)\s*(\S*)\s*/,b=/::(place)/g,y=/:(read-only)/g,x=/[svh]\w+-[tblr]{2}/,w=/\(\s*(.*)\s*\)/g,_=/([\s\S]*?);/g,S=/-self|flex-/g,E=/[^]*?(:[rp][el]a[\w-]+)[^]*/,k=/stretch|:\s*\w+\-(?:conte|avail)/,O=/([^-])(image-set\()/,C=1,M=1,T=0,A=1,P=[],R=[],N=0,D=null,I=0;return c.use=function e(t){switch(t){case void 0:case null:N=R.length=0;break;default:if("function"==typeof t)R[N++]=t;else if("object"==typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else I=0|!!t}return e},c.set=l,void 0!==e&&l(e),c}var h=function(e){var t=new WeakMap;return function(n){if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}},f="/*|*/",m=f+"}";function g(e){e&&v.current.insert(e+"}")}var v={current:null},b=function(e,t,n,r,o,i,a,s,l,c){switch(e){case 1:switch(t.charCodeAt(0)){case 64:return v.current.insert(t+";"),"";case 108:if(98===t.charCodeAt(2))return""}break;case 2:if(0===s)return t+f;break;case 3:switch(s){case 102:case 112:return v.current.insert(n[0]+t),"";default:return t+(0===c?f:"")}case-2:t.split(m).forEach(g)}},y=function(e,t){if(1===e&&108===t.charCodeAt(0)&&98===t.charCodeAt(2))return""},x="undefined"!=typeof document,w={},_=x?void 0:h(function(){var e=h(function(){return{}}),t={},n={};return function(r){return void 0===r||!0===r?t:!1===r?n:e(r)}}),S=function(e){void 0===e&&(e={});var t,n=e.key||"css";void 0!==e.prefix&&(t={prefix:e.prefix});var r=new p(t);if("production"!==process.env.NODE_ENV&&/[^a-z-]/.test(n))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+n+'" was passed');var o,i,a={};if(x){o=e.container||document.head;var s=document.querySelectorAll("style[data-emotion-"+n+"]");Array.prototype.forEach.call(s,function(e){e.getAttribute("data-emotion-"+n).split(" ").forEach(function(e){a[e]=!0}),e.parentNode!==o&&o.appendChild(e)})}if(x)r.use(e.stylisPlugins)(b),i=function(e,t,n,o){var i=t.name;if(v.current=n,"production"!==process.env.NODE_ENV&&void 0!==t.map){var a=t.map;v.current={insert:function(e){n.insert(e+a)}}}r(e,t.styles),o&&(h.inserted[i]=!0)};else{r.use(y);var l=w;(e.stylisPlugins||void 0!==e.prefix)&&(r.use(e.stylisPlugins),l=_(e.stylisPlugins||w)(e.prefix));i=function(e,t,n,o){var i=t.name,a=function(e,t){var n=t.name;return void 0===l[n]&&(l[n]=r(e,t.styles)),l[n]}(e,t);return void 0===h.compat?(o&&(h.inserted[i]=!0),"development"===process.env.NODE_ENV&&void 0!==t.map?a+t.map:a):o?void(h.inserted[i]=a):a}}if("production"!==process.env.NODE_ENV){var c=/\/\*/g,u=/\*\//g;r.use(function(e,t){if(-1===e){for(;c.test(t);){if(u.lastIndex=c.lastIndex,!u.test(t))throw new Error('Your styles have an unterminated comment ("/*" without corresponding "*/").');c.lastIndex=u.lastIndex}c.lastIndex=0}}),r.use(function(e,t,n){if(-1===e){var r=t.match(/(:first|:nth|:nth-last)-child/g);r&&!0!==h.compat&&r.forEach(function(e){var n=new RegExp(e+".*\\/\\* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason \\*\\/").test(t);e&&!n&&console.error('The pseudo class "'+e+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+e.split("-child")[0]+'-of-type".')})}})}var h={key:n,sheet:new d({key:n,container:o,nonce:e.nonce,speedy:e.speedy}),nonce:e.nonce,inserted:a,registered:{},insert:i};return h};function E(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 k(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var O,C={exports:{}},M={};var T,A,P={};var R=k((A||(A=1,"production"===process.env.NODE_ENV?C.exports=(O||(O=1,Object.defineProperty(M,"__esModule",{value:!0}),M.default={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}),M):C.exports=(T||(T=1,Object.defineProperty(P,"__esModule",{value:!0}),P.default={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}),P)),C.exports));function N(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var D="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences",I="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",F=/[A-Z]|^ms/g,L=/_EMO_([^_]+?)_([^]*?)_EMO_/g,j=function(e){return 45===e.charCodeAt(1)},z=function(e){return null!=e&&"boolean"!=typeof e},B=N(function(e){return j(e)?e:e.replace(F,"-$&").toLowerCase()}),H=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(L,function(e,t,n){return Z={name:t,styles:n,next:Z},t})}return 1===R[e]||j(e)||"number"!=typeof t||0===t?t:t+"px"};if("production"!==process.env.NODE_ENV){var V=/(attr|calc|counters?|url)\(/,$=["normal","none","counter","open-quote","close-quote","no-open-quote","no-close-quote","initial","inherit","unset"],W=H,U=/^-ms-/,G=/-(.)/g,Y={};H=function(e,t){"content"===e&&("string"!=typeof t||-1===$.indexOf(t)&&!V.test(t)&&(t.charAt(0)!==t.charAt(t.length-1)||'"'!==t.charAt(0)&&"'"!==t.charAt(0)))&&console.error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+t+"\"'`");var n=W(e,t);return""===n||j(e)||-1===e.indexOf("-")||void 0!==Y[e]||(Y[e]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+e.replace(U,"ms-").replace(G,function(e,t){return t.toUpperCase()})+"?")),n}}var X=!0;function q(e,t,n,r){if(null==n)return"";if(void 0!==n.__emotion_styles){if("production"!==process.env.NODE_ENV&&"NO_COMPONENT_SELECTOR"===n.toString())throw new Error("Component selectors can only be used in conjunction with babel-plugin-emotion.");return n}switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return Z={name:n.name,styles:n.styles,next:Z},n.name;if(void 0!==n.styles){var o=n.next;if(void 0!==o)for(;void 0!==o;)Z={name:o.name,styles:o.styles,next:Z},o=o.next;var i=n.styles+";";return"production"!==process.env.NODE_ENV&&void 0!==n.map&&(i+=n.map),i}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=q(e,t,n[o],!1);else for(var i in n){var a=n[i];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=i+"{"+t[a]+"}":z(a)&&(r+=B(i)+":"+H(i,a)+";");else{if("NO_COMPONENT_SELECTOR"===i&&"production"!==process.env.NODE_ENV)throw new Error("Component selectors can only be used in conjunction with babel-plugin-emotion.");if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=q(e,t,a,!1);switch(i){case"animation":case"animationName":r+=B(i)+":"+s+";";break;default:"production"!==process.env.NODE_ENV&&"undefined"===i&&console.error(I),r+=i+"{"+s+"}"}}else for(var l=0;l<a.length;l++)z(a[l])&&(r+=B(i)+":"+H(i,a[l])+";")}}return r}(e,t,n);case"function":if(void 0!==e){var a=Z,s=n(e);return Z=a,q(e,t,s,r)}"production"!==process.env.NODE_ENV&&console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break;case"string":if("production"!==process.env.NODE_ENV){var l=[],c=n.replace(L,function(e,t,n){var r="animation"+l.length;return l.push("const "+r+" = keyframes`"+n.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+r+"}"});l.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(l,["`"+c+"`"]).join("\n")+"\n\nYou should wrap it with `css` like this:\n\ncss`"+c+"`")}}if(null==t)return n;var u=t[n];return"production"!==process.env.NODE_ENV&&r&&X&&void 0!==u&&(console.error("Interpolating a className from css`` is not recommended and will cause problems with composition.\nInterpolating a className from css`` will be completely unsupported in a future major version of Emotion"),X=!1),void 0===u||r?n:u}var K,Z,Q=/label:\s*([^\s;\n{]+)\s*;/g;"production"!==process.env.NODE_ENV&&(K=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//);var J=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";Z=void 0;var i,a=e[0];null==a||void 0===a.raw?(r=!1,o+=q(n,t,a,!1)):("production"!==process.env.NODE_ENV&&void 0===a[0]&&console.error(D),o+=a[0]);for(var s=1;s<e.length;s++)o+=q(n,t,e[s],46===o.charCodeAt(o.length-1)),r&&("production"!==process.env.NODE_ENV&&void 0===a[s]&&console.error(D),o+=a[s]);"production"!==process.env.NODE_ENV&&(o=o.replace(K,function(e){return i=e,""})),Q.lastIndex=0;for(var l,c="";null!==(l=Q.exec(o));)c+="-"+l[1];var u=E(o)+c;return"production"!==process.env.NODE_ENV?{name:u,styles:o,map:i,next:Z,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}:{name:u,styles:o,next:Z}},ee="undefined"!=typeof document;function te(e,t,n){var r="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]):r+=n+" "}),r}var ne=function(e,t,n){var r=e.key+"-"+t.name;if((!1===n||!1===ee&&void 0!==e.compat)&&void 0===e.registered[r]&&(e.registered[r]=t.styles),void 0===e.inserted[t.name]){var o="",i=t;do{var a=e.insert("."+r,i,e.sheet,!0);ee||void 0===a||(o+=a),i=i.next}while(void 0!==i);if(!ee&&0!==o.length)return o}};function re(e,t){if(void 0===e.inserted[t.name])return e.insert("",t,e.sheet,!0)}function oe(e,t,n){var r=[],o=te(e,r,n);return r.length<2?n:o+t(r)}var ie,ae,se,le,ce,ue,de,pe,he,fe,me,ge,ve,be=function e(t){for(var n="",r=0;r<t.length;r++){var o=t[r];if(null!=o){var i=void 0;switch(typeof o){case"boolean":break;case"object":if(Array.isArray(o))i=e(o);else for(var a in i="",o)o[a]&&a&&(i&&(i+=" "),i+=a);break;default:i=o}i&&(n&&(n+=" "),n+=i)}}return n},ye=function(e){var t=S(e);t.sheet.speedy=function(e){if("production"!==process.env.NODE_ENV&&0!==this.ctr)throw new Error("speedy must be changed before any rules are inserted");this.isSpeedy=e},t.compat=!0;var n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=J(n,t.registered,void 0);return ne(t,o,!1),t.key+"-"+o.name};return{css:n,cx:function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return oe(t.registered,n,be(r))},injectGlobal:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=J(n,t.registered);re(t,o)},keyframes:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=J(n,t.registered),i="animation-"+o.name;return re(t,{name:o.name,styles:"@keyframes "+i+"{"+o.styles+"}"}),i},hydrate:function(e){e.forEach(function(e){t.inserted[e]=!0})},flush:function(){t.registered={},t.inserted={},t.sheet.flush()},sheet:t.sheet,cache:t,getRegisteredStyles:te.bind(null,t.registered),merge:oe.bind(null,t.registered,n)}}(),xe=ye.cx,we=ye.css;!function(e){e.DEFAULT="#1B2736",e.T10="#2C4058",e.T20="#3E597A",e.T30="#4F719C"}(ie||(ie={})),function(e){e.DEFAULT="#2F8DEE",e.T10="#5FA8F2",e.T20="#8EC2F6",e.T40="#ECF5FD",e.S400="#1863B0",e.S300="#3585E6",e.S100="#EBF5FF",e.LINK="#187D97"}(ae||(ae={})),function(e){e.S500="#00D37E",e.S400="#189C08",e.S300="#43CC32",e.S100="#F0FFF3",e.DEFAULT="#00A965",e.CONTRAST="#002B2A",e.G100="#F0FFF9",e.HOVER="#00B86D",e.HOVER_SECONDARY="#E5EDEC",e.HOVER_TERTIARY="rgba(5, 73, 72, 0.1)",e.PRESSED="#009E5A",e.PRESSED_SECONDARY="#E6ECEC",e.PRESSED_TERTIARY="rgba(5, 73, 72, 0.15)",e.BASE="#054948"}(se||(se={})),function(e){e.S500="#777777",e.S400="#959595",e.T10="#ADADAD",e.S300="#CACACA",e.S200="#E8E8E8",e.S100="#F6F7F9",e.S50="#FFFFFF",e.BLUISH="#D3D7DE",e.BASE="#D8D8D8",e.OUTLINE="#505454"}(le||(le={})),function(e){e.S400="#B71515",e.S300="#E22726",e.S100="#FFF0F0"}(ce||(ce={})),function(e){e.DEFAULT="#FFFFFF"}(ue||(ue={})),function(e){e.S400="#8D7700",e.S300="#E5C412",e.S100="#FFFBE9"}(de||(de={})),function(e){e.NEUTRAL="#FFFFFF",e.SECONDARY_NEUTRAL="#F6F7F9",e.PRIMARY="#00A965",e.SECONDARY="#F6FEFB"}(pe||(pe={})),function(e){e.NEUTRAL="#FFFFFF",e.SECONDARY_NEUTRAL="#F6F7F9",e.DISABLED_SURFACE="#F2F4F5",e.DISABLED_ON_SURFACE="#9D9E9F",e.DARK="#051513",e.SUBDUE_INFO="#EEF6FF",e.SUBDUE_POSITIVE="#F0F9F4",e.SUBDUE_WARNING="#FFFAEA",e.SUBDUE_CRITICAL="#FFF1F1"}(he||(he={})),function(e){e.PRIMARY="#00D37E",e.PRIMARY_2="#054948",e.PRIMARY_3="#002B2A",e.ON_CONTAINER="#FFFFFF",e.ON_NEUTRAL="#002B2A",e.ON_NEUTRAL_SECONDARY="#505454",e.LINE="#D8D8D8",e.LINK="#187D97",e.OVERLAY="rgb(5, 21, 19, 0.7)"}(fe||(fe={})),function(e){e.HOVER_PRIMARY="#008F56",e.FOCUS_DEFAULT="#42FFB4",e.PRESSED_PRIMARY="#007546",e.SELECTED="#F0FFF9",e.HOVER_SURFACE="#ECECEC",e.FOCUS_SURFACE="#E3E3E3",e.PRESSED_SURFACE="#E3E3E3",e.HOVER_CRITICAL="#B92B22",e.PRESSED_CRITICAL="#A92920"}(me||(me={})),function(e){e.INFO="#0C45E1",e.POSITIVE="#257C58",e.WARNING="#FC9A07",e.CRITICAL="#DF1312"}(ge||(ge={})),function(e){e.BUTTON_DISABLED="#BDBDBD",e.BUTTON_PRIMARY="#00A965",e.LABEL_INPUT="#757575",e.HELPER_INPUT="#757575",e.PLACEHOLDER_INPUT="#B6B6B6"}(ve||(ve={}));var _e,Se={display:{FONT_SIZE:{lg:"64px",md:"45px",sm:"36px"},LINE_HEIGHT:{lg:"78px",md:"54px",sm:"44px"},FONT_WEIGHT:{lg:"700",md:"700",sm:"700"},LETTER_SPACING:{lg:"-0.03em",md:"-0.03em",sm:"-0.03em"}},headline:{FONT_SIZE:{lg:"28px",md:"24px",sm:"20px"},LINE_HEIGHT:{lg:"48px",md:"42px",sm:"36px"},FONT_WEIGHT:{lg:"400",md:"400",sm:"400"},LETTER_SPACING:{lg:"0em",md:"0em",sm:"0em"}},title:{FONT_SIZE:{lg:"28px",md:"24px",sm:"20px"},LINE_HEIGHT:{lg:"42px",md:"36px",sm:"30px"},FONT_WEIGHT:{lg:"700",md:"700",sm:"700"},LETTER_SPACING:{lg:"-0.02em",md:"-0.02em",sm:"-0.02em"}},label:{FONT_SIZE:{lg:"16px",md:"14px",sm:"12px"},LINE_HEIGHT:{lg:"24px",md:"20px",sm:"18px"},FONT_WEIGHT:{lg:"700",md:"700",sm:"700"},LETTER_SPACING:{lg:"-0.01em",md:"-0.01em",sm:"-0.01em"}},body:{FONT_SIZE:{lg:"16px",md:"14px",sm:"12px"},LINE_HEIGHT:{lg:"24px",md:"20px",sm:"18px"},FONT_WEIGHT:{lg:"400",md:"400",sm:"400"},LETTER_SPACING:{lg:"-0.01em",md:"-0.01em",sm:"-0.01em"}}},Ee={normal:"overflow: auto; text-overflow: unset;",wrap:"overflow: auto; text-wrap: wrap; word-break: break-word;",hidden:"overflow: hidden; white-space: nowrap; text-overflow: ellipsis;"},ke=function(e,t){var n,o,i,a;return we(_e||(_e=r.__makeTemplateObject(["\n display: ",";\n text-align: ",";\n\n font-size: ",";\n line-height: ",";\n font-weight: ",";\n letter-spacing: ",";\n color: ",";\n font-family: ",";\n\n margin: 0;\n\n ",";\n "],["\n display: ",";\n text-align: ",";\n\n font-size: ",";\n line-height: ",";\n font-weight: ",";\n letter-spacing: ",";\n color: ",";\n font-family: ",";\n\n margin: 0;\n\n ",";\n "])),null!==(n=t.display)&&void 0!==n?n:"block",null!==(o=t.align)&&void 0!==o?o:"inherit",Se[e].FONT_SIZE[t.size],Se[e].LINE_HEIGHT[t.size],Se[e].FONT_WEIGHT[t.size],Se[e].LETTER_SPACING[t.size],null!==(i=t.color)&&void 0!==i?i:fe.ON_NEUTRAL,"label"===e?"Red Hat Display":"Hanken Grotesk",Ee[null!==(a=t.overflow)&&void 0!==a?a:"normal"])};var Oe={Display:function(e){var t=e.as,n=void 0===t?"h1":t,o=e.children,i=e.className,a=r.__rest(e,["as","children","className"]);return l.default.createElement(n,r.__assign({className:xe(ke("display",e),i)},a),o)},Headline:function(e){var t=e.as,n=void 0===t?"h2":t,o=e.children,i=e.className,a=r.__rest(e,["as","children","className"]);return l.default.createElement(n,r.__assign({className:xe(ke("headline",e),i)},a),o)},Title:function(e){var t=e.as,n=void 0===t?"h2":t,o=e.children,i=e.className,a=r.__rest(e,["as","children","className"]);return l.default.createElement(n,r.__assign({className:xe(ke("title",e),i)},a),o)},Label:function(e){var t=e.as,n=void 0===t?"h5":t,o=e.children,i=e.className,a=r.__rest(e,["as","children","className"]);return l.default.createElement(n,r.__assign({className:xe(ke("label",e),i)},a),o)},Body:function(e){var t=e.as,n=void 0===t?"span":t,o=e.children,i=e.className,a=r.__rest(e,["as","children","className"]);return l.default.createElement(n,r.__assign({className:xe(ke("body",e),i)},a),o)}};function Ce(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Me=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Te=N(function(e){return Me.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91});function Ae(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var Pe="undefined"!=typeof document,Re=Object.prototype.hasOwnProperty,Ne=e.createContext("undefined"!=typeof HTMLElement?S():null),De=e.createContext({});Ne.Provider;var Ie=function(t){var n=function(n,r){return e.createElement(Ne.Consumer,null,function(e){return t(n,e,r)})};return e.forwardRef(n)};if(!Pe){var Fe=function(t){function n(e,n,r){var o;return(o=t.call(this,e,n,r)||this).state={value:S()},o}return Ae(n,t),n.prototype.render=function(){return e.createElement(Ne.Provider,this.state,this.props.children(this.state.value))},n}(e.Component);Ie=function(t){return function(n){return e.createElement(Ne.Consumer,null,function(r){return null===r?e.createElement(Fe,null,function(e){return t(n,e)}):t(n,r)})}}}var Le="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",je="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",ze=function(){return null},Be=function(t,n,r,o){var i=null===r?n.css:n.css(r);"string"==typeof i&&void 0!==t.registered[i]&&(i=t.registered[i]);var a=n[Le],s=[i],l="";"string"==typeof n.className?l=te(t.registered,s,n.className):null!=n.className&&(l=n.className+" ");var c=J(s);if("production"!==process.env.NODE_ENV&&-1===c.name.indexOf("-")){var u=n[je];u&&(c=J([c,"label:"+u+";"]))}var d=ne(t,c,"string"==typeof a);l+=t.key+"-"+c.name;var p={};for(var h in n)!Re.call(n,h)||"css"===h||h===Le||"production"!==process.env.NODE_ENV&&h===je||(p[h]=n[h]);p.ref=o,p.className=l;var f=e.createElement(a,p),m=e.createElement(ze,null);if(!Pe&&void 0!==d){for(var g,v=c.name,b=c.next;void 0!==b;)v+=" "+b.name,b=b.next;m=e.createElement("style",((g={})["data-emotion-"+t.key]=v,g.dangerouslySetInnerHTML={__html:d},g.nonce=t.sheet.nonce,g))}return e.createElement(e.Fragment,null,m,f)},He=Ie(function(t,n,r){return"function"==typeof t.css?e.createElement(De.Consumer,null,function(e){return Be(n,t,e,r)}):Be(n,t,null,r)});function Ve(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return J(t)}"production"!==process.env.NODE_ENV&&(He.displayName="EmotionCssPropInternal");var $e=!1,We=Ie(function(t,n){"production"===process.env.NODE_ENV||$e||!t.className&&!t.css||(console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"),$e=!0);var r=t.styles;if("function"==typeof r)return e.createElement(De.Consumer,null,function(t){var o=J([r(t)]);return e.createElement(Ue,{serialized:o,cache:n})});var o=J([r]);return e.createElement(Ue,{serialized:o,cache:n})}),Ue=function(t){function n(e,n,r){return t.call(this,e,n,r)||this}Ae(n,t);var r=n.prototype;return r.componentDidMount=function(){this.sheet=new d({key:this.props.cache.key+"-global",nonce:this.props.cache.sheet.nonce,container:this.props.cache.sheet.container});var e=document.querySelector("style[data-emotion-"+this.props.cache.key+'="'+this.props.serialized.name+'"]');null!==e&&this.sheet.tags.push(e),this.props.cache.sheet.tags.length&&(this.sheet.before=this.props.cache.sheet.tags[0]),this.insertStyles()},r.componentDidUpdate=function(e){e.serialized.name!==this.props.serialized.name&&this.insertStyles()},r.insertStyles=function(){if(void 0!==this.props.serialized.next&&ne(this.props.cache,this.props.serialized.next,!0),this.sheet.tags.length){var e=this.sheet.tags[this.sheet.tags.length-1].nextElementSibling;this.sheet.before=e,this.sheet.flush()}this.props.cache.insert("",this.props.serialized,this.sheet,!1)},r.componentWillUnmount=function(){this.sheet.flush()},r.render=function(){if(!Pe){for(var t=this.props.serialized,n=t.name,r=t.styles,o=t.next;void 0!==o;)n+=" "+o.name,r+=o.styles,o=o.next;var i,a=!0===this.props.cache.compat,s=this.props.cache.insert("",{name:n,styles:r},this.sheet,a);if(!a)return e.createElement("style",((i={})["data-emotion-"+this.props.cache.key]=n,i.dangerouslySetInnerHTML={__html:s},i.nonce=this.props.cache.sheet.nonce,i))}return null},n}(e.Component),Ge=function(){var e=Ve.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},Ye=function e(t){for(var n=t.length,r=0,o="";r<n;r++){var i=t[r];if(null!=i){var a=void 0;switch(typeof i){case"boolean":break;case"object":if(Array.isArray(i))a=e(i);else for(var s in a="",i)i[s]&&s&&(a&&(a+=" "),a+=s);break;default:a=i}a&&(o&&(o+=" "),o+=a)}}return o};var Xe=function(){return null};Ie(function(t,n){return e.createElement(De.Consumer,null,function(r){var o="",i="",a=!1,s=function(){if(a&&"production"!==process.env.NODE_ENV)throw new Error("css can only be used during render");for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var s=J(t,n.registered);if(Pe)ne(n,s,!1);else{var l=ne(n,s,!1);void 0!==l&&(o+=l)}return Pe||(i+=" "+s.name),n.key+"-"+s.name},l={css:s,cx:function(){if(a&&"production"!==process.env.NODE_ENV)throw new Error("cx can only be used during render");for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e,t,n){var r=[],o=te(e,r,n);return r.length<2?n:o+t(r)}(n.registered,s,Ye(t))},theme:r},c=t.children(l);a=!0;var u,d=e.createElement(Xe,null);Pe||0===o.length||(d=e.createElement("style",((u={})["data-emotion-"+n.key]=i.substring(1),u.dangerouslySetInnerHTML={__html:o},u.nonce=n.sheet.nonce,u)));return e.createElement(e.Fragment,null,d,c)})});var qe=Te,Ke=function(e){return"theme"!==e&&"innerRef"!==e},Ze=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?qe:Ke};function Qe(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}var Je,et,tt,nt,rt,ot,it,at,st,lt="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences",ct="undefined"!=typeof document,ut=function(){return null},dt=function t(n,r){if("production"!==process.env.NODE_ENV&&void 0===n)throw new Error("You are trying to create a styled element with an undefined component.\nYou may have forgotten to import it.");var o,i,a;void 0!==r&&(o=r.label,a=r.target,i=n.__emotion_forwardProp&&r.shouldForwardProp?function(e){return n.__emotion_forwardProp(e)&&r.shouldForwardProp(e)}:r.shouldForwardProp);var s=n.__emotion_real===n,l=s&&n.__emotion_base||n;"function"!=typeof i&&s&&(i=n.__emotion_forwardProp);var c=i||Ze(l),u=!c("as");return function(){var d=arguments,p=s&&void 0!==n.__emotion_styles?n.__emotion_styles.slice(0):[];if(void 0!==o&&p.push("label:"+o+";"),null==d[0]||void 0===d[0].raw)p.push.apply(p,d);else{"production"!==process.env.NODE_ENV&&void 0===d[0][0]&&console.error(lt),p.push(d[0][0]);for(var h=d.length,f=1;f<h;f++)"production"!==process.env.NODE_ENV&&void 0===d[0][f]&&console.error(lt),p.push(d[f],d[0][f])}var m=Ie(function(t,n,r){return e.createElement(De.Consumer,null,function(s){var d=u&&t.as||l,h="",f=[],m=t;if(null==t.theme){for(var g in m={},t)m[g]=t[g];m.theme=s}"string"==typeof t.className?h=te(n.registered,f,t.className):null!=t.className&&(h=t.className+" ");var v=J(p.concat(f),n.registered,m),b=ne(n,v,"string"==typeof d);h+=n.key+"-"+v.name,void 0!==a&&(h+=" "+a);var y=u&&void 0===i?Ze(d):c,x={};for(var w in t)u&&"as"===w||y(w)&&(x[w]=t[w]);x.className=h,x.ref=r||t.innerRef,"production"!==process.env.NODE_ENV&&t.innerRef&&console.error("`innerRef` is deprecated and will be removed in a future major version of Emotion, please use the `ref` prop instead"+(void 0===o?"":" in the usage of `"+o+"`"));var _=e.createElement(d,x),S=e.createElement(ut,null);if(!ct&&void 0!==b){for(var E,k=v.name,O=v.next;void 0!==O;)k+=" "+O.name,O=O.next;S=e.createElement("style",((E={})["data-emotion-"+n.key]=k,E.dangerouslySetInnerHTML={__html:b},E.nonce=n.sheet.nonce,E))}return e.createElement(e.Fragment,null,S,_)})});return m.displayName=void 0!==o?o:"Styled("+("string"==typeof l?l:l.displayName||l.name||"Component")+")",m.defaultProps=n.defaultProps,m.__emotion_real=m,m.__emotion_base=l,m.__emotion_styles=p,m.__emotion_forwardProp=i,Object.defineProperty(m,"toString",{value:function(){return void 0===a&&"production"!==process.env.NODE_ENV?"NO_COMPONENT_SELECTOR":"."+a}}),m.withComponent=function(e,n){return t(e,void 0!==n?function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qe(Object(n),!0).forEach(function(t){Ce(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qe(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},r||{},{},n):r).apply(void 0,p)},m}}.bind();["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach(function(e){dt[e]=dt(e)}),exports.BLUE_COLORS=void 0,(Je=exports.BLUE_COLORS||(exports.BLUE_COLORS={})).B400="#0C45E1",Je.B300="#1863B0",Je.B200="#C3DCF6",Je.B100="#EEF6FF",exports.GREEN_COLORS=void 0,(et=exports.GREEN_COLORS||(exports.GREEN_COLORS={})).G400="#257C58",et.G300="#43CC32",et.G200="#C8FAC0",et.G100="#F0F9F4",exports.RED_COLORS=void 0,(tt=exports.RED_COLORS||(exports.RED_COLORS={})).R400="#DF1312",tt.R300="#E22726",tt.R200="#FFC9C9",tt.R100="#FFF1F1",exports.YELLOW_COLORS=void 0,(nt=exports.YELLOW_COLORS||(exports.YELLOW_COLORS={})).Y400="#FC9A07",nt.Y300="#FC9A07",nt.Y200="#FFEB7E",nt.Y100="#FFFAEA",exports.NEUTRAL_COLORS=void 0,(rt=exports.NEUTRAL_COLORS||(exports.NEUTRAL_COLORS={})).BLACK="#1B2736",rt.G500="#505454",rt.G400="#959595",rt.G300="#D8D8D8",rt.G200="#E8E8E8",rt.G100="#F0F0F0",rt.WHITE="#FFFFFF",exports.MAIN_COLORS=void 0,(ot=exports.MAIN_COLORS||(exports.MAIN_COLORS={})).PRIMARY_BLUE="#1863B0",ot.PRIMARY_BLACK="#1B2736",ot.PRIMARY_WHITE="#FFFFFF",ot.SECONDARY_GREEN="#43CC32",ot.SECONDARY_RED="#E22726",ot.SECONDARY_YELLOW="#FC9A07",exports.ICON_COLORS=void 0,(it=exports.ICON_COLORS||(exports.ICON_COLORS={})).SUCCESS="#43CC32",it.INFO="#1863B0",it.WARNING="#FC9A07",it.ERROR="#E22726",it.NEUTRAL="#D8D8D8",exports.TEXT_COLORS=void 0,(at=exports.TEXT_COLORS||(exports.TEXT_COLORS={})).SUCCESS="#257C58",at.INFO="#0C45E1",at.WARNING="#FC9A07",at.ERROR="#DF1312",at.NEUTRAL="#959595",exports.BACKGROUND_COLORS=void 0,(st=exports.BACKGROUND_COLORS||(exports.BACKGROUND_COLORS={})).SUCCESS="#F0F9F4",st.INFO="#EEF6FF",st.WARNING="#FFFAEA",st.ERROR="#FFF1F1",st.NEUTRAL="#F0F0F0";var pt,ht,ft,mt,gt=function(e,t,n){return"\n border: 1px solid ".concat(e," !important;\n background-color: ").concat(n," !important;\n \n .ant-alert-icon {\n color: ").concat(t," !important;\n }\n \n .ant-alert-close-icon {\n color: ").concat(t," !important;\n }\n")},vt=gt(exports.GREEN_COLORS.G400,exports.GREEN_COLORS.G400,exports.GREEN_COLORS.G100),bt=gt(exports.YELLOW_COLORS.Y400,exports.YELLOW_COLORS.Y400,exports.YELLOW_COLORS.Y100),yt=gt(exports.RED_COLORS.R400,exports.RED_COLORS.R400,exports.RED_COLORS.R100),xt="\n border: none !important;\n background-color: ".concat(se.CONTRAST," !important;\n \n .ant-alert-icon {\n color: ").concat(ue.DEFAULT," !important;\n }\n \n .ant-alert-close-icon {\n color: ").concat(ue.DEFAULT," !important;\n }\n"),wt=dt(t.Alert)(pt||(pt=r.__makeTemplateObject(["\n &.ant-alert {\n ","\n ","\n ","\n ","\n ","\n }\n"],["\n &.ant-alert {\n ","\n ","\n ","\n ","\n ","\n }\n"])),"\n width: 328px !important;\n min-height: 52px !important;\n border-radius: 8px !important;\n padding: 8px 12px !important;\n \n .ant-alert-icon {\n align-self: flex-start !important;\n margin-top: 0 !important;\n }\n",function(e){return"success"===e.type&&vt},function(e){return"warning"===e.type&&bt},function(e){return"error"===e.type&&yt},function(e){return"info"===e.type&&xt}),_t=dt.div(ht||(ht=r.__makeTemplateObject(["\n display: flex;\n flex-direction: column;\n\n span,\n p,\n div {\n font-family: 'Hanken Grotesk', 'Inter', sans-serif !important;\n }\n\n h1,\n h2,\n h3,\n h4,\n h5,\n h6 {\n font-family: 'Red Hat Display', 'Inter', sans-serif !important;\n }\n"],["\n display: flex;\n flex-direction: column;\n\n span,\n p,\n div {\n font-family: 'Hanken Grotesk', 'Inter', sans-serif !important;\n }\n\n h1,\n h2,\n h3,\n h4,\n h5,\n h6 {\n font-family: 'Red Hat Display', 'Inter', sans-serif !important;\n }\n"]))),St=dt.div(ft||(ft=r.__makeTemplateObject(["\n width: 24px;\n height: 24px;\n"],["\n width: 24px;\n height: 24px;\n"]))),Et="@media (min-width: 992px)",kt="Hanken Grotesk",Ot="Red Hat Display";!function(e){e[e.BOLD=700]="BOLD",e[e.MEDIUM=500]="MEDIUM",e[e.REGULAR=400]="REGULAR"}(mt||(mt={}));var Ct,Mt="\n color: ".concat(ie.DEFAULT,";\n font-family: ").concat(kt,", ").concat("Inter",";\n margin: 0;\n"),Tt="\n font-weight: ".concat(mt.BOLD,";\n font-size: 24px;\n line-height: 28px;\n font-family: ").concat(Ot,";\n\n ").concat(Et," {\n font-size: 24px;\n line-height: 29px;\n }\n"),At="\n font-weight: ".concat(mt.BOLD,";\n font-size: 20px;\n line-height: 23px;\n font-family: ").concat(Ot,";\n\n ").concat(Et," {\n font-size: 18px;\n line-height: 22px;\n }\n"),Pt="\n font-weight: ".concat(mt.BOLD,";\n font-size: 18px;\n line-height: 21px;\n font-family: ").concat(Ot,";\n\n ").concat(Et," {\n font-size: 16px;\n line-height: 19px;\n }\n"),Rt="\n font-weight: ".concat(mt.REGULAR,";\n font-size: 16px;\n line-height: 19px;\n font-family: ").concat(kt,";\n\n ").concat(Et," {\n font-size: 14px;\n line-height: 17px;\n }\n"),Nt="\n font-weight: ".concat(mt.REGULAR,";\n font-size: 12px;\n line-height: 18px;\n font-family: ").concat(kt,";\n\n ").concat(Et," {\n line-height: 15px;\n }\n"),Dt="\n font-weight: ".concat(mt.BOLD,";\n font-size: 16px;\n font-family: ").concat(Ot,";\n"),It="\n font-weight: ".concat(mt.BOLD,";\n font-size: 14px;\n font-family: ").concat(Ot,";\n"),Ft="\n font-weight: ".concat(mt.BOLD,";\n font-size: 16px;\n line-height: 19px;\n font-family: ").concat(Ot,";\n\n ").concat(Et," {\n font-size: 14px;\n line-height: 17px;\n }\n"),Lt="\n font-weight: ".concat(mt.BOLD,";\n font-size: 14px;\n line-height: 24px;\n font-family: ").concat(kt,";\n"),jt="\n font-weight: ".concat(mt.REGULAR,";\n font-size: 14px;\n line-height: 24px;\n font-family: ").concat(Ot,";\n");!function(e){e.RAISED="0px 2px 4px 0px rgba(51, 51, 51, 0.16)",e.ACTION="0px 4px 8px 0px rgba(51, 51, 51, 0.16)",e.OVERLAY="0px 8px 16px 0px rgba(51, 51, 51, 0.16)",e.REVERSE_RAISED="0px -1px 4px 0px rgba(51, 51, 51, 0.08)"}(Ct||(Ct={}));var zt="10px",Bt="15px",Ht="20px",Vt="30px",$t={spacing:{xs:"5px",sm:zt,md:Bt,lg:Ht,xl:Vt},layout:{desktop:"24px",mobile:"16px"},shadow:{raised:Ct.RAISED,action:Ct.ACTION,overlay:Ct.OVERLAY,reverseRaised:Ct.REVERSE_RAISED},color:{background:{neutral:pe.NEUTRAL,secondaryNeutral:pe.SECONDARY_NEUTRAL,primary:pe.PRIMARY,secondary:pe.SECONDARY},surface:{neutral:he.NEUTRAL,secondaryNeutral:he.SECONDARY_NEUTRAL,disabledSurface:he.DISABLED_SURFACE,disabledOnSurface:he.DISABLED_ON_SURFACE,dark:he.DARK,SubdueInfo:he.SUBDUE_INFO,subduePositive:he.SUBDUE_POSITIVE,subdueCritical:he.SUBDUE_CRITICAL,subdueWarning:he.SUBDUE_WARNING},base:{primary:fe.PRIMARY,primary2:fe.PRIMARY_2,primary3:fe.PRIMARY_3,onContainer:fe.ON_CONTAINER,onNeutral:fe.ON_NEUTRAL,onNeutralSecondary:fe.ON_NEUTRAL_SECONDARY,line:fe.LINE,link:fe.LINK,overlay:fe.OVERLAY},interactive:{hoverPrimary:me.HOVER_PRIMARY,focusDefault:me.FOCUS_DEFAULT,pressedPrimary:me.PRESSED_PRIMARY,selected:me.SELECTED,hoverSurface:me.HOVER_SURFACE,focusSurface:me.FOCUS_SURFACE,pressedSurface:me.PRESSED_SURFACE,hoverCritical:me.HOVER_CRITICAL,pressedCritical:me.PRESSED_CRITICAL},status:{info:ge.INFO,positive:ge.POSITIVE,warning:ge.WARNING,critical:ge.CRITICAL},component:{buttonDisabled:ve.BUTTON_DISABLED,buttonPrimary:ve.BUTTON_PRIMARY,labelInput:ve.LABEL_INPUT,helperInput:ve.HELPER_INPUT,placeholderInput:ve.PLACEHOLDER_INPUT}},text:{default:ie.DEFAULT,white:ue.DEFAULT},button:{background:ue.DEFAULT,color:se.DEFAULT,border:se.BASE,hover:ie.T10},actionButton:{color:le.S400,hover:le.T10},neutral:{text:le.S400,emphasis:le.S300,border:le.S200,background:le.S100,white:ue.DEFAULT,bluish:le.BLUISH},success:{text:se.S400,emphasis:se.S300,border:se.S300,background:se.S100},warning:{text:de.S400,emphasis:de.S300,border:de.S300,background:de.S100},error:{text:ce.S400,emphasis:ce.S300,border:ce.S300,background:ce.S100},notification:{text:ae.S300,emphasis:ae.DEFAULT,background:ae.S100},card:{background:{default:ue.DEFAULT,dark:ie.T10}},divider:{background:le.S200}},Wt=r.__assign(r.__assign({},$t),{brand:{primary:{default:ae.DEFAULT,emphasis:ae.S300,background:ae.S100,contrast:ue.DEFAULT,illustration:ae.DEFAULT},action:{default:ae.DEFAULT,hover:ae.T10,disabledOpacity:.7}}}),Ut=r.__assign(r.__assign({},$t),{brand:{primary:{default:se.BASE,emphasis:se.DEFAULT,background:se.G100,contrast:se.CONTRAST,illustration:se.S500,link:ae.LINK},secondary:{onSurface:le.OUTLINE,action:{hover:se.HOVER_SECONDARY,pressed:se.PRESSED_SECONDARY}},tertiary:{action:{hover:se.HOVER_TERTIARY,pressed:se.PRESSED_TERTIARY}},action:{default:se.S500,hover:se.HOVER,pressed:se.PRESSED,disabledOpacity:.7},line:{base:le.BASE}}});function Gt(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}Gt('@import url("https://fonts.googleapis.com/css?family=Inter:100,100i,300,300i,400,400i,500,500i,700,700i,900,900i&display=swap");@import url("https://fonts.googleapis.com/css?family=Roboto:100,100i,300,300i,400,400i,500,500i,700,700i,900,900i&display=swap");@import url("https://fonts.googleapis.com/css?family=Source+Sans+Pro:100,100i,300,300i,400,400i,500,500i,700,700i,900,900i&display=swap");@import url("https://fonts.googleapis.com/css?family=Hind+Siliguri:100,100i,300,300i,400,400i,500,500i,700,700i,900,900i&display=swap");@import url("https://fonts.googleapis.com/css?family=Hanken+Grotesk:100,100i,300,300i,400,400i,500,500i,700,700i,900,900i&display=swap");@import url("https://fonts.googleapis.com/css?family=Red+Hat+Display:100,100i,300,300i,400,400i,500,500i,700,700i,900,900i&display=swap");');var Yt,Xt,qt,Kt,Zt,Qt=function(){return l.default.createElement(We,{styles:Ve(Yt||(Yt=r.__makeTemplateObject(["\n body {\n color: #555555;\n padding: 0;\n margin: 0;\n -webkit-font-smoothing: auto;\n font-size: 14px;\n font-family: 'Hanken Grotesk', Inter;\n }\n\n @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {\n body {\n -webkit-font-smoothing: antialiased;\n }\n }\n\n p {\n padding: 0;\n margin: 0;\n }\n\n a {\n text-decoration: none;\n }\n\n img {\n vertical-align: middle;\n }\n\n * {\n padding: 0;\n margin: 0;\n font-family: 'Hanken Grotesk', Inter;\n box-sizing: border-box;\n }\n\n select {\n font-family: 'Hanken Grotesk', Inter;\n }\n\n input[type='number']::-webkit-inner-spin-button,\n input[type='number']::-webkit-outer-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n "],["\n body {\n color: #555555;\n padding: 0;\n margin: 0;\n -webkit-font-smoothing: auto;\n font-size: 14px;\n font-family: 'Hanken Grotesk', Inter;\n }\n\n @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {\n body {\n -webkit-font-smoothing: antialiased;\n }\n }\n\n p {\n padding: 0;\n margin: 0;\n }\n\n a {\n text-decoration: none;\n }\n\n img {\n vertical-align: middle;\n }\n\n * {\n padding: 0;\n margin: 0;\n font-family: 'Hanken Grotesk', Inter;\n box-sizing: border-box;\n }\n\n select {\n font-family: 'Hanken Grotesk', Inter;\n }\n\n input[type='number']::-webkit-inner-spin-button,\n input[type='number']::-webkit-outer-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n "])))})},Jt=l.default.createContext(Ut),en=function(){var e=l.default.useContext(Jt);if(void 0===e)throw new Error("useTheme must be used within a ThemeProvider");return e},tn="\n padding: 0;\n border-radius: 99px;\n display: flex;\n align-items: center;\n justify-content: center;\n",nn="\n ".concat(tn,"\n width: 48px;\n height: 48px;\n"),rn="\n ".concat(tn,"\n width: 36px;\n height: 36px;\n"),on=function(e,t,n,r,o){return"\n background-color: ".concat(e," !important;\n color: ").concat(t," !important;\n border: ").concat(o||"none"," !important;\n box-shadow: none !important;\n\n &:focus {\n background-color: ").concat(n||e," !important;\n box-shadow: none !important;\n }\n\n &:hover {\n background-color: ").concat(n||e," !important;\n box-shadow: none !important;\n }\n\n &:active {\n background-color: ").concat(r||e," !important;\n box-shadow: none !important;\n }\n")},an=function(e,t){return"\n cursor: not-allowed !important;\n background-color: ".concat(e," !important;\n color: ").concat(t," !important;\n border: none !important;\n\n &:hover, &:focus, &:active {\n cursor: not-allowed !important;\n background-color: ").concat(e," !important;\n color: ").concat(t," !important;\n }\n")},sn=on(Ut.brand.action.default,Ut.brand.primary.contrast,Ut.brand.action.hover,Ut.brand.action.pressed),ln=on(Ut.color.surface.neutral,Ut.brand.secondary.onSurface,Ut.color.interactive.hoverSurface,Ut.color.interactive.pressedSurface,"1px solid ".concat(Ut.brand.line.base)),cn=on("transparent",Ut.brand.secondary.onSurface,Ut.color.interactive.hoverSurface,Ut.color.interactive.pressedSurface,"none"),un={primary:an(Ut.color.surface.disabledSurface,Ut.color.surface.disabledOnSurface),secondary:an(Ut.color.surface.disabledSurface,Ut.color.surface.disabledOnSurface),tertiary:an(Ut.color.surface.disabledSurface,Ut.color.surface.disabledOnSurface)},dn=function(e){var n=e.type,o=void 0===n?"primary":n,i=e.size,a=e.iconColor,s=e.isDisabled,c=void 0!==s&&s,u=e.isFullWidth,d=void 0!==u&&u,p=e.className,h=void 0===p?"":p,f=e.children,m=e.icon,g=r.__rest(e,["type","size","iconColor","isDisabled","isFullWidth","className","children","icon"]),v=en(),b=v.brand,y=v.button,x=v.actionButton,w=v.color,_="\n background-color: ".concat(b.action.default," !important;\n color: ").concat(b.primary.contrast," !important;\n border: none !important;\n\n &:focus {\n background-color: ").concat(b.action.default," !important;\n border: none !important;\n }\n \n &:active {\n background-color: ").concat(b.action.pressed," !important;\n border: none !important;\n }\n \n &:hover {\n background-color: ").concat(b.action.hover," !important;\n border: none !important;\n }\n "),S="\n background-color: ".concat(y.background," !important;\n color: ").concat(b.primary.contrast," !important;\n border: 1px solid ").concat(y.border," !important;\n\n &:focus {\n background-color: ").concat(y.background," !important;\n border: 1px solid ").concat(y.border," !important;\n }\n\n &:hover {\n background-color: ").concat(b.secondary.action.hover," !important;\n border: 1px solid ").concat(y.border," !important;\n }\n\n &:active {\n background-color: ").concat(b.secondary.action.pressed," !important;\n border: 1px solid ").concat(y.border," !important;\n }\n\n &[ant-click-animating-without-extra-node]:after {\n --antd-wave-shadow-color: ").concat(Ut.brand.primary.default,";\n }\n "),E="\n background-color: transparent !important;\n color: ".concat(b.primary.contrast," !important;\n border: none !important;\n\n &:focus {\n background-color: transparent !important;\n border: none !important;\n }\n\n &:hover {\n background-color: ").concat(b.tertiary.action.hover," !important;\n border: none !important;\n }\n\n &:active {\n background-color: ").concat(b.tertiary.action.pressed," !important;\n border: none !important;\n }\n "),k="\n cursor: not-allowed !important;\n background-color: ".concat(w.surface.disabledSurface," !important;\n color: ").concat(w.surface.disabledOnSurface," !important;\n border: none !important;\n \n &:hover, &:focus, &:active {\n cursor: not-allowed !important;\n background-color: ").concat(w.surface.disabledSurface," !important;\n color: ").concat(w.surface.disabledOnSurface," !important;\n border: none !important;\n }\n "),O="\n cursor: not-allowed !important;\n background-color: ".concat(y.background," !important;\n color: ").concat(w.surface.disabledOnSurface," !important;\n border: 1px solid ").concat(le.S300," !important;\n \n &:hover, &:focus, &:active {\n cursor: not-allowed !important;\n background-color: ").concat(y.background," !important;\n color: ").concat(w.surface.disabledOnSurface," !important;\n border: 1px solid ").concat(le.BASE," !important;\n }\n "),C="\n cursor: not-allowed !important;\n background-color: transparent !important;\n color: ".concat(w.surface.disabledOnSurface," !important;\n border: none !important;\n \n &:hover, &:focus, &:active {\n cursor: not-allowed !important;\n background-color: transparent !important;\n color: ").concat(w.surface.disabledOnSurface," !important;\n border: none !important;\n }\n "),M="\n color: ".concat(x.color,";\n\n &:focus {\n color: ").concat(x.color,";\n }\n\n &:hover {\n color: ").concat(x.hover,";\n }\n\n &:active {\n color: ").concat(x.color,";\n }\n "),T="\n color: ".concat(b.action.default,";\n\n &:focus {\n color: ").concat(b.action.default,";\n }\n\n &:hover {\n color: ").concat(b.action.hover,";\n }\n\n &:active {\n color: ").concat(b.action.default,";\n }\n "),A=dt(t.Button)(Xt||(Xt=r.__makeTemplateObject(["\n &.ant-btn {\n text-shadow: none;\n -webkit-font-smoothing: antialiased;\n border-radius: 99px;\n min-width: 100px;\n height: ",";\n box-shadow: none;\n display: flex;\n align-items: center;\n justify-content: center;\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n padding: 16px;\n\n & > svg {\n vertical-align: middle;\n font-size: 16px;\n margin-right: 6px;\n ","\n }\n &:hover,\n &:focus,\n &:active {\n color: "," !important;\n }\n }\n "],["\n &.ant-btn {\n text-shadow: none;\n -webkit-font-smoothing: antialiased;\n border-radius: 99px;\n min-width: 100px;\n height: ",";\n box-shadow: none;\n display: flex;\n align-items: center;\n justify-content: center;\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n padding: 16px;\n\n & > svg {\n vertical-align: middle;\n font-size: 16px;\n margin-right: 6px;\n ","\n }\n &:hover,\n &:focus,\n &:active {\n color: "," !important;\n }\n }\n "])),"small"===i?"36px":"48px",Mt,"small"===i?It:Dt,"primary"===o&&_,"secondary"===o&&S,"tertiary"===o&&E,function(){if(!c)return"";switch(o){case"primary":default:return k;case"secondary":return O;case"tertiary":return C}}(),d&&"\n width: 100%;\n ","primary"===a?T:M,b.primary.contrast),P=dt(t.Button)(qt||(qt=r.__makeTemplateObject(["\n &.ant-btn {\n ",";\n ","\n ","\n ","\n ","\n ","\n ","\n }\n "],["\n &.ant-btn {\n ",";\n ","\n ","\n ","\n ","\n ","\n ","\n }\n "])),Mt,"small"===i?rn:nn,"primary"===o&&sn,"secondary"===o&&ln,"tertiary"===o&&cn,function(e){return"\n & > svg {\n height: ".concat("small"===e?"20px":"24px",";\n width: ").concat("small"===e?"20px":"24px",";\n }\n")}(i),c&&function(e){return un[e]||un.primary}(o)),R=c?"straitsx-button-disabled":void 0;return m?l.default.createElement(P,r.__assign({className:"".concat(h," ").concat(R),disabled:c},g),m):l.default.createElement(A,r.__assign({className:"".concat(h," ").concat(R),disabled:c},g),f)},pn="Hanken Grotesk";exports.FONT_WEIGHT=void 0,function(e){e[e.BOLD=700]="BOLD",e[e.MEDIUM=500]="MEDIUM",e[e.REGULAR=400]="REGULAR"}(exports.FONT_WEIGHT||(exports.FONT_WEIGHT={})),exports.FONT_SIZE=void 0,(Zt=exports.FONT_SIZE||(exports.FONT_SIZE={})).H1="24px",Zt.H1_MOBILE="24px",Zt.H2="18px",Zt.H2_MOBILE="20px",Zt.H3="16px",Zt.H3_MOBILE="18px",Zt.H4="14px",Zt.P1="14px",Zt.P1_MOBILE="16px",Zt.SMALL="12px",Zt.SMALL_MOBILE="14px";var hn={large:{height:"48px",borderRadius:"12px",padding:"12px 16px"},small:{height:"36px",borderRadius:"8px",padding:"8px 12px"}};exports.LINE_HEIGHT=void 0,function(e){e.H1="29px",e.H1_MOBILE="28px",e.H2="22px",e.H2_MOBILE="23px",e.H3="19px",e.H3_MOBILE="21px",e.H4="17px",e.P1="17px",e.P1_MOBILE="19px",e.SMALL="15px",e.SMALL_MOBILE="17px"}(exports.LINE_HEIGHT||(exports.LINE_HEIGHT={}));var fn,mn,gn,vn,bn,yn,xn,wn,_n,Sn,En,kn,On,Cn,Mn,Tn,An,Pn,Rn,Nn,Dn,In,Fn=function(e){var n,o=e.className,i=e.alignTitle,a=void 0===i?"center":i,s=e.alignBody,c=void 0===s?"left":s,u=e.type,d=void 0===u?"default":u,p=r.__rest(e,["className","alignTitle","alignBody","type"]),h=en(),f=h.card,m=h.text,g=h.neutral,v="\n color: ".concat("default"===d?m.default:m.white,";\n\n & > div > div {\n color: ").concat("default"===d?m.default:m.white,";\n }\n\n h1 {\n color: ").concat("default"===d?m.default:m.white,";\n }\n "),b=we(fn||(fn=r.__makeTemplateObject(["\n border-radius: 4px;\n border-width: 1px;\n border-style: solid;\n border-color: ",";\n background: "," !important;\n\n & > .ant-card-head {\n padding: 0 15px;\n font-weight: ",";\n font-size: ",";\n line-height: ",";\n ",";\n\n .ant-card-head-title {\n padding: 15px 0;\n white-space: normal;\n ",";\n }\n\n .ant-card-extra {\n padding: 15px 0;\n font-weight: ",";\n font-size: ",";\n line-height: ",";\n ",";\n }\n }\n\n & > .ant-card-body {\n padding: 15px;\n font-weight: ",";\n font-size: ",";\n line-height: ",";\n ",";\n }\n "],["\n border-radius: 4px;\n border-width: 1px;\n border-style: solid;\n border-color: ",";\n background: "," !important;\n\n & > .ant-card-head {\n padding: 0 15px;\n font-weight: ",";\n font-size: ",";\n line-height: ",";\n ",";\n\n .ant-card-head-title {\n padding: 15px 0;\n white-space: normal;\n ",";\n }\n\n .ant-card-extra {\n padding: 15px 0;\n font-weight: ",";\n font-size: ",";\n line-height: ",";\n ",";\n }\n }\n\n & > .ant-card-body {\n padding: 15px;\n font-weight: ",";\n font-size: ",";\n line-height: ",";\n ",";\n }\n "])),g.border,"default"===d?f.background.default:f.background.dark,exports.FONT_WEIGHT.BOLD,exports.FONT_SIZE.P1_MOBILE,exports.LINE_HEIGHT.P1_MOBILE,v,v,exports.FONT_WEIGHT.BOLD,exports.FONT_SIZE.P1_MOBILE,exports.LINE_HEIGHT.P1_MOBILE,v,exports.FONT_WEIGHT.REGULAR,exports.FONT_SIZE.P1_MOBILE,exports.LINE_HEIGHT.P1_MOBILE,v);return l.default.createElement(t.Card,r.__assign({className:xe(b,o,(n=a,we(mn||(mn=r.__makeTemplateObject(["\n .ant-card-head-wrapper {\n align-items: ",";\n }\n "],["\n .ant-card-head-wrapper {\n align-items: ",";\n }\n "])),n)),function(e){return we(gn||(gn=r.__makeTemplateObject(["\n .ant-card-body {\n text-align: ",";\n }\n "],["\n .ant-card-body {\n text-align: ",";\n }\n "])),e)}(c))},p))},Ln=dt.h1(vn||(vn=r.__makeTemplateObject(["\n ",";\n ",";\n"],["\n ",";\n ",";\n"])),Mt,Tt),jn=dt.h2(bn||(bn=r.__makeTemplateObject(["\n ",";\n ",";\n"],["\n ",";\n ",";\n"])),Mt,At),zn=dt.h3(yn||(yn=r.__makeTemplateObject(["\n ",";\n ",";\n"],["\n ",";\n ",";\n"])),Mt,Pt),Bn=dt.div(xn||(xn=r.__makeTemplateObject(["\n ",";\n ",";\n"],["\n ",";\n ",";\n"])),Mt,Rt),Hn=dt.div(wn||(wn=r.__makeTemplateObject(["\n ",";\n ",";\n"],["\n ",";\n ",";\n"])),Mt,Ft),Vn=dt.div(_n||(_n=r.__makeTemplateObject(["\n ",";\n ",";\n"],["\n ",";\n ",";\n"])),Mt,Nt),$n=dt.h4(Sn||(Sn=r.__makeTemplateObject(["\n ",";\n ",";\n"],["\n ",";\n ",";\n"])),Mt,Ft),Wn={xs:"5px",sm:zt,md:Bt,lg:Ht,xl:Vt},Un=function(e){var t=e.spacing,n=r.__rest(e,["spacing"]),o=en().divider,i=dt.hr(En||(En=r.__makeTemplateObject(["\n border: none;\n height: 1px;\n margin-top: ",";\n margin-bottom: ",";\n flex-shrink: 0;\n background-color: ",";\n "],["\n border: none;\n height: 1px;\n margin-top: ",";\n margin-bottom: ",";\n flex-shrink: 0;\n background-color: ",";\n "])),t?Wn[t]:0,t?Wn[t]:0,o.background);return l.default.createElement(i,r.__assign({},n))},Gn=dt.div(Tn||(Tn=r.__makeTemplateObject(["\n background: #ffffff;\n border: ",";\n border-radius: 5px;\n\n box-shadow: ",";\n\n transition: max-height 0.3s ease;\n\n overflow: hidden;\n\n &:not(:last-child) {\n margin-bottom: 20px;\n }\n\n padding: 0px 30px 0px 30px;\n\n max-height: ","px;\n\n "," {\n max-height: ","px;\n }\n\n ",";\n"],["\n background: #ffffff;\n border: ",";\n border-radius: 5px;\n\n box-shadow: ",";\n\n transition: max-height 0.3s ease;\n\n overflow: hidden;\n\n &:not(:last-child) {\n margin-bottom: 20px;\n }\n\n padding: 0px 30px 0px 30px;\n\n max-height: ","px;\n\n "," {\n max-height: ","px;\n }\n\n ",";\n"])),function(e){return!e.withBoxShadow&&"1px solid #e8e8e8"},function(e){return e.withBoxShadow&&"0px 4px 15px rgba(149, 149, 149, 0.25)"},function(e){return e.headerHeightMobile},Et,function(e){return e.headerHeightDesktop},function(e){return e.open&&"\n max-height: 2000px !important;\n ".concat(Et," {\n max-height: 1200px !important;\n }\n ")}),Yn=dt.div(An||(An=r.__makeTemplateObject(["\n cursor: pointer;\n padding: 30px 0px;\n height: ","px;\n\n "," {\n height: ","px;\n }\n"],["\n cursor: pointer;\n padding: 30px 0px;\n height: ","px;\n\n "," {\n height: ","px;\n }\n"])),function(e){return e.headerHeightMobile},Et,function(e){return e.headerHeightDesktop}),Xn=dt.div(Pn||(Pn=r.__makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n"],["\n display: flex;\n align-items: center;\n justify-content: space-between;\n"]))),qn=dt(Bn)(Rn||(Rn=r.__makeTemplateObject(["\n display: none;\n\n "," {\n display: inline;\n margin: 0px 12px 0px 0px;\n }\n"],["\n display: none;\n\n "," {\n display: inline;\n margin: 0px 12px 0px 0px;\n }\n"])),Et),Kn=dt(n.SvgArrowUp)(Nn||(Nn=r.__makeTemplateObject(["\n width: 25px;\n height: 25px;\n transform: rotate(180deg);\n transition: transform 0.3s ease;\n transform: ",";\n"],["\n width: 25px;\n height: 25px;\n transform: rotate(180deg);\n transition: transform 0.3s ease;\n transform: ",";\n"])),function(e){return e.open&&"rotate(0deg)"}),Zn=dt.div(Dn||(Dn=r.__makeTemplateObject(["\n display: flex;\n align-items: center;\n"],["\n display: flex;\n align-items: center;\n"])));
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("react"),e=require("antd"),n=require("./StraitsXDecoVertical-70fd7a91.js"),i=require("./_tslib-33b9f00a.js"),o=require("react-dom"),r=require("./StraitsXPersonalAccountLightLogo-44c49e48.js");function a(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var s=a(t),l=a(o);var c=function(){function t(t){this.isSpeedy=void 0===t.speedy?"production"===process.env.NODE_ENV:t.speedy,this.tags=[],this.ctr=0,this.nonce=t.nonce,this.key=t.key,this.container=t.container,this.before=null}var e=t.prototype;return e.insert=function(t){if(this.ctr%(this.isSpeedy?65e3:1)==0){var e,n=function(t){var e=document.createElement("style");return e.setAttribute("data-emotion",t.key),void 0!==t.nonce&&e.setAttribute("nonce",t.nonce),e.appendChild(document.createTextNode("")),e}(this);e=0===this.tags.length?this.before:this.tags[this.tags.length-1].nextSibling,this.container.insertBefore(n,e),this.tags.push(n)}var i=this.tags[this.tags.length-1];if(this.isSpeedy){var o=function(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]}(i);try{var r=105===t.charCodeAt(1)&&64===t.charCodeAt(0);o.insertRule(t,r?0:o.cssRules.length)}catch(e){"production"!==process.env.NODE_ENV&&console.warn('There was a problem inserting the following rule: "'+t+'"',e)}}else i.appendChild(document.createTextNode(t));this.ctr++},e.flush=function(){this.tags.forEach(function(t){return t.parentNode.removeChild(t)}),this.tags=[],this.ctr=0},t}();function d(t){function e(t,i,l,c,u){for(var p,f,g,m,y,w=0,k=0,S=0,E=0,O=0,R=0,P=g=p=0,N=0,F=0,z=0,B=0,j=l.length,Y=j-1,H="",W="",V="",U="";N<j;){if(f=l.charCodeAt(N),N===Y&&0!==k+E+S+w&&(0!==k&&(f=47===k?10:47),E=S=w=0,j++,Y++),0===k+E+S+w){if(N===Y&&(0<F&&(H=H.replace(h,"")),0<H.trim().length)){switch(f){case 32:case 9:case 59:case 13:case 10:break;default:H+=l.charAt(N)}f=59}switch(f){case 123:for(p=(H=H.trim()).charCodeAt(0),g=1,B=++N;N<j;){switch(f=l.charCodeAt(N)){case 123:g++;break;case 125:g--;break;case 47:switch(f=l.charCodeAt(N+1)){case 42:case 47:t:{for(P=N+1;P<Y;++P)switch(l.charCodeAt(P)){case 47:if(42===f&&42===l.charCodeAt(P-1)&&N+2!==P){N=P+1;break t}break;case 10:if(47===f){N=P+1;break t}}N=P}}break;case 91:f++;case 40:f++;case 34:case 39:for(;N++<Y&&l.charCodeAt(N)!==f;);}if(0===g)break;N++}if(g=l.substring(B,N),0===p&&(p=(H=H.replace(d,"").trim()).charCodeAt(0)),64===p){switch(0<F&&(H=H.replace(h,"")),f=H.charCodeAt(1)){case 100:case 109:case 115:case 45:F=i;break;default:F=A}if(B=(g=e(i,F,g,f,u+1)).length,0<L&&(y=s(3,g,F=n(A,H,z),i,M,T,B,f,u,c),H=F.join(""),void 0!==y&&0===(B=(g=y.trim()).length)&&(f=0,g="")),0<B)switch(f){case 115:H=H.replace(_,a);case 100:case 109:case 45:g=H+"{"+g+"}";break;case 107:g=(H=H.replace(b,"$1 $2"))+"{"+g+"}",g=1===C||2===C&&r("@"+g,3)?"@-webkit-"+g+"@"+g:"@"+g;break;default:g=H+g,112===c&&(W+=g,g="")}else g=""}else g=e(i,n(i,H,z),g,c,u+1);V+=g,g=z=F=P=p=0,H="",f=l.charCodeAt(++N);break;case 125:case 59:if(1<(B=(H=(0<F?H.replace(h,""):H).trim()).length))switch(0===P&&(p=H.charCodeAt(0),45===p||96<p&&123>p)&&(B=(H=H.replace(" ",":")).length),0<L&&void 0!==(y=s(1,H,i,t,M,T,W.length,c,u,c))&&0===(B=(H=y.trim()).length)&&(H="\0\0"),p=H.charCodeAt(0),f=H.charCodeAt(1),p){case 0:break;case 64:if(105===f||99===f){U+=H+l.charAt(N);break}default:58!==H.charCodeAt(B-1)&&(W+=o(H,p,f,H.charCodeAt(2)))}z=F=P=p=0,H="",f=l.charCodeAt(++N)}}switch(f){case 13:case 10:47===k?k=0:0===1+p&&107!==c&&0<H.length&&(F=1,H+="\0"),0<L*I&&s(0,H,i,t,M,T,W.length,c,u,c),T=1,M++;break;case 59:case 125:if(0===k+E+S+w){T++;break}default:switch(T++,m=l.charAt(N),f){case 9:case 32:if(0===E+w+k)switch(O){case 44:case 58:case 9:case 32:m="";break;default:32!==f&&(m=" ")}break;case 0:m="\\0";break;case 12:m="\\f";break;case 11:m="\\v";break;case 38:0===E+k+w&&(F=z=1,m="\f"+m);break;case 108:if(0===E+k+w+D&&0<P)switch(N-P){case 2:112===O&&58===l.charCodeAt(N-3)&&(D=O);case 8:111===R&&(D=R)}break;case 58:0===E+k+w&&(P=N);break;case 44:0===k+S+E+w&&(F=1,m+="\r");break;case 34:case 39:0===k&&(E=E===f?0:0===E?f:E);break;case 91:0===E+k+S&&w++;break;case 93:0===E+k+S&&w--;break;case 41:0===E+k+w&&S--;break;case 40:if(0===E+k+w){if(0===p)if(2*O+3*R==533);else p=1;S++}break;case 64:0===k+S+E+w+P+g&&(g=1);break;case 42:case 47:if(!(0<E+w+S))switch(k){case 0:switch(2*f+3*l.charCodeAt(N+1)){case 235:k=47;break;case 220:B=N,k=42}break;case 42:47===f&&42===O&&B+2!==N&&(33===l.charCodeAt(B+2)&&(W+=l.substring(B,N+1)),m="",k=0)}}0===k&&(H+=m)}R=O,O=f,N++}if(0<(B=W.length)){if(F=i,0<L&&(void 0!==(y=s(2,W,F,t,M,T,B,c,u,c))&&0===(W=y).length))return U+W+V;if(W=F.join(",")+"{"+W+"}",0!==C*D){switch(2!==C||r(W,2)||(D=0),D){case 111:W=W.replace(v,":-moz-$1")+W;break;case 112:W=W.replace(x,"::-webkit-input-$1")+W.replace(x,"::-moz-$1")+W.replace(x,":-ms-input-$1")+W}D=0}}return U+W+V}function n(t,e,n){var o=e.trim().split(g);e=o;var r=o.length,a=t.length;switch(a){case 0:case 1:var s=0;for(t=0===a?"":t[0]+" ";s<r;++s)e[s]=i(t,e[s],n).trim();break;default:var l=s=0;for(e=[];s<r;++s)for(var c=0;c<a;++c)e[l++]=i(t[c]+" ",o[s],n).trim()}return e}function i(t,e,n){var i=e.charCodeAt(0);switch(33>i&&(i=(e=e.trim()).charCodeAt(0)),i){case 38:return e.replace(m,"$1"+t.trim());case 58:return t.trim()+e.replace(m,"$1"+t.trim());default:if(0<1*n&&0<e.indexOf("\f"))return e.replace(m,(58===t.charCodeAt(0)?"":"$1")+t.trim())}return t+e}function o(t,e,n,i){var a=t+";",s=2*e+3*n+4*i;if(944===s){t=a.indexOf(":",9)+1;var l=a.substring(t,a.length-1).trim();return l=a.substring(0,t).trim()+l+";",1===C||2===C&&r(l,1)?"-webkit-"+l+l:l}if(0===C||2===C&&!r(a,1))return a;switch(s){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(O,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(l=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+l+a;case 1005:return p.test(a)?a.replace(u,":-webkit-")+a.replace(u,":-moz-")+a:a;case 1e3:switch(e=(l=a.substring(13).trim()).indexOf("-")+1,l.charCodeAt(0)+l.charCodeAt(e)){case 226:l=a.replace(y,"tb");break;case 232:l=a.replace(y,"tb-rl");break;case 220:l=a.replace(y,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+l+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(e=(a=t).length-10,s=(l=(33===a.charCodeAt(e)?a.substring(0,e):a).substring(t.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|l.charCodeAt(7))){case 203:if(111>l.charCodeAt(8))break;case 115:a=a.replace(l,"-webkit-"+l)+";"+a;break;case 207:case 102:a=a.replace(l,"-webkit-"+(102<s?"inline-":"")+"box")+";"+a.replace(l,"-webkit-"+l)+";"+a.replace(l,"-ms-"+l+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return l=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+l+"-ms-flex-"+l+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(k,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(k,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===E.test(t))return 115===(l=t.substring(t.indexOf(":")+1)).charCodeAt(0)?o(t.replace("stretch","fill-available"),e,n,i).replace(":fill-available",":stretch"):a.replace(l,"-webkit-"+l)+a.replace(l,"-moz-"+l.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===n+i&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(f,"$1-webkit-$2")+a}return a}function r(t,e){var n=t.indexOf(1===e?":":"{"),i=t.substring(0,3!==e?n:10);return n=t.substring(n+1,t.length-1),P(2!==e?i:i.replace(S,"$1"),n,e)}function a(t,e){var n=o(e,e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2));return n!==e+";"?n.replace(w," or ($1)").substring(4):"("+e+")"}function s(t,e,n,i,o,r,a,s,l,d){for(var h,u=0,p=e;u<L;++u)switch(h=R[u].call(c,t,p,n,i,o,r,a,s,l,d)){case void 0:case!1:case!0:case null:break;default:p=h}if(p!==e)return p}function l(t){return void 0!==(t=t.prefix)&&(P=null,t?"function"!=typeof t?C=1:(C=2,P=t):C=0),l}function c(t,n){var i=t;if(33>i.charCodeAt(0)&&(i=i.trim()),i=[i],0<L){var o=s(-1,n,i,i,M,T,0,0,0,0);void 0!==o&&"string"==typeof o&&(n=o)}var r=e(A,i,n,0,0);return 0<L&&(void 0!==(o=s(-2,r,i,i,M,T,r.length,0,0,0))&&(r=o)),D=0,T=M=1,r}var d=/^\0+/g,h=/[\0\r\f]/g,u=/: */g,p=/zoo|gra/,f=/([,: ])(transform)/g,g=/,\r+?/g,m=/([\t\r\n ])*\f?&/g,b=/@(k\w+)\s*(\S*)\s*/,x=/::(place)/g,v=/:(read-only)/g,y=/[svh]\w+-[tblr]{2}/,_=/\(\s*(.*)\s*\)/g,w=/([\s\S]*?);/g,k=/-self|flex-/g,S=/[^]*?(:[rp][el]a[\w-]+)[^]*/,E=/stretch|:\s*\w+\-(?:conte|avail)/,O=/([^-])(image-set\()/,T=1,M=1,D=0,C=1,A=[],R=[],L=0,P=null,I=0;return c.use=function t(e){switch(e){case void 0:case null:L=R.length=0;break;default:if("function"==typeof e)R[L++]=e;else if("object"==typeof e)for(var n=0,i=e.length;n<i;++n)t(e[n]);else I=0|!!e}return t},c.set=l,void 0!==t&&l(t),c}var h=function(t){var e=new WeakMap;return function(n){if(e.has(n))return e.get(n);var i=t(n);return e.set(n,i),i}},u="/*|*/",p=u+"}";function f(t){t&&g.current.insert(t+"}")}var g={current:null},m=function(t,e,n,i,o,r,a,s,l,c){switch(t){case 1:switch(e.charCodeAt(0)){case 64:return g.current.insert(e+";"),"";case 108:if(98===e.charCodeAt(2))return""}break;case 2:if(0===s)return e+u;break;case 3:switch(s){case 102:case 112:return g.current.insert(n[0]+e),"";default:return e+(0===c?u:"")}case-2:e.split(p).forEach(f)}},b=function(t,e){if(1===t&&108===e.charCodeAt(0)&&98===e.charCodeAt(2))return""},x="undefined"!=typeof document,v={},y=x?void 0:h(function(){var t=h(function(){return{}}),e={},n={};return function(i){return void 0===i||!0===i?e:!1===i?n:t(i)}}),_=function(t){void 0===t&&(t={});var e,n=t.key||"css";void 0!==t.prefix&&(e={prefix:t.prefix});var i=new d(e);if("production"!==process.env.NODE_ENV&&/[^a-z-]/.test(n))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+n+'" was passed');var o,r,a={};if(x){o=t.container||document.head;var s=document.querySelectorAll("style[data-emotion-"+n+"]");Array.prototype.forEach.call(s,function(t){t.getAttribute("data-emotion-"+n).split(" ").forEach(function(t){a[t]=!0}),t.parentNode!==o&&o.appendChild(t)})}if(x)i.use(t.stylisPlugins)(m),r=function(t,e,n,o){var r=e.name;if(g.current=n,"production"!==process.env.NODE_ENV&&void 0!==e.map){var a=e.map;g.current={insert:function(t){n.insert(t+a)}}}i(t,e.styles),o&&(p.inserted[r]=!0)};else{i.use(b);var l=v;(t.stylisPlugins||void 0!==t.prefix)&&(i.use(t.stylisPlugins),l=y(t.stylisPlugins||v)(t.prefix));r=function(t,e,n,o){var r=e.name,a=function(t,e){var n=e.name;return void 0===l[n]&&(l[n]=i(t,e.styles)),l[n]}(t,e);return void 0===p.compat?(o&&(p.inserted[r]=!0),"development"===process.env.NODE_ENV&&void 0!==e.map?a+e.map:a):o?void(p.inserted[r]=a):a}}if("production"!==process.env.NODE_ENV){var h=/\/\*/g,u=/\*\//g;i.use(function(t,e){if(-1===t){for(;h.test(e);){if(u.lastIndex=h.lastIndex,!u.test(e))throw new Error('Your styles have an unterminated comment ("/*" without corresponding "*/").');h.lastIndex=u.lastIndex}h.lastIndex=0}}),i.use(function(t,e,n){if(-1===t){var i=e.match(/(:first|:nth|:nth-last)-child/g);i&&!0!==p.compat&&i.forEach(function(t){var n=new RegExp(t+".*\\/\\* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason \\*\\/").test(e);t&&!n&&console.error('The pseudo class "'+t+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+t.split("-child")[0]+'-of-type".')})}})}var p={key:n,sheet:new c({key:n,container:o,nonce:t.nonce,speedy:t.speedy}),nonce:t.nonce,inserted:a,registered:{},insert:r};return p};function w(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var k,S={exports:{}},E={};var O,T,M={};var D=w((T||(T=1,"production"===process.env.NODE_ENV?S.exports=(k||(k=1,Object.defineProperty(E,"__esModule",{value:!0}),E.default={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}),E):S.exports=(O||(O=1,Object.defineProperty(M,"__esModule",{value:!0}),M.default={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}),M)),S.exports));function C(t){var e={};return function(n){return void 0===e[n]&&(e[n]=t(n)),e[n]}}var A="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences",R="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",L=/[A-Z]|^ms/g,P=/_EMO_([^_]+?)_([^]*?)_EMO_/g,I=function(t){return 45===t.charCodeAt(1)},N=function(t){return null!=t&&"boolean"!=typeof t},F=C(function(t){return I(t)?t:t.replace(L,"-$&").toLowerCase()}),z=function(t,e){switch(t){case"animation":case"animationName":if("string"==typeof e)return e.replace(P,function(t,e,n){return X={name:e,styles:n,next:X},e})}return 1===D[t]||I(t)||"number"!=typeof e||0===e?e:e+"px"};if("production"!==process.env.NODE_ENV){var B=/(attr|calc|counters?|url)\(/,j=["normal","none","counter","open-quote","close-quote","no-open-quote","no-close-quote","initial","inherit","unset"],Y=z,H=/^-ms-/,W=/-(.)/g,V={};z=function(t,e){"content"===t&&("string"!=typeof e||-1===j.indexOf(e)&&!B.test(e)&&(e.charAt(0)!==e.charAt(e.length-1)||'"'!==e.charAt(0)&&"'"!==e.charAt(0)))&&console.error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+e+"\"'`");var n=Y(t,e);return""===n||I(t)||-1===t.indexOf("-")||void 0!==V[t]||(V[t]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+t.replace(H,"ms-").replace(W,function(t,e){return e.toUpperCase()})+"?")),n}}var U=!0;function G(t,e,n,i){if(null==n)return"";if(void 0!==n.__emotion_styles){if("production"!==process.env.NODE_ENV&&"NO_COMPONENT_SELECTOR"===n.toString())throw new Error("Component selectors can only be used in conjunction with babel-plugin-emotion.");return n}switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return X={name:n.name,styles:n.styles,next:X},n.name;if(void 0!==n.styles){var o=n.next;if(void 0!==o)for(;void 0!==o;)X={name:o.name,styles:o.styles,next:X},o=o.next;var r=n.styles+";";return"production"!==process.env.NODE_ENV&&void 0!==n.map&&(r+=n.map),r}return function(t,e,n){var i="";if(Array.isArray(n))for(var o=0;o<n.length;o++)i+=G(t,e,n[o],!1);else for(var r in n){var a=n[r];if("object"!=typeof a)null!=e&&void 0!==e[a]?i+=r+"{"+e[a]+"}":N(a)&&(i+=F(r)+":"+z(r,a)+";");else{if("NO_COMPONENT_SELECTOR"===r&&"production"!==process.env.NODE_ENV)throw new Error("Component selectors can only be used in conjunction with babel-plugin-emotion.");if(!Array.isArray(a)||"string"!=typeof a[0]||null!=e&&void 0!==e[a[0]]){var s=G(t,e,a,!1);switch(r){case"animation":case"animationName":i+=F(r)+":"+s+";";break;default:"production"!==process.env.NODE_ENV&&"undefined"===r&&console.error(R),i+=r+"{"+s+"}"}}else for(var l=0;l<a.length;l++)N(a[l])&&(i+=F(r)+":"+z(r,a[l])+";")}}return i}(t,e,n);case"function":if(void 0!==t){var a=X,s=n(t);return X=a,G(t,e,s,i)}"production"!==process.env.NODE_ENV&&console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break;case"string":if("production"!==process.env.NODE_ENV){var l=[],c=n.replace(P,function(t,e,n){var i="animation"+l.length;return l.push("const "+i+" = keyframes`"+n.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+i+"}"});l.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(l,["`"+c+"`"]).join("\n")+"\n\nYou should wrap it with `css` like this:\n\ncss`"+c+"`")}}if(null==e)return n;var d=e[n];return"production"!==process.env.NODE_ENV&&i&&U&&void 0!==d&&(console.error("Interpolating a className from css`` is not recommended and will cause problems with composition.\nInterpolating a className from css`` will be completely unsupported in a future major version of Emotion"),U=!1),void 0===d||i?n:d}var $,X,q=/label:\s*([^\s;\n{]+)\s*;/g;"production"!==process.env.NODE_ENV&&($=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//);var Z=function(t,e,n){if(1===t.length&&"object"==typeof t[0]&&null!==t[0]&&void 0!==t[0].styles)return t[0];var i=!0,o="";X=void 0;var r,a=t[0];null==a||void 0===a.raw?(i=!1,o+=G(n,e,a,!1)):("production"!==process.env.NODE_ENV&&void 0===a[0]&&console.error(A),o+=a[0]);for(var s=1;s<t.length;s++)o+=G(n,e,t[s],46===o.charCodeAt(o.length-1)),i&&("production"!==process.env.NODE_ENV&&void 0===a[s]&&console.error(A),o+=a[s]);"production"!==process.env.NODE_ENV&&(o=o.replace($,function(t){return r=t,""})),q.lastIndex=0;for(var l,c="";null!==(l=q.exec(o));)c+="-"+l[1];var d=function(t){for(var e,n=0,i=0,o=t.length;o>=4;++i,o-=4)e=1540483477*(65535&(e=255&t.charCodeAt(i)|(255&t.charCodeAt(++i))<<8|(255&t.charCodeAt(++i))<<16|(255&t.charCodeAt(++i))<<24))+(59797*(e>>>16)<<16),n=1540483477*(65535&(e^=e>>>24))+(59797*(e>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&t.charCodeAt(i+2))<<16;case 2:n^=(255&t.charCodeAt(i+1))<<8;case 1:n=1540483477*(65535&(n^=255&t.charCodeAt(i)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+c;return"production"!==process.env.NODE_ENV?{name:d,styles:o,map:r,next:X,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}:{name:d,styles:o,next:X}},K="undefined"!=typeof document;function J(t,e,n){var i="";return n.split(" ").forEach(function(n){void 0!==t[n]?e.push(t[n]):i+=n+" "}),i}var Q=function(t,e,n){var i=t.key+"-"+e.name;if((!1===n||!1===K&&void 0!==t.compat)&&void 0===t.registered[i]&&(t.registered[i]=e.styles),void 0===t.inserted[e.name]){var o="",r=e;do{var a=t.insert("."+i,r,t.sheet,!0);K||void 0===a||(o+=a),r=r.next}while(void 0!==r);if(!K&&0!==o.length)return o}};function tt(t,e){if(void 0===t.inserted[e.name])return t.insert("",e,t.sheet,!0)}function et(t,e,n){var i=[],o=J(t,i,n);return i.length<2?n:o+e(i)}var nt,it,ot,rt,at,st,lt,ct,dt,ht,ut,pt,ft,gt=function t(e){for(var n="",i=0;i<e.length;i++){var o=e[i];if(null!=o){var r=void 0;switch(typeof o){case"boolean":break;case"object":if(Array.isArray(o))r=t(o);else for(var a in r="",o)o[a]&&a&&(r&&(r+=" "),r+=a);break;default:r=o}r&&(n&&(n+=" "),n+=r)}}return n},mt=function(t){var e=_(t);e.sheet.speedy=function(t){if("production"!==process.env.NODE_ENV&&0!==this.ctr)throw new Error("speedy must be changed before any rules are inserted");this.isSpeedy=t},e.compat=!0;var n=function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];var o=Z(n,e.registered,void 0);return Q(e,o,!1),e.key+"-"+o.name};return{css:n,cx:function(){for(var t=arguments.length,i=new Array(t),o=0;o<t;o++)i[o]=arguments[o];return et(e.registered,n,gt(i))},injectGlobal:function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];var o=Z(n,e.registered);tt(e,o)},keyframes:function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];var o=Z(n,e.registered),r="animation-"+o.name;return tt(e,{name:o.name,styles:"@keyframes "+r+"{"+o.styles+"}"}),r},hydrate:function(t){t.forEach(function(t){e.inserted[t]=!0})},flush:function(){e.registered={},e.inserted={},e.sheet.flush()},sheet:e.sheet,cache:e,getRegisteredStyles:J.bind(null,e.registered),merge:et.bind(null,e.registered,n)}}(),bt=mt.cx,xt=mt.css;!function(t){t.DEFAULT="#1B2736",t.T10="#2C4058",t.T20="#3E597A",t.T30="#4F719C"}(nt||(nt={})),function(t){t.DEFAULT="#2F8DEE",t.T10="#5FA8F2",t.T20="#8EC2F6",t.T40="#ECF5FD",t.S400="#1863B0",t.S300="#3585E6",t.S100="#EBF5FF",t.LINK="#187D97"}(it||(it={})),function(t){t.S500="#00D37E",t.S400="#189C08",t.S300="#43CC32",t.S100="#F0FFF3",t.DEFAULT="#00A965",t.CONTRAST="#002B2A",t.G100="#F0FFF9",t.HOVER="#00B86D",t.HOVER_SECONDARY="#E5EDEC",t.HOVER_TERTIARY="rgba(5, 73, 72, 0.1)",t.PRESSED="#009E5A",t.PRESSED_SECONDARY="#E6ECEC",t.PRESSED_TERTIARY="rgba(5, 73, 72, 0.15)",t.BASE="#054948"}(ot||(ot={})),function(t){t.S500="#777777",t.S400="#959595",t.T10="#ADADAD",t.S300="#CACACA",t.S200="#E8E8E8",t.S100="#F6F7F9",t.S50="#FFFFFF",t.BLUISH="#D3D7DE",t.BASE="#D8D8D8",t.OUTLINE="#505454"}(rt||(rt={})),function(t){t.S400="#B71515",t.S300="#E22726",t.S100="#FFF0F0"}(at||(at={})),function(t){t.DEFAULT="#FFFFFF"}(st||(st={})),function(t){t.S400="#8D7700",t.S300="#E5C412",t.S100="#FFFBE9"}(lt||(lt={})),function(t){t.NEUTRAL="#FFFFFF",t.SECONDARY_NEUTRAL="#F6F7F9",t.PRIMARY="#00A965",t.SECONDARY="#F6FEFB"}(ct||(ct={})),function(t){t.NEUTRAL="#FFFFFF",t.SECONDARY_NEUTRAL="#F6F7F9",t.DISABLED_SURFACE="#F2F4F5",t.DISABLED_ON_SURFACE="#9D9E9F",t.DARK="#051513",t.SUBDUE_INFO="#EEF6FF",t.SUBDUE_POSITIVE="#F0F9F4",t.SUBDUE_WARNING="#FFFAEA",t.SUBDUE_CRITICAL="#FFF1F1"}(dt||(dt={})),function(t){t.PRIMARY="#00D37E",t.PRIMARY_2="#054948",t.PRIMARY_3="#002B2A",t.ON_CONTAINER="#FFFFFF",t.ON_NEUTRAL="#002B2A",t.ON_NEUTRAL_SECONDARY="#505454",t.LINE="#D8D8D8",t.LINK="#187D97",t.OVERLAY="rgb(5, 21, 19, 0.7)"}(ht||(ht={})),function(t){t.HOVER_PRIMARY="#008F56",t.FOCUS_DEFAULT="#42FFB4",t.PRESSED_PRIMARY="#007546",t.SELECTED="#F0FFF9",t.HOVER_SURFACE="#ECECEC",t.FOCUS_SURFACE="#E3E3E3",t.PRESSED_SURFACE="#E3E3E3",t.HOVER_CRITICAL="#B92B22",t.PRESSED_CRITICAL="#A92920"}(ut||(ut={})),function(t){t.INFO="#0C45E1",t.POSITIVE="#257C58",t.WARNING="#FC9A07",t.CRITICAL="#DF1312"}(pt||(pt={})),function(t){t.BUTTON_DISABLED="#BDBDBD",t.BUTTON_PRIMARY="#00A965",t.LABEL_INPUT="#757575",t.HELPER_INPUT="#757575",t.PLACEHOLDER_INPUT="#B6B6B6"}(ft||(ft={}));var vt,yt={display:{FONT_SIZE:{lg:"64px",md:"45px",sm:"36px"},LINE_HEIGHT:{lg:"78px",md:"54px",sm:"44px"},FONT_WEIGHT:{lg:"700",md:"700",sm:"700"},LETTER_SPACING:{lg:"-0.03em",md:"-0.03em",sm:"-0.03em"}},headline:{FONT_SIZE:{lg:"28px",md:"24px",sm:"20px"},LINE_HEIGHT:{lg:"48px",md:"42px",sm:"36px"},FONT_WEIGHT:{lg:"400",md:"400",sm:"400"},LETTER_SPACING:{lg:"0em",md:"0em",sm:"0em"}},title:{FONT_SIZE:{lg:"28px",md:"24px",sm:"20px"},LINE_HEIGHT:{lg:"42px",md:"36px",sm:"30px"},FONT_WEIGHT:{lg:"700",md:"700",sm:"700"},LETTER_SPACING:{lg:"-0.02em",md:"-0.02em",sm:"-0.02em"}},label:{FONT_SIZE:{lg:"16px",md:"14px",sm:"12px"},LINE_HEIGHT:{lg:"24px",md:"20px",sm:"18px"},FONT_WEIGHT:{lg:"700",md:"700",sm:"700"},LETTER_SPACING:{lg:"-0.01em",md:"-0.01em",sm:"-0.01em"}},body:{FONT_SIZE:{lg:"16px",md:"14px",sm:"12px"},LINE_HEIGHT:{lg:"24px",md:"20px",sm:"18px"},FONT_WEIGHT:{lg:"400",md:"400",sm:"400"},LETTER_SPACING:{lg:"-0.01em",md:"-0.01em",sm:"-0.01em"}}},_t={normal:"overflow: auto; text-overflow: unset;",wrap:"overflow: auto; text-wrap: wrap; word-break: break-word;",hidden:"overflow: hidden; white-space: nowrap; text-overflow: ellipsis;"},wt=function(t,e){var n,o,r,a;return xt(vt||(vt=i.__makeTemplateObject(["\n display: ",";\n text-align: ",";\n\n font-size: ",";\n line-height: ",";\n font-weight: ",";\n letter-spacing: ",";\n color: ",";\n font-family: ",";\n\n margin: 0;\n\n ",";\n "],["\n display: ",";\n text-align: ",";\n\n font-size: ",";\n line-height: ",";\n font-weight: ",";\n letter-spacing: ",";\n color: ",";\n font-family: ",";\n\n margin: 0;\n\n ",";\n "])),null!==(n=e.display)&&void 0!==n?n:"block",null!==(o=e.align)&&void 0!==o?o:"inherit",yt[t].FONT_SIZE[e.size],yt[t].LINE_HEIGHT[e.size],yt[t].FONT_WEIGHT[e.size],yt[t].LETTER_SPACING[e.size],null!==(r=e.color)&&void 0!==r?r:ht.ON_NEUTRAL,"label"===t?"Red Hat Display":"Hanken Grotesk",_t[null!==(a=e.overflow)&&void 0!==a?a:"normal"])};var kt={Display:function(t){var e=t.as,n=void 0===e?"h1":e,o=t.children,r=t.className,a=i.__rest(t,["as","children","className"]);return s.default.createElement(n,i.__assign({className:bt(wt("display",t),r)},a),o)},Headline:function(t){var e=t.as,n=void 0===e?"h2":e,o=t.children,r=t.className,a=i.__rest(t,["as","children","className"]);return s.default.createElement(n,i.__assign({className:bt(wt("headline",t),r)},a),o)},Title:function(t){var e=t.as,n=void 0===e?"h2":e,o=t.children,r=t.className,a=i.__rest(t,["as","children","className"]);return s.default.createElement(n,i.__assign({className:bt(wt("title",t),r)},a),o)},Label:function(t){var e=t.as,n=void 0===e?"h5":e,o=t.children,r=t.className,a=i.__rest(t,["as","children","className"]);return s.default.createElement(n,i.__assign({className:bt(wt("label",t),r)},a),o)},Body:function(t){var e=t.as,n=void 0===e?"span":e,o=t.children,r=t.className,a=i.__rest(t,["as","children","className"]);return s.default.createElement(n,i.__assign({className:bt(wt("body",t),r)},a),o)}};function St(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Et=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Ot=C(function(t){return Et.test(t)||111===t.charCodeAt(0)&&110===t.charCodeAt(1)&&t.charCodeAt(2)<91});function Tt(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var Mt="undefined"!=typeof document,Dt=Object.prototype.hasOwnProperty,Ct=t.createContext("undefined"!=typeof HTMLElement?_():null),At=t.createContext({});Ct.Provider;var Rt=function(e){var n=function(n,i){return t.createElement(Ct.Consumer,null,function(t){return e(n,t,i)})};return t.forwardRef(n)};if(!Mt){var Lt=function(e){function n(t,n,i){var o;return(o=e.call(this,t,n,i)||this).state={value:_()},o}return Tt(n,e),n.prototype.render=function(){return t.createElement(Ct.Provider,this.state,this.props.children(this.state.value))},n}(t.Component);Rt=function(e){return function(n){return t.createElement(Ct.Consumer,null,function(i){return null===i?t.createElement(Lt,null,function(t){return e(n,t)}):e(n,i)})}}}var Pt="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",It="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",Nt=function(){return null},Ft=function(e,n,i,o){var r=null===i?n.css:n.css(i);"string"==typeof r&&void 0!==e.registered[r]&&(r=e.registered[r]);var a=n[Pt],s=[r],l="";"string"==typeof n.className?l=J(e.registered,s,n.className):null!=n.className&&(l=n.className+" ");var c=Z(s);if("production"!==process.env.NODE_ENV&&-1===c.name.indexOf("-")){var d=n[It];d&&(c=Z([c,"label:"+d+";"]))}var h=Q(e,c,"string"==typeof a);l+=e.key+"-"+c.name;var u={};for(var p in n)!Dt.call(n,p)||"css"===p||p===Pt||"production"!==process.env.NODE_ENV&&p===It||(u[p]=n[p]);u.ref=o,u.className=l;var f=t.createElement(a,u),g=t.createElement(Nt,null);if(!Mt&&void 0!==h){for(var m,b=c.name,x=c.next;void 0!==x;)b+=" "+x.name,x=x.next;g=t.createElement("style",((m={})["data-emotion-"+e.key]=b,m.dangerouslySetInnerHTML={__html:h},m.nonce=e.sheet.nonce,m))}return t.createElement(t.Fragment,null,g,f)},zt=Rt(function(e,n,i){return"function"==typeof e.css?t.createElement(At.Consumer,null,function(t){return Ft(n,e,t,i)}):Ft(n,e,null,i)});function Bt(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return Z(e)}"production"!==process.env.NODE_ENV&&(zt.displayName="EmotionCssPropInternal");var jt=!1,Yt=Rt(function(e,n){"production"===process.env.NODE_ENV||jt||!e.className&&!e.css||(console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"),jt=!0);var i=e.styles;if("function"==typeof i)return t.createElement(At.Consumer,null,function(e){var o=Z([i(e)]);return t.createElement(Ht,{serialized:o,cache:n})});var o=Z([i]);return t.createElement(Ht,{serialized:o,cache:n})}),Ht=function(e){function n(t,n,i){return e.call(this,t,n,i)||this}Tt(n,e);var i=n.prototype;return i.componentDidMount=function(){this.sheet=new c({key:this.props.cache.key+"-global",nonce:this.props.cache.sheet.nonce,container:this.props.cache.sheet.container});var t=document.querySelector("style[data-emotion-"+this.props.cache.key+'="'+this.props.serialized.name+'"]');null!==t&&this.sheet.tags.push(t),this.props.cache.sheet.tags.length&&(this.sheet.before=this.props.cache.sheet.tags[0]),this.insertStyles()},i.componentDidUpdate=function(t){t.serialized.name!==this.props.serialized.name&&this.insertStyles()},i.insertStyles=function(){if(void 0!==this.props.serialized.next&&Q(this.props.cache,this.props.serialized.next,!0),this.sheet.tags.length){var t=this.sheet.tags[this.sheet.tags.length-1].nextElementSibling;this.sheet.before=t,this.sheet.flush()}this.props.cache.insert("",this.props.serialized,this.sheet,!1)},i.componentWillUnmount=function(){this.sheet.flush()},i.render=function(){if(!Mt){for(var e=this.props.serialized,n=e.name,i=e.styles,o=e.next;void 0!==o;)n+=" "+o.name,i+=o.styles,o=o.next;var r,a=!0===this.props.cache.compat,s=this.props.cache.insert("",{name:n,styles:i},this.sheet,a);if(!a)return t.createElement("style",((r={})["data-emotion-"+this.props.cache.key]=n,r.dangerouslySetInnerHTML={__html:s},r.nonce=this.props.cache.sheet.nonce,r))}return null},n}(t.Component),Wt=function(){var t=Bt.apply(void 0,arguments),e="animation-"+t.name;return{name:e,styles:"@keyframes "+e+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},Vt=function t(e){for(var n=e.length,i=0,o="";i<n;i++){var r=e[i];if(null!=r){var a=void 0;switch(typeof r){case"boolean":break;case"object":if(Array.isArray(r))a=t(r);else for(var s in a="",r)r[s]&&s&&(a&&(a+=" "),a+=s);break;default:a=r}a&&(o&&(o+=" "),o+=a)}}return o};var Ut=function(){return null};Rt(function(e,n){return t.createElement(At.Consumer,null,function(i){var o="",r="",a=!1,s=function(){if(a&&"production"!==process.env.NODE_ENV)throw new Error("css can only be used during render");for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];var s=Z(e,n.registered);if(Mt)Q(n,s,!1);else{var l=Q(n,s,!1);void 0!==l&&(o+=l)}return Mt||(r+=" "+s.name),n.key+"-"+s.name},l={css:s,cx:function(){if(a&&"production"!==process.env.NODE_ENV)throw new Error("cx can only be used during render");for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return function(t,e,n){var i=[],o=J(t,i,n);return i.length<2?n:o+e(i)}(n.registered,s,Vt(e))},theme:i},c=e.children(l);a=!0;var d,h=t.createElement(Ut,null);Mt||0===o.length||(h=t.createElement("style",((d={})["data-emotion-"+n.key]=r.substring(1),d.dangerouslySetInnerHTML={__html:o},d.nonce=n.sheet.nonce,d)));return t.createElement(t.Fragment,null,h,c)})});var Gt=Ot,$t=function(t){return"theme"!==t&&"innerRef"!==t},Xt=function(t){return"string"==typeof t&&t.charCodeAt(0)>96?Gt:$t};function qt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}var Zt,Kt,Jt,Qt,te,ee,ne,ie,oe,re="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences",ae="undefined"!=typeof document,se=function(){return null},le=function e(n,i){if("production"!==process.env.NODE_ENV&&void 0===n)throw new Error("You are trying to create a styled element with an undefined component.\nYou may have forgotten to import it.");var o,r,a;void 0!==i&&(o=i.label,a=i.target,r=n.__emotion_forwardProp&&i.shouldForwardProp?function(t){return n.__emotion_forwardProp(t)&&i.shouldForwardProp(t)}:i.shouldForwardProp);var s=n.__emotion_real===n,l=s&&n.__emotion_base||n;"function"!=typeof r&&s&&(r=n.__emotion_forwardProp);var c=r||Xt(l),d=!c("as");return function(){var h=arguments,u=s&&void 0!==n.__emotion_styles?n.__emotion_styles.slice(0):[];if(void 0!==o&&u.push("label:"+o+";"),null==h[0]||void 0===h[0].raw)u.push.apply(u,h);else{"production"!==process.env.NODE_ENV&&void 0===h[0][0]&&console.error(re),u.push(h[0][0]);for(var p=h.length,f=1;f<p;f++)"production"!==process.env.NODE_ENV&&void 0===h[0][f]&&console.error(re),u.push(h[f],h[0][f])}var g=Rt(function(e,n,i){return t.createElement(At.Consumer,null,function(s){var h=d&&e.as||l,p="",f=[],g=e;if(null==e.theme){for(var m in g={},e)g[m]=e[m];g.theme=s}"string"==typeof e.className?p=J(n.registered,f,e.className):null!=e.className&&(p=e.className+" ");var b=Z(u.concat(f),n.registered,g),x=Q(n,b,"string"==typeof h);p+=n.key+"-"+b.name,void 0!==a&&(p+=" "+a);var v=d&&void 0===r?Xt(h):c,y={};for(var _ in e)d&&"as"===_||v(_)&&(y[_]=e[_]);y.className=p,y.ref=i||e.innerRef,"production"!==process.env.NODE_ENV&&e.innerRef&&console.error("`innerRef` is deprecated and will be removed in a future major version of Emotion, please use the `ref` prop instead"+(void 0===o?"":" in the usage of `"+o+"`"));var w=t.createElement(h,y),k=t.createElement(se,null);if(!ae&&void 0!==x){for(var S,E=b.name,O=b.next;void 0!==O;)E+=" "+O.name,O=O.next;k=t.createElement("style",((S={})["data-emotion-"+n.key]=E,S.dangerouslySetInnerHTML={__html:x},S.nonce=n.sheet.nonce,S))}return t.createElement(t.Fragment,null,k,w)})});return g.displayName=void 0!==o?o:"Styled("+("string"==typeof l?l:l.displayName||l.name||"Component")+")",g.defaultProps=n.defaultProps,g.__emotion_real=g,g.__emotion_base=l,g.__emotion_styles=u,g.__emotion_forwardProp=r,Object.defineProperty(g,"toString",{value:function(){return void 0===a&&"production"!==process.env.NODE_ENV?"NO_COMPONENT_SELECTOR":"."+a}}),g.withComponent=function(t,n){return e(t,void 0!==n?function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?qt(Object(n),!0).forEach(function(e){St(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):qt(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}({},i||{},{},n):i).apply(void 0,u)},g}}.bind();["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach(function(t){le[t]=le(t)}),exports.BLUE_COLORS=void 0,(Zt=exports.BLUE_COLORS||(exports.BLUE_COLORS={})).B400="#0C45E1",Zt.B300="#1863B0",Zt.B200="#C3DCF6",Zt.B100="#EEF6FF",exports.GREEN_COLORS=void 0,(Kt=exports.GREEN_COLORS||(exports.GREEN_COLORS={})).G400="#257C58",Kt.G300="#43CC32",Kt.G200="#C8FAC0",Kt.G100="#F0F9F4",exports.RED_COLORS=void 0,(Jt=exports.RED_COLORS||(exports.RED_COLORS={})).R400="#DF1312",Jt.R300="#E22726",Jt.R200="#FFC9C9",Jt.R100="#FFF1F1",exports.YELLOW_COLORS=void 0,(Qt=exports.YELLOW_COLORS||(exports.YELLOW_COLORS={})).Y400="#FC9A07",Qt.Y300="#FC9A07",Qt.Y200="#FFEB7E",Qt.Y100="#FFFAEA",exports.NEUTRAL_COLORS=void 0,(te=exports.NEUTRAL_COLORS||(exports.NEUTRAL_COLORS={})).BLACK="#1B2736",te.G500="#505454",te.G400="#959595",te.G300="#D8D8D8",te.G200="#E8E8E8",te.G100="#F0F0F0",te.WHITE="#FFFFFF",exports.MAIN_COLORS=void 0,(ee=exports.MAIN_COLORS||(exports.MAIN_COLORS={})).PRIMARY_BLUE="#1863B0",ee.PRIMARY_BLACK="#1B2736",ee.PRIMARY_WHITE="#FFFFFF",ee.SECONDARY_GREEN="#43CC32",ee.SECONDARY_RED="#E22726",ee.SECONDARY_YELLOW="#FC9A07",exports.ICON_COLORS=void 0,(ne=exports.ICON_COLORS||(exports.ICON_COLORS={})).SUCCESS="#43CC32",ne.INFO="#1863B0",ne.WARNING="#FC9A07",ne.ERROR="#E22726",ne.NEUTRAL="#D8D8D8",exports.TEXT_COLORS=void 0,(ie=exports.TEXT_COLORS||(exports.TEXT_COLORS={})).SUCCESS="#257C58",ie.INFO="#0C45E1",ie.WARNING="#FC9A07",ie.ERROR="#DF1312",ie.NEUTRAL="#959595",exports.BACKGROUND_COLORS=void 0,(oe=exports.BACKGROUND_COLORS||(exports.BACKGROUND_COLORS={})).SUCCESS="#F0F9F4",oe.INFO="#EEF6FF",oe.WARNING="#FFFAEA",oe.ERROR="#FFF1F1",oe.NEUTRAL="#F0F0F0";var ce,de,he,ue,pe=function(t,e,n){return"\n border: 1px solid ".concat(t," !important;\n background-color: ").concat(n," !important;\n \n .ant-alert-icon {\n color: ").concat(e," !important;\n }\n \n .ant-alert-close-icon {\n color: ").concat(e," !important;\n }\n")},fe=pe(exports.GREEN_COLORS.G400,exports.GREEN_COLORS.G400,exports.GREEN_COLORS.G100),ge=pe(exports.YELLOW_COLORS.Y400,exports.YELLOW_COLORS.Y400,exports.YELLOW_COLORS.Y100),me=pe(exports.RED_COLORS.R400,exports.RED_COLORS.R400,exports.RED_COLORS.R100),be="\n border: none !important;\n background-color: ".concat(ot.CONTRAST," !important;\n \n .ant-alert-icon {\n color: ").concat(st.DEFAULT," !important;\n }\n \n .ant-alert-close-icon {\n color: ").concat(st.DEFAULT," !important;\n }\n"),xe=le(e.Alert)(ce||(ce=i.__makeTemplateObject(["\n &.ant-alert {\n ","\n ","\n ","\n ","\n ","\n }\n"],["\n &.ant-alert {\n ","\n ","\n ","\n ","\n ","\n }\n"])),"\n width: 328px !important;\n min-height: 52px !important;\n border-radius: 8px !important;\n padding: 8px 12px !important;\n \n .ant-alert-icon {\n align-self: flex-start !important;\n margin-top: 0 !important;\n }\n",function(t){return"success"===t.type&&fe},function(t){return"warning"===t.type&&ge},function(t){return"error"===t.type&&me},function(t){return"info"===t.type&&be}),ve=le.div(de||(de=i.__makeTemplateObject(["\n display: flex;\n flex-direction: column;\n\n span,\n p,\n div {\n font-family: 'Hanken Grotesk', 'Inter', sans-serif !important;\n }\n\n h1,\n h2,\n h3,\n h4,\n h5,\n h6 {\n font-family: 'Red Hat Display', 'Inter', sans-serif !important;\n }\n"],["\n display: flex;\n flex-direction: column;\n\n span,\n p,\n div {\n font-family: 'Hanken Grotesk', 'Inter', sans-serif !important;\n }\n\n h1,\n h2,\n h3,\n h4,\n h5,\n h6 {\n font-family: 'Red Hat Display', 'Inter', sans-serif !important;\n }\n"]))),ye=le.div(he||(he=i.__makeTemplateObject(["\n width: 24px;\n height: 24px;\n"],["\n width: 24px;\n height: 24px;\n"]))),_e="@media (min-width: 992px)",we="Hanken Grotesk",ke="Red Hat Display";!function(t){t[t.BOLD=700]="BOLD",t[t.MEDIUM=500]="MEDIUM",t[t.REGULAR=400]="REGULAR"}(ue||(ue={}));var Se,Ee="\n color: ".concat(nt.DEFAULT,";\n font-family: ").concat(we,", ").concat("Inter",";\n margin: 0;\n"),Oe="\n font-weight: ".concat(ue.BOLD,";\n font-size: 24px;\n line-height: 28px;\n font-family: ").concat(ke,";\n\n ").concat(_e," {\n font-size: 24px;\n line-height: 29px;\n }\n"),Te="\n font-weight: ".concat(ue.BOLD,";\n font-size: 20px;\n line-height: 23px;\n font-family: ").concat(ke,";\n\n ").concat(_e," {\n font-size: 18px;\n line-height: 22px;\n }\n"),Me="\n font-weight: ".concat(ue.BOLD,";\n font-size: 18px;\n line-height: 21px;\n font-family: ").concat(ke,";\n\n ").concat(_e," {\n font-size: 16px;\n line-height: 19px;\n }\n"),De="\n font-weight: ".concat(ue.REGULAR,";\n font-size: 16px;\n line-height: 19px;\n font-family: ").concat(we,";\n\n ").concat(_e," {\n font-size: 14px;\n line-height: 17px;\n }\n"),Ce="\n font-weight: ".concat(ue.REGULAR,";\n font-size: 12px;\n line-height: 18px;\n font-family: ").concat(we,";\n\n ").concat(_e," {\n line-height: 15px;\n }\n"),Ae="\n font-weight: ".concat(ue.BOLD,";\n font-size: 16px;\n font-family: ").concat(ke,";\n"),Re="\n font-weight: ".concat(ue.BOLD,";\n font-size: 14px;\n font-family: ").concat(ke,";\n"),Le="\n font-weight: ".concat(ue.BOLD,";\n font-size: 16px;\n line-height: 19px;\n font-family: ").concat(ke,";\n\n ").concat(_e," {\n font-size: 14px;\n line-height: 17px;\n }\n"),Pe="\n font-weight: ".concat(ue.BOLD,";\n font-size: 14px;\n line-height: 24px;\n font-family: ").concat(we,";\n"),Ie="\n font-weight: ".concat(ue.REGULAR,";\n font-size: 14px;\n line-height: 24px;\n font-family: ").concat(ke,";\n");!function(t){t.RAISED="0px 2px 4px 0px rgba(51, 51, 51, 0.16)",t.ACTION="0px 4px 8px 0px rgba(51, 51, 51, 0.16)",t.OVERLAY="0px 8px 16px 0px rgba(51, 51, 51, 0.16)",t.REVERSE_RAISED="0px -1px 4px 0px rgba(51, 51, 51, 0.08)"}(Se||(Se={}));var Ne="10px",Fe="15px",ze="20px",Be="30px",je={spacing:{xs:"5px",sm:Ne,md:Fe,lg:ze,xl:Be},layout:{desktop:"24px",mobile:"16px"},shadow:{raised:Se.RAISED,action:Se.ACTION,overlay:Se.OVERLAY,reverseRaised:Se.REVERSE_RAISED},color:{background:{neutral:ct.NEUTRAL,secondaryNeutral:ct.SECONDARY_NEUTRAL,primary:ct.PRIMARY,secondary:ct.SECONDARY},surface:{neutral:dt.NEUTRAL,secondaryNeutral:dt.SECONDARY_NEUTRAL,disabledSurface:dt.DISABLED_SURFACE,disabledOnSurface:dt.DISABLED_ON_SURFACE,dark:dt.DARK,SubdueInfo:dt.SUBDUE_INFO,subduePositive:dt.SUBDUE_POSITIVE,subdueCritical:dt.SUBDUE_CRITICAL,subdueWarning:dt.SUBDUE_WARNING},base:{primary:ht.PRIMARY,primary2:ht.PRIMARY_2,primary3:ht.PRIMARY_3,onContainer:ht.ON_CONTAINER,onNeutral:ht.ON_NEUTRAL,onNeutralSecondary:ht.ON_NEUTRAL_SECONDARY,line:ht.LINE,link:ht.LINK,overlay:ht.OVERLAY},interactive:{hoverPrimary:ut.HOVER_PRIMARY,focusDefault:ut.FOCUS_DEFAULT,pressedPrimary:ut.PRESSED_PRIMARY,selected:ut.SELECTED,hoverSurface:ut.HOVER_SURFACE,focusSurface:ut.FOCUS_SURFACE,pressedSurface:ut.PRESSED_SURFACE,hoverCritical:ut.HOVER_CRITICAL,pressedCritical:ut.PRESSED_CRITICAL},status:{info:pt.INFO,positive:pt.POSITIVE,warning:pt.WARNING,critical:pt.CRITICAL},component:{buttonDisabled:ft.BUTTON_DISABLED,buttonPrimary:ft.BUTTON_PRIMARY,labelInput:ft.LABEL_INPUT,helperInput:ft.HELPER_INPUT,placeholderInput:ft.PLACEHOLDER_INPUT}},text:{default:nt.DEFAULT,white:st.DEFAULT},button:{background:st.DEFAULT,color:ot.DEFAULT,border:ot.BASE,hover:nt.T10},actionButton:{color:rt.S400,hover:rt.T10},neutral:{text:rt.S400,emphasis:rt.S300,border:rt.S200,background:rt.S100,white:st.DEFAULT,bluish:rt.BLUISH},success:{text:ot.S400,emphasis:ot.S300,border:ot.S300,background:ot.S100},warning:{text:lt.S400,emphasis:lt.S300,border:lt.S300,background:lt.S100},error:{text:at.S400,emphasis:at.S300,border:at.S300,background:at.S100},notification:{text:it.S300,emphasis:it.DEFAULT,background:it.S100},card:{background:{default:st.DEFAULT,dark:nt.T10}},divider:{background:rt.S200}},Ye=i.__assign(i.__assign({},je),{brand:{primary:{default:it.DEFAULT,emphasis:it.S300,background:it.S100,contrast:st.DEFAULT,illustration:it.DEFAULT},action:{default:it.DEFAULT,hover:it.T10,disabledOpacity:.7}}}),He=i.__assign(i.__assign({},je),{brand:{primary:{default:ot.BASE,emphasis:ot.DEFAULT,background:ot.G100,contrast:ot.CONTRAST,illustration:ot.S500,link:it.LINK},secondary:{onSurface:rt.OUTLINE,action:{hover:ot.HOVER_SECONDARY,pressed:ot.PRESSED_SECONDARY}},tertiary:{action:{hover:ot.HOVER_TERTIARY,pressed:ot.PRESSED_TERTIARY}},action:{default:ot.S500,hover:ot.HOVER,pressed:ot.PRESSED,disabledOpacity:.7},line:{base:rt.BASE}}});function We(t,e){void 0===e&&(e={});var n=e.insertAt;if(t&&"undefined"!=typeof document){var i=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&i.firstChild?i.insertBefore(o,i.firstChild):i.appendChild(o),o.styleSheet?o.styleSheet.cssText=t:o.appendChild(document.createTextNode(t))}}We('@import url("https://fonts.googleapis.com/css?family=Inter:100,100i,300,300i,400,400i,500,500i,700,700i,900,900i&display=swap");@import url("https://fonts.googleapis.com/css?family=Roboto:100,100i,300,300i,400,400i,500,500i,700,700i,900,900i&display=swap");@import url("https://fonts.googleapis.com/css?family=Source+Sans+Pro:100,100i,300,300i,400,400i,500,500i,700,700i,900,900i&display=swap");@import url("https://fonts.googleapis.com/css?family=Hind+Siliguri:100,100i,300,300i,400,400i,500,500i,700,700i,900,900i&display=swap");@import url("https://fonts.googleapis.com/css?family=Hanken+Grotesk:100,100i,300,300i,400,400i,500,500i,700,700i,900,900i&display=swap");@import url("https://fonts.googleapis.com/css?family=Red+Hat+Display:100,100i,300,300i,400,400i,500,500i,700,700i,900,900i&display=swap");');var Ve,Ue,Ge,$e,Xe,qe=function(){return s.default.createElement(Yt,{styles:Bt(Ve||(Ve=i.__makeTemplateObject(["\n body {\n color: #555555;\n padding: 0;\n margin: 0;\n -webkit-font-smoothing: auto;\n font-size: 14px;\n font-family: 'Hanken Grotesk', Inter;\n }\n\n @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {\n body {\n -webkit-font-smoothing: antialiased;\n }\n }\n\n p {\n padding: 0;\n margin: 0;\n }\n\n a {\n text-decoration: none;\n }\n\n img {\n vertical-align: middle;\n }\n\n * {\n padding: 0;\n margin: 0;\n font-family: 'Hanken Grotesk', Inter;\n box-sizing: border-box;\n }\n\n select {\n font-family: 'Hanken Grotesk', Inter;\n }\n\n input[type='number']::-webkit-inner-spin-button,\n input[type='number']::-webkit-outer-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n "],["\n body {\n color: #555555;\n padding: 0;\n margin: 0;\n -webkit-font-smoothing: auto;\n font-size: 14px;\n font-family: 'Hanken Grotesk', Inter;\n }\n\n @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {\n body {\n -webkit-font-smoothing: antialiased;\n }\n }\n\n p {\n padding: 0;\n margin: 0;\n }\n\n a {\n text-decoration: none;\n }\n\n img {\n vertical-align: middle;\n }\n\n * {\n padding: 0;\n margin: 0;\n font-family: 'Hanken Grotesk', Inter;\n box-sizing: border-box;\n }\n\n select {\n font-family: 'Hanken Grotesk', Inter;\n }\n\n input[type='number']::-webkit-inner-spin-button,\n input[type='number']::-webkit-outer-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n "])))})},Ze=s.default.createContext(He),Ke=function(){var t=s.default.useContext(Ze);if(void 0===t)throw new Error("useTheme must be used within a ThemeProvider");return t},Je="\n padding: 0;\n border-radius: 99px;\n display: flex;\n align-items: center;\n justify-content: center;\n",Qe="\n ".concat(Je,"\n width: 48px;\n height: 48px;\n"),tn="\n ".concat(Je,"\n width: 36px;\n height: 36px;\n"),en=function(t,e,n,i,o){return"\n background-color: ".concat(t," !important;\n color: ").concat(e," !important;\n border: ").concat(o||"none"," !important;\n box-shadow: none !important;\n\n &:focus {\n background-color: ").concat(n||t," !important;\n box-shadow: none !important;\n }\n\n &:hover {\n background-color: ").concat(n||t," !important;\n box-shadow: none !important;\n }\n\n &:active {\n background-color: ").concat(i||t," !important;\n box-shadow: none !important;\n }\n")},nn=function(t,e){return"\n cursor: not-allowed !important;\n background-color: ".concat(t," !important;\n color: ").concat(e," !important;\n border: none !important;\n\n &:hover, &:focus, &:active {\n cursor: not-allowed !important;\n background-color: ").concat(t," !important;\n color: ").concat(e," !important;\n }\n")},on=en(He.brand.action.default,He.brand.primary.contrast,He.brand.action.hover,He.brand.action.pressed),rn=en(He.color.surface.neutral,He.brand.secondary.onSurface,He.color.interactive.hoverSurface,He.color.interactive.pressedSurface,"1px solid ".concat(He.brand.line.base)),an=en("transparent",He.brand.secondary.onSurface,He.color.interactive.hoverSurface,He.color.interactive.pressedSurface,"none"),sn={primary:nn(He.color.surface.disabledSurface,He.color.surface.disabledOnSurface),secondary:nn(He.color.surface.disabledSurface,He.color.surface.disabledOnSurface),tertiary:nn(He.color.surface.disabledSurface,He.color.surface.disabledOnSurface)},ln=function(t){var n=t.type,o=void 0===n?"primary":n,r=t.size,a=t.iconColor,l=t.isDisabled,c=void 0!==l&&l,d=t.isFullWidth,h=void 0!==d&&d,u=t.className,p=void 0===u?"":u,f=t.children,g=t.icon,m=i.__rest(t,["type","size","iconColor","isDisabled","isFullWidth","className","children","icon"]),b=Ke(),x=b.brand,v=b.button,y=b.actionButton,_=b.color,w="\n background-color: ".concat(x.action.default," !important;\n color: ").concat(x.primary.contrast," !important;\n border: none !important;\n\n &:focus {\n background-color: ").concat(x.action.default," !important;\n border: none !important;\n }\n \n &:active {\n background-color: ").concat(x.action.pressed," !important;\n border: none !important;\n }\n \n &:hover {\n background-color: ").concat(x.action.hover," !important;\n border: none !important;\n }\n "),k="\n background-color: ".concat(v.background," !important;\n color: ").concat(x.primary.contrast," !important;\n border: 1px solid ").concat(v.border," !important;\n\n &:focus {\n background-color: ").concat(v.background," !important;\n border: 1px solid ").concat(v.border," !important;\n }\n\n &:hover {\n background-color: ").concat(x.secondary.action.hover," !important;\n border: 1px solid ").concat(v.border," !important;\n }\n\n &:active {\n background-color: ").concat(x.secondary.action.pressed," !important;\n border: 1px solid ").concat(v.border," !important;\n }\n\n &[ant-click-animating-without-extra-node]:after {\n --antd-wave-shadow-color: ").concat(He.brand.primary.default,";\n }\n "),S="\n background-color: transparent !important;\n color: ".concat(x.primary.contrast," !important;\n border: none !important;\n\n &:focus {\n background-color: transparent !important;\n border: none !important;\n }\n\n &:hover {\n background-color: ").concat(x.tertiary.action.hover," !important;\n border: none !important;\n }\n\n &:active {\n background-color: ").concat(x.tertiary.action.pressed," !important;\n border: none !important;\n }\n "),E="\n cursor: not-allowed !important;\n background-color: ".concat(_.surface.disabledSurface," !important;\n color: ").concat(_.surface.disabledOnSurface," !important;\n border: none !important;\n \n &:hover, &:focus, &:active {\n cursor: not-allowed !important;\n background-color: ").concat(_.surface.disabledSurface," !important;\n color: ").concat(_.surface.disabledOnSurface," !important;\n border: none !important;\n }\n "),O="\n cursor: not-allowed !important;\n background-color: ".concat(v.background," !important;\n color: ").concat(_.surface.disabledOnSurface," !important;\n border: 1px solid ").concat(rt.S300," !important;\n \n &:hover, &:focus, &:active {\n cursor: not-allowed !important;\n background-color: ").concat(v.background," !important;\n color: ").concat(_.surface.disabledOnSurface," !important;\n border: 1px solid ").concat(rt.BASE," !important;\n }\n "),T="\n cursor: not-allowed !important;\n background-color: transparent !important;\n color: ".concat(_.surface.disabledOnSurface," !important;\n border: none !important;\n \n &:hover, &:focus, &:active {\n cursor: not-allowed !important;\n background-color: transparent !important;\n color: ").concat(_.surface.disabledOnSurface," !important;\n border: none !important;\n }\n "),M="\n color: ".concat(y.color,";\n\n &:focus {\n color: ").concat(y.color,";\n }\n\n &:hover {\n color: ").concat(y.hover,";\n }\n\n &:active {\n color: ").concat(y.color,";\n }\n "),D="\n color: ".concat(x.action.default,";\n\n &:focus {\n color: ").concat(x.action.default,";\n }\n\n &:hover {\n color: ").concat(x.action.hover,";\n }\n\n &:active {\n color: ").concat(x.action.default,";\n }\n "),C=le(e.Button)(Ue||(Ue=i.__makeTemplateObject(["\n &.ant-btn {\n text-shadow: none;\n -webkit-font-smoothing: antialiased;\n border-radius: 99px;\n min-width: 100px;\n height: ",";\n box-shadow: none;\n display: flex;\n align-items: center;\n justify-content: center;\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n padding: 16px;\n\n & > svg {\n vertical-align: middle;\n font-size: 16px;\n margin-right: 6px;\n ","\n }\n &:hover,\n &:focus,\n &:active {\n color: "," !important;\n }\n }\n "],["\n &.ant-btn {\n text-shadow: none;\n -webkit-font-smoothing: antialiased;\n border-radius: 99px;\n min-width: 100px;\n height: ",";\n box-shadow: none;\n display: flex;\n align-items: center;\n justify-content: center;\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n padding: 16px;\n\n & > svg {\n vertical-align: middle;\n font-size: 16px;\n margin-right: 6px;\n ","\n }\n &:hover,\n &:focus,\n &:active {\n color: "," !important;\n }\n }\n "])),"small"===r?"36px":"48px",Ee,"small"===r?Re:Ae,"primary"===o&&w,"secondary"===o&&k,"tertiary"===o&&S,function(){if(!c)return"";switch(o){case"primary":default:return E;case"secondary":return O;case"tertiary":return T}}(),h&&"\n width: 100%;\n ","primary"===a?D:M,x.primary.contrast),A=le(e.Button)(Ge||(Ge=i.__makeTemplateObject(["\n &.ant-btn {\n ",";\n ","\n ","\n ","\n ","\n ","\n ","\n }\n "],["\n &.ant-btn {\n ",";\n ","\n ","\n ","\n ","\n ","\n ","\n }\n "])),Ee,"small"===r?tn:Qe,"primary"===o&&on,"secondary"===o&&rn,"tertiary"===o&&an,function(t){return"\n & > svg {\n height: ".concat("small"===t?"20px":"24px",";\n width: ").concat("small"===t?"20px":"24px",";\n }\n")}(r),c&&function(t){return sn[t]||sn.primary}(o)),R=c?"straitsx-button-disabled":void 0;return g?s.default.createElement(A,i.__assign({className:"".concat(p," ").concat(R),disabled:c},m),g):s.default.createElement(C,i.__assign({className:"".concat(p," ").concat(R),disabled:c},m),f)},cn="Hanken Grotesk";exports.FONT_WEIGHT=void 0,function(t){t[t.BOLD=700]="BOLD",t[t.MEDIUM=500]="MEDIUM",t[t.REGULAR=400]="REGULAR"}(exports.FONT_WEIGHT||(exports.FONT_WEIGHT={})),exports.FONT_SIZE=void 0,(Xe=exports.FONT_SIZE||(exports.FONT_SIZE={})).H1="24px",Xe.H1_MOBILE="24px",Xe.H2="18px",Xe.H2_MOBILE="20px",Xe.H3="16px",Xe.H3_MOBILE="18px",Xe.H4="14px",Xe.P1="14px",Xe.P1_MOBILE="16px",Xe.SMALL="12px",Xe.SMALL_MOBILE="14px";var dn={large:{height:"48px",borderRadius:"12px",padding:"12px 16px"},small:{height:"36px",borderRadius:"8px",padding:"8px 12px"}};exports.LINE_HEIGHT=void 0,function(t){t.H1="29px",t.H1_MOBILE="28px",t.H2="22px",t.H2_MOBILE="23px",t.H3="19px",t.H3_MOBILE="21px",t.H4="17px",t.P1="17px",t.P1_MOBILE="19px",t.SMALL="15px",t.SMALL_MOBILE="17px"}(exports.LINE_HEIGHT||(exports.LINE_HEIGHT={}));var hn,un,pn,fn,gn,mn,bn,xn,vn,yn,_n,wn,kn,Sn,En,On,Tn,Mn,Dn,Cn,An,Rn,Ln=function(t){var n,o=t.className,r=t.alignTitle,a=void 0===r?"center":r,l=t.alignBody,c=void 0===l?"left":l,d=t.type,h=void 0===d?"default":d,u=i.__rest(t,["className","alignTitle","alignBody","type"]),p=Ke(),f=p.card,g=p.text,m=p.neutral,b="\n color: ".concat("default"===h?g.default:g.white,";\n\n & > div > div {\n color: ").concat("default"===h?g.default:g.white,";\n }\n\n h1 {\n color: ").concat("default"===h?g.default:g.white,";\n }\n "),x=xt(hn||(hn=i.__makeTemplateObject(["\n border-radius: 4px;\n border-width: 1px;\n border-style: solid;\n border-color: ",";\n background: "," !important;\n\n & > .ant-card-head {\n padding: 0 15px;\n font-weight: ",";\n font-size: ",";\n line-height: ",";\n ",";\n\n .ant-card-head-title {\n padding: 15px 0;\n white-space: normal;\n ",";\n }\n\n .ant-card-extra {\n padding: 15px 0;\n font-weight: ",";\n font-size: ",";\n line-height: ",";\n ",";\n }\n }\n\n & > .ant-card-body {\n padding: 15px;\n font-weight: ",";\n font-size: ",";\n line-height: ",";\n ",";\n }\n "],["\n border-radius: 4px;\n border-width: 1px;\n border-style: solid;\n border-color: ",";\n background: "," !important;\n\n & > .ant-card-head {\n padding: 0 15px;\n font-weight: ",";\n font-size: ",";\n line-height: ",";\n ",";\n\n .ant-card-head-title {\n padding: 15px 0;\n white-space: normal;\n ",";\n }\n\n .ant-card-extra {\n padding: 15px 0;\n font-weight: ",";\n font-size: ",";\n line-height: ",";\n ",";\n }\n }\n\n & > .ant-card-body {\n padding: 15px;\n font-weight: ",";\n font-size: ",";\n line-height: ",";\n ",";\n }\n "])),m.border,"default"===h?f.background.default:f.background.dark,exports.FONT_WEIGHT.BOLD,exports.FONT_SIZE.P1_MOBILE,exports.LINE_HEIGHT.P1_MOBILE,b,b,exports.FONT_WEIGHT.BOLD,exports.FONT_SIZE.P1_MOBILE,exports.LINE_HEIGHT.P1_MOBILE,b,exports.FONT_WEIGHT.REGULAR,exports.FONT_SIZE.P1_MOBILE,exports.LINE_HEIGHT.P1_MOBILE,b);return s.default.createElement(e.Card,i.__assign({className:bt(x,o,(n=a,xt(un||(un=i.__makeTemplateObject(["\n .ant-card-head-wrapper {\n align-items: ",";\n }\n "],["\n .ant-card-head-wrapper {\n align-items: ",";\n }\n "])),n)),function(t){return xt(pn||(pn=i.__makeTemplateObject(["\n .ant-card-body {\n text-align: ",";\n }\n "],["\n .ant-card-body {\n text-align: ",";\n }\n "])),t)}(c))},u))},Pn=le.h1(fn||(fn=i.__makeTemplateObject(["\n ",";\n ",";\n"],["\n ",";\n ",";\n"])),Ee,Oe),In=le.h2(gn||(gn=i.__makeTemplateObject(["\n ",";\n ",";\n"],["\n ",";\n ",";\n"])),Ee,Te),Nn=le.h3(mn||(mn=i.__makeTemplateObject(["\n ",";\n ",";\n"],["\n ",";\n ",";\n"])),Ee,Me),Fn=le.div(bn||(bn=i.__makeTemplateObject(["\n ",";\n ",";\n"],["\n ",";\n ",";\n"])),Ee,De),zn=le.div(xn||(xn=i.__makeTemplateObject(["\n ",";\n ",";\n"],["\n ",";\n ",";\n"])),Ee,Le),Bn=le.div(vn||(vn=i.__makeTemplateObject(["\n ",";\n ",";\n"],["\n ",";\n ",";\n"])),Ee,Ce),jn=le.h4(yn||(yn=i.__makeTemplateObject(["\n ",";\n ",";\n"],["\n ",";\n ",";\n"])),Ee,Le),Yn={xs:"5px",sm:Ne,md:Fe,lg:ze,xl:Be},Hn=function(t){var e=t.spacing,n=i.__rest(t,["spacing"]),o=Ke().divider,r=le.hr(_n||(_n=i.__makeTemplateObject(["\n border: none;\n height: 1px;\n margin-top: ",";\n margin-bottom: ",";\n flex-shrink: 0;\n background-color: ",";\n "],["\n border: none;\n height: 1px;\n margin-top: ",";\n margin-bottom: ",";\n flex-shrink: 0;\n background-color: ",";\n "])),e?Yn[e]:0,e?Yn[e]:0,o.background);return s.default.createElement(r,i.__assign({},n))},Wn=le.div(On||(On=i.__makeTemplateObject(["\n background: #ffffff;\n border: ",";\n border-radius: 5px;\n\n box-shadow: ",";\n\n transition: max-height 0.3s ease;\n\n overflow: hidden;\n\n &:not(:last-child) {\n margin-bottom: 20px;\n }\n\n padding: 0px 30px 0px 30px;\n\n max-height: ","px;\n\n "," {\n max-height: ","px;\n }\n\n ",";\n"],["\n background: #ffffff;\n border: ",";\n border-radius: 5px;\n\n box-shadow: ",";\n\n transition: max-height 0.3s ease;\n\n overflow: hidden;\n\n &:not(:last-child) {\n margin-bottom: 20px;\n }\n\n padding: 0px 30px 0px 30px;\n\n max-height: ","px;\n\n "," {\n max-height: ","px;\n }\n\n ",";\n"])),function(t){return!t.withBoxShadow&&"1px solid #e8e8e8"},function(t){return t.withBoxShadow&&"0px 4px 15px rgba(149, 149, 149, 0.25)"},function(t){return t.headerHeightMobile},_e,function(t){return t.headerHeightDesktop},function(t){return t.open&&"\n max-height: 2000px !important;\n ".concat(_e," {\n max-height: 1200px !important;\n }\n ")}),Vn=le.div(Tn||(Tn=i.__makeTemplateObject(["\n cursor: pointer;\n padding: 30px 0px;\n height: ","px;\n\n "," {\n height: ","px;\n }\n"],["\n cursor: pointer;\n padding: 30px 0px;\n height: ","px;\n\n "," {\n height: ","px;\n }\n"])),function(t){return t.headerHeightMobile},_e,function(t){return t.headerHeightDesktop}),Un=le.div(Mn||(Mn=i.__makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n"],["\n display: flex;\n align-items: center;\n justify-content: space-between;\n"]))),Gn=le(Fn)(Dn||(Dn=i.__makeTemplateObject(["\n display: none;\n\n "," {\n display: inline;\n margin: 0px 12px 0px 0px;\n }\n"],["\n display: none;\n\n "," {\n display: inline;\n margin: 0px 12px 0px 0px;\n }\n"])),_e),$n=le(n.SvgArrowUp)(Cn||(Cn=i.__makeTemplateObject(["\n width: 25px;\n height: 25px;\n transform: rotate(180deg);\n transition: transform 0.3s ease;\n transform: ",";\n"],["\n width: 25px;\n height: 25px;\n transform: rotate(180deg);\n transition: transform 0.3s ease;\n transform: ",";\n"])),function(t){return t.open&&"rotate(0deg)"}),Xn=le.div(An||(An=i.__makeTemplateObject(["\n display: flex;\n align-items: center;\n"],["\n display: flex;\n align-items: center;\n"])));
2
2
  /*!
3
3
  * Chart.js v3.9.1
4
4
  * https://www.chartjs.org
5
5
  * (c) 2022 Chart.js Contributors
6
6
  * Released under the MIT License
7
7
  */
8
- function Qn(){}const Jn=function(){let e=0;return function(){return e++}}();function er(e){return null==e}function tr(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return"[object"===t.slice(0,7)&&"Array]"===t.slice(-6)}function nr(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)}const rr=e=>("number"==typeof e||e instanceof Number)&&isFinite(+e);function or(e,t){return rr(e)?e:t}function ir(e,t){return void 0===e?t:e}const ar=(e,t)=>"string"==typeof e&&e.endsWith("%")?parseFloat(e)/100*t:+e;function sr(e,t,n){if(e&&"function"==typeof e.call)return e.apply(n,t)}function lr(e,t,n,r){let o,i,a;if(tr(e))if(i=e.length,r)for(o=i-1;o>=0;o--)t.call(n,e[o],o);else for(o=0;o<i;o++)t.call(n,e[o],o);else if(nr(e))for(a=Object.keys(e),i=a.length,o=0;o<i;o++)t.call(n,e[a[o]],a[o])}function cr(e,t){let n,r,o,i;if(!e||!t||e.length!==t.length)return!1;for(n=0,r=e.length;n<r;++n)if(o=e[n],i=t[n],o.datasetIndex!==i.datasetIndex||o.index!==i.index)return!1;return!0}function ur(e){if(tr(e))return e.map(ur);if(nr(e)){const t=Object.create(null),n=Object.keys(e),r=n.length;let o=0;for(;o<r;++o)t[n[o]]=ur(e[n[o]]);return t}return e}function dr(e){return-1===["__proto__","prototype","constructor"].indexOf(e)}function pr(e,t,n,r){if(!dr(e))return;const o=t[e],i=n[e];nr(o)&&nr(i)?hr(o,i,r):t[e]=ur(i)}function hr(e,t,n){const r=tr(t)?t:[t],o=r.length;if(!nr(e))return e;const i=(n=n||{}).merger||pr;for(let a=0;a<o;++a){if(!nr(t=r[a]))continue;const o=Object.keys(t);for(let r=0,a=o.length;r<a;++r)i(o[r],e,t,n)}return e}function fr(e,t){return hr(e,t,{merger:mr})}function mr(e,t,n){if(!dr(e))return;const r=t[e],o=n[e];nr(r)&&nr(o)?fr(r,o):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=ur(o))}const gr={"":e=>e,x:e=>e.x,y:e=>e.y};function vr(e,t){const n=gr[t]||(gr[t]=function(e){const t=function(e){const t=e.split("."),n=[];let r="";for(const e of t)r+=e,r.endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="");return n}(e);return e=>{for(const n of t){if(""===n)break;e=e&&e[n]}return e}}(t));return n(e)}function br(e){return e.charAt(0).toUpperCase()+e.slice(1)}const yr=e=>void 0!==e,xr=e=>"function"==typeof e,wr=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};const _r=Math.PI,Sr=2*_r,Er=Sr+_r,kr=Number.POSITIVE_INFINITY,Or=_r/180,Cr=_r/2,Mr=_r/4,Tr=2*_r/3,Ar=Math.log10,Pr=Math.sign;function Rr(e){const t=Math.round(e);e=Dr(e,t,e/1e3)?t:e;const n=Math.pow(10,Math.floor(Ar(e))),r=e/n;return(r<=1?1:r<=2?2:r<=5?5:10)*n}function Nr(e){return!isNaN(parseFloat(e))&&isFinite(e)}function Dr(e,t,n){return Math.abs(e-t)<n}function Ir(e,t,n){let r,o,i;for(r=0,o=e.length;r<o;r++)i=e[r][n],isNaN(i)||(t.min=Math.min(t.min,i),t.max=Math.max(t.max,i))}function Fr(e){return e*(_r/180)}function Lr(e){return e*(180/_r)}function jr(e){if(!rr(e))return;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n++;return n}function zr(e,t){const n=t.x-e.x,r=t.y-e.y,o=Math.sqrt(n*n+r*r);let i=Math.atan2(r,n);return i<-.5*_r&&(i+=Sr),{angle:i,distance:o}}function Br(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function Hr(e,t){return(e-t+Er)%Sr-_r}function Vr(e){return(e%Sr+Sr)%Sr}function $r(e,t,n,r){const o=Vr(e),i=Vr(t),a=Vr(n),s=Vr(i-o),l=Vr(a-o),c=Vr(o-i),u=Vr(o-a);return o===i||o===a||r&&i===a||s>l&&c<u}function Wr(e,t,n){return Math.max(t,Math.min(n,e))}function Ur(e,t,n,r=1e-6){return e>=Math.min(t,n)-r&&e<=Math.max(t,n)+r}function Gr(e,t,n){n=n||(n=>e[n]<t);let r,o=e.length-1,i=0;for(;o-i>1;)r=i+o>>1,n(r)?i=r:o=r;return{lo:i,hi:o}}const Yr=(e,t,n,r)=>Gr(e,n,r?r=>e[r][t]<=n:r=>e[r][t]<n),Xr=(e,t,n)=>Gr(e,n,r=>e[r][t]>=n);const qr=["push","pop","shift","splice","unshift"];function Kr(e,t){const n=e._chartjs;if(!n)return;const r=n.listeners,o=r.indexOf(t);-1!==o&&r.splice(o,1),r.length>0||(qr.forEach(t=>{delete e[t]}),delete e._chartjs)}function Zr(e){const t=new Set;let n,r;for(n=0,r=e.length;n<r;++n)t.add(e[n]);return t.size===r?e:Array.from(t)}const Qr="undefined"==typeof window?function(e){return e()}:window.requestAnimationFrame;function Jr(e,t,n){const r=n||(e=>Array.prototype.slice.call(e));let o=!1,i=[];return function(...n){i=r(n),o||(o=!0,Qr.call(window,()=>{o=!1,e.apply(t,i)}))}}const eo=e=>"start"===e?"left":"end"===e?"right":"center",to=(e,t,n)=>"start"===e?t:"end"===e?n:(t+n)/2;function no(e,t,n){const r=t.length;let o=0,i=r;if(e._sorted){const{iScale:a,_parsed:s}=e,l=a.axis,{min:c,max:u,minDefined:d,maxDefined:p}=a.getUserBounds();d&&(o=Wr(Math.min(Yr(s,a.axis,c).lo,n?r:Yr(t,l,a.getPixelForValue(c)).lo),0,r-1)),i=p?Wr(Math.max(Yr(s,a.axis,u,!0).hi+1,n?0:Yr(t,l,a.getPixelForValue(u),!0).hi+1),o,r)-o:r-o}return{start:o,count:i}}function ro(e){const{xScale:t,yScale:n,_scaleRanges:r}=e,o={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!r)return e._scaleRanges=o,!0;const i=r.xmin!==t.min||r.xmax!==t.max||r.ymin!==n.min||r.ymax!==n.max;return Object.assign(r,o),i}const oo=e=>0===e||1===e,io=(e,t,n)=>-Math.pow(2,10*(e-=1))*Math.sin((e-t)*Sr/n),ao=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*Sr/n)+1,so={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>1-Math.cos(e*Cr),easeOutSine:e=>Math.sin(e*Cr),easeInOutSine:e=>-.5*(Math.cos(_r*e)-1),easeInExpo:e=>0===e?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>1===e?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>oo(e)?e:e<.5?.5*Math.pow(2,10*(2*e-1)):.5*(2-Math.pow(2,-10*(2*e-1))),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>oo(e)?e:io(e,.075,.3),easeOutElastic:e=>oo(e)?e:ao(e,.075,.3),easeInOutElastic(e){const t=.1125;return oo(e)?e:e<.5?.5*io(2*e,t,.45):.5+.5*ao(2*e-1,t,.45)},easeInBack(e){const t=1.70158;return e*e*((t+1)*e-t)},easeOutBack(e){const t=1.70158;return(e-=1)*e*((t+1)*e+t)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?e*e*((1+(t*=1.525))*e-t)*.5:.5*((e-=2)*e*((1+(t*=1.525))*e+t)+2)},easeInBounce:e=>1-so.easeOutBounce(1-e),easeOutBounce(e){const t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?t*(e-=1.5/n)*e+.75:e<2.5/n?t*(e-=2.25/n)*e+.9375:t*(e-=2.625/n)*e+.984375},easeInOutBounce:e=>e<.5?.5*so.easeInBounce(2*e):.5*so.easeOutBounce(2*e-1)+.5};
8
+ function qn(){}const Zn=function(){let t=0;return function(){return t++}}();function Kn(t){return null==t}function Jn(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);return"[object"===e.slice(0,7)&&"Array]"===e.slice(-6)}function Qn(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)}const ti=t=>("number"==typeof t||t instanceof Number)&&isFinite(+t);function ei(t,e){return ti(t)?t:e}function ni(t,e){return void 0===t?e:t}const ii=(t,e)=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100*e:+t;function oi(t,e,n){if(t&&"function"==typeof t.call)return t.apply(n,e)}function ri(t,e,n,i){let o,r,a;if(Jn(t))if(r=t.length,i)for(o=r-1;o>=0;o--)e.call(n,t[o],o);else for(o=0;o<r;o++)e.call(n,t[o],o);else if(Qn(t))for(a=Object.keys(t),r=a.length,o=0;o<r;o++)e.call(n,t[a[o]],a[o])}function ai(t,e){let n,i,o,r;if(!t||!e||t.length!==e.length)return!1;for(n=0,i=t.length;n<i;++n)if(o=t[n],r=e[n],o.datasetIndex!==r.datasetIndex||o.index!==r.index)return!1;return!0}function si(t){if(Jn(t))return t.map(si);if(Qn(t)){const e=Object.create(null),n=Object.keys(t),i=n.length;let o=0;for(;o<i;++o)e[n[o]]=si(t[n[o]]);return e}return t}function li(t){return-1===["__proto__","prototype","constructor"].indexOf(t)}function ci(t,e,n,i){if(!li(t))return;const o=e[t],r=n[t];Qn(o)&&Qn(r)?di(o,r,i):e[t]=si(r)}function di(t,e,n){const i=Jn(e)?e:[e],o=i.length;if(!Qn(t))return t;const r=(n=n||{}).merger||ci;for(let a=0;a<o;++a){if(!Qn(e=i[a]))continue;const o=Object.keys(e);for(let i=0,a=o.length;i<a;++i)r(o[i],t,e,n)}return t}function hi(t,e){return di(t,e,{merger:ui})}function ui(t,e,n){if(!li(t))return;const i=e[t],o=n[t];Qn(i)&&Qn(o)?hi(i,o):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=si(o))}const pi={"":t=>t,x:t=>t.x,y:t=>t.y};function fi(t,e){const n=pi[e]||(pi[e]=function(t){const e=function(t){const e=t.split("."),n=[];let i="";for(const t of e)i+=t,i.endsWith("\\")?i=i.slice(0,-1)+".":(n.push(i),i="");return n}(t);return t=>{for(const n of e){if(""===n)break;t=t&&t[n]}return t}}(e));return n(t)}function gi(t){return t.charAt(0).toUpperCase()+t.slice(1)}const mi=t=>void 0!==t,bi=t=>"function"==typeof t,xi=(t,e)=>{if(t.size!==e.size)return!1;for(const n of t)if(!e.has(n))return!1;return!0};const vi=Math.PI,yi=2*vi,_i=yi+vi,wi=Number.POSITIVE_INFINITY,ki=vi/180,Si=vi/2,Ei=vi/4,Oi=2*vi/3,Ti=Math.log10,Mi=Math.sign;function Di(t){const e=Math.round(t);t=Ai(t,e,t/1e3)?e:t;const n=Math.pow(10,Math.floor(Ti(t))),i=t/n;return(i<=1?1:i<=2?2:i<=5?5:10)*n}function Ci(t){return!isNaN(parseFloat(t))&&isFinite(t)}function Ai(t,e,n){return Math.abs(t-e)<n}function Ri(t,e,n){let i,o,r;for(i=0,o=t.length;i<o;i++)r=t[i][n],isNaN(r)||(e.min=Math.min(e.min,r),e.max=Math.max(e.max,r))}function Li(t){return t*(vi/180)}function Pi(t){return t*(180/vi)}function Ii(t){if(!ti(t))return;let e=1,n=0;for(;Math.round(t*e)/e!==t;)e*=10,n++;return n}function Ni(t,e){const n=e.x-t.x,i=e.y-t.y,o=Math.sqrt(n*n+i*i);let r=Math.atan2(i,n);return r<-.5*vi&&(r+=yi),{angle:r,distance:o}}function Fi(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function zi(t,e){return(t-e+_i)%yi-vi}function Bi(t){return(t%yi+yi)%yi}function ji(t,e,n,i){const o=Bi(t),r=Bi(e),a=Bi(n),s=Bi(r-o),l=Bi(a-o),c=Bi(o-r),d=Bi(o-a);return o===r||o===a||i&&r===a||s>l&&c<d}function Yi(t,e,n){return Math.max(e,Math.min(n,t))}function Hi(t,e,n,i=1e-6){return t>=Math.min(e,n)-i&&t<=Math.max(e,n)+i}function Wi(t,e,n){n=n||(n=>t[n]<e);let i,o=t.length-1,r=0;for(;o-r>1;)i=r+o>>1,n(i)?r=i:o=i;return{lo:r,hi:o}}const Vi=(t,e,n,i)=>Wi(t,n,i?i=>t[i][e]<=n:i=>t[i][e]<n),Ui=(t,e,n)=>Wi(t,n,i=>t[i][e]>=n);const Gi=["push","pop","shift","splice","unshift"];function $i(t,e){const n=t._chartjs;if(!n)return;const i=n.listeners,o=i.indexOf(e);-1!==o&&i.splice(o,1),i.length>0||(Gi.forEach(e=>{delete t[e]}),delete t._chartjs)}function Xi(t){const e=new Set;let n,i;for(n=0,i=t.length;n<i;++n)e.add(t[n]);return e.size===i?t:Array.from(e)}const qi="undefined"==typeof window?function(t){return t()}:window.requestAnimationFrame;function Zi(t,e,n){const i=n||(t=>Array.prototype.slice.call(t));let o=!1,r=[];return function(...n){r=i(n),o||(o=!0,qi.call(window,()=>{o=!1,t.apply(e,r)}))}}const Ki=t=>"start"===t?"left":"end"===t?"right":"center",Ji=(t,e,n)=>"start"===t?e:"end"===t?n:(e+n)/2;function Qi(t,e,n){const i=e.length;let o=0,r=i;if(t._sorted){const{iScale:a,_parsed:s}=t,l=a.axis,{min:c,max:d,minDefined:h,maxDefined:u}=a.getUserBounds();h&&(o=Yi(Math.min(Vi(s,a.axis,c).lo,n?i:Vi(e,l,a.getPixelForValue(c)).lo),0,i-1)),r=u?Yi(Math.max(Vi(s,a.axis,d,!0).hi+1,n?0:Vi(e,l,a.getPixelForValue(d),!0).hi+1),o,i)-o:i-o}return{start:o,count:r}}function to(t){const{xScale:e,yScale:n,_scaleRanges:i}=t,o={xmin:e.min,xmax:e.max,ymin:n.min,ymax:n.max};if(!i)return t._scaleRanges=o,!0;const r=i.xmin!==e.min||i.xmax!==e.max||i.ymin!==n.min||i.ymax!==n.max;return Object.assign(i,o),r}const eo=t=>0===t||1===t,no=(t,e,n)=>-Math.pow(2,10*(t-=1))*Math.sin((t-e)*yi/n),io=(t,e,n)=>Math.pow(2,-10*t)*Math.sin((t-e)*yi/n)+1,oo={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>1-Math.cos(t*Si),easeOutSine:t=>Math.sin(t*Si),easeInOutSine:t=>-.5*(Math.cos(vi*t)-1),easeInExpo:t=>0===t?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>1===t?1:1-Math.pow(2,-10*t),easeInOutExpo:t=>eo(t)?t:t<.5?.5*Math.pow(2,10*(2*t-1)):.5*(2-Math.pow(2,-10*(2*t-1))),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>eo(t)?t:no(t,.075,.3),easeOutElastic:t=>eo(t)?t:io(t,.075,.3),easeInOutElastic(t){const e=.1125;return eo(t)?t:t<.5?.5*no(2*t,e,.45):.5+.5*io(2*t-1,e,.45)},easeInBack(t){const e=1.70158;return t*t*((e+1)*t-e)},easeOutBack(t){const e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},easeInOutBack(t){let e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},easeInBounce:t=>1-oo.easeOutBounce(1-t),easeOutBounce(t){const e=7.5625,n=2.75;return t<1/n?e*t*t:t<2/n?e*(t-=1.5/n)*t+.75:t<2.5/n?e*(t-=2.25/n)*t+.9375:e*(t-=2.625/n)*t+.984375},easeInOutBounce:t=>t<.5?.5*oo.easeInBounce(2*t):.5*oo.easeOutBounce(2*t-1)+.5};
9
9
  /*!
10
10
  * @kurkle/color v0.2.1
11
11
  * https://github.com/kurkle/color#readme
12
12
  * (c) 2022 Jukka Kurkela
13
13
  * Released under the MIT License
14
14
  */
15
- function lo(e){return e+.5|0}const co=(e,t,n)=>Math.max(Math.min(e,n),t);function uo(e){return co(lo(2.55*e),0,255)}function po(e){return co(lo(255*e),0,255)}function ho(e){return co(lo(e/2.55)/100,0,1)}function fo(e){return co(lo(100*e),0,100)}const mo={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},go=[..."0123456789ABCDEF"],vo=e=>go[15&e],bo=e=>go[(240&e)>>4]+go[15&e],yo=e=>(240&e)>>4==(15&e);function xo(e){var t=(e=>yo(e.r)&&yo(e.g)&&yo(e.b)&&yo(e.a))(e)?vo:bo;return e?"#"+t(e.r)+t(e.g)+t(e.b)+((e,t)=>e<255?t(e):"")(e.a,t):void 0}const wo=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function _o(e,t,n){const r=t*Math.min(n,1-n),o=(t,o=(t+e/30)%12)=>n-r*Math.max(Math.min(o-3,9-o,1),-1);return[o(0),o(8),o(4)]}function So(e,t,n){const r=(r,o=(r+e/60)%6)=>n-n*t*Math.max(Math.min(o,4-o,1),0);return[r(5),r(3),r(1)]}function Eo(e,t,n){const r=_o(e,1,.5);let o;for(t+n>1&&(o=1/(t+n),t*=o,n*=o),o=0;o<3;o++)r[o]*=1-t-n,r[o]+=t;return r}function ko(e){const t=e.r/255,n=e.g/255,r=e.b/255,o=Math.max(t,n,r),i=Math.min(t,n,r),a=(o+i)/2;let s,l,c;return o!==i&&(c=o-i,l=a>.5?c/(2-o-i):c/(o+i),s=function(e,t,n,r,o){return e===o?(t-n)/r+(t<n?6:0):t===o?(n-e)/r+2:(e-t)/r+4}(t,n,r,c,o),s=60*s+.5),[0|s,l||0,a]}function Oo(e,t,n,r){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,r)).map(po)}function Co(e,t,n){return Oo(_o,e,t,n)}function Mo(e){return(e%360+360)%360}function To(e){const t=wo.exec(e);let n,r=255;if(!t)return;t[5]!==n&&(r=t[6]?uo(+t[5]):po(+t[5]));const o=Mo(+t[2]),i=+t[3]/100,a=+t[4]/100;return n="hwb"===t[1]?function(e,t,n){return Oo(Eo,e,t,n)}(o,i,a):"hsv"===t[1]?function(e,t,n){return Oo(So,e,t,n)}(o,i,a):Co(o,i,a),{r:n[0],g:n[1],b:n[2],a:r}}const Ao={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},Po={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};let Ro;function No(e){Ro||(Ro=function(){const e={},t=Object.keys(Po),n=Object.keys(Ao);let r,o,i,a,s;for(r=0;r<t.length;r++){for(a=s=t[r],o=0;o<n.length;o++)i=n[o],s=s.replace(i,Ao[i]);i=parseInt(Po[a],16),e[s]=[i>>16&255,i>>8&255,255&i]}return e}(),Ro.transparent=[0,0,0,0]);const t=Ro[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:4===t.length?t[3]:255}}const Do=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;const Io=e=>e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055,Fo=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function Lo(e,t,n){if(e){let r=ko(e);r[t]=Math.max(0,Math.min(r[t]+r[t]*n,0===t?360:1)),r=Co(r),e.r=r[0],e.g=r[1],e.b=r[2]}}function jo(e,t){return e?Object.assign(t||{},e):e}function zo(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=po(e[3]))):(t=jo(e,{r:0,g:0,b:0,a:1})).a=po(t.a),t}function Bo(e){return"r"===e.charAt(0)?function(e){const t=Do.exec(e);let n,r,o,i=255;if(t){if(t[7]!==n){const e=+t[7];i=t[8]?uo(e):co(255*e,0,255)}return n=+t[1],r=+t[3],o=+t[5],n=255&(t[2]?uo(n):co(n,0,255)),r=255&(t[4]?uo(r):co(r,0,255)),o=255&(t[6]?uo(o):co(o,0,255)),{r:n,g:r,b:o,a:i}}}(e):To(e)}class Ho{constructor(e){if(e instanceof Ho)return e;const t=typeof e;let n;var r,o,i;"object"===t?n=zo(e):"string"===t&&(i=(r=e).length,"#"===r[0]&&(4===i||5===i?o={r:255&17*mo[r[1]],g:255&17*mo[r[2]],b:255&17*mo[r[3]],a:5===i?17*mo[r[4]]:255}:7!==i&&9!==i||(o={r:mo[r[1]]<<4|mo[r[2]],g:mo[r[3]]<<4|mo[r[4]],b:mo[r[5]]<<4|mo[r[6]],a:9===i?mo[r[7]]<<4|mo[r[8]]:255})),n=o||No(e)||Bo(e)),this._rgb=n,this._valid=!!n}get valid(){return this._valid}get rgb(){var e=jo(this._rgb);return e&&(e.a=ho(e.a)),e}set rgb(e){this._rgb=zo(e)}rgbString(){return this._valid?(e=this._rgb)&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${ho(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`):void 0;var e}hexString(){return this._valid?xo(this._rgb):void 0}hslString(){return this._valid?function(e){if(!e)return;const t=ko(e),n=t[0],r=fo(t[1]),o=fo(t[2]);return e.a<255?`hsla(${n}, ${r}%, ${o}%, ${ho(e.a)})`:`hsl(${n}, ${r}%, ${o}%)`}(this._rgb):void 0}mix(e,t){if(e){const n=this.rgb,r=e.rgb;let o;const i=t===o?.5:t,a=2*i-1,s=n.a-r.a,l=((a*s===-1?a:(a+s)/(1+a*s))+1)/2;o=1-l,n.r=255&l*n.r+o*r.r+.5,n.g=255&l*n.g+o*r.g+.5,n.b=255&l*n.b+o*r.b+.5,n.a=i*n.a+(1-i)*r.a,this.rgb=n}return this}interpolate(e,t){return e&&(this._rgb=function(e,t,n){const r=Fo(ho(e.r)),o=Fo(ho(e.g)),i=Fo(ho(e.b));return{r:po(Io(r+n*(Fo(ho(t.r))-r))),g:po(Io(o+n*(Fo(ho(t.g))-o))),b:po(Io(i+n*(Fo(ho(t.b))-i))),a:e.a+n*(t.a-e.a)}}(this._rgb,e._rgb,t)),this}clone(){return new Ho(this.rgb)}alpha(e){return this._rgb.a=po(e),this}clearer(e){return this._rgb.a*=1-e,this}greyscale(){const e=this._rgb,t=lo(.3*e.r+.59*e.g+.11*e.b);return e.r=e.g=e.b=t,this}opaquer(e){return this._rgb.a*=1+e,this}negate(){const e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}lighten(e){return Lo(this._rgb,2,e),this}darken(e){return Lo(this._rgb,2,-e),this}saturate(e){return Lo(this._rgb,1,e),this}desaturate(e){return Lo(this._rgb,1,-e),this}rotate(e){return function(e,t){var n=ko(e);n[0]=Mo(n[0]+t),n=Co(n),e.r=n[0],e.g=n[1],e.b=n[2]}(this._rgb,e),this}}function Vo(e){return new Ho(e)}function $o(e){if(e&&"object"==typeof e){const t=e.toString();return"[object CanvasPattern]"===t||"[object CanvasGradient]"===t}return!1}function Wo(e){return $o(e)?e:Vo(e)}function Uo(e){return $o(e)?e:Vo(e).saturate(.5).darken(.1).hexString()}const Go=Object.create(null),Yo=Object.create(null);function Xo(e,t){if(!t)return e;const n=t.split(".");for(let t=0,r=n.length;t<r;++t){const r=n[t];e=e[r]||(e[r]=Object.create(null))}return e}function qo(e,t,n){return"string"==typeof t?hr(Xo(e,t),n):hr(Xo(e,""),t)}var Ko=new class{constructor(e){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=e=>e.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(e,t)=>Uo(t.backgroundColor),this.hoverBorderColor=(e,t)=>Uo(t.borderColor),this.hoverColor=(e,t)=>Uo(t.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(e)}set(e,t){return qo(this,e,t)}get(e){return Xo(this,e)}describe(e,t){return qo(Yo,e,t)}override(e,t){return qo(Go,e,t)}route(e,t,n,r){const o=Xo(this,e),i=Xo(this,n),a="_"+t;Object.defineProperties(o,{[a]:{value:o[t],writable:!0},[t]:{enumerable:!0,get(){const e=this[a],t=i[r];return nr(e)?Object.assign({},t,e):ir(e,t)},set(e){this[a]=e}}})}}({_scriptable:e=>!e.startsWith("on"),_indexable:e=>"events"!==e,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}});function Zo(e,t,n,r,o){let i=t[o];return i||(i=t[o]=e.measureText(o).width,n.push(o)),i>r&&(r=i),r}function Qo(e,t,n,r){let o=(r=r||{}).data=r.data||{},i=r.garbageCollect=r.garbageCollect||[];r.font!==t&&(o=r.data={},i=r.garbageCollect=[],r.font=t),e.save(),e.font=t;let a=0;const s=n.length;let l,c,u,d,p;for(l=0;l<s;l++)if(d=n[l],null!=d&&!0!==tr(d))a=Zo(e,o,i,a,d);else if(tr(d))for(c=0,u=d.length;c<u;c++)p=d[c],null==p||tr(p)||(a=Zo(e,o,i,a,p));e.restore();const h=i.length/2;if(h>n.length){for(l=0;l<h;l++)delete o[i[l]];i.splice(0,h)}return a}function Jo(e,t,n){const r=e.currentDevicePixelRatio,o=0!==n?Math.max(n/2,.5):0;return Math.round((t-o)*r)/r+o}function ei(e,t){(t=t||e.getContext("2d")).save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore()}function ti(e,t,n,r){ni(e,t,n,r,null)}function ni(e,t,n,r,o){let i,a,s,l,c,u;const d=t.pointStyle,p=t.rotation,h=t.radius;let f=(p||0)*Or;if(d&&"object"==typeof d&&(i=d.toString(),"[object HTMLImageElement]"===i||"[object HTMLCanvasElement]"===i))return e.save(),e.translate(n,r),e.rotate(f),e.drawImage(d,-d.width/2,-d.height/2,d.width,d.height),void e.restore();if(!(isNaN(h)||h<=0)){switch(e.beginPath(),d){default:o?e.ellipse(n,r,o/2,h,0,0,Sr):e.arc(n,r,h,0,Sr),e.closePath();break;case"triangle":e.moveTo(n+Math.sin(f)*h,r-Math.cos(f)*h),f+=Tr,e.lineTo(n+Math.sin(f)*h,r-Math.cos(f)*h),f+=Tr,e.lineTo(n+Math.sin(f)*h,r-Math.cos(f)*h),e.closePath();break;case"rectRounded":c=.516*h,l=h-c,a=Math.cos(f+Mr)*l,s=Math.sin(f+Mr)*l,e.arc(n-a,r-s,c,f-_r,f-Cr),e.arc(n+s,r-a,c,f-Cr,f),e.arc(n+a,r+s,c,f,f+Cr),e.arc(n-s,r+a,c,f+Cr,f+_r),e.closePath();break;case"rect":if(!p){l=Math.SQRT1_2*h,u=o?o/2:l,e.rect(n-u,r-l,2*u,2*l);break}f+=Mr;case"rectRot":a=Math.cos(f)*h,s=Math.sin(f)*h,e.moveTo(n-a,r-s),e.lineTo(n+s,r-a),e.lineTo(n+a,r+s),e.lineTo(n-s,r+a),e.closePath();break;case"crossRot":f+=Mr;case"cross":a=Math.cos(f)*h,s=Math.sin(f)*h,e.moveTo(n-a,r-s),e.lineTo(n+a,r+s),e.moveTo(n+s,r-a),e.lineTo(n-s,r+a);break;case"star":a=Math.cos(f)*h,s=Math.sin(f)*h,e.moveTo(n-a,r-s),e.lineTo(n+a,r+s),e.moveTo(n+s,r-a),e.lineTo(n-s,r+a),f+=Mr,a=Math.cos(f)*h,s=Math.sin(f)*h,e.moveTo(n-a,r-s),e.lineTo(n+a,r+s),e.moveTo(n+s,r-a),e.lineTo(n-s,r+a);break;case"line":a=o?o/2:Math.cos(f)*h,s=Math.sin(f)*h,e.moveTo(n-a,r-s),e.lineTo(n+a,r+s);break;case"dash":e.moveTo(n,r),e.lineTo(n+Math.cos(f)*h,r+Math.sin(f)*h)}e.fill(),t.borderWidth>0&&e.stroke()}}function ri(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.x<t.right+n&&e.y>t.top-n&&e.y<t.bottom+n}function oi(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function ii(e){e.restore()}function ai(e,t,n,r,o){if(!t)return e.lineTo(n.x,n.y);if("middle"===o){const r=(t.x+n.x)/2;e.lineTo(r,t.y),e.lineTo(r,n.y)}else"after"===o!=!!r?e.lineTo(t.x,n.y):e.lineTo(n.x,t.y);e.lineTo(n.x,n.y)}function si(e,t,n,r){if(!t)return e.lineTo(n.x,n.y);e.bezierCurveTo(r?t.cp1x:t.cp2x,r?t.cp1y:t.cp2y,r?n.cp2x:n.cp1x,r?n.cp2y:n.cp1y,n.x,n.y)}function li(e,t,n,r,o,i={}){const a=tr(t)?t:[t],s=i.strokeWidth>0&&""!==i.strokeColor;let l,c;for(e.save(),e.font=o.string,function(e,t){t.translation&&e.translate(t.translation[0],t.translation[1]);er(t.rotation)||e.rotate(t.rotation);t.color&&(e.fillStyle=t.color);t.textAlign&&(e.textAlign=t.textAlign);t.textBaseline&&(e.textBaseline=t.textBaseline)}(e,i),l=0;l<a.length;++l)c=a[l],s&&(i.strokeColor&&(e.strokeStyle=i.strokeColor),er(i.strokeWidth)||(e.lineWidth=i.strokeWidth),e.strokeText(c,n,r,i.maxWidth)),e.fillText(c,n,r,i.maxWidth),ci(e,n,r,c,i),r+=o.lineHeight;e.restore()}function ci(e,t,n,r,o){if(o.strikethrough||o.underline){const i=e.measureText(r),a=t-i.actualBoundingBoxLeft,s=t+i.actualBoundingBoxRight,l=n-i.actualBoundingBoxAscent,c=n+i.actualBoundingBoxDescent,u=o.strikethrough?(l+c)/2:c;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=o.decorationWidth||2,e.moveTo(a,u),e.lineTo(s,u),e.stroke()}}function ui(e,t){const{x:n,y:r,w:o,h:i,radius:a}=t;e.arc(n+a.topLeft,r+a.topLeft,a.topLeft,-Cr,_r,!0),e.lineTo(n,r+i-a.bottomLeft),e.arc(n+a.bottomLeft,r+i-a.bottomLeft,a.bottomLeft,_r,Cr,!0),e.lineTo(n+o-a.bottomRight,r+i),e.arc(n+o-a.bottomRight,r+i-a.bottomRight,a.bottomRight,Cr,0,!0),e.lineTo(n+o,r+a.topRight),e.arc(n+o-a.topRight,r+a.topRight,a.topRight,0,-Cr,!0),e.lineTo(n+a.topLeft,r)}const di=new RegExp(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/),pi=new RegExp(/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/);function hi(e,t){const n=(""+e).match(di);if(!n||"normal"===n[1])return 1.2*t;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100}return t*e}const fi=e=>+e||0;function mi(e,t){const n={},r=nr(t),o=r?Object.keys(t):t,i=nr(e)?r?n=>ir(e[n],e[t[n]]):t=>e[t]:()=>e;for(const e of o)n[e]=fi(i(e));return n}function gi(e){return mi(e,{top:"y",right:"x",bottom:"y",left:"x"})}function vi(e){return mi(e,["topLeft","topRight","bottomLeft","bottomRight"])}function bi(e){const t=gi(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function yi(e,t){e=e||{},t=t||Ko.font;let n=ir(e.size,t.size);"string"==typeof n&&(n=parseInt(n,10));let r=ir(e.style,t.style);r&&!(""+r).match(pi)&&(console.warn('Invalid font style specified: "'+r+'"'),r="");const o={family:ir(e.family,t.family),lineHeight:hi(ir(e.lineHeight,t.lineHeight),n),size:n,style:r,weight:ir(e.weight,t.weight),string:""};return o.string=function(e){return!e||er(e.size)||er(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}(o),o}function xi(e,t,n,r){let o,i,a,s=!0;for(o=0,i=e.length;o<i;++o)if(a=e[o],void 0!==a&&(void 0!==t&&"function"==typeof a&&(a=a(t),s=!1),void 0!==n&&tr(a)&&(a=a[n%a.length],s=!1),void 0!==a))return r&&!s&&(r.cacheable=!1),a}function wi(e,t){return Object.assign(Object.create(e),t)}function _i(e,t=[""],n=e,r,o=()=>e[0]){yr(r)||(r=Ni("_fallback",e));const i={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:n,_fallback:r,_getTarget:o,override:o=>_i([o,...e],t,n,r)};return new Proxy(i,{deleteProperty:(t,n)=>(delete t[n],delete t._keys,delete e[0][n],!0),get:(n,r)=>Ci(n,r,()=>function(e,t,n,r){let o;for(const i of t)if(o=Ni(ki(i,e),n),yr(o))return Oi(e,o)?Pi(n,r,e,o):o}(r,t,e,n)),getOwnPropertyDescriptor:(e,t)=>Reflect.getOwnPropertyDescriptor(e._scopes[0],t),getPrototypeOf:()=>Reflect.getPrototypeOf(e[0]),has:(e,t)=>Di(e).includes(t),ownKeys:e=>Di(e),set(e,t,n){const r=e._storage||(e._storage=o());return e[t]=r[t]=n,delete e._keys,!0}})}function Si(e,t,n,r){const o={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:Ei(e,r),setContext:t=>Si(e,t,n,r),override:o=>Si(e.override(o),t,n,r)};return new Proxy(o,{deleteProperty:(t,n)=>(delete t[n],delete e[n],!0),get:(e,t,n)=>Ci(e,t,()=>function(e,t,n){const{_proxy:r,_context:o,_subProxy:i,_descriptors:a}=e;let s=r[t];xr(s)&&a.isScriptable(t)&&(s=function(e,t,n,r){const{_proxy:o,_context:i,_subProxy:a,_stack:s}=n;if(s.has(e))throw new Error("Recursion detected: "+Array.from(s).join("->")+"->"+e);s.add(e),t=t(i,a||r),s.delete(e),Oi(e,t)&&(t=Pi(o._scopes,o,e,t));return t}(t,s,e,n));tr(s)&&s.length&&(s=function(e,t,n,r){const{_proxy:o,_context:i,_subProxy:a,_descriptors:s}=n;if(yr(i.index)&&r(e))t=t[i.index%t.length];else if(nr(t[0])){const n=t,r=o._scopes.filter(e=>e!==n);t=[];for(const l of n){const n=Pi(r,o,e,l);t.push(Si(n,i,a&&a[e],s))}}return t}(t,s,e,a.isIndexable));Oi(t,s)&&(s=Si(s,o,i&&i[t],a));return s}(e,t,n)),getOwnPropertyDescriptor:(t,n)=>t._descriptors.allKeys?Reflect.has(e,n)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,n),getPrototypeOf:()=>Reflect.getPrototypeOf(e),has:(t,n)=>Reflect.has(e,n),ownKeys:()=>Reflect.ownKeys(e),set:(t,n,r)=>(e[n]=r,delete t[n],!0)})}function Ei(e,t={scriptable:!0,indexable:!0}){const{_scriptable:n=t.scriptable,_indexable:r=t.indexable,_allKeys:o=t.allKeys}=e;return{allKeys:o,scriptable:n,indexable:r,isScriptable:xr(n)?n:()=>n,isIndexable:xr(r)?r:()=>r}}const ki=(e,t)=>e?e+br(t):t,Oi=(e,t)=>nr(t)&&"adapters"!==e&&(null===Object.getPrototypeOf(t)||t.constructor===Object);function Ci(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t))return e[t];const r=n();return e[t]=r,r}function Mi(e,t,n){return xr(e)?e(t,n):e}const Ti=(e,t)=>!0===e?t:"string"==typeof e?vr(t,e):void 0;function Ai(e,t,n,r,o){for(const i of t){const t=Ti(n,i);if(t){e.add(t);const i=Mi(t._fallback,n,o);if(yr(i)&&i!==n&&i!==r)return i}else if(!1===t&&yr(r)&&n!==r)return null}return!1}function Pi(e,t,n,r){const o=t._rootScopes,i=Mi(t._fallback,n,r),a=[...e,...o],s=new Set;s.add(r);let l=Ri(s,a,n,i||n,r);return null!==l&&((!yr(i)||i===n||(l=Ri(s,a,i,l,r),null!==l))&&_i(Array.from(s),[""],o,i,()=>function(e,t,n){const r=e._getTarget();t in r||(r[t]={});const o=r[t];if(tr(o)&&nr(n))return n;return o}(t,n,r)))}function Ri(e,t,n,r,o){for(;n;)n=Ai(e,t,n,r,o);return n}function Ni(e,t){for(const n of t){if(!n)continue;const t=n[e];if(yr(t))return t}}function Di(e){let t=e._keys;return t||(t=e._keys=function(e){const t=new Set;for(const n of e)for(const e of Object.keys(n).filter(e=>!e.startsWith("_")))t.add(e);return Array.from(t)}(e._scopes)),t}function Ii(e,t,n,r){const{iScale:o}=e,{key:i="r"}=this._parsing,a=new Array(r);let s,l,c,u;for(s=0,l=r;s<l;++s)c=s+n,u=t[c],a[s]={r:o.parse(vr(u,i),c)};return a}const Fi=Number.EPSILON||1e-14,Li=(e,t)=>t<e.length&&!e[t].skip&&e[t],ji=e=>"x"===e?"y":"x";function zi(e,t,n,r){const o=e.skip?t:e,i=t,a=n.skip?t:n,s=Br(i,o),l=Br(a,i);let c=s/(s+l),u=l/(s+l);c=isNaN(c)?0:c,u=isNaN(u)?0:u;const d=r*c,p=r*u;return{previous:{x:i.x-d*(a.x-o.x),y:i.y-d*(a.y-o.y)},next:{x:i.x+p*(a.x-o.x),y:i.y+p*(a.y-o.y)}}}function Bi(e,t="x"){const n=ji(t),r=e.length,o=Array(r).fill(0),i=Array(r);let a,s,l,c=Li(e,0);for(a=0;a<r;++a)if(s=l,l=c,c=Li(e,a+1),l){if(c){const e=c[t]-l[t];o[a]=0!==e?(c[n]-l[n])/e:0}i[a]=s?c?Pr(o[a-1])!==Pr(o[a])?0:(o[a-1]+o[a])/2:o[a-1]:o[a]}!function(e,t,n){const r=e.length;let o,i,a,s,l,c=Li(e,0);for(let u=0;u<r-1;++u)l=c,c=Li(e,u+1),l&&c&&(Dr(t[u],0,Fi)?n[u]=n[u+1]=0:(o=n[u]/t[u],i=n[u+1]/t[u],s=Math.pow(o,2)+Math.pow(i,2),s<=9||(a=3/Math.sqrt(s),n[u]=o*a*t[u],n[u+1]=i*a*t[u])))}(e,o,i),function(e,t,n="x"){const r=ji(n),o=e.length;let i,a,s,l=Li(e,0);for(let c=0;c<o;++c){if(a=s,s=l,l=Li(e,c+1),!s)continue;const o=s[n],u=s[r];a&&(i=(o-a[n])/3,s[`cp1${n}`]=o-i,s[`cp1${r}`]=u-i*t[c]),l&&(i=(l[n]-o)/3,s[`cp2${n}`]=o+i,s[`cp2${r}`]=u+i*t[c])}}(e,i,t)}function Hi(e,t,n){return Math.max(Math.min(e,n),t)}function Vi(e,t,n,r,o){let i,a,s,l;if(t.spanGaps&&(e=e.filter(e=>!e.skip)),"monotone"===t.cubicInterpolationMode)Bi(e,o);else{let n=r?e[e.length-1]:e[0];for(i=0,a=e.length;i<a;++i)s=e[i],l=zi(n,s,e[Math.min(i+1,a-(r?0:1))%a],t.tension),s.cp1x=l.previous.x,s.cp1y=l.previous.y,s.cp2x=l.next.x,s.cp2y=l.next.y,n=s}t.capBezierPoints&&function(e,t){let n,r,o,i,a,s=ri(e[0],t);for(n=0,r=e.length;n<r;++n)a=i,i=s,s=n<r-1&&ri(e[n+1],t),i&&(o=e[n],a&&(o.cp1x=Hi(o.cp1x,t.left,t.right),o.cp1y=Hi(o.cp1y,t.top,t.bottom)),s&&(o.cp2x=Hi(o.cp2x,t.left,t.right),o.cp2y=Hi(o.cp2y,t.top,t.bottom)))}(e,n)}function $i(){return"undefined"!=typeof window&&"undefined"!=typeof document}function Wi(e){let t=e.parentNode;return t&&"[object ShadowRoot]"===t.toString()&&(t=t.host),t}function Ui(e,t,n){let r;return"string"==typeof e?(r=parseInt(e,10),-1!==e.indexOf("%")&&(r=r/100*t.parentNode[n])):r=e,r}const Gi=e=>window.getComputedStyle(e,null);const Yi=["top","right","bottom","left"];function Xi(e,t,n){const r={};n=n?"-"+n:"";for(let o=0;o<4;o++){const i=Yi[o];r[i]=parseFloat(e[t+"-"+i+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}function qi(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:r}=t,o=Gi(n),i="border-box"===o.boxSizing,a=Xi(o,"padding"),s=Xi(o,"border","width"),{x:l,y:c,box:u}=function(e,t){const n=e.touches,r=n&&n.length?n[0]:e,{offsetX:o,offsetY:i}=r;let a,s,l=!1;if(((e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot))(o,i,e.target))a=o,s=i;else{const e=t.getBoundingClientRect();a=r.clientX-e.left,s=r.clientY-e.top,l=!0}return{x:a,y:s,box:l}}(e,n),d=a.left+(u&&s.left),p=a.top+(u&&s.top);let{width:h,height:f}=t;return i&&(h-=a.width+s.width,f-=a.height+s.height),{x:Math.round((l-d)/h*n.width/r),y:Math.round((c-p)/f*n.height/r)}}const Ki=e=>Math.round(10*e)/10;function Zi(e,t,n,r){const o=Gi(e),i=Xi(o,"margin"),a=Ui(o.maxWidth,e,"clientWidth")||kr,s=Ui(o.maxHeight,e,"clientHeight")||kr,l=function(e,t,n){let r,o;if(void 0===t||void 0===n){const i=Wi(e);if(i){const e=i.getBoundingClientRect(),a=Gi(i),s=Xi(a,"border","width"),l=Xi(a,"padding");t=e.width-l.width-s.width,n=e.height-l.height-s.height,r=Ui(a.maxWidth,i,"clientWidth"),o=Ui(a.maxHeight,i,"clientHeight")}else t=e.clientWidth,n=e.clientHeight}return{width:t,height:n,maxWidth:r||kr,maxHeight:o||kr}}(e,t,n);let{width:c,height:u}=l;if("content-box"===o.boxSizing){const e=Xi(o,"border","width"),t=Xi(o,"padding");c-=t.width+e.width,u-=t.height+e.height}return c=Math.max(0,c-i.width),u=Math.max(0,r?Math.floor(c/r):u-i.height),c=Ki(Math.min(c,a,l.maxWidth)),u=Ki(Math.min(u,s,l.maxHeight)),c&&!u&&(u=Ki(c/2)),{width:c,height:u}}function Qi(e,t,n){const r=t||1,o=Math.floor(e.height*r),i=Math.floor(e.width*r);e.height=o/r,e.width=i/r;const a=e.canvas;return a.style&&(n||!a.style.height&&!a.style.width)&&(a.style.height=`${e.height}px`,a.style.width=`${e.width}px`),(e.currentDevicePixelRatio!==r||a.height!==o||a.width!==i)&&(e.currentDevicePixelRatio=r,a.height=o,a.width=i,e.ctx.setTransform(r,0,0,r,0,0),!0)}const Ji=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(e){}return e}();function ea(e,t){const n=function(e,t){return Gi(e).getPropertyValue(t)}(e,t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function ta(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function na(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:"middle"===r?n<.5?e.y:t.y:"after"===r?n<1?e.y:t.y:n>0?t.y:e.y}}function ra(e,t,n,r){const o={x:e.cp2x,y:e.cp2y},i={x:t.cp1x,y:t.cp1y},a=ta(e,o,n),s=ta(o,i,n),l=ta(i,t,n),c=ta(a,s,n),u=ta(s,l,n);return ta(c,u,n)}const oa=new Map;function ia(e,t,n){return function(e,t){t=t||{};const n=e+JSON.stringify(t);let r=oa.get(n);return r||(r=new Intl.NumberFormat(e,t),oa.set(n,r)),r}(t,n).format(e)}function aa(e,t,n){return e?function(e,t){return{x:n=>e+e+t-n,setWidth(e){t=e},textAlign:e=>"center"===e?e:"right"===e?"left":"right",xPlus:(e,t)=>e-t,leftForLtr:(e,t)=>e-t}}(t,n):{x:e=>e,setWidth(e){},textAlign:e=>e,xPlus:(e,t)=>e+t,leftForLtr:(e,t)=>e}}function sa(e,t){let n,r;"ltr"!==t&&"rtl"!==t||(n=e.canvas.style,r=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=r)}function la(e,t){void 0!==t&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function ca(e){return"angle"===e?{between:$r,compare:Hr,normalize:Vr}:{between:Ur,compare:(e,t)=>e-t,normalize:e=>e}}function ua({start:e,end:t,count:n,loop:r,style:o}){return{start:e%n,end:t%n,loop:r&&(t-e+1)%n==0,style:o}}function da(e,t,n){if(!n)return[e];const{property:r,start:o,end:i}=n,a=t.length,{compare:s,between:l,normalize:c}=ca(r),{start:u,end:d,loop:p,style:h}=function(e,t,n){const{property:r,start:o,end:i}=n,{between:a,normalize:s}=ca(r),l=t.length;let c,u,{start:d,end:p,loop:h}=e;if(h){for(d+=l,p+=l,c=0,u=l;c<u&&a(s(t[d%l][r]),o,i);++c)d--,p--;d%=l,p%=l}return p<d&&(p+=l),{start:d,end:p,loop:h,style:e.style}}(e,t,n),f=[];let m,g,v,b=!1,y=null;const x=()=>b||l(o,v,m)&&0!==s(o,v),w=()=>!b||0===s(i,m)||l(i,v,m);for(let e=u,n=u;e<=d;++e)g=t[e%a],g.skip||(m=c(g[r]),m!==v&&(b=l(m,o,i),null===y&&x()&&(y=0===s(m,o)?e:n),null!==y&&w()&&(f.push(ua({start:y,end:e,loop:p,count:a,style:h})),y=null),n=e,v=m));return null!==y&&f.push(ua({start:y,end:d,loop:p,count:a,style:h})),f}function pa(e,t){const n=[],r=e.segments;for(let o=0;o<r.length;o++){const i=da(r[o],e.points,t);i.length&&n.push(...i)}return n}function ha(e,t,n,r){return r&&r.setContext&&n?function(e,t,n,r){const o=e._chart.getContext(),i=fa(e.options),{_datasetIndex:a,options:{spanGaps:s}}=e,l=n.length,c=[];let u=i,d=t[0].start,p=d;function h(e,t,r,o){const i=s?-1:1;if(e!==t){for(e+=l;n[e%l].skip;)e-=i;for(;n[t%l].skip;)t+=i;e%l!==t%l&&(c.push({start:e%l,end:t%l,loop:r,style:o}),u=o,d=t%l)}}for(const e of t){d=s?d:e.start;let t,i=n[d%l];for(p=d+1;p<=e.end;p++){const s=n[p%l];t=fa(r.setContext(wi(o,{type:"segment",p0:i,p1:s,p0DataIndex:(p-1)%l,p1DataIndex:p%l,datasetIndex:a}))),ma(t,u)&&h(d,p-1,e.loop,u),i=s,u=t}d<p-1&&h(d,p-1,e.loop,u)}return c}(e,t,n,r):t}function fa(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}function ma(e,t){return t&&JSON.stringify(e)!==JSON.stringify(t)}
15
+ function ro(t){return t+.5|0}const ao=(t,e,n)=>Math.max(Math.min(t,n),e);function so(t){return ao(ro(2.55*t),0,255)}function lo(t){return ao(ro(255*t),0,255)}function co(t){return ao(ro(t/2.55)/100,0,1)}function ho(t){return ao(ro(100*t),0,100)}const uo={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},po=[..."0123456789ABCDEF"],fo=t=>po[15&t],go=t=>po[(240&t)>>4]+po[15&t],mo=t=>(240&t)>>4==(15&t);function bo(t){var e=(t=>mo(t.r)&&mo(t.g)&&mo(t.b)&&mo(t.a))(t)?fo:go;return t?"#"+e(t.r)+e(t.g)+e(t.b)+((t,e)=>t<255?e(t):"")(t.a,e):void 0}const xo=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function vo(t,e,n){const i=e*Math.min(n,1-n),o=(e,o=(e+t/30)%12)=>n-i*Math.max(Math.min(o-3,9-o,1),-1);return[o(0),o(8),o(4)]}function yo(t,e,n){const i=(i,o=(i+t/60)%6)=>n-n*e*Math.max(Math.min(o,4-o,1),0);return[i(5),i(3),i(1)]}function _o(t,e,n){const i=vo(t,1,.5);let o;for(e+n>1&&(o=1/(e+n),e*=o,n*=o),o=0;o<3;o++)i[o]*=1-e-n,i[o]+=e;return i}function wo(t){const e=t.r/255,n=t.g/255,i=t.b/255,o=Math.max(e,n,i),r=Math.min(e,n,i),a=(o+r)/2;let s,l,c;return o!==r&&(c=o-r,l=a>.5?c/(2-o-r):c/(o+r),s=function(t,e,n,i,o){return t===o?(e-n)/i+(e<n?6:0):e===o?(n-t)/i+2:(t-e)/i+4}(e,n,i,c,o),s=60*s+.5),[0|s,l||0,a]}function ko(t,e,n,i){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,n,i)).map(lo)}function So(t,e,n){return ko(vo,t,e,n)}function Eo(t){return(t%360+360)%360}function Oo(t){const e=xo.exec(t);let n,i=255;if(!e)return;e[5]!==n&&(i=e[6]?so(+e[5]):lo(+e[5]));const o=Eo(+e[2]),r=+e[3]/100,a=+e[4]/100;return n="hwb"===e[1]?function(t,e,n){return ko(_o,t,e,n)}(o,r,a):"hsv"===e[1]?function(t,e,n){return ko(yo,t,e,n)}(o,r,a):So(o,r,a),{r:n[0],g:n[1],b:n[2],a:i}}const To={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},Mo={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};let Do;function Co(t){Do||(Do=function(){const t={},e=Object.keys(Mo),n=Object.keys(To);let i,o,r,a,s;for(i=0;i<e.length;i++){for(a=s=e[i],o=0;o<n.length;o++)r=n[o],s=s.replace(r,To[r]);r=parseInt(Mo[a],16),t[s]=[r>>16&255,r>>8&255,255&r]}return t}(),Do.transparent=[0,0,0,0]);const e=Do[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:4===e.length?e[3]:255}}const Ao=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;const Ro=t=>t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055,Lo=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function Po(t,e,n){if(t){let i=wo(t);i[e]=Math.max(0,Math.min(i[e]+i[e]*n,0===e?360:1)),i=So(i),t.r=i[0],t.g=i[1],t.b=i[2]}}function Io(t,e){return t?Object.assign(e||{},t):t}function No(t){var e={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(e={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(e.a=lo(t[3]))):(e=Io(t,{r:0,g:0,b:0,a:1})).a=lo(e.a),e}function Fo(t){return"r"===t.charAt(0)?function(t){const e=Ao.exec(t);let n,i,o,r=255;if(e){if(e[7]!==n){const t=+e[7];r=e[8]?so(t):ao(255*t,0,255)}return n=+e[1],i=+e[3],o=+e[5],n=255&(e[2]?so(n):ao(n,0,255)),i=255&(e[4]?so(i):ao(i,0,255)),o=255&(e[6]?so(o):ao(o,0,255)),{r:n,g:i,b:o,a:r}}}(t):Oo(t)}class zo{constructor(t){if(t instanceof zo)return t;const e=typeof t;let n;var i,o,r;"object"===e?n=No(t):"string"===e&&(r=(i=t).length,"#"===i[0]&&(4===r||5===r?o={r:255&17*uo[i[1]],g:255&17*uo[i[2]],b:255&17*uo[i[3]],a:5===r?17*uo[i[4]]:255}:7!==r&&9!==r||(o={r:uo[i[1]]<<4|uo[i[2]],g:uo[i[3]]<<4|uo[i[4]],b:uo[i[5]]<<4|uo[i[6]],a:9===r?uo[i[7]]<<4|uo[i[8]]:255})),n=o||Co(t)||Fo(t)),this._rgb=n,this._valid=!!n}get valid(){return this._valid}get rgb(){var t=Io(this._rgb);return t&&(t.a=co(t.a)),t}set rgb(t){this._rgb=No(t)}rgbString(){return this._valid?(t=this._rgb)&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${co(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`):void 0;var t}hexString(){return this._valid?bo(this._rgb):void 0}hslString(){return this._valid?function(t){if(!t)return;const e=wo(t),n=e[0],i=ho(e[1]),o=ho(e[2]);return t.a<255?`hsla(${n}, ${i}%, ${o}%, ${co(t.a)})`:`hsl(${n}, ${i}%, ${o}%)`}(this._rgb):void 0}mix(t,e){if(t){const n=this.rgb,i=t.rgb;let o;const r=e===o?.5:e,a=2*r-1,s=n.a-i.a,l=((a*s===-1?a:(a+s)/(1+a*s))+1)/2;o=1-l,n.r=255&l*n.r+o*i.r+.5,n.g=255&l*n.g+o*i.g+.5,n.b=255&l*n.b+o*i.b+.5,n.a=r*n.a+(1-r)*i.a,this.rgb=n}return this}interpolate(t,e){return t&&(this._rgb=function(t,e,n){const i=Lo(co(t.r)),o=Lo(co(t.g)),r=Lo(co(t.b));return{r:lo(Ro(i+n*(Lo(co(e.r))-i))),g:lo(Ro(o+n*(Lo(co(e.g))-o))),b:lo(Ro(r+n*(Lo(co(e.b))-r))),a:t.a+n*(e.a-t.a)}}(this._rgb,t._rgb,e)),this}clone(){return new zo(this.rgb)}alpha(t){return this._rgb.a=lo(t),this}clearer(t){return this._rgb.a*=1-t,this}greyscale(){const t=this._rgb,e=ro(.3*t.r+.59*t.g+.11*t.b);return t.r=t.g=t.b=e,this}opaquer(t){return this._rgb.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return Po(this._rgb,2,t),this}darken(t){return Po(this._rgb,2,-t),this}saturate(t){return Po(this._rgb,1,t),this}desaturate(t){return Po(this._rgb,1,-t),this}rotate(t){return function(t,e){var n=wo(t);n[0]=Eo(n[0]+e),n=So(n),t.r=n[0],t.g=n[1],t.b=n[2]}(this._rgb,t),this}}function Bo(t){return new zo(t)}function jo(t){if(t&&"object"==typeof t){const e=t.toString();return"[object CanvasPattern]"===e||"[object CanvasGradient]"===e}return!1}function Yo(t){return jo(t)?t:Bo(t)}function Ho(t){return jo(t)?t:Bo(t).saturate(.5).darken(.1).hexString()}const Wo=Object.create(null),Vo=Object.create(null);function Uo(t,e){if(!e)return t;const n=e.split(".");for(let e=0,i=n.length;e<i;++e){const i=n[e];t=t[i]||(t[i]=Object.create(null))}return t}function Go(t,e,n){return"string"==typeof e?di(Uo(t,e),n):di(Uo(t,""),e)}var $o=new class{constructor(t){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=t=>t.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(t,e)=>Ho(e.backgroundColor),this.hoverBorderColor=(t,e)=>Ho(e.borderColor),this.hoverColor=(t,e)=>Ho(e.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t)}set(t,e){return Go(this,t,e)}get(t){return Uo(this,t)}describe(t,e){return Go(Vo,t,e)}override(t,e){return Go(Wo,t,e)}route(t,e,n,i){const o=Uo(this,t),r=Uo(this,n),a="_"+e;Object.defineProperties(o,{[a]:{value:o[e],writable:!0},[e]:{enumerable:!0,get(){const t=this[a],e=r[i];return Qn(t)?Object.assign({},e,t):ni(t,e)},set(t){this[a]=t}}})}}({_scriptable:t=>!t.startsWith("on"),_indexable:t=>"events"!==t,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}});function Xo(t,e,n,i,o){let r=e[o];return r||(r=e[o]=t.measureText(o).width,n.push(o)),r>i&&(i=r),i}function qo(t,e,n,i){let o=(i=i||{}).data=i.data||{},r=i.garbageCollect=i.garbageCollect||[];i.font!==e&&(o=i.data={},r=i.garbageCollect=[],i.font=e),t.save(),t.font=e;let a=0;const s=n.length;let l,c,d,h,u;for(l=0;l<s;l++)if(h=n[l],null!=h&&!0!==Jn(h))a=Xo(t,o,r,a,h);else if(Jn(h))for(c=0,d=h.length;c<d;c++)u=h[c],null==u||Jn(u)||(a=Xo(t,o,r,a,u));t.restore();const p=r.length/2;if(p>n.length){for(l=0;l<p;l++)delete o[r[l]];r.splice(0,p)}return a}function Zo(t,e,n){const i=t.currentDevicePixelRatio,o=0!==n?Math.max(n/2,.5):0;return Math.round((e-o)*i)/i+o}function Ko(t,e){(e=e||t.getContext("2d")).save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore()}function Jo(t,e,n,i){Qo(t,e,n,i,null)}function Qo(t,e,n,i,o){let r,a,s,l,c,d;const h=e.pointStyle,u=e.rotation,p=e.radius;let f=(u||0)*ki;if(h&&"object"==typeof h&&(r=h.toString(),"[object HTMLImageElement]"===r||"[object HTMLCanvasElement]"===r))return t.save(),t.translate(n,i),t.rotate(f),t.drawImage(h,-h.width/2,-h.height/2,h.width,h.height),void t.restore();if(!(isNaN(p)||p<=0)){switch(t.beginPath(),h){default:o?t.ellipse(n,i,o/2,p,0,0,yi):t.arc(n,i,p,0,yi),t.closePath();break;case"triangle":t.moveTo(n+Math.sin(f)*p,i-Math.cos(f)*p),f+=Oi,t.lineTo(n+Math.sin(f)*p,i-Math.cos(f)*p),f+=Oi,t.lineTo(n+Math.sin(f)*p,i-Math.cos(f)*p),t.closePath();break;case"rectRounded":c=.516*p,l=p-c,a=Math.cos(f+Ei)*l,s=Math.sin(f+Ei)*l,t.arc(n-a,i-s,c,f-vi,f-Si),t.arc(n+s,i-a,c,f-Si,f),t.arc(n+a,i+s,c,f,f+Si),t.arc(n-s,i+a,c,f+Si,f+vi),t.closePath();break;case"rect":if(!u){l=Math.SQRT1_2*p,d=o?o/2:l,t.rect(n-d,i-l,2*d,2*l);break}f+=Ei;case"rectRot":a=Math.cos(f)*p,s=Math.sin(f)*p,t.moveTo(n-a,i-s),t.lineTo(n+s,i-a),t.lineTo(n+a,i+s),t.lineTo(n-s,i+a),t.closePath();break;case"crossRot":f+=Ei;case"cross":a=Math.cos(f)*p,s=Math.sin(f)*p,t.moveTo(n-a,i-s),t.lineTo(n+a,i+s),t.moveTo(n+s,i-a),t.lineTo(n-s,i+a);break;case"star":a=Math.cos(f)*p,s=Math.sin(f)*p,t.moveTo(n-a,i-s),t.lineTo(n+a,i+s),t.moveTo(n+s,i-a),t.lineTo(n-s,i+a),f+=Ei,a=Math.cos(f)*p,s=Math.sin(f)*p,t.moveTo(n-a,i-s),t.lineTo(n+a,i+s),t.moveTo(n+s,i-a),t.lineTo(n-s,i+a);break;case"line":a=o?o/2:Math.cos(f)*p,s=Math.sin(f)*p,t.moveTo(n-a,i-s),t.lineTo(n+a,i+s);break;case"dash":t.moveTo(n,i),t.lineTo(n+Math.cos(f)*p,i+Math.sin(f)*p)}t.fill(),e.borderWidth>0&&t.stroke()}}function tr(t,e,n){return n=n||.5,!e||t&&t.x>e.left-n&&t.x<e.right+n&&t.y>e.top-n&&t.y<e.bottom+n}function er(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function nr(t){t.restore()}function ir(t,e,n,i,o){if(!e)return t.lineTo(n.x,n.y);if("middle"===o){const i=(e.x+n.x)/2;t.lineTo(i,e.y),t.lineTo(i,n.y)}else"after"===o!=!!i?t.lineTo(e.x,n.y):t.lineTo(n.x,e.y);t.lineTo(n.x,n.y)}function or(t,e,n,i){if(!e)return t.lineTo(n.x,n.y);t.bezierCurveTo(i?e.cp1x:e.cp2x,i?e.cp1y:e.cp2y,i?n.cp2x:n.cp1x,i?n.cp2y:n.cp1y,n.x,n.y)}function rr(t,e,n,i,o,r={}){const a=Jn(e)?e:[e],s=r.strokeWidth>0&&""!==r.strokeColor;let l,c;for(t.save(),t.font=o.string,function(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]);Kn(e.rotation)||t.rotate(e.rotation);e.color&&(t.fillStyle=e.color);e.textAlign&&(t.textAlign=e.textAlign);e.textBaseline&&(t.textBaseline=e.textBaseline)}(t,r),l=0;l<a.length;++l)c=a[l],s&&(r.strokeColor&&(t.strokeStyle=r.strokeColor),Kn(r.strokeWidth)||(t.lineWidth=r.strokeWidth),t.strokeText(c,n,i,r.maxWidth)),t.fillText(c,n,i,r.maxWidth),ar(t,n,i,c,r),i+=o.lineHeight;t.restore()}function ar(t,e,n,i,o){if(o.strikethrough||o.underline){const r=t.measureText(i),a=e-r.actualBoundingBoxLeft,s=e+r.actualBoundingBoxRight,l=n-r.actualBoundingBoxAscent,c=n+r.actualBoundingBoxDescent,d=o.strikethrough?(l+c)/2:c;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=o.decorationWidth||2,t.moveTo(a,d),t.lineTo(s,d),t.stroke()}}function sr(t,e){const{x:n,y:i,w:o,h:r,radius:a}=e;t.arc(n+a.topLeft,i+a.topLeft,a.topLeft,-Si,vi,!0),t.lineTo(n,i+r-a.bottomLeft),t.arc(n+a.bottomLeft,i+r-a.bottomLeft,a.bottomLeft,vi,Si,!0),t.lineTo(n+o-a.bottomRight,i+r),t.arc(n+o-a.bottomRight,i+r-a.bottomRight,a.bottomRight,Si,0,!0),t.lineTo(n+o,i+a.topRight),t.arc(n+o-a.topRight,i+a.topRight,a.topRight,0,-Si,!0),t.lineTo(n+a.topLeft,i)}const lr=new RegExp(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/),cr=new RegExp(/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/);function dr(t,e){const n=(""+t).match(lr);if(!n||"normal"===n[1])return 1.2*e;switch(t=+n[2],n[3]){case"px":return t;case"%":t/=100}return e*t}const hr=t=>+t||0;function ur(t,e){const n={},i=Qn(e),o=i?Object.keys(e):e,r=Qn(t)?i?n=>ni(t[n],t[e[n]]):e=>t[e]:()=>t;for(const t of o)n[t]=hr(r(t));return n}function pr(t){return ur(t,{top:"y",right:"x",bottom:"y",left:"x"})}function fr(t){return ur(t,["topLeft","topRight","bottomLeft","bottomRight"])}function gr(t){const e=pr(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function mr(t,e){t=t||{},e=e||$o.font;let n=ni(t.size,e.size);"string"==typeof n&&(n=parseInt(n,10));let i=ni(t.style,e.style);i&&!(""+i).match(cr)&&(console.warn('Invalid font style specified: "'+i+'"'),i="");const o={family:ni(t.family,e.family),lineHeight:dr(ni(t.lineHeight,e.lineHeight),n),size:n,style:i,weight:ni(t.weight,e.weight),string:""};return o.string=function(t){return!t||Kn(t.size)||Kn(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}(o),o}function br(t,e,n,i){let o,r,a,s=!0;for(o=0,r=t.length;o<r;++o)if(a=t[o],void 0!==a&&(void 0!==e&&"function"==typeof a&&(a=a(e),s=!1),void 0!==n&&Jn(a)&&(a=a[n%a.length],s=!1),void 0!==a))return i&&!s&&(i.cacheable=!1),a}function xr(t,e){return Object.assign(Object.create(t),e)}function vr(t,e=[""],n=t,i,o=()=>t[0]){mi(i)||(i=Cr("_fallback",t));const r={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:n,_fallback:i,_getTarget:o,override:o=>vr([o,...t],e,n,i)};return new Proxy(r,{deleteProperty:(e,n)=>(delete e[n],delete e._keys,delete t[0][n],!0),get:(n,i)=>Sr(n,i,()=>function(t,e,n,i){let o;for(const r of e)if(o=Cr(wr(r,t),n),mi(o))return kr(t,o)?Mr(n,i,t,o):o}(i,e,t,n)),getOwnPropertyDescriptor:(t,e)=>Reflect.getOwnPropertyDescriptor(t._scopes[0],e),getPrototypeOf:()=>Reflect.getPrototypeOf(t[0]),has:(t,e)=>Ar(t).includes(e),ownKeys:t=>Ar(t),set(t,e,n){const i=t._storage||(t._storage=o());return t[e]=i[e]=n,delete t._keys,!0}})}function yr(t,e,n,i){const o={_cacheable:!1,_proxy:t,_context:e,_subProxy:n,_stack:new Set,_descriptors:_r(t,i),setContext:e=>yr(t,e,n,i),override:o=>yr(t.override(o),e,n,i)};return new Proxy(o,{deleteProperty:(e,n)=>(delete e[n],delete t[n],!0),get:(t,e,n)=>Sr(t,e,()=>function(t,e,n){const{_proxy:i,_context:o,_subProxy:r,_descriptors:a}=t;let s=i[e];bi(s)&&a.isScriptable(e)&&(s=function(t,e,n,i){const{_proxy:o,_context:r,_subProxy:a,_stack:s}=n;if(s.has(t))throw new Error("Recursion detected: "+Array.from(s).join("->")+"->"+t);s.add(t),e=e(r,a||i),s.delete(t),kr(t,e)&&(e=Mr(o._scopes,o,t,e));return e}(e,s,t,n));Jn(s)&&s.length&&(s=function(t,e,n,i){const{_proxy:o,_context:r,_subProxy:a,_descriptors:s}=n;if(mi(r.index)&&i(t))e=e[r.index%e.length];else if(Qn(e[0])){const n=e,i=o._scopes.filter(t=>t!==n);e=[];for(const l of n){const n=Mr(i,o,t,l);e.push(yr(n,r,a&&a[t],s))}}return e}(e,s,t,a.isIndexable));kr(e,s)&&(s=yr(s,o,r&&r[e],a));return s}(t,e,n)),getOwnPropertyDescriptor:(e,n)=>e._descriptors.allKeys?Reflect.has(t,n)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,n),getPrototypeOf:()=>Reflect.getPrototypeOf(t),has:(e,n)=>Reflect.has(t,n),ownKeys:()=>Reflect.ownKeys(t),set:(e,n,i)=>(t[n]=i,delete e[n],!0)})}function _r(t,e={scriptable:!0,indexable:!0}){const{_scriptable:n=e.scriptable,_indexable:i=e.indexable,_allKeys:o=e.allKeys}=t;return{allKeys:o,scriptable:n,indexable:i,isScriptable:bi(n)?n:()=>n,isIndexable:bi(i)?i:()=>i}}const wr=(t,e)=>t?t+gi(e):e,kr=(t,e)=>Qn(e)&&"adapters"!==t&&(null===Object.getPrototypeOf(e)||e.constructor===Object);function Sr(t,e,n){if(Object.prototype.hasOwnProperty.call(t,e))return t[e];const i=n();return t[e]=i,i}function Er(t,e,n){return bi(t)?t(e,n):t}const Or=(t,e)=>!0===t?e:"string"==typeof t?fi(e,t):void 0;function Tr(t,e,n,i,o){for(const r of e){const e=Or(n,r);if(e){t.add(e);const r=Er(e._fallback,n,o);if(mi(r)&&r!==n&&r!==i)return r}else if(!1===e&&mi(i)&&n!==i)return null}return!1}function Mr(t,e,n,i){const o=e._rootScopes,r=Er(e._fallback,n,i),a=[...t,...o],s=new Set;s.add(i);let l=Dr(s,a,n,r||n,i);return null!==l&&((!mi(r)||r===n||(l=Dr(s,a,r,l,i),null!==l))&&vr(Array.from(s),[""],o,r,()=>function(t,e,n){const i=t._getTarget();e in i||(i[e]={});const o=i[e];if(Jn(o)&&Qn(n))return n;return o}(e,n,i)))}function Dr(t,e,n,i,o){for(;n;)n=Tr(t,e,n,i,o);return n}function Cr(t,e){for(const n of e){if(!n)continue;const e=n[t];if(mi(e))return e}}function Ar(t){let e=t._keys;return e||(e=t._keys=function(t){const e=new Set;for(const n of t)for(const t of Object.keys(n).filter(t=>!t.startsWith("_")))e.add(t);return Array.from(e)}(t._scopes)),e}function Rr(t,e,n,i){const{iScale:o}=t,{key:r="r"}=this._parsing,a=new Array(i);let s,l,c,d;for(s=0,l=i;s<l;++s)c=s+n,d=e[c],a[s]={r:o.parse(fi(d,r),c)};return a}const Lr=Number.EPSILON||1e-14,Pr=(t,e)=>e<t.length&&!t[e].skip&&t[e],Ir=t=>"x"===t?"y":"x";function Nr(t,e,n,i){const o=t.skip?e:t,r=e,a=n.skip?e:n,s=Fi(r,o),l=Fi(a,r);let c=s/(s+l),d=l/(s+l);c=isNaN(c)?0:c,d=isNaN(d)?0:d;const h=i*c,u=i*d;return{previous:{x:r.x-h*(a.x-o.x),y:r.y-h*(a.y-o.y)},next:{x:r.x+u*(a.x-o.x),y:r.y+u*(a.y-o.y)}}}function Fr(t,e="x"){const n=Ir(e),i=t.length,o=Array(i).fill(0),r=Array(i);let a,s,l,c=Pr(t,0);for(a=0;a<i;++a)if(s=l,l=c,c=Pr(t,a+1),l){if(c){const t=c[e]-l[e];o[a]=0!==t?(c[n]-l[n])/t:0}r[a]=s?c?Mi(o[a-1])!==Mi(o[a])?0:(o[a-1]+o[a])/2:o[a-1]:o[a]}!function(t,e,n){const i=t.length;let o,r,a,s,l,c=Pr(t,0);for(let d=0;d<i-1;++d)l=c,c=Pr(t,d+1),l&&c&&(Ai(e[d],0,Lr)?n[d]=n[d+1]=0:(o=n[d]/e[d],r=n[d+1]/e[d],s=Math.pow(o,2)+Math.pow(r,2),s<=9||(a=3/Math.sqrt(s),n[d]=o*a*e[d],n[d+1]=r*a*e[d])))}(t,o,r),function(t,e,n="x"){const i=Ir(n),o=t.length;let r,a,s,l=Pr(t,0);for(let c=0;c<o;++c){if(a=s,s=l,l=Pr(t,c+1),!s)continue;const o=s[n],d=s[i];a&&(r=(o-a[n])/3,s[`cp1${n}`]=o-r,s[`cp1${i}`]=d-r*e[c]),l&&(r=(l[n]-o)/3,s[`cp2${n}`]=o+r,s[`cp2${i}`]=d+r*e[c])}}(t,r,e)}function zr(t,e,n){return Math.max(Math.min(t,n),e)}function Br(t,e,n,i,o){let r,a,s,l;if(e.spanGaps&&(t=t.filter(t=>!t.skip)),"monotone"===e.cubicInterpolationMode)Fr(t,o);else{let n=i?t[t.length-1]:t[0];for(r=0,a=t.length;r<a;++r)s=t[r],l=Nr(n,s,t[Math.min(r+1,a-(i?0:1))%a],e.tension),s.cp1x=l.previous.x,s.cp1y=l.previous.y,s.cp2x=l.next.x,s.cp2y=l.next.y,n=s}e.capBezierPoints&&function(t,e){let n,i,o,r,a,s=tr(t[0],e);for(n=0,i=t.length;n<i;++n)a=r,r=s,s=n<i-1&&tr(t[n+1],e),r&&(o=t[n],a&&(o.cp1x=zr(o.cp1x,e.left,e.right),o.cp1y=zr(o.cp1y,e.top,e.bottom)),s&&(o.cp2x=zr(o.cp2x,e.left,e.right),o.cp2y=zr(o.cp2y,e.top,e.bottom)))}(t,n)}function jr(){return"undefined"!=typeof window&&"undefined"!=typeof document}function Yr(t){let e=t.parentNode;return e&&"[object ShadowRoot]"===e.toString()&&(e=e.host),e}function Hr(t,e,n){let i;return"string"==typeof t?(i=parseInt(t,10),-1!==t.indexOf("%")&&(i=i/100*e.parentNode[n])):i=t,i}const Wr=t=>window.getComputedStyle(t,null);const Vr=["top","right","bottom","left"];function Ur(t,e,n){const i={};n=n?"-"+n:"";for(let o=0;o<4;o++){const r=Vr[o];i[r]=parseFloat(t[e+"-"+r+n])||0}return i.width=i.left+i.right,i.height=i.top+i.bottom,i}function Gr(t,e){if("native"in t)return t;const{canvas:n,currentDevicePixelRatio:i}=e,o=Wr(n),r="border-box"===o.boxSizing,a=Ur(o,"padding"),s=Ur(o,"border","width"),{x:l,y:c,box:d}=function(t,e){const n=t.touches,i=n&&n.length?n[0]:t,{offsetX:o,offsetY:r}=i;let a,s,l=!1;if(((t,e,n)=>(t>0||e>0)&&(!n||!n.shadowRoot))(o,r,t.target))a=o,s=r;else{const t=e.getBoundingClientRect();a=i.clientX-t.left,s=i.clientY-t.top,l=!0}return{x:a,y:s,box:l}}(t,n),h=a.left+(d&&s.left),u=a.top+(d&&s.top);let{width:p,height:f}=e;return r&&(p-=a.width+s.width,f-=a.height+s.height),{x:Math.round((l-h)/p*n.width/i),y:Math.round((c-u)/f*n.height/i)}}const $r=t=>Math.round(10*t)/10;function Xr(t,e,n,i){const o=Wr(t),r=Ur(o,"margin"),a=Hr(o.maxWidth,t,"clientWidth")||wi,s=Hr(o.maxHeight,t,"clientHeight")||wi,l=function(t,e,n){let i,o;if(void 0===e||void 0===n){const r=Yr(t);if(r){const t=r.getBoundingClientRect(),a=Wr(r),s=Ur(a,"border","width"),l=Ur(a,"padding");e=t.width-l.width-s.width,n=t.height-l.height-s.height,i=Hr(a.maxWidth,r,"clientWidth"),o=Hr(a.maxHeight,r,"clientHeight")}else e=t.clientWidth,n=t.clientHeight}return{width:e,height:n,maxWidth:i||wi,maxHeight:o||wi}}(t,e,n);let{width:c,height:d}=l;if("content-box"===o.boxSizing){const t=Ur(o,"border","width"),e=Ur(o,"padding");c-=e.width+t.width,d-=e.height+t.height}return c=Math.max(0,c-r.width),d=Math.max(0,i?Math.floor(c/i):d-r.height),c=$r(Math.min(c,a,l.maxWidth)),d=$r(Math.min(d,s,l.maxHeight)),c&&!d&&(d=$r(c/2)),{width:c,height:d}}function qr(t,e,n){const i=e||1,o=Math.floor(t.height*i),r=Math.floor(t.width*i);t.height=o/i,t.width=r/i;const a=t.canvas;return a.style&&(n||!a.style.height&&!a.style.width)&&(a.style.height=`${t.height}px`,a.style.width=`${t.width}px`),(t.currentDevicePixelRatio!==i||a.height!==o||a.width!==r)&&(t.currentDevicePixelRatio=i,a.height=o,a.width=r,t.ctx.setTransform(i,0,0,i,0,0),!0)}const Zr=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(t){}return t}();function Kr(t,e){const n=function(t,e){return Wr(t).getPropertyValue(e)}(t,e),i=n&&n.match(/^(\d+)(\.\d+)?px$/);return i?+i[1]:void 0}function Jr(t,e,n,i){return{x:t.x+n*(e.x-t.x),y:t.y+n*(e.y-t.y)}}function Qr(t,e,n,i){return{x:t.x+n*(e.x-t.x),y:"middle"===i?n<.5?t.y:e.y:"after"===i?n<1?t.y:e.y:n>0?e.y:t.y}}function ta(t,e,n,i){const o={x:t.cp2x,y:t.cp2y},r={x:e.cp1x,y:e.cp1y},a=Jr(t,o,n),s=Jr(o,r,n),l=Jr(r,e,n),c=Jr(a,s,n),d=Jr(s,l,n);return Jr(c,d,n)}const ea=new Map;function na(t,e,n){return function(t,e){e=e||{};const n=t+JSON.stringify(e);let i=ea.get(n);return i||(i=new Intl.NumberFormat(t,e),ea.set(n,i)),i}(e,n).format(t)}function ia(t,e,n){return t?function(t,e){return{x:n=>t+t+e-n,setWidth(t){e=t},textAlign:t=>"center"===t?t:"right"===t?"left":"right",xPlus:(t,e)=>t-e,leftForLtr:(t,e)=>t-e}}(e,n):{x:t=>t,setWidth(t){},textAlign:t=>t,xPlus:(t,e)=>t+e,leftForLtr:(t,e)=>t}}function oa(t,e){let n,i;"ltr"!==e&&"rtl"!==e||(n=t.canvas.style,i=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",e,"important"),t.prevTextDirection=i)}function ra(t,e){void 0!==e&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function aa(t){return"angle"===t?{between:ji,compare:zi,normalize:Bi}:{between:Hi,compare:(t,e)=>t-e,normalize:t=>t}}function sa({start:t,end:e,count:n,loop:i,style:o}){return{start:t%n,end:e%n,loop:i&&(e-t+1)%n==0,style:o}}function la(t,e,n){if(!n)return[t];const{property:i,start:o,end:r}=n,a=e.length,{compare:s,between:l,normalize:c}=aa(i),{start:d,end:h,loop:u,style:p}=function(t,e,n){const{property:i,start:o,end:r}=n,{between:a,normalize:s}=aa(i),l=e.length;let c,d,{start:h,end:u,loop:p}=t;if(p){for(h+=l,u+=l,c=0,d=l;c<d&&a(s(e[h%l][i]),o,r);++c)h--,u--;h%=l,u%=l}return u<h&&(u+=l),{start:h,end:u,loop:p,style:t.style}}(t,e,n),f=[];let g,m,b,x=!1,v=null;const y=()=>x||l(o,b,g)&&0!==s(o,b),_=()=>!x||0===s(r,g)||l(r,b,g);for(let t=d,n=d;t<=h;++t)m=e[t%a],m.skip||(g=c(m[i]),g!==b&&(x=l(g,o,r),null===v&&y()&&(v=0===s(g,o)?t:n),null!==v&&_()&&(f.push(sa({start:v,end:t,loop:u,count:a,style:p})),v=null),n=t,b=g));return null!==v&&f.push(sa({start:v,end:h,loop:u,count:a,style:p})),f}function ca(t,e){const n=[],i=t.segments;for(let o=0;o<i.length;o++){const r=la(i[o],t.points,e);r.length&&n.push(...r)}return n}function da(t,e,n,i){return i&&i.setContext&&n?function(t,e,n,i){const o=t._chart.getContext(),r=ha(t.options),{_datasetIndex:a,options:{spanGaps:s}}=t,l=n.length,c=[];let d=r,h=e[0].start,u=h;function p(t,e,i,o){const r=s?-1:1;if(t!==e){for(t+=l;n[t%l].skip;)t-=r;for(;n[e%l].skip;)e+=r;t%l!==e%l&&(c.push({start:t%l,end:e%l,loop:i,style:o}),d=o,h=e%l)}}for(const t of e){h=s?h:t.start;let e,r=n[h%l];for(u=h+1;u<=t.end;u++){const s=n[u%l];e=ha(i.setContext(xr(o,{type:"segment",p0:r,p1:s,p0DataIndex:(u-1)%l,p1DataIndex:u%l,datasetIndex:a}))),ua(e,d)&&p(h,u-1,t.loop,d),r=s,d=e}h<u-1&&p(h,u-1,t.loop,d)}return c}(t,e,n,i):e}function ha(t){return{backgroundColor:t.backgroundColor,borderCapStyle:t.borderCapStyle,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderJoinStyle:t.borderJoinStyle,borderWidth:t.borderWidth,borderColor:t.borderColor}}function ua(t,e){return e&&JSON.stringify(t)!==JSON.stringify(e)}
16
16
  /*!
17
17
  * Chart.js v3.9.1
18
18
  * https://www.chartjs.org
19
19
  * (c) 2022 Chart.js Contributors
20
20
  * Released under the MIT License
21
- */var ga=new class{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(e,t,n,r){const o=t.listeners[r],i=t.duration;o.forEach(r=>r({chart:e,initial:t.initial,numSteps:i,currentStep:Math.min(n-t.start,i)}))}_refresh(){this._request||(this._running=!0,this._request=Qr.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(e=Date.now()){let t=0;this._charts.forEach((n,r)=>{if(!n.running||!n.items.length)return;const o=n.items;let i,a=o.length-1,s=!1;for(;a>=0;--a)i=o[a],i._active?(i._total>n.duration&&(n.duration=i._total),i.tick(e),s=!0):(o[a]=o[o.length-1],o.pop());s&&(r.draw(),this._notify(r,n,e,"progress")),o.length||(n.running=!1,this._notify(r,n,e,"complete"),n.initial=!1),t+=o.length}),this._lastDate=e,0===t&&(this._running=!1)}_getAnims(e){const t=this._charts;let n=t.get(e);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},t.set(e,n)),n}listen(e,t,n){this._getAnims(e).listeners[t].push(n)}add(e,t){t&&t.length&&this._getAnims(e).items.push(...t)}has(e){return this._getAnims(e).items.length>0}start(e){const t=this._charts.get(e);t&&(t.running=!0,t.start=Date.now(),t.duration=t.items.reduce((e,t)=>Math.max(e,t._duration),0),this._refresh())}running(e){if(!this._running)return!1;const t=this._charts.get(e);return!!(t&&t.running&&t.items.length)}stop(e){const t=this._charts.get(e);if(!t||!t.items.length)return;const n=t.items;let r=n.length-1;for(;r>=0;--r)n[r].cancel();t.items=[],this._notify(e,t,Date.now(),"complete")}remove(e){return this._charts.delete(e)}};const va="transparent",ba={boolean:(e,t,n)=>n>.5?t:e,color(e,t,n){const r=Wo(e||va),o=r.valid&&Wo(t||va);return o&&o.valid?o.mix(r,n).hexString():t},number:(e,t,n)=>e+(t-e)*n};class ya{constructor(e,t,n,r){const o=t[n];r=xi([e.to,r,o,e.from]);const i=xi([e.from,o,r]);this._active=!0,this._fn=e.fn||ba[e.type||typeof i],this._easing=so[e.easing]||so.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=t,this._prop=n,this._from=i,this._to=r,this._promises=void 0}active(){return this._active}update(e,t,n){if(this._active){this._notify(!1);const r=this._target[this._prop],o=n-this._start,i=this._duration-o;this._start=n,this._duration=Math.floor(Math.max(i,e.duration)),this._total+=o,this._loop=!!e.loop,this._to=xi([e.to,t,r,e.from]),this._from=xi([e.from,r,t])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(e){const t=e-this._start,n=this._duration,r=this._prop,o=this._from,i=this._loop,a=this._to;let s;if(this._active=o!==a&&(i||t<n),!this._active)return this._target[r]=a,void this._notify(!0);t<0?this._target[r]=o:(s=t/n%2,s=i&&s>1?2-s:s,s=this._easing(Math.min(1,Math.max(0,s))),this._target[r]=this._fn(o,a,s))}wait(){const e=this._promises||(this._promises=[]);return new Promise((t,n)=>{e.push({res:t,rej:n})})}_notify(e){const t=e?"res":"rej",n=this._promises||[];for(let e=0;e<n.length;e++)n[e][t]()}}Ko.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0});const xa=Object.keys(Ko.animation);Ko.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:e=>"onProgress"!==e&&"onComplete"!==e&&"fn"!==e}),Ko.set("animations",{colors:{type:"color",properties:["color","borderColor","backgroundColor"]},numbers:{type:"number",properties:["x","y","borderWidth","radius","tension"]}}),Ko.describe("animations",{_fallback:"animation"}),Ko.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:e=>0|e}}}});class wa{constructor(e,t){this._chart=e,this._properties=new Map,this.configure(t)}configure(e){if(!nr(e))return;const t=this._properties;Object.getOwnPropertyNames(e).forEach(n=>{const r=e[n];if(!nr(r))return;const o={};for(const e of xa)o[e]=r[e];(tr(r.properties)&&r.properties||[n]).forEach(e=>{e!==n&&t.has(e)||t.set(e,o)})})}_animateOptions(e,t){const n=t.options,r=function(e,t){if(!t)return;let n=e.options;if(!n)return void(e.options=t);n.$shared&&(e.options=n=Object.assign({},n,{$shared:!1,$animations:{}}));return n}(e,n);if(!r)return[];const o=this._createAnimations(r,n);return n.$shared&&function(e,t){const n=[],r=Object.keys(t);for(let t=0;t<r.length;t++){const o=e[r[t]];o&&o.active()&&n.push(o.wait())}return Promise.all(n)}(e.options.$animations,n).then(()=>{e.options=n},()=>{}),o}_createAnimations(e,t){const n=this._properties,r=[],o=e.$animations||(e.$animations={}),i=Object.keys(t),a=Date.now();let s;for(s=i.length-1;s>=0;--s){const l=i[s];if("$"===l.charAt(0))continue;if("options"===l){r.push(...this._animateOptions(e,t));continue}const c=t[l];let u=o[l];const d=n.get(l);if(u){if(d&&u.active()){u.update(d,c,a);continue}u.cancel()}d&&d.duration?(o[l]=u=new ya(d,e,l,c),r.push(u)):e[l]=c}return r}update(e,t){if(0===this._properties.size)return void Object.assign(e,t);const n=this._createAnimations(e,t);return n.length?(ga.add(this._chart,n),!0):void 0}}function _a(e,t){const n=e&&e.options||{},r=n.reverse,o=void 0===n.min?t:0,i=void 0===n.max?t:0;return{start:r?i:o,end:r?o:i}}function Sa(e,t){const n=[],r=e._getSortedDatasetMetas(t);let o,i;for(o=0,i=r.length;o<i;++o)n.push(r[o].index);return n}function Ea(e,t,n,r={}){const o=e.keys,i="single"===r.mode;let a,s,l,c;if(null!==t){for(a=0,s=o.length;a<s;++a){if(l=+o[a],l===n){if(r.all)continue;break}c=e.values[l],rr(c)&&(i||0===t||Pr(t)===Pr(c))&&(t+=c)}return t}}function ka(e,t){const n=e&&e.options.stacked;return n||void 0===n&&void 0!==t.stack}function Oa(e,t,n){const r=e[t]||(e[t]={});return r[n]||(r[n]={})}function Ca(e,t,n,r){for(const o of t.getMatchingVisibleMetas(r).reverse()){const t=e[o.index];if(n&&t>0||!n&&t<0)return o.index}return null}function Ma(e,t){const{chart:n,_cachedMeta:r}=e,o=n._stacks||(n._stacks={}),{iScale:i,vScale:a,index:s}=r,l=i.axis,c=a.axis,u=function(e,t,n){return`${e.id}.${t.id}.${n.stack||n.type}`}(i,a,r),d=t.length;let p;for(let e=0;e<d;++e){const n=t[e],{[l]:i,[c]:d}=n;p=(n._stacks||(n._stacks={}))[c]=Oa(o,u,i),p[s]=d,p._top=Ca(p,a,!0,r.type),p._bottom=Ca(p,a,!1,r.type)}}function Ta(e,t){const n=e.scales;return Object.keys(n).filter(e=>n[e].axis===t).shift()}function Aa(e,t){const n=e.controller.index,r=e.vScale&&e.vScale.axis;if(r){t=t||e._parsed;for(const e of t){const t=e._stacks;if(!t||void 0===t[r]||void 0===t[r][n])return;delete t[r][n]}}}const Pa=e=>"reset"===e||"none"===e,Ra=(e,t)=>t?e:Object.assign({},e);class Na{constructor(e,t){this.chart=e,this._ctx=e.ctx,this.index=t,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.initialize()}initialize(){const e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=ka(e.vScale,e),this.addElements()}updateIndex(e){this.index!==e&&Aa(this._cachedMeta),this.index=e}linkScales(){const e=this.chart,t=this._cachedMeta,n=this.getDataset(),r=(e,t,n,r)=>"x"===e?t:"r"===e?r:n,o=t.xAxisID=ir(n.xAxisID,Ta(e,"x")),i=t.yAxisID=ir(n.yAxisID,Ta(e,"y")),a=t.rAxisID=ir(n.rAxisID,Ta(e,"r")),s=t.indexAxis,l=t.iAxisID=r(s,o,i,a),c=t.vAxisID=r(s,i,o,a);t.xScale=this.getScaleForId(o),t.yScale=this.getScaleForId(i),t.rScale=this.getScaleForId(a),t.iScale=this.getScaleForId(l),t.vScale=this.getScaleForId(c)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){const t=this._cachedMeta;return e===t.iScale?t.vScale:t.iScale}reset(){this._update("reset")}_destroy(){const e=this._cachedMeta;this._data&&Kr(this._data,this),e._stacked&&Aa(e)}_dataCheck(){const e=this.getDataset(),t=e.data||(e.data=[]),n=this._data;if(nr(t))this._data=function(e){const t=Object.keys(e),n=new Array(t.length);let r,o,i;for(r=0,o=t.length;r<o;++r)i=t[r],n[r]={x:i,y:e[i]};return n}(t);else if(n!==t){if(n){Kr(n,this);const e=this._cachedMeta;Aa(e),e._parsed=[]}t&&Object.isExtensible(t)&&function(e,t){e._chartjs?e._chartjs.listeners.push(t):(Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),qr.forEach(t=>{const n="_onData"+br(t),r=e[t];Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value(...t){const o=r.apply(this,t);return e._chartjs.listeners.forEach(e=>{"function"==typeof e[n]&&e[n](...t)}),o}})}))}(t,this),this._syncList=[],this._data=t}}addElements(){const e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){const t=this._cachedMeta,n=this.getDataset();let r=!1;this._dataCheck();const o=t._stacked;t._stacked=ka(t.vScale,t),t.stack!==n.stack&&(r=!0,Aa(t),t.stack=n.stack),this._resyncElements(e),(r||o!==t._stacked)&&Ma(this,t._parsed)}configure(){const e=this.chart.config,t=e.datasetScopeKeys(this._type),n=e.getOptionScopes(this.getDataset(),t,!0);this.options=e.createResolver(n,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,t){const{_cachedMeta:n,_data:r}=this,{iScale:o,_stacked:i}=n,a=o.axis;let s,l,c,u=0===e&&t===r.length||n._sorted,d=e>0&&n._parsed[e-1];if(!1===this._parsing)n._parsed=r,n._sorted=!0,c=r;else{c=tr(r[e])?this.parseArrayData(n,r,e,t):nr(r[e])?this.parseObjectData(n,r,e,t):this.parsePrimitiveData(n,r,e,t);const o=()=>null===l[a]||d&&l[a]<d[a];for(s=0;s<t;++s)n._parsed[s+e]=l=c[s],u&&(o()&&(u=!1),d=l);n._sorted=u}i&&Ma(this,c)}parsePrimitiveData(e,t,n,r){const{iScale:o,vScale:i}=e,a=o.axis,s=i.axis,l=o.getLabels(),c=o===i,u=new Array(r);let d,p,h;for(d=0,p=r;d<p;++d)h=d+n,u[d]={[a]:c||o.parse(l[h],h),[s]:i.parse(t[h],h)};return u}parseArrayData(e,t,n,r){const{xScale:o,yScale:i}=e,a=new Array(r);let s,l,c,u;for(s=0,l=r;s<l;++s)c=s+n,u=t[c],a[s]={x:o.parse(u[0],c),y:i.parse(u[1],c)};return a}parseObjectData(e,t,n,r){const{xScale:o,yScale:i}=e,{xAxisKey:a="x",yAxisKey:s="y"}=this._parsing,l=new Array(r);let c,u,d,p;for(c=0,u=r;c<u;++c)d=c+n,p=t[d],l[c]={x:o.parse(vr(p,a),d),y:i.parse(vr(p,s),d)};return l}getParsed(e){return this._cachedMeta._parsed[e]}getDataElement(e){return this._cachedMeta.data[e]}applyStack(e,t,n){const r=this.chart,o=this._cachedMeta,i=t[e.axis];return Ea({keys:Sa(r,!0),values:t._stacks[e.axis]},i,o.index,{mode:n})}updateRangeFromParsed(e,t,n,r){const o=n[t.axis];let i=null===o?NaN:o;const a=r&&n._stacks[t.axis];r&&a&&(r.values=a,i=Ea(r,o,this._cachedMeta.index)),e.min=Math.min(e.min,i),e.max=Math.max(e.max,i)}getMinMax(e,t){const n=this._cachedMeta,r=n._parsed,o=n._sorted&&e===n.iScale,i=r.length,a=this._getOtherScale(e),s=((e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:Sa(n,!0),values:null})(t,n,this.chart),l={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:c,max:u}=function(e){const{min:t,max:n,minDefined:r,maxDefined:o}=e.getUserBounds();return{min:r?t:Number.NEGATIVE_INFINITY,max:o?n:Number.POSITIVE_INFINITY}}(a);let d,p;function h(){p=r[d];const t=p[a.axis];return!rr(p[e.axis])||c>t||u<t}for(d=0;d<i&&(h()||(this.updateRangeFromParsed(l,e,p,s),!o));++d);if(o)for(d=i-1;d>=0;--d)if(!h()){this.updateRangeFromParsed(l,e,p,s);break}return l}getAllParsedValues(e){const t=this._cachedMeta._parsed,n=[];let r,o,i;for(r=0,o=t.length;r<o;++r)i=t[r][e.axis],rr(i)&&n.push(i);return n}getMaxOverflow(){return!1}getLabelAndValue(e){const t=this._cachedMeta,n=t.iScale,r=t.vScale,o=this.getParsed(e);return{label:n?""+n.getLabelForValue(o[n.axis]):"",value:r?""+r.getLabelForValue(o[r.axis]):""}}_update(e){const t=this._cachedMeta;this.update(e||"default"),t._clip=function(e){let t,n,r,o;return nr(e)?(t=e.top,n=e.right,r=e.bottom,o=e.left):t=n=r=o=e,{top:t,right:n,bottom:r,left:o,disabled:!1===e}}(ir(this.options.clip,function(e,t,n){if(!1===n)return!1;const r=_a(e,n),o=_a(t,n);return{top:o.end,right:r.end,bottom:o.start,left:r.start}}(t.xScale,t.yScale,this.getMaxOverflow())))}update(e){}draw(){const e=this._ctx,t=this.chart,n=this._cachedMeta,r=n.data||[],o=t.chartArea,i=[],a=this._drawStart||0,s=this._drawCount||r.length-a,l=this.options.drawActiveElementsOnTop;let c;for(n.dataset&&n.dataset.draw(e,o,a,s),c=a;c<a+s;++c){const t=r[c];t.hidden||(t.active&&l?i.push(t):t.draw(e,o))}for(c=0;c<i.length;++c)i[c].draw(e,o)}getStyle(e,t){const n=t?"active":"default";return void 0===e&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(n):this.resolveDataElementOptions(e||0,n)}getContext(e,t,n){const r=this.getDataset();let o;if(e>=0&&e<this._cachedMeta.data.length){const t=this._cachedMeta.data[e];o=t.$context||(t.$context=function(e,t,n){return wi(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}(this.getContext(),e,t)),o.parsed=this.getParsed(e),o.raw=r.data[e],o.index=o.dataIndex=e}else o=this.$context||(this.$context=function(e,t){return wi(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}(this.chart.getContext(),this.index)),o.dataset=r,o.index=o.datasetIndex=this.index;return o.active=!!t,o.mode=n,o}resolveDatasetElementOptions(e){return this._resolveElementOptions(this.datasetElementType.id,e)}resolveDataElementOptions(e,t){return this._resolveElementOptions(this.dataElementType.id,t,e)}_resolveElementOptions(e,t="default",n){const r="active"===t,o=this._cachedDataOpts,i=e+"-"+t,a=o[i],s=this.enableOptionSharing&&yr(n);if(a)return Ra(a,s);const l=this.chart.config,c=l.datasetElementScopeKeys(this._type,e),u=r?[`${e}Hover`,"hover",e,""]:[e,""],d=l.getOptionScopes(this.getDataset(),c),p=Object.keys(Ko.elements[e]),h=l.resolveNamedOptions(d,p,()=>this.getContext(n,r),u);return h.$shared&&(h.$shared=s,o[i]=Object.freeze(Ra(h,s))),h}_resolveAnimations(e,t,n){const r=this.chart,o=this._cachedDataOpts,i=`animation-${t}`,a=o[i];if(a)return a;let s;if(!1!==r.options.animation){const r=this.chart.config,o=r.datasetAnimationScopeKeys(this._type,t),i=r.getOptionScopes(this.getDataset(),o);s=r.createResolver(i,this.getContext(e,n,t))}const l=new wa(r,s&&s.animations);return s&&s._cacheable&&(o[i]=Object.freeze(l)),l}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,t){return!t||Pa(e)||this.chart._animationsDisabled}_getSharedOptions(e,t){const n=this.resolveDataElementOptions(e,t),r=this._sharedOptions,o=this.getSharedOptions(n),i=this.includeOptions(t,o)||o!==r;return this.updateSharedOptions(o,t,n),{sharedOptions:o,includeOptions:i}}updateElement(e,t,n,r){Pa(r)?Object.assign(e,n):this._resolveAnimations(t,r).update(e,n)}updateSharedOptions(e,t,n){e&&!Pa(t)&&this._resolveAnimations(void 0,t).update(e,n)}_setStyle(e,t,n,r){e.active=r;const o=this.getStyle(t,r);this._resolveAnimations(t,n,r).update(e,{options:!r&&this.getSharedOptions(o)||o})}removeHoverStyle(e,t,n){this._setStyle(e,n,"active",!1)}setHoverStyle(e,t,n){this._setStyle(e,n,"active",!0)}_removeDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}_setDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}_resyncElements(e){const t=this._data,n=this._cachedMeta.data;for(const[e,t,n]of this._syncList)this[e](t,n);this._syncList=[];const r=n.length,o=t.length,i=Math.min(o,r);i&&this.parse(0,i),o>r?this._insertElements(r,o-r,e):o<r&&this._removeElements(o,r-o)}_insertElements(e,t,n=!0){const r=this._cachedMeta,o=r.data,i=e+t;let a;const s=e=>{for(e.length+=t,a=e.length-1;a>=i;a--)e[a]=e[a-t]};for(s(o),a=e;a<i;++a)o[a]=new this.dataElementType;this._parsing&&s(r._parsed),this.parse(e,t),n&&this.updateElements(o,e,t,"reset")}updateElements(e,t,n,r){}_removeElements(e,t){const n=this._cachedMeta;if(this._parsing){const r=n._parsed.splice(e,t);n._stacked&&Aa(n,r)}n.data.splice(e,t)}_sync(e){if(this._parsing)this._syncList.push(e);else{const[t,n,r]=e;this[t](n,r)}this.chart._dataChanges.push([this.index,...e])}_onDataPush(){const e=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-e,e])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(e,t){t&&this._sync(["_removeElements",e,t]);const n=arguments.length-2;n&&this._sync(["_insertElements",e,n])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function Da(e){const t=e.iScale,n=function(e,t){if(!e._cache.$bar){const n=e.getMatchingVisibleMetas(t);let r=[];for(let t=0,o=n.length;t<o;t++)r=r.concat(n[t].controller.getAllParsedValues(e));e._cache.$bar=Zr(r.sort((e,t)=>e-t))}return e._cache.$bar}(t,e.type);let r,o,i,a,s=t._length;const l=()=>{32767!==i&&-32768!==i&&(yr(a)&&(s=Math.min(s,Math.abs(i-a)||s)),a=i)};for(r=0,o=n.length;r<o;++r)i=t.getPixelForValue(n[r]),l();for(a=void 0,r=0,o=t.ticks.length;r<o;++r)i=t.getPixelForTick(r),l();return s}function Ia(e,t,n,r){return tr(e)?function(e,t,n,r){const o=n.parse(e[0],r),i=n.parse(e[1],r),a=Math.min(o,i),s=Math.max(o,i);let l=a,c=s;Math.abs(a)>Math.abs(s)&&(l=s,c=a),t[n.axis]=c,t._custom={barStart:l,barEnd:c,start:o,end:i,min:a,max:s}}(e,t,n,r):t[n.axis]=n.parse(e,r),t}function Fa(e,t,n,r){const o=e.iScale,i=e.vScale,a=o.getLabels(),s=o===i,l=[];let c,u,d,p;for(c=n,u=n+r;c<u;++c)p=t[c],d={},d[o.axis]=s||o.parse(a[c],c),l.push(Ia(p,d,i,c));return l}function La(e){return e&&void 0!==e.barStart&&void 0!==e.barEnd}function ja(e,t,n,r){let o=t.borderSkipped;const i={};if(!o)return void(e.borderSkipped=i);if(!0===o)return void(e.borderSkipped={top:!0,right:!0,bottom:!0,left:!0});const{start:a,end:s,reverse:l,top:c,bottom:u}=function(e){let t,n,r,o,i;return e.horizontal?(t=e.base>e.x,n="left",r="right"):(t=e.base<e.y,n="bottom",r="top"),t?(o="end",i="start"):(o="start",i="end"),{start:n,end:r,reverse:t,top:o,bottom:i}}(e);"middle"===o&&n&&(e.enableBorderRadius=!0,(n._top||0)===r?o=c:(n._bottom||0)===r?o=u:(i[za(u,a,s,l)]=!0,o=c)),i[za(o,a,s,l)]=!0,e.borderSkipped=i}function za(e,t,n,r){var o,i,a;return r?(a=n,e=Ba(e=(o=e)===(i=t)?a:o===a?i:o,n,t)):e=Ba(e,t,n),e}function Ba(e,t,n){return"start"===e?t:"end"===e?n:e}function Ha(e,{inflateAmount:t},n){e.inflateAmount="auto"===t?1===n?.33:0:t}Na.defaults={},Na.prototype.datasetElementType=null,Na.prototype.dataElementType=null;class Va extends Na{parsePrimitiveData(e,t,n,r){return Fa(e,t,n,r)}parseArrayData(e,t,n,r){return Fa(e,t,n,r)}parseObjectData(e,t,n,r){const{iScale:o,vScale:i}=e,{xAxisKey:a="x",yAxisKey:s="y"}=this._parsing,l="x"===o.axis?a:s,c="x"===i.axis?a:s,u=[];let d,p,h,f;for(d=n,p=n+r;d<p;++d)f=t[d],h={},h[o.axis]=o.parse(vr(f,l),d),u.push(Ia(vr(f,c),h,i,d));return u}updateRangeFromParsed(e,t,n,r){super.updateRangeFromParsed(e,t,n,r);const o=n._custom;o&&t===this._cachedMeta.vScale&&(e.min=Math.min(e.min,o.min),e.max=Math.max(e.max,o.max))}getMaxOverflow(){return 0}getLabelAndValue(e){const t=this._cachedMeta,{iScale:n,vScale:r}=t,o=this.getParsed(e),i=o._custom,a=La(i)?"["+i.start+", "+i.end+"]":""+r.getLabelForValue(o[r.axis]);return{label:""+n.getLabelForValue(o[n.axis]),value:a}}initialize(){this.enableOptionSharing=!0,super.initialize();this._cachedMeta.stack=this.getDataset().stack}update(e){const t=this._cachedMeta;this.updateElements(t.data,0,t.data.length,e)}updateElements(e,t,n,r){const o="reset"===r,{index:i,_cachedMeta:{vScale:a}}=this,s=a.getBasePixel(),l=a.isHorizontal(),c=this._getRuler(),{sharedOptions:u,includeOptions:d}=this._getSharedOptions(t,r);for(let p=t;p<t+n;p++){const t=this.getParsed(p),n=o||er(t[a.axis])?{base:s,head:s}:this._calculateBarValuePixels(p),h=this._calculateBarIndexPixels(p,c),f=(t._stacks||{})[a.axis],m={horizontal:l,base:n.base,enableBorderRadius:!f||La(t._custom)||i===f._top||i===f._bottom,x:l?n.head:h.center,y:l?h.center:n.head,height:l?h.size:Math.abs(n.size),width:l?Math.abs(n.size):h.size};d&&(m.options=u||this.resolveDataElementOptions(p,e[p].active?"active":r));const g=m.options||e[p].options;ja(m,g,f,i),Ha(m,g,c.ratio),this.updateElement(e[p],p,m,r)}}_getStacks(e,t){const{iScale:n}=this._cachedMeta,r=n.getMatchingVisibleMetas(this._type).filter(e=>e.controller.options.grouped),o=n.options.stacked,i=[],a=e=>{const n=e.controller.getParsed(t),r=n&&n[e.vScale.axis];if(er(r)||isNaN(r))return!0};for(const n of r)if((void 0===t||!a(n))&&((!1===o||-1===i.indexOf(n.stack)||void 0===o&&void 0===n.stack)&&i.push(n.stack),n.index===e))break;return i.length||i.push(void 0),i}_getStackCount(e){return this._getStacks(void 0,e).length}_getStackIndex(e,t,n){const r=this._getStacks(e,n),o=void 0!==t?r.indexOf(t):-1;return-1===o?r.length-1:o}_getRuler(){const e=this.options,t=this._cachedMeta,n=t.iScale,r=[];let o,i;for(o=0,i=t.data.length;o<i;++o)r.push(n.getPixelForValue(this.getParsed(o)[n.axis],o));const a=e.barThickness;return{min:a||Da(t),pixels:r,start:n._startPixel,end:n._endPixel,stackCount:this._getStackCount(),scale:n,grouped:e.grouped,ratio:a?1:e.categoryPercentage*e.barPercentage}}_calculateBarValuePixels(e){const{_cachedMeta:{vScale:t,_stacked:n},options:{base:r,minBarLength:o}}=this,i=r||0,a=this.getParsed(e),s=a._custom,l=La(s);let c,u,d=a[t.axis],p=0,h=n?this.applyStack(t,a,n):d;h!==d&&(p=h-d,h=d),l&&(d=s.barStart,h=s.barEnd-s.barStart,0!==d&&Pr(d)!==Pr(s.barEnd)&&(p=0),p+=d);const f=er(r)||l?p:r;let m=t.getPixelForValue(f);if(c=this.chart.getDataVisibility(e)?t.getPixelForValue(p+h):m,u=c-m,Math.abs(u)<o){u=function(e,t,n){return 0!==e?Pr(e):(t.isHorizontal()?1:-1)*(t.min>=n?1:-1)}(u,t,i)*o,d===i&&(m-=u/2);const e=t.getPixelForDecimal(0),n=t.getPixelForDecimal(1),r=Math.min(e,n),a=Math.max(e,n);m=Math.max(Math.min(m,a),r),c=m+u}if(m===t.getPixelForValue(i)){const e=Pr(u)*t.getLineWidthForValue(i)/2;m+=e,u-=e}return{size:u,base:m,head:c,center:c+u/2}}_calculateBarIndexPixels(e,t){const n=t.scale,r=this.options,o=r.skipNull,i=ir(r.maxBarThickness,1/0);let a,s;if(t.grouped){const n=o?this._getStackCount(e):t.stackCount,l="flex"===r.barThickness?function(e,t,n,r){const o=t.pixels,i=o[e];let a=e>0?o[e-1]:null,s=e<o.length-1?o[e+1]:null;const l=n.categoryPercentage;null===a&&(a=i-(null===s?t.end-t.start:s-i)),null===s&&(s=i+i-a);const c=i-(i-Math.min(a,s))/2*l;return{chunk:Math.abs(s-a)/2*l/r,ratio:n.barPercentage,start:c}}(e,t,r,n):function(e,t,n,r){const o=n.barThickness;let i,a;return er(o)?(i=t.min*n.categoryPercentage,a=n.barPercentage):(i=o*r,a=1),{chunk:i/r,ratio:a,start:t.pixels[e]-i/2}}(e,t,r,n),c=this._getStackIndex(this.index,this._cachedMeta.stack,o?e:void 0);a=l.start+l.chunk*c+l.chunk/2,s=Math.min(i,l.chunk*l.ratio)}else a=n.getPixelForValue(this.getParsed(e)[n.axis],e),s=Math.min(i,t.min*t.ratio);return{base:a-s/2,head:a+s/2,center:a,size:s}}draw(){const e=this._cachedMeta,t=e.vScale,n=e.data,r=n.length;let o=0;for(;o<r;++o)null!==this.getParsed(o)[t.axis]&&n[o].draw(this._ctx)}}Va.id="bar",Va.defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}},Va.overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};class $a extends Na{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(e,t,n,r){const o=super.parsePrimitiveData(e,t,n,r);for(let e=0;e<o.length;e++)o[e]._custom=this.resolveDataElementOptions(e+n).radius;return o}parseArrayData(e,t,n,r){const o=super.parseArrayData(e,t,n,r);for(let e=0;e<o.length;e++){const r=t[n+e];o[e]._custom=ir(r[2],this.resolveDataElementOptions(e+n).radius)}return o}parseObjectData(e,t,n,r){const o=super.parseObjectData(e,t,n,r);for(let e=0;e<o.length;e++){const r=t[n+e];o[e]._custom=ir(r&&r.r&&+r.r,this.resolveDataElementOptions(e+n).radius)}return o}getMaxOverflow(){const e=this._cachedMeta.data;let t=0;for(let n=e.length-1;n>=0;--n)t=Math.max(t,e[n].size(this.resolveDataElementOptions(n))/2);return t>0&&t}getLabelAndValue(e){const t=this._cachedMeta,{xScale:n,yScale:r}=t,o=this.getParsed(e),i=n.getLabelForValue(o.x),a=r.getLabelForValue(o.y),s=o._custom;return{label:t.label,value:"("+i+", "+a+(s?", "+s:"")+")"}}update(e){const t=this._cachedMeta.data;this.updateElements(t,0,t.length,e)}updateElements(e,t,n,r){const o="reset"===r,{iScale:i,vScale:a}=this._cachedMeta,{sharedOptions:s,includeOptions:l}=this._getSharedOptions(t,r),c=i.axis,u=a.axis;for(let d=t;d<t+n;d++){const t=e[d],n=!o&&this.getParsed(d),p={},h=p[c]=o?i.getPixelForDecimal(.5):i.getPixelForValue(n[c]),f=p[u]=o?a.getBasePixel():a.getPixelForValue(n[u]);p.skip=isNaN(h)||isNaN(f),l&&(p.options=s||this.resolveDataElementOptions(d,t.active?"active":r),o&&(p.options.radius=0)),this.updateElement(t,d,p,r)}}resolveDataElementOptions(e,t){const n=this.getParsed(e);let r=super.resolveDataElementOptions(e,t);r.$shared&&(r=Object.assign({},r,{$shared:!1}));const o=r.radius;return"active"!==t&&(r.radius=0),r.radius+=ir(n&&n._custom,o),r}}$a.id="bubble",$a.defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}},$a.overrides={scales:{x:{type:"linear"},y:{type:"linear"}},plugins:{tooltip:{callbacks:{title:()=>""}}}};class Wa extends Na{constructor(e,t){super(e,t),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(e,t){const n=this.getDataset().data,r=this._cachedMeta;if(!1===this._parsing)r._parsed=n;else{let o,i,a=e=>+n[e];if(nr(n[e])){const{key:e="value"}=this._parsing;a=t=>+vr(n[t],e)}for(o=e,i=e+t;o<i;++o)r._parsed[o]=a(o)}}_getRotation(){return Fr(this.options.rotation-90)}_getCircumference(){return Fr(this.options.circumference)}_getRotationExtents(){let e=Sr,t=-Sr;for(let n=0;n<this.chart.data.datasets.length;++n)if(this.chart.isDatasetVisible(n)){const r=this.chart.getDatasetMeta(n).controller,o=r._getRotation(),i=r._getCircumference();e=Math.min(e,o),t=Math.max(t,o+i)}return{rotation:e,circumference:t-e}}update(e){const t=this.chart,{chartArea:n}=t,r=this._cachedMeta,o=r.data,i=this.getMaxBorderWidth()+this.getMaxOffset(o)+this.options.spacing,a=Math.max((Math.min(n.width,n.height)-i)/2,0),s=Math.min((l=this.options.cutout,c=a,"string"==typeof l&&l.endsWith("%")?parseFloat(l)/100:l/c),1);var l,c;const u=this._getRingWeight(this.index),{circumference:d,rotation:p}=this._getRotationExtents(),{ratioX:h,ratioY:f,offsetX:m,offsetY:g}=function(e,t,n){let r=1,o=1,i=0,a=0;if(t<Sr){const s=e,l=s+t,c=Math.cos(s),u=Math.sin(s),d=Math.cos(l),p=Math.sin(l),h=(e,t,r)=>$r(e,s,l,!0)?1:Math.max(t,t*n,r,r*n),f=(e,t,r)=>$r(e,s,l,!0)?-1:Math.min(t,t*n,r,r*n),m=h(0,c,d),g=h(Cr,u,p),v=f(_r,c,d),b=f(_r+Cr,u,p);r=(m-v)/2,o=(g-b)/2,i=-(m+v)/2,a=-(g+b)/2}return{ratioX:r,ratioY:o,offsetX:i,offsetY:a}}(p,d,s),v=(n.width-i)/h,b=(n.height-i)/f,y=Math.max(Math.min(v,b)/2,0),x=ar(this.options.radius,y),w=(x-Math.max(x*s,0))/this._getVisibleDatasetWeightTotal();this.offsetX=m*x,this.offsetY=g*x,r.total=this.calculateTotal(),this.outerRadius=x-w*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-w*u,0),this.updateElements(o,0,o.length,e)}_circumference(e,t){const n=this.options,r=this._cachedMeta,o=this._getCircumference();return t&&n.animation.animateRotate||!this.chart.getDataVisibility(e)||null===r._parsed[e]||r.data[e].hidden?0:this.calculateCircumference(r._parsed[e]*o/Sr)}updateElements(e,t,n,r){const o="reset"===r,i=this.chart,a=i.chartArea,s=i.options.animation,l=(a.left+a.right)/2,c=(a.top+a.bottom)/2,u=o&&s.animateScale,d=u?0:this.innerRadius,p=u?0:this.outerRadius,{sharedOptions:h,includeOptions:f}=this._getSharedOptions(t,r);let m,g=this._getRotation();for(m=0;m<t;++m)g+=this._circumference(m,o);for(m=t;m<t+n;++m){const t=this._circumference(m,o),n=e[m],i={x:l+this.offsetX,y:c+this.offsetY,startAngle:g,endAngle:g+t,circumference:t,outerRadius:p,innerRadius:d};f&&(i.options=h||this.resolveDataElementOptions(m,n.active?"active":r)),g+=t,this.updateElement(n,m,i,r)}}calculateTotal(){const e=this._cachedMeta,t=e.data;let n,r=0;for(n=0;n<t.length;n++){const o=e._parsed[n];null===o||isNaN(o)||!this.chart.getDataVisibility(n)||t[n].hidden||(r+=Math.abs(o))}return r}calculateCircumference(e){const t=this._cachedMeta.total;return t>0&&!isNaN(e)?Sr*(Math.abs(e)/t):0}getLabelAndValue(e){const t=this._cachedMeta,n=this.chart,r=n.data.labels||[],o=ia(t._parsed[e],n.options.locale);return{label:r[e]||"",value:o}}getMaxBorderWidth(e){let t=0;const n=this.chart;let r,o,i,a,s;if(!e)for(r=0,o=n.data.datasets.length;r<o;++r)if(n.isDatasetVisible(r)){i=n.getDatasetMeta(r),e=i.data,a=i.controller;break}if(!e)return 0;for(r=0,o=e.length;r<o;++r)s=a.resolveDataElementOptions(r),"inner"!==s.borderAlign&&(t=Math.max(t,s.borderWidth||0,s.hoverBorderWidth||0));return t}getMaxOffset(e){let t=0;for(let n=0,r=e.length;n<r;++n){const e=this.resolveDataElementOptions(n);t=Math.max(t,e.offset||0,e.hoverOffset||0)}return t}_getRingWeightOffset(e){let t=0;for(let n=0;n<e;++n)this.chart.isDatasetVisible(n)&&(t+=this._getRingWeight(n));return t}_getRingWeight(e){return Math.max(ir(this.chart.data.datasets[e].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}Wa.id="doughnut",Wa.defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"},Wa.descriptors={_scriptable:e=>"spacing"!==e,_indexable:e=>"spacing"!==e},Wa.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const t=e.data;if(t.labels.length&&t.datasets.length){const{labels:{pointStyle:n}}=e.legend.options;return t.labels.map((t,r)=>{const o=e.getDatasetMeta(0).controller.getStyle(r);return{text:t,fillStyle:o.backgroundColor,strokeStyle:o.borderColor,lineWidth:o.borderWidth,pointStyle:n,hidden:!e.getDataVisibility(r),index:r}})}return[]}},onClick(e,t,n){n.chart.toggleDataVisibility(t.index),n.chart.update()}},tooltip:{callbacks:{title:()=>"",label(e){let t=e.label;const n=": "+e.formattedValue;return tr(t)?(t=t.slice(),t[0]+=n):t+=n,t}}}}};class Ua extends Na{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(e){const t=this._cachedMeta,{dataset:n,data:r=[],_dataset:o}=t,i=this.chart._animationsDisabled;let{start:a,count:s}=no(t,r,i);this._drawStart=a,this._drawCount=s,ro(t)&&(a=0,s=r.length),n._chart=this.chart,n._datasetIndex=this.index,n._decimated=!!o._decimated,n.points=r;const l=this.resolveDatasetElementOptions(e);this.options.showLine||(l.borderWidth=0),l.segment=this.options.segment,this.updateElement(n,void 0,{animated:!i,options:l},e),this.updateElements(r,a,s,e)}updateElements(e,t,n,r){const o="reset"===r,{iScale:i,vScale:a,_stacked:s,_dataset:l}=this._cachedMeta,{sharedOptions:c,includeOptions:u}=this._getSharedOptions(t,r),d=i.axis,p=a.axis,{spanGaps:h,segment:f}=this.options,m=Nr(h)?h:Number.POSITIVE_INFINITY,g=this.chart._animationsDisabled||o||"none"===r;let v=t>0&&this.getParsed(t-1);for(let h=t;h<t+n;++h){const t=e[h],n=this.getParsed(h),b=g?t:{},y=er(n[p]),x=b[d]=i.getPixelForValue(n[d],h),w=b[p]=o||y?a.getBasePixel():a.getPixelForValue(s?this.applyStack(a,n,s):n[p],h);b.skip=isNaN(x)||isNaN(w)||y,b.stop=h>0&&Math.abs(n[d]-v[d])>m,f&&(b.parsed=n,b.raw=l.data[h]),u&&(b.options=c||this.resolveDataElementOptions(h,t.active?"active":r)),g||this.updateElement(t,h,b,r),v=n}}getMaxOverflow(){const e=this._cachedMeta,t=e.dataset,n=t.options&&t.options.borderWidth||0,r=e.data||[];if(!r.length)return n;const o=r[0].size(this.resolveDataElementOptions(0)),i=r[r.length-1].size(this.resolveDataElementOptions(r.length-1));return Math.max(n,o,i)/2}draw(){const e=this._cachedMeta;e.dataset.updateControlPoints(this.chart.chartArea,e.iScale.axis),super.draw()}}Ua.id="line",Ua.defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1},Ua.overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};class Ga extends Na{constructor(e,t){super(e,t),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(e){const t=this._cachedMeta,n=this.chart,r=n.data.labels||[],o=ia(t._parsed[e].r,n.options.locale);return{label:r[e]||"",value:o}}parseObjectData(e,t,n,r){return Ii.bind(this)(e,t,n,r)}update(e){const t=this._cachedMeta.data;this._updateRadius(),this.updateElements(t,0,t.length,e)}getMinMax(){const e=this._cachedMeta,t={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return e.data.forEach((e,n)=>{const r=this.getParsed(n).r;!isNaN(r)&&this.chart.getDataVisibility(n)&&(r<t.min&&(t.min=r),r>t.max&&(t.max=r))}),t}_updateRadius(){const e=this.chart,t=e.chartArea,n=e.options,r=Math.min(t.right-t.left,t.bottom-t.top),o=Math.max(r/2,0),i=(o-Math.max(n.cutoutPercentage?o/100*n.cutoutPercentage:1,0))/e.getVisibleDatasetCount();this.outerRadius=o-i*this.index,this.innerRadius=this.outerRadius-i}updateElements(e,t,n,r){const o="reset"===r,i=this.chart,a=i.options.animation,s=this._cachedMeta.rScale,l=s.xCenter,c=s.yCenter,u=s.getIndexAngle(0)-.5*_r;let d,p=u;const h=360/this.countVisibleElements();for(d=0;d<t;++d)p+=this._computeAngle(d,r,h);for(d=t;d<t+n;d++){const t=e[d];let n=p,f=p+this._computeAngle(d,r,h),m=i.getDataVisibility(d)?s.getDistanceFromCenterForValue(this.getParsed(d).r):0;p=f,o&&(a.animateScale&&(m=0),a.animateRotate&&(n=f=u));const g={x:l,y:c,innerRadius:0,outerRadius:m,startAngle:n,endAngle:f,options:this.resolveDataElementOptions(d,t.active?"active":r)};this.updateElement(t,d,g,r)}}countVisibleElements(){const e=this._cachedMeta;let t=0;return e.data.forEach((e,n)=>{!isNaN(this.getParsed(n).r)&&this.chart.getDataVisibility(n)&&t++}),t}_computeAngle(e,t,n){return this.chart.getDataVisibility(e)?Fr(this.resolveDataElementOptions(e,t).angle||n):0}}Ga.id="polarArea",Ga.defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0},Ga.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const t=e.data;if(t.labels.length&&t.datasets.length){const{labels:{pointStyle:n}}=e.legend.options;return t.labels.map((t,r)=>{const o=e.getDatasetMeta(0).controller.getStyle(r);return{text:t,fillStyle:o.backgroundColor,strokeStyle:o.borderColor,lineWidth:o.borderWidth,pointStyle:n,hidden:!e.getDataVisibility(r),index:r}})}return[]}},onClick(e,t,n){n.chart.toggleDataVisibility(t.index),n.chart.update()}},tooltip:{callbacks:{title:()=>"",label:e=>e.chart.data.labels[e.dataIndex]+": "+e.formattedValue}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};class Ya extends Wa{}Ya.id="pie",Ya.defaults={cutout:0,rotation:0,circumference:360,radius:"100%"};class Xa extends Na{getLabelAndValue(e){const t=this._cachedMeta.vScale,n=this.getParsed(e);return{label:t.getLabels()[e],value:""+t.getLabelForValue(n[t.axis])}}parseObjectData(e,t,n,r){return Ii.bind(this)(e,t,n,r)}update(e){const t=this._cachedMeta,n=t.dataset,r=t.data||[],o=t.iScale.getLabels();if(n.points=r,"resize"!==e){const t=this.resolveDatasetElementOptions(e);this.options.showLine||(t.borderWidth=0);const i={_loop:!0,_fullLoop:o.length===r.length,options:t};this.updateElement(n,void 0,i,e)}this.updateElements(r,0,r.length,e)}updateElements(e,t,n,r){const o=this._cachedMeta.rScale,i="reset"===r;for(let a=t;a<t+n;a++){const t=e[a],n=this.resolveDataElementOptions(a,t.active?"active":r),s=o.getPointPositionForValue(a,this.getParsed(a).r),l=i?o.xCenter:s.x,c=i?o.yCenter:s.y,u={x:l,y:c,angle:s.angle,skip:isNaN(l)||isNaN(c),options:n};this.updateElement(t,a,u,r)}}}Xa.id="radar",Xa.defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}},Xa.overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};class qa{constructor(){this.x=void 0,this.y=void 0,this.active=!1,this.options=void 0,this.$animations=void 0}tooltipPosition(e){const{x:t,y:n}=this.getProps(["x","y"],e);return{x:t,y:n}}hasValue(){return Nr(this.x)&&Nr(this.y)}getProps(e,t){const n=this.$animations;if(!t||!n)return this;const r={};return e.forEach(e=>{r[e]=n[e]&&n[e].active()?n[e]._to:this[e]}),r}}qa.defaults={},qa.defaultRoutes=void 0;const Ka={values:e=>tr(e)?e:""+e,numeric(e,t,n){if(0===e)return"0";const r=this.chart.options.locale;let o,i=e;if(n.length>1){const t=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(t<1e-4||t>1e15)&&(o="scientific"),i=function(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e));return n}(e,n)}const a=Ar(Math.abs(i)),s=Math.max(Math.min(-1*Math.floor(a),20),0),l={notation:o,minimumFractionDigits:s,maximumFractionDigits:s};return Object.assign(l,this.options.ticks.format),ia(e,r,l)},logarithmic(e,t,n){if(0===e)return"0";const r=e/Math.pow(10,Math.floor(Ar(e)));return 1===r||2===r||5===r?Ka.numeric.call(this,e,t,n):""}};var Za={formatters:Ka};function Qa(e,t){const n=e.options.ticks,r=n.maxTicksLimit||function(e){const t=e.options.offset,n=e._tickSize(),r=e._length/n+(t?0:1),o=e._maxLength/n;return Math.floor(Math.min(r,o))}(e),o=n.major.enabled?function(e){const t=[];let n,r;for(n=0,r=e.length;n<r;n++)e[n].major&&t.push(n);return t}(t):[],i=o.length,a=o[0],s=o[i-1],l=[];if(i>r)return function(e,t,n,r){let o,i=0,a=n[0];for(r=Math.ceil(r),o=0;o<e.length;o++)o===a&&(t.push(e[o]),i++,a=n[i*r])}(t,l,o,i/r),l;const c=function(e,t,n){const r=function(e){const t=e.length;let n,r;if(t<2)return!1;for(r=e[0],n=1;n<t;++n)if(e[n]-e[n-1]!==r)return!1;return r}(e),o=t.length/n;if(!r)return Math.max(o,1);const i=function(e){const t=[],n=Math.sqrt(e);let r;for(r=1;r<n;r++)e%r===0&&(t.push(r),t.push(e/r));return n===(0|n)&&t.push(n),t.sort((e,t)=>e-t).pop(),t}(r);for(let e=0,t=i.length-1;e<t;e++){const t=i[e];if(t>o)return t}return Math.max(o,1)}(o,t,r);if(i>0){let e,n;const r=i>1?Math.round((s-a)/(i-1)):null;for(Ja(t,l,c,er(r)?0:a-r,a),e=0,n=i-1;e<n;e++)Ja(t,l,c,o[e],o[e+1]);return Ja(t,l,c,s,er(r)?t.length:s+r),l}return Ja(t,l,c),l}function Ja(e,t,n,r,o){const i=ir(r,0),a=Math.min(ir(o,e.length),e.length);let s,l,c,u=0;for(n=Math.ceil(n),o&&(s=o-r,n=s/Math.floor(s/n)),c=i;c<0;)u++,c=Math.round(i+u*n);for(l=Math.max(i,0);l<a;l++)l===c&&(t.push(e[l]),u++,c=Math.round(i+u*n))}Ko.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",grace:0,grid:{display:!0,lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(e,t)=>t.lineWidth,tickColor:(e,t)=>t.color,offset:!1,borderDash:[],borderDashOffset:0,borderWidth:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Za.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),Ko.route("scale.ticks","color","","color"),Ko.route("scale.grid","color","","borderColor"),Ko.route("scale.grid","borderColor","","borderColor"),Ko.route("scale.title","color","","color"),Ko.describe("scale",{_fallback:!1,_scriptable:e=>!e.startsWith("before")&&!e.startsWith("after")&&"callback"!==e&&"parser"!==e,_indexable:e=>"borderDash"!==e&&"tickBorderDash"!==e}),Ko.describe("scales",{_fallback:"scale"}),Ko.describe("scale.ticks",{_scriptable:e=>"backdropPadding"!==e&&"callback"!==e,_indexable:e=>"backdropPadding"!==e});const es=(e,t,n)=>"top"===t||"left"===t?e[t]+n:e[t]-n;function ts(e,t){const n=[],r=e.length/t,o=e.length;let i=0;for(;i<o;i+=r)n.push(e[Math.floor(i)]);return n}function ns(e,t,n){const r=e.ticks.length,o=Math.min(t,r-1),i=e._startPixel,a=e._endPixel,s=1e-6;let l,c=e.getPixelForTick(o);if(!(n&&(l=1===r?Math.max(c-i,a-c):0===t?(e.getPixelForTick(1)-c)/2:(c-e.getPixelForTick(o-1))/2,c+=o<t?l:-l,c<i-s||c>a+s)))return c}function rs(e){return e.drawTicks?e.tickLength:0}function os(e,t){if(!e.display)return 0;const n=yi(e.font,t),r=bi(e.padding);return(tr(e.text)?e.text.length:1)*n.lineHeight+r.height}function is(e,t,n){let r=eo(e);return(n&&"right"!==t||!n&&"right"===t)&&(r=(e=>"left"===e?"right":"right"===e?"left":e)(r)),r}class as extends qa{constructor(e){super(),this.id=e.id,this.type=e.type,this.options=void 0,this.ctx=e.ctx,this.chart=e.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(e){this.options=e.setContext(this.getContext()),this.axis=e.axis,this._userMin=this.parse(e.min),this._userMax=this.parse(e.max),this._suggestedMin=this.parse(e.suggestedMin),this._suggestedMax=this.parse(e.suggestedMax)}parse(e,t){return e}getUserBounds(){let{_userMin:e,_userMax:t,_suggestedMin:n,_suggestedMax:r}=this;return e=or(e,Number.POSITIVE_INFINITY),t=or(t,Number.NEGATIVE_INFINITY),n=or(n,Number.POSITIVE_INFINITY),r=or(r,Number.NEGATIVE_INFINITY),{min:or(e,n),max:or(t,r),minDefined:rr(e),maxDefined:rr(t)}}getMinMax(e){let t,{min:n,max:r,minDefined:o,maxDefined:i}=this.getUserBounds();if(o&&i)return{min:n,max:r};const a=this.getMatchingVisibleMetas();for(let s=0,l=a.length;s<l;++s)t=a[s].controller.getMinMax(this,e),o||(n=Math.min(n,t.min)),i||(r=Math.max(r,t.max));return n=i&&n>r?r:n,r=o&&n>r?n:r,{min:or(n,or(r,n)),max:or(r,or(n,r))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){sr(this.options.beforeUpdate,[this])}update(e,t,n){const{beginAtZero:r,grace:o,ticks:i}=this.options,a=i.sampleSize;this.beforeUpdate(),this.maxWidth=e,this.maxHeight=t,this._margins=n=Object.assign({left:0,right:0,top:0,bottom:0},n),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+n.left+n.right:this.height+n.top+n.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=function(e,t,n){const{min:r,max:o}=e,i=ar(t,(o-r)/2),a=(e,t)=>n&&0===e?0:e+t;return{min:a(r,-Math.abs(i)),max:a(o,i)}}(this,o,r),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const s=a<this.ticks.length;this._convertTicksToLabels(s?ts(this.ticks,a):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),i.display&&(i.autoSkip||"auto"===i.source)&&(this.ticks=Qa(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),s&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let e,t,n=this.options.reverse;this.isHorizontal()?(e=this.left,t=this.right):(e=this.top,t=this.bottom,n=!n),this._startPixel=e,this._endPixel=t,this._reversePixels=n,this._length=t-e,this._alignToPixels=this.options.alignToPixels}afterUpdate(){sr(this.options.afterUpdate,[this])}beforeSetDimensions(){sr(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){sr(this.options.afterSetDimensions,[this])}_callHooks(e){this.chart.notifyPlugins(e,this.getContext()),sr(this.options[e],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){sr(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(e){const t=this.options.ticks;let n,r,o;for(n=0,r=e.length;n<r;n++)o=e[n],o.label=sr(t.callback,[o.value,n,e],this)}afterTickToLabelConversion(){sr(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){sr(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const e=this.options,t=e.ticks,n=this.ticks.length,r=t.minRotation||0,o=t.maxRotation;let i,a,s,l=r;if(!this._isVisible()||!t.display||r>=o||n<=1||!this.isHorizontal())return void(this.labelRotation=r);const c=this._getLabelSizes(),u=c.widest.width,d=c.highest.height,p=Wr(this.chart.width-u,0,this.maxWidth);i=e.offset?this.maxWidth/n:p/(n-1),u+6>i&&(i=p/(n-(e.offset?.5:1)),a=this.maxHeight-rs(e.grid)-t.padding-os(e.title,this.chart.options.font),s=Math.sqrt(u*u+d*d),l=Lr(Math.min(Math.asin(Wr((c.highest.height+6)/i,-1,1)),Math.asin(Wr(a/s,-1,1))-Math.asin(Wr(d/s,-1,1)))),l=Math.max(r,Math.min(o,l))),this.labelRotation=l}afterCalculateLabelRotation(){sr(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){sr(this.options.beforeFit,[this])}fit(){const e={width:0,height:0},{chart:t,options:{ticks:n,title:r,grid:o}}=this,i=this._isVisible(),a=this.isHorizontal();if(i){const i=os(r,t.options.font);if(a?(e.width=this.maxWidth,e.height=rs(o)+i):(e.height=this.maxHeight,e.width=rs(o)+i),n.display&&this.ticks.length){const{first:t,last:r,widest:o,highest:i}=this._getLabelSizes(),s=2*n.padding,l=Fr(this.labelRotation),c=Math.cos(l),u=Math.sin(l);if(a){const t=n.mirror?0:u*o.width+c*i.height;e.height=Math.min(this.maxHeight,e.height+t+s)}else{const t=n.mirror?0:c*o.width+u*i.height;e.width=Math.min(this.maxWidth,e.width+t+s)}this._calculatePadding(t,r,u,c)}}this._handleMargins(),a?(this.width=this._length=t.width-this._margins.left-this._margins.right,this.height=e.height):(this.width=e.width,this.height=this._length=t.height-this._margins.top-this._margins.bottom)}_calculatePadding(e,t,n,r){const{ticks:{align:o,padding:i},position:a}=this.options,s=0!==this.labelRotation,l="top"!==a&&"x"===this.axis;if(this.isHorizontal()){const a=this.getPixelForTick(0)-this.left,c=this.right-this.getPixelForTick(this.ticks.length-1);let u=0,d=0;s?l?(u=r*e.width,d=n*t.height):(u=n*e.height,d=r*t.width):"start"===o?d=t.width:"end"===o?u=e.width:"inner"!==o&&(u=e.width/2,d=t.width/2),this.paddingLeft=Math.max((u-a+i)*this.width/(this.width-a),0),this.paddingRight=Math.max((d-c+i)*this.width/(this.width-c),0)}else{let n=t.height/2,r=e.height/2;"start"===o?(n=0,r=e.height):"end"===o&&(n=t.height,r=0),this.paddingTop=n+i,this.paddingBottom=r+i}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){sr(this.options.afterFit,[this])}isHorizontal(){const{axis:e,position:t}=this.options;return"top"===t||"bottom"===t||"x"===e}isFullSize(){return this.options.fullSize}_convertTicksToLabels(e){let t,n;for(this.beforeTickToLabelConversion(),this.generateTickLabels(e),t=0,n=e.length;t<n;t++)er(e[t].label)&&(e.splice(t,1),n--,t--);this.afterTickToLabelConversion()}_getLabelSizes(){let e=this._labelSizes;if(!e){const t=this.options.ticks.sampleSize;let n=this.ticks;t<n.length&&(n=ts(n,t)),this._labelSizes=e=this._computeLabelSizes(n,n.length)}return e}_computeLabelSizes(e,t){const{ctx:n,_longestTextCache:r}=this,o=[],i=[];let a,s,l,c,u,d,p,h,f,m,g,v=0,b=0;for(a=0;a<t;++a){if(c=e[a].label,u=this._resolveTickFontOptions(a),n.font=d=u.string,p=r[d]=r[d]||{data:{},gc:[]},h=u.lineHeight,f=m=0,er(c)||tr(c)){if(tr(c))for(s=0,l=c.length;s<l;++s)g=c[s],er(g)||tr(g)||(f=Zo(n,p.data,p.gc,f,g),m+=h)}else f=Zo(n,p.data,p.gc,f,c),m=h;o.push(f),i.push(m),v=Math.max(f,v),b=Math.max(m,b)}!function(e,t){lr(e,e=>{const n=e.gc,r=n.length/2;let o;if(r>t){for(o=0;o<r;++o)delete e.data[n[o]];n.splice(0,r)}})}(r,t);const y=o.indexOf(v),x=i.indexOf(b),w=e=>({width:o[e]||0,height:i[e]||0});return{first:w(0),last:w(t-1),widest:w(y),highest:w(x),widths:o,heights:i}}getLabelForValue(e){return e}getPixelForValue(e,t){return NaN}getValueForPixel(e){}getPixelForTick(e){const t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e].value)}getPixelForDecimal(e){this._reversePixels&&(e=1-e);const t=this._startPixel+e*this._length;return Wr(this._alignToPixels?Jo(this.chart,t,0):t,-32768,32767)}getDecimalForPixel(e){const t=(e-this._startPixel)/this._length;return this._reversePixels?1-t:t}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:e,max:t}=this;return e<0&&t<0?t:e>0&&t>0?e:0}getContext(e){const t=this.ticks||[];if(e>=0&&e<t.length){const n=t[e];return n.$context||(n.$context=function(e,t,n){return wi(e,{tick:n,index:t,type:"tick"})}(this.getContext(),e,n))}return this.$context||(this.$context=wi(this.chart.getContext(),{scale:this,type:"scale"}))}_tickSize(){const e=this.options.ticks,t=Fr(this.labelRotation),n=Math.abs(Math.cos(t)),r=Math.abs(Math.sin(t)),o=this._getLabelSizes(),i=e.autoSkipPadding||0,a=o?o.widest.width+i:0,s=o?o.highest.height+i:0;return this.isHorizontal()?s*n>a*r?a/n:s/r:s*r<a*n?s/n:a/r}_isVisible(){const e=this.options.display;return"auto"!==e?!!e:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(e){const t=this.axis,n=this.chart,r=this.options,{grid:o,position:i}=r,a=o.offset,s=this.isHorizontal(),l=this.ticks.length+(a?1:0),c=rs(o),u=[],d=o.setContext(this.getContext()),p=d.drawBorder?d.borderWidth:0,h=p/2,f=function(e){return Jo(n,e,p)};let m,g,v,b,y,x,w,_,S,E,k,O;if("top"===i)m=f(this.bottom),x=this.bottom-c,_=m-h,E=f(e.top)+h,O=e.bottom;else if("bottom"===i)m=f(this.top),E=e.top,O=f(e.bottom)-h,x=m+h,_=this.top+c;else if("left"===i)m=f(this.right),y=this.right-c,w=m-h,S=f(e.left)+h,k=e.right;else if("right"===i)m=f(this.left),S=e.left,k=f(e.right)-h,y=m+h,w=this.left+c;else if("x"===t){if("center"===i)m=f((e.top+e.bottom)/2+.5);else if(nr(i)){const e=Object.keys(i)[0],t=i[e];m=f(this.chart.scales[e].getPixelForValue(t))}E=e.top,O=e.bottom,x=m+h,_=x+c}else if("y"===t){if("center"===i)m=f((e.left+e.right)/2);else if(nr(i)){const e=Object.keys(i)[0],t=i[e];m=f(this.chart.scales[e].getPixelForValue(t))}y=m-h,w=y-c,S=e.left,k=e.right}const C=ir(r.ticks.maxTicksLimit,l),M=Math.max(1,Math.ceil(l/C));for(g=0;g<l;g+=M){const e=o.setContext(this.getContext(g)),t=e.lineWidth,r=e.color,i=e.borderDash||[],l=e.borderDashOffset,c=e.tickWidth,d=e.tickColor,p=e.tickBorderDash||[],h=e.tickBorderDashOffset;v=ns(this,g,a),void 0!==v&&(b=Jo(n,v,t),s?y=w=S=k=b:x=_=E=O=b,u.push({tx1:y,ty1:x,tx2:w,ty2:_,x1:S,y1:E,x2:k,y2:O,width:t,color:r,borderDash:i,borderDashOffset:l,tickWidth:c,tickColor:d,tickBorderDash:p,tickBorderDashOffset:h}))}return this._ticksLength=l,this._borderValue=m,u}_computeLabelItems(e){const t=this.axis,n=this.options,{position:r,ticks:o}=n,i=this.isHorizontal(),a=this.ticks,{align:s,crossAlign:l,padding:c,mirror:u}=o,d=rs(n.grid),p=d+c,h=u?-c:p,f=-Fr(this.labelRotation),m=[];let g,v,b,y,x,w,_,S,E,k,O,C,M="middle";if("top"===r)w=this.bottom-h,_=this._getXAxisLabelAlignment();else if("bottom"===r)w=this.top+h,_=this._getXAxisLabelAlignment();else if("left"===r){const e=this._getYAxisLabelAlignment(d);_=e.textAlign,x=e.x}else if("right"===r){const e=this._getYAxisLabelAlignment(d);_=e.textAlign,x=e.x}else if("x"===t){if("center"===r)w=(e.top+e.bottom)/2+p;else if(nr(r)){const e=Object.keys(r)[0],t=r[e];w=this.chart.scales[e].getPixelForValue(t)+p}_=this._getXAxisLabelAlignment()}else if("y"===t){if("center"===r)x=(e.left+e.right)/2-p;else if(nr(r)){const e=Object.keys(r)[0],t=r[e];x=this.chart.scales[e].getPixelForValue(t)}_=this._getYAxisLabelAlignment(d).textAlign}"y"===t&&("start"===s?M="top":"end"===s&&(M="bottom"));const T=this._getLabelSizes();for(g=0,v=a.length;g<v;++g){b=a[g],y=b.label;const e=o.setContext(this.getContext(g));S=this.getPixelForTick(g)+o.labelOffset,E=this._resolveTickFontOptions(g),k=E.lineHeight,O=tr(y)?y.length:1;const t=O/2,n=e.color,s=e.textStrokeColor,c=e.textStrokeWidth;let d,p=_;if(i?(x=S,"inner"===_&&(p=g===v-1?this.options.reverse?"left":"right":0===g?this.options.reverse?"right":"left":"center"),C="top"===r?"near"===l||0!==f?-O*k+k/2:"center"===l?-T.highest.height/2-t*k+k:-T.highest.height+k/2:"near"===l||0!==f?k/2:"center"===l?T.highest.height/2-t*k:T.highest.height-O*k,u&&(C*=-1)):(w=S,C=(1-O)*k/2),e.showLabelBackdrop){const t=bi(e.backdropPadding),n=T.heights[g],r=T.widths[g];let o=w+C-t.top,i=x-t.left;switch(M){case"middle":o-=n/2;break;case"bottom":o-=n}switch(_){case"center":i-=r/2;break;case"right":i-=r}d={left:i,top:o,width:r+t.width,height:n+t.height,color:e.backdropColor}}m.push({rotation:f,label:y,font:E,color:n,strokeColor:s,strokeWidth:c,textOffset:C,textAlign:p,textBaseline:M,translation:[x,w],backdrop:d})}return m}_getXAxisLabelAlignment(){const{position:e,ticks:t}=this.options;if(-Fr(this.labelRotation))return"top"===e?"left":"right";let n="center";return"start"===t.align?n="left":"end"===t.align?n="right":"inner"===t.align&&(n="inner"),n}_getYAxisLabelAlignment(e){const{position:t,ticks:{crossAlign:n,mirror:r,padding:o}}=this.options,i=e+o,a=this._getLabelSizes().widest.width;let s,l;return"left"===t?r?(l=this.right+o,"near"===n?s="left":"center"===n?(s="center",l+=a/2):(s="right",l+=a)):(l=this.right-i,"near"===n?s="right":"center"===n?(s="center",l-=a/2):(s="left",l=this.left)):"right"===t?r?(l=this.left+o,"near"===n?s="right":"center"===n?(s="center",l-=a/2):(s="left",l-=a)):(l=this.left+i,"near"===n?s="left":"center"===n?(s="center",l+=a/2):(s="right",l=this.right)):s="right",{textAlign:s,x:l}}_computeLabelArea(){if(this.options.ticks.mirror)return;const e=this.chart,t=this.options.position;return"left"===t||"right"===t?{top:0,left:this.left,bottom:e.height,right:this.right}:"top"===t||"bottom"===t?{top:this.top,left:0,bottom:this.bottom,right:e.width}:void 0}drawBackground(){const{ctx:e,options:{backgroundColor:t},left:n,top:r,width:o,height:i}=this;t&&(e.save(),e.fillStyle=t,e.fillRect(n,r,o,i),e.restore())}getLineWidthForValue(e){const t=this.options.grid;if(!this._isVisible()||!t.display)return 0;const n=this.ticks.findIndex(t=>t.value===e);if(n>=0){return t.setContext(this.getContext(n)).lineWidth}return 0}drawGrid(e){const t=this.options.grid,n=this.ctx,r=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(e));let o,i;const a=(e,t,r)=>{r.width&&r.color&&(n.save(),n.lineWidth=r.width,n.strokeStyle=r.color,n.setLineDash(r.borderDash||[]),n.lineDashOffset=r.borderDashOffset,n.beginPath(),n.moveTo(e.x,e.y),n.lineTo(t.x,t.y),n.stroke(),n.restore())};if(t.display)for(o=0,i=r.length;o<i;++o){const e=r[o];t.drawOnChartArea&&a({x:e.x1,y:e.y1},{x:e.x2,y:e.y2},e),t.drawTicks&&a({x:e.tx1,y:e.ty1},{x:e.tx2,y:e.ty2},{color:e.tickColor,width:e.tickWidth,borderDash:e.tickBorderDash,borderDashOffset:e.tickBorderDashOffset})}}drawBorder(){const{chart:e,ctx:t,options:{grid:n}}=this,r=n.setContext(this.getContext()),o=n.drawBorder?r.borderWidth:0;if(!o)return;const i=n.setContext(this.getContext(0)).lineWidth,a=this._borderValue;let s,l,c,u;this.isHorizontal()?(s=Jo(e,this.left,o)-o/2,l=Jo(e,this.right,i)+i/2,c=u=a):(c=Jo(e,this.top,o)-o/2,u=Jo(e,this.bottom,i)+i/2,s=l=a),t.save(),t.lineWidth=r.borderWidth,t.strokeStyle=r.borderColor,t.beginPath(),t.moveTo(s,c),t.lineTo(l,u),t.stroke(),t.restore()}drawLabels(e){if(!this.options.ticks.display)return;const t=this.ctx,n=this._computeLabelArea();n&&oi(t,n);const r=this._labelItems||(this._labelItems=this._computeLabelItems(e));let o,i;for(o=0,i=r.length;o<i;++o){const e=r[o],n=e.font,i=e.label;e.backdrop&&(t.fillStyle=e.backdrop.color,t.fillRect(e.backdrop.left,e.backdrop.top,e.backdrop.width,e.backdrop.height)),li(t,i,0,e.textOffset,n,e)}n&&ii(t)}drawTitle(){const{ctx:e,options:{position:t,title:n,reverse:r}}=this;if(!n.display)return;const o=yi(n.font),i=bi(n.padding),a=n.align;let s=o.lineHeight/2;"bottom"===t||"center"===t||nr(t)?(s+=i.bottom,tr(n.text)&&(s+=o.lineHeight*(n.text.length-1))):s+=i.top;const{titleX:l,titleY:c,maxWidth:u,rotation:d}=function(e,t,n,r){const{top:o,left:i,bottom:a,right:s,chart:l}=e,{chartArea:c,scales:u}=l;let d,p,h,f=0;const m=a-o,g=s-i;if(e.isHorizontal()){if(p=to(r,i,s),nr(n)){const e=Object.keys(n)[0],r=n[e];h=u[e].getPixelForValue(r)+m-t}else h="center"===n?(c.bottom+c.top)/2+m-t:es(e,n,t);d=s-i}else{if(nr(n)){const e=Object.keys(n)[0],r=n[e];p=u[e].getPixelForValue(r)-g+t}else p="center"===n?(c.left+c.right)/2-g+t:es(e,n,t);h=to(r,a,o),f="left"===n?-Cr:Cr}return{titleX:p,titleY:h,maxWidth:d,rotation:f}}(this,s,t,a);li(e,n.text,0,0,o,{color:n.color,maxWidth:u,rotation:d,textAlign:is(a,t,r),textBaseline:"middle",translation:[l,c]})}draw(e){this._isVisible()&&(this.drawBackground(),this.drawGrid(e),this.drawBorder(),this.drawTitle(),this.drawLabels(e))}_layers(){const e=this.options,t=e.ticks&&e.ticks.z||0,n=ir(e.grid&&e.grid.z,-1);return this._isVisible()&&this.draw===as.prototype.draw?[{z:n,draw:e=>{this.drawBackground(),this.drawGrid(e),this.drawTitle()}},{z:n+1,draw:()=>{this.drawBorder()}},{z:t,draw:e=>{this.drawLabels(e)}}]:[{z:t,draw:e=>{this.draw(e)}}]}getMatchingVisibleMetas(e){const t=this.chart.getSortedVisibleDatasetMetas(),n=this.axis+"AxisID",r=[];let o,i;for(o=0,i=t.length;o<i;++o){const i=t[o];i[n]!==this.id||e&&i.type!==e||r.push(i)}return r}_resolveTickFontOptions(e){return yi(this.options.ticks.setContext(this.getContext(e)).font)}_maxDigits(){const e=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/e}}class ss{constructor(e,t,n){this.type=e,this.scope=t,this.override=n,this.items=Object.create(null)}isForType(e){return Object.prototype.isPrototypeOf.call(this.type.prototype,e.prototype)}register(e){const t=Object.getPrototypeOf(e);let n;(function(e){return"id"in e&&"defaults"in e})(t)&&(n=this.register(t));const r=this.items,o=e.id,i=this.scope+"."+o;if(!o)throw new Error("class does not have id: "+e);return o in r||(r[o]=e,function(e,t,n){const r=hr(Object.create(null),[n?Ko.get(n):{},Ko.get(t),e.defaults]);Ko.set(t,r),e.defaultRoutes&&function(e,t){Object.keys(t).forEach(n=>{const r=n.split("."),o=r.pop(),i=[e].concat(r).join("."),a=t[n].split("."),s=a.pop(),l=a.join(".");Ko.route(i,o,l,s)})}(t,e.defaultRoutes);e.descriptors&&Ko.describe(t,e.descriptors)}(e,i,n),this.override&&Ko.override(e.id,e.overrides)),i}get(e){return this.items[e]}unregister(e){const t=this.items,n=e.id,r=this.scope;n in t&&delete t[n],r&&n in Ko[r]&&(delete Ko[r][n],this.override&&delete Go[n])}}var ls=new class{constructor(){this.controllers=new ss(Na,"datasets",!0),this.elements=new ss(qa,"elements"),this.plugins=new ss(Object,"plugins"),this.scales=new ss(as,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...e){this._each("register",e)}remove(...e){this._each("unregister",e)}addControllers(...e){this._each("register",e,this.controllers)}addElements(...e){this._each("register",e,this.elements)}addPlugins(...e){this._each("register",e,this.plugins)}addScales(...e){this._each("register",e,this.scales)}getController(e){return this._get(e,this.controllers,"controller")}getElement(e){return this._get(e,this.elements,"element")}getPlugin(e){return this._get(e,this.plugins,"plugin")}getScale(e){return this._get(e,this.scales,"scale")}removeControllers(...e){this._each("unregister",e,this.controllers)}removeElements(...e){this._each("unregister",e,this.elements)}removePlugins(...e){this._each("unregister",e,this.plugins)}removeScales(...e){this._each("unregister",e,this.scales)}_each(e,t,n){[...t].forEach(t=>{const r=n||this._getRegistryForType(t);n||r.isForType(t)||r===this.plugins&&t.id?this._exec(e,r,t):lr(t,t=>{const r=n||this._getRegistryForType(t);this._exec(e,r,t)})})}_exec(e,t,n){const r=br(e);sr(n["before"+r],[],n),t[e](n),sr(n["after"+r],[],n)}_getRegistryForType(e){for(let t=0;t<this._typedRegistries.length;t++){const n=this._typedRegistries[t];if(n.isForType(e))return n}return this.plugins}_get(e,t,n){const r=t.get(e);if(void 0===r)throw new Error('"'+e+'" is not a registered '+n+".");return r}};class cs extends Na{update(e){const t=this._cachedMeta,{data:n=[]}=t,r=this.chart._animationsDisabled;let{start:o,count:i}=no(t,n,r);if(this._drawStart=o,this._drawCount=i,ro(t)&&(o=0,i=n.length),this.options.showLine){const{dataset:o,_dataset:i}=t;o._chart=this.chart,o._datasetIndex=this.index,o._decimated=!!i._decimated,o.points=n;const a=this.resolveDatasetElementOptions(e);a.segment=this.options.segment,this.updateElement(o,void 0,{animated:!r,options:a},e)}this.updateElements(n,o,i,e)}addElements(){const{showLine:e}=this.options;!this.datasetElementType&&e&&(this.datasetElementType=ls.getElement("line")),super.addElements()}updateElements(e,t,n,r){const o="reset"===r,{iScale:i,vScale:a,_stacked:s,_dataset:l}=this._cachedMeta,c=this.resolveDataElementOptions(t,r),u=this.getSharedOptions(c),d=this.includeOptions(r,u),p=i.axis,h=a.axis,{spanGaps:f,segment:m}=this.options,g=Nr(f)?f:Number.POSITIVE_INFINITY,v=this.chart._animationsDisabled||o||"none"===r;let b=t>0&&this.getParsed(t-1);for(let c=t;c<t+n;++c){const t=e[c],n=this.getParsed(c),f=v?t:{},y=er(n[h]),x=f[p]=i.getPixelForValue(n[p],c),w=f[h]=o||y?a.getBasePixel():a.getPixelForValue(s?this.applyStack(a,n,s):n[h],c);f.skip=isNaN(x)||isNaN(w)||y,f.stop=c>0&&Math.abs(n[p]-b[p])>g,m&&(f.parsed=n,f.raw=l.data[c]),d&&(f.options=u||this.resolveDataElementOptions(c,t.active?"active":r)),v||this.updateElement(t,c,f,r),b=n}this.updateSharedOptions(u,r,c)}getMaxOverflow(){const e=this._cachedMeta,t=e.data||[];if(!this.options.showLine){let e=0;for(let n=t.length-1;n>=0;--n)e=Math.max(e,t[n].size(this.resolveDataElementOptions(n))/2);return e>0&&e}const n=e.dataset,r=n.options&&n.options.borderWidth||0;if(!t.length)return r;const o=t[0].size(this.resolveDataElementOptions(0)),i=t[t.length-1].size(this.resolveDataElementOptions(t.length-1));return Math.max(r,o,i)/2}}function us(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}cs.id="scatter",cs.defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1},cs.overrides={interaction:{mode:"point"},plugins:{tooltip:{callbacks:{title:()=>"",label:e=>"("+e.label+", "+e.formattedValue+")"}}},scales:{x:{type:"linear"},y:{type:"linear"}}};class ds{constructor(e){this.options=e||{}}init(e){}formats(){return us()}parse(e,t){return us()}format(e,t){return us()}add(e,t,n){return us()}diff(e,t,n){return us()}startOf(e,t,n){return us()}endOf(e,t){return us()}}ds.override=function(e){Object.assign(ds.prototype,e)};var ps={_date:ds};function hs(e,t,n,r){const{controller:o,data:i,_sorted:a}=e,s=o._cachedMeta.iScale;if(s&&t===s.axis&&"r"!==t&&a&&i.length){const e=s._reversePixels?Xr:Yr;if(!r)return e(i,t,n);if(o._sharedOptions){const r=i[0],o="function"==typeof r.getRange&&r.getRange(t);if(o){const r=e(i,t,n-o),a=e(i,t,n+o);return{lo:r.lo,hi:a.hi}}}}return{lo:0,hi:i.length-1}}function fs(e,t,n,r,o){const i=e.getSortedVisibleDatasetMetas(),a=n[t];for(let e=0,n=i.length;e<n;++e){const{index:n,data:s}=i[e],{lo:l,hi:c}=hs(i[e],t,a,o);for(let e=l;e<=c;++e){const t=s[e];t.skip||r(t,n,e)}}}function ms(e,t,n,r,o){const i=[];if(!o&&!e.isPointInArea(t))return i;return fs(e,n,t,function(n,a,s){(o||ri(n,e.chartArea,0))&&n.inRange(t.x,t.y,r)&&i.push({element:n,datasetIndex:a,index:s})},!0),i}function gs(e,t,n,r,o,i){let a=[];const s=function(e){const t=-1!==e.indexOf("x"),n=-1!==e.indexOf("y");return function(e,r){const o=t?Math.abs(e.x-r.x):0,i=n?Math.abs(e.y-r.y):0;return Math.sqrt(Math.pow(o,2)+Math.pow(i,2))}}(n);let l=Number.POSITIVE_INFINITY;return fs(e,n,t,function(n,c,u){const d=n.inRange(t.x,t.y,o);if(r&&!d)return;const p=n.getCenterPoint(o);if(!(!!i||e.isPointInArea(p))&&!d)return;const h=s(t,p);h<l?(a=[{element:n,datasetIndex:c,index:u}],l=h):h===l&&a.push({element:n,datasetIndex:c,index:u})}),a}function vs(e,t,n,r,o,i){return i||e.isPointInArea(t)?"r"!==n||r?gs(e,t,n,r,o,i):function(e,t,n,r){let o=[];return fs(e,n,t,function(e,n,i){const{startAngle:a,endAngle:s}=e.getProps(["startAngle","endAngle"],r),{angle:l}=zr(e,{x:t.x,y:t.y});$r(l,a,s)&&o.push({element:e,datasetIndex:n,index:i})}),o}(e,t,n,o):[]}function bs(e,t,n,r,o){const i=[],a="x"===n?"inXRange":"inYRange";let s=!1;return fs(e,n,t,(e,r,l)=>{e[a](t[n],o)&&(i.push({element:e,datasetIndex:r,index:l}),s=s||e.inRange(t.x,t.y,o))}),r&&!s?[]:i}var ys={evaluateInteractionItems:fs,modes:{index(e,t,n,r){const o=qi(t,e),i=n.axis||"x",a=n.includeInvisible||!1,s=n.intersect?ms(e,o,i,r,a):vs(e,o,i,!1,r,a),l=[];return s.length?(e.getSortedVisibleDatasetMetas().forEach(e=>{const t=s[0].index,n=e.data[t];n&&!n.skip&&l.push({element:n,datasetIndex:e.index,index:t})}),l):[]},dataset(e,t,n,r){const o=qi(t,e),i=n.axis||"xy",a=n.includeInvisible||!1;let s=n.intersect?ms(e,o,i,r,a):vs(e,o,i,!1,r,a);if(s.length>0){const t=s[0].datasetIndex,n=e.getDatasetMeta(t).data;s=[];for(let e=0;e<n.length;++e)s.push({element:n[e],datasetIndex:t,index:e})}return s},point:(e,t,n,r)=>ms(e,qi(t,e),n.axis||"xy",r,n.includeInvisible||!1),nearest(e,t,n,r){const o=qi(t,e),i=n.axis||"xy",a=n.includeInvisible||!1;return vs(e,o,i,n.intersect,r,a)},x:(e,t,n,r)=>bs(e,qi(t,e),"x",n.intersect,r),y:(e,t,n,r)=>bs(e,qi(t,e),"y",n.intersect,r)}};const xs=["left","top","right","bottom"];function ws(e,t){return e.filter(e=>e.pos===t)}function _s(e,t){return e.filter(e=>-1===xs.indexOf(e.pos)&&e.box.axis===t)}function Ss(e,t){return e.sort((e,n)=>{const r=t?n:e,o=t?e:n;return r.weight===o.weight?r.index-o.index:r.weight-o.weight})}function Es(e,t){const n=function(e){const t={};for(const n of e){const{stack:e,pos:r,stackWeight:o}=n;if(!e||!xs.includes(r))continue;const i=t[e]||(t[e]={count:0,placed:0,weight:0,size:0});i.count++,i.weight+=o}return t}(e),{vBoxMaxWidth:r,hBoxMaxHeight:o}=t;let i,a,s;for(i=0,a=e.length;i<a;++i){s=e[i];const{fullSize:a}=s.box,l=n[s.stack],c=l&&s.stackWeight/l.weight;s.horizontal?(s.width=c?c*r:a&&t.availableWidth,s.height=o):(s.width=r,s.height=c?c*o:a&&t.availableHeight)}return n}function ks(e,t,n,r){return Math.max(e[n],t[n])+Math.max(e[r],t[r])}function Os(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function Cs(e,t,n,r){const{pos:o,box:i}=n,a=e.maxPadding;if(!nr(o)){n.size&&(e[o]-=n.size);const t=r[n.stack]||{size:0,count:1};t.size=Math.max(t.size,n.horizontal?i.height:i.width),n.size=t.size/t.count,e[o]+=n.size}i.getPadding&&Os(a,i.getPadding());const s=Math.max(0,t.outerWidth-ks(a,e,"left","right")),l=Math.max(0,t.outerHeight-ks(a,e,"top","bottom")),c=s!==e.w,u=l!==e.h;return e.w=s,e.h=l,n.horizontal?{same:c,other:u}:{same:u,other:c}}function Ms(e,t){const n=t.maxPadding;function r(e){const r={left:0,top:0,right:0,bottom:0};return e.forEach(e=>{r[e]=Math.max(t[e],n[e])}),r}return r(e?["left","right"]:["top","bottom"])}function Ts(e,t,n,r){const o=[];let i,a,s,l,c,u;for(i=0,a=e.length,c=0;i<a;++i){s=e[i],l=s.box,l.update(s.width||t.w,s.height||t.h,Ms(s.horizontal,t));const{same:a,other:d}=Cs(t,n,s,r);c|=a&&o.length,u=u||d,l.fullSize||o.push(s)}return c&&Ts(o,t,n,r)||u}function As(e,t,n,r,o){e.top=n,e.left=t,e.right=t+r,e.bottom=n+o,e.width=r,e.height=o}function Ps(e,t,n,r){const o=n.padding;let{x:i,y:a}=t;for(const s of e){const e=s.box,l=r[s.stack]||{count:1,placed:0,weight:1},c=s.stackWeight/l.weight||1;if(s.horizontal){const r=t.w*c,i=l.size||e.height;yr(l.start)&&(a=l.start),e.fullSize?As(e,o.left,a,n.outerWidth-o.right-o.left,i):As(e,t.left+l.placed,a,r,i),l.start=a,l.placed+=r,a=e.bottom}else{const r=t.h*c,a=l.size||e.width;yr(l.start)&&(i=l.start),e.fullSize?As(e,i,o.top,a,n.outerHeight-o.bottom-o.top):As(e,i,t.top+l.placed,a,r),l.start=i,l.placed+=r,i=e.right}}t.x=i,t.y=a}Ko.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}});var Rs={addBox(e,t){e.boxes||(e.boxes=[]),t.fullSize=t.fullSize||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw(e){t.draw(e)}}]},e.boxes.push(t)},removeBox(e,t){const n=e.boxes?e.boxes.indexOf(t):-1;-1!==n&&e.boxes.splice(n,1)},configure(e,t,n){t.fullSize=n.fullSize,t.position=n.position,t.weight=n.weight},update(e,t,n,r){if(!e)return;const o=bi(e.options.layout.padding),i=Math.max(t-o.width,0),a=Math.max(n-o.height,0),s=function(e){const t=function(e){const t=[];let n,r,o,i,a,s;for(n=0,r=(e||[]).length;n<r;++n)o=e[n],({position:i,options:{stack:a,stackWeight:s=1}}=o),t.push({index:n,box:o,pos:i,horizontal:o.isHorizontal(),weight:o.weight,stack:a&&i+a,stackWeight:s});return t}(e),n=Ss(t.filter(e=>e.box.fullSize),!0),r=Ss(ws(t,"left"),!0),o=Ss(ws(t,"right")),i=Ss(ws(t,"top"),!0),a=Ss(ws(t,"bottom")),s=_s(t,"x"),l=_s(t,"y");return{fullSize:n,leftAndTop:r.concat(i),rightAndBottom:o.concat(l).concat(a).concat(s),chartArea:ws(t,"chartArea"),vertical:r.concat(o).concat(l),horizontal:i.concat(a).concat(s)}}(e.boxes),l=s.vertical,c=s.horizontal;lr(e.boxes,e=>{"function"==typeof e.beforeLayout&&e.beforeLayout()});const u=l.reduce((e,t)=>t.box.options&&!1===t.box.options.display?e:e+1,0)||1,d=Object.freeze({outerWidth:t,outerHeight:n,padding:o,availableWidth:i,availableHeight:a,vBoxMaxWidth:i/2/u,hBoxMaxHeight:a/2}),p=Object.assign({},o);Os(p,bi(r));const h=Object.assign({maxPadding:p,w:i,h:a,x:o.left,y:o.top},o),f=Es(l.concat(c),d);Ts(s.fullSize,h,d,f),Ts(l,h,d,f),Ts(c,h,d,f)&&Ts(l,h,d,f),function(e){const t=e.maxPadding;function n(n){const r=Math.max(t[n]-e[n],0);return e[n]+=r,r}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}(h),Ps(s.leftAndTop,h,d,f),h.x+=h.w,h.y+=h.h,Ps(s.rightAndBottom,h,d,f),e.chartArea={left:h.left,top:h.top,right:h.left+h.w,bottom:h.top+h.h,height:h.h,width:h.w},lr(s.chartArea,t=>{const n=t.box;Object.assign(n,e.chartArea),n.update(h.w,h.h,{left:0,top:0,right:0,bottom:0})})}};class Ns{acquireContext(e,t){}releaseContext(e){return!1}addEventListener(e,t,n){}removeEventListener(e,t,n){}getDevicePixelRatio(){return 1}getMaximumSize(e,t,n,r){return t=Math.max(0,t||e.width),n=n||e.height,{width:t,height:Math.max(0,r?Math.floor(t/r):n)}}isAttached(e){return!0}updateConfig(e){}}class Ds extends Ns{acquireContext(e){return e&&e.getContext&&e.getContext("2d")||null}updateConfig(e){e.options.animation=!1}}const Is="$chartjs",Fs={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Ls=e=>null===e||""===e;const js=!!Ji&&{passive:!0};function zs(e,t,n){e.canvas.removeEventListener(t,n,js)}function Bs(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function Hs(e,t,n){const r=e.canvas,o=new MutationObserver(e=>{let t=!1;for(const n of e)t=t||Bs(n.addedNodes,r),t=t&&!Bs(n.removedNodes,r);t&&n()});return o.observe(document,{childList:!0,subtree:!0}),o}function Vs(e,t,n){const r=e.canvas,o=new MutationObserver(e=>{let t=!1;for(const n of e)t=t||Bs(n.removedNodes,r),t=t&&!Bs(n.addedNodes,r);t&&n()});return o.observe(document,{childList:!0,subtree:!0}),o}const $s=new Map;let Ws=0;function Us(){const e=window.devicePixelRatio;e!==Ws&&(Ws=e,$s.forEach((t,n)=>{n.currentDevicePixelRatio!==e&&t()}))}function Gs(e,t,n){const r=e.canvas,o=r&&Wi(r);if(!o)return;const i=Jr((e,t)=>{const r=o.clientWidth;n(e,t),r<o.clientWidth&&n()},window),a=new ResizeObserver(e=>{const t=e[0],n=t.contentRect.width,r=t.contentRect.height;0===n&&0===r||i(n,r)});return a.observe(o),function(e,t){$s.size||window.addEventListener("resize",Us),$s.set(e,t)}(e,i),a}function Ys(e,t,n){n&&n.disconnect(),"resize"===t&&function(e){$s.delete(e),$s.size||window.removeEventListener("resize",Us)}(e)}function Xs(e,t,n){const r=e.canvas,o=Jr(t=>{null!==e.ctx&&n(function(e,t){const n=Fs[e.type]||e.type,{x:r,y:o}=qi(e,t);return{type:n,chart:t,native:e,x:void 0!==r?r:null,y:void 0!==o?o:null}}(t,e))},e,e=>{const t=e[0];return[t,t.offsetX,t.offsetY]});return function(e,t,n){e.addEventListener(t,n,js)}(r,t,o),o}class qs extends Ns{acquireContext(e,t){const n=e&&e.getContext&&e.getContext("2d");return n&&n.canvas===e?(function(e,t){const n=e.style,r=e.getAttribute("height"),o=e.getAttribute("width");if(e[Is]={initial:{height:r,width:o,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",Ls(o)){const t=ea(e,"width");void 0!==t&&(e.width=t)}if(Ls(r))if(""===e.style.height)e.height=e.width/(t||2);else{const t=ea(e,"height");void 0!==t&&(e.height=t)}}(e,t),n):null}releaseContext(e){const t=e.canvas;if(!t[Is])return!1;const n=t[Is].initial;["height","width"].forEach(e=>{const r=n[e];er(r)?t.removeAttribute(e):t.setAttribute(e,r)});const r=n.style||{};return Object.keys(r).forEach(e=>{t.style[e]=r[e]}),t.width=t.width,delete t[Is],!0}addEventListener(e,t,n){this.removeEventListener(e,t);const r=e.$proxies||(e.$proxies={}),o={attach:Hs,detach:Vs,resize:Gs}[t]||Xs;r[t]=o(e,t,n)}removeEventListener(e,t){const n=e.$proxies||(e.$proxies={}),r=n[t];if(!r)return;({attach:Ys,detach:Ys,resize:Ys}[t]||zs)(e,t,r),n[t]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,t,n,r){return Zi(e,t,n,r)}isAttached(e){const t=Wi(e);return!(!t||!t.isConnected)}}class Ks{constructor(){this._init=[]}notify(e,t,n,r){"beforeInit"===t&&(this._init=this._createDescriptors(e,!0),this._notify(this._init,e,"install"));const o=r?this._descriptors(e).filter(r):this._descriptors(e),i=this._notify(o,e,t,n);return"afterDestroy"===t&&(this._notify(o,e,"stop"),this._notify(this._init,e,"uninstall")),i}_notify(e,t,n,r){r=r||{};for(const o of e){const e=o.plugin;if(!1===sr(e[n],[t,r,o.options],e)&&r.cancelable)return!1}return!0}invalidate(){er(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(e){if(this._cache)return this._cache;const t=this._cache=this._createDescriptors(e);return this._notifyStateChanges(e),t}_createDescriptors(e,t){const n=e&&e.config,r=ir(n.options&&n.options.plugins,{}),o=function(e){const t={},n=[],r=Object.keys(ls.plugins.items);for(let e=0;e<r.length;e++)n.push(ls.getPlugin(r[e]));const o=e.plugins||[];for(let e=0;e<o.length;e++){const r=o[e];-1===n.indexOf(r)&&(n.push(r),t[r.id]=!0)}return{plugins:n,localIds:t}}(n);return!1!==r||t?function(e,{plugins:t,localIds:n},r,o){const i=[],a=e.getContext();for(const s of t){const t=s.id,l=Zs(r[t],o);null!==l&&i.push({plugin:s,options:Qs(e.config,{plugin:s,local:n[t]},l,a)})}return i}(e,o,r,t):[]}_notifyStateChanges(e){const t=this._oldCache||[],n=this._cache,r=(e,t)=>e.filter(e=>!t.some(t=>e.plugin.id===t.plugin.id));this._notify(r(t,n),e,"stop"),this._notify(r(n,t),e,"start")}}function Zs(e,t){return t||!1!==e?!0===e?{}:e:null}function Qs(e,{plugin:t,local:n},r,o){const i=e.pluginScopeKeys(t),a=e.getOptionScopes(r,i);return n&&t.defaults&&a.push(t.defaults),e.createResolver(a,o,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function Js(e,t){const n=Ko.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||n.indexAxis||"x"}function el(e,t){return"x"===e||"y"===e?e:t.axis||("top"===(n=t.position)||"bottom"===n?"x":"left"===n||"right"===n?"y":void 0)||e.charAt(0).toLowerCase();var n}function tl(e){const t=e.options||(e.options={});t.plugins=ir(t.plugins,{}),t.scales=function(e,t){const n=Go[e.type]||{scales:{}},r=t.scales||{},o=Js(e.type,t),i=Object.create(null),a=Object.create(null);return Object.keys(r).forEach(e=>{const t=r[e];if(!nr(t))return console.error(`Invalid scale configuration for scale: ${e}`);if(t._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${e}`);const s=el(e,t),l=function(e,t){return e===t?"_index_":"_value_"}(s,o),c=n.scales||{};i[s]=i[s]||e,a[e]=fr(Object.create(null),[{axis:s},t,c[s],c[l]])}),e.data.datasets.forEach(n=>{const o=n.type||e.type,s=n.indexAxis||Js(o,t),l=(Go[o]||{}).scales||{};Object.keys(l).forEach(e=>{const t=function(e,t){let n=e;return"_index_"===e?n=t:"_value_"===e&&(n="x"===t?"y":"x"),n}(e,s),o=n[t+"AxisID"]||i[t]||t;a[o]=a[o]||Object.create(null),fr(a[o],[{axis:t},r[o],l[e]])})}),Object.keys(a).forEach(e=>{const t=a[e];fr(t,[Ko.scales[t.type],Ko.scale])}),a}(e,t)}function nl(e){return(e=e||{}).datasets=e.datasets||[],e.labels=e.labels||[],e}const rl=new Map,ol=new Set;function il(e,t){let n=rl.get(e);return n||(n=t(),rl.set(e,n),ol.add(n)),n}const al=(e,t,n)=>{const r=vr(t,n);void 0!==r&&e.add(r)};class sl{constructor(e){this._config=function(e){return(e=e||{}).data=nl(e.data),tl(e),e}(e),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(e){this._config.type=e}get data(){return this._config.data}set data(e){this._config.data=nl(e)}get options(){return this._config.options}set options(e){this._config.options=e}get plugins(){return this._config.plugins}update(){const e=this._config;this.clearCache(),tl(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return il(e,()=>[[`datasets.${e}`,""]])}datasetAnimationScopeKeys(e,t){return il(`${e}.transition.${t}`,()=>[[`datasets.${e}.transitions.${t}`,`transitions.${t}`],[`datasets.${e}`,""]])}datasetElementScopeKeys(e,t){return il(`${e}-${t}`,()=>[[`datasets.${e}.elements.${t}`,`datasets.${e}`,`elements.${t}`,""]])}pluginScopeKeys(e){const t=e.id;return il(`${this.type}-plugin-${t}`,()=>[[`plugins.${t}`,...e.additionalOptionScopes||[]]])}_cachedScopes(e,t){const n=this._scopeCache;let r=n.get(e);return r&&!t||(r=new Map,n.set(e,r)),r}getOptionScopes(e,t,n){const{options:r,type:o}=this,i=this._cachedScopes(e,n),a=i.get(t);if(a)return a;const s=new Set;t.forEach(t=>{e&&(s.add(e),t.forEach(t=>al(s,e,t))),t.forEach(e=>al(s,r,e)),t.forEach(e=>al(s,Go[o]||{},e)),t.forEach(e=>al(s,Ko,e)),t.forEach(e=>al(s,Yo,e))});const l=Array.from(s);return 0===l.length&&l.push(Object.create(null)),ol.has(t)&&i.set(t,l),l}chartOptionScopes(){const{options:e,type:t}=this;return[e,Go[t]||{},Ko.datasets[t]||{},{type:t},Ko,Yo]}resolveNamedOptions(e,t,n,r=[""]){const o={$shared:!0},{resolver:i,subPrefixes:a}=ll(this._resolverCache,e,r);let s=i;if(function(e,t){const{isScriptable:n,isIndexable:r}=Ei(e);for(const o of t){const t=n(o),i=r(o),a=(i||t)&&e[o];if(t&&(xr(a)||cl(a))||i&&tr(a))return!0}return!1}(i,t)){o.$shared=!1;s=Si(i,n=xr(n)?n():n,this.createResolver(e,n,a))}for(const e of t)o[e]=s[e];return o}createResolver(e,t,n=[""],r){const{resolver:o}=ll(this._resolverCache,e,n);return nr(t)?Si(o,t,void 0,r):o}}function ll(e,t,n){let r=e.get(t);r||(r=new Map,e.set(t,r));const o=n.join();let i=r.get(o);if(!i){i={resolver:_i(t,n),subPrefixes:n.filter(e=>!e.toLowerCase().includes("hover"))},r.set(o,i)}return i}const cl=e=>nr(e)&&Object.getOwnPropertyNames(e).reduce((t,n)=>t||xr(e[n]),!1);const ul=["top","bottom","left","right","chartArea"];function dl(e,t){return"top"===e||"bottom"===e||-1===ul.indexOf(e)&&"x"===t}function pl(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}function hl(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),sr(n&&n.onComplete,[e],t)}function fl(e){const t=e.chart,n=t.options.animation;sr(n&&n.onProgress,[e],t)}function ml(e){return $i()&&"string"==typeof e?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const gl={},vl=e=>{const t=ml(e);return Object.values(gl).filter(e=>e.canvas===t).pop()};function bl(e,t,n){const r=Object.keys(e);for(const o of r){const r=+o;if(r>=t){const i=e[o];delete e[o],(n>0||r>t)&&(e[r+n]=i)}}}class yl{constructor(e,t){const n=this.config=new sl(t),r=ml(e),o=vl(r);if(o)throw new Error("Canvas is already in use. Chart with ID '"+o.id+"' must be destroyed before the canvas with ID '"+o.canvas.id+"' can be reused.");const i=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||function(e){return!$i()||"undefined"!=typeof OffscreenCanvas&&e instanceof OffscreenCanvas?Ds:qs}(r)),this.platform.updateConfig(n);const a=this.platform.acquireContext(r,i.aspectRatio),s=a&&a.canvas,l=s&&s.height,c=s&&s.width;this.id=Jn(),this.ctx=a,this.canvas=s,this.width=c,this.height=l,this._options=i,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new Ks,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=function(e,t){let n;return function(...r){return t?(clearTimeout(n),n=setTimeout(e,t,r)):e.apply(this,r),t}}(e=>this.update(e),i.resizeDelay||0),this._dataChanges=[],gl[this.id]=this,a&&s?(ga.listen(this,"complete",hl),ga.listen(this,"progress",fl),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){const{options:{aspectRatio:e,maintainAspectRatio:t},width:n,height:r,_aspectRatio:o}=this;return er(e)?t&&o?o:r?n/r:null:e}get data(){return this.config.data}set data(e){this.config.data=e}get options(){return this._options}set options(e){this.config.options=e}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Qi(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return ei(this.canvas,this.ctx),this}stop(){return ga.stop(this),this}resize(e,t){ga.running(this)?this._resizeBeforeDraw={width:e,height:t}:this._resize(e,t)}_resize(e,t){const n=this.options,r=this.canvas,o=n.maintainAspectRatio&&this.aspectRatio,i=this.platform.getMaximumSize(r,e,t,o),a=n.devicePixelRatio||this.platform.getDevicePixelRatio(),s=this.width?"resize":"attach";this.width=i.width,this.height=i.height,this._aspectRatio=this.aspectRatio,Qi(this,a,!0)&&(this.notifyPlugins("resize",{size:i}),sr(n.onResize,[this,i],this),this.attached&&this._doResize(s)&&this.render())}ensureScalesHaveIDs(){lr(this.options.scales||{},(e,t)=>{e.id=t})}buildOrUpdateScales(){const e=this.options,t=e.scales,n=this.scales,r=Object.keys(n).reduce((e,t)=>(e[t]=!1,e),{});let o=[];t&&(o=o.concat(Object.keys(t).map(e=>{const n=t[e],r=el(e,n),o="r"===r,i="x"===r;return{options:n,dposition:o?"chartArea":i?"bottom":"left",dtype:o?"radialLinear":i?"category":"linear"}}))),lr(o,t=>{const o=t.options,i=o.id,a=el(i,o),s=ir(o.type,t.dtype);void 0!==o.position&&dl(o.position,a)===dl(t.dposition)||(o.position=t.dposition),r[i]=!0;let l=null;if(i in n&&n[i].type===s)l=n[i];else{l=new(ls.getScale(s))({id:i,type:s,ctx:this.ctx,chart:this}),n[l.id]=l}l.init(o,e)}),lr(r,(e,t)=>{e||delete n[t]}),lr(n,e=>{Rs.configure(this,e,e.options),Rs.addBox(this,e)})}_updateMetasets(){const e=this._metasets,t=this.data.datasets.length,n=e.length;if(e.sort((e,t)=>e.index-t.index),n>t){for(let e=t;e<n;++e)this._destroyDatasetMeta(e);e.splice(t,n-t)}this._sortedMetasets=e.slice(0).sort(pl("order","index"))}_removeUnreferencedMetasets(){const{_metasets:e,data:{datasets:t}}=this;e.length>t.length&&delete this._stacks,e.forEach((e,n)=>{0===t.filter(t=>t===e._dataset).length&&this._destroyDatasetMeta(n)})}buildOrUpdateControllers(){const e=[],t=this.data.datasets;let n,r;for(this._removeUnreferencedMetasets(),n=0,r=t.length;n<r;n++){const r=t[n];let o=this.getDatasetMeta(n);const i=r.type||this.config.type;if(o.type&&o.type!==i&&(this._destroyDatasetMeta(n),o=this.getDatasetMeta(n)),o.type=i,o.indexAxis=r.indexAxis||Js(i,this.options),o.order=r.order||0,o.index=n,o.label=""+r.label,o.visible=this.isDatasetVisible(n),o.controller)o.controller.updateIndex(n),o.controller.linkScales();else{const t=ls.getController(i),{datasetElementType:r,dataElementType:a}=Ko.datasets[i];Object.assign(t.prototype,{dataElementType:ls.getElement(a),datasetElementType:r&&ls.getElement(r)}),o.controller=new t(this,n),e.push(o.controller)}}return this._updateMetasets(),e}_resetElements(){lr(this.data.datasets,(e,t)=>{this.getDatasetMeta(t).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(e){const t=this.config;t.update();const n=this._options=t.createResolver(t.chartOptionScopes(),this.getContext()),r=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0}))return;const o=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let i=0;for(let e=0,t=this.data.datasets.length;e<t;e++){const{controller:t}=this.getDatasetMeta(e),n=!r&&-1===o.indexOf(t);t.buildOrUpdateElements(n),i=Math.max(+t.getMaxOverflow(),i)}i=this._minPadding=n.layout.autoPadding?i:0,this._updateLayout(i),r||lr(o,e=>{e.reset()}),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(pl("z","_idx"));const{_active:a,_lastEvent:s}=this;s?this._eventHandler(s,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){lr(this.scales,e=>{Rs.removeBox(this,e)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const e=this.options,t=new Set(Object.keys(this._listeners)),n=new Set(e.events);wr(t,n)&&!!this._responsiveListeners===e.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:e}=this,t=this._getUniformDataChanges()||[];for(const{method:n,start:r,count:o}of t){bl(e,r,"_removeElements"===n?-o:o)}}_getUniformDataChanges(){const e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];const t=this.data.datasets.length,n=t=>new Set(e.filter(e=>e[0]===t).map((e,t)=>t+","+e.splice(1).join(","))),r=n(0);for(let e=1;e<t;e++)if(!wr(r,n(e)))return;return Array.from(r).map(e=>e.split(",")).map(e=>({method:e[1],start:+e[2],count:+e[3]}))}_updateLayout(e){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;Rs.update(this,this.width,this.height,e);const t=this.chartArea,n=t.width<=0||t.height<=0;this._layers=[],lr(this.boxes,e=>{n&&"chartArea"===e.position||(e.configure&&e.configure(),this._layers.push(...e._layers()))},this),this._layers.forEach((e,t)=>{e._idx=t}),this.notifyPlugins("afterLayout")}_updateDatasets(e){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})){for(let e=0,t=this.data.datasets.length;e<t;++e)this.getDatasetMeta(e).controller.configure();for(let t=0,n=this.data.datasets.length;t<n;++t)this._updateDataset(t,xr(e)?e({datasetIndex:t}):e);this.notifyPlugins("afterDatasetsUpdate",{mode:e})}}_updateDataset(e,t){const n=this.getDatasetMeta(e),r={meta:n,index:e,mode:t,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",r)&&(n.controller._update(t),r.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",r))}render(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(ga.has(this)?this.attached&&!ga.running(this)&&ga.start(this):(this.draw(),hl({chart:this})))}draw(){let e;if(this._resizeBeforeDraw){const{width:e,height:t}=this._resizeBeforeDraw;this._resize(e,t),this._resizeBeforeDraw=null}if(this.clear(),this.width<=0||this.height<=0)return;if(!1===this.notifyPlugins("beforeDraw",{cancelable:!0}))return;const t=this._layers;for(e=0;e<t.length&&t[e].z<=0;++e)t[e].draw(this.chartArea);for(this._drawDatasets();e<t.length;++e)t[e].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(e){const t=this._sortedMetasets,n=[];let r,o;for(r=0,o=t.length;r<o;++r){const o=t[r];e&&!o.visible||n.push(o)}return n}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(!1===this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0}))return;const e=this.getSortedVisibleDatasetMetas();for(let t=e.length-1;t>=0;--t)this._drawDataset(e[t]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(e){const t=this.ctx,n=e._clip,r=!n.disabled,o=this.chartArea,i={meta:e,index:e.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",i)&&(r&&oi(t,{left:!1===n.left?0:o.left-n.left,right:!1===n.right?this.width:o.right+n.right,top:!1===n.top?0:o.top-n.top,bottom:!1===n.bottom?this.height:o.bottom+n.bottom}),e.controller.draw(),r&&ii(t),i.cancelable=!1,this.notifyPlugins("afterDatasetDraw",i))}isPointInArea(e){return ri(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,t,n,r){const o=ys.modes[t];return"function"==typeof o?o(this,e,n,r):[]}getDatasetMeta(e){const t=this.data.datasets[e],n=this._metasets;let r=n.filter(e=>e&&e._dataset===t).pop();return r||(r={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:t&&t.order||0,index:e,_dataset:t,_parsed:[],_sorted:!1},n.push(r)),r}getContext(){return this.$context||(this.$context=wi(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){const t=this.data.datasets[e];if(!t)return!1;const n=this.getDatasetMeta(e);return"boolean"==typeof n.hidden?!n.hidden:!t.hidden}setDatasetVisibility(e,t){this.getDatasetMeta(e).hidden=!t}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,t,n){const r=n?"show":"hide",o=this.getDatasetMeta(e),i=o.controller._resolveAnimations(void 0,r);yr(t)?(o.data[t].hidden=!n,this.update()):(this.setDatasetVisibility(e,n),i.update(o,{visible:n}),this.update(t=>t.datasetIndex===e?r:void 0))}hide(e,t){this._updateVisibility(e,t,!1)}show(e,t){this._updateVisibility(e,t,!0)}_destroyDatasetMeta(e){const t=this._metasets[e];t&&t.controller&&t.controller._destroy(),delete this._metasets[e]}_stop(){let e,t;for(this.stop(),ga.remove(this),e=0,t=this.data.datasets.length;e<t;++e)this._destroyDatasetMeta(e)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:e,ctx:t}=this;this._stop(),this.config.clearCache(),e&&(this.unbindEvents(),ei(e,t),this.platform.releaseContext(t),this.canvas=null,this.ctx=null),this.notifyPlugins("destroy"),delete gl[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...e){return this.canvas.toDataURL(...e)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const e=this._listeners,t=this.platform,n=(n,r)=>{t.addEventListener(this,n,r),e[n]=r},r=(e,t,n)=>{e.offsetX=t,e.offsetY=n,this._eventHandler(e)};lr(this.options.events,e=>n(e,r))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const e=this._responsiveListeners,t=this.platform,n=(n,r)=>{t.addEventListener(this,n,r),e[n]=r},r=(n,r)=>{e[n]&&(t.removeEventListener(this,n,r),delete e[n])},o=(e,t)=>{this.canvas&&this.resize(e,t)};let i;const a=()=>{r("attach",a),this.attached=!0,this.resize(),n("resize",o),n("detach",i)};i=()=>{this.attached=!1,r("resize",o),this._stop(),this._resize(0,0),n("attach",a)},t.isAttached(this.canvas)?a():i()}unbindEvents(){lr(this._listeners,(e,t)=>{this.platform.removeEventListener(this,t,e)}),this._listeners={},lr(this._responsiveListeners,(e,t)=>{this.platform.removeEventListener(this,t,e)}),this._responsiveListeners=void 0}updateHoverStyle(e,t,n){const r=n?"set":"remove";let o,i,a,s;for("dataset"===t&&(o=this.getDatasetMeta(e[0].datasetIndex),o.controller["_"+r+"DatasetHoverStyle"]()),a=0,s=e.length;a<s;++a){i=e[a];const t=i&&this.getDatasetMeta(i.datasetIndex).controller;t&&t[r+"HoverStyle"](i.element,i.datasetIndex,i.index)}}getActiveElements(){return this._active||[]}setActiveElements(e){const t=this._active||[],n=e.map(({datasetIndex:e,index:t})=>{const n=this.getDatasetMeta(e);if(!n)throw new Error("No dataset found at index "+e);return{datasetIndex:e,element:n.data[t],index:t}});!cr(n,t)&&(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,t))}notifyPlugins(e,t,n){return this._plugins.notify(this,e,t,n)}_updateHoverStyles(e,t,n){const r=this.options.hover,o=(e,t)=>e.filter(e=>!t.some(t=>e.datasetIndex===t.datasetIndex&&e.index===t.index)),i=o(t,e),a=n?e:o(e,t);i.length&&this.updateHoverStyle(i,r.mode,!1),a.length&&r.mode&&this.updateHoverStyle(a,r.mode,!0)}_eventHandler(e,t){const n={event:e,replay:t,cancelable:!0,inChartArea:this.isPointInArea(e)},r=t=>(t.options.events||this.options.events).includes(e.native.type);if(!1===this.notifyPlugins("beforeEvent",n,r))return;const o=this._handleEvent(e,t,n.inChartArea);return n.cancelable=!1,this.notifyPlugins("afterEvent",n,r),(o||n.changed)&&this.render(),this}_handleEvent(e,t,n){const{_active:r=[],options:o}=this,i=t,a=this._getActiveElements(e,r,n,i),s=function(e){return"mouseup"===e.type||"click"===e.type||"contextmenu"===e.type}(e),l=function(e,t,n,r){return n&&"mouseout"!==e.type?r?t:e:null}(e,this._lastEvent,n,s);n&&(this._lastEvent=null,sr(o.onHover,[e,a,this],this),s&&sr(o.onClick,[e,a,this],this));const c=!cr(a,r);return(c||t)&&(this._active=a,this._updateHoverStyles(a,r,t)),this._lastEvent=l,c}_getActiveElements(e,t,n,r){if("mouseout"===e.type)return[];if(!n)return t;const o=this.options.hover;return this.getElementsAtEventForMode(e,o.mode,o,r)}}const xl=()=>lr(yl.instances,e=>e._plugins.invalidate()),wl=!0;function _l(e,t,n){const{startAngle:r,pixelMargin:o,x:i,y:a,outerRadius:s,innerRadius:l}=t;let c=o/s;e.beginPath(),e.arc(i,a,s,r-c,n+c),l>o?(c=o/l,e.arc(i,a,l,n+c,r-c,!0)):e.arc(i,a,o,n+Cr,r-Cr),e.closePath(),e.clip()}function Sl(e,t,n,r){const o=mi(e.options.borderRadius,["outerStart","outerEnd","innerStart","innerEnd"]);const i=(n-t)/2,a=Math.min(i,r*t/2),s=e=>{const t=(n-Math.min(i,e))*r/2;return Wr(e,0,Math.min(i,t))};return{outerStart:s(o.outerStart),outerEnd:s(o.outerEnd),innerStart:Wr(o.innerStart,0,a),innerEnd:Wr(o.innerEnd,0,a)}}function El(e,t,n,r){return{x:n+e*Math.cos(t),y:r+e*Math.sin(t)}}function kl(e,t,n,r,o,i){const{x:a,y:s,startAngle:l,pixelMargin:c,innerRadius:u}=t,d=Math.max(t.outerRadius+r+n-c,0),p=u>0?u+r+n+c:0;let h=0;const f=o-l;if(r){const e=((u>0?u-r:0)+(d>0?d-r:0))/2;h=(f-(0!==e?f*e/(e+r):f))/2}const m=(f-Math.max(.001,f*d-n/_r)/d)/2,g=l+m+h,v=o-m-h,{outerStart:b,outerEnd:y,innerStart:x,innerEnd:w}=Sl(t,p,d,v-g),_=d-b,S=d-y,E=g+b/_,k=v-y/S,O=p+x,C=p+w,M=g+x/O,T=v-w/C;if(e.beginPath(),i){if(e.arc(a,s,d,E,k),y>0){const t=El(S,k,a,s);e.arc(t.x,t.y,y,k,v+Cr)}const t=El(C,v,a,s);if(e.lineTo(t.x,t.y),w>0){const t=El(C,T,a,s);e.arc(t.x,t.y,w,v+Cr,T+Math.PI)}if(e.arc(a,s,p,v-w/p,g+x/p,!0),x>0){const t=El(O,M,a,s);e.arc(t.x,t.y,x,M+Math.PI,g-Cr)}const n=El(_,g,a,s);if(e.lineTo(n.x,n.y),b>0){const t=El(_,E,a,s);e.arc(t.x,t.y,b,g-Cr,E)}}else{e.moveTo(a,s);const t=Math.cos(E)*d+a,n=Math.sin(E)*d+s;e.lineTo(t,n);const r=Math.cos(k)*d+a,o=Math.sin(k)*d+s;e.lineTo(r,o)}e.closePath()}function Ol(e,t,n,r,o,i){const{options:a}=t,{borderWidth:s,borderJoinStyle:l}=a,c="inner"===a.borderAlign;s&&(c?(e.lineWidth=2*s,e.lineJoin=l||"round"):(e.lineWidth=s,e.lineJoin=l||"bevel"),t.fullCircles&&function(e,t,n){const{x:r,y:o,startAngle:i,pixelMargin:a,fullCircles:s}=t,l=Math.max(t.outerRadius-a,0),c=t.innerRadius+a;let u;for(n&&_l(e,t,i+Sr),e.beginPath(),e.arc(r,o,c,i+Sr,i,!0),u=0;u<s;++u)e.stroke();for(e.beginPath(),e.arc(r,o,l,i,i+Sr),u=0;u<s;++u)e.stroke()}(e,t,c),c&&_l(e,t,o),kl(e,t,n,r,o,i),e.stroke())}Object.defineProperties(yl,{defaults:{enumerable:wl,value:Ko},instances:{enumerable:wl,value:gl},overrides:{enumerable:wl,value:Go},registry:{enumerable:wl,value:ls},version:{enumerable:wl,value:"3.9.1"},getChart:{enumerable:wl,value:vl},register:{enumerable:wl,value:(...e)=>{ls.add(...e),xl()}},unregister:{enumerable:wl,value:(...e)=>{ls.remove(...e),xl()}}});class Cl extends qa{constructor(e){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,e&&Object.assign(this,e)}inRange(e,t,n){const r=this.getProps(["x","y"],n),{angle:o,distance:i}=zr(r,{x:e,y:t}),{startAngle:a,endAngle:s,innerRadius:l,outerRadius:c,circumference:u}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],n),d=this.options.spacing/2,p=ir(u,s-a)>=Sr||$r(o,a,s),h=Ur(i,l+d,c+d);return p&&h}getCenterPoint(e){const{x:t,y:n,startAngle:r,endAngle:o,innerRadius:i,outerRadius:a}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius","circumference"],e),{offset:s,spacing:l}=this.options,c=(r+o)/2,u=(i+a+l+s)/2;return{x:t+Math.cos(c)*u,y:n+Math.sin(c)*u}}tooltipPosition(e){return this.getCenterPoint(e)}draw(e){const{options:t,circumference:n}=this,r=(t.offset||0)/2,o=(t.spacing||0)/2,i=t.circular;if(this.pixelMargin="inner"===t.borderAlign?.33:0,this.fullCircles=n>Sr?Math.floor(n/Sr):0,0===n||this.innerRadius<0||this.outerRadius<0)return;e.save();let a=0;if(r){a=r/2;const t=(this.startAngle+this.endAngle)/2;e.translate(Math.cos(t)*a,Math.sin(t)*a),this.circumference>=_r&&(a=r)}e.fillStyle=t.backgroundColor,e.strokeStyle=t.borderColor;const s=function(e,t,n,r,o){const{fullCircles:i,startAngle:a,circumference:s}=t;let l=t.endAngle;if(i){kl(e,t,n,r,a+Sr,o);for(let t=0;t<i;++t)e.fill();isNaN(s)||(l=a+s%Sr,s%Sr===0&&(l+=Sr))}return kl(e,t,n,r,l,o),e.fill(),l}(e,this,a,o,i);Ol(e,this,a,o,s,i),e.restore()}}function Ml(e,t,n=t){e.lineCap=ir(n.borderCapStyle,t.borderCapStyle),e.setLineDash(ir(n.borderDash,t.borderDash)),e.lineDashOffset=ir(n.borderDashOffset,t.borderDashOffset),e.lineJoin=ir(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=ir(n.borderWidth,t.borderWidth),e.strokeStyle=ir(n.borderColor,t.borderColor)}function Tl(e,t,n){e.lineTo(n.x,n.y)}function Al(e,t,n={}){const r=e.length,{start:o=0,end:i=r-1}=n,{start:a,end:s}=t,l=Math.max(o,a),c=Math.min(i,s),u=o<a&&i<a||o>s&&i>s;return{count:r,start:l,loop:t.loop,ilen:c<l&&!u?r+c-l:c-l}}function Pl(e,t,n,r){const{points:o,options:i}=t,{count:a,start:s,loop:l,ilen:c}=Al(o,n,r),u=function(e){return e.stepped?ai:e.tension||"monotone"===e.cubicInterpolationMode?si:Tl}(i);let d,p,h,{move:f=!0,reverse:m}=r||{};for(d=0;d<=c;++d)p=o[(s+(m?c-d:d))%a],p.skip||(f?(e.moveTo(p.x,p.y),f=!1):u(e,h,p,m,i.stepped),h=p);return l&&(p=o[(s+(m?c:0))%a],u(e,h,p,m,i.stepped)),!!l}function Rl(e,t,n,r){const o=t.points,{count:i,start:a,ilen:s}=Al(o,n,r),{move:l=!0,reverse:c}=r||{};let u,d,p,h,f,m,g=0,v=0;const b=e=>(a+(c?s-e:e))%i,y=()=>{h!==f&&(e.lineTo(g,f),e.lineTo(g,h),e.lineTo(g,m))};for(l&&(d=o[b(0)],e.moveTo(d.x,d.y)),u=0;u<=s;++u){if(d=o[b(u)],d.skip)continue;const t=d.x,n=d.y,r=0|t;r===p?(n<h?h=n:n>f&&(f=n),g=(v*g+t)/++v):(y(),e.lineTo(t,n),p=r,v=0,h=f=n),m=n}y()}function Nl(e){const t=e.options,n=t.borderDash&&t.borderDash.length;return!(e._decimated||e._loop||t.tension||"monotone"===t.cubicInterpolationMode||t.stepped||n)?Rl:Pl}Cl.id="arc",Cl.defaults={borderAlign:"center",borderColor:"#fff",borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0},Cl.defaultRoutes={backgroundColor:"backgroundColor"};const Dl="function"==typeof Path2D;function Il(e,t,n,r){Dl&&!t.options.segment?function(e,t,n,r){let o=t._path;o||(o=t._path=new Path2D,t.path(o,n,r)&&o.closePath()),Ml(e,t.options),e.stroke(o)}(e,t,n,r):function(e,t,n,r){const{segments:o,options:i}=t,a=Nl(t);for(const s of o)Ml(e,i,s.style),e.beginPath(),a(e,t,s,{start:n,end:n+r-1})&&e.closePath(),e.stroke()}(e,t,n,r)}class Fl extends qa{constructor(e){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,e&&Object.assign(this,e)}updateControlPoints(e,t){const n=this.options;if((n.tension||"monotone"===n.cubicInterpolationMode)&&!n.stepped&&!this._pointsUpdated){const r=n.spanGaps?this._loop:this._fullLoop;Vi(this._points,n,e,r,t),this._pointsUpdated=!0}}set points(e){this._points=e,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=function(e,t){const n=e.points,r=e.options.spanGaps,o=n.length;if(!o)return[];const i=!!e._loop,{start:a,end:s}=function(e,t,n,r){let o=0,i=t-1;if(n&&!r)for(;o<t&&!e[o].skip;)o++;for(;o<t&&e[o].skip;)o++;for(o%=t,n&&(i+=o);i>o&&e[i%t].skip;)i--;return i%=t,{start:o,end:i}}(n,o,i,r);return ha(e,!0===r?[{start:a,end:s,loop:i}]:function(e,t,n,r){const o=e.length,i=[];let a,s=t,l=e[t];for(a=t+1;a<=n;++a){const n=e[a%o];n.skip||n.stop?l.skip||(r=!1,i.push({start:t%o,end:(a-1)%o,loop:r}),t=s=n.stop?a:null):(s=a,l.skip&&(t=a)),l=n}return null!==s&&i.push({start:t%o,end:s%o,loop:r}),i}(n,a,s<a?s+o:s,!!e._fullLoop&&0===a&&s===o-1),n,t)}(this,this.options.segment))}first(){const e=this.segments,t=this.points;return e.length&&t[e[0].start]}last(){const e=this.segments,t=this.points,n=e.length;return n&&t[e[n-1].end]}interpolate(e,t){const n=this.options,r=e[t],o=this.points,i=pa(this,{property:t,start:r,end:r});if(!i.length)return;const a=[],s=function(e){return e.stepped?na:e.tension||"monotone"===e.cubicInterpolationMode?ra:ta}(n);let l,c;for(l=0,c=i.length;l<c;++l){const{start:c,end:u}=i[l],d=o[c],p=o[u];if(d===p){a.push(d);continue}const h=s(d,p,Math.abs((r-d[t])/(p[t]-d[t])),n.stepped);h[t]=e[t],a.push(h)}return 1===a.length?a[0]:a}pathSegment(e,t,n){return Nl(this)(e,this,t,n)}path(e,t,n){const r=this.segments,o=Nl(this);let i=this._loop;t=t||0,n=n||this.points.length-t;for(const a of r)i&=o(e,this,a,{start:t,end:t+n-1});return!!i}draw(e,t,n,r){const o=this.options||{};(this.points||[]).length&&o.borderWidth&&(e.save(),Il(e,this,n,r),e.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}function Ll(e,t,n,r){const o=e.options,{[n]:i}=e.getProps([n],r);return Math.abs(t-i)<o.radius+o.hitRadius}Fl.id="line",Fl.defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0},Fl.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"},Fl.descriptors={_scriptable:!0,_indexable:e=>"borderDash"!==e&&"fill"!==e};class jl extends qa{constructor(e){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,e&&Object.assign(this,e)}inRange(e,t,n){const r=this.options,{x:o,y:i}=this.getProps(["x","y"],n);return Math.pow(e-o,2)+Math.pow(t-i,2)<Math.pow(r.hitRadius+r.radius,2)}inXRange(e,t){return Ll(this,e,"x",t)}inYRange(e,t){return Ll(this,e,"y",t)}getCenterPoint(e){const{x:t,y:n}=this.getProps(["x","y"],e);return{x:t,y:n}}size(e){let t=(e=e||this.options||{}).radius||0;t=Math.max(t,t&&e.hoverRadius||0);return 2*(t+(t&&e.borderWidth||0))}draw(e,t){const n=this.options;this.skip||n.radius<.1||!ri(this,t,this.size(n)/2)||(e.strokeStyle=n.borderColor,e.lineWidth=n.borderWidth,e.fillStyle=n.backgroundColor,ti(e,n,this.x,this.y))}getRange(){const e=this.options||{};return e.radius+e.hitRadius}}function zl(e,t){const{x:n,y:r,base:o,width:i,height:a}=e.getProps(["x","y","base","width","height"],t);let s,l,c,u,d;return e.horizontal?(d=a/2,s=Math.min(n,o),l=Math.max(n,o),c=r-d,u=r+d):(d=i/2,s=n-d,l=n+d,c=Math.min(r,o),u=Math.max(r,o)),{left:s,top:c,right:l,bottom:u}}function Bl(e,t,n,r){return e?0:Wr(t,n,r)}function Hl(e){const t=zl(e),n=t.right-t.left,r=t.bottom-t.top,o=function(e,t,n){const r=e.options.borderWidth,o=e.borderSkipped,i=gi(r);return{t:Bl(o.top,i.top,0,n),r:Bl(o.right,i.right,0,t),b:Bl(o.bottom,i.bottom,0,n),l:Bl(o.left,i.left,0,t)}}(e,n/2,r/2),i=function(e,t,n){const{enableBorderRadius:r}=e.getProps(["enableBorderRadius"]),o=e.options.borderRadius,i=vi(o),a=Math.min(t,n),s=e.borderSkipped,l=r||nr(o);return{topLeft:Bl(!l||s.top||s.left,i.topLeft,0,a),topRight:Bl(!l||s.top||s.right,i.topRight,0,a),bottomLeft:Bl(!l||s.bottom||s.left,i.bottomLeft,0,a),bottomRight:Bl(!l||s.bottom||s.right,i.bottomRight,0,a)}}(e,n/2,r/2);return{outer:{x:t.left,y:t.top,w:n,h:r,radius:i},inner:{x:t.left+o.l,y:t.top+o.t,w:n-o.l-o.r,h:r-o.t-o.b,radius:{topLeft:Math.max(0,i.topLeft-Math.max(o.t,o.l)),topRight:Math.max(0,i.topRight-Math.max(o.t,o.r)),bottomLeft:Math.max(0,i.bottomLeft-Math.max(o.b,o.l)),bottomRight:Math.max(0,i.bottomRight-Math.max(o.b,o.r))}}}}function Vl(e,t,n,r){const o=null===t,i=null===n,a=e&&!(o&&i)&&zl(e,r);return a&&(o||Ur(t,a.left,a.right))&&(i||Ur(n,a.top,a.bottom))}function $l(e,t){e.rect(t.x,t.y,t.w,t.h)}function Wl(e,t,n={}){const r=e.x!==n.x?-t:0,o=e.y!==n.y?-t:0,i=(e.x+e.w!==n.x+n.w?t:0)-r,a=(e.y+e.h!==n.y+n.h?t:0)-o;return{x:e.x+r,y:e.y+o,w:e.w+i,h:e.h+a,radius:e.radius}}jl.id="point",jl.defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0},jl.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};class Ul extends qa{constructor(e){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,e&&Object.assign(this,e)}draw(e){const{inflateAmount:t,options:{borderColor:n,backgroundColor:r}}=this,{inner:o,outer:i}=Hl(this),a=(s=i.radius).topLeft||s.topRight||s.bottomLeft||s.bottomRight?ui:$l;var s;e.save(),i.w===o.w&&i.h===o.h||(e.beginPath(),a(e,Wl(i,t,o)),e.clip(),a(e,Wl(o,-t,i)),e.fillStyle=n,e.fill("evenodd")),e.beginPath(),a(e,Wl(o,t)),e.fillStyle=r,e.fill(),e.restore()}inRange(e,t,n){return Vl(this,e,t,n)}inXRange(e,t){return Vl(this,e,null,t)}inYRange(e,t){return Vl(this,null,e,t)}getCenterPoint(e){const{x:t,y:n,base:r,horizontal:o}=this.getProps(["x","y","base","horizontal"],e);return{x:o?(t+r)/2:t,y:o?n:(n+r)/2}}getRange(e){return"x"===e?this.width/2:this.height/2}}function Gl(e,t,n,r){if(r)return;let o=t[e],i=n[e];return"angle"===e&&(o=Vr(o),i=Vr(i)),{property:e,start:o,end:i}}function Yl(e,t,n){for(;t>e;t--){const e=n[t];if(!isNaN(e.x)&&!isNaN(e.y))break}return t}function Xl(e,t,n,r){return e&&t?r(e[n],t[n]):e?e[n]:t?t[n]:0}function ql(e,t){let n=[],r=!1;return tr(e)?(r=!0,n=e):n=function(e,t){const{x:n=null,y:r=null}=e||{},o=t.points,i=[];return t.segments.forEach(({start:e,end:t})=>{t=Yl(e,t,o);const a=o[e],s=o[t];null!==r?(i.push({x:a.x,y:r}),i.push({x:s.x,y:r})):null!==n&&(i.push({x:n,y:a.y}),i.push({x:n,y:s.y}))}),i}(e,t),n.length?new Fl({points:n,options:{tension:0},_loop:r,_fullLoop:r}):null}function Kl(e){return e&&!1!==e.fill}function Zl(e,t,n){let r=e[t].fill;const o=[t];let i;if(!n)return r;for(;!1!==r&&-1===o.indexOf(r);){if(!rr(r))return r;if(i=e[r],!i)return!1;if(i.visible)return r;o.push(r),r=i.fill}return!1}function Ql(e,t,n){const r=function(e){const t=e.options,n=t.fill;let r=ir(n&&n.target,n);void 0===r&&(r=!!t.backgroundColor);if(!1===r||null===r)return!1;if(!0===r)return"origin";return r}(e);if(nr(r))return!isNaN(r.value)&&r;let o=parseFloat(r);return rr(o)&&Math.floor(o)===o?function(e,t,n,r){"-"!==e&&"+"!==e||(n=t+n);if(n===t||n<0||n>=r)return!1;return n}(r[0],t,o,n):["origin","start","end","stack","shape"].indexOf(r)>=0&&r}function Jl(e,t,n){const r=[];for(let o=0;o<n.length;o++){const i=n[o],{first:a,last:s,point:l}=ec(i,t,"x");if(!(!l||a&&s))if(a)r.unshift(l);else if(e.push(l),!s)break}e.push(...r)}function ec(e,t,n){const r=e.interpolate(t,n);if(!r)return{};const o=r[n],i=e.segments,a=e.points;let s=!1,l=!1;for(let e=0;e<i.length;e++){const t=i[e],r=a[t.start][n],c=a[t.end][n];if(Ur(o,r,c)){s=o===r,l=o===c;break}}return{first:s,last:l,point:r}}Ul.id="bar",Ul.defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0},Ul.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};class tc{constructor(e){this.x=e.x,this.y=e.y,this.radius=e.radius}pathSegment(e,t,n){const{x:r,y:o,radius:i}=this;return t=t||{start:0,end:Sr},e.arc(r,o,i,t.end,t.start,!0),!n.bounds}interpolate(e){const{x:t,y:n,radius:r}=this,o=e.angle;return{x:t+Math.cos(o)*r,y:n+Math.sin(o)*r,angle:o}}}function nc(e){const{chart:t,fill:n,line:r}=e;if(rr(n))return function(e,t){const n=e.getDatasetMeta(t),r=n&&e.isDatasetVisible(t);return r?n.dataset:null}(t,n);if("stack"===n)return function(e){const{scale:t,index:n,line:r}=e,o=[],i=r.segments,a=r.points,s=function(e,t){const n=[],r=e.getMatchingVisibleMetas("line");for(let e=0;e<r.length;e++){const o=r[e];if(o.index===t)break;o.hidden||n.unshift(o.dataset)}return n}(t,n);s.push(ql({x:null,y:t.bottom},r));for(let e=0;e<i.length;e++){const t=i[e];for(let e=t.start;e<=t.end;e++)Jl(o,a[e],s)}return new Fl({points:o,options:{}})}(e);if("shape"===n)return!0;const o=function(e){const t=e.scale||{};if(t.getPointPositionForValue)return function(e){const{scale:t,fill:n}=e,r=t.options,o=t.getLabels().length,i=r.reverse?t.max:t.min,a=function(e,t,n){let r;return r="start"===e?n:"end"===e?t.options.reverse?t.min:t.max:nr(e)?e.value:t.getBaseValue(),r}(n,t,i),s=[];if(r.grid.circular){const e=t.getPointPositionForValue(0,i);return new tc({x:e.x,y:e.y,radius:t.getDistanceFromCenterForValue(a)})}for(let e=0;e<o;++e)s.push(t.getPointPositionForValue(e,a));return s}(e);return function(e){const{scale:t={},fill:n}=e,r=function(e,t){let n=null;return"start"===e?n=t.bottom:"end"===e?n=t.top:nr(e)?n=t.getPixelForValue(e.value):t.getBasePixel&&(n=t.getBasePixel()),n}(n,t);if(rr(r)){const e=t.isHorizontal();return{x:e?r:null,y:e?null:r}}return null}(e)}(e);return o instanceof tc?o:ql(o,r)}function rc(e,t,n){const r=nc(t),{line:o,scale:i,axis:a}=t,s=o.options,l=s.fill,c=s.backgroundColor,{above:u=c,below:d=c}=l||{};r&&o.points.length&&(oi(e,n),function(e,t){const{line:n,target:r,above:o,below:i,area:a,scale:s}=t,l=n._loop?"angle":t.axis;e.save(),"x"===l&&i!==o&&(oc(e,r,a.top),ic(e,{line:n,target:r,color:o,scale:s,property:l}),e.restore(),e.save(),oc(e,r,a.bottom));ic(e,{line:n,target:r,color:i,scale:s,property:l}),e.restore()}(e,{line:o,target:r,above:u,below:d,area:n,scale:i,axis:a}),ii(e))}function oc(e,t,n){const{segments:r,points:o}=t;let i=!0,a=!1;e.beginPath();for(const s of r){const{start:r,end:l}=s,c=o[r],u=o[Yl(r,l,o)];i?(e.moveTo(c.x,c.y),i=!1):(e.lineTo(c.x,n),e.lineTo(c.x,c.y)),a=!!t.pathSegment(e,s,{move:a}),a?e.closePath():e.lineTo(u.x,n)}e.lineTo(t.first().x,n),e.closePath(),e.clip()}function ic(e,t){const{line:n,target:r,property:o,color:i,scale:a}=t,s=function(e,t,n){const r=e.segments,o=e.points,i=t.points,a=[];for(const e of r){let{start:r,end:s}=e;s=Yl(r,s,o);const l=Gl(n,o[r],o[s],e.loop);if(!t.segments){a.push({source:e,target:l,start:o[r],end:o[s]});continue}const c=pa(t,l);for(const t of c){const r=Gl(n,i[t.start],i[t.end],t.loop),s=da(e,o,r);for(const e of s)a.push({source:e,target:t,start:{[n]:Xl(l,r,"start",Math.max)},end:{[n]:Xl(l,r,"end",Math.min)}})}}return a}(n,r,o);for(const{source:t,target:l,start:c,end:u}of s){const{style:{backgroundColor:s=i}={}}=t,d=!0!==r;e.save(),e.fillStyle=s,ac(e,a,d&&Gl(o,c,u)),e.beginPath();const p=!!n.pathSegment(e,t);let h;if(d){p?e.closePath():sc(e,r,u,o);const t=!!r.pathSegment(e,l,{move:p,reverse:!0});h=p&&t,h||sc(e,r,c,o)}e.closePath(),e.fill(h?"evenodd":"nonzero"),e.restore()}}function ac(e,t,n){const{top:r,bottom:o}=t.chart.chartArea,{property:i,start:a,end:s}=n||{};"x"===i&&(e.beginPath(),e.rect(a,r,s-a,o-r),e.clip())}function sc(e,t,n,r){const o=t.interpolate(n,r);o&&e.lineTo(o.x,o.y)}var lc={id:"filler",afterDatasetsUpdate(e,t,n){const r=(e.data.datasets||[]).length,o=[];let i,a,s,l;for(a=0;a<r;++a)i=e.getDatasetMeta(a),s=i.dataset,l=null,s&&s.options&&s instanceof Fl&&(l={visible:e.isDatasetVisible(a),index:a,fill:Ql(s,a,r),chart:e,axis:i.controller.options.indexAxis,scale:i.vScale,line:s}),i.$filler=l,o.push(l);for(a=0;a<r;++a)l=o[a],l&&!1!==l.fill&&(l.fill=Zl(o,a,n.propagate))},beforeDraw(e,t,n){const r="beforeDraw"===n.drawTime,o=e.getSortedVisibleDatasetMetas(),i=e.chartArea;for(let t=o.length-1;t>=0;--t){const n=o[t].$filler;n&&(n.line.updateControlPoints(i,n.axis),r&&n.fill&&rc(e.ctx,n,i))}},beforeDatasetsDraw(e,t,n){if("beforeDatasetsDraw"!==n.drawTime)return;const r=e.getSortedVisibleDatasetMetas();for(let t=r.length-1;t>=0;--t){const n=r[t].$filler;Kl(n)&&rc(e.ctx,n,e.chartArea)}},beforeDatasetDraw(e,t,n){const r=t.meta.$filler;Kl(r)&&"beforeDatasetDraw"===n.drawTime&&rc(e.ctx,r,e.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const cc=(e,t)=>{let{boxHeight:n=t,boxWidth:r=t}=e;return e.usePointStyle&&(n=Math.min(n,t),r=e.pointStyleWidth||Math.min(r,t)),{boxWidth:r,boxHeight:n,itemHeight:Math.max(t,n)}};class uc extends qa{constructor(e){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,t,n){this.maxWidth=e,this.maxHeight=t,this._margins=n,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const e=this.options.labels||{};let t=sr(e.generateLabels,[this.chart],this)||[];e.filter&&(t=t.filter(t=>e.filter(t,this.chart.data))),e.sort&&(t=t.sort((t,n)=>e.sort(t,n,this.chart.data))),this.options.reverse&&t.reverse(),this.legendItems=t}fit(){const{options:e,ctx:t}=this;if(!e.display)return void(this.width=this.height=0);const n=e.labels,r=yi(n.font),o=r.size,i=this._computeTitleHeight(),{boxWidth:a,itemHeight:s}=cc(n,o);let l,c;t.font=r.string,this.isHorizontal()?(l=this.maxWidth,c=this._fitRows(i,o,a,s)+10):(c=this.maxHeight,l=this._fitCols(i,o,a,s)+10),this.width=Math.min(l,e.maxWidth||this.maxWidth),this.height=Math.min(c,e.maxHeight||this.maxHeight)}_fitRows(e,t,n,r){const{ctx:o,maxWidth:i,options:{labels:{padding:a}}}=this,s=this.legendHitBoxes=[],l=this.lineWidths=[0],c=r+a;let u=e;o.textAlign="left",o.textBaseline="middle";let d=-1,p=-c;return this.legendItems.forEach((e,h)=>{const f=n+t/2+o.measureText(e.text).width;(0===h||l[l.length-1]+f+2*a>i)&&(u+=c,l[l.length-(h>0?0:1)]=0,p+=c,d++),s[h]={left:0,top:p,row:d,width:f,height:r},l[l.length-1]+=f+a}),u}_fitCols(e,t,n,r){const{ctx:o,maxHeight:i,options:{labels:{padding:a}}}=this,s=this.legendHitBoxes=[],l=this.columnSizes=[],c=i-e;let u=a,d=0,p=0,h=0,f=0;return this.legendItems.forEach((e,i)=>{const m=n+t/2+o.measureText(e.text).width;i>0&&p+r+2*a>c&&(u+=d+a,l.push({width:d,height:p}),h+=d+a,f++,d=p=0),s[i]={left:h,top:p,col:f,width:m,height:r},d=Math.max(d,m),p+=r+a}),u+=d,l.push({width:d,height:p}),u}adjustHitBoxes(){if(!this.options.display)return;const e=this._computeTitleHeight(),{legendHitBoxes:t,options:{align:n,labels:{padding:r},rtl:o}}=this,i=aa(o,this.left,this.width);if(this.isHorizontal()){let o=0,a=to(n,this.left+r,this.right-this.lineWidths[o]);for(const s of t)o!==s.row&&(o=s.row,a=to(n,this.left+r,this.right-this.lineWidths[o])),s.top+=this.top+e+r,s.left=i.leftForLtr(i.x(a),s.width),a+=s.width+r}else{let o=0,a=to(n,this.top+e+r,this.bottom-this.columnSizes[o].height);for(const s of t)s.col!==o&&(o=s.col,a=to(n,this.top+e+r,this.bottom-this.columnSizes[o].height)),s.top=a,s.left+=this.left+r,s.left=i.leftForLtr(i.x(s.left),s.width),a+=s.height+r}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const e=this.ctx;oi(e,this),this._draw(),ii(e)}}_draw(){const{options:e,columnSizes:t,lineWidths:n,ctx:r}=this,{align:o,labels:i}=e,a=Ko.color,s=aa(e.rtl,this.left,this.width),l=yi(i.font),{color:c,padding:u}=i,d=l.size,p=d/2;let h;this.drawTitle(),r.textAlign=s.textAlign("left"),r.textBaseline="middle",r.lineWidth=.5,r.font=l.string;const{boxWidth:f,boxHeight:m,itemHeight:g}=cc(i,d),v=this.isHorizontal(),b=this._computeTitleHeight();h=v?{x:to(o,this.left+u,this.right-n[0]),y:this.top+u+b,line:0}:{x:this.left+u,y:to(o,this.top+b+u,this.bottom-t[0].height),line:0},sa(this.ctx,e.textDirection);const y=g+u;this.legendItems.forEach((x,w)=>{r.strokeStyle=x.fontColor||c,r.fillStyle=x.fontColor||c;const _=r.measureText(x.text).width,S=s.textAlign(x.textAlign||(x.textAlign=i.textAlign)),E=f+p+_;let k=h.x,O=h.y;s.setWidth(this.width),v?w>0&&k+E+u>this.right&&(O=h.y+=y,h.line++,k=h.x=to(o,this.left+u,this.right-n[h.line])):w>0&&O+y>this.bottom&&(k=h.x=k+t[h.line].width+u,h.line++,O=h.y=to(o,this.top+b+u,this.bottom-t[h.line].height));!function(e,t,n){if(isNaN(f)||f<=0||isNaN(m)||m<0)return;r.save();const o=ir(n.lineWidth,1);if(r.fillStyle=ir(n.fillStyle,a),r.lineCap=ir(n.lineCap,"butt"),r.lineDashOffset=ir(n.lineDashOffset,0),r.lineJoin=ir(n.lineJoin,"miter"),r.lineWidth=o,r.strokeStyle=ir(n.strokeStyle,a),r.setLineDash(ir(n.lineDash,[])),i.usePointStyle){const a={radius:m*Math.SQRT2/2,pointStyle:n.pointStyle,rotation:n.rotation,borderWidth:o},l=s.xPlus(e,f/2);ni(r,a,l,t+p,i.pointStyleWidth&&f)}else{const i=t+Math.max((d-m)/2,0),a=s.leftForLtr(e,f),l=vi(n.borderRadius);r.beginPath(),Object.values(l).some(e=>0!==e)?ui(r,{x:a,y:i,w:f,h:m,radius:l}):r.rect(a,i,f,m),r.fill(),0!==o&&r.stroke()}r.restore()}(s.x(k),O,x),k=((e,t,n,r)=>e===(r?"left":"right")?n:"center"===e?(t+n)/2:t)(S,k+f+p,v?k+E:this.right,e.rtl),function(e,t,n){li(r,n.text,e,t+g/2,l,{strikethrough:n.hidden,textAlign:s.textAlign(n.textAlign)})}(s.x(k),O,x),v?h.x+=E+u:h.y+=y}),la(this.ctx,e.textDirection)}drawTitle(){const e=this.options,t=e.title,n=yi(t.font),r=bi(t.padding);if(!t.display)return;const o=aa(e.rtl,this.left,this.width),i=this.ctx,a=t.position,s=n.size/2,l=r.top+s;let c,u=this.left,d=this.width;if(this.isHorizontal())d=Math.max(...this.lineWidths),c=this.top+l,u=to(e.align,u,this.right-d);else{const t=this.columnSizes.reduce((e,t)=>Math.max(e,t.height),0);c=l+to(e.align,this.top,this.bottom-t-e.labels.padding-this._computeTitleHeight())}const p=to(a,u,u+d);i.textAlign=o.textAlign(eo(a)),i.textBaseline="middle",i.strokeStyle=t.color,i.fillStyle=t.color,i.font=n.string,li(i,t.text,p,c,n)}_computeTitleHeight(){const e=this.options.title,t=yi(e.font),n=bi(e.padding);return e.display?t.lineHeight+n.height:0}_getLegendItemAt(e,t){let n,r,o;if(Ur(e,this.left,this.right)&&Ur(t,this.top,this.bottom))for(o=this.legendHitBoxes,n=0;n<o.length;++n)if(r=o[n],Ur(e,r.left,r.left+r.width)&&Ur(t,r.top,r.top+r.height))return this.legendItems[n];return null}handleEvent(e){const t=this.options;if(!function(e,t){if(("mousemove"===e||"mouseout"===e)&&(t.onHover||t.onLeave))return!0;if(t.onClick&&("click"===e||"mouseup"===e))return!0;return!1}(e.type,t))return;const n=this._getLegendItemAt(e.x,e.y);if("mousemove"===e.type||"mouseout"===e.type){const i=this._hoveredItem,a=(o=n,null!==(r=i)&&null!==o&&r.datasetIndex===o.datasetIndex&&r.index===o.index);i&&!a&&sr(t.onLeave,[e,i,this],this),this._hoveredItem=n,n&&!a&&sr(t.onHover,[e,n,this],this)}else n&&sr(t.onClick,[e,n,this],this);var r,o}}var dc={id:"legend",_element:uc,start(e,t,n){const r=e.legend=new uc({ctx:e.ctx,options:n,chart:e});Rs.configure(e,r,n),Rs.addBox(e,r)},stop(e){Rs.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const r=e.legend;Rs.configure(e,r,n),r.options=n},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,n){const r=t.datasetIndex,o=n.chart;o.isDatasetVisible(r)?(o.hide(r),t.hidden=!0):(o.show(r),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:r,textAlign:o,color:i}}=e.legend.options;return e._getSortedDatasetMetas().map(e=>{const a=e.controller.getStyle(n?0:void 0),s=bi(a.borderWidth);return{text:t[e.index].label,fillStyle:a.backgroundColor,fontColor:i,hidden:!e.visible,lineCap:a.borderCapStyle,lineDash:a.borderDash,lineDashOffset:a.borderDashOffset,lineJoin:a.borderJoinStyle,lineWidth:(s.width+s.height)/4,strokeStyle:a.borderColor,pointStyle:r||a.pointStyle,rotation:a.rotation,textAlign:o||a.textAlign,borderRadius:0,datasetIndex:e.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};const pc={average(e){if(!e.length)return!1;let t,n,r=0,o=0,i=0;for(t=0,n=e.length;t<n;++t){const n=e[t].element;if(n&&n.hasValue()){const e=n.tooltipPosition();r+=e.x,o+=e.y,++i}}return{x:r/i,y:o/i}},nearest(e,t){if(!e.length)return!1;let n,r,o,i=t.x,a=t.y,s=Number.POSITIVE_INFINITY;for(n=0,r=e.length;n<r;++n){const r=e[n].element;if(r&&r.hasValue()){const e=Br(t,r.getCenterPoint());e<s&&(s=e,o=r)}}if(o){const e=o.tooltipPosition();i=e.x,a=e.y}return{x:i,y:a}}};function hc(e,t){return t&&(tr(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function fc(e){return("string"==typeof e||e instanceof String)&&e.indexOf("\n")>-1?e.split("\n"):e}function mc(e,t){const{element:n,datasetIndex:r,index:o}=t,i=e.getDatasetMeta(r).controller,{label:a,value:s}=i.getLabelAndValue(o);return{chart:e,label:a,parsed:i.getParsed(o),raw:e.data.datasets[r].data[o],formattedValue:s,dataset:i.getDataset(),dataIndex:o,datasetIndex:r,element:n}}function gc(e,t){const n=e.chart.ctx,{body:r,footer:o,title:i}=e,{boxWidth:a,boxHeight:s}=t,l=yi(t.bodyFont),c=yi(t.titleFont),u=yi(t.footerFont),d=i.length,p=o.length,h=r.length,f=bi(t.padding);let m=f.height,g=0,v=r.reduce((e,t)=>e+t.before.length+t.lines.length+t.after.length,0);if(v+=e.beforeBody.length+e.afterBody.length,d&&(m+=d*c.lineHeight+(d-1)*t.titleSpacing+t.titleMarginBottom),v){m+=h*(t.displayColors?Math.max(s,l.lineHeight):l.lineHeight)+(v-h)*l.lineHeight+(v-1)*t.bodySpacing}p&&(m+=t.footerMarginTop+p*u.lineHeight+(p-1)*t.footerSpacing);let b=0;const y=function(e){g=Math.max(g,n.measureText(e).width+b)};return n.save(),n.font=c.string,lr(e.title,y),n.font=l.string,lr(e.beforeBody.concat(e.afterBody),y),b=t.displayColors?a+2+t.boxPadding:0,lr(r,e=>{lr(e.before,y),lr(e.lines,y),lr(e.after,y)}),b=0,n.font=u.string,lr(e.footer,y),n.restore(),g+=f.width,{width:g,height:m}}function vc(e,t,n,r){const{x:o,width:i}=n,{width:a,chartArea:{left:s,right:l}}=e;let c="center";return"center"===r?c=o<=(s+l)/2?"left":"right":o<=i/2?c="left":o>=a-i/2&&(c="right"),function(e,t,n,r){const{x:o,width:i}=r,a=n.caretSize+n.caretPadding;return"left"===e&&o+i+a>t.width||"right"===e&&o-i-a<0||void 0}(c,e,t,n)&&(c="center"),c}function bc(e,t,n){const r=n.yAlign||t.yAlign||function(e,t){const{y:n,height:r}=t;return n<r/2?"top":n>e.height-r/2?"bottom":"center"}(e,n);return{xAlign:n.xAlign||t.xAlign||vc(e,t,n,r),yAlign:r}}function yc(e,t,n,r){const{caretSize:o,caretPadding:i,cornerRadius:a}=e,{xAlign:s,yAlign:l}=n,c=o+i,{topLeft:u,topRight:d,bottomLeft:p,bottomRight:h}=vi(a);let f=function(e,t){let{x:n,width:r}=e;return"right"===t?n-=r:"center"===t&&(n-=r/2),n}(t,s);const m=function(e,t,n){let{y:r,height:o}=e;return"top"===t?r+=n:r-="bottom"===t?o+n:o/2,r}(t,l,c);return"center"===l?"left"===s?f+=c:"right"===s&&(f-=c):"left"===s?f-=Math.max(u,p)+o:"right"===s&&(f+=Math.max(d,h)+o),{x:Wr(f,0,r.width-t.width),y:Wr(m,0,r.height-t.height)}}function xc(e,t,n){const r=bi(n.padding);return"center"===t?e.x+e.width/2:"right"===t?e.x+e.width-r.right:e.x+r.left}function wc(e){return hc([],fc(e))}function _c(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}class Sc extends qa{constructor(e){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=e.chart||e._chart,this._chart=this.chart,this.options=e.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const e=this._cachedAnimations;if(e)return e;const t=this.chart,n=this.options.setContext(this.getContext()),r=n.enabled&&t.options.animation&&n.animations,o=new wa(this.chart,r);return r._cacheable&&(this._cachedAnimations=Object.freeze(o)),o}getContext(){return this.$context||(this.$context=(e=this.chart.getContext(),t=this,n=this._tooltipItems,wi(e,{tooltip:t,tooltipItems:n,type:"tooltip"})));var e,t,n}getTitle(e,t){const{callbacks:n}=t,r=n.beforeTitle.apply(this,[e]),o=n.title.apply(this,[e]),i=n.afterTitle.apply(this,[e]);let a=[];return a=hc(a,fc(r)),a=hc(a,fc(o)),a=hc(a,fc(i)),a}getBeforeBody(e,t){return wc(t.callbacks.beforeBody.apply(this,[e]))}getBody(e,t){const{callbacks:n}=t,r=[];return lr(e,e=>{const t={before:[],lines:[],after:[]},o=_c(n,e);hc(t.before,fc(o.beforeLabel.call(this,e))),hc(t.lines,o.label.call(this,e)),hc(t.after,fc(o.afterLabel.call(this,e))),r.push(t)}),r}getAfterBody(e,t){return wc(t.callbacks.afterBody.apply(this,[e]))}getFooter(e,t){const{callbacks:n}=t,r=n.beforeFooter.apply(this,[e]),o=n.footer.apply(this,[e]),i=n.afterFooter.apply(this,[e]);let a=[];return a=hc(a,fc(r)),a=hc(a,fc(o)),a=hc(a,fc(i)),a}_createItems(e){const t=this._active,n=this.chart.data,r=[],o=[],i=[];let a,s,l=[];for(a=0,s=t.length;a<s;++a)l.push(mc(this.chart,t[a]));return e.filter&&(l=l.filter((t,r,o)=>e.filter(t,r,o,n))),e.itemSort&&(l=l.sort((t,r)=>e.itemSort(t,r,n))),lr(l,t=>{const n=_c(e.callbacks,t);r.push(n.labelColor.call(this,t)),o.push(n.labelPointStyle.call(this,t)),i.push(n.labelTextColor.call(this,t))}),this.labelColors=r,this.labelPointStyles=o,this.labelTextColors=i,this.dataPoints=l,l}update(e,t){const n=this.options.setContext(this.getContext()),r=this._active;let o,i=[];if(r.length){const e=pc[n.position].call(this,r,this._eventPosition);i=this._createItems(n),this.title=this.getTitle(i,n),this.beforeBody=this.getBeforeBody(i,n),this.body=this.getBody(i,n),this.afterBody=this.getAfterBody(i,n),this.footer=this.getFooter(i,n);const t=this._size=gc(this,n),a=Object.assign({},e,t),s=bc(this.chart,n,a),l=yc(n,a,s,this.chart);this.xAlign=s.xAlign,this.yAlign=s.yAlign,o={opacity:1,x:l.x,y:l.y,width:t.width,height:t.height,caretX:e.x,caretY:e.y}}else 0!==this.opacity&&(o={opacity:0});this._tooltipItems=i,this.$context=void 0,o&&this._resolveAnimations().update(this,o),e&&n.external&&n.external.call(this,{chart:this.chart,tooltip:this,replay:t})}drawCaret(e,t,n,r){const o=this.getCaretPosition(e,n,r);t.lineTo(o.x1,o.y1),t.lineTo(o.x2,o.y2),t.lineTo(o.x3,o.y3)}getCaretPosition(e,t,n){const{xAlign:r,yAlign:o}=this,{caretSize:i,cornerRadius:a}=n,{topLeft:s,topRight:l,bottomLeft:c,bottomRight:u}=vi(a),{x:d,y:p}=e,{width:h,height:f}=t;let m,g,v,b,y,x;return"center"===o?(y=p+f/2,"left"===r?(m=d,g=m-i,b=y+i,x=y-i):(m=d+h,g=m+i,b=y-i,x=y+i),v=m):(g="left"===r?d+Math.max(s,c)+i:"right"===r?d+h-Math.max(l,u)-i:this.caretX,"top"===o?(b=p,y=b-i,m=g-i,v=g+i):(b=p+f,y=b+i,m=g+i,v=g-i),x=b),{x1:m,x2:g,x3:v,y1:b,y2:y,y3:x}}drawTitle(e,t,n){const r=this.title,o=r.length;let i,a,s;if(o){const l=aa(n.rtl,this.x,this.width);for(e.x=xc(this,n.titleAlign,n),t.textAlign=l.textAlign(n.titleAlign),t.textBaseline="middle",i=yi(n.titleFont),a=n.titleSpacing,t.fillStyle=n.titleColor,t.font=i.string,s=0;s<o;++s)t.fillText(r[s],l.x(e.x),e.y+i.lineHeight/2),e.y+=i.lineHeight+a,s+1===o&&(e.y+=n.titleMarginBottom-a)}}_drawColorBox(e,t,n,r,o){const i=this.labelColors[n],a=this.labelPointStyles[n],{boxHeight:s,boxWidth:l,boxPadding:c}=o,u=yi(o.bodyFont),d=xc(this,"left",o),p=r.x(d),h=s<u.lineHeight?(u.lineHeight-s)/2:0,f=t.y+h;if(o.usePointStyle){const t={radius:Math.min(l,s)/2,pointStyle:a.pointStyle,rotation:a.rotation,borderWidth:1},n=r.leftForLtr(p,l)+l/2,c=f+s/2;e.strokeStyle=o.multiKeyBackground,e.fillStyle=o.multiKeyBackground,ti(e,t,n,c),e.strokeStyle=i.borderColor,e.fillStyle=i.backgroundColor,ti(e,t,n,c)}else{e.lineWidth=nr(i.borderWidth)?Math.max(...Object.values(i.borderWidth)):i.borderWidth||1,e.strokeStyle=i.borderColor,e.setLineDash(i.borderDash||[]),e.lineDashOffset=i.borderDashOffset||0;const t=r.leftForLtr(p,l-c),n=r.leftForLtr(r.xPlus(p,1),l-c-2),a=vi(i.borderRadius);Object.values(a).some(e=>0!==e)?(e.beginPath(),e.fillStyle=o.multiKeyBackground,ui(e,{x:t,y:f,w:l,h:s,radius:a}),e.fill(),e.stroke(),e.fillStyle=i.backgroundColor,e.beginPath(),ui(e,{x:n,y:f+1,w:l-2,h:s-2,radius:a}),e.fill()):(e.fillStyle=o.multiKeyBackground,e.fillRect(t,f,l,s),e.strokeRect(t,f,l,s),e.fillStyle=i.backgroundColor,e.fillRect(n,f+1,l-2,s-2))}e.fillStyle=this.labelTextColors[n]}drawBody(e,t,n){const{body:r}=this,{bodySpacing:o,bodyAlign:i,displayColors:a,boxHeight:s,boxWidth:l,boxPadding:c}=n,u=yi(n.bodyFont);let d=u.lineHeight,p=0;const h=aa(n.rtl,this.x,this.width),f=function(n){t.fillText(n,h.x(e.x+p),e.y+d/2),e.y+=d+o},m=h.textAlign(i);let g,v,b,y,x,w,_;for(t.textAlign=i,t.textBaseline="middle",t.font=u.string,e.x=xc(this,m,n),t.fillStyle=n.bodyColor,lr(this.beforeBody,f),p=a&&"right"!==m?"center"===i?l/2+c:l+2+c:0,y=0,w=r.length;y<w;++y){for(g=r[y],v=this.labelTextColors[y],t.fillStyle=v,lr(g.before,f),b=g.lines,a&&b.length&&(this._drawColorBox(t,e,y,h,n),d=Math.max(u.lineHeight,s)),x=0,_=b.length;x<_;++x)f(b[x]),d=u.lineHeight;lr(g.after,f)}p=0,d=u.lineHeight,lr(this.afterBody,f),e.y-=o}drawFooter(e,t,n){const r=this.footer,o=r.length;let i,a;if(o){const s=aa(n.rtl,this.x,this.width);for(e.x=xc(this,n.footerAlign,n),e.y+=n.footerMarginTop,t.textAlign=s.textAlign(n.footerAlign),t.textBaseline="middle",i=yi(n.footerFont),t.fillStyle=n.footerColor,t.font=i.string,a=0;a<o;++a)t.fillText(r[a],s.x(e.x),e.y+i.lineHeight/2),e.y+=i.lineHeight+n.footerSpacing}}drawBackground(e,t,n,r){const{xAlign:o,yAlign:i}=this,{x:a,y:s}=e,{width:l,height:c}=n,{topLeft:u,topRight:d,bottomLeft:p,bottomRight:h}=vi(r.cornerRadius);t.fillStyle=r.backgroundColor,t.strokeStyle=r.borderColor,t.lineWidth=r.borderWidth,t.beginPath(),t.moveTo(a+u,s),"top"===i&&this.drawCaret(e,t,n,r),t.lineTo(a+l-d,s),t.quadraticCurveTo(a+l,s,a+l,s+d),"center"===i&&"right"===o&&this.drawCaret(e,t,n,r),t.lineTo(a+l,s+c-h),t.quadraticCurveTo(a+l,s+c,a+l-h,s+c),"bottom"===i&&this.drawCaret(e,t,n,r),t.lineTo(a+p,s+c),t.quadraticCurveTo(a,s+c,a,s+c-p),"center"===i&&"left"===o&&this.drawCaret(e,t,n,r),t.lineTo(a,s+u),t.quadraticCurveTo(a,s,a+u,s),t.closePath(),t.fill(),r.borderWidth>0&&t.stroke()}_updateAnimationTarget(e){const t=this.chart,n=this.$animations,r=n&&n.x,o=n&&n.y;if(r||o){const n=pc[e.position].call(this,this._active,this._eventPosition);if(!n)return;const i=this._size=gc(this,e),a=Object.assign({},n,this._size),s=bc(t,e,a),l=yc(e,a,s,t);r._to===l.x&&o._to===l.y||(this.xAlign=s.xAlign,this.yAlign=s.yAlign,this.width=i.width,this.height=i.height,this.caretX=n.x,this.caretY=n.y,this._resolveAnimations().update(this,l))}}_willRender(){return!!this.opacity}draw(e){const t=this.options.setContext(this.getContext());let n=this.opacity;if(!n)return;this._updateAnimationTarget(t);const r={width:this.width,height:this.height},o={x:this.x,y:this.y};n=Math.abs(n)<.001?0:n;const i=bi(t.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;t.enabled&&a&&(e.save(),e.globalAlpha=n,this.drawBackground(o,e,r,t),sa(e,t.textDirection),o.y+=i.top,this.drawTitle(o,e,t),this.drawBody(o,e,t),this.drawFooter(o,e,t),la(e,t.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,t){const n=this._active,r=e.map(({datasetIndex:e,index:t})=>{const n=this.chart.getDatasetMeta(e);if(!n)throw new Error("Cannot find a dataset at index "+e);return{datasetIndex:e,element:n.data[t],index:t}}),o=!cr(n,r),i=this._positionChanged(r,t);(o||i)&&(this._active=r,this._eventPosition=t,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,t,n=!0){if(t&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const r=this.options,o=this._active||[],i=this._getActiveElements(e,o,t,n),a=this._positionChanged(i,e),s=t||!cr(i,o)||a;return s&&(this._active=i,(r.enabled||r.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,t))),s}_getActiveElements(e,t,n,r){const o=this.options;if("mouseout"===e.type)return[];if(!r)return t;const i=this.chart.getElementsAtEventForMode(e,o.mode,o,n);return o.reverse&&i.reverse(),i}_positionChanged(e,t){const{caretX:n,caretY:r,options:o}=this,i=pc[o.position].call(this,e,t);return!1!==i&&(n!==i.x||r!==i.y)}}Sc.positioners=pc;var Ec={id:"tooltip",_element:Sc,positioners:pc,afterInit(e,t,n){n&&(e.tooltip=new Sc({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const n={tooltip:t};if(!1===e.notifyPlugins("beforeTooltipDraw",n))return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n)}},afterEvent(e,t){if(e.tooltip){const n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:{beforeTitle:Qn,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,r=n?n.length:0;if(this&&this.options&&"dataset"===this.options.mode)return t.dataset.label||"";if(t.label)return t.label;if(r>0&&t.dataIndex<r)return n[t.dataIndex]}return""},afterTitle:Qn,beforeBody:Qn,beforeLabel:Qn,label(e){if(this&&this.options&&"dataset"===this.options.mode)return e.label+": "+e.formattedValue||e.formattedValue;let t=e.dataset.label||"";t&&(t+=": ");const n=e.formattedValue;return er(n)||(t+=n),t},labelColor(e){const t=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:t.borderColor,backgroundColor:t.backgroundColor,borderWidth:t.borderWidth,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(e){const t=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:t.pointStyle,rotation:t.rotation}},afterLabel:Qn,afterBody:Qn,beforeFooter:Qn,footer:Qn,afterFooter:Qn}},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>"filter"!==e&&"itemSort"!==e&&"external"!==e,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};function kc(e,t,n,r){const o=e.indexOf(t);if(-1===o)return((e,t,n,r)=>("string"==typeof t?(n=e.push(t)-1,r.unshift({index:n,label:t})):isNaN(t)&&(n=null),n))(e,t,n,r);return o!==e.lastIndexOf(t)?n:o}class Oc extends as{constructor(e){super(e),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(e){const t=this._addedLabels;if(t.length){const e=this.getLabels();for(const{index:n,label:r}of t)e[n]===r&&e.splice(n,1);this._addedLabels=[]}super.init(e)}parse(e,t){if(er(e))return null;const n=this.getLabels();return((e,t)=>null===e?null:Wr(Math.round(e),0,t))(t=isFinite(t)&&n[t]===e?t:kc(n,e,ir(t,e),this._addedLabels),n.length-1)}determineDataLimits(){const{minDefined:e,maxDefined:t}=this.getUserBounds();let{min:n,max:r}=this.getMinMax(!0);"ticks"===this.options.bounds&&(e||(n=0),t||(r=this.getLabels().length-1)),this.min=n,this.max=r}buildTicks(){const e=this.min,t=this.max,n=this.options.offset,r=[];let o=this.getLabels();o=0===e&&t===o.length-1?o:o.slice(e,t+1),this._valueRange=Math.max(o.length-(n?0:1),1),this._startValue=this.min-(n?.5:0);for(let n=e;n<=t;n++)r.push({value:n});return r}getLabelForValue(e){const t=this.getLabels();return e>=0&&e<t.length?t[e]:e}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(e){return"number"!=typeof e&&(e=this.parse(e)),null===e?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getPixelForTick(e){const t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e].value)}getValueForPixel(e){return Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange)}getBasePixel(){return this.bottom}}function Cc(e,t){const n=[],{bounds:r,step:o,min:i,max:a,precision:s,count:l,maxTicks:c,maxDigits:u,includeBounds:d}=e,p=o||1,h=c-1,{min:f,max:m}=t,g=!er(i),v=!er(a),b=!er(l),y=(m-f)/(u+1);let x,w,_,S,E=Rr((m-f)/h/p)*p;if(E<1e-14&&!g&&!v)return[{value:f},{value:m}];S=Math.ceil(m/E)-Math.floor(f/E),S>h&&(E=Rr(S*E/h/p)*p),er(s)||(x=Math.pow(10,s),E=Math.ceil(E*x)/x),"ticks"===r?(w=Math.floor(f/E)*E,_=Math.ceil(m/E)*E):(w=f,_=m),g&&v&&o&&function(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}((a-i)/o,E/1e3)?(S=Math.round(Math.min((a-i)/E,c)),E=(a-i)/S,w=i,_=a):b?(w=g?i:w,_=v?a:_,S=l-1,E=(_-w)/S):(S=(_-w)/E,S=Dr(S,Math.round(S),E/1e3)?Math.round(S):Math.ceil(S));const k=Math.max(jr(E),jr(w));x=Math.pow(10,er(s)?k:s),w=Math.round(w*x)/x,_=Math.round(_*x)/x;let O=0;for(g&&(d&&w!==i?(n.push({value:i}),w<i&&O++,Dr(Math.round((w+O*E)*x)/x,i,Mc(i,y,e))&&O++):w<i&&O++);O<S;++O)n.push({value:Math.round((w+O*E)*x)/x});return v&&d&&_!==a?n.length&&Dr(n[n.length-1].value,a,Mc(a,y,e))?n[n.length-1].value=a:n.push({value:a}):v&&_!==a||n.push({value:_}),n}function Mc(e,t,{horizontal:n,minRotation:r}){const o=Fr(r),i=(n?Math.sin(o):Math.cos(o))||.001,a=.75*t*(""+e).length;return Math.min(t/i,a)}Oc.id="category",Oc.defaults={ticks:{callback:Oc.prototype.getLabelForValue}};class Tc extends as{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(e,t){return er(e)||("number"==typeof e||e instanceof Number)&&!isFinite(+e)?null:+e}handleTickRangeOptions(){const{beginAtZero:e}=this.options,{minDefined:t,maxDefined:n}=this.getUserBounds();let{min:r,max:o}=this;const i=e=>r=t?r:e,a=e=>o=n?o:e;if(e){const e=Pr(r),t=Pr(o);e<0&&t<0?a(0):e>0&&t>0&&i(0)}if(r===o){let t=1;(o>=Number.MAX_SAFE_INTEGER||r<=Number.MIN_SAFE_INTEGER)&&(t=Math.abs(.05*o)),a(o+t),e||i(r-t)}this.min=r,this.max=o}getTickLimit(){const e=this.options.ticks;let t,{maxTicksLimit:n,stepSize:r}=e;return r?(t=Math.ceil(this.max/r)-Math.floor(this.min/r)+1,t>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${r} would result generating up to ${t} ticks. Limiting to 1000.`),t=1e3)):(t=this.computeTickLimit(),n=n||11),n&&(t=Math.min(n,t)),t}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const e=this.options,t=e.ticks;let n=this.getTickLimit();n=Math.max(2,n);const r=Cc({maxTicks:n,bounds:e.bounds,min:e.min,max:e.max,precision:t.precision,step:t.stepSize,count:t.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:t.minRotation||0,includeBounds:!1!==t.includeBounds},this._range||this);return"ticks"===e.bounds&&Ir(r,this,"value"),e.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}configure(){const e=this.ticks;let t=this.min,n=this.max;if(super.configure(),this.options.offset&&e.length){const r=(n-t)/Math.max(e.length-1,1)/2;t-=r,n+=r}this._startValue=t,this._endValue=n,this._valueRange=n-t}getLabelForValue(e){return ia(e,this.chart.options.locale,this.options.ticks.format)}}class Ac extends Tc{determineDataLimits(){const{min:e,max:t}=this.getMinMax(!0);this.min=rr(e)?e:0,this.max=rr(t)?t:1,this.handleTickRangeOptions()}computeTickLimit(){const e=this.isHorizontal(),t=e?this.width:this.height,n=Fr(this.options.ticks.minRotation),r=(e?Math.sin(n):Math.cos(n))||.001,o=this._resolveTickFontOptions(0);return Math.ceil(t/Math.min(40,o.lineHeight/r))}getPixelForValue(e){return null===e?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getValueForPixel(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange}}function Pc(e){return 1===e/Math.pow(10,Math.floor(Ar(e)))}Ac.id="linear",Ac.defaults={ticks:{callback:Za.formatters.numeric}};class Rc extends as{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(e,t){const n=Tc.prototype.parse.apply(this,[e,t]);if(0!==n)return rr(n)&&n>0?n:null;this._zero=!0}determineDataLimits(){const{min:e,max:t}=this.getMinMax(!0);this.min=rr(e)?Math.max(0,e):null,this.max=rr(t)?Math.max(0,t):null,this.options.beginAtZero&&(this._zero=!0),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:e,maxDefined:t}=this.getUserBounds();let n=this.min,r=this.max;const o=t=>n=e?n:t,i=e=>r=t?r:e,a=(e,t)=>Math.pow(10,Math.floor(Ar(e))+t);n===r&&(n<=0?(o(1),i(10)):(o(a(n,-1)),i(a(r,1)))),n<=0&&o(a(r,-1)),r<=0&&i(a(n,1)),this._zero&&this.min!==this._suggestedMin&&n===a(this.min,0)&&o(a(n,-1)),this.min=n,this.max=r}buildTicks(){const e=this.options,t=function(e,t){const n=Math.floor(Ar(t.max)),r=Math.ceil(t.max/Math.pow(10,n)),o=[];let i=or(e.min,Math.pow(10,Math.floor(Ar(t.min)))),a=Math.floor(Ar(i)),s=Math.floor(i/Math.pow(10,a)),l=a<0?Math.pow(10,Math.abs(a)):1;do{o.push({value:i,major:Pc(i)}),++s,10===s&&(s=1,++a,l=a>=0?1:l),i=Math.round(s*Math.pow(10,a)*l)/l}while(a<n||a===n&&s<r);const c=or(e.max,i);return o.push({value:c,major:Pc(i)}),o}({min:this._userMin,max:this._userMax},this);return"ticks"===e.bounds&&Ir(t,this,"value"),e.reverse?(t.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),t}getLabelForValue(e){return void 0===e?"0":ia(e,this.chart.options.locale,this.options.ticks.format)}configure(){const e=this.min;super.configure(),this._startValue=Ar(e),this._valueRange=Ar(this.max)-Ar(e)}getPixelForValue(e){return void 0!==e&&0!==e||(e=this.min),null===e||isNaN(e)?NaN:this.getPixelForDecimal(e===this.min?0:(Ar(e)-this._startValue)/this._valueRange)}getValueForPixel(e){const t=this.getDecimalForPixel(e);return Math.pow(10,this._startValue+t*this._valueRange)}}function Nc(e){const t=e.ticks;if(t.display&&e.display){const e=bi(t.backdropPadding);return ir(t.font&&t.font.size,Ko.font.size)+e.height}return 0}function Dc(e,t,n){return n=tr(n)?n:[n],{w:Qo(e,t.string,n),h:n.length*t.lineHeight}}function Ic(e,t,n,r,o){return e===r||e===o?{start:t-n/2,end:t+n/2}:e<r||e>o?{start:t-n,end:t}:{start:t,end:t+n}}function Fc(e){const t={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},n=Object.assign({},t),r=[],o=[],i=e._pointLabels.length,a=e.options.pointLabels,s=a.centerPointLabels?_r/i:0;for(let l=0;l<i;l++){const i=a.setContext(e.getPointLabelContext(l));o[l]=i.padding;const c=e.getPointPosition(l,e.drawingArea+o[l],s),u=yi(i.font),d=Dc(e.ctx,u,e._pointLabels[l]);r[l]=d;const p=Vr(e.getIndexAngle(l)+s),h=Math.round(Lr(p));Lc(n,t,p,Ic(h,c.x,d.w,0,180),Ic(h,c.y,d.h,90,270))}e.setCenterPoint(t.l-n.l,n.r-t.r,t.t-n.t,n.b-t.b),e._pointLabelItems=function(e,t,n){const r=[],o=e._pointLabels.length,i=e.options,a=Nc(i)/2,s=e.drawingArea,l=i.pointLabels.centerPointLabels?_r/o:0;for(let i=0;i<o;i++){const o=e.getPointPosition(i,s+a+n[i],l),c=Math.round(Lr(Vr(o.angle+Cr))),u=t[i],d=Bc(o.y,u.h,c),p=jc(c),h=zc(o.x,u.w,p);r.push({x:o.x,y:d,textAlign:p,left:h,top:d,right:h+u.w,bottom:d+u.h})}return r}(e,r,o)}function Lc(e,t,n,r,o){const i=Math.abs(Math.sin(n)),a=Math.abs(Math.cos(n));let s=0,l=0;r.start<t.l?(s=(t.l-r.start)/i,e.l=Math.min(e.l,t.l-s)):r.end>t.r&&(s=(r.end-t.r)/i,e.r=Math.max(e.r,t.r+s)),o.start<t.t?(l=(t.t-o.start)/a,e.t=Math.min(e.t,t.t-l)):o.end>t.b&&(l=(o.end-t.b)/a,e.b=Math.max(e.b,t.b+l))}function jc(e){return 0===e||180===e?"center":e<180?"left":"right"}function zc(e,t,n){return"right"===n?e-=t:"center"===n&&(e-=t/2),e}function Bc(e,t,n){return 90===n||270===n?e-=t/2:(n>270||n<90)&&(e-=t),e}function Hc(e,t,n,r){const{ctx:o}=e;if(n)o.arc(e.xCenter,e.yCenter,t,0,Sr);else{let n=e.getPointPosition(0,t);o.moveTo(n.x,n.y);for(let i=1;i<r;i++)n=e.getPointPosition(i,t),o.lineTo(n.x,n.y)}}Rc.id="logarithmic",Rc.defaults={ticks:{callback:Za.formatters.logarithmic,major:{enabled:!0}}};class Vc extends Tc{constructor(e){super(e),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const e=this._padding=bi(Nc(this.options)/2),t=this.width=this.maxWidth-e.width,n=this.height=this.maxHeight-e.height;this.xCenter=Math.floor(this.left+t/2+e.left),this.yCenter=Math.floor(this.top+n/2+e.top),this.drawingArea=Math.floor(Math.min(t,n)/2)}determineDataLimits(){const{min:e,max:t}=this.getMinMax(!1);this.min=rr(e)&&!isNaN(e)?e:0,this.max=rr(t)&&!isNaN(t)?t:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/Nc(this.options))}generateTickLabels(e){Tc.prototype.generateTickLabels.call(this,e),this._pointLabels=this.getLabels().map((e,t)=>{const n=sr(this.options.pointLabels.callback,[e,t],this);return n||0===n?n:""}).filter((e,t)=>this.chart.getDataVisibility(t))}fit(){const e=this.options;e.display&&e.pointLabels.display?Fc(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(e,t,n,r){this.xCenter+=Math.floor((e-t)/2),this.yCenter+=Math.floor((n-r)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(e,t,n,r))}getIndexAngle(e){return Vr(e*(Sr/(this._pointLabels.length||1))+Fr(this.options.startAngle||0))}getDistanceFromCenterForValue(e){if(er(e))return NaN;const t=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-e)*t:(e-this.min)*t}getValueForDistanceFromCenter(e){if(er(e))return NaN;const t=e/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-t:this.min+t}getPointLabelContext(e){const t=this._pointLabels||[];if(e>=0&&e<t.length){const n=t[e];return function(e,t,n){return wi(e,{label:n,index:t,type:"pointLabel"})}(this.getContext(),e,n)}}getPointPosition(e,t,n=0){const r=this.getIndexAngle(e)-Cr+n;return{x:Math.cos(r)*t+this.xCenter,y:Math.sin(r)*t+this.yCenter,angle:r}}getPointPositionForValue(e,t){return this.getPointPosition(e,this.getDistanceFromCenterForValue(t))}getBasePosition(e){return this.getPointPositionForValue(e||0,this.getBaseValue())}getPointLabelPosition(e){const{left:t,top:n,right:r,bottom:o}=this._pointLabelItems[e];return{left:t,top:n,right:r,bottom:o}}drawBackground(){const{backgroundColor:e,grid:{circular:t}}=this.options;if(e){const n=this.ctx;n.save(),n.beginPath(),Hc(this,this.getDistanceFromCenterForValue(this._endValue),t,this._pointLabels.length),n.closePath(),n.fillStyle=e,n.fill(),n.restore()}}drawGrid(){const e=this.ctx,t=this.options,{angleLines:n,grid:r}=t,o=this._pointLabels.length;let i,a,s;if(t.pointLabels.display&&function(e,t){const{ctx:n,options:{pointLabels:r}}=e;for(let o=t-1;o>=0;o--){const t=r.setContext(e.getPointLabelContext(o)),i=yi(t.font),{x:a,y:s,textAlign:l,left:c,top:u,right:d,bottom:p}=e._pointLabelItems[o],{backdropColor:h}=t;if(!er(h)){const e=vi(t.borderRadius),r=bi(t.backdropPadding);n.fillStyle=h;const o=c-r.left,i=u-r.top,a=d-c+r.width,s=p-u+r.height;Object.values(e).some(e=>0!==e)?(n.beginPath(),ui(n,{x:o,y:i,w:a,h:s,radius:e}),n.fill()):n.fillRect(o,i,a,s)}li(n,e._pointLabels[o],a,s+i.lineHeight/2,i,{color:t.color,textAlign:l,textBaseline:"middle"})}}(this,o),r.display&&this.ticks.forEach((e,t)=>{if(0!==t){a=this.getDistanceFromCenterForValue(e.value);!function(e,t,n,r){const o=e.ctx,i=t.circular,{color:a,lineWidth:s}=t;!i&&!r||!a||!s||n<0||(o.save(),o.strokeStyle=a,o.lineWidth=s,o.setLineDash(t.borderDash),o.lineDashOffset=t.borderDashOffset,o.beginPath(),Hc(e,n,i,r),o.closePath(),o.stroke(),o.restore())}(this,r.setContext(this.getContext(t-1)),a,o)}}),n.display){for(e.save(),i=o-1;i>=0;i--){const r=n.setContext(this.getPointLabelContext(i)),{color:o,lineWidth:l}=r;l&&o&&(e.lineWidth=l,e.strokeStyle=o,e.setLineDash(r.borderDash),e.lineDashOffset=r.borderDashOffset,a=this.getDistanceFromCenterForValue(t.ticks.reverse?this.min:this.max),s=this.getPointPosition(i,a),e.beginPath(),e.moveTo(this.xCenter,this.yCenter),e.lineTo(s.x,s.y),e.stroke())}e.restore()}}drawBorder(){}drawLabels(){const e=this.ctx,t=this.options,n=t.ticks;if(!n.display)return;const r=this.getIndexAngle(0);let o,i;e.save(),e.translate(this.xCenter,this.yCenter),e.rotate(r),e.textAlign="center",e.textBaseline="middle",this.ticks.forEach((r,a)=>{if(0===a&&!t.reverse)return;const s=n.setContext(this.getContext(a)),l=yi(s.font);if(o=this.getDistanceFromCenterForValue(this.ticks[a].value),s.showLabelBackdrop){e.font=l.string,i=e.measureText(r.label).width,e.fillStyle=s.backdropColor;const t=bi(s.backdropPadding);e.fillRect(-i/2-t.left,-o-l.size/2-t.top,i+t.width,l.size+t.height)}li(e,r.label,0,-o,l,{color:s.color})}),e.restore()}drawTitle(){}}Vc.id="radialLinear",Vc.defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Za.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:e=>e,padding:5,centerPointLabels:!1}},Vc.defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"},Vc.descriptors={angleLines:{_fallback:"grid"}};const $c={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},Wc=Object.keys($c);function Uc(e,t){return e-t}function Gc(e,t){if(er(t))return null;const n=e._adapter,{parser:r,round:o,isoWeekday:i}=e._parseOpts;let a=t;return"function"==typeof r&&(a=r(a)),rr(a)||(a="string"==typeof r?n.parse(a,r):n.parse(a)),null===a?null:(o&&(a="week"!==o||!Nr(i)&&!0!==i?n.startOf(a,o):n.startOf(a,"isoWeek",i)),+a)}function Yc(e,t,n,r){const o=Wc.length;for(let i=Wc.indexOf(e);i<o-1;++i){const e=$c[Wc[i]],o=e.steps?e.steps:Number.MAX_SAFE_INTEGER;if(e.common&&Math.ceil((n-t)/(o*e.size))<=r)return Wc[i]}return Wc[o-1]}function Xc(e,t,n){if(n){if(n.length){const{lo:r,hi:o}=Gr(n,t);e[n[r]>=t?n[r]:n[o]]=!0}}else e[t]=!0}function qc(e,t,n){const r=[],o={},i=t.length;let a,s;for(a=0;a<i;++a)s=t[a],o[s]=a,r.push({value:s,major:!1});return 0!==i&&n?function(e,t,n,r){const o=e._adapter,i=+o.startOf(t[0].value,r),a=t[t.length-1].value;let s,l;for(s=i;s<=a;s=+o.add(s,1,r))l=n[s],l>=0&&(t[l].major=!0);return t}(e,r,o,n):r}class Kc extends as{constructor(e){super(e),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(e,t){const n=e.time||(e.time={}),r=this._adapter=new ps._date(e.adapters.date);r.init(t),fr(n.displayFormats,r.formats()),this._parseOpts={parser:n.parser,round:n.round,isoWeekday:n.isoWeekday},super.init(e),this._normalized=t.normalized}parse(e,t){return void 0===e?null:Gc(this,e)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const e=this.options,t=this._adapter,n=e.time.unit||"day";let{min:r,max:o,minDefined:i,maxDefined:a}=this.getUserBounds();function s(e){i||isNaN(e.min)||(r=Math.min(r,e.min)),a||isNaN(e.max)||(o=Math.max(o,e.max))}i&&a||(s(this._getLabelBounds()),"ticks"===e.bounds&&"labels"===e.ticks.source||s(this.getMinMax(!1))),r=rr(r)&&!isNaN(r)?r:+t.startOf(Date.now(),n),o=rr(o)&&!isNaN(o)?o:+t.endOf(Date.now(),n)+1,this.min=Math.min(r,o-1),this.max=Math.max(r+1,o)}_getLabelBounds(){const e=this.getLabelTimestamps();let t=Number.POSITIVE_INFINITY,n=Number.NEGATIVE_INFINITY;return e.length&&(t=e[0],n=e[e.length-1]),{min:t,max:n}}buildTicks(){const e=this.options,t=e.time,n=e.ticks,r="labels"===n.source?this.getLabelTimestamps():this._generate();"ticks"===e.bounds&&r.length&&(this.min=this._userMin||r[0],this.max=this._userMax||r[r.length-1]);const o=this.min,i=function(e,t,n){let r=0,o=e.length;for(;r<o&&e[r]<t;)r++;for(;o>r&&e[o-1]>n;)o--;return r>0||o<e.length?e.slice(r,o):e}(r,o,this.max);return this._unit=t.unit||(n.autoSkip?Yc(t.minUnit,this.min,this.max,this._getLabelCapacity(o)):function(e,t,n,r,o){for(let i=Wc.length-1;i>=Wc.indexOf(n);i--){const n=Wc[i];if($c[n].common&&e._adapter.diff(o,r,n)>=t-1)return n}return Wc[n?Wc.indexOf(n):0]}(this,i.length,t.minUnit,this.min,this.max)),this._majorUnit=n.major.enabled&&"year"!==this._unit?function(e){for(let t=Wc.indexOf(e)+1,n=Wc.length;t<n;++t)if($c[Wc[t]].common)return Wc[t]}(this._unit):void 0,this.initOffsets(r),e.reverse&&i.reverse(),qc(this,i,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(e=>+e.value))}initOffsets(e){let t,n,r=0,o=0;this.options.offset&&e.length&&(t=this.getDecimalForValue(e[0]),r=1===e.length?1-t:(this.getDecimalForValue(e[1])-t)/2,n=this.getDecimalForValue(e[e.length-1]),o=1===e.length?n:(n-this.getDecimalForValue(e[e.length-2]))/2);const i=e.length<3?.5:.25;r=Wr(r,0,i),o=Wr(o,0,i),this._offsets={start:r,end:o,factor:1/(r+1+o)}}_generate(){const e=this._adapter,t=this.min,n=this.max,r=this.options,o=r.time,i=o.unit||Yc(o.minUnit,t,n,this._getLabelCapacity(t)),a=ir(o.stepSize,1),s="week"===i&&o.isoWeekday,l=Nr(s)||!0===s,c={};let u,d,p=t;if(l&&(p=+e.startOf(p,"isoWeek",s)),p=+e.startOf(p,l?"day":i),e.diff(n,t,i)>1e5*a)throw new Error(t+" and "+n+" are too far apart with stepSize of "+a+" "+i);const h="data"===r.ticks.source&&this.getDataTimestamps();for(u=p,d=0;u<n;u=+e.add(u,a,i),d++)Xc(c,u,h);return u!==n&&"ticks"!==r.bounds&&1!==d||Xc(c,u,h),Object.keys(c).sort((e,t)=>e-t).map(e=>+e)}getLabelForValue(e){const t=this._adapter,n=this.options.time;return n.tooltipFormat?t.format(e,n.tooltipFormat):t.format(e,n.displayFormats.datetime)}_tickFormatFunction(e,t,n,r){const o=this.options,i=o.time.displayFormats,a=this._unit,s=this._majorUnit,l=a&&i[a],c=s&&i[s],u=n[t],d=s&&c&&u&&u.major,p=this._adapter.format(e,r||(d?c:l)),h=o.ticks.callback;return h?sr(h,[p,t,n],this):p}generateTickLabels(e){let t,n,r;for(t=0,n=e.length;t<n;++t)r=e[t],r.label=this._tickFormatFunction(r.value,t,e)}getDecimalForValue(e){return null===e?NaN:(e-this.min)/(this.max-this.min)}getPixelForValue(e){const t=this._offsets,n=this.getDecimalForValue(e);return this.getPixelForDecimal((t.start+n)*t.factor)}getValueForPixel(e){const t=this._offsets,n=this.getDecimalForPixel(e)/t.factor-t.end;return this.min+n*(this.max-this.min)}_getLabelSize(e){const t=this.options.ticks,n=this.ctx.measureText(e).width,r=Fr(this.isHorizontal()?t.maxRotation:t.minRotation),o=Math.cos(r),i=Math.sin(r),a=this._resolveTickFontOptions(0).size;return{w:n*o+a*i,h:n*i+a*o}}_getLabelCapacity(e){const t=this.options.time,n=t.displayFormats,r=n[t.unit]||n.millisecond,o=this._tickFormatFunction(e,0,qc(this,[e],this._majorUnit),r),i=this._getLabelSize(o),a=Math.floor(this.isHorizontal()?this.width/i.w:this.height/i.h)-1;return a>0?a:1}getDataTimestamps(){let e,t,n=this._cache.data||[];if(n.length)return n;const r=this.getMatchingVisibleMetas();if(this._normalized&&r.length)return this._cache.data=r[0].controller.getAllParsedValues(this);for(e=0,t=r.length;e<t;++e)n=n.concat(r[e].controller.getAllParsedValues(this));return this._cache.data=this.normalize(n)}getLabelTimestamps(){const e=this._cache.labels||[];let t,n;if(e.length)return e;const r=this.getLabels();for(t=0,n=r.length;t<n;++t)e.push(Gc(this,r[t]));return this._cache.labels=this._normalized?e:this.normalize(e)}normalize(e){return Zr(e.sort(Uc))}}function Zc(e,t,n){let r,o,i,a,s=0,l=e.length-1;n?(t>=e[s].pos&&t<=e[l].pos&&({lo:s,hi:l}=Yr(e,"pos",t)),({pos:r,time:i}=e[s]),({pos:o,time:a}=e[l])):(t>=e[s].time&&t<=e[l].time&&({lo:s,hi:l}=Yr(e,"time",t)),({time:r,pos:i}=e[s]),({time:o,pos:a}=e[l]));const c=o-r;return c?i+(a-i)*(t-r)/c:i}Kc.id="time",Kc.defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",major:{enabled:!1}}};class Qc extends Kc{constructor(e){super(e),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const e=this._getTimestampsForTable(),t=this._table=this.buildLookupTable(e);this._minPos=Zc(t,this.min),this._tableRange=Zc(t,this.max)-this._minPos,super.initOffsets(e)}buildLookupTable(e){const{min:t,max:n}=this,r=[],o=[];let i,a,s,l,c;for(i=0,a=e.length;i<a;++i)l=e[i],l>=t&&l<=n&&r.push(l);if(r.length<2)return[{time:t,pos:0},{time:n,pos:1}];for(i=0,a=r.length;i<a;++i)c=r[i+1],s=r[i-1],l=r[i],Math.round((c+s)/2)!==l&&o.push({time:l,pos:i/(a-1)});return o}_getTimestampsForTable(){let e=this._cache.all||[];if(e.length)return e;const t=this.getDataTimestamps(),n=this.getLabelTimestamps();return e=t.length&&n.length?this.normalize(t.concat(n)):t.length?t:n,e=this._cache.all=e,e}getDecimalForValue(e){return(Zc(this._table,e)-this._minPos)/this._tableRange}getValueForPixel(e){const t=this._offsets,n=this.getDecimalForPixel(e)/t.factor-t.end;return Zc(this._table,n*this._tableRange+this._minPos,!0)}}Qc.id="timeseries",Qc.defaults=Kc.defaults;const Jc="label";function eu(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function tu(e,t){e.labels=t}function nu(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Jc;const r=[];e.datasets=t.map(t=>{const o=e.datasets.find(e=>e[n]===t[n]);return o&&t.data&&!r.includes(o)?(r.push(o),Object.assign(o,t),o):{...t}})}function ru(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Jc;const n={labels:[],datasets:[]};return tu(n,e.labels),nu(n,e.datasets,t),n}function ou(t,n){let{height:r=150,width:o=300,redraw:i=!1,datasetIdKey:a,type:s,data:c,options:u,plugins:d=[],fallbackContent:p,updateMode:h,...f}=t;const m=e.useRef(null),g=e.useRef(),v=()=>{m.current&&(g.current=new yl(m.current,{type:s,data:ru(c,a),options:u&&{...u},plugins:d}),eu(n,g.current))},b=()=>{eu(n,null),g.current&&(g.current.destroy(),g.current=null)};return e.useEffect(()=>{var e,t;!i&&g.current&&u&&(e=g.current,t=u,Object.assign(e.options,t))},[i,u]),e.useEffect(()=>{!i&&g.current&&tu(g.current.config.data,c.labels)},[i,c.labels]),e.useEffect(()=>{!i&&g.current&&c.datasets&&nu(g.current.config.data,c.datasets,a)},[i,c.datasets]),e.useEffect(()=>{g.current&&(i?(b(),setTimeout(v)):g.current.update(h))},[i,u,c.labels,c.datasets,h]),e.useEffect(()=>{g.current&&(b(),setTimeout(v))},[s]),e.useEffect(()=>(v(),()=>b()),[]),l.default.createElement("canvas",Object.assign({ref:m,role:"img",height:r,width:o},f),p)}const iu=e.forwardRef(ou);yl.register(Oc,Ac,jl,Fl,Ua,Ec,dc,lc);var au,su,lu,cu,uu,du=dt.div(au||(au=r.__makeTemplateObject(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n"],["\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n"]))),pu=dt(t.Tabs)(su||(su=r.__makeTemplateObject(["\n width: ",";\n\n & .ant-tabs-content-animated {\n transition: margin 1s ease-out;\n }\n"],["\n width: ",";\n\n & .ant-tabs-content-animated {\n transition: margin 1s ease-out;\n }\n"])),function(e){return"".concat(e.width,"px")}),hu=dt.span(lu||(lu=r.__makeTemplateObject(["\n display: flex;\n gap: 0.25rem;\n margin-top: 10px;\n"],["\n display: flex;\n gap: 0.25rem;\n margin-top: 10px;\n"]))),fu=dt.span(cu||(cu=r.__makeTemplateObject(["\n height: 10px;\n width: 10px;\n background-color: ",";\n border-radius: 50%;\n display: inline-block;\n"],["\n height: 10px;\n width: 10px;\n background-color: ",";\n border-radius: 50%;\n display: inline-block;\n"])),function(e){return e.isActive?e.activeColor:"#d3d7de"});var mu,gu={exports:{}};
22
- /*!
23
- Copyright (c) 2018 Jed Watson.
24
- Licensed under the MIT License (MIT), see
25
- http://jedwatson.github.io/classnames
26
- */var vu=(mu||(mu=1,function(e){!function(){var t={}.hasOwnProperty;function n(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=o(e,r(n)))}return e}function r(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return n.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var r="";for(var i in e)t.call(e,i)&&e[i]&&(r=o(r,i));return r}function o(e,t){return t?e?e+" "+t:e+t:e}e.exports?(n.default=n,e.exports=n):window.classNames=n}()}(gu)),gu.exports),bu=k(vu);function yu(){return yu=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},yu.apply(null,arguments)}function xu(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 wu(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _u(e,t){if(e){if("string"==typeof e)return xu(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)?xu(e,t):void 0}}function Su(e){return function(e){if(Array.isArray(e))return xu(e)}(e)||wu(e)||_u(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 Eu(e){return Eu="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},Eu(e)}function ku(e){var t=function(e,t){if("object"!=Eu(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Eu(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Eu(t)?t:t+""}function Ou(e,t,n){return(t=ku(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cu(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 Mu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cu(Object(n),!0).forEach(function(t){Ou(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cu(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Tu(e){if(Array.isArray(e))return e}function Au(){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 Pu(e,t){return Tu(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,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||_u(e,t)||Au()}function Ru(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(-1!==t.indexOf(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],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Nu(e){var t=c.useRef();t.current=e;var n=c.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 Du(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}var Iu="test"!==process.env.NODE_ENV&&Du()?c.useLayoutEffect:c.useEffect,Fu=function(e,t){var n=c.useRef(!0);Iu(function(){return e(n.current)},t),Iu(function(){return n.current=!1,function(){n.current=!0}},[])},Lu=function(e,t){Fu(function(t){if(!t)return e()},t)};function ju(e){var t=c.useRef(!1),n=Pu(c.useState(e),2),r=n[0],o=n[1];return c.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]),[r,function(e,n){n&&t.current||o(e)}]}function zu(e){return void 0!==e}function Bu(e,t){var n=t||{},r=n.defaultValue,o=n.value,i=n.onChange,a=n.postState,s=Pu(ju(function(){return zu(o)?o:zu(r)?"function"==typeof r?r():r:"function"==typeof e?e():e}),2),l=s[0],c=s[1],u=void 0!==o?o:l,d=a?a(u):u,p=Nu(i),h=Pu(ju([u]),2),f=h[0],m=h[1];return Lu(function(){var e=f[0];l!==e&&p(l,e)},[f]),Lu(function(){zu(o)||c(o)},[o]),[d,Nu(function(e,t){c(e,t),m([u],t)})]}var Hu={},Vu=[];function $u(e,t){if("production"!==process.env.NODE_ENV&&!e&&void 0!==console){var n=Vu.reduce(function(e,t){return t(null!=e?e:"","warning")},t);n&&console.error("Warning: ".concat(n))}}function Wu(e,t){if("production"!==process.env.NODE_ENV&&!e&&void 0!==console){var n=Vu.reduce(function(e,t){return t(null!=e?e:"","note")},t);n&&console.warn("Note: ".concat(n))}}function Uu(){Hu={}}function Gu(e,t,n){t||Hu[n]||(e(!1,n),Hu[n]=!0)}function Yu(e,t){Gu($u,e,t)}function Xu(e,t){Gu(Wu,e,t)}Yu.preMessage=function(e){Vu.push(e)},Yu.resetWarned=Uu,Yu.noteOnce=Xu;var qu,Ku=function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null==e?void 0:e.substr(0,4))},Zu={exports:{}},Qu={};var Ju,ed,td={};
27
- /**
28
- * @license React
29
- * react-is.development.js
30
- *
31
- * Copyright (c) Facebook, Inc. and its affiliates.
32
- *
33
- * This source code is licensed under the MIT license found in the
34
- * LICENSE file in the root directory of this source tree.
35
- */var nd=(ed||(ed=1,"production"===process.env.NODE_ENV?Zu.exports=function(){if(qu)return Qu;qu=1;var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),f=Symbol.for("react.offscreen");function m(e){if("object"==typeof e&&null!==e){var f=e.$$typeof;switch(f){case t:switch(e=e.type){case r:case i:case o:case u:case d:return e;default:switch(e=e&&e.$$typeof){case l:case s:case c:case h:case p:case a:return e;default:return f}}case n:return f}}}return e=Symbol.for("react.module.reference"),Qu.ContextConsumer=s,Qu.ContextProvider=a,Qu.Element=t,Qu.ForwardRef=c,Qu.Fragment=r,Qu.Lazy=h,Qu.Memo=p,Qu.Portal=n,Qu.Profiler=i,Qu.StrictMode=o,Qu.Suspense=u,Qu.SuspenseList=d,Qu.isAsyncMode=function(){return!1},Qu.isConcurrentMode=function(){return!1},Qu.isContextConsumer=function(e){return m(e)===s},Qu.isContextProvider=function(e){return m(e)===a},Qu.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Qu.isForwardRef=function(e){return m(e)===c},Qu.isFragment=function(e){return m(e)===r},Qu.isLazy=function(e){return m(e)===h},Qu.isMemo=function(e){return m(e)===p},Qu.isPortal=function(e){return m(e)===n},Qu.isProfiler=function(e){return m(e)===i},Qu.isStrictMode=function(e){return m(e)===o},Qu.isSuspense=function(e){return m(e)===u},Qu.isSuspenseList=function(e){return m(e)===d},Qu.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===i||t===o||t===u||t===d||t===f||"object"==typeof t&&null!==t&&(t.$$typeof===h||t.$$typeof===p||t.$$typeof===a||t.$$typeof===s||t.$$typeof===c||t.$$typeof===e||void 0!==t.getModuleId)},Qu.typeOf=m,Qu}():Zu.exports=(Ju||(Ju=1,"production"!==process.env.NODE_ENV&&function(){var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),f=Symbol.for("react.offscreen");function m(e){if("object"==typeof e&&null!==e){var f=e.$$typeof;switch(f){case t:var m=e.type;switch(m){case r:case i:case o:case u:case d:return m;default:var g=m&&m.$$typeof;switch(g){case l:case s:case c:case h:case p:case a:return g;default:return f}}case n:return f}}}e=Symbol.for("react.module.reference");var g=s,v=a,b=t,y=c,x=r,w=h,_=p,S=n,E=i,k=o,O=u,C=d,M=!1,T=!1;td.ContextConsumer=g,td.ContextProvider=v,td.Element=b,td.ForwardRef=y,td.Fragment=x,td.Lazy=w,td.Memo=_,td.Portal=S,td.Profiler=E,td.StrictMode=k,td.Suspense=O,td.SuspenseList=C,td.isAsyncMode=function(e){return M||(M=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1},td.isConcurrentMode=function(e){return T||(T=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1},td.isContextConsumer=function(e){return m(e)===s},td.isContextProvider=function(e){return m(e)===a},td.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},td.isForwardRef=function(e){return m(e)===c},td.isFragment=function(e){return m(e)===r},td.isLazy=function(e){return m(e)===h},td.isMemo=function(e){return m(e)===p},td.isPortal=function(e){return m(e)===n},td.isProfiler=function(e){return m(e)===i},td.isStrictMode=function(e){return m(e)===o},td.isSuspense=function(e){return m(e)===u},td.isSuspenseList=function(e){return m(e)===d},td.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===i||t===o||t===u||t===d||t===f||"object"==typeof t&&null!==t&&(t.$$typeof===h||t.$$typeof===p||t.$$typeof===a||t.$$typeof===s||t.$$typeof===c||t.$$typeof===e||void 0!==t.getModuleId)},td.typeOf=m}()),td)),Zu.exports);function rd(e,t,n){var r=c.useRef({});return"value"in r.current&&!n(r.current.condition,t)||(r.current.value=e(),r.current.condition=t),r.current.value}var od=Symbol.for("react.element"),id=Symbol.for("react.transitional.element"),ad=Symbol.for("react.fragment");function sd(e){return e&&"object"===Eu(e)&&(e.$$typeof===od||e.$$typeof===id)&&e.type===ad}var ld=Number(e.version.split(".")[0]),cd=function(e,t){"function"==typeof e?e(t):"object"===Eu(e)&&e&&"current"in e&&(e.current=t)},ud=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){cd(t,e)})}},dd=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return rd(function(){return ud.apply(void 0,t)},t,function(e,t){return e.length!==t.length||e.every(function(e,n){return e!==t[n]})})},pd=function(e){var t,n;if(!e)return!1;if(hd(e)&&ld>=19)return!0;var r=nd.isMemo(e)?e.type.type:e.type;return!!("function"!=typeof r||null!==(t=r.prototype)&&void 0!==t&&t.render||r.$$typeof===nd.ForwardRef)&&!!("function"!=typeof e||null!==(n=e.prototype)&&void 0!==n&&n.render||e.$$typeof===nd.ForwardRef)};function hd(t){return e.isValidElement(t)&&!sd(t)}var fd=function(e){if(e&&hd(e)){var t=e;return t.props.propertyIsEnumerable("ref")?t.props.ref:t.ref}return null},md=function(e){var t=e.className,n=e.customizeIcon,r=e.customizeIconProps,o=e.children,i=e.onMouseDown,a=e.onClick,s="function"==typeof n?n(r):n;return c.createElement("span",{className:t,onMouseDown:function(e){e.preventDefault(),null==i||i(e)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:a,"aria-hidden":!0},void 0!==s?s:c.createElement("span",{className:bu(t.split(/\s+/).map(function(e){return"".concat(e,"-icon")}))},o))},gd=c.createContext(null);function vd(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,t=c.useRef(null),n=c.useRef(null);return c.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 bd={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>=bd.F1&&t<=bd.F12)return!1;switch(t){case bd.ALT:case bd.CAPS_LOCK:case bd.CONTEXT_MENU:case bd.CTRL:case bd.DOWN:case bd.END:case bd.ESC:case bd.HOME:case bd.INSERT:case bd.LEFT:case bd.MAC_FF_META:case bd.META:case bd.NUMLOCK:case bd.NUM_CENTER:case bd.PAGE_DOWN:case bd.PAGE_UP:case bd.PAUSE:case bd.PRINT_SCREEN:case bd.RIGHT:case bd.SHIFT:case bd.UP:case bd.WIN_KEY:case bd.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=bd.ZERO&&e<=bd.NINE)return!0;if(e>=bd.NUM_ZERO&&e<=bd.NUM_MULTIPLY)return!0;if(e>=bd.A&&e<=bd.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case bd.SPACE:case bd.QUESTION_MARK:case bd.NUM_PLUS:case bd.NUM_MINUS:case bd.NUM_PERIOD:case bd.NUM_DIVISION:case bd.SEMICOLON:case bd.DASH:case bd.EQUALS:case bd.COMMA:case bd.PERIOD:case bd.SLASH:case bd.APOSTROPHE:case bd.SINGLE_QUOTE:case bd.OPEN_SQUARE_BRACKET:case bd.BACKSLASH:case bd.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};var yd="".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 xd(e,t){return 0===e.indexOf(t)}function wd(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}:Mu({},n);var r={};return Object.keys(e).forEach(function(n){(t.aria&&("role"===n||xd(n,"aria-"))||t.data&&xd(n,"data-")||t.attr&&yd.includes(n))&&(r[n]=e[n])}),r}function _d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];return l.default.Children.forEach(e,function(e){(null!=e||t.keepEmpty)&&(Array.isArray(e)?n=n.concat(_d(e)):sd(e)&&e.props?n=n.concat(_d(e.props.children,t)):n.push(e))}),n}function Sd(e){return e instanceof HTMLElement||e instanceof SVGElement}function Ed(e){var t,n=function(e){return e&&"object"===Eu(e)&&Sd(e.nativeElement)?e.nativeElement:Sd(e)?e:null}(e);return n||(e instanceof l.default.Component?null===(t=u.default.findDOMNode)||void 0===t?void 0:t.call(u.default,e):null)}var kd=c.createContext(null);var Od=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}()}(),Cd="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,Md="undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),Td="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(Md):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)};var Ad=["top","right","bottom","left","width","height","size","weight"],Pd="undefined"!=typeof MutationObserver,Rd=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&&s()}function a(){Td(i)}function s(){var e=Date.now();if(n){if(e-o<2)return;r=!0}else n=!0,r=!1,setTimeout(a,t);o=e}return s}(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(){Cd&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Pd?(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(){Cd&&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;Ad.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}(),Nd=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},Dd=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||Md},Id=Hd(0,0,0,0);function Fd(e){return parseFloat(e)||0}function Ld(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(t,n){return t+Fd(e["border-"+n+"-width"])},0)}function jd(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return Id;var r=Dd(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]=Fd(i)}return t}(r),i=o.left+o.right,a=o.top+o.bottom,s=Fd(r.width),l=Fd(r.height);if("border-box"===r.boxSizing&&(Math.round(s+i)!==t&&(s-=Ld(r,"left","right")+i),Math.round(l+a)!==n&&(l-=Ld(r,"top","bottom")+a)),!function(e){return e===Dd(e).document.documentElement}(e)){var c=Math.round(s+i)-t,u=Math.round(l+a)-n;1!==Math.abs(c)&&(s-=c),1!==Math.abs(u)&&(l-=u)}return Hd(o.left,o.top,s,l)}var zd="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof Dd(e).SVGGraphicsElement}:function(e){return e instanceof Dd(e).SVGElement&&"function"==typeof e.getBBox};function Bd(e){return Cd?zd(e)?function(e){var t=e.getBBox();return Hd(0,0,t.width,t.height)}(e):jd(e):Id}function Hd(e,t,n,r){return{x:e,y:t,width:n,height:r}}var Vd=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Hd(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=Bd(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}(),$d=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 Nd(a,{x:t,y:n,width:r,height:o,top:n,right:t+r,bottom:o+n,left:t}),a}(t);Nd(this,{target:e,contentRect:n})},Wd=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new Od,"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 Dd(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new Vd(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 Dd(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 $d(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}(),Ud="undefined"!=typeof WeakMap?new WeakMap:new Od,Gd=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=Rd.getInstance(),r=new Wd(t,n,this);Ud.set(this,r)};["observe","unobserve","disconnect"].forEach(function(e){Gd.prototype[e]=function(){var t;return(t=Ud.get(this))[e].apply(t,arguments)}});var Yd=void 0!==Md.ResizeObserver?Md.ResizeObserver:Gd,Xd=new Map;function qd(e){e.forEach(function(e){var t,n=e.target;null===(t=Xd.get(n))||void 0===t||t.forEach(function(e){return e(n)})})}var Kd=new Yd(qd);function Zd(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Qd(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,ku(r.key),r)}}function Jd(e,t,n){return t&&Qd(e.prototype,t),n&&Qd(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ep(e,t){return ep=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ep(e,t)}function tp(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&&ep(e,t)}function np(e){return np=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},np(e)}function rp(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(rp=function(){return!!e})()}function op(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ip(e){var t=rp();return function(){var n,r=np(e);if(t){var o=np(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==Eu(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return op(e)}(this,n)}}process.env.NODE_ENV,process.env.NODE_ENV;var ap=function(){tp(t,c.Component);var e=ip(t);function t(){return Zd(this,t),e.apply(this,arguments)}return Jd(t,[{key:"render",value:function(){return this.props.children}}]),t}();function sp(e,t){var n=e.children,r=e.disabled,o=c.useRef(null),i=c.useRef(null),a=c.useContext(kd),s="function"==typeof n,l=s?n(o):n,u=c.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),d=!s&&c.isValidElement(l)&&pd(l),p=d?fd(l):null,h=dd(p,o),f=function(){var e;return Ed(o.current)||(o.current&&"object"===Eu(o.current)?Ed(null===(e=o.current)||void 0===e?void 0:e.nativeElement):null)||Ed(i.current)};c.useImperativeHandle(t,function(){return f()});var m=c.useRef(e);m.current=e;var g=c.useCallback(function(e){var t=m.current,n=t.onResize,r=t.data,o=e.getBoundingClientRect(),i=o.width,s=o.height,l=e.offsetWidth,c=e.offsetHeight,d=Math.floor(i),p=Math.floor(s);if(u.current.width!==d||u.current.height!==p||u.current.offsetWidth!==l||u.current.offsetHeight!==c){var h={width:d,height:p,offsetWidth:l,offsetHeight:c};u.current=h;var f=l===Math.round(i)?i:l,g=c===Math.round(s)?s:c,v=Mu(Mu({},h),{},{offsetWidth:f,offsetHeight:g});null==a||a(v,e,r),n&&Promise.resolve().then(function(){n(v,e)})}},[]);return c.useEffect(function(){var e=f();return e&&!r&&function(e,t){Xd.has(e)||(Xd.set(e,new Set),Kd.observe(e)),Xd.get(e).add(t)}(e,g),function(){return function(e,t){Xd.has(e)&&(Xd.get(e).delete(t),Xd.get(e).size||(Kd.unobserve(e),Xd.delete(e)))}(e,g)}},[o.current,r]),c.createElement(ap,{ref:i},d?c.cloneElement(l,{ref:h}):l)}var lp=c.forwardRef(sp);"production"!==process.env.NODE_ENV&&(lp.displayName="SingleObserver");function cp(e,t){var n=e.children,r="function"==typeof n?[n]:_d(n);return"production"!==process.env.NODE_ENV&&(r.length>1?$u(!1,"Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead."):0===r.length&&$u(!1,"`children` of ResizeObserver is empty. Nothing is in observe.")),r.map(function(n,r){var o=(null==n?void 0:n.key)||"".concat("rc-observer-key","-").concat(r);return c.createElement(lp,yu({},e,{key:o,ref:0===r?t:void 0}),n)})}var up=c.forwardRef(cp);"production"!==process.env.NODE_ENV&&(up.displayName="ResizeObserver"),up.Collection=function(e){var t=e.children,n=e.onBatchResize,r=c.useRef(0),o=c.useRef([]),i=c.useContext(kd),a=c.useCallback(function(e,t,a){r.current+=1;var s=r.current;o.current.push({size:e,element:t,data:a}),Promise.resolve().then(function(){s===r.current&&(null==n||n(o.current),o.current=[])}),null==i||i(e,t,a)},[n,i]);return c.createElement(kd.Provider,{value:a},t)};var dp=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],pp=void 0;function hp(e,t){var n=e.prefixCls,r=e.invalidate,o=e.item,i=e.renderItem,a=e.responsive,s=e.responsiveDisabled,l=e.registerSize,u=e.itemKey,d=e.className,p=e.style,h=e.children,f=e.display,m=e.order,g=e.component,v=void 0===g?"div":g,b=Ru(e,dp),y=a&&!f;function x(e){l(u,e)}c.useEffect(function(){return function(){x(null)}},[]);var w,_=i&&o!==pp?i(o,{index:m}):h;r||(w={opacity:y?0:1,height:y?0:pp,overflowY:y?"hidden":pp,order:a?m:pp,pointerEvents:y?"none":pp,position:y?"absolute":pp});var S={};y&&(S["aria-hidden"]=!0);var E=c.createElement(v,yu({className:bu(!r&&n,d),style:Mu(Mu({},w),p)},S,b,{ref:t}),_);return a&&(E=c.createElement(up,{onResize:function(e){x(e.offsetWidth)},disabled:s},E)),E}var fp=c.forwardRef(hp);fp.displayName="Item";var mp=function(e){return+setTimeout(e,16)},gp=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(mp=function(e){return window.requestAnimationFrame(e)},gp=function(e){return window.cancelAnimationFrame(e)});var vp=0,bp=new Map;function yp(e){bp.delete(e)}var xp=function(e){var t=vp+=1;return function n(r){if(0===r)yp(t),e();else{var o=mp(function(){n(r-1)});bp.set(t,o)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};function wp(){var e=c.useRef(null);return function(t){e.current||(e.current=[],function(e){if("undefined"==typeof MessageChannel)xp(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}(function(){o.unstable_batchedUpdates(function(){e.current.forEach(function(e){e()}),e.current=null})})),e.current.push(t)}}function _p(e,t){var n=Pu(c.useState(t),2),r=n[0],o=n[1];return[r,Nu(function(t){e(function(){o(t)})})]}xp.cancel=function(e){var t=bp.get(e);return yp(e),gp(t)},"production"!==process.env.NODE_ENV&&(xp.ids=function(){return bp});var Sp=l.default.createContext(null),Ep=["component"],kp=["className"],Op=["className"],Cp=function(e,t){var n=c.useContext(Sp);if(!n){var r=e.component,o=void 0===r?"div":r,i=Ru(e,Ep);return c.createElement(o,yu({},i,{ref:t}))}var a=n.className,s=Ru(n,kp),l=e.className,u=Ru(e,Op);return c.createElement(Sp.Provider,{value:null},c.createElement(fp,yu({ref:t,className:bu(a,l)},s,u)))},Mp=c.forwardRef(Cp);Mp.displayName="RawItem";var Tp=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","prefix","suffix","component","itemComponent","onVisibleChange"],Ap="responsive",Pp="invalidate";function Rp(e){return"+ ".concat(e.length," ...")}function Np(t,n){var r=t.prefixCls,o=void 0===r?"rc-overflow":r,i=t.data,a=void 0===i?[]:i,s=t.renderItem,l=t.renderRawItem,u=t.itemKey,d=t.itemWidth,p=void 0===d?10:d,h=t.ssr,f=t.style,m=t.className,g=t.maxCount,v=t.renderRest,b=t.renderRawRest,y=t.prefix,x=t.suffix,w=t.component,_=void 0===w?"div":w,S=t.itemComponent,E=t.onVisibleChange,k=Ru(t,Tp),O="full"===h,C=wp(),M=Pu(_p(C,null),2),T=M[0],A=M[1],P=T||0,R=Pu(_p(C,new Map),2),N=R[0],D=R[1],I=Pu(_p(C,0),2),F=I[0],L=I[1],j=Pu(_p(C,0),2),z=j[0],B=j[1],H=Pu(_p(C,0),2),V=H[0],$=H[1],W=Pu(_p(C,0),2),U=W[0],G=W[1],Y=Pu(e.useState(null),2),X=Y[0],q=Y[1],K=Pu(e.useState(null),2),Z=K[0],Q=K[1],J=c.useMemo(function(){return null===Z&&O?Number.MAX_SAFE_INTEGER:Z||0},[Z,T]),ee=Pu(e.useState(!1),2),te=ee[0],ne=ee[1],re="".concat(o,"-item"),oe=Math.max(F,z),ie=g===Ap,ae=a.length&&ie,se=g===Pp,le=ae||"number"==typeof g&&a.length>g,ce=e.useMemo(function(){var e=a;return ae?e=null===T&&O?a:a.slice(0,Math.min(a.length,P/p)):"number"==typeof g&&(e=a.slice(0,g)),e},[a,p,T,g,ae]),ue=e.useMemo(function(){return ae?a.slice(J+1):a.slice(ce.length)},[a,ce,ae,J]),de=e.useCallback(function(e,t){var n;return"function"==typeof u?u(e):null!==(n=u&&(null==e?void 0:e[u]))&&void 0!==n?n:t},[u]),pe=e.useCallback(s||function(e){return e},[s]);function he(e,t,n){(Z!==e||void 0!==t&&t!==X)&&(Q(e),n||(ne(e<a.length-1),null==E||E(e)),void 0!==t&&q(t))}function fe(e,t){D(function(n){var r=new Map(n);return null===t?r.delete(e):r.set(e,t),r})}function me(e){return N.get(de(ce[e],e))}Fu(function(){if(P&&"number"==typeof oe&&ce){var e=V+U,t=ce.length,n=t-1;if(!t)return void he(0,null);for(var r=0;r<t;r+=1){var o=me(r);if(O&&(o=o||0),void 0===o){he(r-1,void 0,!0);break}if(e+=o,0===n&&e<=P||r===n-1&&e+me(n)<=P){he(n,null);break}if(e+oe>P){he(r-1,e-o-U+z);break}}x&&me(0)+U>P&&q(null)}},[P,N,z,V,U,de,ce]);var ge=te&&!!ue.length,ve={};null!==X&&ae&&(ve={position:"absolute",left:X,top:0});var be={prefixCls:re,responsive:ae,component:S,invalidate:se},ye=l?function(e,t){var n=de(e,t);return c.createElement(Sp.Provider,{key:n,value:Mu(Mu({},be),{},{order:t,item:e,itemKey:n,registerSize:fe,display:t<=J})},l(e,t))}:function(e,t){var n=de(e,t);return c.createElement(fp,yu({},be,{order:t,key:n,item:e,renderItem:pe,itemKey:n,registerSize:fe,display:t<=J}))},xe={order:ge?J:Number.MAX_SAFE_INTEGER,className:"".concat(re,"-rest"),registerSize:function(e,t){B(t),L(z)},display:ge},we=v||Rp,_e=b?c.createElement(Sp.Provider,{value:Mu(Mu({},be),xe)},b(ue)):c.createElement(fp,yu({},be,xe),"function"==typeof we?we(ue):we),Se=c.createElement(_,yu({className:bu(!se&&o,m),style:f,ref:n},k),y&&c.createElement(fp,yu({},be,{responsive:ie,responsiveDisabled:!ae,order:-1,className:"".concat(re,"-prefix"),registerSize:function(e,t){$(t)},display:!0}),y),ce.map(ye),le?_e:null,x&&c.createElement(fp,yu({},be,{responsive:ie,responsiveDisabled:!ae,order:J,className:"".concat(re,"-suffix"),registerSize:function(e,t){G(t)},display:!0,style:ve}),x));return ie?c.createElement(up,{onResize:function(e,t){A(t.clientWidth)},disabled:!ae},Se):Se}var Dp=c.forwardRef(Np);Dp.displayName="Overflow",Dp.Item=Mp,Dp.RESPONSIVE=Ap,Dp.INVALIDATE=Pp;var Ip=function(e,t){var n,r=e.prefixCls,o=e.id,i=e.inputElement,a=e.disabled,s=e.tabIndex,l=e.autoFocus,u=e.autoComplete,d=e.editable,p=e.activeDescendantId,h=e.value,f=e.maxLength,m=e.onKeyDown,g=e.onMouseDown,v=e.onChange,b=e.onPaste,y=e.onCompositionStart,x=e.onCompositionEnd,w=e.open,_=e.attrs,S=i||c.createElement("input",null),E=S,k=E.ref,O=E.props,C=O.onKeyDown,M=O.onChange,T=O.onMouseDown,A=O.onCompositionStart,P=O.onCompositionEnd,R=O.style;return $u(!("maxLength"in S.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),S=c.cloneElement(S,Mu(Mu(Mu({type:"search"},O),{},{id:o,ref:ud(t,k),disabled:a,tabIndex:s,autoComplete:u||"off",autoFocus:l,className:bu("".concat(r,"-selection-search-input"),null===(n=S)||void 0===n||null===(n=n.props)||void 0===n?void 0:n.className),role:"combobox","aria-expanded":w||!1,"aria-haspopup":"listbox","aria-owns":"".concat(o,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(o,"_list"),"aria-activedescendant":w?p:void 0},_),{},{value:d?h:"",maxLength:f,readOnly:!d,unselectable:d?null:"on",style:Mu(Mu({},R),{},{opacity:d?null:0}),onKeyDown:function(e){m(e),C&&C(e)},onMouseDown:function(e){g(e),T&&T(e)},onChange:function(e){v(e),M&&M(e)},onCompositionStart:function(e){y(e),A&&A(e)},onCompositionEnd:function(e){x(e),P&&P(e)},onPaste:b}))},Fp=c.forwardRef(Ip);function Lp(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}"production"!==process.env.NODE_ENV&&(Fp.displayName="Input");var jp="undefined"!=typeof window&&window.document&&window.document.documentElement,zp="test"!==process.env.NODE_ENV&&jp;function Bp(e){return["string","number"].includes(Eu(e))}function Hp(e){var t=void 0;return e&&(Bp(e.title)?t=e.title.toString():Bp(e.label)&&(t=e.label.toString())),t}function Vp(e){var t;return null!==(t=e.key)&&void 0!==t?t:e.value}var $p=function(e){e.preventDefault(),e.stopPropagation()},Wp=function(t){var n,r,o=t.id,i=t.prefixCls,a=t.values,s=t.open,l=t.searchValue,u=t.autoClearSearchValue,d=t.inputRef,p=t.placeholder,h=t.disabled,f=t.mode,m=t.showSearch,g=t.autoFocus,v=t.autoComplete,b=t.activeDescendantId,y=t.tabIndex,x=t.removeIcon,w=t.maxTagCount,_=t.maxTagTextLength,S=t.maxTagPlaceholder,E=void 0===S?function(e){return"+ ".concat(e.length," ...")}:S,k=t.tagRender,O=t.onToggleOpen,C=t.onRemove,M=t.onInputChange,T=t.onInputPaste,A=t.onInputKeyDown,P=t.onInputMouseDown,R=t.onInputCompositionStart,N=t.onInputCompositionEnd,D=c.useRef(null),I=Pu(e.useState(0),2),F=I[0],L=I[1],j=Pu(e.useState(!1),2),z=j[0],B=j[1],H="".concat(i,"-selection"),V=s||"multiple"===f&&!1===u||"tags"===f?l:"",$="tags"===f||"multiple"===f&&!1===u||m&&(s||z);n=function(){L(D.current.scrollWidth)},r=[V],zp?c.useLayoutEffect(n,r):c.useEffect(n,r);var W=function(e,t,n,r,o){return c.createElement("span",{title:Hp(e),className:bu("".concat(H,"-item"),Ou({},"".concat(H,"-item-disabled"),n))},c.createElement("span",{className:"".concat(H,"-item-content")},t),r&&c.createElement(md,{className:"".concat(H,"-item-remove"),onMouseDown:$p,onClick:o,customizeIcon:x},"×"))},U=function(e,t,n,r,o,i){return c.createElement("span",{onMouseDown:function(e){$p(e),O(!s)}},k({label:t,value:e,disabled:n,closable:r,onClose:o,isMaxTag:!!i}))},G=c.createElement("div",{className:"".concat(H,"-search"),style:{width:F},onFocus:function(){B(!0)},onBlur:function(){B(!1)}},c.createElement(Fp,{ref:d,open:s,prefixCls:i,id:o,inputElement:null,disabled:h,autoFocus:g,autoComplete:v,editable:$,activeDescendantId:b,value:V,onKeyDown:A,onMouseDown:P,onChange:M,onPaste:T,onCompositionStart:R,onCompositionEnd:N,tabIndex:y,attrs:wd(t,!0)}),c.createElement("span",{ref:D,className:"".concat(H,"-search-mirror"),"aria-hidden":!0},V," ")),Y=c.createElement(Dp,{prefixCls:"".concat(H,"-overflow"),data:a,renderItem:function(e){var t=e.disabled,n=e.label,r=e.value,o=!h&&!t,i=n;if("number"==typeof _&&("string"==typeof n||"number"==typeof n)){var a=String(i);a.length>_&&(i="".concat(a.slice(0,_),"..."))}var s=function(t){t&&t.stopPropagation(),C(e)};return"function"==typeof k?U(r,i,t,o,s):W(e,i,t,o,s)},renderRest:function(e){var t="function"==typeof E?E(e):E;return"function"==typeof k?U(void 0,t,!1,!1,void 0,!0):W({title:t},t,!1)},suffix:G,itemKey:Vp,maxCount:w});return c.createElement(c.Fragment,null,Y,!a.length&&!V&&c.createElement("span",{className:"".concat(H,"-placeholder")},p))},Up=function(e){var t=e.inputElement,n=e.prefixCls,r=e.id,o=e.inputRef,i=e.disabled,a=e.autoFocus,s=e.autoComplete,l=e.activeDescendantId,u=e.mode,d=e.open,p=e.values,h=e.placeholder,f=e.tabIndex,m=e.showSearch,g=e.searchValue,v=e.activeValue,b=e.maxLength,y=e.onInputKeyDown,x=e.onInputMouseDown,w=e.onInputChange,_=e.onInputPaste,S=e.onInputCompositionStart,E=e.onInputCompositionEnd,k=e.title,O=Pu(c.useState(!1),2),C=O[0],M=O[1],T="combobox"===u,A=T||m,P=p[0],R=g||"";T&&v&&!C&&(R=v),c.useEffect(function(){T&&M(!1)},[T,v]);var N=!("combobox"!==u&&!d&&!m)&&!!R,D=void 0===k?Hp(P):k,I=c.useMemo(function(){return P?null:c.createElement("span",{className:"".concat(n,"-selection-placeholder"),style:N?{visibility:"hidden"}:void 0},h)},[P,N,h,n]);return c.createElement(c.Fragment,null,c.createElement("span",{className:"".concat(n,"-selection-search")},c.createElement(Fp,{ref:o,prefixCls:n,id:r,open:d,inputElement:t,disabled:i,autoFocus:a,autoComplete:s,editable:A,activeDescendantId:l,value:R,onKeyDown:y,onMouseDown:x,onChange:function(e){M(!0),w(e)},onPaste:_,onCompositionStart:S,onCompositionEnd:E,tabIndex:f,attrs:wd(e,!0),maxLength:T?b:void 0})),!T&&P?c.createElement("span",{className:"".concat(n,"-selection-item"),title:D,style:N?{visibility:"hidden"}:void 0},P.label):null,I)},Gp=function(t,n){var r=e.useRef(null),o=e.useRef(!1),i=t.prefixCls,a=t.open,s=t.mode,l=t.showSearch,u=t.tokenWithEnter,d=t.disabled,p=t.autoClearSearchValue,h=t.onSearch,f=t.onSearchSubmit,m=t.onToggleOpen,g=t.onInputKeyDown,v=t.domRef;c.useImperativeHandle(n,function(){return{focus:function(e){r.current.focus(e)},blur:function(){r.current.blur()}}});var b=Pu(vd(0),2),y=b[0],x=b[1],w=e.useRef(null),_=function(e){!1!==h(e,!0,o.current)&&m(!0)},S={inputRef:r,onInputKeyDown:function(e){var t,n=e.which;n!==bd.UP&&n!==bd.DOWN||e.preventDefault(),g&&g(e),n!==bd.ENTER||"tags"!==s||o.current||a||null==f||f(e.target.value),t=n,[bd.ESC,bd.SHIFT,bd.BACKSPACE,bd.TAB,bd.WIN_KEY,bd.ALT,bd.META,bd.WIN_KEY_RIGHT,bd.CTRL,bd.SEMICOLON,bd.EQUALS,bd.CAPS_LOCK,bd.CONTEXT_MENU,bd.F1,bd.F2,bd.F3,bd.F4,bd.F5,bd.F6,bd.F7,bd.F8,bd.F9,bd.F10,bd.F11,bd.F12].includes(t)||m(!0)},onInputMouseDown:function(){x(!0)},onInputChange:function(e){var t=e.target.value;if(u&&w.current&&/[\r\n]/.test(w.current)){var n=w.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");t=t.replace(n,w.current)}w.current=null,_(t)},onInputPaste:function(e){var t=e.clipboardData,n=null==t?void 0:t.getData("text");w.current=n||""},onInputCompositionStart:function(){o.current=!0},onInputCompositionEnd:function(e){o.current=!1,"combobox"!==s&&_(e.target.value)}},E="multiple"===s||"tags"===s?c.createElement(Wp,yu({},t,S)):c.createElement(Up,yu({},t,S));return c.createElement("div",{ref:v,className:"".concat(i,"-selector"),onClick:function(e){e.target!==r.current&&(void 0!==document.body.style.msTouchAction?setTimeout(function(){r.current.focus()}):r.current.focus())},onMouseDown:function(e){var t=y();e.target===r.current||t||"combobox"===s&&d||e.preventDefault(),("combobox"===s||l&&t)&&a||(a&&!1!==p&&h("",!0,!1),m())}},E)},Yp=c.forwardRef(Gp);function Xp(e){return Xp="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},Xp(e)}function qp(e){var t=function(e,t){if("object"!=Xp(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Xp(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Xp(t)?t:t+""}function Kp(e,t,n){return(t=qp(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zp(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 Qp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zp(Object(n),!0).forEach(function(t){Kp(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zp(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Jp(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 eh(e,t){if(e){if("string"==typeof e)return Jp(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)?Jp(e,t):void 0}}function th(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,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||eh(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 nh(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 rh(e,t){if(e){if("string"==typeof e)return nh(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)?nh(e,t):void 0}}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,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||rh(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.")}()}"production"!==process.env.NODE_ENV&&(Yp.displayName="Selector");var ih=c.createContext(null);function ah(e){return function(e){if(Array.isArray(e))return nh(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||rh(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 sh=[];var lh="data-rc-order",ch="data-rc-priority",uh=new Map;function dh(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).mark;return e?e.startsWith("data-")?e:"data-".concat(e):"rc-util-key"}function ph(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function hh(e){return Array.from((uh.get(e)||e).children).filter(function(e){return"STYLE"===e.tagName})}function fh(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Du())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),s="prependQueue"===a,l=document.createElement("style");l.setAttribute(lh,a),s&&i&&l.setAttribute(ch,"".concat(i)),null!=n&&n.nonce&&(l.nonce=null==n?void 0:n.nonce),l.innerHTML=e;var c=ph(t),u=c.firstChild;if(r){if(s){var d=(t.styles||hh(c)).filter(function(e){if(!["prepend","prependQueue"].includes(e.getAttribute(lh)))return!1;var t=Number(e.getAttribute(ch)||0);return i>=t});if(d.length)return c.insertBefore(l,d[d.length-1].nextSibling),l}c.insertBefore(l,u)}else c.appendChild(l);return l}function mh(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=ph(t);return(t.styles||hh(n)).find(function(n){return n.getAttribute(dh(t))===e})}function gh(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=mh(e,t);n&&ph(t).removeChild(n)}function vh(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=ph(n),o=hh(r),i=Mu(Mu({},n),{},{styles:o});!function(e,t){var n=uh.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=fh("",t),o=r.parentNode;uh.set(e,o),e.removeChild(r)}}(r,i);var a=mh(t,i);if(a){var s,l,c;if(null!==(s=i.csp)&&void 0!==s&&s.nonce&&a.nonce!==(null===(l=i.csp)||void 0===l?void 0:l.nonce))a.nonce=null===(c=i.csp)||void 0===c?void 0:c.nonce;return a.innerHTML!==e&&(a.innerHTML=e),a}var u=fh(e,i);return u.setAttribute(dh(i),t),u}function bh(e){return"undefined"!=typeof document&&e&&e instanceof Element?function(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var r,o,i=n.style;if(i.position="absolute",i.left="0",i.top="0",i.width="100px",i.height="100px",i.overflow="scroll",e){var a=getComputedStyle(e);i.scrollbarColor=a.scrollbarColor,i.scrollbarWidth=a.scrollbarWidth;var s=getComputedStyle(e,"::-webkit-scrollbar"),l=parseInt(s.width,10),c=parseInt(s.height,10);try{var u=l?"width: ".concat(s.width,";"):"",d=c?"height: ".concat(s.height,";"):"";vh("\n#".concat(t,"::-webkit-scrollbar {\n").concat(u,"\n").concat(d,"\n}"),t)}catch(e){console.error(e),r=l,o=c}}document.body.appendChild(n);var p=e&&r&&!isNaN(r)?r:n.offsetWidth-n.clientWidth,h=e&&o&&!isNaN(o)?o:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),gh(t),{width:p,height:h}}(e):{width:0,height:0}}var yh="rc-util-locker-".concat(Date.now()),xh=0;function wh(e){var t=!!e,n=oh(c.useState(function(){return xh+=1,"".concat(yh,"_").concat(xh)}),1)[0];Fu(function(){if(t){var e=bh(document.body).width,r=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;vh("\nhtml body {\n overflow-y: hidden;\n ".concat(r?"width: calc(100% - ".concat(e,"px);"):"","\n}"),n)}else gh(n);return function(){gh(n)}},[t,n])}var _h=!1;var Sh=function(e){return!1!==e&&(Du()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)},Eh=c.forwardRef(function(e,t){var n=e.open,r=e.autoLock,i=e.getContainer,a=e.debug,s=e.autoDestroy,l=void 0===s||s,u=e.children,d=oh(c.useState(n),2),p=d[0],h=d[1],f=p||n;"production"!==process.env.NODE_ENV&&Yu(Du()||!n,"Portal only work in client side. Please call 'useEffect' to show Portal instead default render in SSR."),c.useEffect(function(){(l||n)&&h(n)},[n,l]);var m=oh(c.useState(function(){return Sh(i)}),2),g=m[0],v=m[1];c.useEffect(function(){var e=Sh(i);v(null!=e?e:null)});var b=function(e,t){var n=oh(c.useState(function(){if(!Du())return null;var e=document.createElement("div");return"production"!==process.env.NODE_ENV&&t&&e.setAttribute("data-debug",t),e}),1)[0],r=c.useRef(!1),o=c.useContext(ih),i=oh(c.useState(sh),2),a=i[0],s=i[1],l=o||(r.current?void 0:function(e){s(function(t){return[e].concat(ah(t))})});function u(){n.parentElement||document.body.appendChild(n),r.current=!0}function d(){var e;null===(e=n.parentElement)||void 0===e||e.removeChild(n),r.current=!1}return Fu(function(){return e?o?o(u):u():d(),d},[e]),Fu(function(){a.length&&(a.forEach(function(e){return e()}),s(sh))},[a]),[n,l]}(f&&!g,a),y=oh(b,2),x=y[0],w=y[1],_=null!=g?g:x;wh(r&&n&&Du()&&(_===x||_===document.body));var S=null;u&&pd(u)&&t&&(S=u.ref);var E=dd(S,t);if(!f||!Du()||void 0===g)return null;var k,O=!1===_||("boolean"==typeof k&&(_h=k),_h),C=u;return t&&(C=c.cloneElement(u,{ref:E})),c.createElement(ih.Provider,{value:w},O?C:o.createPortal(C,_))});function kh(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function Oh(e){return function(e){return kh(e)instanceof ShadowRoot}(e)?kh(e):null}"production"!==process.env.NODE_ENV&&(Eh.displayName="Portal");var Ch=0,Mh=Mu({},c).useId,Th=Mh?function(e){var t=Mh();return e||("test"===process.env.NODE_ENV?"test-id":t)}:function(e){var t=Pu(c.useState("ssr-id"),2),n=t[0],r=t[1];return c.useEffect(function(){var e=Ch;Ch+=1,r("rc_unique_".concat(e))},[]),e||("test"===process.env.NODE_ENV?"test-id":n)};function Ah(){return Ah=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},Ah.apply(null,arguments)}var Ph=["children"],Rh=c.createContext({});function Nh(e){var t=e.children,n=Ru(e,Ph);return c.createElement(Rh.Provider,{value:n},t)}var Dh=function(){tp(t,c.Component);var e=ip(t);function t(){return Zd(this,t),e.apply(this,arguments)}return Jd(t,[{key:"render",value:function(){return this.props.children}}]),t}();function Ih(e,t){for(var n=e,r=0;r<t.length;r+=1){if(null==n)return;n=n[t[r]]}return n}function Fh(e){return Tu(e)||wu(e)||_u(e)||Au()}function Lh(e,t,n,r){if(!t.length)return n;var o,i=Fh(t),a=i[0],s=i.slice(1);return o=e||"number"!=typeof a?Array.isArray(e)?Su(e):Mu({},e):[],r&&void 0===n&&1===s.length?delete o[a][s[0]]:o[a]=Lh(o[a],s,n,r),o}function jh(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return t.length&&r&&void 0===n&&!Ih(e,t.slice(0,-1))?e:Lh(e,t,n,r)}function zh(e){return Array.isArray(e)?[]:{}}var Bh="undefined"==typeof Reflect?Object.keys:Reflect.ownKeys;function Hh(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=zh(t[0]);return t.forEach(function(e){!function t(n,o){var i,a=new Set(o),s=Ih(e,n),l=Array.isArray(s);if(l||"object"===Eu(i=s)&&null!==i&&Object.getPrototypeOf(i)===Object.prototype){if(!a.has(s)){a.add(s);var c=Ih(r,n);l?r=jh(r,n,[]):c&&"object"===Eu(c)||(r=jh(r,n,zh(s))),Bh(s).forEach(function(e){t([].concat(Su(n),[e]),a)})}}else r=jh(r,n,s)}([])}),r}var Vh="none",$h="appear",Wh="enter",Uh="leave",Gh="none",Yh="prepare",Xh="start",qh="active",Kh="end",Zh="prepared";function Qh(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 Jh=function(e,t){var n={animationend:Qh("Animation","AnimationEnd"),transitionend:Qh("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}(Du(),"undefined"!=typeof window?window:{}),ef={};if(Du()){var tf=document.createElement("div");ef=tf.style}var nf={};function rf(e){if(nf[e])return nf[e];var t=Jh[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 ef)return nf[e]=t[i],nf[e]}return""}var of=rf("animationend"),af=rf("transitionend"),sf=!(!of||!af),lf=of||"animationend",cf=af||"transitionend";function uf(e,t){if(!e)return null;if("object"===Eu(e)){var n=t.replace(/-\w/g,function(e){return e[1].toUpperCase()});return e[n]}return"".concat(e,"-").concat(t)}var df=Du()?e.useLayoutEffect:e.useEffect,pf=[Yh,Xh,qh,Kh],hf=[Yh,Zh],ff=!1;function mf(e){return e===qh||e===Kh}var gf=function(e,t,n){var r=Pu(ju(Gh),2),o=r[0],i=r[1],a=function(){var e=c.useRef(null);function t(){xp.cancel(e.current)}return c.useEffect(function(){return function(){t()}},[]),[function n(r){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;t();var i=xp(function(){o<=1?r({isCanceled:function(){return i!==e.current}}):n(r,o-1)});e.current=i},t]}(),s=Pu(a,2),l=s[0],u=s[1];var d=t?hf:pf;return df(function(){if(o!==Gh&&o!==Kh){var e=d.indexOf(o),t=d[e+1],r=n(o);r===ff?i(t,!0):t&&l(function(e){function n(){e.isCanceled()||i(t,!0)}!0===r?n():Promise.resolve(r).then(n)})}},[e,o]),c.useEffect(function(){return function(){u()}},[]),[function(){i(Yh,!0)},o]};function vf(t,n,r,o){var i,a,s,l=o.motionEnter,u=void 0===l||l,d=o.motionAppear,p=void 0===d||d,h=o.motionLeave,f=void 0===h||h,m=o.motionDeadline,g=o.motionLeaveImmediately,v=o.onAppearPrepare,b=o.onEnterPrepare,y=o.onLeavePrepare,x=o.onAppearStart,w=o.onEnterStart,_=o.onLeaveStart,S=o.onAppearActive,E=o.onEnterActive,k=o.onLeaveActive,O=o.onAppearEnd,C=o.onEnterEnd,M=o.onLeaveEnd,T=o.onVisibleChanged,A=Pu(ju(),2),P=A[0],R=A[1],N=(i=Vh,a=Pu(c.useReducer(function(e){return e+1},0),2)[1],s=c.useRef(i),[Nu(function(){return s.current}),Nu(function(e){s.current="function"==typeof e?e(s.current):e,a()})]),D=Pu(N,2),I=D[0],F=D[1],L=Pu(ju(null),2),j=L[0],z=L[1],B=I(),H=e.useRef(!1),V=e.useRef(null);function $(){return r()}var W=e.useRef(!1);function U(){F(Vh),z(null,!0)}var G=Nu(function(e){var t=I();if(t!==Vh){var n=$();if(!e||e.deadline||e.target===n){var r,o=W.current;t===$h&&o?r=null==O?void 0:O(n,e):t===Wh&&o?r=null==C?void 0:C(n,e):t===Uh&&o&&(r=null==M?void 0:M(n,e)),o&&!1!==r&&U()}}}),Y=function(t){var n=e.useRef();function r(e){e&&(e.removeEventListener(cf,t),e.removeEventListener(lf,t))}return c.useEffect(function(){return function(){r(n.current)}},[]),[function(e){n.current&&n.current!==e&&r(n.current),e&&e!==n.current&&(e.addEventListener(cf,t),e.addEventListener(lf,t),n.current=e)},r]}(G),X=Pu(Y,1)[0],q=function(e){switch(e){case $h:return Ou(Ou(Ou({},Yh,v),Xh,x),qh,S);case Wh:return Ou(Ou(Ou({},Yh,b),Xh,w),qh,E);case Uh:return Ou(Ou(Ou({},Yh,y),Xh,_),qh,k);default:return{}}},K=c.useMemo(function(){return q(B)},[B]),Z=Pu(gf(B,!t,function(e){if(e===Yh){var t=K[Yh];return t?t($()):ff}var n;J in K&&z((null===(n=K[J])||void 0===n?void 0:n.call(K,$(),null))||null);return J===qh&&B!==Vh&&(X($()),m>0&&(clearTimeout(V.current),V.current=setTimeout(function(){G({deadline:!0})},m))),J===Zh&&U(),true}),2),Q=Z[0],J=Z[1],ee=mf(J);W.current=ee;var te=e.useRef(null);df(function(){if(!H.current||te.current!==n){R(n);var e,r=H.current;H.current=!0,!r&&n&&p&&(e=$h),r&&n&&u&&(e=Wh),(r&&!n&&f||!r&&g&&!n&&f)&&(e=Uh);var o=q(e);e&&(t||o[Yh])?(F(e),Q()):F(Vh),te.current=n}},[n]),e.useEffect(function(){(B===$h&&!p||B===Wh&&!u||B===Uh&&!f)&&F(Vh)},[p,u,f]),e.useEffect(function(){return function(){H.current=!1,clearTimeout(V.current)}},[]);var ne=c.useRef(!1);e.useEffect(function(){P&&(ne.current=!0),void 0!==P&&B===Vh&&((ne.current||P)&&(null==T||T(P)),ne.current=!0)},[P,B]);var re=j;return K[Yh]&&J===Xh&&(re=Mu({transition:"none"},re)),[B,J,re,null!=P?P:n]}var bf=function(t){var n=t;"object"===Eu(t)&&(n=t.transitionSupport);var r=c.forwardRef(function(t,r){var o=t.visible,i=void 0===o||o,a=t.removeOnLeave,s=void 0===a||a,l=t.forceRender,u=t.children,d=t.motionName,p=t.leavedClassName,h=t.eventProps,f=function(e,t){return!(!e.motionName||!n||!1===t)}(t,c.useContext(Rh).motion),m=e.useRef(),g=e.useRef();var v=Pu(vf(f,i,function(){try{return m.current instanceof HTMLElement?m.current:Ed(g.current)}catch(e){return null}},t),4),b=v[0],y=v[1],x=v[2],w=v[3],_=c.useRef(w);w&&(_.current=!0);var S,E=c.useCallback(function(e){m.current=e,cd(r,e)},[r]),k=Mu(Mu({},h),{},{visible:i});if(u)if(b===Vh)S=w?u(Mu({},k),E):!s&&_.current&&p?u(Mu(Mu({},k),{},{className:p}),E):l||!s&&!p?u(Mu(Mu({},k),{},{style:{display:"none"}}),E):null;else{var O;y===Yh?O="prepare":mf(y)?O="active":y===Xh&&(O="start");var C=uf(d,"".concat(b,"-").concat(O));S=u(Mu(Mu({},k),{},{className:bu(uf(d,b),Ou(Ou({},C,C&&O),d,"string"==typeof d)),style:x}),E)}else S=null;c.isValidElement(S)&&pd(S)&&(fd(S)||(S=c.cloneElement(S,{ref:E})));return c.createElement(Dh,{ref:g},S)});return r.displayName="CSSMotion",r}(sf),yf="add",xf="keep",wf="remove",_f="removed";function Sf(e){var t;return Mu(Mu({},t=e&&"object"===Eu(e)&&"key"in e?e:{key:e}),{},{key:String(t.key)})}function Ef(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(Sf)}var kf=["component","children","onVisibleChanged","onAllRemoved"],Of=["status"],Cf=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Mf(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,i=r||{},a=i.className,s=i.content,l=o.x,u=void 0===l?0:l,d=o.y,p=void 0===d?0:d,h=c.useRef();if(!n||!n.points)return null;var f={position:"absolute"};if(!1!==n.autoArrow){var m=n.points[0],g=n.points[1],v=m[0],b=m[1],y=g[0],x=g[1];v!==y&&["t","b"].includes(v)?"t"===v?f.top=0:f.bottom=0:f.top=p,b!==x&&["l","r"].includes(b)?"l"===b?f.left=0:f.right=0:f.left=u}return c.createElement("div",{ref:h,className:bu("".concat(t,"-arrow"),a),style:f},s)}function Tf(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,i=e.motion;return o?c.createElement(bf,Ah({},i,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(e){var n=e.className;return c.createElement("div",{style:{zIndex:r},className:bu("".concat(t,"-mask"),n)})}):null}!function(){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:bf,t=function(){tp(n,c.Component);var t=ip(n);function n(){var e;Zd(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return Ou(op(e=t.call.apply(t,[this].concat(o))),"state",{keyEntities:[]}),Ou(op(e),"removeKey",function(t){e.setState(function(e){return{keyEntities:e.keyEntities.map(function(e){return e.key!==t?e:Mu(Mu({},e),{},{status:_f})})}},function(){0===e.state.keyEntities.filter(function(e){return e.status!==_f}).length&&e.props.onAllRemoved&&e.props.onAllRemoved()})}),e}return Jd(n,[{key:"render",value:function(){var t=this,n=this.state.keyEntities,r=this.props,o=r.component,i=r.children,a=r.onVisibleChanged;r.onAllRemoved;var s=Ru(r,kf),l=o||c.Fragment,u={};return Cf.forEach(function(e){u[e]=s[e],delete s[e]}),delete s.keys,c.createElement(l,s,n.map(function(n,r){var o=n.status,s=Ru(n,Of),l=o===yf||o===xf;return c.createElement(e,yu({},u,{key:s.key,visible:l,eventProps:s,onVisibleChanged:function(e){null==a||a(e,{key:s.key}),e||t.removeKey(s.key)}}),function(e,t){return i(Mu(Mu({},e),{},{index:r}),t)})}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.keys,r=t.keyEntities,o=Ef(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=Ef(e),a=Ef(t);i.forEach(function(e){for(var t=!1,i=r;i<o;i+=1){var s=a[i];if(s.key===e.key){r<i&&(n=n.concat(a.slice(r,i).map(function(e){return Mu(Mu({},e),{},{status:yf})})),r=i),n.push(Mu(Mu({},s),{},{status:xf})),r+=1,t=!0;break}}t||n.push(Mu(Mu({},e),{},{status:wf}))}),r<o&&(n=n.concat(a.slice(r).map(function(e){return Mu(Mu({},e),{},{status:yf})})));var s={};return n.forEach(function(e){var t=e.key;s[t]=(s[t]||0)+1}),Object.keys(s).filter(function(e){return s[e]>1}).forEach(function(e){(n=n.filter(function(t){var n=t.key,r=t.status;return n!==e||r!==wf})).forEach(function(t){t.key===e&&(t.status=xf)})}),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!==_f||e.status!==wf})}}}]),n}();Ou(t,"defaultProps",{component:"div"})}(sf);var Af=c.memo(function(e){return e.children},function(e,t){return t.cache});"production"!==process.env.NODE_ENV&&(Af.displayName="PopupContent");var Pf=c.forwardRef(function(e,t){var n=e.popup,r=e.className,o=e.prefixCls,i=e.style,a=e.target,s=e.onVisibleChanged,l=e.open,u=e.keepDom,d=e.fresh,p=e.onClick,h=e.mask,f=e.arrow,m=e.arrowPos,g=e.align,v=e.motion,b=e.maskMotion,y=e.forceRender,x=e.getPopupContainer,w=e.autoDestroy,_=e.portal,S=e.zIndex,E=e.onMouseEnter,k=e.onMouseLeave,O=e.onPointerEnter,C=e.onPointerDownCapture,M=e.ready,T=e.offsetX,A=e.offsetY,P=e.offsetR,R=e.offsetB,N=e.onAlign,D=e.onPrepare,I=e.stretch,F=e.targetWidth,L=e.targetHeight,j="function"==typeof n?n():n,z=l||u,B=(null==x?void 0:x.length)>0,H=th(c.useState(!x||!B),2),V=H[0],$=H[1];if(Fu(function(){!V&&B&&a&&$(!0)},[V,B,a]),!V)return null;var W="auto",U={left:"-1000vw",top:"-1000vh",right:W,bottom:W};if(M||!l){var G,Y=g.points,X=g.dynamicInset||(null===(G=g._experimental)||void 0===G?void 0:G.dynamicInset),q=X&&"r"===Y[0][1],K=X&&"b"===Y[0][0];q?(U.right=P,U.left=W):(U.left=T,U.right=W),K?(U.bottom=R,U.top=W):(U.top=A,U.bottom=W)}var Z={};return I&&(I.includes("height")&&L?Z.height=L:I.includes("minHeight")&&L&&(Z.minHeight=L),I.includes("width")&&F?Z.width=F:I.includes("minWidth")&&F&&(Z.minWidth=F)),l||(Z.pointerEvents="none"),c.createElement(_,{open:y||z,getContainer:x&&function(){return x(a)},autoDestroy:w},c.createElement(Tf,{prefixCls:o,open:l,zIndex:S,mask:h,motion:b}),c.createElement(up,{onResize:N,disabled:!l},function(e){return c.createElement(bf,Ah({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:y,leavedClassName:"".concat(o,"-hidden")},v,{onAppearPrepare:D,onEnterPrepare:D,visible:l,onVisibleChanged:function(e){var t;null==v||null===(t=v.onVisibleChanged)||void 0===t||t.call(v,e),s(e)}}),function(n,a){var s=n.className,u=n.style,h=bu(o,s,r);return c.createElement("div",{ref:ud(e,t,a),className:h,style:Qp(Qp(Qp(Qp({"--arrow-x":"".concat(m.x||0,"px"),"--arrow-y":"".concat(m.y||0,"px")},U),Z),u),{},{boxSizing:"border-box",zIndex:S},i),onMouseEnter:E,onMouseLeave:k,onPointerEnter:O,onClick:p,onPointerDownCapture:C},f&&c.createElement(Mf,{prefixCls:o,arrow:f,arrowPos:m,align:g}),c.createElement(Af,{cache:!l&&!d},j))})}))});"production"!==process.env.NODE_ENV&&(Pf.displayName="Popup");var Rf=c.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=pd(n),i=c.useCallback(function(e){cd(t,r?r(e):e)},[r]),a=dd(i,fd(n));return o?c.cloneElement(n,{ref:a}):n});"production"!==process.env.NODE_ENV&&(Rf.displayName="TriggerWrapper");var Nf=c.createContext(null);function Df(e){return e?Array.isArray(e)?e:[e]:[]}function If(){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 Ff(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function Lf(e){return e.ownerDocument.defaultView}function jf(e){for(var t=[],n=null==e?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=Lf(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 zf(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function Bf(e){return zf(parseFloat(e),0)}function Hf(e,t){var n=Qp({},e);return(t||[]).forEach(function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=Lf(e).getComputedStyle(e),r=t.overflow,o=t.overflowClipMargin,i=t.borderTopWidth,a=t.borderBottomWidth,s=t.borderLeftWidth,l=t.borderRightWidth,c=e.getBoundingClientRect(),u=e.offsetHeight,d=e.clientHeight,p=e.offsetWidth,h=e.clientWidth,f=Bf(i),m=Bf(a),g=Bf(s),v=Bf(l),b=zf(Math.round(c.width/p*1e3)/1e3),y=zf(Math.round(c.height/u*1e3)/1e3),x=(p-h-g-v)*b,w=(u-d-f-m)*y,_=f*y,S=m*y,E=g*b,k=v*b,O=0,C=0;if("clip"===r){var M=Bf(o);O=M*b,C=M*y}var T=c.x+E-O,A=c.y+_-C,P=T+c.width+2*O-E-k-x,R=A+c.height+2*C-_-S-w;n.left=Math.max(n.left,T),n.top=Math.max(n.top,A),n.right=Math.min(n.right,P),n.bottom=Math.min(n.bottom,R)}}),n}function Vf(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 $f(e,t){var n=th(t||[],2),r=n[0],o=n[1];return[Vf(e.width,r),Vf(e.height,o)]}function Wf(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function Uf(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 Gf(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 Yf(e,t,n,r,o,i,a){var s=th(c.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[r]||{}}),2),l=s[0],u=s[1],d=c.useRef(0),p=c.useMemo(function(){return t?jf(t):[]},[t]),h=c.useRef({});e||(h.current={});var f=Nu(function(){if(t&&n&&e){var s,l,c,d,f,m=t,g=m.ownerDocument,v=Lf(m),b=v.getComputedStyle(m).position,y=m.style.left,x=m.style.top,w=m.style.right,_=m.style.bottom,S=m.style.overflow,E=Qp(Qp({},o[r]),i),k=g.createElement("div");if(null===(s=m.parentElement)||void 0===s||s.appendChild(k),k.style.left="".concat(m.offsetLeft,"px"),k.style.top="".concat(m.offsetTop,"px"),k.style.position=b,k.style.height="".concat(m.offsetHeight,"px"),k.style.width="".concat(m.offsetWidth,"px"),m.style.left="0",m.style.top="0",m.style.right="auto",m.style.bottom="auto",m.style.overflow="hidden",Array.isArray(n))f={x:n[0],y:n[1],width:0,height:0};else{var O,C,M=n.getBoundingClientRect();M.x=null!==(O=M.x)&&void 0!==O?O:M.left,M.y=null!==(C=M.y)&&void 0!==C?C:M.top,f={x:M.x,y:M.y,width:M.width,height:M.height}}var T=m.getBoundingClientRect(),A=v.getComputedStyle(m),P=A.height,R=A.width;T.x=null!==(l=T.x)&&void 0!==l?l:T.left,T.y=null!==(c=T.y)&&void 0!==c?c:T.top;var N=g.documentElement,D=N.clientWidth,I=N.clientHeight,F=N.scrollWidth,L=N.scrollHeight,j=N.scrollTop,z=N.scrollLeft,B=T.height,H=T.width,V=f.height,$=f.width,W={left:0,top:0,right:D,bottom:I},U={left:-z,top:-j,right:F-z,bottom:L-j},G=E.htmlRegion,Y="visible",X="visibleFirst";"scroll"!==G&&G!==X&&(G=Y);var q=G===X,K=Hf(U,p),Z=Hf(W,p),Q=G===Y?Z:K,J=q?Z:Q;m.style.left="auto",m.style.top="auto",m.style.right="0",m.style.bottom="0";var ee=m.getBoundingClientRect();m.style.left=y,m.style.top=x,m.style.right=w,m.style.bottom=_,m.style.overflow=S,null===(d=m.parentElement)||void 0===d||d.removeChild(k);var te=zf(Math.round(H/parseFloat(R)*1e3)/1e3),ne=zf(Math.round(B/parseFloat(P)*1e3)/1e3);if(0===te||0===ne||Sd(n)&&!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}(n))return;var re=E.offset,oe=E.targetOffset,ie=th($f(T,re),2),ae=ie[0],se=ie[1],le=th($f(f,oe),2),ce=le[0],ue=le[1];f.x-=ce,f.y-=ue;var de=th(E.points||[],2),pe=de[0],he=Wf(de[1]),fe=Wf(pe),me=Uf(f,he),ge=Uf(T,fe),ve=Qp({},E),be=me.x-ge.x+ae,ye=me.y-ge.y+se;function pt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Q,r=T.x+e,o=T.y+t,i=r+H,a=o+B,s=Math.max(r,n.left),l=Math.max(o,n.top),c=Math.min(i,n.right),u=Math.min(a,n.bottom);return Math.max(0,(c-s)*(u-l))}var xe,we,_e,Se,Ee=pt(be,ye),ke=pt(be,ye,Z),Oe=Uf(f,["t","l"]),Ce=Uf(T,["t","l"]),Me=Uf(f,["b","r"]),Te=Uf(T,["b","r"]),Ae=E.overflow||{},Pe=Ae.adjustX,Re=Ae.adjustY,Ne=Ae.shiftX,De=Ae.shiftY,Ie=function(e){return"boolean"==typeof e?e:e>=0};function ht(){xe=T.y+ye,we=xe+B,_e=T.x+be,Se=_e+H}ht();var Fe=Ie(Re),Le=fe[0]===he[0];if(Fe&&"t"===fe[0]&&(we>J.bottom||h.current.bt)){var je=ye;Le?je-=B-V:je=Oe.y-Te.y-se;var ze=pt(be,je),Be=pt(be,je,Z);ze>Ee||ze===Ee&&(!q||Be>=ke)?(h.current.bt=!0,ye=je,se=-se,ve.points=[Gf(fe,0),Gf(he,0)]):h.current.bt=!1}if(Fe&&"b"===fe[0]&&(xe<J.top||h.current.tb)){var He=ye;Le?He+=B-V:He=Me.y-Ce.y-se;var Ve=pt(be,He),$e=pt(be,He,Z);Ve>Ee||Ve===Ee&&(!q||$e>=ke)?(h.current.tb=!0,ye=He,se=-se,ve.points=[Gf(fe,0),Gf(he,0)]):h.current.tb=!1}var We=Ie(Pe),Ue=fe[1]===he[1];if(We&&"l"===fe[1]&&(Se>J.right||h.current.rl)){var Ge=be;Ue?Ge-=H-$:Ge=Oe.x-Te.x-ae;var Ye=pt(Ge,ye),Xe=pt(Ge,ye,Z);Ye>Ee||Ye===Ee&&(!q||Xe>=ke)?(h.current.rl=!0,be=Ge,ae=-ae,ve.points=[Gf(fe,1),Gf(he,1)]):h.current.rl=!1}if(We&&"r"===fe[1]&&(_e<J.left||h.current.lr)){var qe=be;Ue?qe+=H-$:qe=Me.x-Ce.x-ae;var Ke=pt(qe,ye),Ze=pt(qe,ye,Z);Ke>Ee||Ke===Ee&&(!q||Ze>=ke)?(h.current.lr=!0,be=qe,ae=-ae,ve.points=[Gf(fe,1),Gf(he,1)]):h.current.lr=!1}ht();var Qe=!0===Ne?0:Ne;"number"==typeof Qe&&(_e<Z.left&&(be-=_e-Z.left-ae,f.x+$<Z.left+Qe&&(be+=f.x-Z.left+$-Qe)),Se>Z.right&&(be-=Se-Z.right-ae,f.x>Z.right-Qe&&(be+=f.x-Z.right+Qe)));var Je=!0===De?0:De;"number"==typeof Je&&(xe<Z.top&&(ye-=xe-Z.top-se,f.y+V<Z.top+Je&&(ye+=f.y-Z.top+V-Je)),we>Z.bottom&&(ye-=we-Z.bottom-se,f.y>Z.bottom-Je&&(ye+=f.y-Z.bottom+Je)));var et=T.x+be,tt=et+H,nt=T.y+ye,rt=nt+B,ot=f.x,it=ot+$,at=f.y,st=at+V,lt=(Math.max(et,ot)+Math.min(tt,it))/2-et,ct=(Math.max(nt,at)+Math.min(rt,st))/2-nt;null==a||a(t,ve);var ut=ee.right-T.x-(be+T.width),dt=ee.bottom-T.y-(ye+T.height);1===te&&(be=Math.floor(be),ut=Math.floor(ut)),1===ne&&(ye=Math.floor(ye),dt=Math.floor(dt)),u({ready:!0,offsetX:be/te,offsetY:ye/ne,offsetR:ut/te,offsetB:dt/ne,arrowX:lt/te,arrowY:ct/ne,scaleX:te,scaleY:ne,align:ve})}}),m=function(){u(function(e){return Qp(Qp({},e),{},{ready:!1})})};return Fu(m,[r]),Fu(function(){e||m()},[e]),[l.ready,l.offsetX,l.offsetY,l.offsetR,l.offsetB,l.arrowX,l.arrowY,l.scaleX,l.scaleY,l.align,function(){d.current+=1;var e=d.current;Promise.resolve().then(function(){d.current===e&&f()})}]}function Xf(e){return function(e){if(Array.isArray(e))return Jp(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||eh(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 qf=["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"];var Kf=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Eh,t=c.forwardRef(function(t,n){var r=t.prefixCls,o=void 0===r?"rc-trigger-popup":r,i=t.children,a=t.action,s=void 0===a?"hover":a,l=t.showAction,u=t.hideAction,d=t.popupVisible,p=t.defaultPopupVisible,h=t.onPopupVisibleChange,f=t.afterPopupVisibleChange,m=t.mouseEnterDelay,g=t.mouseLeaveDelay,v=void 0===g?.1:g,b=t.focusDelay,y=t.blurDelay,x=t.mask,w=t.maskClosable,_=void 0===w||w,S=t.getPopupContainer,E=t.forceRender,k=t.autoDestroy,O=t.destroyPopupOnHide,C=t.popup,M=t.popupClassName,T=t.popupStyle,A=t.popupPlacement,P=t.builtinPlacements,R=void 0===P?{}:P,N=t.popupAlign,D=t.zIndex,I=t.stretch,F=t.getPopupClassNameFromAlign,L=t.fresh,j=t.alignPoint,z=t.onPopupClick,B=t.onPopupAlign,H=t.arrow,V=t.popupMotion,$=t.maskMotion,W=t.popupTransitionName,U=t.popupAnimation,G=t.maskTransitionName,Y=t.maskAnimation,X=t.className,q=t.getTriggerDOMNode,K=function(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(-1!==t.indexOf(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],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,qf),Z=k||O||!1,Q=th(c.useState(!1),2),J=Q[0],ee=Q[1];Fu(function(){ee(Ku())},[]);var te=c.useRef({}),ne=c.useContext(Nf),re=c.useMemo(function(){return{registerSubPopup:function(e,t){te.current[e]=t,null==ne||ne.registerSubPopup(e,t)}}},[ne]),oe=Th(),ie=th(c.useState(null),2),ae=ie[0],se=ie[1],le=c.useRef(null),ce=Nu(function(e){le.current=e,Sd(e)&&ae!==e&&se(e),null==ne||ne.registerSubPopup(oe,e)}),ue=th(c.useState(null),2),de=ue[0],pe=ue[1],he=c.useRef(null),fe=Nu(function(e){Sd(e)&&de!==e&&(pe(e),he.current=e)}),me=c.Children.only(i),ge=(null==me?void 0:me.props)||{},ve={},be=Nu(function(e){var t,n,r=de;return(null==r?void 0:r.contains(e))||(null===(t=Oh(r))||void 0===t?void 0:t.host)===e||e===r||(null==ae?void 0:ae.contains(e))||(null===(n=Oh(ae))||void 0===n?void 0:n.host)===e||e===ae||Object.values(te.current).some(function(t){return(null==t?void 0:t.contains(e))||e===t})}),ye=Ff(o,V,U,W),xe=Ff(o,$,Y,G),we=th(c.useState(p||!1),2),_e=we[0],Se=we[1],Ee=null!=d?d:_e,ke=Nu(function(e){void 0===d&&Se(e)});Fu(function(){Se(d||!1)},[d]);var Oe=c.useRef(Ee);Oe.current=Ee;var Ce=c.useRef([]);Ce.current=[];var Me=Nu(function(e){var t;ke(e),(null!==(t=Ce.current[Ce.current.length-1])&&void 0!==t?t:Ee)!==e&&(Ce.current.push(e),null==h||h(e))}),Te=c.useRef(),Ae=function(){clearTimeout(Te.current)},Pe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;Ae(),0===t?Me(e):Te.current=setTimeout(function(){Me(e)},1e3*t)};c.useEffect(function(){return Ae},[]);var Re=th(c.useState(!1),2),Ne=Re[0],De=Re[1];Fu(function(e){e&&!Ee||De(!0)},[Ee]);var Ie=th(c.useState(null),2),Fe=Ie[0],Le=Ie[1],je=th(c.useState(null),2),ze=je[0],Be=je[1],He=function(e){Be([e.clientX,e.clientY])},Ve=th(Yf(Ee,ae,j&&null!==ze?ze:de,A,R,N,B),11),$e=Ve[0],We=Ve[1],Ue=Ve[2],Ge=Ve[3],Ye=Ve[4],Xe=Ve[5],qe=Ve[6],Ke=Ve[7],Ze=Ve[8],Qe=Ve[9],Je=Ve[10],et=function(e,t,n,r){return c.useMemo(function(){var o=Df(null!=n?n:t),i=Df(null!=r?r:t),a=new Set(o),s=new Set(i);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[a,s]},[e,t,n,r])}(J,s,l,u),tt=th(et,2),nt=tt[0],rt=tt[1],ot=nt.has("click"),it=rt.has("click")||rt.has("contextMenu"),at=Nu(function(){Ne||Je()});!function(e,t,n,r,o){Fu(function(){if(e&&t&&n){var i=n,a=jf(t),s=jf(i),l=Lf(i),c=new Set([l].concat(Xf(a),Xf(s)));function u(){r(),o()}return c.forEach(function(e){e.addEventListener("scroll",u,{passive:!0})}),l.addEventListener("resize",u,{passive:!0}),r(),function(){c.forEach(function(e){e.removeEventListener("scroll",u),l.removeEventListener("resize",u)})}}},[e,t,n])}(Ee,de,ae,at,function(){Oe.current&&j&&it&&Pe(!1)}),Fu(function(){at()},[ze,A]),Fu(function(){!Ee||null!=R&&R[A]||at()},[JSON.stringify(N)]);var st=c.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 s,l=i[a];if(If(null===(s=e[l])||void 0===s?void 0:s.points,o,r))return"".concat(t,"-placement-").concat(l)}return""}(R,o,Qe,j);return bu(e,null==F?void 0:F(Qe))},[Qe,F,R,o,j]);c.useImperativeHandle(n,function(){return{nativeElement:he.current,popupElement:le.current,forceAlign:at}});var lt=th(c.useState(0),2),ct=lt[0],ut=lt[1],dt=th(c.useState(0),2),pt=dt[0],ht=dt[1],ft=function(){if(I&&de){var e=de.getBoundingClientRect();ut(e.width),ht(e.height)}};function mt(e,t,n,r){ve[e]=function(o){var i;null==r||r(o),Pe(t,n);for(var a=arguments.length,s=new Array(a>1?a-1:0),l=1;l<a;l++)s[l-1]=arguments[l];null===(i=ge[e])||void 0===i||i.call.apply(i,[ge,o].concat(s))}}Fu(function(){Fe&&(Je(),Fe(),Le(null))},[Fe]),(ot||it)&&(ve.onClick=function(e){var t;Oe.current&&it?Pe(!1):!Oe.current&&ot&&(He(e),Pe(!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=ge.onClick)||void 0===t||t.call.apply(t,[ge,e].concat(r))});var gt,vt,bt=function(e,t,n,r,o,i,a,s){var l=c.useRef(e);l.current=e;var u=c.useRef(!1);return c.useEffect(function(){if(t&&r&&(!o||i)){var e=function(){u.current=!1},c=function(e){var t;!l.current||a((null===(t=e.composedPath)||void 0===t||null===(t=t.call(e))||void 0===t?void 0:t[0])||e.target)||u.current||s(!1)},d=Lf(r);d.addEventListener("pointerdown",e,!0),d.addEventListener("mousedown",c,!0),d.addEventListener("contextmenu",c,!0);var p,h,f=Oh(n);return f&&(f.addEventListener("mousedown",c,!0),f.addEventListener("contextmenu",c,!0)),"production"!==process.env.NODE_ENV&&$u((null==n||null===(p=n.getRootNode)||void 0===p?void 0:p.call(n))===(null===(h=r.getRootNode)||void 0===h?void 0:h.call(r)),"trigger element and popup element should in same shadow root."),function(){d.removeEventListener("pointerdown",e,!0),d.removeEventListener("mousedown",c,!0),d.removeEventListener("contextmenu",c,!0),f&&(f.removeEventListener("mousedown",c,!0),f.removeEventListener("contextmenu",c,!0))}}},[t,n,r,o,i]),function(){u.current=!0}}(Ee,it,de,ae,x,_,be,Pe),yt=nt.has("hover"),xt=rt.has("hover");yt&&(mt("onMouseEnter",!0,m,function(e){He(e)}),mt("onPointerEnter",!0,m,function(e){He(e)}),gt=function(e){(Ee||Ne)&&null!=ae&&ae.contains(e.target)&&Pe(!0,m)},j&&(ve.onMouseMove=function(e){var t;null===(t=ge.onMouseMove)||void 0===t||t.call(ge,e)})),xt&&(mt("onMouseLeave",!1,v),mt("onPointerLeave",!1,v),vt=function(){Pe(!1,v)}),nt.has("focus")&&mt("onFocus",!0,b),rt.has("focus")&&mt("onBlur",!1,y),nt.has("contextMenu")&&(ve.onContextMenu=function(e){var t;Oe.current&&rt.has("contextMenu")?Pe(!1):(He(e),Pe(!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=ge.onContextMenu)||void 0===t||t.call.apply(t,[ge,e].concat(r))}),X&&(ve.className=bu(ge.className,X));var wt=c.useRef(!1);wt.current||(wt.current=E||Ee||Ne);var _t=Qp(Qp({},ge),ve),St={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach(function(e){K[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=_t[e])||void 0===t||t.call.apply(t,[_t].concat(r)),K[e].apply(K,r)})});var Et=c.cloneElement(me,Qp(Qp({},_t),St)),kt={x:Xe,y:qe},Ot=H?Qp({},!0!==H?H:{}):null;return c.createElement(c.Fragment,null,c.createElement(up,{disabled:!Ee,ref:fe,onResize:function(){ft(),at()}},c.createElement(Rf,{getTriggerDOMNode:q},Et)),wt.current&&c.createElement(Nf.Provider,{value:re},c.createElement(Pf,{portal:e,ref:ce,prefixCls:o,popup:C,className:bu(M,st),style:T,target:de,onMouseEnter:gt,onMouseLeave:vt,onPointerEnter:gt,zIndex:D,open:Ee,keepDom:Ne,fresh:L,onClick:z,onPointerDownCapture:bt,mask:x,motion:ye,maskMotion:xe,onVisibleChanged:function(e){De(!1),Je(),null==f||f(e)},onPrepare:function(){return new Promise(function(e){ft(),Le(function(){return e})})},forceRender:E,autoDestroy:Z,getPopupContainer:S,align:Qe,arrow:Ot,arrowPos:kt,ready:$e,offsetX:We,offsetY:Ue,offsetR:Ge,offsetB:Ye,onAlign:at,stretch:I,targetWidth:ct/Ke,targetHeight:pt/Ze})))});return"production"!==process.env.NODE_ENV&&(t.displayName="Trigger"),t}(Eh),Zf=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],Qf=function(e,t){var n=e.prefixCls;e.disabled;var r=e.visible,o=e.children,i=e.popupElement,a=e.animation,s=e.transitionName,l=e.dropdownStyle,u=e.dropdownClassName,d=e.direction,p=void 0===d?"ltr":d,h=e.placement,f=e.builtinPlacements,m=e.dropdownMatchSelectWidth,g=e.dropdownRender,v=e.dropdownAlign,b=e.getPopupContainer,y=e.empty,x=e.getTriggerDOMNode,w=e.onPopupVisibleChange,_=e.onPopupMouseEnter,S=Ru(e,Zf),E="".concat(n,"-dropdown"),k=i;g&&(k=g(i));var O=c.useMemo(function(){return f||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"}}}(m)},[f,m]),C=a?"".concat(E,"-").concat(a):s,M="number"==typeof m,T=c.useMemo(function(){return M?null:!1===m?"minWidth":"width"},[m,M]),A=l;M&&(A=Mu(Mu({},A),{},{width:m}));var P=c.useRef(null);return c.useImperativeHandle(t,function(){return{getPopupElement:function(){var e;return null===(e=P.current)||void 0===e?void 0:e.popupElement}}}),c.createElement(Kf,yu({},S,{showAction:w?["click"]:[],hideAction:w?["click"]:[],popupPlacement:h||("rtl"===p?"bottomRight":"bottomLeft"),builtinPlacements:O,prefixCls:E,popupTransitionName:C,popup:c.createElement("div",{onMouseEnter:_},k),ref:P,stretch:T,popupAlign:v,popupVisible:r,getPopupContainer:b,popupClassName:bu(u,Ou({},"".concat(E,"-empty"),y)),popupStyle:A,getTriggerDOMNode:x,onPopupVisibleChange:w}),o)},Jf=c.forwardRef(Qf);function em(e,t){var n,r=e.key;return"value"in e&&(n=e.value),null!=r?r:void 0!==n?n:"rc-index-key-".concat(t)}function tm(e){return void 0!==e&&!Number.isNaN(e)}function nm(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 rm(e){var t=Mu({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return Yu(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}"production"!==process.env.NODE_ENV&&(Jf.displayName="SelectTrigger");var om=c.createContext(null);function im(e){var t=e.visible,n=e.values;if(!t)return null;return c.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(Eu(t))?t:n}).join(", ")),n.length>50?", ...":null)}var am=["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"],sm=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],lm=function(e){return"tags"===e||"multiple"===e},cm=c.forwardRef(function(e,t){var n,r=e.id,o=e.prefixCls,i=e.className,a=e.showSearch,s=e.tagRender,u=e.direction,d=e.omitDomProps,p=e.displayValues,h=e.onDisplayValuesChange,f=e.emptyOptions,m=e.notFoundContent,g=void 0===m?"Not Found":m,v=e.onClear,b=e.mode,y=e.disabled,x=e.loading,w=e.getInputElement,_=e.getRawInputElement,S=e.open,E=e.defaultOpen,k=e.onDropdownVisibleChange,O=e.activeValue,C=e.onActiveValueChange,M=e.activeDescendantId,T=e.searchValue,A=e.autoClearSearchValue,P=e.onSearch,R=e.onSearchSplit,N=e.tokenSeparators,D=e.allowClear,I=e.suffixIcon,F=e.clearIcon,L=e.OptionList,j=e.animation,z=e.transitionName,B=e.dropdownStyle,H=e.dropdownClassName,V=e.dropdownMatchSelectWidth,$=e.dropdownRender,W=e.dropdownAlign,U=e.placement,G=e.builtinPlacements,Y=e.getPopupContainer,X=e.showAction,q=void 0===X?[]:X,K=e.onFocus,Z=e.onBlur,Q=e.onKeyUp,J=e.onKeyDown,ee=e.onMouseDown,te=Ru(e,am),ne=lm(b),re=(void 0!==a?a:ne)||"combobox"===b,oe=Mu({},te);sm.forEach(function(e){delete oe[e]}),null==d||d.forEach(function(e){delete oe[e]});var ie=Pu(c.useState(!1),2),ae=ie[0],se=ie[1];c.useEffect(function(){se(Ku())},[]);var le=c.useRef(null),ce=c.useRef(null),ue=c.useRef(null),de=c.useRef(null),pe=c.useRef(null),he=c.useRef(!1),fe=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,t=Pu(c.useState(!1),2),n=t[0],r=t[1],o=c.useRef(null),i=function(){window.clearTimeout(o.current)};return c.useEffect(function(){return i},[]),[n,function(t,n){i(),o.current=window.setTimeout(function(){r(t),n&&n()},e)},i]}(),me=Pu(fe,3),ge=me[0],ve=me[1],be=me[2];c.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=pe.current)||void 0===t?void 0:t.scrollTo(e)},nativeElement:le.current||ce.current}});var ye=c.useMemo(function(){var e;if("combobox"!==b)return T;var t=null===(e=p[0])||void 0===e?void 0:e.value;return"string"==typeof t||"number"==typeof t?String(t):""},[T,b,p]),xe="combobox"===b&&"function"==typeof w&&w()||null,we="function"==typeof _&&_(),_e=dd(ce,null==we||null===(n=we.props)||void 0===n?void 0:n.ref),Se=Pu(c.useState(!1),2),Ee=Se[0],ke=Se[1];Fu(function(){ke(!0)},[]);var Oe=Pu(Bu(!1,{defaultValue:E,value:S}),2),Ce=Oe[0],Me=Oe[1],Te=!!Ee&&Ce,Ae=!g&&f;(y||Ae&&Te&&"combobox"===b)&&(Te=!1);var Pe=!Ae&&Te,Re=c.useCallback(function(e){var t=void 0!==e?e:!Te;y||(Me(t),Te!==t&&(null==k||k(t)))},[y,Te,Me,k]),Ne=c.useMemo(function(){return(N||[]).some(function(e){return["\n","\r\n"].includes(e)})},[N]),De=c.useContext(om)||{},Ie=De.maxCount,Fe=De.rawValues,Le=function(e,t,n){if(!(ne&&tm(Ie)&&(null==Fe?void 0:Fe.size)>=Ie)){var r=!0,o=e;null==C||C(null);var i=function(e,t,n){if(!t||!t.length)return null;var r=!1,o=function e(t,n){var o=Fh(n),i=o[0],a=o.slice(1);if(!i)return[t];var s=t.split(i);return r=r||s.length>1,s.reduce(function(t,n){return[].concat(Su(t),Su(e(n,a)))},[]).filter(Boolean)}(e,t);return r?void 0!==n?o.slice(0,n):o:null}(e,N,tm(Ie)?Ie-Fe.size:void 0),a=n?null:i;return"combobox"!==b&&a&&(o="",null==R||R(a),Re(!1),r=!1),P&&ye!==o&&P(o,{source:t?"typing":"effect"}),r}};c.useEffect(function(){Te||ne||"combobox"===b||Le("",!1,!1)},[Te]),c.useEffect(function(){Ce&&y&&Me(!1),y&&!he.current&&ve(!1)},[y]);var je=Pu(vd(),2),ze=je[0],Be=je[1],He=c.useRef(!1),Ve=c.useRef(!1),$e=[];c.useEffect(function(){return function(){$e.forEach(function(e){return clearTimeout(e)}),$e.splice(0,$e.length)}},[]);var We,Ue=Pu(c.useState({}),2)[1];we&&(We=function(e){Re(e)}),function(e,t,n,r){var o=c.useRef(null);o.current={open:t,triggerOpen:n,customizedTrigger:r},c.useEffect(function(){function t(t){var n;if(null===(n=o.current)||void 0===n||!n.customizedTrigger){var r=t.target;r.shadowRoot&&t.composed&&(r=t.composedPath()[0]||r),o.current.open&&e().filter(function(e){return e}).every(function(e){return!e.contains(r)&&e!==r})&&o.current.triggerOpen(!1)}}return window.addEventListener("mousedown",t),function(){return window.removeEventListener("mousedown",t)}},[])}(function(){var e;return[le.current,null===(e=ue.current)||void 0===e?void 0:e.getPopupElement()]},Pe,Re,!!we);var Ge,Ye=c.useMemo(function(){return Mu(Mu({},e),{},{notFoundContent:g,open:Te,triggerOpen:Pe,id:r,showSearch:re,multiple:ne,toggleOpen:Re})},[e,g,Pe,Te,r,re,ne,Re]),Xe=!!I||x;Xe&&(Ge=c.createElement(md,{className:bu("".concat(o,"-arrow"),Ou({},"".concat(o,"-arrow-loading"),x)),customizeIcon:I,customizeIconProps:{loading:x,searchValue:ye,open:Te,focused:ge,showSearch:re}}));var qe,Ke=function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]&&arguments[5],a=arguments.length>6?arguments[6]:void 0,s=arguments.length>7?arguments[7]:void 0,c=l.default.useMemo(function(){return"object"===Eu(r)?r.clearIcon:o||void 0},[r,o]);return{allowClear:l.default.useMemo(function(){return!(i||!r||!n.length&&!a||"combobox"===s&&""===a)},[r,i,n.length,a,s]),clearIcon:l.default.createElement(md,{className:"".concat(e,"-clear"),onMouseDown:t,customizeIcon:c},"×")}}(o,function(){var e;null==v||v(),null===(e=de.current)||void 0===e||e.focus(),h([],{type:"clear",values:p}),Le("",!1,!1)},p,D,F,y,ye,b),Ze=Ke.allowClear,Qe=Ke.clearIcon,Je=c.createElement(L,{ref:pe}),et=bu(o,i,Ou(Ou(Ou(Ou(Ou(Ou(Ou(Ou(Ou(Ou({},"".concat(o,"-focused"),ge),"".concat(o,"-multiple"),ne),"".concat(o,"-single"),!ne),"".concat(o,"-allow-clear"),D),"".concat(o,"-show-arrow"),Xe),"".concat(o,"-disabled"),y),"".concat(o,"-loading"),x),"".concat(o,"-open"),Te),"".concat(o,"-customize-input"),xe),"".concat(o,"-show-search"),re)),tt=c.createElement(Jf,{ref:ue,disabled:y,prefixCls:o,visible:Pe,popupElement:Je,animation:j,transitionName:z,dropdownStyle:B,dropdownClassName:H,direction:u,dropdownMatchSelectWidth:V,dropdownRender:$,dropdownAlign:W,placement:U,builtinPlacements:G,getPopupContainer:Y,empty:f,getTriggerDOMNode:function(e){return ce.current||e},onPopupVisibleChange:We,onPopupMouseEnter:function(){Ue({})}},we?c.cloneElement(we,{ref:_e}):c.createElement(Yp,yu({},e,{domRef:ce,prefixCls:o,inputElement:xe,ref:de,id:r,showSearch:re,autoClearSearchValue:A,mode:b,activeDescendantId:M,tagRender:s,values:p,open:Te,onToggleOpen:Re,activeValue:O,searchValue:ye,onSearch:Le,onSearchSubmit:function(e){e&&e.trim()&&P(e,{source:"submit"})},onRemove:function(e){var t=p.filter(function(t){return t!==e});h(t,{type:"remove",values:[e]})},tokenWithEnter:Ne})));return qe=we?tt:c.createElement("div",yu({className:et},oe,{ref:le,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=$e.indexOf(o);-1!==t&&$e.splice(t,1),be(),ae||r.contains(document.activeElement)||null===(e=de.current)||void 0===e||e.focus()});$e.push(o)}for(var i=arguments.length,a=new Array(i>1?i-1:0),s=1;s<i;s++)a[s-1]=arguments[s];null==ee||ee.apply(void 0,[e].concat(a))},onKeyDown:function(e){var t,n=ze(),r=e.key,o="Enter"===r;if(o&&("combobox"!==b&&e.preventDefault(),Te||Re(!0)),Be(!!ye),"Backspace"===r&&!n&&ne&&!ye&&p.length){for(var i=Su(p),a=null,s=i.length-1;s>=0;s-=1){var l=i[s];if(!l.disabled){i.splice(s,1),a=l;break}}a&&h(i,{type:"remove",values:[a]})}for(var c=arguments.length,u=new Array(c>1?c-1:0),d=1;d<c;d++)u[d-1]=arguments[d];!Te||o&&He.current||null===(t=pe.current)||void 0===t||t.onKeyDown.apply(t,[e].concat(u)),o&&(He.current=!0),null==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;Te&&(null===(o=pe.current)||void 0===o||o.onKeyUp.apply(o,[e].concat(n))),"Enter"===e.key&&(He.current=!1),null==Q||Q.apply(void 0,[e].concat(n))},onFocus:function(){ve(!0),y||(K&&!Ve.current&&K.apply(void 0,arguments),q.includes("focus")&&Re(!0)),Ve.current=!0},onBlur:function(){he.current=!0,ve(!1,function(){Ve.current=!1,he.current=!1,Re(!1)}),y||(ye&&("tags"===b?P(ye,{source:"submit"}):"multiple"===b&&P("",{source:"blur"})),Z&&Z.apply(void 0,arguments))}}),c.createElement(im,{visible:ge&&!Te,values:p}),tt,Ge,Ze&&Qe),c.createElement(gd.Provider,{value:Ye},qe)});"production"!==process.env.NODE_ENV&&(cm.displayName="BaseSelect");var um=function(){return null};um.isSelectOptGroup=!0;var dm=function(){return null};function pm(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(e){delete n[e]}),n}dm.isSelectOption=!0;var hm=c.forwardRef(function(e,t){var n=e.height,r=e.offsetY,o=e.offsetX,i=e.children,a=e.prefixCls,s=e.onInnerResize,l=e.innerProps,u=e.rtl,d=e.extra,p={},h={display:"flex",flexDirection:"column"};return void 0!==r&&(p={height:n,position:"relative",overflow:"hidden"},h=Mu(Mu({},h),{},Ou(Ou(Ou(Ou(Ou({transform:"translateY(".concat(r,"px)")},u?"marginRight":"marginLeft",-o),"position","absolute"),"left",0),"right",0),"top",0))),c.createElement("div",{style:p},c.createElement(up,{onResize:function(e){e.offsetHeight&&s&&s()}},c.createElement("div",yu({style:h,className:bu(Ou({},"".concat(a,"-holder-inner"),a)),ref:t},l),i,d)))});function fm(e){var t=e.children,n=e.setRef,r=c.useCallback(function(e){n(e)},[]);return c.cloneElement(t,{ref:r})}function mm(e,t,n){var r=Pu(c.useState(e),2),o=r[0],i=r[1],a=Pu(c.useState(null),2),s=a[0],l=a[1];return c.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 s={__EMPTY_ITEM__:!0};function l(e){return void 0!==e?n(e):s}for(var c=null,u=1!==Math.abs(i-a),d=0;d<o.length;d+=1){var p=l(r[d]);if(p!==l(o[d])){c=d,u=u||p!==l(o[d+1]);break}}return null===c?null:{index:c,multiple:u}}(o||[],e||[],t);void 0!==(null==r?void 0:r.index)&&(null==n||n(r.index),l(e[r.index])),i(e)},[e]),[s]}hm.displayName="Filler";var gm="object"===("undefined"==typeof navigator?"undefined":Eu(navigator))&&/Firefox/i.test(navigator.userAgent),vm=function(t,n,r,o){var i=e.useRef(!1),a=e.useRef(null);var s=e.useRef({top:t,bottom:n,left:r,right:o});return s.current.top=t,s.current.bottom=n,s.current.left=r,s.current.right=o,function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=e?t<0&&s.current.left||t>0&&s.current.right:t<0&&s.current.top||t>0&&s.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 bm(t,n,r,o,i,a,s){var l=e.useRef(0),c=e.useRef(null),u=e.useRef(null),d=e.useRef(!1),p=vm(n,r,o,i);var h=e.useRef(null),f=e.useRef(null);return[function(e){if(t){xp.cancel(f.current),f.current=xp(function(){h.current=null},2);var n=e.deltaX,r=e.deltaY,o=e.shiftKey,i=n,m=r;("sx"===h.current||!h.current&&o&&r&&!n)&&(i=r,m=0,h.current="sx");var g=Math.abs(i),v=Math.abs(m);null===h.current&&(h.current=a&&g>v?"x":"y"),"y"===h.current?function(e,t){if(xp.cancel(c.current),!p(!1,t)){var n=e;n._virtualHandled||(n._virtualHandled=!0,l.current+=t,u.current=t,gm||n.preventDefault(),c.current=xp(function(){var e=d.current?10:1;s(l.current*e,!1),l.current=0}))}}(e,m):function(e,t){s(t,!0),gm||e.preventDefault()}(e,i)}},function(e){t&&(d.current=e.detail===u.current)}]}var ym=function(){function e(){Zd(this,e),Ou(this,"maps",void 0),Ou(this,"id",0),Ou(this,"diffRecords",new Map),this.maps=Object.create(null)}return Jd(e,[{key:"set",value:function(e,t){this.diffRecords.set(e,this.maps[e]),this.maps[e]=t,this.id+=1}},{key:"get",value:function(e){return this.maps[e]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),e}();function xm(e){var t=parseFloat(e);return isNaN(t)?0:t}var wm=14/15;function _m(e){return Math.floor(Math.pow(e,.5))}function Sm(e,t){return("touches"in e?e.touches[0]:e)[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}var Em=c.forwardRef(function(e,t){var n=e.prefixCls,r=e.rtl,o=e.scrollOffset,i=e.scrollRange,a=e.onStartMove,s=e.onStopMove,l=e.onScroll,u=e.horizontal,d=e.spinSize,p=e.containerSize,h=e.style,f=e.thumbStyle,m=e.showScrollBar,g=Pu(c.useState(!1),2),v=g[0],b=g[1],y=Pu(c.useState(null),2),x=y[0],w=y[1],_=Pu(c.useState(null),2),S=_[0],E=_[1],k=!r,O=c.useRef(),C=c.useRef(),M=Pu(c.useState(m),2),T=M[0],A=M[1],P=c.useRef(),R=function(){!0!==m&&!1!==m&&(clearTimeout(P.current),A(!0),P.current=setTimeout(function(){A(!1)},3e3))},N=i-p||0,D=p-d||0,I=c.useMemo(function(){return 0===o||0===N?0:o/N*D},[o,N,D]),F=c.useRef({top:I,dragging:v,pageY:x,startTop:S});F.current={top:I,dragging:v,pageY:x,startTop:S};var L=function(e){b(!0),w(Sm(e,u)),E(F.current.top),a(),e.stopPropagation(),e.preventDefault()};c.useEffect(function(){var e=function(e){e.preventDefault()},t=O.current,n=C.current;return t.addEventListener("touchstart",e,{passive:!1}),n.addEventListener("touchstart",L,{passive:!1}),function(){t.removeEventListener("touchstart",e),n.removeEventListener("touchstart",L)}},[]);var j=c.useRef();j.current=N;var z=c.useRef();z.current=D,c.useEffect(function(){if(v){var e,t=function(t){var n=F.current,r=n.dragging,o=n.pageY,i=n.startTop;xp.cancel(e);var a=O.current.getBoundingClientRect(),s=p/(u?a.width:a.height);if(r){var c=(Sm(t,u)-o)*s,d=i;!k&&u?d-=c:d+=c;var h=j.current,f=z.current,m=f?d/f:0,g=Math.ceil(m*h);g=Math.max(g,0),g=Math.min(g,h),e=xp(function(){l(g,u)})}},n=function(){b(!1),s()};return window.addEventListener("mousemove",t,{passive:!0}),window.addEventListener("touchmove",t,{passive:!0}),window.addEventListener("mouseup",n,{passive:!0}),window.addEventListener("touchend",n,{passive:!0}),function(){window.removeEventListener("mousemove",t),window.removeEventListener("touchmove",t),window.removeEventListener("mouseup",n),window.removeEventListener("touchend",n),xp.cancel(e)}}},[v]),c.useEffect(function(){return R(),function(){clearTimeout(P.current)}},[o]),c.useImperativeHandle(t,function(){return{delayHidden:R}});var B="".concat(n,"-scrollbar"),H={position:"absolute",visibility:T?null:"hidden"},V={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return u?(Object.assign(H,{height:8,left:0,right:0,bottom:0}),Object.assign(V,Ou({height:"100%",width:d},k?"left":"right",I))):(Object.assign(H,Ou({width:8,top:0,bottom:0},k?"right":"left",0)),Object.assign(V,{width:"100%",height:d,top:I})),c.createElement("div",{ref:O,className:bu(B,Ou(Ou(Ou({},"".concat(B,"-horizontal"),u),"".concat(B,"-vertical"),!u),"".concat(B,"-visible"),T)),style:Mu(Mu({},H),h),onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},onMouseMove:R},c.createElement("div",{ref:C,className:bu("".concat(B,"-thumb"),Ou({},"".concat(B,"-thumb-moving"),v)),style:Mu(Mu({},V),f),onMouseDown:L}))});"production"!==process.env.NODE_ENV&&(Em.displayName="ScrollBar");function km(){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,20),Math.floor(t)}var Om=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],Cm=[],Mm={overflowY:"auto",overflowAnchor:"none"};function Tm(t,n){var r=t.prefixCls,i=void 0===r?"rc-virtual-list":r,a=t.className,s=t.height,l=t.itemHeight,u=t.fullHeight,d=void 0===u||u,p=t.style,h=t.data,f=t.children,m=t.itemKey,g=t.virtual,v=t.direction,b=t.scrollWidth,y=t.component,x=void 0===y?"div":y,w=t.onScroll,_=t.onVirtualScroll,S=t.onVisibleChange,E=t.innerProps,k=t.extraRender,O=t.styles,C=t.showScrollBar,M=void 0===C?"optional":C,T=Ru(t,Om),A=c.useCallback(function(e){return"function"==typeof m?m(e):null==e?void 0:e[m]},[m]),P=function(t,n,r){var o=Pu(c.useState(0),2),i=o[0],a=o[1],s=e.useRef(new Map),l=e.useRef(new ym),u=e.useRef(0);function d(){u.current+=1}function p(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];d();var t=function(){var e=!1;s.current.forEach(function(t,n){if(t&&t.offsetParent){var r=t.offsetHeight,o=getComputedStyle(t),i=o.marginTop,a=o.marginBottom,s=r+xm(i)+xm(a);l.current.get(n)!==s&&(l.current.set(n,s),e=!0)}}),e&&a(function(e){return e+1})};if(e)t();else{u.current+=1;var n=u.current;Promise.resolve().then(function(){n===u.current&&t()})}}return e.useEffect(function(){return d},[]),[function(e,o){var i=t(e),a=s.current.get(i);o?(s.current.set(i,o),p()):s.current.delete(i),!a!=!o&&(o?null==n||n(e):null==r||r(e))},p,l.current,i]}(A,null,null),R=Pu(P,4),N=R[0],D=R[1],I=R[2],F=R[3],L=!(!1===g||!s||!l),j=c.useMemo(function(){return Object.values(I.maps).reduce(function(e,t){return e+t},0)},[I.id,I.maps]),z=L&&h&&(Math.max(l*h.length,j)>s||!!b),B="rtl"===v,H=bu(i,Ou({},"".concat(i,"-rtl"),B),a),V=h||Cm,$=e.useRef(),W=e.useRef(),U=e.useRef(),G=Pu(e.useState(0),2),Y=G[0],X=G[1],q=Pu(e.useState(0),2),K=q[0],Z=q[1],Q=Pu(e.useState(!1),2),J=Q[0],ee=Q[1],te=function(){ee(!0)},ne=function(){ee(!1)},re={getKey:A};function oe(e){X(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 $.current.scrollTop=n,n})}var ie=e.useRef({start:0,end:V.length}),ae=e.useRef(),se=Pu(mm(V,A),1)[0];ae.current=se;var le=c.useMemo(function(){if(!L)return{scrollHeight:void 0,start:0,end:V.length-1,offset:void 0};var e;if(!z)return{scrollHeight:(null===(e=W.current)||void 0===e?void 0:e.offsetHeight)||0,start:0,end:V.length-1,offset:void 0};for(var t,n,r,o=0,i=V.length,a=0;a<i;a+=1){var c=V[a],u=A(c),d=I.get(u),p=o+(void 0===d?l:d);p>=Y&&void 0===t&&(t=a,n=o),p>Y+s&&void 0===r&&(r=a),o=p}return void 0===t&&(t=0,n=0,r=Math.ceil(s/l)),void 0===r&&(r=V.length-1),{scrollHeight:o,start:t,end:r=Math.min(r+1,V.length-1),offset:n}},[z,L,Y,V,F,s]),ce=le.scrollHeight,ue=le.start,de=le.end,pe=le.offset;ie.current.start=ue,ie.current.end=de,c.useLayoutEffect(function(){var e=I.getRecord();if(1===e.size){var t=Array.from(e.keys())[0],n=e.get(t),r=V[ue];if(r&&void 0===n)if(A(r)===t){var o=I.get(t)-l;oe(function(e){return e+o})}}I.resetRecord()},[ce]);var he=Pu(c.useState({width:0,height:s}),2),fe=he[0],me=he[1],ge=e.useRef(),ve=e.useRef(),be=c.useMemo(function(){return km(fe.width,b)},[fe.width,b]),ye=c.useMemo(function(){return km(fe.height,ce)},[fe.height,ce]),xe=ce-s,we=e.useRef(xe);we.current=xe;var _e=Y<=0,Se=Y>=xe,Ee=K<=0,ke=K>=b,Oe=vm(_e,Se,Ee,ke),Ce=function(){return{x:B?-K:K,y:Y}},Me=e.useRef(Ce()),Te=Nu(function(e){if(_){var t=Mu(Mu({},Ce()),e);Me.current.x===t.x&&Me.current.y===t.y||(_(t),Me.current=t)}});function Ae(e,t){var n=e;t?(o.flushSync(function(){Z(n)}),Te()):oe(n)}var Pe=function(e){var t=e,n=b?b-fe.width:0;return t=Math.max(t,0),t=Math.min(t,n)},Re=Nu(function(e,t){t?(o.flushSync(function(){Z(function(t){return Pe(t+(B?-e:e))})}),Te()):oe(function(t){return t+e})}),Ne=Pu(bm(L,_e,Se,Ee,ke,!!b,Re),2),De=Ne[0],Ie=Ne[1];!function(t,n,r){var o,i=e.useRef(!1),a=e.useRef(0),s=e.useRef(0),l=e.useRef(null),c=e.useRef(null),u=function(e){if(i.current){var t=Math.ceil(e.touches[0].pageX),n=Math.ceil(e.touches[0].pageY),o=a.current-t,l=s.current-n,u=Math.abs(o)>Math.abs(l);u?a.current=t:s.current=n;var d=r(u,u?o:l,!1,e);d&&e.preventDefault(),clearInterval(c.current),d&&(c.current=setInterval(function(){u?o*=wm:l*=wm;var e=Math.floor(u?o:l);(!r(u,e,!0)||Math.abs(e)<=.1)&&clearInterval(c.current)},16))}},d=function(){i.current=!1,o()},p=function(e){o(),1!==e.touches.length||i.current||(i.current=!0,a.current=Math.ceil(e.touches[0].pageX),s.current=Math.ceil(e.touches[0].pageY),l.current=e.target,l.current.addEventListener("touchmove",u,{passive:!1}),l.current.addEventListener("touchend",d,{passive:!0}))};o=function(){l.current&&(l.current.removeEventListener("touchmove",u),l.current.removeEventListener("touchend",d))},Fu(function(){return t&&n.current.addEventListener("touchstart",p,{passive:!0}),function(){var e;null===(e=n.current)||void 0===e||e.removeEventListener("touchstart",p),o(),clearInterval(c.current)}},[t])}(L,$,function(e,t,n,r){var o=r;return!Oe(e,t,n)&&((!o||!o._virtualHandled)&&(o&&(o._virtualHandled=!0),De({preventDefault:function(){},deltaX:e?t:0,deltaY:e?0:t}),!0))}),function(e,t,n){c.useEffect(function(){var r=t.current;if(e&&r){var o,i,a=!1,s=function(){xp.cancel(o)},l=function e(){s(),o=xp(function(){n(i),e()})},c=function(){a=!1,s()},u=function(e){if(!e.target.draggable&&0===e.button){var t=e;t._virtualHandled||(t._virtualHandled=!0,a=!0)}},d=function(e){if(a){var t=Sm(e,!1),n=r.getBoundingClientRect(),o=n.top,c=n.bottom;t<=o?(i=-_m(o-t),l()):t>=c?(i=_m(t-c),l()):s()}};return r.addEventListener("mousedown",u),r.ownerDocument.addEventListener("mouseup",c),r.ownerDocument.addEventListener("mousemove",d),r.ownerDocument.addEventListener("dragend",c),function(){r.removeEventListener("mousedown",u),r.ownerDocument.removeEventListener("mouseup",c),r.ownerDocument.removeEventListener("mousemove",d),r.ownerDocument.removeEventListener("dragend",c),s()}}},[e])}(z,$,function(e){oe(function(t){return t+e})}),Fu(function(){function e(e){var t=_e&&e.detail<0,n=Se&&e.detail>0;!L||t||n||e.preventDefault()}var t=$.current;return t.addEventListener("wheel",De,{passive:!1}),t.addEventListener("DOMMouseScroll",Ie,{passive:!0}),t.addEventListener("MozMousePixelScroll",e,{passive:!1}),function(){t.removeEventListener("wheel",De),t.removeEventListener("DOMMouseScroll",Ie),t.removeEventListener("MozMousePixelScroll",e)}},[L,_e,Se]),Fu(function(){if(b){var e=Pe(K);Z(e),Te({x:e})}},[fe.width,b]);var Fe=function(){var e,t;null===(e=ge.current)||void 0===e||e.delayHidden(),null===(t=ve.current)||void 0===t||t.delayHidden()},Le=function(e,t,n,r,o,i,a,s){var l=c.useRef(),u=Pu(c.useState(null),2),d=u[0],p=u[1];return Fu(function(){if(d&&d.times<10){if(!e.current)return void p(function(e){return Mu({},e)});i();var s=d.targetAlign,l=d.originAlign,c=d.index,u=d.offset,h=e.current.clientHeight,f=!1,m=s,g=null;if(h){for(var v=s||l,b=0,y=0,x=0,w=Math.min(t.length-1,c),_=0;_<=w;_+=1){var S=o(t[_]);y=b;var E=n.get(S);b=x=y+(void 0===E?r:E)}for(var k="top"===v?u:h-u,O=w;O>=0;O-=1){var C=o(t[O]),M=n.get(C);if(void 0===M){f=!0;break}if((k-=M)<=0)break}switch(v){case"top":g=y-u;break;case"bottom":g=x-h+u;break;default:var T=e.current.scrollTop;y<T?m="top":x>T+h&&(m="bottom")}null!==g&&a(g),g!==d.lastTop&&(f=!0)}f&&p(Mu(Mu({},d),{},{times:d.times+1,targetAlign:m,lastTop:g}))}else"production"!==process.env.NODE_ENV&&10===(null==d?void 0:d.times)&&Yu(!1,"Seems `scrollTo` with `rc-virtual-list` reach the max limitation. Please fire issue for us. Thanks.")},[d,e.current]),function(e){if(null!=e){if(xp.cancel(l.current),"number"==typeof e)a(e);else if(e&&"object"===Eu(e)){var n,r=e.align;n="index"in e?e.index:t.findIndex(function(t){return o(t)===e.key});var i=e.offset;p({times:0,index:n,offset:void 0===i?0:i,originAlign:r})}}else s()}}($,V,I,l,A,function(){return D(!0)},oe,Fe);c.useImperativeHandle(n,function(){return{nativeElement:U.current,getScrollInfo:Ce,scrollTo:function(e){var t;(t=e)&&"object"===Eu(t)&&("left"in t||"top"in t)?(void 0!==e.left&&Z(Pe(e.left)),Le(e.top)):Le(e)}}}),Fu(function(){if(S){var e=V.slice(ue,de+1);S(e,V)}},[ue,de,V]);var je=function(e,t,n,r){var o=Pu(c.useMemo(function(){return[new Map,[]]},[e,n.id,r]),2),i=o[0],a=o[1];return function(o){var s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o,l=i.get(o),c=i.get(s);if(void 0===l||void 0===c)for(var u=e.length,d=a.length;d<u;d+=1){var p,h=e[d],f=t(h);i.set(f,d);var m=null!==(p=n.get(f))&&void 0!==p?p:r;if(a[d]=(a[d-1]||0)+m,f===o&&(l=d),f===s&&(c=d),void 0!==l&&void 0!==c)break}return{top:a[l-1]||0,bottom:a[c]}}}(V,A,I,l),ze=null==k?void 0:k({start:ue,end:de,virtual:z,offsetX:K,offsetY:pe,rtl:B,getSize:je}),Be=function(e,t,n,r,o,i,a,s){var l=s.getKey;return e.slice(t,n+1).map(function(e,n){var s=a(e,t+n,{style:{width:r},offsetX:o}),u=l(e);return c.createElement(fm,{key:u,setRef:function(t){return i(e,t)}},s)})}(V,ue,de,b,K,N,f,re),He=null;s&&(He=Mu(Ou({},d?"height":"maxHeight",s),Mm),L&&(He.overflowY="hidden",b&&(He.overflowX="hidden"),J&&(He.pointerEvents="none")));var Ve={};return B&&(Ve.dir="rtl"),c.createElement("div",yu({ref:U,style:Mu(Mu({},p),{},{position:"relative"}),className:H},Ve,T),c.createElement(up,{onResize:function(e){me({width:e.offsetWidth,height:e.offsetHeight})}},c.createElement(x,{className:"".concat(i,"-holder"),style:He,ref:$,onScroll:function(e){var t=e.currentTarget.scrollTop;t!==Y&&oe(t),null==w||w(e),Te()},onMouseEnter:Fe},c.createElement(hm,{prefixCls:i,height:ce,offsetX:K,offsetY:pe,scrollWidth:b,onInnerResize:D,ref:W,innerProps:E,rtl:B,extra:ze},Be))),z&&ce>s&&c.createElement(Em,{ref:ge,prefixCls:i,scrollOffset:Y,scrollRange:ce,rtl:B,onScroll:Ae,onStartMove:te,onStopMove:ne,spinSize:ye,containerSize:fe.height,style:null==O?void 0:O.verticalScrollBar,thumbStyle:null==O?void 0:O.verticalScrollBarThumb,showScrollBar:M}),z&&b>fe.width&&c.createElement(Em,{ref:ve,prefixCls:i,scrollOffset:K,scrollRange:b,rtl:B,onScroll:Ae,onStartMove:te,onStopMove:ne,spinSize:be,containerSize:fe.width,horizontal:!0,style:null==O?void 0:O.horizontalScrollBar,thumbStyle:null==O?void 0:O.horizontalScrollBarThumb,showScrollBar:M}))}var Am=c.forwardRef(Tm);Am.displayName="List";var Pm=["disabled","title","children","style","className"];function Rm(e){return"string"==typeof e||"number"==typeof e}var Nm=function(t,n){var r=c.useContext(gd),o=r.prefixCls,i=r.id,a=r.open,s=r.multiple,l=r.mode,u=r.searchValue,d=r.toggleOpen,p=r.notFoundContent,h=r.onPopupScroll,f=c.useContext(om),m=f.maxCount,g=f.flattenOptions,v=f.onActiveValue,b=f.defaultActiveFirstOption,y=f.onSelect,x=f.menuItemSelectedIcon,w=f.rawValues,_=f.fieldNames,S=f.virtual,E=f.direction,k=f.listHeight,O=f.listItemHeight,C=f.optionRender,M="".concat(o,"-item"),T=rd(function(){return g},[a,g],function(e,t){return t[0]&&e[1]!==t[1]}),A=c.useRef(null),P=c.useMemo(function(){return s&&tm(m)&&(null==w?void 0:w.size)>=m},[s,m,null==w?void 0:w.size]),R=function(e){e.preventDefault()},N=function(e){var t;null===(t=A.current)||void 0===t||t.scrollTo("number"==typeof e?{index:e}:e)},D=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=T.length,r=0;r<n;r+=1){var o=(e+r*t+n)%n,i=T[o]||{},a=i.group,s=i.data;if(!(a||null!=s&&s.disabled||P))return o}return-1},I=Pu(c.useState(function(){return D(0)}),2),F=I[0],L=I[1],j=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];L(e);var n={source:t?"keyboard":"mouse"},r=T[e];r?v(r.value,e,n):v(null,-1,n)};e.useEffect(function(){j(!1!==b?D(0):-1)},[T.length,u]);var z=c.useCallback(function(e){return w.has(e)&&"combobox"!==l},[l,Su(w).toString(),w.size]);e.useEffect(function(){var e,t=setTimeout(function(){if(!s&&a&&1===w.size){var e=Array.from(w)[0],t=T.findIndex(function(t){return t.data.value===e});-1!==t&&(j(t),N(t))}});a&&(null===(e=A.current)||void 0===e||e.scrollTo(void 0));return function(){return clearTimeout(t)}},[a,u]);var B=function(e){void 0!==e&&y(e,{selected:!w.has(e)}),s||d(!1)};if(c.useImperativeHandle(n,function(){return{onKeyDown:function(e){var t=e.which,n=e.ctrlKey;switch(t){case bd.N:case bd.P:case bd.UP:case bd.DOWN:var r=0;if(t===bd.UP?r=-1:t===bd.DOWN?r=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&n&&(t===bd.N?r=1:t===bd.P&&(r=-1)),0!==r){var o=D(F+r,r);N(o),j(o,!0)}break;case bd.ENTER:var i,s=T[F];!s||null!=s&&null!==(i=s.data)&&void 0!==i&&i.disabled||P?B(void 0):B(s.value),a&&e.preventDefault();break;case bd.ESC:d(!1),a&&e.stopPropagation()}},onKeyUp:function(){},scrollTo:function(e){N(e)}}}),0===T.length)return c.createElement("div",{role:"listbox",id:"".concat(i,"_list"),className:"".concat(M,"-empty"),onMouseDown:R},p);var H=Object.keys(_).map(function(e){return _[e]}),V=function(e){return e.label};function $(e,t){return{role:e.group?"presentation":"option",id:"".concat(i,"_list_").concat(t)}}var W=function(e){var t=T[e];if(!t)return null;var n=t.data||{},r=n.value,o=t.group,i=wd(n,!0),a=V(t);return t?c.createElement("div",yu({"aria-label":"string"!=typeof a||o?null:a},i,{key:e},$(t,e),{"aria-selected":z(r)}),r):null},U={role:"listbox",id:"".concat(i,"_list")};return c.createElement(c.Fragment,null,S&&c.createElement("div",yu({},U,{style:{height:0,width:0,overflow:"hidden"}}),W(F-1),W(F),W(F+1)),c.createElement(Am,{itemKey:"key",ref:A,data:T,height:k,itemHeight:O,fullHeight:!1,onMouseDown:R,onScroll:h,virtual:S,direction:E,innerProps:S?null:U},function(e,t){var n=e.group,r=e.groupOption,o=e.data,i=e.label,a=e.value,s=o.key;if(n){var l,u=null!==(l=o.title)&&void 0!==l?l:Rm(i)?i.toString():void 0;return c.createElement("div",{className:bu(M,"".concat(M,"-group"),o.className),title:u},void 0!==i?i:s)}var d=o.disabled,p=o.title;o.children;var h=o.style,f=o.className,m=pm(Ru(o,Pm),H),g=z(a),v=d||!g&&P,b="".concat(M,"-option"),y=bu(M,b,f,Ou(Ou(Ou(Ou({},"".concat(b,"-grouped"),r),"".concat(b,"-active"),F===t&&!v),"".concat(b,"-disabled"),v),"".concat(b,"-selected"),g)),w=V(e),_=!x||"function"==typeof x||g,E="number"==typeof w?w:w||a,k=Rm(E)?E.toString():void 0;return void 0!==p&&(k=p),c.createElement("div",yu({},wd(m),S?{}:$(e,t),{"aria-selected":g,className:y,title:k,onMouseMove:function(){F===t||v||j(t)},onClick:function(){v||B(a)},style:h}),c.createElement("div",{className:"".concat(b,"-content")},"function"==typeof C?C(e,{index:t}):E),c.isValidElement(x)||g,_&&c.createElement(md,{className:"".concat(M,"-option-state"),customizeIcon:x,customizeIconProps:{value:a,disabled:v,isSelected:g}},g?"✓":null))}))},Dm=c.forwardRef(Nm);"production"!==process.env.NODE_ENV&&(Dm.displayName="OptionList");function Im(e,t){return Lp(e).join("").toUpperCase().includes(t)}var Fm=0,Lm="test"!==process.env.NODE_ENV&&Du();function jm(e){var t=Pu(c.useState(),2),n=t[0],r=t[1];return c.useEffect(function(){var e;r("rc_select_".concat((Lm?(e=Fm,Fm+=1):e="TEST_OR_SSR",e)))},[]),e||n}var zm=["children","value"],Bm=["children"];function Hm(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return _d(e).map(function(e,n){if(!c.isValidElement(e)||!e.type)return null;var r=e,o=r.type.isSelectOptGroup,i=r.key,a=r.props,s=a.children,l=Ru(a,Bm);return t||!o?function(e){var t=e,n=t.key,r=t.props,o=r.children,i=r.value;return Mu({key:n,value:void 0!==i?i:n,children:o},Ru(r,zm))}(e):Mu(Mu({key:"__RC_SELECT_GRP__".concat(null===i?n:i,"__"),label:i},l),{},{options:Hm(s)})}).filter(function(e){return e})}function Vm(e){var t=c.useRef();t.current=e;var n=c.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}var $m=["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"],Wm=["inputValue"];var Um=c.forwardRef(function(e,t){var n=e.id,r=e.mode,o=e.prefixCls,i=void 0===o?"rc-select":o,a=e.backfill,s=e.fieldNames,l=e.inputValue,u=e.searchValue,d=e.onSearch,p=e.autoClearSearchValue,h=void 0===p||p,f=e.onSelect,m=e.onDeselect,g=e.dropdownMatchSelectWidth,v=void 0===g||g,b=e.filterOption,y=e.filterSort,x=e.optionFilterProp,w=e.optionLabelProp,_=e.options,S=e.optionRender,E=e.children,k=e.defaultActiveFirstOption,O=e.menuItemSelectedIcon,C=e.virtual,M=e.direction,T=e.listHeight,A=void 0===T?200:T,P=e.listItemHeight,R=void 0===P?20:P,N=e.labelRender,D=e.value,I=e.defaultValue,F=e.labelInValue,L=e.onChange,j=e.maxCount,z=Ru(e,$m),B=jm(n),H=lm(r),V=!(_||!E),$=c.useMemo(function(){return(void 0!==b||"combobox"!==r)&&b},[b,r]),W=c.useMemo(function(){return nm(s,V)},[JSON.stringify(s),V]),U=Pu(Bu("",{value:void 0!==u?u:l,postState:function(e){return e||""}}),2),G=U[0],Y=U[1],X=function(e,t,n,r,o){return c.useMemo(function(){var i=e;!e&&(i=Hm(t));var a=new Map,s=new Map,l=function(e,t,n){n&&"string"==typeof n&&e.set(t[n],t)};return function e(t){for(var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],c=0;c<t.length;c+=1){var u=t[c];!u[n.options]||i?(a.set(u[n.value],u),l(s,u,n.label),l(s,u,r),l(s,u,o)):e(u[n.options],!0)}}(i),{options:i,valueOptions:a,labelOptions:s}},[e,t,n,r,o])}(_,E,W,x,w),q=X.valueOptions,K=X.labelOptions,Z=X.options,Q=c.useCallback(function(e){return Lp(e).map(function(e){var t,n,r,o,i,a;(function(e){return!e||"object"!==Eu(e)})(e)?t=e:(r=e.key,n=e.label,t=null!==(a=e.value)&&void 0!==a?a:r);var s,l=q.get(t);if(l&&(void 0===n&&(n=null==l?void 0:l[w||W.label]),void 0===r&&(r=null!==(s=null==l?void 0:l.key)&&void 0!==s?s:t),o=null==l?void 0:l.disabled,i=null==l?void 0:l.title,"production"!==process.env.NODE_ENV&&!w)){var u=null==l?void 0:l[W.label];void 0===u||c.isValidElement(u)||c.isValidElement(n)||u===n||Yu(!1,"`label` of `value` is not same as `label` in Select options.")}return{label:n,value:t,key:r,disabled:o,title:i}})},[W,w,q]),J=Pu(Bu(I,{value:D}),2),ee=J[0],te=J[1],ne=c.useMemo(function(){var e,t=Q(H&&null===ee?[]:ee);return"combobox"===r&&function(e){return!e&&0!==e}(null===(e=t[0])||void 0===e?void 0:e.value)?[]:t},[ee,Q,r,H]),re=function(e,t){var n=c.useRef({values:new Map,options:new Map});return[c.useMemo(function(){var r=n.current,o=r.values,i=r.options,a=e.map(function(e){var t;return void 0===e.label?Mu(Mu({},e),{},{label:null===(t=o.get(e.value))||void 0===t?void 0:t.label}):e}),s=new Map,l=new Map;return a.forEach(function(e){s.set(e.value,e),l.set(e.value,t.get(e.value)||i.get(e.value))}),n.current.values=s,n.current.options=l,a},[e,t]),c.useCallback(function(e){return t.get(e)||n.current.options.get(e)},[t])]}(ne,q),oe=Pu(re,2),ie=oe[0],ae=oe[1],se=c.useMemo(function(){if(!r&&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 Mu(Mu({},e),{},{label:null!==(t="function"==typeof N?N(e):e.label)&&void 0!==t?t:e.value})})},[r,ie,N]),le=c.useMemo(function(){return new Set(ie.map(function(e){return e.value}))},[ie]);c.useEffect(function(){if("combobox"===r){var e,t=null===(e=ie[0])||void 0===e?void 0:e.value;Y(function(e){return null!=e}(t)?String(t):"")}},[ie]);var ce=Vm(function(e,t){var n=null!=t?t:e;return Ou(Ou({},W.value,e),W.label,n)}),ue=function(e,t,n,r,o){return c.useMemo(function(){if(!n||!1===r)return e;var i=t.options,a=t.label,s=t.value,l=[],c="function"==typeof r,u=n.toUpperCase(),d=c?r:function(e,t){return o?Im(t[o],u):t[i]?Im(t["children"!==a?a:"label"],u):Im(t[s],u)},p=c?function(e){return rm(e)}:function(e){return e};return e.forEach(function(e){if(e[i])if(d(n,p(e)))l.push(e);else{var t=e[i].filter(function(e){return d(n,p(e))});t.length&&l.push(Mu(Mu({},e),{},Ou({},i,t)))}else d(n,p(e))&&l.push(e)}),l},[e,r,o,n,t])}(c.useMemo(function(){if("tags"!==r)return Z;var e=Su(Z);return Su(ie).sort(function(e,t){return e.value<t.value?-1:1}).forEach(function(t){var n=t.value;(function(e){return q.has(e)})(n)||e.push(ce(n,t.label))}),e},[ce,Z,q,ie,r]),W,G,$,x),de=c.useMemo(function(){return"tags"!==r||!G||ue.some(function(e){return e[x||"value"]===G})||ue.some(function(e){return e[W.value]===G})?ue:[ce(G)].concat(Su(ue))},[ce,x,r,ue,G,W]),pe=function e(t){return Su(t).sort(function(e,t){return y(e,t,{searchValue:G})}).map(function(t){return Array.isArray(t.options)?Mu(Mu({},t),{},{options:t.options.length>0?e(t.options):t.options}):t})},he=c.useMemo(function(){return y?pe(de):de},[de,y,G]),fe=c.useMemo(function(){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],i=nm(n,!1),a=i.label,s=i.value,l=i.options,c=i.groupLabel;return function e(t,n){Array.isArray(t)&&t.forEach(function(t){if(n||!(l in t)){var i=t[s];o.push({key:em(t,o.length),groupOption:n,data:t,label:t[a],value:i})}else{var u=t[c];void 0===u&&r&&(u=t.label),o.push({key:em(t,o.length),group:!0,data:t,label:u}),e(t[l],!0)}})}(e,!1),o}(he,{fieldNames:W,childrenAsData:V})},[he,W,V]),me=function(e){var t=Q(e);if(te(t),L&&(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.value)}))){var n=F?t:t.map(function(e){return e.value}),r=t.map(function(e){return rm(ae(e.value))});L(H?n:n[0],H?r:r[0])}},ge=Pu(c.useState(null),2),ve=ge[0],be=ge[1],ye=Pu(c.useState(0),2),xe=ye[0],we=ye[1],_e=void 0!==k?k:"combobox"!==r,Se=c.useCallback(function(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).source,o=void 0===n?"keyboard":n;we(t),a&&"combobox"===r&&null!==e&&"keyboard"===o&&be(String(e))},[a,r]),Ee=function(e,t,n){var r=function(){var t,n=ae(e);return[F?{label:null==n?void 0:n[W.label],value:e,key:null!==(t=null==n?void 0:n.key)&&void 0!==t?t:e}:e,rm(n)]};if(t&&f){var o=Pu(r(),2),i=o[0],a=o[1];f(i,a)}else if(!t&&m&&"clear"!==n){var s=Pu(r(),2),l=s[0],c=s[1];m(l,c)}},ke=Vm(function(e,t){var n,o=!H||t.selected;n=o?H?[].concat(Su(ie),[e]):[e]:ie.filter(function(t){return t.value!==e}),me(n),Ee(e,o),"combobox"===r?be(""):lm&&!h||(Y(""),be(""))}),Oe=c.useMemo(function(){var e=!1!==C&&!1!==v;return Mu(Mu({},X),{},{flattenOptions:fe,onActiveValue:Se,defaultActiveFirstOption:_e,onSelect:ke,menuItemSelectedIcon:O,rawValues:le,fieldNames:W,virtual:e,direction:M,listHeight:A,listItemHeight:R,childrenAsData:V,maxCount:j,optionRender:S})},[j,X,fe,Se,_e,ke,O,le,W,C,v,M,A,R,V,S]);return"production"!==process.env.NODE_ENV&&(function(e){var t=e.mode,n=e.options,r=e.children,o=e.backfill,i=e.allowClear,a=e.placeholder,s=e.getInputElement,l=e.showSearch,u=e.onSearch,d=e.defaultOpen,p=e.autoFocus,h=e.labelInValue,f=e.value,m=e.inputValue,g=e.optionLabelProp,v=lm(t),b=void 0!==l?l:v||"combobox"===t,y=n||Hm(r);if(Yu("tags"!==t||y.every(function(e){return!e.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),("tags"===t||"combobox"===t)&&Yu(!y.some(function(e){return e.options?e.options.some(function(e){return"number"==typeof("value"in e?e.value:e.key)}):"number"==typeof("value"in e?e.value:e.key)}),"`value` of Option should not use number type when `mode` is `tags` or `combobox`."),Yu("combobox"!==t||!g,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Yu("combobox"===t||!o,"`backfill` only works with `combobox` mode."),Yu("combobox"===t||!s,"`getInputElement` only work with `combobox` mode."),Xu("combobox"!==t||!s||!i||!a,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),u&&!b&&"combobox"!==t&&"tags"!==t&&Yu(!1,"`onSearch` should work with `showSearch` instead of use alone."),Xu(!d||p,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),null!=f){var x=Lp(f);Yu(!h||x.every(function(e){return"object"===Eu(e)&&("key"in e||"value"in e)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Yu(!v||Array.isArray(f),"`value` should be array when `mode` is `multiple` or `tags`")}if(r){var w=null;_d(r).some(function(e){if(!c.isValidElement(e)||!e.type)return!1;var t=e.type;return!t.isSelectOption&&(t.isSelectOptGroup?!_d(e.props.children).every(function(t){return!(c.isValidElement(t)&&e.type&&!t.type.isSelectOption&&(w=t.type,1))}):(w=t,!0))}),w&&Yu(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(w.displayName||w.name||w,"`.")),Yu(void 0===m,"`inputValue` is deprecated, please use `searchValue` instead.")}}(e),function(e,t){e&&function e(n){for(var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=0;o<n.length;o++){var i=n[o];if(null===i[null==t?void 0:t.value])return Yu(!1,"`value` in Select options should not be `null`."),!0;if(!r&&Array.isArray(i[null==t?void 0:t.options])&&e(i[null==t?void 0:t.options],!0))break}}(e)}(Z,W)),c.createElement(om.Provider,{value:Oe},c.createElement(cm,yu({},z,{id:B,prefixCls:i,ref:t,omitDomProps:Wm,mode:r,displayValues:se,onDisplayValuesChange:function(e,t){me(e);var n=t.type,r=t.values;"remove"!==n&&"clear"!==n||r.forEach(function(e){Ee(e.value,!1,n)})},direction:M,searchValue:G,onSearch:function(e,t){if(Y(e),be(null),"submit"!==t.source)"blur"!==t.source&&("combobox"===r&&me(e),null==d||d(e));else{var n=(e||"").trim();if(n){var o=Array.from(new Set([].concat(Su(le),[n])));me(o),Ee(n,!0),Y("")}}},autoClearSearchValue:h,onSearchSplit:function(e){var t=e;"tags"!==r&&(t=e.map(function(e){var t=K.get(e);return null==t?void 0:t.value}).filter(function(e){return void 0!==e}));var n=Array.from(new Set([].concat(Su(le),Su(t))));me(n),n.forEach(function(e){Ee(e,!0)})},dropdownMatchSelectWidth:v,OptionList:Dm,emptyOptions:!fe.length,activeValue:ve,activeDescendantId:"".concat(B,"_list_").concat(xe)})))});"production"!==process.env.NODE_ENV&&(Um.displayName="Select");var Gm=Um;function Ym(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(Yu(!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 s=i+1;if(Array.isArray(t)){if(!Array.isArray(o)||t.length!==o.length)return!1;for(var l=0;l<t.length;l++)if(!e(t[l],o[l],s))return!1;return!0}if(t&&o&&"object"===Eu(t)&&"object"===Eu(o)){var c=Object.keys(t);return c.length===Object.keys(o).length&&c.every(function(n){return e(t[n],o[n],s)})}return!1}(e,t)}Gm.Option=dm,Gm.OptGroup=um;function Xm(e){return e.join("%")}var qm=function(){function e(t){Zd(this,e),Ou(this,"instanceId",void 0),Ou(this,"cache",new Map),Ou(this,"extracted",new Set),this.instanceId=t}return Jd(e,[{key:"get",value:function(e){return this.opGet(Xm(e))}},{key:"opGet",value:function(e){return this.cache.get(e)||null}},{key:"update",value:function(e,t){return this.opUpdate(Xm(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}(),Km="data-token-hash",Zm="data-css-hash",Qm="__cssinjs_instance__";var Jm=c.createContext({hashPriority:"low",cache:function(){var e=Math.random().toString(12).slice(2);if("undefined"!=typeof document&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(Zm,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(t){t[Qm]=t[Qm]||e,t[Qm]===e&&document.head.insertBefore(t,n)});var r={};Array.from(document.querySelectorAll("style[".concat(Zm,"]"))).forEach(function(t){var n,o=t.getAttribute(Zm);r[o]?t[Qm]===e&&(null===(n=t.parentNode)||void 0===n||n.removeChild(t)):r[o]=!0})}return new qm(e)}(),defaultCache:!0}),eg=Jm;var tg=function(){function e(){Zd(this,e),Ou(this,"cache",void 0),Ou(this,"keys",void 0),Ou(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return Jd(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=Pu(e,2)[1];return r.internalGet(t)[1]<n?[t,r.internalGet(t)[1]]:e},[this.keys[0],this.cacheCallTimes]),i=Pu(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}();Ou(tg,"MAX_CACHE_SIZE",20),Ou(tg,"MAX_CACHE_OFFSET",5);var ng=0,rg=function(){function e(t){Zd(this,e),Ou(this,"derivatives",void 0),Ou(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=ng,0===t.length&&$u(t.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),ng+=1}return Jd(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce(function(t,n){return n(e,t)},void 0)}}]),e}(),og=new tg;function ig(e){var t=Array.isArray(e)?e:[e];return og.has(t)||og.set(t,new rg(t)),og.get(t)}var ag=new WeakMap,sg={};var lg=new WeakMap;function cg(e){var t=lg.get(e)||"";return t||(Object.keys(e).forEach(function(n){var r=e[n];t+=n,r instanceof rg?t+=r.id:r&&"object"===Eu(r)?t+=cg(r):t+=r}),t=E(t),lg.set(e,t)),t}function ug(e,t){return E("".concat(t,"_").concat(cg(e)))}var dg=Du();function pg(e){return"number"==typeof e?"".concat(e,"px"):e}function hg(e,t,n){if(arguments.length>4&&void 0!==arguments[4]&&arguments[4])return e;var r=Mu(Mu({},arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}),{},Ou(Ou({},Km,t),Zm,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 fg=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()},mg=function(e,t,n){return Object.keys(e).length?".".concat(t).concat(null!=n&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(e).map(function(e){var t=Pu(e,2),n=t[0],r=t[1];return"".concat(n,":").concat(r,";")}).join(""),"}"):""},gg=function(e,t,n){var r={},o={};return Object.entries(e).forEach(function(e){var t,i,a=Pu(e,2),s=a[0],l=a[1];if(null!=n&&null!==(t=n.preserve)&&void 0!==t&&t[s])o[s]=l;else if(!("string"!=typeof l&&"number"!=typeof l||null!=n&&null!==(i=n.ignore)&&void 0!==i&&i[s])){var c,u=fg(s,null==n?void 0:n.prefix);r[u]="number"!=typeof l||null!=n&&null!==(c=n.unitless)&&void 0!==c&&c[s]?String(l):"".concat(l,"px"),o[s]="var(".concat(u,")")}}),[o,mg(r,t,{scope:null==n?void 0:n.scope})]},vg=Mu({},c).useInsertionEffect,bg=vg?function(e,t,n){return vg(function(){return e(),t()},n)}:function(e,t,n){c.useMemo(e,n),Fu(function(){return t(!0)},n)},yg=void 0!==Mu({},c).useInsertionEffect?function(e){var t=[],n=!1;return c.useEffect(function(){return n=!1,function(){n=!0,t.length&&t.forEach(function(e){return e()})}},e),function(e){n?"production"!==process.env.NODE_ENV&&$u(!1,"[Ant Design CSS-in-JS] You are registering a cleanup function after unmount, which will not have any effect."):t.push(e)}}:function(){return function(e){e()}};var xg=!1;var wg="production"===process.env.NODE_ENV?function(){return!1}:function(){return xg};if("production"!==process.env.NODE_ENV&&"undefined"!=typeof module&&module&&module.hot&&"undefined"!=typeof window){var _g="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:null;if(_g&&"function"==typeof _g.webpackHotUpdate){var Sg=_g.webpackHotUpdate;_g.webpackHotUpdate=function(){return xg=!0,setTimeout(function(){xg=!1},0),Sg.apply(void 0,arguments)}}}function Eg(e,t,n,r,o){var i=c.useContext(eg).cache,a=Xm([e].concat(Su(t))),s=yg([a]),l=wg(),u=function(e){i.opUpdate(a,function(t){var o=Pu(t||[void 0,void 0],2),i=o[0],a=void 0===i?0:i,s=o[1],c=s;"production"!==process.env.NODE_ENV&&s&&l&&(null==r||r(c,l),c=null);var u=[a,c||n()];return e?e(u):u})};c.useMemo(function(){u()},[a]);var d=i.opGet(a);"production"===process.env.NODE_ENV||d||(u(),d=i.opGet(a));var p=d[1];return bg(function(){null==o||o(p)},function(e){return u(function(t){var n=Pu(t,2),r=n[0],i=n[1];return e&&0===r&&(null==o||o(p)),[r+1,i]}),function(){i.opUpdate(a,function(t){var n=Pu(t||[],2),o=n[0],l=void 0===o?0:o,c=n[1];return 0===l-1?(s(function(){!e&&i.opGet(a)||null==r||r(c,!1)}),null):[l-1,c]})}},[a]),p}var kg={},Og="production"!==process.env.NODE_ENV?"css-dev-only-do-not-override":"css",Cg=new Map;function Mg(e,t){Cg.set(e,(Cg.get(e)||0)-1);var n=new Set;Cg.forEach(function(e,t){e<=0&&n.add(t)}),Cg.size-n.size>0&&n.forEach(function(e){!function(e,t){"undefined"!=typeof document&&document.querySelectorAll("style[".concat(Km,'="').concat(e,'"]')).forEach(function(e){var n;e[Qm]===t&&(null===(n=e.parentNode)||void 0===n||n.removeChild(e))})}(e,t),Cg.delete(e)})}var Tg="token";function Ag(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=e.useContext(eg),i=o.cache.instanceId,a=o.container,s=r.salt,l=void 0===s?"":s,c=r.override,u=void 0===c?kg:c,d=r.formatToken,p=r.getComputedToken,h=r.cssVar,f=function(e,t){for(var n=ag,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(sg)||n.set(sg,e()),n.get(sg)}(function(){return Object.assign.apply(Object,[{}].concat(Su(n)))},n),m=cg(f),g=cg(u),v=h?cg(h):"",b=Eg(Tg,[l,t.id,m,g,v],function(){var e,n=p?p(f,u,t):function(e,t,n,r){var o=Mu(Mu({},n.getDerivativeToken(e)),t);return r&&(o=r(o)),o}(f,u,t,d),r=Mu({},n),o="";if(h){var i=Pu(gg(n,h.key,{prefix:h.prefix,ignore:h.ignore,unitless:h.unitless,preserve:h.preserve}),2);n=i[0],o=i[1]}var a=ug(n,l);n._tokenKey=a,r._tokenKey=ug(r,l);var s=null!==(e=null==h?void 0:h.key)&&void 0!==e?e:a;n._themeKey=s,function(e){Cg.set(e,(Cg.get(e)||0)+1)}(s);var c="".concat(Og,"-").concat(E(a));return n._hashId=c,[n,c,r,o,(null==h?void 0:h.key)||""]},function(e){Mg(e[0]._themeKey,i)},function(e){var t=Pu(e,4),n=t[0],r=t[3];if(h&&r){var o=vh(r,E("css-variables-".concat(n._themeKey)),{mark:Zm,prepend:"queue",attachTo:a,priority:-999});o[Qm]=i,o.setAttribute(Km,n._themeKey)}});return b}var Pg,Rg={exports:{}};var Ng=(Pg||(Pg=1,function(e){var t="-ms-",n="-moz-",r="-webkit-",o="comm",i="rule",a="decl",s="@page",l="@media",c="@import",u="@charset",d="@viewport",p="@supports",h="@document",f="@namespace",m="@keyframes",g="@font-face",v="@counter-style",b="@font-feature-values",y="@layer",x="@scope",w=Math.abs,_=String.fromCharCode,S=Object.assign;function E(e,t){return 45^T(e,0)?(((t<<2^T(e,0))<<2^T(e,1))<<2^T(e,2))<<2^T(e,3):0}function k(e){return e.trim()}function O(e,t){return(e=t.exec(e))?e[0]:e}function C(e,t,n){return e.replace(t,n)}function M(e,t,n){return e.indexOf(t,n)}function T(e,t){return 0|e.charCodeAt(t)}function A(e,t,n){return e.slice(t,n)}function P(e){return e.length}function R(e){return e.length}function N(e,t){return t.push(e),e}function D(e,t){return e.map(t).join("")}function I(e,t){return e.filter(function(e){return!O(e,t)})}function F(t,n,r,o,i,a,s,l){return{value:t,root:n,parent:r,type:o,props:i,children:a,line:e.line,column:e.column,length:s,return:"",siblings:l}}function L(e,t){return S(F("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function j(e){for(;e.root;)e=L(e.root,{children:[e]});N(e,e.siblings)}function z(){return e.character}function B(){return e.character=e.position>0?T(e.characters,--e.position):0,e.column--,10===e.character&&(e.column=1,e.line--),e.character}function H(){return e.character=e.position<e.length?T(e.characters,e.position++):0,e.column++,10===e.character&&(e.column=1,e.line++),e.character}function V(){return T(e.characters,e.position)}function $(){return e.position}function W(t,n){return A(e.characters,t,n)}function U(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 G(t){return e.line=e.column=1,e.length=P(e.characters=t),e.position=0,[]}function Y(t){return e.characters="",t}function X(t){return k(W(e.position-1,J(91===t?t+2:40===t?t+1:t)))}function q(e){return Y(Z(G(e)))}function K(t){for(;(e.character=V())&&e.character<33;)H();return U(t)>2||U(e.character)>3?"":" "}function Z(t){for(;H();)switch(U(e.character)){case 0:N(te(e.position-1),t);break;case 2:N(X(e.character),t);break;default:N(_(e.character),t)}return t}function Q(t,n){for(;--n&&H()&&!(e.character<48||e.character>102||e.character>57&&e.character<65||e.character>70&&e.character<97););return W(t,$()+(n<6&&32==V()&&32==H()))}function J(t){for(;H();)switch(e.character){case t:return e.position;case 34:case 39:34!==t&&39!==t&&J(e.character);break;case 40:41===t&&J(t);break;case 92:H()}return e.position}function ee(t,n){for(;H()&&t+e.character!==57&&(t+e.character!==84||47!==V()););return"/*"+W(n,e.position-1)+"*"+_(47===t?t:H())}function te(t){for(;!U(V());)H();return W(t,e.position)}function ne(e){return Y(re("",null,null,null,[""],e=G(e),0,[0],e))}function re(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,d=a,p=0,h=0,f=0,m=1,g=1,v=1,b=0,y="",x=o,S=i,E=r,k=y;g;)switch(f=b,b=H()){case 40:if(108!=f&&58==T(k,d-1)){-1!=M(k+=C(X(b),"&","&\f"),"&\f",w(c?s[c-1]:0))&&(v=-1);break}case 34:case 39:case 91:k+=X(b);break;case 9:case 10:case 13:case 32:k+=K(f);break;case 92:k+=Q($()-1,7);continue;case 47:switch(V()){case 42:case 47:N(ie(ee(H(),$()),t,n,l),l),5!=U(f||1)&&5!=U(V()||1)||!P(k)||" "===A(k,-1,void 0)||(k+=" ");break;default:k+="/"}break;case 123*m:s[c++]=P(k)*v;case 125*m:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+u:-1==v&&(k=C(k,/\f/g,"")),h>0&&(P(k)-d||0===m&&47===f)&&N(h>32?ae(k+";",r,n,d-1,l):ae(C(k," ","")+";",r,n,d-2,l),l);break;case 59:k+=";";default:if(N(E=oe(k,t,n,c,u,o,s,y,x=[],S=[],d,i),i),123===b)if(0===u)re(k,t,E,E,x,i,d,s,S);else{switch(p){case 99:if(110===T(k,3))break;case 108:if(97===T(k,2))break;default:u=0;case 100:case 109:case 115:}u?re(e,E,E,r&&N(oe(e,E,E,0,0,o,s,y,o,x=[],d,S),S),o,S,d,s,r?x:S):re(k,E,E,E,[""],S,0,s,S)}}c=u=h=0,m=v=1,y=k="",d=a;break;case 58:d=1+P(k),h=f;default:if(m<1)if(123==b)--m;else if(125==b&&0==m++&&125==B())continue;switch(k+=_(b),b*m){case 38:v=u>0?1:(k+="\f",-1);break;case 44:s[c++]=(P(k)-1)*v,v=1;break;case 64:45===V()&&(k+=X(H())),p=V(),u=d=P(y=k+=te($())),b++;break;case 45:45===f&&2==P(k)&&(m=0)}}return i}function oe(e,t,n,r,o,a,s,l,c,u,d,p){for(var h=o-1,f=0===o?a:[""],m=R(f),g=0,v=0,b=0;g<r;++g)for(var y=0,x=A(e,h+1,h=w(v=s[g])),_=e;y<m;++y)(_=k(v>0?f[y]+" "+x:C(x,/&\f/g,f[y])))&&(c[b++]=_);return F(e,t,n,0===o?i:l,c,u,d,p)}function ie(e,t,n,r){return F(e,t,n,o,_(z()),A(e,2,-2),0,r)}function ae(e,t,n,r,o){return F(e,t,n,a,A(e,0,r),A(e,r+1,-1),r,o)}function se(e,o,i){switch(E(e,o)){case 5103:return r+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return r+e+e;case 4855:return r+e.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+e;case 4789:return n+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return r+e+n+e+t+e+e;case 5936:switch(T(e,o+11)){case 114:return r+e+t+C(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return r+e+t+C(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return r+e+t+C(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return r+e+t+e+e;case 6165:return r+e+t+"flex-"+e+e;case 5187:return r+e+C(e,/(\w+).+(:[^]+)/,r+"box-$1$2"+t+"flex-$1$2")+e;case 5443:return r+e+t+"flex-item-"+C(e,/flex-|-self/g,"")+(O(e,/flex-|baseline/)?"":t+"grid-row-"+C(e,/flex-|-self/g,""))+e;case 4675:return r+e+t+"flex-line-pack"+C(e,/align-content|flex-|-self/g,"")+e;case 5548:return r+e+t+C(e,"shrink","negative")+e;case 5292:return r+e+t+C(e,"basis","preferred-size")+e;case 6060:return r+"box-"+C(e,"-grow","")+r+e+t+C(e,"grow","positive")+e;case 4554:return r+C(e,/([^-])(transform)/g,"$1"+r+"$2")+e;case 6187:return C(C(C(e,/(zoom-|grab)/,r+"$1"),/(image-set)/,r+"$1"),e,"")+e;case 5495:case 3959:return C(e,/(image-set\([^]*)/,r+"$1$`$1");case 4968:return C(C(e,/(.+:)(flex-)?(.*)/,r+"box-pack:$3"+t+"flex-pack:$3"),/space-between/,"justify")+r+e+e;case 4200:if(!O(e,/flex-|baseline/))return t+"grid-column-align"+A(e,o)+e;break;case 2592:case 3360:return t+C(e,"template-","")+e;case 4384:case 3616:return i&&i.some(function(e,t){return o=t,O(e.props,/grid-\w+-end/)})?~M(e+(i=i[o].value),"span",0)?e:t+C(e,"-start","")+e+t+"grid-row-span:"+(~M(i,"span",0)?O(i,/\d+/):+O(i,/\d+/)-+O(e,/\d+/))+";":t+C(e,"-start","")+e;case 4896:case 4128:return i&&i.some(function(e){return O(e.props,/grid-\w+-start/)})?e:t+C(C(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return C(e,/(.+)-inline(.+)/,r+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(P(e)-1-o>6)switch(T(e,o+1)){case 109:if(45!==T(e,o+4))break;case 102:return C(e,/(.+:)(.+)-([^]+)/,"$1"+r+"$2-$3$1"+n+(108==T(e,o+3)?"$3":"$2-$3"))+e;case 115:return~M(e,"stretch",0)?se(C(e,"stretch","fill-available"),o,i)+e:e}break;case 5152:case 5920:return C(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(n,r,o,i,a,s,l){return t+r+":"+o+l+(i?t+r+"-span:"+(a?s:+s-+o)+l:"")+e});case 4949:if(121===T(e,o+6))return C(e,":",":"+r)+e;break;case 6444:switch(T(e,45===T(e,14)?18:11)){case 120:return C(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+r+(45===T(e,14)?"inline-":"")+"box$3$1"+r+"$2$3$1"+t+"$2box$3")+e;case 100:return C(e,":",":"+t)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return C(e,"scroll-","scroll-snap-")+e}return e}function le(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function ce(e,t,n,r){switch(e.type){case y:if(e.children.length)break;case c:case f:case a:return e.return=e.return||e.value;case o:return"";case m:return e.return=e.value+"{"+le(e.children,r)+"}";case i:if(!P(e.value=e.props.join(",")))return""}return P(n=le(e.children,r))?e.return=e.value+"{"+n+"}":""}function ue(e){var t=R(e);return function(n,r,o,i){for(var a="",s=0;s<t;s++)a+=e[s](n,r,o,i)||"";return a}}function de(e){return function(t){t.root||(t=t.return)&&e(t)}}function pe(e,o,s,l){if(e.length>-1&&!e.return)switch(e.type){case a:return void(e.return=se(e.value,e.length,s));case m:return le([L(e,{value:C(e.value,"@","@"+r)})],l);case i:if(e.length)return D(s=e.props,function(o){switch(O(o,l=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":j(L(e,{props:[C(o,/:(read-\w+)/,":"+n+"$1")]})),j(L(e,{props:[o]})),S(e,{props:I(s,l)});break;case"::placeholder":j(L(e,{props:[C(o,/:(plac\w+)/,":"+r+"input-$1")]})),j(L(e,{props:[C(o,/:(plac\w+)/,":"+n+"$1")]})),j(L(e,{props:[C(o,/:(plac\w+)/,t+"input-$1")]})),j(L(e,{props:[o]})),S(e,{props:I(s,l)})}return""})}}function he(e){e.type===i&&(e.props=e.props.map(function(t){return D(q(t),function(t,n,r){switch(T(t,0)){case 12:return A(t,1,P(t));case 0:case 40:case 43:case 62:case 126:return t;case 58:"global"===r[++n]&&(r[n]="",r[++n]="\f"+A(r[n],n=1,-1));case 32:return 1===n?"":t;default:switch(n){case 0:return e=t,R(r)>1?"":t;case n=R(r)-1:case 2:return 2===n?t+e+e:t+e;default:return t}}})}))}e.line=1,e.column=1,e.length=0,e.position=0,e.character=0,e.characters="",e.CHARSET=u,e.COMMENT=o,e.COUNTER_STYLE=v,e.DECLARATION=a,e.DOCUMENT=h,e.FONT_FACE=g,e.FONT_FEATURE_VALUES=b,e.IMPORT=c,e.KEYFRAMES=m,e.LAYER=y,e.MEDIA=l,e.MOZ=n,e.MS=t,e.NAMESPACE=f,e.PAGE=s,e.RULESET=i,e.SCOPE=x,e.SUPPORTS=p,e.VIEWPORT=d,e.WEBKIT=r,e.abs=w,e.alloc=G,e.append=N,e.assign=S,e.caret=$,e.char=z,e.charat=T,e.combine=D,e.comment=ie,e.commenter=ee,e.compile=ne,e.copy=L,e.dealloc=Y,e.declaration=ae,e.delimit=X,e.delimiter=J,e.escaping=Q,e.filter=I,e.from=_,e.hash=E,e.identifier=te,e.indexof=M,e.lift=j,e.match=O,e.middleware=ue,e.namespace=he,e.next=H,e.node=F,e.parse=re,e.peek=V,e.prefix=se,e.prefixer=pe,e.prev=B,e.replace=C,e.ruleset=oe,e.rulesheet=de,e.serialize=le,e.sizeof=R,e.slice=W,e.stringify=ce,e.strlen=P,e.substr=A,e.token=U,e.tokenize=q,e.tokenizer=Z,e.trim=k,e.whitespace=K,Object.defineProperty(e,"__esModule",{value:!0})}(Rg.exports)),Rg.exports);function Dg(e,t){var n=t.path,r=t.parentSelectors;Yu(!1,"[Ant Design CSS-in-JS] ".concat(n?"Error in ".concat(n,": "):"").concat(e).concat(r.length?" Selector: ".concat(r.join(" | ")):""))}var Ig,Fg=function(e,t,n){if("content"===e){("string"!=typeof t||-1===["normal","none","initial","inherit","unset"].indexOf(t)&&!/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/.test(t)&&(t.charAt(0)!==t.charAt(t.length-1)||'"'!==t.charAt(0)&&"'"!==t.charAt(0)))&&Dg("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(t,"\"'`."),n)}},Lg=function(e,t,n){"animation"===e&&n.hashId&&"none"!==t&&Dg("You seem to be using hashed animation '".concat(t,"', in which case 'animationName' with Keyframe as value is recommended."),n)},jg="data-ant-cssinjs-cache-path",zg="_FILE_STYLE__",Bg=!0;function Hg(e){return function(){if(!Ig&&(Ig={},Du())){var e=document.createElement("div");e.className=jg,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=Pu(e.split(":"),2),n=t[0],r=t[1];Ig[n]=r});var n,r=document.querySelector("style[".concat(jg,"]"));r&&(Bg=!1,null===(n=r.parentNode)||void 0===n||n.removeChild(r)),document.body.removeChild(e)}}(),!!Ig[e]}var Vg="_skip_check_",$g="_multi_value_";function Wg(e){return Ng.serialize(Ng.compile(e),Ng.stringify).replace(/\{%%%\:[^;];}/g,";")}function Ug(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(Su(n.slice(1))).join(" ")}).join(",")}var Gg=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,s=n.hashId,l=n.layer,c=n.path,u=n.hashPriority,d=n.transformers,p=void 0===d?[]:d,h=n.linters,f=void 0===h?[]:h,m="",g={};function v(t){var r=t.getName(s);if(!g[r]){var o=Pu(e(t.style,n,{root:!1,parentSelectors:a}),1)[0];g[r]="@keyframes ".concat(t.getName(s)).concat(o)}}var b=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 b.forEach(function(t){var r="string"!=typeof t||o?t:{};if("string"==typeof r)m+="".concat(r,"\n");else if(r._keyframe)v(r);else{var l=p.reduce(function(e,t){var n;return(null==t||null===(n=t.visit)||void 0===n?void 0:n.call(t,e))||e},r);Object.keys(l).forEach(function(t){var r=l[t];if("object"!==Eu(r)||!r||"animationName"===t&&r._keyframe||function(e){return"object"===Eu(e)&&e&&(Vg in e||$g in e)}(r)){var d;function S(e,t){"production"===process.env.NODE_ENV||"object"===Eu(r)&&null!=r&&r[Vg]||[Fg,Lg].concat(Su(f)).forEach(function(n){return n(e,t,{path:c,hashId:s,parentSelectors:a})});var n=e.replace(/[A-Z]/g,function(e){return"-".concat(e.toLowerCase())}),o=t;R[e]||"number"!=typeof o||0===o||(o="".concat(o,"px")),"animationName"===e&&null!=t&&t._keyframe&&(v(t),o=t.getName(s)),m+="".concat(n,":").concat(o,";")}var p=null!==(d=null==r?void 0:r.value)&&void 0!==d?d:r;"object"===Eu(r)&&null!=r&&r[$g]&&Array.isArray(p)?p.forEach(function(e){S(t,e)}):S(t,p)}else{var h=!1,b=t.trim(),y=!1;(o||i)&&s?b.startsWith("@")?h=!0:b=Ug("&"===b?"":t,s,u):!o||s||"&"!==b&&""!==b||(b="",y=!0);var x=Pu(e(r,n,{root:y,injectHash:h,parentSelectors:[].concat(Su(a),[b])}),2),w=x[0],_=x[1];g=Mu(Mu({},g),_),m+="".concat(b).concat(w)}})}}),o?l&&(m&&(m="@layer ".concat(l.name," {").concat(m,"}")),l.dependencies&&(g["@layer ".concat(l.name)]=l.dependencies.map(function(e){return"@layer ".concat(e,", ").concat(l.name,";")}).join("\n"))):m="{".concat(m,"}"),[m,g]};function Yg(e,t){return E("".concat(e.join("%")).concat(t))}function Xg(){return null}var qg="style";function Kg(e,t){var n=e.token,r=e.path,o=e.hashId,i=e.layer,a=e.nonce,s=e.clientOnly,l=e.order,u=void 0===l?0:l,d=c.useContext(eg),p=d.autoClear,h=d.mock,f=d.defaultCache,m=d.hashPriority,g=d.container,v=d.ssrInline,b=d.transformers,y=d.linters,x=d.cache,w=d.layer,_=n._tokenKey,S=[_];w&&S.push("layer"),S.push.apply(S,Su(r));var E=dg;"production"!==process.env.NODE_ENV&&void 0!==h&&(E="client"===h);var k=Eg(qg,S,function(){var e=S.join("|");if(Hg(e)){var n=function(e){var t=Ig[e],n=null;if(t&&Du())if(Bg)n=zg;else{var r=document.querySelector("style[".concat(Zm,'="').concat(Ig[e],'"]'));r?n=r.innerHTML:delete Ig[e]}return[n,t]}(e),a=Pu(n,2),l=a[0],c=a[1];if(l)return[l,_,c,{},s,u]}var d=t(),p=Pu(Gg(d,{hashId:o,hashPriority:m,layer:w?i:void 0,path:r.join("-"),transformers:b,linters:y}),2),h=p[0],f=p[1],g=Wg(h),v=Yg(S,g);return[g,_,v,f,s,u]},function(e,t){var n=Pu(e,3)[2];(t||p)&&dg&&gh(n,{mark:Zm,attachTo:g})},function(e){var t=Pu(e,4),n=t[0];t[1];var r=t[2],o=t[3];if(E&&n!==zg){var i={mark:Zm,prepend:!w&&"queue",attachTo:g,priority:u},s="function"==typeof a?a():a;s&&(i.csp={nonce:s});var l=[],c=[];Object.keys(o).forEach(function(e){e.startsWith("@layer")?l.push(e):c.push(e)}),l.forEach(function(e){vh(Wg(o[e]),"_layer-".concat(e),Mu(Mu({},i),{},{prepend:!0}))});var d=vh(n,r,i);d[Qm]=x.instanceId,d.setAttribute(Km,_),"production"!==process.env.NODE_ENV&&d.setAttribute("data-cache-path",S.join("|")),c.forEach(function(e){vh(Wg(o[e]),"_effect-".concat(e),i)})}}),O=Pu(k,3),C=O[0],M=O[1],T=O[2];return function(e){var t;return t=v&&!E&&f?c.createElement("style",yu({},Ou(Ou({},Km,M),Zm,T),{dangerouslySetInnerHTML:{__html:C}})):c.createElement(Xg,null),c.createElement(c.Fragment,null,t,e)}}var Zg="cssVar";Ou(Ou(Ou({},qg,function(e,t,n){var r=Pu(e,6),o=r[0],i=r[1],a=r[2],s=r[3],l=r[4],c=r[5],u=(n||{}).plain;if(l)return null;var d=o,p={"data-rc-order":"prependQueue","data-rc-priority":"".concat(c)};return d=hg(o,i,a,p,u),s&&Object.keys(s).forEach(function(e){if(!t[e]){t[e]=!0;var n=hg(Wg(s[e]),i,"_effect-".concat(e),p,u);e.startsWith("@layer")?d=n+d:d+=n}}),[c,a,d]}),Tg,function(e,t,n){var r=Pu(e,5),o=r[2],i=r[3],a=r[4],s=(n||{}).plain;if(!i)return null;var l=o._tokenKey;return[-999,l,hg(i,a,l,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},s)]}),Zg,function(e,t,n){var r=Pu(e,4),o=r[1],i=r[2],a=r[3],s=(n||{}).plain;if(!o)return null;return[-999,i,hg(o,a,i,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},s)]});var Qg=function(){function e(t,n){Zd(this,e),Ou(this,"name",void 0),Ou(this,"style",void 0),Ou(this,"_keyframe",!0),this.name=t,this.style=n}return Jd(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}();function Jg(e){return e.notSplit=!0,e}Jg(["borderTop","borderBottom"]),Jg(["borderTop"]),Jg(["borderBottom"]),Jg(["borderLeft","borderRight"]),Jg(["borderLeft"]),Jg(["borderRight"]);function ev(e){return ev="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},ev(e)}function tv(e){var t=function(e,t){if("object"!=ev(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=ev(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ev(t)?t:t+""}function nv(e,t,n){return(t=tv(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const rv=Math.round;function ov(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(e=>parseFloat(e));for(let e=0;e<3;e+=1)r[e]=t(r[e]||0,n[e]||"",e);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const iv=(e,t,n)=>0===n?e:e/100;function av(e,t){const n=t||255;return e>n?n:e<0?0:e}class sv{constructor(e){function t(t){return t[0]in e&&t[1]in e&&t[2]in e}if(nv(this,"isValid",!0),nv(this,"r",0),nv(this,"g",0),nv(this,"b",0),nv(this,"a",1),nv(this,"_h",void 0),nv(this,"_s",void 0),nv(this,"_l",void 0),nv(this,"_v",void 0),nv(this,"_max",void 0),nv(this,"_min",void 0),nv(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 sv)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=av(e.r),this.g=av(e.g),this.b=av(e.b),this.a="number"==typeof e.a?av(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(void 0===this._h){const e=this.getMax()-this.getMin();this._h=0===e?0:rv(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(void 0===this._s){const e=this.getMax()-this.getMin();this._s=0===e?0:e/this.getMax()}return this._s}getLightness(){return void 0===this._l&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return void 0===this._v&&(this._v=this.getMax()/255),this._v}getBrightness(){return void 0===this._brightness&&(this._brightness=(299*this.r+587*this.g+114*this.b)/1e3),this._brightness}darken(e=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(e=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,t=50){const n=this._c(e),r=t/100,o=e=>(n[e]-this[e])*r+this[e],i={r:rv(o("r")),g:rv(o("g")),b:rv(o("b")),a:rv(100*o("a"))/100};return this._c(i)}tint(e=10){return this.mix({r:255,g:255,b:255,a:1},e)}shade(e=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=>rv((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=rv(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=rv(100*this.getSaturation()),n=rv(100*this.getLightness());return 1!==this.a?`hsla(${e},${t}%,${n}%,${this.a})`:`hsl(${e},${t}%,${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(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(e,t,n){const r=this.clone();return r[e]=av(t,n),r}_c(e){return new this.constructor(e)}getMax(){return void 0===this._max&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return void 0===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({h:e,s:t,l:n,a:r}){if(this._h=e%360,this._s=t,this._l=n,this.a="number"==typeof r?r:1,t<=0){const e=rv(255*n);this.r=e,this.g=e,this.b=e}let o=0,i=0,a=0;const s=e/60,l=(1-Math.abs(2*n-1))*t,c=l*(1-Math.abs(s%2-1));s>=0&&s<1?(o=l,i=c):s>=1&&s<2?(o=c,i=l):s>=2&&s<3?(i=l,a=c):s>=3&&s<4?(i=c,a=l):s>=4&&s<5?(o=c,a=l):s>=5&&s<6&&(o=l,a=c);const u=n-l/2;this.r=rv(255*(o+u)),this.g=rv(255*(i+u)),this.b=rv(255*(a+u))}fromHsv({h:e,s:t,v:n,a:r}){this._h=e%360,this._s=t,this._v=n,this.a="number"==typeof r?r:1;const o=rv(255*n);if(this.r=o,this.g=o,this.b=o,t<=0)return;const i=e/60,a=Math.floor(i),s=i-a,l=rv(n*(1-t)*255),c=rv(n*(1-t*s)*255),u=rv(n*(1-t*(1-s))*255);switch(a){case 0:this.g=u,this.b=l;break;case 1:this.r=c,this.b=l;break;case 2:this.r=l,this.b=u;break;case 3:this.r=l,this.g=c;break;case 4:this.r=u,this.g=l;break;default:this.g=l,this.b=c}}fromHsvString(e){const t=ov(e,iv);this.fromHsv({h:t[0],s:t[1],v:t[2],a:t[3]})}fromHslString(e){const t=ov(e,iv);this.fromHsl({h:t[0],s:t[1],l:t[2],a:t[3]})}fromRgbString(e){const t=ov(e,(e,t)=>t.includes("%")?rv(e/100*255):e);this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}}var lv=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function cv(e,t,n){var r;return(r=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-2*t:Math.round(e.h)+2*t:n?Math.round(e.h)+2*t:Math.round(e.h)-2*t)<0?r+=360:r>=360&&(r-=360),r}function uv(e,t,n){return 0===e.h&&0===e.s?e.s:((r=n?e.s-.16*t:4===t?e.s+.16:e.s+.05*t)>1&&(r=1),n&&5===t&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(100*r)/100);var r}function dv(e,t,n){var r;return r=n?e.v+.05*t:e.v-.15*t,r=Math.max(0,Math.min(1,r)),Math.round(100*r)/100}function pv(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=new sv(e),o=r.toHsv(),i=5;i>0;i-=1){var a=new sv({h:cv(o,i,!0),s:uv(o,i,!0),v:dv(o,i,!0)});n.push(a)}n.push(r);for(var s=1;s<=4;s+=1){var l=new sv({h:cv(o,s),s:uv(o,s),v:dv(o,s)});n.push(l)}return"dark"===t.theme?lv.map(function(e){var r=e.index,o=e.amount;return new sv(t.backgroundColor||"#141414").mix(n[r],o).toHexString()}):n.map(function(e){return e.toHexString()})}var hv={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"},fv=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];fv.primary=fv[5];var mv=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];mv.primary=mv[5];var gv=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];gv.primary=gv[5];var vv=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];vv.primary=vv[5];var bv=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];bv.primary=bv[5];var yv=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];yv.primary=yv[5];var xv=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];xv.primary=xv[5];var wv=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];wv.primary=wv[5];var _v=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];_v.primary=_v[5];var Sv=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];Sv.primary=Sv[5];var Ev=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];Ev.primary=Ev[5];var kv=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];kv.primary=kv[5];var Ov=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];Ov.primary=Ov[5];var Cv={red:fv,volcano:mv,orange:gv,gold:vv,yellow:bv,lime:yv,green:xv,cyan:wv,blue:_v,geekblue:Sv,purple:Ev,magenta:kv,grey:Ov};const Mv={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"};var Tv=Object.assign(Object.assign({},Mv),{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});function Av(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 Pv(e){return Math.min(1,Math.max(0,e))}function Rv(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Nv(e){return e<=1?"".concat(100*Number(e),"%"):e}function Dv(e){return 1===e.length?"0"+e:String(e)}function Iv(e,t,n){e=Av(e,255),t=Av(t,255),n=Av(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=0,s=(r+o)/2;if(r===o)a=0,i=0;else{var l=r-o;switch(a=s>.5?l/(2-r-o):l/(r+o),r){case e:i=(t-n)/l+(t<n?6:0);break;case t:i=(n-e)/l+2;break;case n:i=(e-t)/l+4}i/=6}return{h:i,s:a,l:s}}function Fv(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 Lv(e,t,n){e=Av(e,255),t=Av(t,255),n=Av(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=r,s=r-o,l=0===r?0:s/r;if(r===o)i=0;else{switch(r){case e:i=(t-n)/s+(t<n?6:0);break;case t:i=(n-e)/s+2;break;case n:i=(e-t)/s+4}i/=6}return{h:i,s:l,v:a}}function jv(e,t,n,r){var o=[Dv(Math.round(e).toString(16)),Dv(Math.round(t).toString(16)),Dv(Math.round(n).toString(16))];return r&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function zv(e){return Bv(e)/255}function Bv(e){return parseInt(e,16)}var Hv={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function Vv(e){var t,n,r,o={r:0,g:0,b:0},i=1,a=null,s=null,l=null,c=!1,u=!1;return"string"==typeof e&&(e=function(e){if(e=e.trim().toLowerCase(),0===e.length)return!1;var t=!1;if(Hv[e])e=Hv[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=Gv.rgb.exec(e);if(n)return{r:n[1],g:n[2],b:n[3]};if(n=Gv.rgba.exec(e),n)return{r:n[1],g:n[2],b:n[3],a:n[4]};if(n=Gv.hsl.exec(e),n)return{h:n[1],s:n[2],l:n[3]};if(n=Gv.hsla.exec(e),n)return{h:n[1],s:n[2],l:n[3],a:n[4]};if(n=Gv.hsv.exec(e),n)return{h:n[1],s:n[2],v:n[3]};if(n=Gv.hsva.exec(e),n)return{h:n[1],s:n[2],v:n[3],a:n[4]};if(n=Gv.hex8.exec(e),n)return{r:Bv(n[1]),g:Bv(n[2]),b:Bv(n[3]),a:zv(n[4]),format:t?"name":"hex8"};if(n=Gv.hex6.exec(e),n)return{r:Bv(n[1]),g:Bv(n[2]),b:Bv(n[3]),format:t?"name":"hex"};if(n=Gv.hex4.exec(e),n)return{r:Bv(n[1]+n[1]),g:Bv(n[2]+n[2]),b:Bv(n[3]+n[3]),a:zv(n[4]+n[4]),format:t?"name":"hex8"};if(n=Gv.hex3.exec(e),n)return{r:Bv(n[1]+n[1]),g:Bv(n[2]+n[2]),b:Bv(n[3]+n[3]),format:t?"name":"hex"};return!1}(e)),"object"==typeof e&&(Yv(e.r)&&Yv(e.g)&&Yv(e.b)?(t=e.r,n=e.g,r=e.b,o={r:255*Av(t,255),g:255*Av(n,255),b:255*Av(r,255)},c=!0,u="%"===String(e.r).substr(-1)?"prgb":"rgb"):Yv(e.h)&&Yv(e.s)&&Yv(e.v)?(a=Nv(e.s),s=Nv(e.v),o=function(e,t,n){e=6*Av(e,360),t=Av(t,100),n=Av(n,100);var r=Math.floor(e),o=e-r,i=n*(1-t),a=n*(1-o*t),s=n*(1-(1-o)*t),l=r%6;return{r:255*[n,a,i,i,s,n][l],g:255*[s,n,n,a,i,i][l],b:255*[i,i,s,n,n,a][l]}}(e.h,a,s),c=!0,u="hsv"):Yv(e.h)&&Yv(e.s)&&Yv(e.l)&&(a=Nv(e.s),l=Nv(e.l),o=function(e,t,n){var r,o,i;if(e=Av(e,360),t=Av(t,100),n=Av(n,100),0===t)o=n,i=n,r=n;else{var a=n<.5?n*(1+t):n+t-n*t,s=2*n-a;r=Fv(s,a,e+1/3),o=Fv(s,a,e),i=Fv(s,a,e-1/3)}return{r:255*r,g:255*o,b:255*i}}(e.h,a,l),c=!0,u="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(i=e.a)),i=Rv(i),{ok:c,format:e.format||u,r:Math.min(255,Math.max(o.r,0)),g:Math.min(255,Math.max(o.g,0)),b:Math.min(255,Math.max(o.b,0)),a:i}}var $v="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),Wv="[\\s|\\(]+(".concat($v,")[,|\\s]+(").concat($v,")[,|\\s]+(").concat($v,")\\s*\\)?"),Uv="[\\s|\\(]+(".concat($v,")[,|\\s]+(").concat($v,")[,|\\s]+(").concat($v,")[,|\\s]+(").concat($v,")\\s*\\)?"),Gv={CSS_UNIT:new RegExp($v),rgb:new RegExp("rgb"+Wv),rgba:new RegExp("rgba"+Uv),hsl:new RegExp("hsl"+Wv),hsla:new RegExp("hsla"+Uv),hsv:new RegExp("hsv"+Wv),hsva:new RegExp("hsva"+Uv),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 Yv(e){return Boolean(Gv.CSS_UNIT.exec(String(e)))}var Xv=function(){function e(t,n){var r;if(void 0===t&&(t=""),void 0===n&&(n={}),t instanceof e)return t;"number"==typeof t&&(t=function(e){return{r:e>>16,g:(65280&e)>>8,b:255&e}}(t)),this.originalInput=t;var o=Vv(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=Rv(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=Lv(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=Lv(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=Iv(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=Iv(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),jv(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),function(e,t,n,r,o){var i,a=[Dv(Math.round(e).toString(16)),Dv(Math.round(t).toString(16)),Dv(Math.round(n).toString(16)),Dv((i=r,Math.round(255*parseFloat(i)).toString(16)))];return o&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))&&a[3].startsWith(a[3].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toHexShortString=function(e){return void 0===e&&(e=!1),1===this.a?this.toHexString(e):this.toHex8String(e)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),n=Math.round(this.b);return 1===this.a?"rgb(".concat(e,", ").concat(t,", ").concat(n,")"):"rgba(".concat(e,", ").concat(t,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var e=function(e){return"".concat(Math.round(100*Av(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*Av(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="#"+jv(this.r,this.g,this.b,!1),t=0,n=Object.entries(Hv);t<n.length;t++){var r=n[t],o=r[0];if(e===r[1])return o}return!1},e.prototype.toString=function(e){var t=Boolean(e);e=null!=e?e:this.format;var n=!1,r=this.a<1&&this.a>=0;return t||!r||!e.startsWith("hex")&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this.a?this.toName():this.toRgbString()},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=Pv(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=Pv(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=Pv(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=Pv(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=[],s=1/t;t--;)a.push(new e({h:r,s:o,v:i})),i=(i+s)%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}();var qv=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}};var Kv=e=>{const{controlHeight:t}=e;return{controlHeightSM:.75*t,controlHeightXS:.5*t,controlHeightLG:1.25*t}};var Zv=e=>{const t=function(e){const t=new Array(10).fill(null).map((t,n)=>{const r=n-1,o=e*Math.pow(Math.E,r/5),i=n>1?Math.floor(o):Math.ceil(o);return 2*Math.floor(i/2)});return t[1]=e,t.map(e=>{return{size:e,lineHeight:(t=e,(t+8)/t)};var t})}(e),n=t.map(e=>e.size),r=t.map(e=>e.lineHeight),o=n[1],i=n[0],a=n[2],s=r[1],l=r[0],c=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:s,lineHeightLG:c,lineHeightSM:l,fontHeight:Math.round(s*o),fontHeightLG:Math.round(c*a),fontHeightSM:Math.round(l*i),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};const Qv=(e,t)=>new Xv(e).setAlpha(t).toRgbString(),Jv=(e,t)=>new Xv(e).darken(t).toHexString(),eb=e=>{const t=pv(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]}},tb=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:Qv(r,.88),colorTextSecondary:Qv(r,.65),colorTextTertiary:Qv(r,.45),colorTextQuaternary:Qv(r,.25),colorFill:Qv(r,.15),colorFillSecondary:Qv(r,.06),colorFillTertiary:Qv(r,.04),colorFillQuaternary:Qv(r,.02),colorBgSolid:Qv(r,1),colorBgSolidHover:Qv(r,.75),colorBgSolidActive:Qv(r,.95),colorBgLayout:Jv(n,4),colorBgContainer:Jv(n,0),colorBgElevated:Jv(n,0),colorBgSpotlight:Qv(r,.85),colorBgBlur:"transparent",colorBorder:Jv(n,15),colorBorderSecondary:Jv(n,6)}};const nb=ig(function(e){hv.pink=hv.magenta,Cv.pink=Cv.magenta;const t=Object.keys(Mv).map(t=>{const n=e[t]===hv[t]?Cv[t]:pv(e[t]);return new Array(10).fill(1).reduce((e,r,o)=>(e[`${t}-${o+1}`]=n[o],e[`${t}${o+1}`]=n[o],e),{})}).reduce((e,t)=>e=Object.assign(Object.assign({},e),t),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),function(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:i,colorError:a,colorInfo:s,colorPrimary:l,colorBgBase:c,colorTextBase:u}=e,d=n(l),p=n(o),h=n(i),f=n(a),m=n(s),g=r(c,u),v=n(e.colorLink||e.colorInfo),b=new Xv(f[1]).mix(new Xv(f[3]),50).toHexString();return Object.assign(Object.assign({},g),{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:p[1],colorSuccessBgHover:p[2],colorSuccessBorder:p[3],colorSuccessBorderHover:p[4],colorSuccessHover:p[4],colorSuccess:p[6],colorSuccessActive:p[7],colorSuccessTextHover:p[8],colorSuccessText:p[9],colorSuccessTextActive:p[10],colorErrorBg:f[1],colorErrorBgHover:f[2],colorErrorBgFilledHover:b,colorErrorBgActive:f[3],colorErrorBorder:f[3],colorErrorBorderHover:f[4],colorErrorHover:f[5],colorError:f[6],colorErrorActive:f[7],colorErrorTextHover:f[8],colorErrorText:f[9],colorErrorTextActive:f[10],colorWarningBg:h[1],colorWarningBgHover:h[2],colorWarningBorder:h[3],colorWarningBorderHover:h[4],colorWarningHover:h[4],colorWarning:h[6],colorWarningActive:h[7],colorWarningTextHover:h[8],colorWarningText:h[9],colorWarningTextActive:h[10],colorInfoBg:m[1],colorInfoBgHover:m[2],colorInfoBorder:m[3],colorInfoBorderHover:m[4],colorInfoHover:m[4],colorInfo:m[6],colorInfoActive:m[7],colorInfoTextHover:m[8],colorInfoText:m[9],colorInfoTextActive:m[10],colorLinkHover:v[4],colorLink:v[6],colorLinkActive:v[7],colorBgMask:new Xv("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}(e,{generateColorPalettes:eb,generateNeutralColorPalettes:tb})),Zv(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)),Kv(e)),function(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+2*t).toFixed(1)}s`,motionDurationSlow:`${(n+3*t).toFixed(1)}s`,lineWidthBold:o+1},qv(r))}(e))}),rb={token:Tv,override:{override:Tv},hashed:!0},ob=l.default.createContext(rb);function ib(e){return e>=0&&e<=255}function ab(e,t){const{r:n,g:r,b:o,a:i}=new Xv(e).toRgb();if(i<1)return e;const{r:a,g:s,b:l}=new Xv(t).toRgb();for(let e=.01;e<=1;e+=.01){const t=Math.round((n-a*(1-e))/e),i=Math.round((r-s*(1-e))/e),c=Math.round((o-l*(1-e))/e);if(ib(t)&&ib(i)&&ib(c))return new Xv({r:t,g:i,b:c,a:Math.round(100*e)/100}).toRgbString()}return new Xv({r:n,g:r,b:o,a:1}).toRgbString()}var sb=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 lb(e){const{override:t}=e,n=sb(e,["override"]),r=Object.assign({},t);Object.keys(Tv).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:ab(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:ab(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:ab(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:ab(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 ${new Xv("rgba(0, 0, 0, 0.16)").toRgbString()},\n 0 3px 6px 0 ${new Xv("rgba(0, 0, 0, 0.12)").toRgbString()},\n 0 5px 12px 4px ${new Xv("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 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 ub={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},db={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},pb={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},hb=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o}=t,i=cb(t,["override"]);let a=Object.assign(Object.assign({},r),{override:o});return a=lb(a),i&&Object.entries(i).forEach(e=>{let[t,n]=e;const{theme:r}=n,o=cb(n,["theme"]);let i=o;r&&(i=hb(Object.assign(Object.assign({},a),o),{override:o},r)),a[t]=i}),a};function fb(){const{token:e,hashed:t,theme:n,override:r,cssVar:o}=l.default.useContext(ob),i=`5.21.6-${t||""}`,a=n||nb,[s,c,u]=Ag(a,[Tv,e],{salt:i,override:r,getComputedToken:hb,formatToken:lb,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:ub,ignore:db,preserve:pb}});return[a,u,t?c:"",s,o]}function mb(){}let gb=null;let vb=mb;"production"!==process.env.NODE_ENV&&(vb=(e,t,n)=>{Yu(e,`[antd: ${t}] ${n}`),"test"===process.env.NODE_ENV&&(gb=null,Uu())});const bb=c.createContext({}),yb="production"!==process.env.NODE_ENV?e=>{const{strict:t}=c.useContext(bb),n=(n,r,o)=>{if(!n)if(!1===t&&"deprecated"===r){const t=gb;gb||(gb={}),gb[e]=gb[e]||[],gb[e].includes(o||"")||gb[e].push(o||""),t||console.warn("[antd] There exists deprecated usage in your code:",gb)}else"production"!==process.env.NODE_ENV&&vb(n,e,o)};return n.deprecated=(e,t,r,o)=>{n(e,"deprecated",`\`${t}\` is deprecated. Please use \`${r}\` instead.${o?` ${o}`:""}`)},n}:()=>{const e=()=>{};return e.deprecated=mb,e};var xb=vb;const wb=l.default.createContext(void 0);"production"!==process.env.NODE_ENV&&(wb.displayName="zIndexContext");var _b=wb;const Sb=100,Eb={Modal:Sb,Drawer:Sb,Popover:Sb,Popconfirm:Sb,Tooltip:Sb,Tour:Sb,FloatButton:Sb},kb={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};const Ob=(e,t)=>{const[,n]=fb(),r=l.default.useContext(_b),o=function(e){return e in Eb}(e);let i;if(void 0!==t)i=[t,t];else{let a=null!=r?r:0;a+=o?(r?0:n.zIndexPopupBase)+Eb[e]:kb[e],i=[void 0===r?t:a,a]}if("production"!==process.env.NODE_ENV){const r=yb(e),o=n.zIndexPopupBase+1100,a=i[0]||0;"production"!==process.env.NODE_ENV&&r(void 0!==t||a<=o,"usage","`zIndex` is over design token `zIndexPopupBase` too much. It may cause unexpected override.")}return i};var Cb=e.createContext({}),Mb=e.createContext(void 0);function Tb(e){return Tb="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},Tb(e)}function Ab(e){var t=function(e,t){if("object"!=Tb(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Tb(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Tb(t)?t:t+""}function Pb(e,t,n){return(t=Ab(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rb(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 Nb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rb(Object(n),!0).forEach(function(t){Pb(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rb(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Db=Nb(Nb({},{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"});var Ib={placeholder:"Select time",rangePlaceholder:["Start time","End time"]};const Fb={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"]},Db),timePickerLocale:Object.assign({},Ib)};const Lb="${label} is not a valid ${type}";var jb={locale:"en",Pagination:{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"},DatePicker:Fb,TimePicker:Ib,Calendar:Fb,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:Lb,method:Lb,array:Lb,object:Lb,number:Lb,date:Lb,boolean:Lb,integer:Lb,float:Lb,regexp:Lb,email:Lb,url:Lb,hex:Lb},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};Object.assign({},jb.Modal);let zb=[];const Bb=()=>zb.reduce((e,t)=>Object.assign(Object.assign({},e),t),jb.Modal);var Hb=e.createContext(void 0);var Vb=(e,t)=>{const n=c.useContext(Hb),r=c.useMemo(()=>{var r;const o=t||jb[e],i=null!==(r=null==n?void 0:n[e])&&void 0!==r?r:{};return Object.assign(Object.assign({},"function"==typeof o?o():o),i||{})},[e,t,n]);return[r,c.useMemo(()=>{const e=null==n?void 0:n.locale;return(null==n?void 0:n.exist)&&!e?jb.locale:e},[n])]};const $b="internalMark",Wb=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;if("production"!==process.env.NODE_ENV){const e=yb("LocaleProvider");"production"!==process.env.NODE_ENV&&e(r===$b,"deprecated","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale")}c.useEffect(()=>{const e=function(e){if(e){const t=Object.assign({},e);return zb.push(t),Bb(),()=>{zb=zb.filter(e=>e!==t),Bb()}}Object.assign({},jb.Modal)}(null==t?void 0:t.Modal);return e},[t]);const o=c.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return c.createElement(Hb.Provider,{value:o},n)};"production"!==process.env.NODE_ENV&&(Wb.displayName="LocaleProvider");var Ub=Wb;const Gb="ant",Yb="anticon",Xb=["outlined","borderless","filled"],qb=c.createContext({getPrefixCls:(e,t)=>t||(e?`${Gb}-${e}`:Gb),iconPrefixCls:Yb}),Kb=`-ant-${Date.now()}-${Math.random()}`;function Zb(e,t){const n=function(e,t){const n={},r=(e,t)=>{let n=e.clone();return n=(null==t?void 0:t(n))||n,n.toRgbString()},o=(e,t)=>{const o=new Xv(e),i=pv(o.toRgbString());n[`${t}-color`]=r(o),n[`${t}-color-disabled`]=i[1],n[`${t}-color-hover`]=i[4],n[`${t}-color-active`]=i[6],n[`${t}-color-outline`]=o.clone().setAlpha(.2).toRgbString(),n[`${t}-color-deprecated-bg`]=i[0],n[`${t}-color-deprecated-border`]=i[2]};if(t.primaryColor){o(t.primaryColor,"primary");const e=new Xv(t.primaryColor),i=pv(e.toRgbString());i.forEach((e,t)=>{n[`primary-${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 Xv(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))}return t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info"),`\n :root {\n ${Object.keys(n).map(t=>`--${e}-${t}: ${n[t]};`).join("\n")}\n }\n `.trim()}(e,t);Du()?vh(n,`${Kb}-dynamic-theme`):"production"!==process.env.NODE_ENV&&xb(!1,"ConfigProvider","SSR do not support dynamic theme with css variables.")}const Qb=c.createContext(!1),Jb=e=>{let{children:t,disabled:n}=e;const r=c.useContext(Qb);return c.createElement(Qb.Provider,{value:null!=n?n:r},t)};var ey=Qb;const ty=c.createContext(void 0),ny=e=>{let{children:t,size:n}=e;const r=c.useContext(ty);return c.createElement(ty.Provider,{value:n||r},t)};var ry=ty;function oy(e){return oy="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},oy(e)}function iy(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 ay(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,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return iy(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)?iy(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 sy(e){var t=function(e,t){if("object"!=oy(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=oy(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==oy(t)?t:t+""}function ly(e,t,n){return(t=sy(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cy(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 uy(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cy(Object(n),!0).forEach(function(t){ly(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cy(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function dy(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}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,sy(r.key),r)}}function hy(e,t,n){return t&&py(e.prototype,t),n&&py(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function fy(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function my(e,t){return my=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},my(e,t)}function gy(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&&my(e,t)}function vy(e){return vy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},vy(e)}function by(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(by=function(){return!!e})()}function yy(e){var t=by();return function(){var n,r=vy(e);if(t){var o=vy(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==oy(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return fy(e)}(this,n)}}var xy=hy(function e(){dy(this,e)}),wy="CALC_UNIT",_y=new RegExp(wy,"g");function Sy(e){return"number"==typeof e?"".concat(e).concat(wy):e}var Ey=function(){gy(t,xy);var e=yy(t);function t(n,r){var o;dy(this,t),ly(fy(o=e.call(this)),"result",""),ly(fy(o),"unitlessCssVar",void 0),ly(fy(o),"lowPriority",void 0);var i=oy(n);return o.unitlessCssVar=r,n instanceof t?o.result="(".concat(n.result,")"):"number"===i?o.result=Sy(n):"string"===i&&(o.result=n),o}return hy(t,[{key:"add",value:function(e){return e instanceof t?this.result="".concat(this.result," + ").concat(e.getResult()):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," + ").concat(Sy(e))),this.lowPriority=!0,this}},{key:"sub",value:function(e){return e instanceof t?this.result="".concat(this.result," - ").concat(e.getResult()):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," - ").concat(Sy(e))),this.lowPriority=!0,this}},{key:"mul",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof t?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 t?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(_y,r?"px":""),void 0!==this.lowPriority?"calc(".concat(this.result,")"):this.result}}]),t}(),ky=function(){gy(t,xy);var e=yy(t);function t(n){var r;return dy(this,t),ly(fy(r=e.call(this)),"result",0),n instanceof t?r.result=n.result:"number"==typeof n&&(r.result=n),r}return hy(t,[{key:"add",value:function(e){return e instanceof t?this.result+=e.result:"number"==typeof e&&(this.result+=e),this}},{key:"sub",value:function(e){return e instanceof t?this.result-=e.result:"number"==typeof e&&(this.result-=e),this}},{key:"mul",value:function(e){return e instanceof t?this.result*=e.result:"number"==typeof e&&(this.result*=e),this}},{key:"div",value:function(e){return e instanceof t?this.result/=e.result:"number"==typeof e&&(this.result/=e),this}},{key:"equal",value:function(){return this.result}}]),t}(),Oy=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 Cy(e,t,n,r){var o=uy({},t[e]);null!=r&&r.deprecatedTokens&&r.deprecatedTokens.forEach(function(t){var n,r=ay(t,2),i=r[0],a=r[1];("production"!==process.env.NODE_ENV&&Yu(!(null!=o&&o[i]),"Component Token `".concat(String(i),"` of ").concat(String(e)," is deprecated. Please use `").concat(String(a),"` instead.")),null!=o&&o[i]||null!=o&&o[a])&&(null!==(n=o[a])&&void 0!==n||(o[a]=null==o?void 0:o[i]))});var i=uy(uy({},n),o);return Object.keys(i).forEach(function(e){i[e]===t[e]&&delete i[e]}),i}var My="production"!==process.env.NODE_ENV||"undefined"!=typeof CSSINJS_STATISTIC,Ty=!0;function Ay(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!My)return Object.assign.apply(Object,[{}].concat(t));Ty=!1;var r={};return t.forEach(function(e){"object"===oy(e)&&Object.keys(e).forEach(function(t){Object.defineProperty(r,t,{configurable:!0,enumerable:!0,get:function(){return e[t]}})})}),Ty=!0,r}var Py={};function Ry(){}function Ny(e,t,n){var r;return"function"==typeof n?n(Ay(t,null!==(r=t[e])&&void 0!==r?r:{})):null!=n?n:{}}var Dy=function(){function e(){dy(this,e),ly(this,"map",new Map),ly(this,"objectIDMap",new WeakMap),ly(this,"nextID",0),ly(this,"lastAccessBeat",new Map),ly(this,"accessBeat",0)}return hy(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"===oy(e)?"obj_".concat(t.getObjectID(e)):"".concat(oy(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}(),Iy=new Dy;var Fy=function(){return{}};const Ly={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},jy=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}},zy=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}});var By=(e,t)=>{const[n,r]=fb();return Kg({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>null==t?void 0:t.nonce,layer:{name:"antd"}},()=>[{[`.${e}`]:Object.assign(Object.assign({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),{[`.${e} .${e}-icon`]:{display:"block"}})}])};const{genStyleHooks:Hy,genComponentStyleHook:Vy,genSubStyleComponent:$y}=function(t){var n=t.useCSP,r=void 0===n?Fy:n,o=t.useToken,i=t.usePrefix,a=t.getResetStyles,s=t.getCommonStyle,c=t.getCompUnitless;function u(e,n,c){var u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},d=Array.isArray(e)?e:[e,e],p=ay(d,1)[0],h=d.join("-"),f=t.layer||{name:"antd"};return function(e){var t,d,m=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,g=o(),v=g.theme,b=g.realToken,y=g.hashId,x=g.token,w=g.cssVar,_=i(),S=_.rootPrefixCls,E=_.iconPrefixCls,k=r(),O=w?"css":"js",C=(t=function(){var e=new Set;return w&&Object.keys(u.unitless||{}).forEach(function(t){e.add(fg(t,w.prefix)),e.add(fg(t,Oy(p,w.prefix)))}),function(e,t){var n="css"===e?Ey:ky;return function(e){return new n(e,t)}}(O,e)},d=[O,p,null==w?void 0:w.prefix],l.default.useMemo(function(){var e=Iy.get(d);if(e)return e;var n=t();return Iy.set(d,n),n},d)),M=function(e){return"js"===e?{max:Math.max,min:Math.min}:{max:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"max(".concat(t.map(function(e){return pg(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 pg(e)}).join(","),")")}}}(O),T=M.max,A=M.min,P={theme:v,token:x,hashId:y,nonce:function(){return k.nonce},clientOnly:u.clientOnly,layer:f,order:u.order||-999};"function"==typeof a&&Kg(uy(uy({},P),{},{clientOnly:!1,path:["Shared",S]}),function(){return a(x,{prefix:{rootPrefixCls:S,iconPrefixCls:E},csp:k})});var R=Kg(uy(uy({},P),{},{path:[h,e,E]}),function(){if(!1===u.injectStyle)return[];var t=function(e){var t,n=e,r=Ry;return My&&"undefined"!=typeof Proxy&&(t=new Set,n=new Proxy(e,{get:function(e,n){var r;return Ty&&(null===(r=t)||void 0===r||r.add(n)),e[n]}}),r=function(e,n){var r;Py[e]={global:Array.from(t),component:uy(uy({},null===(r=Py[e])||void 0===r?void 0:r.component),n)}}),{token:n,keys:t,flush:r}}(x),r=t.token,o=t.flush,i=Ny(p,b,c),a=".".concat(e),l=Cy(p,b,i,{deprecatedTokens:u.deprecatedTokens});w&&i&&"object"===oy(i)&&Object.keys(i).forEach(function(e){i[e]="var(".concat(fg(e,Oy(p,w.prefix)),")")});var d=Ay(r,{componentCls:a,prefixCls:e,iconCls:".".concat(E),antCls:".".concat(S),calc:C,max:T,min:A},w?i:l),h=n(d,{hashId:y,prefixCls:e,rootPrefixCls:S,iconPrefixCls:E});o(p,l);var f="function"==typeof s?s(d,e,m,u.resetFont):null;return[!1===u.resetStyle?null:f,h]});return[R,y]}}return{genStyleHooks:function(t,n,r,i){var a=Array.isArray(t)?t[0]:t;function s(e){return"".concat(String(a)).concat(e.slice(0,1).toUpperCase()).concat(e.slice(1))}var d=(null==i?void 0:i.unitless)||{},p=uy(uy({},"function"==typeof c?c(t):{}),{},ly({},s("zIndexPopup"),!0));Object.keys(d).forEach(function(e){p[s(e)]=d[e]});var h=uy(uy({},i),{},{unitless:p,prefixToken:s}),f=u(t,n,r,h),m=function(t,n,r){var i=r.unitless,a=r.injectStyle,s=void 0===a||a,c=r.prefixToken,u=r.ignore,d=function(a){var s=a.rootCls,l=a.cssVar,d=void 0===l?{}:l,p=o().realToken;return function(t,n){var r=t.key,o=t.prefix,i=t.unitless,a=t.ignore,s=t.token,l=t.scope,c=void 0===l?"":l,u=e.useContext(eg),d=u.cache.instanceId,p=u.container,h=s._tokenKey,f=[].concat(Su(t.path),[r,c,h]),m=Eg(Zg,f,function(){var e=n(),t=Pu(gg(e,r,{prefix:o,unitless:i,ignore:a,scope:c}),2),s=t[0],l=t[1];return[s,l,Yg(f,l),r]},function(e){var t=Pu(e,3)[2];dg&&gh(t,{mark:Zm,attachTo:p})},function(e){var t=Pu(e,3),n=t[1],o=t[2];if(n){var i=vh(n,o,{mark:Zm,prepend:"queue",attachTo:p,priority:-999});i[Qm]=d,i.setAttribute(Km,r)}})}({path:[t],prefix:d.prefix,key:d.key,unitless:i,ignore:u,token:p,scope:s},function(){var e=Ny(t,p,n),o=Cy(t,p,e,{deprecatedTokens:null==r?void 0:r.deprecatedTokens});return Object.keys(e).forEach(function(e){o[c(e)]=o[e],delete o[e]}),o}),null},p=function(e){var n=o().cssVar;return[function(r){return s&&n?l.default.createElement(l.default.Fragment,null,l.default.createElement(d,{rootCls:e,cssVar:n,component:t}),r):r},null==n?void 0:n.key]};return p}(a,r,h);return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=ay(f(e,t),2)[1],r=ay(m(t),2);return[r[0],n,r[1]]}},genSubStyleComponent:function(e,t,n){var r=u(e,t,n,uy({resetStyle:!1,order:-998},arguments.length>3&&void 0!==arguments[3]?arguments[3]:{})),o=function(e){var t=e.prefixCls,n=e.rootCls;return r(t,void 0===n?t:n),null};return"production"!==process.env.NODE_ENV&&(o.displayName="SubStyle_".concat(String(Array.isArray(e)?e.join("."):e))),o},genComponentStyleHook:u}}({usePrefix:()=>{const{getPrefixCls:t,iconPrefixCls:n}=e.useContext(qb);return{rootPrefixCls:t(),iconPrefixCls:n}},useToken:()=>{const[e,t,n,r,o]=fb();return{theme:e,realToken:t,hashId:n,token:r,cssVar:o}},useCSP:()=>{const{csp:t,iconPrefixCls:n}=e.useContext(qb);return By(n,t),null!=t?t:{}},getResetStyles:e=>[{"&":zy(e)}],getCommonStyle:(e,t,n,r)=>{const o=`[class^="${t}"], [class*=" ${t}"]`,i=n?`.${n}`:o,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return!1!==r&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[i]:Object.assign(Object.assign(Object.assign({},s),a),{[o]:a})}},getCompUnitless:()=>ub}),Wy=Object.assign({},c),{useId:Uy}=Wy;var Gy=void 0===Uy?()=>"":Uy;function Yy(e){const{children:t}=e,[,n]=fb(),{motion:r}=n,o=c.useRef(!1);return o.current=o.current||!1===r,o.current?c.createElement(Nh,{motion:r},t):t}const Xy=c.memo(e=>{let{dropdownMatchSelectWidth:t}=e;return yb("ConfigProvider").deprecated(void 0===t,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null});"production"!==process.env.NODE_ENV&&(Xy.displayName="PropWarning");var qy="production"!==process.env.NODE_ENV?Xy:()=>null,Ky=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 Zy=!1;process.env.NODE_ENV;const Qy=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let Jy;const ex=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,anchor:i,form:a,locale:s,componentSize:l,direction:u,space:d,splitter:p,virtual:h,dropdownMatchSelectWidth:f,popupMatchSelectWidth:m,popupOverflow:g,legacyLocale:v,parentContext:b,iconPrefixCls:y,theme:x,componentDisabled:w,segmented:_,statistic:S,spin:E,calendar:k,carousel:O,cascader:C,collapse:M,typography:T,checkbox:A,descriptions:P,divider:R,drawer:N,skeleton:D,steps:I,image:F,layout:L,list:j,mentions:z,modal:B,progress:H,result:V,slider:$,breadcrumb:W,menu:U,pagination:G,input:Y,textArea:X,empty:q,badge:K,radio:Z,rate:Q,switch:J,transfer:ee,avatar:te,message:ne,tag:re,table:oe,card:ie,tabs:ae,timeline:se,timePicker:le,upload:ce,notification:ue,tree:de,colorPicker:pe,datePicker:he,rangePicker:fe,flex:me,wave:ge,dropdown:ve,warning:be,tour:ye,floatButtonGroup:xe,variant:we,inputNumber:_e,treeSelect:Se}=e,Ee=c.useCallback((t,n)=>{const{prefixCls:r}=e;if(n)return n;const o=r||b.getPrefixCls("");return t?`${o}-${t}`:o},[b.getPrefixCls,e.prefixCls]),ke=y||b.iconPrefixCls||Yb,Oe=n||b.csp;By(ke,Oe);const Ce=function(e,t,n){var r,o;const i=yb("ConfigProvider"),a=e||{},s=!1!==a.inherit&&t?t:Object.assign(Object.assign({},rb),{hashed:null!==(r=null==t?void 0:t.hashed)&&void 0!==r?r:rb.hashed,cssVar:null==t?void 0:t.cssVar}),l=Gy();if("production"!==process.env.NODE_ENV){const e=a.cssVar||s.cssVar,t=!!("object"==typeof a.cssVar&&(null===(o=a.cssVar)||void 0===o?void 0:o.key)||l);"production"!==process.env.NODE_ENV&&i(!e||t,"breaking","Missing key in `cssVar` config. Please upgrade to React 18 or set `cssVar.key` manually in each ConfigProvider inside `cssVar` enabled ConfigProvider.")}return rd(()=>{var r,o;if(!e)return t;const i=Object.assign({},s.components);Object.keys(e.components||{}).forEach(t=>{i[t]=Object.assign(Object.assign({},i[t]),e.components[t])});const c=`css-var-${l.replace(/:/g,"")}`,u=(null!==(r=a.cssVar)&&void 0!==r?r:s.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:null==n?void 0:n.prefixCls},"object"==typeof s.cssVar?s.cssVar:{}),"object"==typeof a.cssVar?a.cssVar:{}),{key:"object"==typeof a.cssVar&&(null===(o=a.cssVar)||void 0===o?void 0:o.key)||c});return Object.assign(Object.assign(Object.assign({},s),a),{token:Object.assign(Object.assign({},s.token),a.token),components:i,cssVar:u})},[a,s],(e,t)=>e.some((e,n)=>!Ym(e,t[n],!0)))}(x,b.theme,{prefixCls:Ee("")});"production"!==process.env.NODE_ENV&&(Zy=Zy||!!Ce);const Me={csp:Oe,autoInsertSpaceInButton:r,alert:o,anchor:i,locale:s||v,direction:u,space:d,splitter:p,virtual:h,popupMatchSelectWidth:null!=m?m:f,popupOverflow:g,getPrefixCls:Ee,iconPrefixCls:ke,theme:Ce,segmented:_,statistic:S,spin:E,calendar:k,carousel:O,cascader:C,collapse:M,typography:T,checkbox:A,descriptions:P,divider:R,drawer:N,skeleton:D,steps:I,image:F,input:Y,textArea:X,layout:L,list:j,mentions:z,modal:B,progress:H,result:V,slider:$,breadcrumb:W,menu:U,pagination:G,empty:q,badge:K,radio:Z,rate:Q,switch:J,transfer:ee,avatar:te,message:ne,tag:re,table:oe,card:ie,tabs:ae,timeline:se,timePicker:le,upload:ce,notification:ue,tree:de,colorPicker:pe,datePicker:he,rangePicker:fe,flex:me,wave:ge,dropdown:ve,warning:be,tour:ye,floatButtonGroup:xe,variant:we,inputNumber:_e,treeSelect:Se};if("production"!==process.env.NODE_ENV){yb("ConfigProvider")(!("autoInsertSpaceInButton"in e),"deprecated","`autoInsertSpaceInButton` is deprecated. Please use `{ button: { autoInsertSpace: boolean }}` instead.")}const Te=Object.assign({},b);Object.keys(Me).forEach(e=>{void 0!==Me[e]&&(Te[e]=Me[e])}),Qy.forEach(t=>{const n=e[t];n&&(Te[t]=n)}),void 0!==r&&(Te.button=Object.assign({autoInsertSpace:r},Te.button));const Ae=rd(()=>Te,Te,(e,t)=>{const n=Object.keys(e),r=Object.keys(t);return n.length!==r.length||n.some(n=>e[n]!==t[n])}),Pe=c.useMemo(()=>({prefixCls:ke,csp:Oe}),[ke,Oe]);let Re=c.createElement(c.Fragment,null,c.createElement(qy,{dropdownMatchSelectWidth:f}),t);const Ne=c.useMemo(()=>{var e,t,n,r;return Hh((null===(e=jb.Form)||void 0===e?void 0:e.defaultValidateMessages)||{},(null===(n=null===(t=Ae.locale)||void 0===t?void 0:t.Form)||void 0===n?void 0:n.defaultValidateMessages)||{},(null===(r=Ae.form)||void 0===r?void 0:r.validateMessages)||{},(null==a?void 0:a.validateMessages)||{})},[Ae,null==a?void 0:a.validateMessages]);Object.keys(Ne).length>0&&(Re=c.createElement(Mb.Provider,{value:Ne},Re)),s&&(Re=c.createElement(Ub,{locale:s,_ANT_MARK__:$b},Re)),(ke||Oe)&&(Re=c.createElement(Cb.Provider,{value:Pe},Re)),l&&(Re=c.createElement(ny,{size:l},Re)),Re=c.createElement(Yy,null,Re);const De=c.useMemo(()=>{const e=Ce||{},{algorithm:t,token:n,components:r,cssVar:o}=e,i=Ky(e,["algorithm","token","components","cssVar"]),a=t&&(!Array.isArray(t)||t.length>0)?ig(t):nb,s={};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=ig(r.algorithm)),delete r.algorithm),s[t]=r});const l=Object.assign(Object.assign({},Tv),n);return Object.assign(Object.assign({},i),{theme:a,token:l,components:s,override:Object.assign({override:l},s),cssVar:o})},[Ce]);return x&&(Re=c.createElement(ob.Provider,{value:De},Re)),Ae.warning&&(Re=c.createElement(bb.Provider,{value:Ae.warning},Re)),void 0!==w&&(Re=c.createElement(Jb,{disabled:w},Re)),c.createElement(qb.Provider,{value:Ae},Re)},tx=e=>{const t=c.useContext(qb),n=c.useContext(Hb);return c.createElement(ex,Object.assign({parentContext:t,legacyLocale:n},e))};tx.ConfigContext=qb,tx.SizeContext=ry,tx.config=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:o}=e;void 0!==t&&(Jy=t),r&&function(e){return Object.keys(e).some(e=>e.endsWith("Color"))}(r)&&("production"!==process.env.NODE_ENV&&xb(!1,"ConfigProvider","`config` of css variable theme is not work in v5. Please use new `theme` config instead."),Zb(Jy||Gb,r))},tx.useConfig=function(){return{componentDisabled:e.useContext(ey),componentSize:e.useContext(ry)}},Object.defineProperty(tx,"SizeContext",{get:()=>("production"!==process.env.NODE_ENV&&xb(!1,"ConfigProvider","ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."),ry)}),"production"!==process.env.NODE_ENV&&(tx.displayName="ConfigProvider");const nx=(e,t,n)=>void 0!==n?n:`${e}-${t}`;var rx=(e,t,n,r)=>function(e){return t=>c.createElement(tx,{theme:{token:{motion:!1,zIndexPopupBase:0}}},c.createElement(e,Object.assign({},t)))}(o=>{const{prefixCls:i,style:a}=o,s=c.useRef(null),[l,u]=c.useState(0),[d,p]=c.useState(0),[h,f]=Bu(!1,{value:o.open}),{getPrefixCls:m}=c.useContext(qb),g=m(t||"select",i);c.useEffect(()=>{if(f(!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?`.${n(g)}`:`.${g}-dropdown`,i=null===(r=s.current)||void 0===r?void 0:r.querySelector(o);i&&(clearInterval(t),e.observe(i))},10);return()=>{clearInterval(t),e.disconnect()}}},[]);let v=Object.assign(Object.assign({},o),{style:Object.assign(Object.assign({},a),{margin:0}),open:h,visible:h,getPopupContainer:()=>s.current});r&&(v=r(v));const b={paddingBottom:l,position:"relative",minWidth:d};return c.createElement("div",{ref:s,style:b},c.createElement(e,Object.assign({},v)))});const ox=()=>{const[,e]=fb(),[t]=Vb("Empty"),n=new Xv(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return c.createElement("svg",{style:n,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},c.createElement("title",null,(null==t?void 0:t.description)||"Empty"),c.createElement("g",{fill:"none",fillRule:"evenodd"},c.createElement("g",{transform:"translate(24 31.67)"},c.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),c.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),c.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),c.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),c.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),c.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),c.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},c.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),c.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))};"production"!==process.env.NODE_ENV&&(ox.displayName="EmptyImage");var ix=ox;const ax=()=>{const[,t]=fb(),[n]=Vb("Empty"),{colorFill:r,colorFillTertiary:o,colorFillQuaternary:i,colorBgContainer:a}=t,{borderColor:s,shadowColor:l,contentColor:u}=e.useMemo(()=>({borderColor:new Xv(r).onBackground(a).toHexShortString(),shadowColor:new Xv(o).onBackground(a).toHexShortString(),contentColor:new Xv(i).onBackground(a).toHexShortString()}),[r,o,i,a]);return c.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},c.createElement("title",null,(null==n?void 0:n.description)||"Empty"),c.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},c.createElement("ellipse",{fill:l,cx:"32",cy:"33",rx:"32",ry:"7"}),c.createElement("g",{fillRule:"nonzero",stroke:s},c.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),c.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:u}))))};"production"!==process.env.NODE_ENV&&(ax.displayName="SimpleImage");var sx=ax;const lx=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",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:o,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}};var cx=Hy("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,o=Ay(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return[lx(o)]}),ux=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 dx=c.createElement(ix,null),px=c.createElement(sx,null),hx=e=>{var{className:t,rootClassName:n,prefixCls:r,image:o=dx,description:i,children:a,imageStyle:s,style:l}=e,u=ux(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:d,direction:p,empty:h}=c.useContext(qb),f=d("empty",r),[m,g,v]=cx(f),[b]=Vb("Empty"),y=void 0!==i?i:null==b?void 0:b.description,x="string"==typeof y?y:"empty";let w=null;return w="string"==typeof o?c.createElement("img",{alt:x,src:o}):o,m(c.createElement("div",Object.assign({className:bu(g,v,f,null==h?void 0:h.className,{[`${f}-normal`]:o===px,[`${f}-rtl`]:"rtl"===p},t,n),style:Object.assign(Object.assign({},null==h?void 0:h.style),l)},u),c.createElement("div",{className:`${f}-image`,style:s},w),y&&c.createElement("div",{className:`${f}-description`},y),a&&c.createElement("div",{className:`${f}-footer`},a)))};hx.PRESENTED_IMAGE_DEFAULT=dx,hx.PRESENTED_IMAGE_SIMPLE=px,"production"!==process.env.NODE_ENV&&(hx.displayName="Empty");var fx=hx;var mx=t=>{const{componentName:n}=t,{getPrefixCls:r}=e.useContext(qb),o=r("empty");switch(n){case"Table":case"List":return l.default.createElement(fx,{image:fx.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return l.default.createElement(fx,{image:fx.PRESENTED_IMAGE_SIMPLE,className:`${o}-small`});case"Table.filter":return null;default:return l.default.createElement(fx,null)}};var gx=e=>{const[,,,,t]=fb();return t?`${e}-css-var`:""};var vx=e=>{const t=l.default.useContext(ry);return l.default.useMemo(()=>e?"string"==typeof e?null!=e?e:t:e instanceof Function?e(t):t:t,[e,t])};function bx(){return bx=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},bx.apply(null,arguments)}function yx(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(-1!==t.indexOf(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],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function xx(e,t){this.v=e,this.k=t}function wx(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}wx=function(e,t,n,r){function i(t,n){wx(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},wx(e,t,n,r)}function _x(){
36
- /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
37
- var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof s?r:s,c=Object.create(l.prototype);return wx(c,"_invoke",function(n,r,o){var i,s,l,c=0,u=o||[],d=!1,p={p:0,n:0,v:e,a:h,f:h.bind(e,4),d:function(t,n){return i=t,s=0,l=e,p.n=n,a}};function h(n,r){for(s=n,l=r,t=0;!d&&c&&!o&&t<u.length;t++){var o,i=u[t],h=p.p,f=i[2];n>3?(o=f===r)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=h&&((o=n<2&&h<i[1])?(s=0,p.v=r,p.n=i[1]):h<f&&(o=n<3||i[0]>r||r>f)&&(i[4]=n,i[5]=r,p.n=f,s=0))}if(o||n>1)return a;throw d=!0,r}return function(o,u,f){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&h(u,f),s=u,l=f;(t=s<2?e:l)||!d;){i||(s?s<3?(s>1&&(p.n=-1),h(s,l)):p.n=l:p.v=l);try{if(c=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(d=p.n<0)?l:n.call(r,p))!==a)break}catch(t){i=e,s=1,l=t}finally{c=1}}return{value:t,done:d}}}(n,o,i),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(wx(t={},r,function(){return this}),t),d=c.prototype=s.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,wx(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,wx(d,"constructor",c),wx(c,"constructor",l),l.displayName="GeneratorFunction",wx(c,o,"GeneratorFunction"),wx(d),wx(d,o,"Generator"),wx(d,r,function(){return this}),wx(d,"toString",function(){return"[object Generator]"}),(_x=function(){return{w:i,m:p}})()}function Sx(e,t){function n(r,o,i,a){try{var s=e[r](o),l=s.value;return l instanceof xx?t.resolve(l.v).then(function(e){n("next",e,i,a)},function(e){n("throw",e,i,a)}):t.resolve(l).then(function(e){s.value=e,i(s)},function(e){return n("throw",e,i,a)})}catch(e){a(e)}}var r;this.next||(wx(Sx.prototype),wx(Sx.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),wx(this,"_invoke",function(e,o,i){function a(){return new t(function(t,r){n(e,i,t,r)})}return r=r?r.then(a,a):a()},!0)}function Ex(e,t,n,r,o){return new Sx(_x().w(e,t,n,r),o||Promise)}function kx(e,t,n,r,o){var i=Ex(e,t,n,r,o);return i.next().then(function(e){return e.done?e.value:i.next()})}function Ox(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function e(){for(;n.length;)if((r=n.pop())in t)return e.value=r,e.done=!1,e;return e.done=!0,e}}function Cx(e){return Cx="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},Cx(e)}function Mx(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(Cx(e)+" is not iterable")}function Tx(){var e=_x(),t=e.m(Tx),n=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function r(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===n||"GeneratorFunction"===(t.displayName||t.name))}var o={throw:1,return:2,break:3,continue:3};function i(e){var t,n;return function(r){t||(t={stop:function(){return n(r.a,2)},catch:function(){return r.v},abrupt:function(e,t){return n(r.a,o[e],t)},delegateYield:function(e,o,i){return t.resultName=o,n(r.d,Mx(e),i)},finish:function(e){return n(r.f,e)}},n=function(e,n,o){r.p=t.prev,r.n=t.next;try{return e(n,o)}finally{t.next=r.n}}),t.resultName&&(t[t.resultName]=r.v,t.resultName=void 0),t.sent=r.v,t.next=r.n;try{return e.call(this,t)}finally{r.p=t.prev,r.n=t.next}}}return(Tx=function(){return{wrap:function(t,n,r,o){return e.w(i(t),n,r,o&&o.reverse())},isGeneratorFunction:r,mark:e.m,awrap:function(e,t){return new xx(e,t)},AsyncIterator:Sx,async:function(e,t,n,o,a){return(r(t)?Ex:kx)(i(e),t,n,o,a)},keys:Ox,values:Mx}})()}function Ax(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function Px(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){Ax(i,r,o,a,s,"next",e)}function s(e){Ax(i,r,o,a,s,"throw",e)}a(void 0)})}}function Rx(e){var t=function(e,t){if("object"!=Cx(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Cx(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Cx(t)?t:t+""}function Nx(e,t,n){return(t=Rx(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Dx(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 Ix(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Dx(Object(n),!0).forEach(function(t){Nx(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dx(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Fx(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 Lx(e,t){if(e){if("string"==typeof e)return Fx(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)?Fx(e,t):void 0}}function jx(e){return function(e){if(Array.isArray(e))return Fx(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Lx(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 zx(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Bx(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,Rx(r.key),r)}}function Hx(e,t,n){return t&&Bx(e.prototype,t),n&&Bx(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Vx(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $x(e,t){return $x=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},$x(e,t)}function Wx(e){return Wx=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Wx(e)}function Ux(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Ux=function(){return!!e})()}function Gx(e){var t=Ux();return function(){var n,r=Wx(e);if(t){var o=Wx(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==Cx(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Vx(e)}(this,n)}}var Yx="RC_FORM_INTERNAL_HOOKS",Xx=function(){Yu(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},qx=c.createContext({getFieldValue:Xx,getFieldsValue:Xx,getFieldError:Xx,getFieldWarning:Xx,getFieldsError:Xx,isFieldsTouched:Xx,isFieldTouched:Xx,isFieldValidating:Xx,isFieldsValidating:Xx,resetFields:Xx,setFields:Xx,setFieldValue:Xx,setFieldsValue:Xx,validateFields:Xx,submit:Xx,getInternalHooks:function(){return Xx(),{dispatch:Xx,initEntityValue:Xx,registerField:Xx,useSubscribe:Xx,setInitialValues:Xx,destroyForm:Xx,setCallbacks:Xx,registerWatch:Xx,getFields:Xx,setValidateMessages:Xx,setPreserve:Xx,getInitialValue:Xx}}}),Kx=c.createContext(null);function Zx(e){return null==e?[]:Array.isArray(e)?e:[e]}function Qx(e){return Qx="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},Qx(e)}function Jx(e){var t=function(e,t){if("object"!=Qx(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Qx(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Qx(t)?t:t+""}function ew(e,t,n){return(t=Jx(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tw(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 nw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tw(Object(n),!0).forEach(function(t){ew(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tw(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function rw(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 ow(e){return function(e){if(Array.isArray(e))return rw(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 rw(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)?rw(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 iw(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function aw(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,Jx(r.key),r)}}function sw(e,t,n){return t&&aw(e.prototype,t),n&&aw(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function lw(){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",tel:"%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 cw=lw();function uw(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dw(e,t){return dw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},dw(e,t)}function pw(e){return pw=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},pw(e)}function hw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(hw=function(){return!!e})()}function fw(e){var t=hw();return function(){var n,r=pw(e);if(t){var o=pw(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==Qx(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return uw(e)}(this,n)}}function mw(e){var t="function"==typeof Map?new Map:void 0;return mw=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return function(e,t,n){if(hw())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&dw(o,n.prototype),o}(e,arguments,pw(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),dw(n,e)},mw(e)}var gw=/%[sdj%]/g,vw=function(){};function bw(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 yw(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(gw,function(e){if("%%"===e)return"%";if(o>=i)return e;switch(e){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch(e){return"[Circular]"}break;default:return e}}):e}function xw(e,t){return null==e||(!("array"!==t||!Array.isArray(e)||e.length)||!(!function(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"date"===e||"pattern"===e||"tel"===e}(t)||"string"!=typeof e||e))}function ww(e,t,n){var r=0,o=e.length;!function i(a){if(a&&a.length)n(a);else{var s=r;r+=1,s<o?t(e[s],i):n([])}}([])}"undefined"!=typeof process&&process.env&&"production"!==process.env.NODE_ENV&&"undefined"!=typeof window&&"undefined"!=typeof document&&(vw=function(e,t){"undefined"!=typeof console&&console.warn&&"undefined"==typeof ASYNC_VALIDATOR_NO_WARNING&&t.every(function(e){return"string"==typeof e})&&console.warn(e,t)});var _w=function(){!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&&dw(e,t)}(t,mw(Error));var e=fw(t);function t(n,r){var o;return iw(this,t),ew(uw(o=e.call(this,"Async Validation Error")),"errors",void 0),ew(uw(o),"fields",void 0),o.errors=n,o.fields=r,o}return sw(t)}();function Sw(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,ow(e[n]||[]))}),t}(e);ww(a,n,function(e){return r(e),e.length?i(new _w(e,bw(e))):t(o)})});return i.catch(function(e){return e}),i}var a=!0===t.firstFields?Object.keys(e):t.firstFields||[],s=Object.keys(e),l=s.length,c=0,u=[],d=new Promise(function(t,i){var d=function(e){if(u.push.apply(u,e),++c===l)return r(u),u.length?i(new _w(u,bw(u))):t(o)};s.length||(r(u),t(o)),s.forEach(function(t){var r=e[t];-1!==a.indexOf(t)?ww(r,n,d):function(e,t,n){var r=[],o=0,i=e.length;function a(e){r.push.apply(r,ow(e||[])),++o===i&&n(r)}e.forEach(function(e){t(e,a)})}(r,n,d)})});return d.catch(function(e){return e}),d}function Ew(e,t){return function(n){var r,o;return r=e.fullFields?function(e,t){for(var n=e,r=0;r<t.length;r++){if(null==n)return n;n=n[t[r]]}return n}(t,e.fullFields):t[n.field||e.fullField],(o=n)&&void 0!==o.message?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:"function"==typeof n?n():n,fieldValue:r,field:n.field||e.fullField}}}function kw(e,t){if(t)for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];"object"===Qx(r)&&"object"===Qx(e[n])?e[n]=nw(nw({},e[n]),r):e[n]=r}return e}var Ow,Cw="enum",Mw=function(e,t,n,r,o,i){!e.required||n.hasOwnProperty(e.field)&&!xw(t,i||e.type)||r.push(yw(o.messages.required,e.fullField))},Tw=/^(([^<>()\[\]\\.,;:\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,}))$/,Aw=/^(\+[0-9]{1,3}[-\s\u2011]?)?(\([0-9]{1,4}\)[-\s\u2011]?)?([0-9]+[-\s\u2011]?)*[0-9]+$/,Pw=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,Rw={integer:function(e){return Rw.number(e)&&parseInt(e,10)===e},float:function(e){return Rw.number(e)&&!Rw.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(e){return!1}},date:function(e){return"function"==typeof e.getTime&&"function"==typeof e.getMonth&&"function"==typeof e.getYear&&!isNaN(e.getTime())},number:function(e){return!isNaN(e)&&"number"==typeof e},object:function(e){return"object"===Qx(e)&&!Rw.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&e.length<=320&&!!e.match(Tw)},tel:function(e){return"string"==typeof e&&e.length<=32&&!!e.match(Aw)},url:function(e){return"string"==typeof e&&e.length<=2048&&!!e.match(function(){if(Ow)return Ow;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,"$)")),s=new RegExp("^".concat(n,"$")),l=new RegExp("^".concat(i,"$")),c=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")};c.v4=function(e){return e&&e.exact?s:new RegExp("".concat(t(e)).concat(n).concat(t(e)),"g")},c.v6=function(e){return e&&e.exact?l:new RegExp("".concat(t(e)).concat(i).concat(t(e)),"g")};var u=c.v4().source,d=c.v6().source,p="(?:".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 Ow=new RegExp("(?:^".concat(p,"$)"),"i")}())},hex:function(e){return"string"==typeof e&&!!e.match(Pw)}},Nw={required:Mw,whitespace:function(e,t,n,r,o){(/^\s+$/.test(t)||""===t)&&r.push(yw(o.messages.whitespace,e.fullField))},type:function(e,t,n,r,o){if(e.required&&void 0===t)Mw(e,t,n,r,o);else{var i=e.type;["integer","float","array","regexp","object","method","email","tel","number","date","url","hex"].indexOf(i)>-1?Rw[i](t)||r.push(yw(o.messages.types[i],e.fullField,e.type)):i&&Qx(t)!==e.type&&r.push(yw(o.messages.types[i],e.fullField,e.type))}},range:function(e,t,n,r,o){var i="number"==typeof e.len,a="number"==typeof e.min,s="number"==typeof e.max,l=t,c=null,u="number"==typeof t,d="string"==typeof t,p=Array.isArray(t);if(u?c="number":d?c="string":p&&(c="array"),!c)return!1;p&&(l=t.length),d&&(l=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),i?l!==e.len&&r.push(yw(o.messages[c].len,e.fullField,e.len)):a&&!s&&l<e.min?r.push(yw(o.messages[c].min,e.fullField,e.min)):s&&!a&&l>e.max?r.push(yw(o.messages[c].max,e.fullField,e.max)):a&&s&&(l<e.min||l>e.max)&&r.push(yw(o.messages[c].range,e.fullField,e.min,e.max))},enum:function(e,t,n,r,o){e[Cw]=Array.isArray(e[Cw])?e[Cw]:[],-1===e[Cw].indexOf(t)&&r.push(yw(o.messages[Cw],e.fullField,e[Cw].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(yw(o.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"==typeof e.pattern){new RegExp(e.pattern).test(t)||r.push(yw(o.messages.pattern.mismatch,e.fullField,t,e.pattern))}}},Dw=function(e,t,n,r,o){var i=e.type,a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(xw(t,i)&&!e.required)return n();Nw.required(e,t,r,a,o,i),xw(t,i)||Nw.type(e,t,r,a,o)}n(a)},Iw={string:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(xw(t,"string")&&!e.required)return n();Nw.required(e,t,r,i,o,"string"),xw(t,"string")||(Nw.type(e,t,r,i,o),Nw.range(e,t,r,i,o),Nw.pattern(e,t,r,i,o),!0===e.whitespace&&Nw.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(xw(t)&&!e.required)return n();Nw.required(e,t,r,i,o),void 0!==t&&Nw.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),xw(t)&&!e.required)return n();Nw.required(e,t,r,i,o),void 0!==t&&(Nw.type(e,t,r,i,o),Nw.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(xw(t)&&!e.required)return n();Nw.required(e,t,r,i,o),void 0!==t&&Nw.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(xw(t)&&!e.required)return n();Nw.required(e,t,r,i,o),xw(t)||Nw.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(xw(t)&&!e.required)return n();Nw.required(e,t,r,i,o),void 0!==t&&(Nw.type(e,t,r,i,o),Nw.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(xw(t)&&!e.required)return n();Nw.required(e,t,r,i,o),void 0!==t&&(Nw.type(e,t,r,i,o),Nw.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(null==t&&!e.required)return n();Nw.required(e,t,r,i,o,"array"),null!=t&&(Nw.type(e,t,r,i,o),Nw.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(xw(t)&&!e.required)return n();Nw.required(e,t,r,i,o),void 0!==t&&Nw.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(xw(t)&&!e.required)return n();Nw.required(e,t,r,i,o),void 0!==t&&Nw.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(xw(t,"string")&&!e.required)return n();Nw.required(e,t,r,i,o),xw(t,"string")||Nw.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(xw(t,"date")&&!e.required)return n();var a;if(Nw.required(e,t,r,i,o),!xw(t,"date"))a=t instanceof Date?t:new Date(t),Nw.type(e,a,r,i,o),a&&Nw.range(e,a.getTime(),r,i,o)}n(i)},url:Dw,hex:Dw,email:Dw,tel:Dw,required:function(e,t,n,r,o){var i=[],a=Array.isArray(t)?"array":Qx(t);Nw.required(e,t,r,i,o,a),n(i)},any:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(xw(t)&&!e.required)return n();Nw.required(e,t,r,i,o)}n(i)}},Fw=function(){function e(t){iw(this,e),ew(this,"rules",null),ew(this,"_messages",cw),this.define(t)}return sw(e,[{key:"define",value:function(e){var t=this;if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==Qx(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=kw(lw(),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===cw&&(a=lw()),kw(a,o.messages),o.messages=a}else o.messages=this.messages();var s={};(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=nw({},r)),null!=(i=r[e]=a.transform(i))&&(a.type=a.type||(Array.isArray(i)?"array":Qx(i)))),(a="function"==typeof a?{validator:a}:nw({},a)).validator=n.getValidationMethod(a),a.validator&&(a.field=e,a.fullField=a.fullField||e,a.type=n.getType(a),s[e]=s[e]||[],s[e].push({rule:a,value:i,source:r,field:e}))})});var l={};return Sw(s,o,function(t,n){var i,a=t.rule,s=!("object"!==a.type&&"array"!==a.type||"object"!==Qx(a.fields)&&"object"!==Qx(a.defaultField));function c(e,t){return nw(nw({},t),{},{fullField:"".concat(a.fullField,".").concat(e),fullFields:a.fullFields?[].concat(ow(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&&null!==a.message&&(u=[].concat(a.message));var d=u.map(Ew(a,r));if(o.first&&d.length)return l[a.field]=1,n(d);if(s){if(a.required&&!t.value)return void 0!==a.message?d=[].concat(a.message).map(Ew(a,r)):o.error&&(d=[o.error(a,yw(o.messages.required,a.field))]),n(d);var p={};a.defaultField&&Object.keys(t.value).map(function(e){p[e]=a.defaultField}),p=nw(nw({},p),t.rule.fields);var h={};Object.keys(p).forEach(function(e){var t=p[e],n=Array.isArray(t)?t:[t];h[e]=n.map(c.bind(null,e))});var f=new e(h);f.messages(o.messages),t.rule.options&&(t.rule.options.messages=o.messages,t.rule.options.error=o.error),f.validate(t.value,t.rule.options||o,function(e){var t=[];d&&d.length&&t.push.apply(t,ow(d)),e&&e.length&&t.push.apply(t,ow(e)),n(t.length?t:null)})}else n(d)}if(s=s&&(a.required||!a.required&&t.value),a.field=t.field,a.asyncValidator)i=a.asyncValidator(a,t.value,u,t.source,o);else if(a.validator){try{i=a.validator(a,t.value,u,t.source,o)}catch(e){var d,p;null===(d=(p=console).error)||void 0===d||d.call(p,e),o.suppressValidatorError||setTimeout(function(){throw e},0),u(e.message)}!0===i?u():!1===i?u("function"==typeof a.message?a.message(a.fullField||a.field):a.message||"".concat(a.fullField||a.field," fails")):i instanceof Array?u(i):i instanceof Error&&u(i.message)}i&&i.then&&i.then(function(){return u()},function(e){return u(e)})},function(e){!function(e){var t=[],n={};function o(e){var n;Array.isArray(e)?t=(n=t).concat.apply(n,ow(e)):t.push(e)}for(var a=0;a<e.length;a++)o(e[a]);t.length?(n=bw(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&&!Iw.hasOwnProperty(e.type))throw new Error(yw("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]?Iw.required:Iw[this.getType(e)]||void 0}}]),e}();ew(Fw,"register",function(e,t){if("function"!=typeof t)throw new Error("Cannot register a validator by type, validator is not a function");Iw[e]=t}),ew(Fw,"warning",vw),ew(Fw,"messages",cw),ew(Fw,"validators",Iw);var Lw="'${name}' is not a valid ${type}",jw={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:Lw,method:Lw,array:Lw,object:Lw,number:Lw,date:Lw,boolean:Lw,integer:Lw,float:Lw,regexp:Lw,email:Lw,url:Lw,hex:Lw},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}"}},zw=Fw;function Bw(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 Hw="CODE_LOGIC_ERROR";function Vw(e,t,n,r,o){return $w.apply(this,arguments)}function $w(){return $w=Px(Tx().mark(function e(t,n,r,o,i){var a,s,l,u,d,p,h,f,m;return Tx().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return delete(a=Ix({},r)).ruleIndex,zw.warning=function(){},a.validator&&(s=a.validator,a.validator=function(){try{return s.apply(void 0,arguments)}catch(e){return console.error(e),Promise.reject(Hw)}}),l=null,a&&"array"===a.type&&a.defaultField&&(l=a.defaultField,delete a.defaultField),u=new zw(Nx({},t,[a])),d=Hh(jw,o.validateMessages),u.messages(d),p=[],e.prev=10,e.next=13,Promise.resolve(u.validate(Nx({},t,n),Ix({},o)));case 13:e.next=18;break;case 15:e.prev=15,e.t0=e.catch(10),e.t0.errors&&(p=e.t0.errors.map(function(e,t){var n=e.message,r=n===Hw?d.default:n;return c.isValidElement(r)?c.cloneElement(r,{key:"error_".concat(t)}):r}));case 18:if(p.length||!l){e.next=23;break}return e.next=21,Promise.all(n.map(function(e,n){return Vw("".concat(t,".").concat(n),e,l,o,i)}));case 21:return h=e.sent,e.abrupt("return",h.reduce(function(e,t){return[].concat(jx(e),jx(t))},[]));case 23:return f=Ix(Ix({},r),{},{name:t,enum:(r.enum||[]).join(", ")},i),m=p.map(function(e){return"string"==typeof e?Bw(e,f):e}),e.abrupt("return",m);case 26:case"end":return e.stop()}},e,null,[[10,15]])})),$w.apply(this,arguments)}function Ww(e,t,n,r,o,i){var a,s=e.join("."),l=n.map(function(e,t){var n=e.validator,r=Ix(Ix({},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(){Yu(!o,"Your validator function has already return a promise. `callback` will be ignored."),o||r.apply(void 0,t)})});Yu(o=i&&"function"==typeof i.then&&"function"==typeof i.catch,"`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=Px(Tx().mark(function e(n,o){var a,c,u;return Tx().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:a=0;case 1:if(!(a<l.length)){e.next=12;break}return c=l[a],e.next=5,Vw(s,t,c,r,i);case 5:if(!(u=e.sent).length){e.next=9;break}return o([{errors:u,rule:c}]),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 c=l.map(function(e){return Vw(s,t,e,r,i).then(function(t){return{errors:t,rule:e}})});a=(o?function(e){return Gw.apply(this,arguments)}(c):function(e){return Uw.apply(this,arguments)}(c)).then(function(e){return Promise.reject(e)})}return a.catch(function(e){return e}),a}function Uw(){return(Uw=Px(Tx().mark(function e(t){return Tx().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,jx(e))}));case 1:case"end":return e.stop()}},e)}))).apply(this,arguments)}function Gw(){return Gw=Px(Tx().mark(function e(t){var n;return Tx().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)})),Gw.apply(this,arguments)}function Yw(e){return Zx(e)}function Xw(e,t){var n={};return t.forEach(function(t){var r=Ih(e,t);n=jh(n,t,r)}),n}function qw(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e&&e.some(function(e){return Kw(t,e,n)})}function Kw(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 Zw(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&"object"===Cx(t.target)&&e in t.target?t.target[e]:t}function Qw(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(jx(e.slice(0,n)),[o],jx(e.slice(n,t)),jx(e.slice(t+1,r))):i<0?[].concat(jx(e.slice(0,t)),jx(e.slice(t+1,n+1)),[o],jx(e.slice(n+1,r))):e}var Jw=["name"],e_=[];function t_(e,t,n,r,o,i){return"function"==typeof e?e(t,n,"source"in i?{source:i.source}:{}):r!==o}var n_=function(){!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&&$x(e,t)}(t,c.Component);var e=Gx(t);function t(n){var r;(zx(this,t),Nx(Vx(r=e.call(this,n)),"state",{resetCount:0}),Nx(Vx(r),"cancelRegisterFunc",null),Nx(Vx(r),"mounted",!1),Nx(Vx(r),"touched",!1),Nx(Vx(r),"dirty",!1),Nx(Vx(r),"validatePromise",void 0),Nx(Vx(r),"prevValidating",void 0),Nx(Vx(r),"errors",e_),Nx(Vx(r),"warnings",e_),Nx(Vx(r),"cancelRegister",function(){var e=r.props,t=e.preserve,n=e.isListField,o=e.name;r.cancelRegisterFunc&&r.cancelRegisterFunc(n,t,Yw(o)),r.cancelRegisterFunc=null}),Nx(Vx(r),"getNamePath",function(){var e=r.props,t=e.name,n=e.fieldContext.prefixName;return void 0!==t?[].concat(jx(void 0===n?[]:n),jx(t)):[]}),Nx(Vx(r),"getRules",function(){var e=r.props,t=e.rules,n=void 0===t?[]:t,o=e.fieldContext;return n.map(function(e){return"function"==typeof e?e(o):e})}),Nx(Vx(r),"refresh",function(){r.mounted&&r.setState(function(e){return{resetCount:e.resetCount+1}})}),Nx(Vx(r),"metaCache",null),Nx(Vx(r),"triggerMetaEvent",function(e){var t=r.props.onMetaChange;if(t){var n=Ix(Ix({},r.getMeta()),{},{destroy:e});Ym(r.metaCache,n)||t(n),r.metaCache=n}else r.metaCache=null}),Nx(Vx(r),"onStoreChange",function(e,t,n){var o=r.props,i=o.shouldUpdate,a=o.dependencies,s=void 0===a?[]:a,l=o.onReset,c=n.store,u=r.getNamePath(),d=r.getValue(e),p=r.getValue(c),h=t&&qw(t,u);switch("valueUpdate"!==n.type||"external"!==n.source||Ym(d,p)||(r.touched=!0,r.dirty=!0,r.validatePromise=null,r.errors=e_,r.warnings=e_,r.triggerMetaEvent()),n.type){case"reset":if(!t||h)return r.touched=!1,r.dirty=!1,r.validatePromise=void 0,r.errors=e_,r.warnings=e_,r.triggerMetaEvent(),null==l||l(),void r.refresh();break;case"remove":if(i&&t_(i,e,c,d,p,n))return void r.reRender();break;case"setField":var f=n.data;if(h)return"touched"in f&&(r.touched=f.touched),"validating"in f&&!("originRCField"in f)&&(r.validatePromise=f.validating?Promise.resolve([]):null),"errors"in f&&(r.errors=f.errors||e_),"warnings"in f&&(r.warnings=f.warnings||e_),r.dirty=!0,r.triggerMetaEvent(),void r.reRender();if("value"in f&&qw(t,u,!0))return void r.reRender();if(i&&!u.length&&t_(i,e,c,d,p,n))return void r.reRender();break;case"dependenciesUpdate":if(s.map(Yw).some(function(e){return qw(n.relatedFields,e)}))return void r.reRender();break;default:if(h||(!s.length||u.length||i)&&t_(i,e,c,d,p,n))return void r.reRender()}!0===i&&r.reRender()}),Nx(Vx(r),"validateRules",function(e){var t=r.getNamePath(),n=r.getValue(),o=e||{},i=o.triggerName,a=o.validateOnly,s=void 0!==a&&a,l=Promise.resolve().then(Px(Tx().mark(function o(){var a,s,c,u,d,p,h;return Tx().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:if(r.mounted){o.next=2;break}return o.abrupt("return",[]);case 2:if(a=r.props,s=a.validateFirst,c=void 0!==s&&s,u=a.messageVariables,d=a.validateDebounce,p=r.getRules(),i&&(p=p.filter(function(e){return e}).filter(function(e){var t=e.validateTrigger;return!t||Zx(t).includes(i)})),!d||!i){o.next=10;break}return o.next=8,new Promise(function(e){setTimeout(e,d)});case 8:if(r.validatePromise===l){o.next=10;break}return o.abrupt("return",[]);case 10:return(h=Ww(t,n,p,e,c,u)).catch(function(e){return e}).then(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e_;if(r.validatePromise===l){var t;r.validatePromise=null;var n=[],o=[];null===(t=e.forEach)||void 0===t||t.call(e,function(e){var t=e.rule.warningOnly,r=e.errors,i=void 0===r?e_:r;t?o.push.apply(o,jx(i)):n.push.apply(n,jx(i))}),r.errors=n,r.warnings=o,r.triggerMetaEvent(),r.reRender()}}),o.abrupt("return",h);case 13:case"end":return o.stop()}},o)})));return s||(r.validatePromise=l,r.dirty=!0,r.errors=e_,r.warnings=e_,r.triggerMetaEvent(),r.reRender()),l}),Nx(Vx(r),"isFieldValidating",function(){return!!r.validatePromise}),Nx(Vx(r),"isFieldTouched",function(){return r.touched}),Nx(Vx(r),"isFieldDirty",function(){return!(!r.dirty&&void 0===r.props.initialValue)||void 0!==(0,r.props.fieldContext.getInternalHooks(Yx).getInitialValue)(r.getNamePath())}),Nx(Vx(r),"getErrors",function(){return r.errors}),Nx(Vx(r),"getWarnings",function(){return r.warnings}),Nx(Vx(r),"isListField",function(){return r.props.isListField}),Nx(Vx(r),"isList",function(){return r.props.isList}),Nx(Vx(r),"isPreserve",function(){return r.props.preserve}),Nx(Vx(r),"getMeta",function(){return r.prevValidating=r.isFieldValidating(),{touched:r.isFieldTouched(),validating:r.prevValidating,errors:r.errors,warnings:r.warnings,name:r.getNamePath(),validated:null===r.validatePromise}}),Nx(Vx(r),"getOnlyChild",function(e){if("function"==typeof e){var t=r.getMeta();return Ix(Ix({},r.getOnlyChild(e(r.getControlled(),t,r.props.fieldContext))),{},{isFunction:!0})}var n=_d(e);return 1===n.length&&c.isValidElement(n[0])?{child:n[0],isFunction:!1}:{child:n,isFunction:!1}}),Nx(Vx(r),"getValue",function(e){var t=r.props.fieldContext.getFieldsValue,n=r.getNamePath();return Ih(e||t(!0),n)}),Nx(Vx(r),"getControlled",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=r.props,n=t.name,o=t.trigger,i=t.validateTrigger,a=t.getValueFromEvent,s=t.normalize,l=t.valuePropName,c=t.getValueProps,u=t.fieldContext,d=void 0!==i?i:u.validateTrigger,p=r.getNamePath(),h=u.getInternalHooks,f=u.getFieldsValue,m=h(Yx).dispatch,g=r.getValue(),v=c||function(e){return Nx({},l,e)},b=e[o],y=void 0!==n?v(g):{};"production"!==process.env.NODE_ENV&&y&&Object.keys(y).forEach(function(e){Yu("function"!=typeof y[e],"It's not recommended to generate dynamic function prop by `getValueProps`. Please pass it to child component directly (prop: ".concat(e,")"))});var x=Ix(Ix({},e),y);return x[o]=function(){var e;r.touched=!0,r.dirty=!0,r.triggerMetaEvent();for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];e=a?a.apply(void 0,n):Zw.apply(void 0,[l].concat(n)),s&&(e=s(e,g,f(!0))),m({type:"updateValue",namePath:p,value:e}),b&&b.apply(void 0,n)},Zx(d||[]).forEach(function(e){var t=x[e];x[e]=function(){t&&t.apply(void 0,arguments);var n=r.props.rules;n&&n.length&&m({type:"validateField",namePath:p,triggerName:e})}}),x}),n.fieldContext)&&(0,(0,n.fieldContext.getInternalHooks)(Yx).initEntityValue)(Vx(r));return r}return Hx(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.shouldUpdate,n=e.fieldContext;if(this.mounted=!0,n){var r=(0,n.getInternalHooks)(Yx).registerField;this.cancelRegisterFunc=r(this)}!0===t&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var e,t=this.state.resetCount,n=this.props.children,r=this.getOnlyChild(n),o=r.child;return r.isFunction?e=o:c.isValidElement(o)?e=c.cloneElement(o,this.getControlled(o.props)):(Yu(!o,"`children` of Field is not validate ReactElement."),e=o),c.createElement(c.Fragment,{key:t},e)}}]),t}();function r_(e){var t=e.name,n=yx(e,Jw),r=c.useContext(qx),o=c.useContext(Kx),i=void 0!==t?Yw(t):void 0,a="keep";return n.isListField||(a="_".concat((i||[]).join("_"))),"production"!==process.env.NODE_ENV&&!1===n.preserve&&n.isListField&&i.length<=1&&Yu(!1,"`preserve` should not apply on Form.List fields."),c.createElement(n_,bx({key:a,name:i,isListField:!!o},n,{fieldContext:r}))}function o_(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,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||Lx(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.")}()}Nx(n_,"contextType",qx),Nx(n_,"defaultProps",{trigger:"onChange",valuePropName:"value"});var i_="__@field_split__";function a_(e){return e.map(function(e){return"".concat(Cx(e),":").concat(e)}).join(i_)}var s_=function(){function e(){zx(this,e),Nx(this,"kvs",new Map)}return Hx(e,[{key:"set",value:function(e,t){this.kvs.set(a_(e),t)}},{key:"get",value:function(e){return this.kvs.get(a_(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(a_(e))}},{key:"map",value:function(e){return jx(this.kvs.entries()).map(function(t){var n=o_(t,2),r=n[0],o=n[1],i=r.split(i_);return e({key:i.map(function(e){var t=o_(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}(),l_=["name"],c_=Hx(function e(t){var n=this;zx(this,e),Nx(this,"formHooked",!1),Nx(this,"forceRootUpdate",void 0),Nx(this,"subscribable",!0),Nx(this,"store",{}),Nx(this,"fieldEntities",[]),Nx(this,"initialValues",{}),Nx(this,"callbacks",{}),Nx(this,"validateMessages",null),Nx(this,"preserve",null),Nx(this,"lastValidatePromise",null),Nx(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}}),Nx(this,"getInternalHooks",function(e){return e===Yx?(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}):(Yu(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),Nx(this,"useSubscribe",function(e){n.subscribable=e}),Nx(this,"prevWithoutPreserves",null),Nx(this,"setInitialValues",function(e,t){if(n.initialValues=e||{},t){var r,o=Hh(e,n.store);null===(r=n.prevWithoutPreserves)||void 0===r||r.map(function(t){var n=t.key;o=jh(o,n,Ih(e,n))}),n.prevWithoutPreserves=null,n.updateStore(o)}}),Nx(this,"destroyForm",function(e){if(e)n.updateStore({});else{var t=new s_;n.getFieldEntities(!0).forEach(function(e){n.isMergedPreserve(e.isPreserve())||t.set(e.getNamePath(),!0)}),n.prevWithoutPreserves=t}}),Nx(this,"getInitialValue",function(e){var t=Ih(n.initialValues,e);return e.length?Hh(t):t}),Nx(this,"setCallbacks",function(e){n.callbacks=e}),Nx(this,"setValidateMessages",function(e){n.validateMessages=e}),Nx(this,"setPreserve",function(e){n.preserve=e}),Nx(this,"watchList",[]),Nx(this,"registerWatch",function(e){return n.watchList.push(e),function(){n.watchList=n.watchList.filter(function(t){return t!==e})}}),Nx(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)})}}),Nx(this,"timeoutId",null),Nx(this,"warningUnhooked",function(){"production"===process.env.NODE_ENV||n.timeoutId||"undefined"==typeof window||(n.timeoutId=setTimeout(function(){n.timeoutId=null,n.formHooked||Yu(!1,"Instance created by `useForm` is not connected to any Form element. Forget to pass `form` prop?")}))}),Nx(this,"updateStore",function(e){n.store=e}),Nx(this,"getFieldEntities",function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?n.fieldEntities.filter(function(e){return e.getNamePath().length}):n.fieldEntities}),Nx(this,"getFieldsMap",function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=new s_;return n.getFieldEntities(e).forEach(function(e){var n=e.getNamePath();t.set(n,e)}),t}),Nx(this,"getFieldEntitiesForNamePathList",function(e){if(!e)return n.getFieldEntities(!0);var t=n.getFieldsMap(!0);return e.map(function(e){var n=Yw(e);return t.get(n)||{INVALIDATE_NAME_PATH:Yw(e)}})}),Nx(this,"getFieldsValue",function(e,t){var r,o,i;if(n.warningUnhooked(),!0===e||Array.isArray(e)?(r=e,o=t):e&&"object"===Cx(e)&&(i=e.strict,o=e.filter),!0===r&&!o)return n.store;var a=n.getFieldEntitiesForNamePathList(Array.isArray(r)?r:null),s=[];return a.forEach(function(e){var t,n,a,l,c="INVALIDATE_NAME_PATH"in e?e.INVALIDATE_NAME_PATH:e.getNamePath();if(i){if(null!==(a=(l=e).isList)&&void 0!==a&&a.call(l))return}else if(!r&&null!==(t=(n=e).isListField)&&void 0!==t&&t.call(n))return;if(o){var u="getMeta"in e?e.getMeta():null;o(u)&&s.push(c)}else s.push(c)}),Xw(n.store,s.map(Yw))}),Nx(this,"getFieldValue",function(e){n.warningUnhooked();var t=Yw(e);return Ih(n.store,t)}),Nx(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:Yw(e[n]),errors:[],warnings:[]}})}),Nx(this,"getFieldError",function(e){n.warningUnhooked();var t=Yw(e);return n.getFieldsError([t])[0].errors}),Nx(this,"getFieldWarning",function(e){n.warningUnhooked();var t=Yw(e);return n.getFieldsError([t])[0].warnings}),Nx(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],s=!1;0===t.length?o=null:1===t.length?Array.isArray(i)?(o=i.map(Yw),s=!1):(o=null,s=i):(o=i.map(Yw),s=a);var l=n.getFieldEntities(!0),c=function(e){return e.isFieldTouched()};if(!o)return s?l.every(function(e){return c(e)||e.isList()}):l.some(c);var u=new s_;o.forEach(function(e){u.set(e,[])}),l.forEach(function(e){var t=e.getNamePath();o.forEach(function(n){n.every(function(e,n){return t[n]===e})&&u.update(n,function(t){return[].concat(jx(t),[e])})})});var d=function(e){return e.some(c)},p=u.map(function(e){return e.value});return s?p.every(d):p.some(d)}),Nx(this,"isFieldTouched",function(e){return n.warningUnhooked(),n.isFieldsTouched([e])}),Nx(this,"isFieldsValidating",function(e){n.warningUnhooked();var t=n.getFieldEntities();if(!e)return t.some(function(e){return e.isFieldValidating()});var r=e.map(Yw);return t.some(function(e){var t=e.getNamePath();return qw(r,t)&&e.isFieldValidating()})}),Nx(this,"isFieldValidating",function(e){return n.warningUnhooked(),n.isFieldsValidating([e])}),Nx(this,"resetWithFieldInitialValue",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=new s_,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,jx(jx(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))Yu(!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)Yu(!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(jh(n.store,o,jx(i)[0].value))}}}})}),Nx(this,"resetFields",function(e){n.warningUnhooked();var t=n.store;if(!e)return n.updateStore(Hh(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(t,null,{type:"reset"}),void n.notifyWatch();var r=e.map(Yw);r.forEach(function(e){var t=n.getInitialValue(e);n.updateStore(jh(n.store,e,t))}),n.resetWithFieldInitialValue({namePathList:r}),n.notifyObservers(t,r,{type:"reset"}),n.notifyWatch(r)}),Nx(this,"setFields",function(e){n.warningUnhooked();var t=n.store,r=[];e.forEach(function(e){var o=e.name,i=yx(e,l_),a=Yw(o);r.push(a),"value"in i&&n.updateStore(jh(n.store,a,i.value)),n.notifyObservers(t,[a],{type:"setField",data:e})}),n.notifyWatch(r)}),Nx(this,"getFields",function(){return n.getFieldEntities(!0).map(function(e){var t=e.getNamePath(),r=Ix(Ix({},e.getMeta()),{},{name:t,value:n.getFieldValue(t)});return Object.defineProperty(r,"originRCField",{value:!0}),r})}),Nx(this,"initEntityValue",function(e){var t=e.props.initialValue;if(void 0!==t){var r=e.getNamePath();void 0===Ih(n.store,r)&&n.updateStore(jh(n.store,r,t))}}),Nx(this,"isMergedPreserve",function(e){var t=void 0!==e?e:n.preserve;return null==t||t}),Nx(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!Kw(e.getNamePath(),t)})){var s=n.store;n.updateStore(jh(s,t,a,!0)),n.notifyObservers(s,[t],{type:"remove"}),n.triggerDependenciesUpdate(s,t)}}n.notifyWatch([t])}}),Nx(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})}}),Nx(this,"notifyObservers",function(e,t,r){if(n.subscribable){var o=Ix(Ix({},r),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(n){(0,n.onStoreChange)(e,t,o)})}else n.forceRootUpdate()}),Nx(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(jx(r))}),r}),Nx(this,"updateValue",function(e,t){var r=Yw(e),o=n.store;n.updateStore(jh(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(Xw(n.store,[r]),n.getFieldsValue());n.triggerOnFieldsChange([r].concat(jx(i)))}),Nx(this,"setFieldsValue",function(e){n.warningUnhooked();var t=n.store;if(e){var r=Hh(n.store,e);n.updateStore(r)}n.notifyObservers(t,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),Nx(this,"setFieldValue",function(e,t){n.setFields([{name:e,value:t}])}),Nx(this,"getDependencyChildrenFields",function(e){var t=new Set,r=[],o=new s_;n.getFieldEntities().forEach(function(e){(e.props.dependencies||[]).forEach(function(t){var n=Yw(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}),Nx(this,"triggerOnFieldsChange",function(e,t){var r=n.callbacks.onFieldsChange;if(r){var o=n.getFields();if(t){var i=new s_;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 qw(e,n)});a.length&&r(a,o)}}),Nx(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(Yw):[],s=[],l=String(Date.now()),c=new Set,u=o||{},d=u.recursive,p=u.dirty;n.getFieldEntities(!0).forEach(function(e){if(i||a.push(e.getNamePath()),e.props.rules&&e.props.rules.length&&(!p||e.isFieldDirty())){var t=e.getNamePath();if(c.add(t.join(l)),!i||qw(a,t,d)){var r=e.validateRules(Ix({validateMessages:Ix(Ix({},jw),n.validateMessages)},o));s.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,jx(n)):r.push.apply(r,jx(n))}),r.length?Promise.reject({name:t,errors:r,warnings:o}):{name:t,errors:r,warnings:o}}))}}});var h=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([])}(s);n.lastValidatePromise=h,h.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 f=h.then(function(){return n.lastValidatePromise===h?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!==h})});f.catch(function(e){return e});var m=a.filter(function(e){return c.has(e.join(l))});return n.triggerOnFieldsChange(m),f}),Nx(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(e){var t=n.callbacks.onFinish;if(t)try{t(e)}catch(e){console.error(e)}}).catch(function(e){var t=n.callbacks.onFinishFailed;t&&t(e)})}),this.forceRootUpdate=t});function u_(e){var t=c.useRef(),n=o_(c.useState({}),2)[1];if(!t.current)if(e)t.current=e;else{var r=new c_(function(){n({})});t.current=r.getForm()}return[t.current]}var d_=c.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),p_=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],h_=function(e,t){var n=e.name,r=e.initialValues,o=e.fields,i=e.form,a=e.preserve,s=e.children,l=e.component,u=void 0===l?"form":l,d=e.validateMessages,p=e.validateTrigger,h=void 0===p?"onChange":p,f=e.onValuesChange,m=e.onFieldsChange,g=e.onFinish,v=e.onFinishFailed,b=e.clearOnDestroy,y=yx(e,p_),x=c.useRef(null),w=c.useContext(d_),_=o_(u_(i),1)[0],S=_.getInternalHooks(Yx),E=S.useSubscribe,k=S.setInitialValues,O=S.setCallbacks,C=S.setValidateMessages,M=S.setPreserve,T=S.destroyForm;c.useImperativeHandle(t,function(){return Ix(Ix({},_),{},{nativeElement:x.current})}),c.useEffect(function(){return w.registerForm(n,_),function(){w.unregisterForm(n)}},[w,_,n]),C(Ix(Ix({},w.validateMessages),d)),O({onValuesChange:f,onFieldsChange:function(e){if(w.triggerFormChange(n,e),m){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];m.apply(void 0,[e].concat(r))}},onFinish:function(e){w.triggerFormFinish(n,e),g&&g(e)},onFinishFailed:v}),M(a);var A,P=c.useRef(null);k(r,!P.current),P.current||(P.current=!0),c.useEffect(function(){return function(){return T(b)}},[]);var R="function"==typeof s;R?A=s(_.getFieldsValue(!0),_):A=s;E(!R);var N=c.useRef();c.useEffect(function(){(function(e,t){if(e===t)return!0;if(!e&&t||e&&!t)return!1;if(!e||!t||"object"!==Cx(e)||"object"!==Cx(t))return!1;var n=Object.keys(e),r=Object.keys(t);return jx(new Set([].concat(n,r))).every(function(n){var r=e[n],o=t[n];return"function"==typeof r&&"function"==typeof o||r===o})})(N.current||[],o||[])||_.setFields(o||[]),N.current=o},[o,_]);var D=c.useMemo(function(){return Ix(Ix({},_),{},{validateTrigger:h})},[_,h]),I=c.createElement(Kx.Provider,{value:null},c.createElement(qx.Provider,{value:D},A));return!1===u?I:c.createElement(u,bx({},y,{ref:x,onSubmit:function(e){e.preventDefault(),e.stopPropagation(),_.submit()},onReset:function(e){var t;e.preventDefault(),_.resetFields(),null===(t=y.onReset)||void 0===t||t.call(y,e)}}),I)};function f_(e){try{return JSON.stringify(e)}catch(e){return Math.random()}}var m_="production"!==process.env.NODE_ENV?function(t){var n=t.join("__RC_FIELD_FORM_SPLIT__");Yu(e.useRef(n).current===n,"`useWatch` is not support dynamic `namePath`. Please provide static instead.")}:function(){};var g_=c.forwardRef(h_);g_.FormProvider=function(e){var t=e.validateMessages,n=e.onFormChange,r=e.onFormFinish,o=e.children,i=c.useContext(d_),a=c.useRef({});return c.createElement(d_.Provider,{value:Ix(Ix({},i),{},{validateMessages:Ix(Ix({},i.validateMessages),t),triggerFormChange:function(e,t){n&&n(e,{changedFields:t,forms:a.current}),i.triggerFormChange(e,t)},triggerFormFinish:function(e,t){r&&r(e,{values:t,forms:a.current}),i.triggerFormFinish(e,t)},registerForm:function(e,t){e&&(a.current=Ix(Ix({},a.current),{},Nx({},e,t))),i.registerForm(e,t)},unregisterForm:function(e){var t=Ix({},a.current);delete t[e],a.current=t,i.unregisterForm(e)}})},o)},g_.Field=r_,g_.List=function(e){var t=e.name,n=e.initialValue,r=e.children,o=e.rules,i=e.validateTrigger,a=e.isListField,s=c.useContext(qx),l=c.useContext(Kx),u=c.useRef({keys:[],id:0}).current,d=c.useMemo(function(){var e=Yw(s.prefixName)||[];return[].concat(jx(e),jx(Yw(t)))},[s.prefixName,t]),p=c.useMemo(function(){return Ix(Ix({},s),{},{prefixName:d})},[s,d]),h=c.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 r?(Yu(!1,"Form.List only accepts function as children."),null):c.createElement(Kx.Provider,{value:h},c.createElement(qx.Provider,{value:p},c.createElement(r_,{name:[],shouldUpdate:function(e,t,n){return"internal"!==n.source&&e!==t},rules:o,validateTrigger:i,initialValue:n,isList:!0,isListField:null!=a?a:!!l},function(e,t){var n=e.value,o=void 0===n?[]:n,i=e.onChange,a=s.getFieldValue,l=function(){return a(d||[])||[]},c={add:function(e,t){var n=l();t>=0&&t<=n.length?(u.keys=[].concat(jx(u.keys.slice(0,t)),[u.id],jx(u.keys.slice(t))),i([].concat(jx(n.slice(0,t)),[e],jx(n.slice(t))))):("production"!==process.env.NODE_ENV&&(t<0||t>n.length)&&Yu(!1,"The second parameter of the add function should be a valid positive number."),u.keys=[].concat(jx(u.keys),[u.id]),i([].concat(jx(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=Qw(u.keys,e,t),i(Qw(n,e,t)))}}},p=o||[];return Array.isArray(p)||(p=[],"production"!==process.env.NODE_ENV&&Yu(!1,"Current value of '".concat(d.join(" > "),"' is not an array type."))),r(p.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}}),c,t)})))},g_.useForm=u_,g_.useWatch=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=n[0],i=n[1],a=void 0===i?{}:i,s=function(e){return e&&!!e._init}(a)?{form:a}:a,l=s.form,c=o_(e.useState(),2),u=c[0],d=c[1],p=e.useMemo(function(){return f_(u)},[u]),h=e.useRef(p);h.current=p;var f=e.useContext(qx),m=l||f,g=m&&m._init;"production"!==process.env.NODE_ENV&&Yu(2===n.length&&!l||g,"useWatch requires a form instance since it can not auto detect from context.");var v=Yw(o),b=e.useRef(v);return b.current=v,m_(v),e.useEffect(function(){if(g){var e=m.getFieldsValue,t=(0,m.getInternalHooks)(Yx).registerWatch,n=function(e,t){var n=s.preserve?t:e;return"function"==typeof o?o(n):Ih(n,b.current)},r=t(function(e,t){var r=n(e,t),o=f_(r);h.current!==o&&(h.current=o,d(r))}),i=n(e(),e(!0));return u!==i&&d(i),r}},[g]),u};const v_=c.createContext({});"production"!==process.env.NODE_ENV&&(v_.displayName="FormItemInputContext");const b_=e.createContext(void 0);var y_=function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;var o,i;const{variant:a,[t]:s}=e.useContext(qb),l=e.useContext(b_),c=null==s?void 0:s.variant;let u;u=void 0!==n?n:!1===r?"borderless":null!==(i=null!==(o=null!=l?l:c)&&void 0!==o?o:a)&&void 0!==i?i:"outlined";return[u,Xb.includes(u)]};const x_=c.createContext(null);function w_(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)}function __(e,t,n){const{focusElCls:r,focus:o,borderElCls:i}=n,a=i?"> *":"",s=["hover",o?"focus":null,"active"].filter(Boolean).map(e=>`&:${e} ${a}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[s]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}function S_(e,t,n){const{borderElCls:r}=n,o=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${o}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function E_(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{focus:!0};const{componentCls:n}=e,r=`${n}-compact`;return{[r]:Object.assign(Object.assign({},__(e,r,t)),S_(n,r,t))}}const k_=e=>({animationDuration:e,animationFillMode:"both"}),O_=e=>({animationDuration:e,animationFillMode:"both"}),C_=function(e,t,n,r){const o=arguments.length>4&&void 0!==arguments[4]&&arguments[4]?"&":"";return{[`\n ${o}${e}-enter,\n ${o}${e}-appear\n `]:Object.assign(Object.assign({},k_(r)),{animationPlayState:"paused"}),[`${o}${e}-leave`]:Object.assign(Object.assign({},O_(r)),{animationPlayState:"paused"}),[`\n ${o}${e}-enter${e}-enter-active,\n ${o}${e}-appear${e}-appear-active\n `]:{animationName:t,animationPlayState:"running"},[`${o}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},M_=new Qg("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),T_=new Qg("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),A_=new Qg("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),P_=new Qg("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),R_=new Qg("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),N_=new Qg("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),D_={"move-up":{inKeyframes:new Qg("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 Qg("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:M_,outKeyframes:T_},"move-left":{inKeyframes:A_,outKeyframes:P_},"move-right":{inKeyframes:R_,outKeyframes:N_}},I_=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=D_[t];return[C_(r,o,i,e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},F_=new Qg("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),L_=new Qg("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),j_=new Qg("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),z_=new Qg("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),B_=new Qg("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),H_=new Qg("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),V_=new Qg("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),$_=new Qg("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),W_={"slide-up":{inKeyframes:F_,outKeyframes:L_},"slide-down":{inKeyframes:j_,outKeyframes:z_},"slide-left":{inKeyframes:B_,outKeyframes:H_},"slide-right":{inKeyframes:V_,outKeyframes:$_}},U_=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=W_[t];return[C_(r,o,i,e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},G_=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"}};var Y_=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,o=`&${t}-slide-up-enter${t}-slide-up-enter-active`,i=`&${t}-slide-up-appear${t}-slide-up-appear-active`,a=`&${t}-slide-up-leave${t}-slide-up-leave-active`,s=`${n}-dropdown-placement-`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},jy(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 ${o}${s}bottomLeft,\n ${i}${s}bottomLeft\n `]:{animationName:F_},[`\n ${o}${s}topLeft,\n ${i}${s}topLeft,\n ${o}${s}topRight,\n ${i}${s}topRight\n `]:{animationName:j_},[`${a}${s}bottomLeft`]:{animationName:L_},[`\n ${a}${s}topLeft,\n ${a}${s}topRight\n `]:{animationName:z_},"&-hidden":{display:"none"},[r]:Object.assign(Object.assign({},G_(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},Ly),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${r}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${r}-option-state`]:{color:e.colorPrimary},[`&:has(+ ${r}-option-selected:not(${r}-option-disabled))`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${r}-option-selected:not(${r}-option-disabled)`]:{borderStartStartRadius:0,borderStartEndRadius:0}}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},G_(e)),{color:e.colorTextDisabled})}),"&-rtl":{direction:"rtl"}})},U_(e,"slide-up"),U_(e,"slide-down"),I_(e,"move-up"),I_(e,"move-down")]};const X_=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:o,paddingXS:i,multipleItemColorDisabled:a,multipleItemBorderColorDisabled:s,colorIcon:l,colorIconHover:c,INTERNAL_FIXED_ITEM_MARGIN:u}=e,d=`${t}-selection-overflow`;return{[d]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${t}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:u,borderRadius:r,cursor:"default",transition:`font-size ${o}, line-height ${o}, height ${o}`,marginInlineEnd:e.calc(u).mul(2).equal(),paddingInlineStart:i,paddingInlineEnd:e.calc(i).div(2).equal(),[`${t}-disabled&`]:{color:a,borderColor:s,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:l,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:c}})}}}},q_=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:r}=e,o=`${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),s=t?`${n}-${t}`:"",l=(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:pg(t),itemLineHeight:pg(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}})(e);return{[`${n}-multiple${s}`]:Object.assign(Object.assign({},X_(e)),{[`${n}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",height:"100%",paddingInline:l.basePadding,paddingBlock:l.containerPadding,borderRadius:e.borderRadius,[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${pg(r)} 0`,lineHeight:pg(i),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:l.itemHeight,lineHeight:pg(l.itemLineHeight)},[`${o}-item + ${o}-item`]:{[`${n}-selection-search`]:{marginInlineStart:0}},[`${o}-item-suffix`]:{height:"100%"},[`${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:pg(i),transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function K_(e,t){const{componentCls:n}=e,r=t?`${n}-${t}`:"",o={[`${n}-multiple${r}`]:{fontSize:e.fontSize,[`${n}-selector`]:{[`${n}-show-search&`]:{cursor:"text"}},[`\n &${n}-show-arrow ${n}-selector,\n &${n}-allow-clear ${n}-selector\n `]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[q_(e,t),o]}var Z_=e=>{const{componentCls:t}=e,n=Ay(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=Ay(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[K_(e),K_(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},K_(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(),s=e.calc(r).add(i).equal(),l=t?`${n}-${t}`:"";return{[`${n}-single${l}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},jy(e,!0)),{display:"flex",borderRadius:o,[`${n}-selection-search`]:{position:"absolute",top:0,insetInlineStart:r,insetInlineEnd:pg(s),bottom:0,"&-input":{width:"100%",WebkitAppearance:"textfield"}},[`\n ${n}-selection-item,\n ${n}-selection-placeholder\n `]:{padding:0,lineHeight:pg(a),transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:empty:after`,`${n}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`\n &${n}-show-arrow ${n}-selection-item,\n &${n}-show-arrow ${n}-selection-placeholder\n `]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",padding:`0 ${pg(r)}`,[`${n}-selection-search-input`]:{height:a},"&:after":{lineHeight:pg(a)}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${pg(r)}`,"&:after":{display:"none"}}}}}}}function J_(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[Q_(e),Q_(Ay(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selection-search`]:{insetInlineStart:n,insetInlineEnd:n},[`${t}-selector`]:{padding:`0 ${pg(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[`\n &${t}-show-arrow ${t}-selection-item,\n &${t}-show-arrow ${t}-selection-placeholder\n `]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},Q_(Ay(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const eS=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:o}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${pg(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${pg(o)} ${t.activeOutlineColor}`,outline:0}}}},tS=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},eS(e,t))}),nS=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},eS(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor})),tS(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline})),tS(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${pg(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),rS=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${pg(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{background:t.hoverBg},[`${n}-focused& ${n}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},oS=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},rS(e,t))}),iS=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},rS(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),oS(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),oS(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.colorBgContainer,border:`${pg(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),aS=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",borderColor:"transparent"},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${pg(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`},[`&${e.componentCls}-status-error`]:{[`${e.componentCls}-selection-item`]:{color:e.colorError}},[`&${e.componentCls}-status-warning`]:{[`${e.componentCls}-selection-item`]:{color:e.colorWarning}}}});var sS=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign({},nS(e)),iS(e)),aS(e))});const lS=e=>{const{componentCls:t}=e;return{position:"relative",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},cS=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},uS=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:o}=e;return{[n]:Object.assign(Object.assign({},jy(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},lS(e)),cS(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},Ly),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},Ly),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${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 ${e.motionDurationSlow} ease`,[o]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},[`&:hover ${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}}),[`${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}},dS=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},uS(e),J_(e),Z_(e),Y_(e),{[`${t}-rtl`]:{direction:"rtl"}},E_(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]};var pS=Hy("Select",(e,t)=>{let{rootPrefixCls:n}=t;const r=Ay(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[dS(r),sS(r)]},e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:o,controlHeightSM:i,controlHeightLG:a,paddingXXS:s,controlPaddingHorizontal:l,zIndexPopupBase:c,colorText:u,fontWeightStrong:d,controlItemBgActive:p,controlItemBgHover:h,colorBgContainer:f,colorFillSecondary:m,colorBgContainerDisabled:g,colorTextDisabled:v,colorPrimaryHover:b,colorPrimary:y,controlOutline:x}=e,w=2*s,_=2*r,S=Math.min(o-w,o-_),E=Math.min(i-w,i-_),k=Math.min(a-w,a-_);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(s/2),zIndexPopup:c+50,optionSelectedColor:u,optionSelectedFontWeight:d,optionSelectedBg:p,optionActiveBg:h,optionPadding:`${(o-t*n)/2}px ${l}px`,optionFontSize:t,optionLineHeight:n,optionHeight:o,selectorBg:f,clearBg:f,singleItemHeightLG:a,multipleItemBg:m,multipleItemBorderColor:"transparent",multipleItemHeight:S,multipleItemHeightSM:E,multipleItemHeightLG:k,multipleSelectorBgDisabled:g,multipleItemColorDisabled:v,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(1.25*e.fontSize),hoverBorderColor:b,activeBorderColor:y,activeOutlineColor:x}},{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});function hS(){return hS=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},hS.apply(null,arguments)}var fS={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"};function mS(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 gS(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,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return mS(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)?mS(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 vS(e){return vS="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},vS(e)}function bS(e){var t=function(e,t){if("object"!=vS(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=vS(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==vS(t)?t:t+""}function yS(e,t,n){return(t=bS(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xS(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(-1!==t.indexOf(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],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function wS(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 _S(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wS(Object(n),!0).forEach(function(t){yS(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wS(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function SS(e){return"object"===vS(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===vS(e.icon)||"function"==typeof e.icon)}function ES(){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 kS(e,t,n){return n?l.default.createElement(e.tag,_S(_S({key:t},ES(e.attrs)),n),(e.children||[]).map(function(n,r){return kS(n,"".concat(t,"-").concat(e.tag,"-").concat(r))})):l.default.createElement(e.tag,_S({key:t},ES(e.attrs)),(e.children||[]).map(function(n,r){return kS(n,"".concat(t,"-").concat(e.tag,"-").concat(r))}))}function OS(e){return pv(e)[0]}function CS(e){return e?Array.isArray(e)?e:[e]:[]}var MS=["icon","className","onClick","style","primaryColor","secondaryColor"],TS={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var AS=function(t){var n,r,o,i,a,s,l,u,d=t.icon,p=t.className,h=t.onClick,f=t.style,m=t.primaryColor,g=t.secondaryColor,v=xS(t,MS),b=c.useRef(),y=TS;if(m&&(y={primaryColor:m,secondaryColor:g||OS(m)}),n=b,r=e.useContext(Cb),o=r.csp,i=r.prefixCls,a=r.layer,s="\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",i&&(s=s.replace(/anticon/g,i)),a&&(s="@layer ".concat(a," {\n").concat(s,"\n}")),e.useEffect(function(){var e=Oh(n.current);vh(s,"@ant-design-icons",{prepend:!a,csp:o,attachTo:e})},[]),l=SS(d),u="icon should be icon definiton, but got ".concat(d),Yu(l,"[@ant-design/icons] ".concat(u)),!SS(d))return null;var x=d;return x&&"function"==typeof x.icon&&(x=_S(_S({},x),{},{icon:x.icon(y.primaryColor,y.secondaryColor)})),kS(x.icon,"svg-".concat(x.name),_S(_S({className:p,onClick:h,style:f,"data-icon":x.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},v),{},{ref:b}))};AS.displayName="IconReact",AS.getTwoToneColors=function(){return _S({},TS)},AS.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;TS.primaryColor=t,TS.secondaryColor=n||OS(t),TS.calculated=!!n};var PS=AS;function RS(e){var t=gS(CS(e),2),n=t[0],r=t[1];return PS.setTwoToneColors({primaryColor:n,secondaryColor:r})}var NS=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];RS(_v.primary);var DS=c.forwardRef(function(e,t){var n=e.className,r=e.icon,o=e.spin,i=e.rotate,a=e.tabIndex,s=e.onClick,l=e.twoToneColor,u=xS(e,NS),d=c.useContext(Cb),p=d.prefixCls,h=void 0===p?"anticon":p,f=d.rootClassName,m=bu(f,h,yS(yS({},"".concat(h,"-").concat(r.name),!!r.name),"".concat(h,"-spin"),!!o||"loading"===r.name),n),g=a;void 0===g&&s&&(g=-1);var v=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,b=gS(CS(l),2),y=b[0],x=b[1];return c.createElement("span",hS({role:"img","aria-label":r.name},u,{ref:t,tabIndex:g,onClick:s,className:m}),c.createElement(PS,{icon:r,primaryColor:y,secondaryColor:x,style:v}))});DS.displayName="AntdIcon",DS.getTwoToneColor=function(){var e=PS.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},DS.setTwoToneColor=RS;var IS=DS,FS=function(e,t){return c.createElement(IS,hS({},e,{ref:t,icon:fS}))},LS=c.forwardRef(FS);"production"!==process.env.NODE_ENV&&(LS.displayName="CheckOutlined");var jS={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"},zS=function(e,t){return c.createElement(IS,hS({},e,{ref:t,icon:jS}))},BS=c.forwardRef(zS);"production"!==process.env.NODE_ENV&&(BS.displayName="CloseCircleFilled");var HS={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"},VS=function(e,t){return c.createElement(IS,hS({},e,{ref:t,icon:HS}))},$S=c.forwardRef(VS);"production"!==process.env.NODE_ENV&&($S.displayName="CloseOutlined");var WS={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"},US=function(e,t){return c.createElement(IS,hS({},e,{ref:t,icon:WS}))},GS=c.forwardRef(US);"production"!==process.env.NODE_ENV&&(GS.displayName="DownOutlined");var YS={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"},XS=function(e,t){return c.createElement(IS,hS({},e,{ref:t,icon:YS}))},qS=c.forwardRef(XS);"production"!==process.env.NODE_ENV&&(qS.displayName="LoadingOutlined");var KS={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"},ZS=function(e,t){return c.createElement(IS,hS({},e,{ref:t,icon:KS}))},QS=c.forwardRef(ZS);"production"!==process.env.NODE_ENV&&(QS.displayName="SearchOutlined");var JS=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 eE="SECRET_COMBOBOX_MODE_DO_NOT_USE",tE=(e,t)=>{var n;const{prefixCls:r,bordered:o,className:i,rootClassName:a,getPopupContainer:s,popupClassName:l,dropdownClassName:u,listHeight:d=256,placement:p,listItemHeight:h,size:f,disabled:m,notFoundContent:g,status:v,builtinPlacements:b,dropdownMatchSelectWidth:y,popupMatchSelectWidth:x,direction:w,style:_,allowClear:S,variant:E,dropdownStyle:k,transitionName:O,tagRender:C,maxCount:M}=e,T=JS(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:A,getPrefixCls:P,renderEmpty:R,direction:N,virtual:D,popupMatchSelectWidth:I,popupOverflow:F,select:L}=c.useContext(qb),[,j]=fb(),z=null!=h?h:null==j?void 0:j.controlHeight,B=P("select",r),H=P(),V=null!=w?w:N,{compactSize:$,compactItemClassnames:W}=((e,t)=>{const n=c.useContext(x_),r=c.useMemo(()=>{if(!n)return"";const{compactDirection:r,isFirstItem:o,isLastItem:i}=n,a="vertical"===r?"-vertical-":"-";return bu(`${e}-compact${a}item`,{[`${e}-compact${a}first-item`]:o,[`${e}-compact${a}last-item`]:i,[`${e}-compact${a}item-rtl`]:"rtl"===t})},[e,t,n]);return{compactSize:null==n?void 0:n.compactSize,compactDirection:null==n?void 0:n.compactDirection,compactItemClassnames:r}})(B,V),[U,G]=y_("select",E,o),Y=gx(B),[X,q,K]=pS(B,Y),Z=c.useMemo(()=>{const{mode:t}=e;if("combobox"!==t)return t===eE?"combobox":t},[e.mode]),Q="multiple"===Z||"tags"===Z,J=function(e,t){return void 0!==t?t:null!==e}(e.suffixIcon,e.showArrow),ee=null!==(n=null!=x?x:y)&&void 0!==n?n:I,{status:te,hasFeedback:ne,isFormItemInput:re,feedbackIcon:oe}=c.useContext(v_),ie=((e,t)=>t||e)(te,v);let ae;ae=void 0!==g?g:"combobox"===Z?null:(null==R?void 0:R("Select"))||c.createElement(mx,{componentName:"Select"});const{suffixIcon:se,itemIcon:le,removeIcon:ce,clearIcon:ue}=function(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:o,loading:i,multiple:a,hasFeedback:s,prefixCls:l,showSuffixIcon:u,feedbackIcon:d,showArrow:p,componentName:h}=e;"production"!==process.env.NODE_ENV&&yb(h).deprecated(!n,"clearIcon","allowClear={{ clearIcon: React.ReactNode }}");const f=null!=n?n:c.createElement(BS,null),m=e=>null!==t||s||p?c.createElement(c.Fragment,null,!1!==u&&e,s&&d):null;let g=null;if(void 0!==t)g=m(t);else if(i)g=m(c.createElement(qS,{spin:!0}));else{const e=`${l}-suffix`;g=t=>{let{open:n,showSearch:r}=t;return m(n&&r?c.createElement(QS,{className:e}):c.createElement(GS,{className:e}))}}let v=null;v=void 0!==r?r:a?c.createElement(LS,null):null;let b=null;return b=void 0!==o?o:c.createElement($S,null),{clearIcon:f,suffixIcon:g,itemIcon:v,removeIcon:b}}(Object.assign(Object.assign({},T),{multiple:Q,hasFeedback:ne,feedbackIcon:oe,showSuffixIcon:J,prefixCls:B,componentName:"Select"})),de=!0===S?{clearIcon:ue}:S,pe=pm(T,["suffixIcon","itemIcon"]),he=bu(l||u,{[`${B}-dropdown-${V}`]:"rtl"===V},a,K,Y,q),fe=vx(e=>{var t;return null!==(t=null!=f?f:$)&&void 0!==t?t:e}),me=c.useContext(ey),ge=null!=m?m:me,ve=bu({[`${B}-lg`]:"large"===fe,[`${B}-sm`]:"small"===fe,[`${B}-rtl`]:"rtl"===V,[`${B}-${U}`]:G,[`${B}-in-form-item`]:re},function(e,t,n){return bu({[`${e}-status-success`]:"success"===t,[`${e}-status-warning`]:"warning"===t,[`${e}-status-error`]:"error"===t,[`${e}-status-validating`]:"validating"===t,[`${e}-has-feedback`]:n})}(B,ie,ne),W,null==L?void 0:L.className,i,a,K,Y,q),be=c.useMemo(()=>void 0!==p?p:"rtl"===V?"bottomRight":"bottomLeft",[p,V]);if("production"!==process.env.NODE_ENV){const t=yb("Select");t.deprecated(!u,"dropdownClassName","popupClassName"),t.deprecated(void 0===y,"dropdownMatchSelectWidth","popupMatchSelectWidth"),"production"!==process.env.NODE_ENV&&t(!("showArrow"in e),"deprecated","`showArrow` is deprecated which will be removed in next major version. It will be a default behavior, you can hide it by setting `suffixIcon` to null."),t.deprecated(!("bordered"in e),"bordered","variant"),"production"!==process.env.NODE_ENV&&t(!(void 0!==M&&!Q),"usage","`maxCount` only works with mode `multiple` or `tags`")}const[ye]=Ob("SelectLike",null==k?void 0:k.zIndex);return X(c.createElement(Gm,Object.assign({ref:t,virtual:D,showSearch:null==L?void 0:L.showSearch},pe,{style:Object.assign(Object.assign({},null==L?void 0:L.style),_),dropdownMatchSelectWidth:ee,transitionName:nx(H,"slide-up",O),builtinPlacements:w_(b,F),listHeight:d,listItemHeight:z,mode:Z,prefixCls:B,placement:be,direction:V,suffixIcon:se,menuItemSelectedIcon:le,removeIcon:ce,allowClear:de,notFoundContent:ae,className:ve,getPopupContainer:s||A,dropdownClassName:he,disabled:ge,dropdownStyle:Object.assign(Object.assign({},k),{zIndex:ye}),maxCount:Q?M:void 0,tagRender:Q?C:void 0})))};"production"!==process.env.NODE_ENV&&(tE.displayName="Select");const nE=c.forwardRef(tE),rE=rx(nE);nE.SECRET_COMBOBOX_MODE_DO_NOT_USE=eE,nE.Option=dm,nE.OptGroup=um,nE._InternalPanelDoNotUseOrYouWillBeFired=rE,"production"!==process.env.NODE_ENV&&(nE.displayName="Select");var oE=nE;function iE(e){var n=e.children,r=e.placement,o=void 0===r?"bottomRight":r,i=e.overlayClassName,a=void 0===i?pE:i,s=e.arrowPointAtCenter,c=void 0===s||s,u=e.trigger,d=void 0===u?"hover":u,p=e.color,h=e.title,f=e.content,m=e.mouseEnterDelay,g=void 0===m?0:m,v=e.mouseLeaveDelay,b=void 0===v?0:v,y=e.isNew,x=void 0!==y&&y,w=e.actionTitle,_=e.dismissTitle,S=e.maxWidth,E=e.onAction,k=e.onDismiss,O=S?{maxWidth:S}:void 0;return l.default.createElement(t.Tooltip,{overlayClassName:a,arrowPointAtCenter:c,trigger:d,color:p,placement:o,overlayStyle:O,title:l.default.createElement(hE,null,h&&l.default.createElement(Hn,{style:{fontSize:exports.FONT_SIZE.P1,marginBottom:"16px",color:Ut.text.white}},h,!0===x&&l.default.createElement(mE,null,"New")),f,(w||_)&&l.default.createElement(fE,null,l.default.createElement(vE,{onClick:function(e){e.preventDefault(),k&&k()}},_),l.default.createElement(gE,{onClick:function(e){e.preventDefault(),E&&E()}},w))),mouseEnterDelay:g,mouseLeaveDelay:b},n)}var aE,sE,lE,cE,uE,dE,pE=we(aE||(aE=r.__makeTemplateObject(["\n max-width: 200px;\n font-family: ",";\n font-size: ",";\n font-weight: ",";\n color: ",";\n box-shadow: none;\n\n .ant-tooltip-inner {\n padding: 12px;\n border-radius: 8px;\n box-shadow: none;\n background-color: ",";\n }\n\n "," {\n max-width: 250px;\n }\n\n .ant-tooltip-arrow {\n width: 16px;\n height: 16px;\n\n .ant-tooltip-arrow-content {\n background-color: ",";\n box-shadow: none;\n width: 16px;\n height: 16px;\n }\n }\n"],["\n max-width: 200px;\n font-family: ",";\n font-size: ",";\n font-weight: ",";\n color: ",";\n box-shadow: none;\n\n .ant-tooltip-inner {\n padding: 12px;\n border-radius: 8px;\n box-shadow: none;\n background-color: ",";\n }\n\n "," {\n max-width: 250px;\n }\n\n .ant-tooltip-arrow {\n width: 16px;\n height: 16px;\n\n .ant-tooltip-arrow-content {\n background-color: ",";\n box-shadow: none;\n width: 16px;\n height: 16px;\n }\n }\n"])),kt,exports.FONT_SIZE.P1,exports.FONT_WEIGHT.REGULAR,Ut.text.white,Ut.brand.primary.contrast,Et,Ut.brand.primary.contrast),hE=dt.div(sE||(sE=r.__makeTemplateObject(["\n line-height: 22px;\n"],["\n line-height: 22px;\n"]))),fE=dt.div(lE||(lE=r.__makeTemplateObject(["\n margin: 24px 0 0 0;\n display: flex;\n justify-content: flex-end;\n\n a {\n margin: 0 0 0 20px;\n }\n"],["\n margin: 24px 0 0 0;\n display: flex;\n justify-content: flex-end;\n\n a {\n margin: 0 0 0 20px;\n }\n"]))),mE=dt.span(cE||(cE=r.__makeTemplateObject(["\n display: inline-block;\n margin: 0 0 0 8px;\n padding: 2px 6px;\n background-color: ",";\n color: ",";\n font-size: ",";\n font-weight: ",";\n border-radius: 4px;\n"],["\n display: inline-block;\n margin: 0 0 0 8px;\n padding: 2px 6px;\n background-color: ",";\n color: ",";\n font-size: ",";\n font-weight: ",";\n border-radius: 4px;\n"])),exports.GREEN_COLORS.G400,Ut.text.white,exports.FONT_SIZE.SMALL,exports.FONT_WEIGHT.BOLD),gE=dt.a(uE||(uE=r.__makeTemplateObject(["\n font-weight: ",";\n color: ",";\n &:hover {\n color: ",";\n }\n"],["\n font-weight: ",";\n color: ",";\n &:hover {\n color: ",";\n }\n"])),exports.FONT_WEIGHT.BOLD,Ut.brand.action.default,Ut.brand.action.hover),vE=dt.a(dE||(dE=r.__makeTemplateObject(["\n font-weight: ",";\n color: ",";\n &:hover {\n color: ",";\n }\n"],["\n font-weight: ",";\n color: ",";\n &:hover {\n color: ",";\n }\n"])),exports.FONT_WEIGHT.BOLD,Ut.text.white,Ut.text.white);Gt('@import url("https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200");.material-symbols-rounded{word-wrap:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-feature-settings:"liga";direction:ltr;display:inline-block;font-family:Material Symbols Rounded;font-size:24px;font-style:normal;font-weight:400;letter-spacing:normal;line-height:1;text-rendering:optimizeLegibility;text-transform:none;white-space:nowrap}');var bE={xs:16,s:20,m:24,l:32,xl:40,xxl:48},yE=function(e){var t=e.icon,n=e.size,o=void 0===n?"m":n,i=e.fill,a=void 0===i?0:i,s=e.color,c=void 0===s?exports.NEUTRAL_COLORS.BLACK:s,u=e.className,d=void 0===u?"":u,p=e.style,h="string"==typeof o?bE[o]:o,f=r.__assign({fontVariationSettings:"'FILL' ".concat(a,", 'wght' 400"),fontSize:h,color:c},p);return l.default.createElement("span",{className:"material-symbols-rounded ".concat(d),style:f,translate:"no"},t)},xE={positive:"check",critical:"cancel",warning:"timer",info:"info",neutral:"timer"},wE={sm:"xs",lg:"s"},_E={positive:{base:Ut.color.surface.subduePositive,text:Ut.color.status.positive,icon:Ut.color.status.positive,border:Ut.color.status.positive},critical:{base:Ut.color.surface.subdueCritical,text:Ut.color.status.critical,icon:Ut.color.status.critical,border:Ut.color.status.critical},warning:{base:Ut.color.surface.subdueWarning,text:Ut.color.status.warning,icon:Ut.color.status.warning,border:Ut.color.status.warning},info:{base:Ut.color.surface.SubdueInfo,text:Ut.color.status.info,icon:Ut.color.status.info,border:Ut.color.status.info},neutral:{base:exports.NEUTRAL_COLORS.G100,text:Ut.color.base.onNeutralSecondary,icon:Ut.color.base.onNeutralSecondary,border:Ut.color.base.line}},SE={positive:{base:Ut.color.status.positive,text:Ut.color.base.onContainer,icon:"",border:Ut.color.status.positive},neutral:{base:Ut.color.surface.disabledSurface,text:Ut.color.surface.disabledOnSurface,icon:"",border:Ut.color.base.line}},EE={positive:{base:Ut.color.surface.subduePositive,text:Ut.color.status.positive,icon:Ut.color.status.positive,border:Ut.color.status.positive},disabled:{base:Ut.color.surface.disabledSurface,text:Ut.color.surface.disabledOnSurface,icon:Ut.color.surface.disabledOnSurface,border:Ut.color.base.line},neutral:{base:Ut.color.surface.neutral,text:Ut.color.base.onNeutralSecondary,icon:Ut.color.base.onNeutralSecondary,border:Ut.color.base.line}};function kE(e,t,n){switch(t){case"outlined":default:return _E[e][n];case"filled":return SE[e][n];case"removable":return EE[e][n]}}function OE(e){var t=e.type,n=e.children,r=e.showIcon,o=void 0!==r&&r,i=e.size,a=void 0===i?"sm":i,s=e.variant,c=void 0===s?"outlined":s,u=e.onClick;return l.default.createElement(IE,{type:t,size:a,variant:c,onClick:"removable"!==c?u:void 0},o&&"disabled"!==t&&l.default.createElement(yE,{icon:xE[t],size:wE[a],color:kE(t,c,"icon")}),l.default.createElement(Oe.Body,{size:a,color:kE(t,c,"text")},n),"removable"===c&&l.default.createElement(DE,{onMouseDown:function(e){e.preventDefault(),e.stopPropagation()},onClick:function(e){e.preventDefault(),e.stopPropagation(),null==u||u()},type:"tertiary",icon:l.default.createElement(yE,{icon:"close",size:wE[a],color:kE(t,c,"icon")})}))}var CE,ME,TE,AE,PE,RE,NE,DE=dt(dn)(CE||(CE=r.__makeTemplateObject(["\n && {\n padding: 0 !important;\n width: auto !important;\n height: auto !important;\n }\n\n &&:hover {\n background: transparent !important;\n }\n\n &&:focus {\n background: transparent !important;\n }\n\n &&:active {\n background: transparent !important;\n }\n"],["\n && {\n padding: 0 !important;\n width: auto !important;\n height: auto !important;\n }\n\n &&:hover {\n background: transparent !important;\n }\n\n &&:focus {\n background: transparent !important;\n }\n\n &&:active {\n background: transparent !important;\n }\n"]))),IE=dt.div(ME||(ME=r.__makeTemplateObject(["\n display: flex;\n flex-direction: row;\n gap: 4px;\n align-items: center;\n justify-content: center;\n width: fit-content;\n height: fit-content;\n text-transform: capitalize;\n\n ",";\n"],["\n display: flex;\n flex-direction: row;\n gap: 4px;\n align-items: center;\n justify-content: center;\n width: fit-content;\n height: fit-content;\n text-transform: capitalize;\n\n ",";\n"])),function(e){return function(e){var t=e.type,n=e.variant,r=void 0===n?"outlined":n,o=e.size,i=void 0===o?"sm":o,a=e.onClick;return"\n border-radius: ".concat("removable"===r?"999px":"4px",";\n min-height: ").concat("sm"===i?"24px":"32px",";\n background-color: ").concat(t&&r?kE(t,r,"base"):"transparent",";\n border: 1px solid ").concat(t&&r?kE(t,r,"border"):"transparent",";\n padding-inline: ").concat("removable"===r?"12px":"8px",";\n cursor: ").concat(a?"pointer":"default",";\n\n")}(e)}),FE=dt.div(TE||(TE=r.__makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: 4px;\n span {\n display: inline-flex;\n cursor: pointer;\n }\n"],["\n display: flex;\n align-items: center;\n gap: 4px;\n span {\n display: inline-flex;\n cursor: pointer;\n }\n"]))),LE=dt.div(AE||(AE=r.__makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: 8px;\n"],["\n display: flex;\n align-items: center;\n gap: 8px;\n"]))),jE=dt.div(PE||(PE=r.__makeTemplateObject(["\n display: flex;\n flex-direction: column;\n gap: 4px;\n min-width: 100px;\n width: 100%;\n"],["\n display: flex;\n flex-direction: column;\n gap: 4px;\n min-width: 100px;\n width: 100%;\n"]))),zE="\n .ant-select-selection-placeholder {\n height: 100% !important;\n display: flex;\n align-items: center;\n \n span {\n color: ".concat(Ut.color.component.placeholderInput," !important;\n }\n }\n"),BE="\n .ant-select-selection-item {\n display: flex !important;\n align-items: center !important;\n color: ".concat(Ut.color.base.onNeutral," !important;\n }\n"),HE="\n .ant-select-arrow {\n display: flex !important;\n align-items: center !important;\n gap: 8px !important;\n width: auto !important;\n align-self: center !important;\n \n span {\n color: ".concat(Ut.color.base.onNeutral," !important;\n }\n }\n"),VE=dt(t.Select)(RE||(RE=r.__makeTemplateObject(["\n ","\n ","\n ","\n ","\n ","\n ","\n"],["\n ","\n ","\n ","\n ","\n ","\n ","\n"])),function(e){return function(e){var t="multiple"===e.$mode?"sm"===e.$size?"6px":"8px":"12px";return"\n .ant-select-selector {\n border-radius: ".concat("sm"===e.$size?"8px":"12px"," !important;\n position: relative !important;\n display: flex;\n align-items: ").concat("multiple"===e.$mode?"flex-start":"center"," !important;\n padding: ").concat(t," 16px !important;\n\n min-height: ").concat("sm"===e.$size?"36px":"48px"," !important;\n ").concat("multiple"!==e.$mode?"height: ".concat("sm"===e.$size?"36px":"48px"," !important;"):"height: auto !important;","\n\n background: ").concat(e.disabled?Ut.color.surface.disabledSurface:Ut.color.surface.neutral," !important;\n\n border: 1px solid ").concat(e.error?Ut.color.status.critical:Ut.color.base.line," !important;\n }\n")}(e)},function(e){return function(e){return"\n &:hover .ant-select-selector,\n &.ant-select-focused .ant-select-selector {\n ".concat(!e.disabled&&"\n box-shadow: 0 0 0 1px ".concat(Ut.color.base.onNeutral,"20 !important;\n border: 1px solid ").concat(e.error?Ut.color.status.critical:Ut.color.base.primary2," !important;\n "),"\n }\n")}(e)},zE,function(e){return function(e){return"\n .ant-select-selection-overflow {\n gap: 8px;\n ".concat("multiple"===e.$mode?"flex-wrap: wrap !important;":"","\n ").concat("multiple"===e.$mode?"align-content: center !important;":"","\n }\n")}(e)},BE,HE),$E="\n .rc-virtual-list-holder-inner {\n gap: 4px;\n }\n .ant-select-item {\n color: ".concat(Ut.color.base.onNeutral," !important;\n padding: 12px !important;\n }\n"),WE="\n .ant-select-item-option-selected {\n background: #d7efe2 !important;\n position: relative !important;\n \n .anticon {\n display: none !important;\n }\n \n &::after {\n content: 'check' !important;\n font-family: 'Material Symbols Rounded' !important;\n color: ".concat(Ut.color.status.positive," !important;\n position: absolute !important;\n right: 12px !important;\n top: 50% !important;\n transform: translateY(-50%) !important;\n font-size: 16px !important;\n }\n }\n"),UE="\n .ant-select-item:hover {\n background: ".concat(Ut.color.interactive.hoverSurface," !important;\n }\n \n .ant-select-item:active {\n background: ").concat(Ut.color.interactive.pressedSurface," !important;\n }\n"),GE="\n .ant-select-item-option-disabled,\n .ant-select-item-option-disabled:hover {\n background: ".concat(Ut.color.surface.disabledSurface," !important;\n span { \n color: ").concat(Ut.color.surface.disabledOnSurface," !important;\n }\n }\n"),YE=dt.div(NE||(NE=r.__makeTemplateObject(["\n ","\n ","\n ","\n ","\n"],["\n ","\n ","\n ","\n ","\n"])),$E,WE,UE,GE),XE={padding:0,borderRadius:"12px"},qE={sm:"md",lg:"lg"},KE={sm:"md",lg:"lg"},ZE=function(e){return l.default.createElement(l.default.Fragment,null,e&&l.default.createElement(Oe.Body,{color:Ut.color.base.onNeutralSecondary,size:"sm"},e),l.default.createElement(yE,{icon:"keyboard_arrow_down"}))},QE=function(e,t){return t?l.default.createElement(Oe.Body,{size:qE[e]},t):null},JE=function(e,t,n){return"multiple"===e?function(e){var r=e.label,o=e.onClose;return l.default.createElement(OE,{type:t?"disabled":"positive",variant:"removable",size:n,onClick:t?void 0:o},r)}:void 0},ek=function(t){var n=t.children,o=t.disabled,i=void 0!==o&&o,a=t.size,s=void 0===a?"sm":a,c=t.mode,u=t.label,d=t.labelTooltip,p=t.selectRef,h=t.placeholder,f=t.error,m=void 0!==f&&f,g=t.secondaryText,v=t.helperText,b=t.options,y=r.__rest(t,["children","disabled","size","mode","label","labelTooltip","selectRef","placeholder","error","secondaryText","helperText","options"]),x=e.useRef(null),w=p||x;return l.default.createElement(jE,null,u&&function(e,t){return e?l.default.createElement(FE,null,l.default.createElement(Oe.Body,{size:"md"},e),t?l.default.createElement(iE,{placement:"top",title:"I'm Tooltip Component",content:t},l.default.createElement("span",null,l.default.createElement(yE,{icon:"info",size:"xs"}))):null):null}(u,d),l.default.createElement(VE,r.__assign({disabled:i,mode:c,ref:w,$size:s,$mode:c},y,{error:m,dropdownRender:function(e){return l.default.createElement(YE,{$size:s},l.default.createElement(Oe.Body,{size:"sm"===s?"md":"lg"},e))},dropdownStyle:XE,suffixIcon:ZE(g),placeholder:QE(s,h),showArrow:!0,tagRender:JE(c,i,s),maxTagCount:999}),b?function(e,t){return e.map(function(e){var n=e.value,r=e.label,o=e.icon,i=e.disabled;return l.default.createElement(oE.Option,{key:n,value:n,disabled:i},l.default.createElement(LE,null,o&&l.default.createElement(o,{style:{width:"16px",height:"16px"}}),l.default.createElement(Oe.Body,{size:KE[t]},r)))})}(b,s):n),function(e){return e?l.default.createElement(Oe.Body,{color:Ut.color.base.onNeutralSecondary,size:"sm"},e):null}(v))};ek.Option=t.Select.Option;var tk=function(e,t){var r=t.iconSrc,o=void 0===r?null:r,i=t.extraText,a=void 0===i?"":i,s=t.extraAction,c=void 0===s?function(){}:s,u=t.isAddItemBarVisible,d=void 0===u||u,p=t.topContent,h=t.bottomContent,f=t.actionContent;return l.default.createElement(sk,null,p,e,f||function(e){var t=e.iconSrc,r=void 0===t?null:t,o=e.extraText,i=void 0===o?"":o,a=e.extraAction,s=void 0===a?function(){}:a,c=e.isAddItemBarVisible;return void 0===c||c?l.default.createElement(ck,{onMouseDown:function(){s()}},r?l.default.createElement(lk,{src:r}):l.default.createElement(n.SvgAdd,null),i):null}({iconSrc:o,extraText:a,extraAction:c,isAddItemBarVisible:d}),h)},nk=function(e){var t=e.className,n=void 0===t?"":t,o=e.children,i=e.disabled,a=void 0!==i&&i,s=e.mode,c=e.label,u=e.iconSrc,d=void 0===u?"":u,p=e.extraText,h=void 0===p?"":p,f=e.extraAction,m=void 0===f?function(){}:f,g=e.isAddItemBarVisible,v=void 0===g||g,b=e.topContent,y=void 0===b?null:b,x=e.bottomContent,w=void 0===x?null:x,_=e.actionContent,S=void 0===_?null:_,E=r.__rest(e,["className","children","disabled","mode","label","iconSrc","extraText","extraAction","isAddItemBarVisible","topContent","bottomContent","actionContent"]);return l.default.createElement(ek,r.__assign({className:n,disabled:a,mode:s,label:c,dropdownRender:function(e){return tk(e,{iconSrc:d,extraText:h,extraAction:m,isAddItemBarVisible:v,topContent:y,bottomContent:w,actionContent:S})}},E),o)};nk.Option=ek.Option;var rk,ok,ik,ak,sk=dt.div(rk||(rk=r.__makeTemplateObject(["\n padding-top: 15px;\n"],["\n padding-top: 15px;\n"]))),lk=dt.img(ok||(ok=r.__makeTemplateObject(["\n margin-right: 5px;\n"],["\n margin-right: 5px;\n"]))),ck=dt(Bn)(ik||(ik=r.__makeTemplateObject(["\n font-weight: 500;\n color: #2f8dee;\n display: flex;\n align-items: center;\n margin-left: 15px;\n cursor: pointer;\n margin-top: 10px;\n margin-bottom: 15px;\n &:hover {\n text-decoration: underline;\n }\n"],["\n font-weight: 500;\n color: #2f8dee;\n display: flex;\n align-items: center;\n margin-left: 15px;\n cursor: pointer;\n margin-top: 10px;\n margin-bottom: 15px;\n &:hover {\n text-decoration: underline;\n }\n"]))),uk=we(ak||(ak=r.__makeTemplateObject(["\n & .ant-form-item {\n margin-bottom: 0 !important;\n }\n\n & .ant-form-item-has-error {\n font-family: "," !important;\n font-size: "," !important;\n line-height: 17px !important;\n\n & .ant-form-item-explain {\n color: "," !important;\n padding-top: 5px !important;\n padding-bottom: 5px !important;\n }\n\n & .ant-input,\n .ant-picker-input,\n .ant-select-selector {\n color: "," !important;\n\n &::placeholder,\n input::placeholder,\n .ant-select-selection-placeholder {\n color: "," !important;\n font-weight: 400 !important;\n }\n }\n\n & .ant-input,\n .ant-picker,\n .ant-select,\n .ant-select-selector {\n border-top-right-radius: 5px !important;\n border-bottom-right-radius: 5px !important;\n border-color: "," !important;\n background-color: "," !important;\n\n &:hover {\n border-color: "," !important;\n background-color: "," !important;\n }\n\n &:focus {\n border-color: "," !important;\n -webkit-box-shadow: 0 0 0 3px "," !important;\n box-shadow: 0 0 0 3px "," !important;\n background-color: "," !important;\n }\n }\n\n & .ant-input-group-addon:not(:last-child) {\n color: "," !important;\n background-color: "," !important;\n border-top-left-radius: 5px !important;\n border-bottom-left-radius: 5px !important;\n border-color: "," !important;\n border-right: 0 !important;\n }\n }\n"],["\n & .ant-form-item {\n margin-bottom: 0 !important;\n }\n\n & .ant-form-item-has-error {\n font-family: "," !important;\n font-size: "," !important;\n line-height: 17px !important;\n\n & .ant-form-item-explain {\n color: "," !important;\n padding-top: 5px !important;\n padding-bottom: 5px !important;\n }\n\n & .ant-input,\n .ant-picker-input,\n .ant-select-selector {\n color: "," !important;\n\n &::placeholder,\n input::placeholder,\n .ant-select-selection-placeholder {\n color: "," !important;\n font-weight: 400 !important;\n }\n }\n\n & .ant-input,\n .ant-picker,\n .ant-select,\n .ant-select-selector {\n border-top-right-radius: 5px !important;\n border-bottom-right-radius: 5px !important;\n border-color: "," !important;\n background-color: "," !important;\n\n &:hover {\n border-color: "," !important;\n background-color: "," !important;\n }\n\n &:focus {\n border-color: "," !important;\n -webkit-box-shadow: 0 0 0 3px "," !important;\n box-shadow: 0 0 0 3px "," !important;\n background-color: "," !important;\n }\n }\n\n & .ant-input-group-addon:not(:last-child) {\n color: "," !important;\n background-color: "," !important;\n border-top-left-radius: 5px !important;\n border-bottom-left-radius: 5px !important;\n border-color: "," !important;\n border-right: 0 !important;\n }\n }\n"])),pn,exports.FONT_SIZE.P1,exports.RED_COLORS.R400,exports.RED_COLORS.R400,exports.RED_COLORS.R400,exports.RED_COLORS.R300,exports.RED_COLORS.R100,exports.RED_COLORS.R300,exports.RED_COLORS.R100,exports.RED_COLORS.R300,exports.RED_COLORS.R200,exports.RED_COLORS.R200,exports.RED_COLORS.R100,exports.RED_COLORS.R400,exports.RED_COLORS.R100,exports.RED_COLORS.R300),dk=function(e){var n=e.className,o=void 0===n?"":n,i=e.children,a=r.__rest(e,["className","children"]);return l.default.createElement(t.Form,r.__assign({className:xe(uk,o)},a),i)};function pk(e,t,n,r){void 0===t&&(t="large");var o=hn[t],i=o.height,a=o.borderRadius,s=o.padding,l=n?e.color.status.critical:e.color.base.line;return"\n -webkit-font-smoothing: antialiased;\n\n /* Shared font/sizing for all .ant-input elements */\n & .ant-input, &.ant-input, &.ant-input-password {\n padding: ".concat(s,";\n font-family: ").concat(pn,";\n font-size: ").concat(exports.FONT_SIZE.P1,";\n color: ").concat(e.color.base.onNeutral,";\n line-height: 17px;\n height: ").concat(i,";\n box-sizing: border-box;\n &::placeholder {\n color: ").concat(e.color.component.placeholderInput,";\n font-weight: 400;\n }\n }\n\n /* Case 1: Standalone input — class directly on .ant-input */\n &.ant-input, &.ant-input-password {\n border-radius: ").concat(a," !important;\n border-color: ").concat(l,";\n height: ").concat(i,";\n padding: ").concat(s,";\n &:hover:not(:disabled):not(.ant-input-affix-wrapper-disabled) { border-color: ").concat(n?e.color.status.critical:e.color.base.primary2," !important; }\n &:focus {\n border-color: ").concat(n?e.color.status.critical:e.color.base.primary2,";\n box-shadow: none;\n color: ").concat(e.color.base.onNeutral,";\n }\n }\n\n /* Case 2: Input with addon — class on .ant-input-group-wrapper */\n /* addonBefore: input is after addon — flat left, rounded right */\n & .ant-input-group > .ant-input:last-child {\n border-radius: 0 ").concat(a," ").concat(a," 0 !important;\n border-color: ").concat(l,";\n height: ").concat(i,";\n &:hover:not(:disabled):not(.ant-input-affix-wrapper-disabled) { border-color: ").concat(n?e.color.status.critical:e.color.base.primary2," !important; }\n &:focus {\n border-color: ").concat(n?e.color.status.critical:e.color.base.primary2,";\n box-shadow: none;\n color: ").concat(e.color.base.onNeutral,";\n }\n }\n /* addonAfter: input is before addon — rounded left, flat right */\n & .ant-input-group > .ant-input:first-child {\n border-radius: ").concat(a," 0 0 ").concat(a," !important;\n border-color: ").concat(l,";\n height: ").concat(i,";\n &:hover:not(:disabled):not(.ant-input-affix-wrapper-disabled) { border-color: ").concat(n?e.color.status.critical:e.color.base.primary2," !important; }\n &:focus {\n border-color: ").concat(n?e.color.status.critical:e.color.base.primary2,";\n box-shadow: none;\n color: ").concat(e.color.base.onNeutral,";\n }\n }\n\n /* Case 3: Input with prefix (e.g. Search without addon) — class on .ant-input-affix-wrapper */\n &.ant-input-affix-wrapper {\n border-radius: ").concat(a," !important;\n border-color: ").concat(l,";\n height: ").concat(i,";\n padding: ").concat(s,";\n &:hover:not(:disabled):not(.ant-input-affix-wrapper-disabled) { border-color: ").concat(n?e.color.status.critical:e.color.base.primary2," !important; }\n & .ant-input {\n height: auto;\n padding: 0;\n border: none;\n border-radius: 0 !important;\n }\n }\n &.ant-input-affix-wrapper-focused {\n border-color: ").concat(n?e.color.status.critical:e.color.base.primary2," !important;\n box-shadow: none;\n }\n\n /* Case 4: addon + prefix — class on .ant-input-group-wrapper */\n & .ant-input-group > .ant-input-affix-wrapper:last-child,\n & .ant-input-group > .ant-input-affix-wrapper:first-child {\n border-color: ").concat(l,";\n height: ").concat(i,";\n padding: ").concat(s,";\n &:hover:not(:disabled):not(.ant-input-affix-wrapper-disabled) { border-color: ").concat(n?e.color.status.critical:e.color.base.primary2," !important; }\n &.ant-input-affix-wrapper-focused {\n border-color: ").concat(n?e.color.status.critical:e.color.base.primary2," !important;\n box-shadow: none;\n }\n & .ant-input {\n height: auto;\n padding: 0;\n border: none;\n border-radius: 0 !important;\n box-shadow: none;\n &:hover, &:focus { border: none; box-shadow: none; }\n }\n }\n /* addonBefore + prefix — rounded right */\n & .ant-input-group > .ant-input-affix-wrapper:last-child {\n border-radius: 0 ").concat(a," ").concat(a," 0 !important;\n padding-left: 8px;\n }\n /* prefix + addonAfter — rounded left */\n & .ant-input-group > .ant-input-affix-wrapper:first-child {\n border-radius: ").concat(a," 0 0 ").concat(a," !important;\n }\n\n /* Disabled states */\n &.ant-input-disabled, & .ant-input-disabled {\n background-color: ").concat(e.color.surface.disabledSurface,";\n border-color: ").concat(e.color.base.line,";\n color: ").concat(e.color.base.onNeutral,";\n -webkit-text-fill-color: ").concat(e.color.base.onNeutral,";\n &::placeholder {\n color: ").concat(e.color.component.placeholderInput,";\n -webkit-text-fill-color: ").concat(e.color.component.placeholderInput,";\n }\n &:hover { border-color: ").concat(e.color.base.line," !important; }\n }\n &.ant-input-affix-wrapper-disabled {\n background-color: ").concat(e.color.surface.disabledSurface,";\n border-color: ").concat(e.color.base.line,";\n &:hover { border-color: ").concat(e.color.base.line," !important; }\n & .ant-input-disabled {\n background-color: ").concat(e.color.surface.disabledSurface,";\n color: ").concat(e.color.base.onNeutral,";\n -webkit-text-fill-color: ").concat(e.color.base.onNeutral,";\n &::placeholder {\n color: ").concat(e.color.component.placeholderInput,";\n -webkit-text-fill-color: ").concat(e.color.component.placeholderInput,";\n }\n }\n }\n\n /* Addon containers */\n & .ant-input-group-addon:not(:last-child) {\n font-family: ").concat(pn,";\n color: ").concat(e.color.base.onNeutral,";\n background-color: ").concat(e.color.surface.neutral,";\n border-top-left-radius: ").concat(a," !important;\n border-bottom-left-radius: ").concat(a," !important;\n border-color: ").concat(l,";\n border-right: 0;\n padding-left: 12px;\n padding-right: 8px;\n &:has(.ant-select) {\n padding: 4px;\n .ant-select-focused .ant-select-selector {\n border-color: transparent !important;\n box-shadow: none !important;\n }\n .ant-select-selector {\n border: none !important;\n box-shadow: none !important;\n background: transparent !important;\n height: 100%;\n }\n }\n &:has([data-addon-custom]) {\n background-color: ").concat(e.color.surface.neutral,";\n padding-left: 12px;\n padding-right: 8px;\n }\n + .ant-input-disabled {\n background-color: ").concat(e.color.surface.disabledSurface,";\n border-color: ").concat(e.color.base.line,";\n color: ").concat(e.color.base.onNeutral,";\n -webkit-text-fill-color: ").concat(e.color.base.onNeutral,";\n &::placeholder {\n color: ").concat(e.color.component.placeholderInput,";\n -webkit-text-fill-color: ").concat(e.color.component.placeholderInput,";\n }\n &:hover { border-color: ").concat(e.color.base.line,"; }\n }\n }\n & .ant-input-group-addon:last-child {\n font-family: ").concat(pn,";\n color: ").concat(e.color.base.onNeutral,";\n background-color: ").concat(e.color.surface.neutral,";\n border-top-right-radius: ").concat(a," !important;\n border-bottom-right-radius: ").concat(a," !important;\n border-color: ").concat(l,";\n border-left: 0;\n padding-left: 16px;\n padding-right: 16px;\n &:has(.ant-select) {\n padding: 4px;\n .ant-select-focused .ant-select-selector {\n border-color: transparent !important;\n box-shadow: none !important;\n }\n .ant-select-selector {\n border: none !important;\n box-shadow: none !important;\n background: transparent !important;\n height: 100%;\n }\n }\n &:has([data-addon-custom]) {\n background-color: ").concat(e.color.surface.neutral,";\n padding-left: 8px;\n padding-right: 12px;\n }\n &:hover {\n background-color: ").concat(e.color.interactive.hoverSurface,";\n border-color: ").concat(e.color.base.line,";\n border-left: 1px solid ").concat(e.color.base.line,";\n }\n &:focus-within {\n background-color: ").concat(e.color.surface.neutral,";\n border-color: ").concat(e.color.base.primary2," !important;\n border-left: 1px solid ").concat(e.color.base.primary2,";\n }\n }\n & .ant-input-group-addon:not(:last-child):hover {\n background-color: ").concat(e.color.interactive.hoverSurface,";\n border-color: ").concat(e.color.base.line,";\n border-right: 1px solid ").concat(e.color.base.line,";\n }\n & .ant-input-group-addon:not(:last-child):focus-within {\n background-color: ").concat(e.color.surface.neutral,";\n border-color: ").concat(e.color.base.primary2," !important;\n border-right: 1px solid ").concat(e.color.base.primary2,";\n }\n & .ant-input-group:has(.ant-input-group-addon:last-child:hover) > .ant-input:first-child,\n & .ant-input-group:has(.ant-input-group-addon:last-child:hover) > .ant-input-affix-wrapper:first-child {\n border-right: 0 !important;\n }\n & .ant-input-group:has(.ant-input-group-addon:last-child:focus-within) > .ant-input:first-child,\n & .ant-input-group:has(.ant-input-group-addon:last-child:focus-within) > .ant-input-affix-wrapper:first-child {\n border-right: 0 !important;\n }\n & .ant-input-group:has(.ant-input-group-addon:not(:last-child):hover) > .ant-input:last-child,\n & .ant-input-group:has(.ant-input-group-addon:not(:last-child):hover) > .ant-input-affix-wrapper:last-child {\n border-left: 0 !important;\n }\n & .ant-input-group:has(.ant-input-group-addon:not(:last-child):focus-within) > .ant-input:last-child,\n & .ant-input-group:has(.ant-input-group-addon:not(:last-child):focus-within) > .ant-input-affix-wrapper:last-child {\n border-left: 0 !important;\n }\n ").concat(r?"\n & .ant-input-group-addon:last-child {\n background-color: ".concat(e.color.surface.disabledSurface,";\n color: ").concat(e.color.base.onNeutral,";\n pointer-events: none;\n cursor: not-allowed;\n border-color: ").concat(e.color.base.line,";\n border-left: 1px solid ").concat(e.color.base.line,";\n &:has([data-addon-custom]) {\n background-color: ").concat(e.color.surface.disabledSurface,";\n }\n }\n & .ant-input-group > .ant-input:first-child {\n border-right: 0;\n }\n & .ant-input-group > .ant-input-affix-wrapper:first-child {\n border-right: 0;\n }\n & .ant-input-group-addon:not(:last-child) {\n background-color: ").concat(e.color.surface.disabledSurface,";\n color: ").concat(e.color.base.onNeutral,";\n pointer-events: none;\n cursor: not-allowed;\n border-color: ").concat(e.color.base.line,";\n border-right: 1px solid ").concat(e.color.base.line,";\n &:has([data-addon-custom]) {\n background-color: ").concat(e.color.surface.disabledSurface,";\n }\n }\n & .ant-input-group > .ant-input:last-child {\n border-left: 0;\n }\n & .ant-input-group > .ant-input-affix-wrapper:last-child {\n border-left: 0;\n }\n "):"","\n ")}function hk(e){var t=e.text,n=e.error,r=en();if(!t)return null;var o=n?r.color.status.critical:r.color.component.helperInput;return l.default.createElement(Oe.Body,{size:"sm",style:{color:o,marginTop:4}},t)}function fk(e){var t=e.label,r=e.required,o=e.optional,i=e.showInfoIcon,a=e.infoText,s=e.onInfoClick,c=en();return t?l.default.createElement(gk,null,l.default.createElement(Oe.Body,{size:"sm",style:{color:c.color.base.onNeutral}},t,r&&l.default.createElement("span",{style:{color:c.error.text,marginLeft:2}},"*")),o&&l.default.createElement(Oe.Body,{size:"sm",style:{color:c.color.base.onNeutralSecondary}},"Optional"),i&&a&&l.default.createElement(iE,{content:a,placement:"top"},l.default.createElement("span",{role:"button",tabIndex:0,"aria-label":"More information",onClick:s,onKeyDown:function(e){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),null==s||s())},style:{display:"inline-flex",cursor:"pointer"}},l.default.createElement(n.SvgInfo,{style:{width:16,height:16}}))),i&&!a&&l.default.createElement("span",{role:"button",tabIndex:0,"aria-label":"More information",onClick:s,onKeyDown:function(e){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),null==s||s())},style:{display:"inline-flex",cursor:"pointer"}},l.default.createElement(n.SvgInfo,{style:{width:16,height:16}}))):null}dk.Item=function(e){var n=e.className,o=void 0===n?"":n,i=r.__rest(e,["className"]);return l.default.createElement(t.Form.Item,r.__assign({className:xe(uk,o)},i))},dk.useForm=t.Form.useForm;var mk,gk=dt.div(mk||(mk=r.__makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: 4px;\n margin-bottom: 4px;\n"],["\n display: flex;\n align-items: center;\n gap: 4px;\n margin-bottom: 4px;\n"]))),vk=function(e){var n=e.addonBefore,o=e.addonAfter,i=e.placeholder,a=void 0===i?"":i,s=e.disabled,c=void 0!==s&&s,u=e.disabledAddon,d=void 0!==u&&u,p=e.className,h=void 0===p?"":p,f=e.label,m=e.required,g=e.optional,v=void 0!==g&&g,b=e.size,y=void 0===b?"large":b,x=e.helperText,w=e.error,_=e.showInfoIcon,S=e.infoText,E=e.onInfoClick,k=r.__rest(e,["addonBefore","addonAfter","placeholder","disabled","disabledAddon","className","label","required","optional","size","helperText","error","showInfoIcon","infoText","onInfoClick"]),O=pk(en(),y,w,d);return l.default.createElement("div",null,l.default.createElement(fk,{label:f,required:m,optional:v,showInfoIcon:_,infoText:S,onInfoClick:E}),l.default.createElement(t.Input,r.__assign({className:"".concat(we(O)," ").concat(h),addonBefore:n,addonAfter:o,placeholder:a,disabled:c},k)),l.default.createElement(hk,{text:x,error:w}))};vk.Password=function(e){var n=e.addonBefore,o=void 0===n?"":n,i=e.placeholder,a=void 0===i?"":i,s=e.disabled,c=void 0!==s&&s,u=e.className,d=void 0===u?"":u,p=e.label,h=e.required,f=e.optional,m=void 0!==f&&f,g=e.size,v=void 0===g?"large":g,b=e.helperText,y=e.error,x=e.showInfoIcon,w=e.infoText,_=e.onInfoClick,S=r.__rest(e,["addonBefore","placeholder","disabled","className","label","required","optional","size","helperText","error","showInfoIcon","infoText","onInfoClick"]),E=pk(en(),v,y);return l.default.createElement("div",null,l.default.createElement(fk,{label:p,required:h,optional:m,showInfoIcon:x,infoText:w,onInfoClick:_}),l.default.createElement(t.Input.Password,r.__assign({className:"".concat(we(E)," ").concat(d),addonBefore:o,placeholder:a,disabled:c,visibilityToggle:!0},S)),l.default.createElement(hk,{text:b,error:y}))},vk.Search=function(e){var n=e.addonBefore,o=void 0===n?"":n,i=e.placeholder,a=void 0===i?"":i,s=e.className,c=void 0===s?"":s,u=e.onChange,d=e.onSearch,p=e.size,h=void 0===p?"large":p,f=e.helperText,m=e.error,g=r.__rest(e,["addonBefore","placeholder","className","onChange","onSearch","size","helperText","error"]),v=en(),b="".concat(pk(v,h,m),"\n & .ant-input-group-addon:not(:last-child) {\n background-color: ").concat(v.color.surface.neutral,";\n padding: ").concat("string"==typeof o?"0 15px":"0",";\n }\n &.ant-input-affix-wrapper .ant-input-prefix {\n margin-right: 8px;\n display: flex;\n align-items: center;\n }\n ");return l.default.createElement("div",null,l.default.createElement(t.Input,r.__assign({placeholder:a,addonBefore:o,onChange:u,onKeyDown:d,className:"".concat(we(b)," ").concat(c),prefix:l.default.createElement("span",{onClick:d,style:{display:"flex",cursor:d?"pointer":"default"}},l.default.createElement(yE,{icon:"search",size:"small"===h?"xs":"m",color:v.color.base.onNeutral}))},g)),l.default.createElement(hk,{text:f,error:m}))},vk.TextArea=function(e){var n=e.className,o=void 0===n?"":n,i=e.label,a=e.required,s=void 0!==a&&a,c=e.optional,u=void 0!==c&&c,d=e.size,p=void 0===d?"large":d,h=e.helperText,f=e.error,m=e.showInfoIcon,g=e.infoText,v=e.onInfoClick,b=r.__rest(e,["className","label","required","optional","size","helperText","error","showInfoIcon","infoText","onInfoClick"]),y=en(),x=f?y.color.status.critical:y.color.base.line,w=hn[p],_=w.borderRadius,S=w.padding,E="".concat(pk(y,p,f),"\n &.ant-input {\n min-height: 72px;\n height: auto;\n resize: none;\n border-radius: ").concat(_," !important;\n border-color: ").concat(x,";\n padding: ").concat(S,";\n &:hover:not(:disabled):not(.ant-input-disabled) { border-color: ").concat(f?y.color.status.critical:y.color.base.primary2," !important; }\n &:focus {\n border-color: ").concat(y.color.base.primary2,";\n box-shadow: none;\n }\n &:disabled {\n color: ").concat(y.color.base.onNeutral," !important;\n -webkit-text-fill-color: ").concat(y.color.base.onNeutral," !important;\n background-color: ").concat(y.color.surface.disabledSurface,";\n border-color: ").concat(y.color.base.line,";\n &::placeholder {\n color: ").concat(y.color.surface.disabledOnSurface," !important;\n -webkit-text-fill-color: ").concat(y.color.surface.disabledOnSurface," !important;\n }\n &:hover { border-color: ").concat(y.color.base.line," !important; }\n }\n }\n ");return l.default.createElement("div",null,l.default.createElement(fk,{label:i,required:s,optional:u,showInfoIcon:m,infoText:g,onInfoClick:v}),l.default.createElement(t.Input.TextArea,r.__assign({className:"".concat(we(E)," ").concat(o)},b)),l.default.createElement(hk,{text:h,error:f}))},vk.Group=t.Input.Group;var bk,yk,xk,wk,_k,Sk,Ek,kk,Ok,Ck,Mk,Tk,Ak,Pk,Rk,Nk,Dk,Ik,Fk,Lk,jk,zk,Bk=hn.large,Hk=Bk.height,Vk=Bk.borderRadius,$k=Bk.padding,Wk=dt.div(bk||(bk=r.__makeTemplateObject(["\n display: flex;\n height: ",";\n width: 100%;\n position: relative;\n"],["\n display: flex;\n height: ",";\n width: 100%;\n position: relative;\n"])),Hk),Uk=dt.div(yk||(yk=r.__makeTemplateObject(["\n display: flex;\n align-items: center;\n padding: 0 16px;\n border: 1px solid ",";\n border-right: none;\n border-radius: "," 0 0 ",";\n background-color: ",";\n color: ",";\n font-family: ",";\n font-size: ",";\n white-space: nowrap;\n cursor: ",";\n box-sizing: border-box;\n overflow: visible;\n\n & > * {\n pointer-events: ",";\n }\n\n &:hover {\n background-color: ",";\n }\n"],["\n display: flex;\n align-items: center;\n padding: 0 16px;\n border: 1px solid ",";\n border-right: none;\n border-radius: "," 0 0 ",";\n background-color: ",";\n color: ",";\n font-family: ",";\n font-size: ",";\n white-space: nowrap;\n cursor: ",";\n box-sizing: border-box;\n overflow: visible;\n\n & > * {\n pointer-events: ",";\n }\n\n &:hover {\n background-color: ",";\n }\n"])),function(e){return e.borderColor},Vk,Vk,function(e){return e.bgColor},function(e){return e.textColor},pn,exports.FONT_SIZE.P1,function(e){return e.isDisabled?"not-allowed":"default"},function(e){return e.isDisabled?"none":"auto"},function(e){return e.isDisabled?e.bgColor:e.hoverBgColor}),Gk=dt.input(xk||(xk=r.__makeTemplateObject(["\n flex: 1;\n min-width: 0;\n height: 100%;\n padding: ",";\n border: 1px solid ",";\n border-radius: ",";\n font-family: ",";\n font-size: ",";\n color: ",";\n background-color: ",";\n outline: none;\n box-sizing: border-box;\n cursor: ",";\n\n &::placeholder {\n color: ",";\n font-weight: 400;\n }\n\n &:focus {\n border-color: ",";\n }\n\n &:hover {\n border-color: ",";\n }\n"],["\n flex: 1;\n min-width: 0;\n height: 100%;\n padding: ",";\n border: 1px solid ",";\n border-radius: ",";\n font-family: ",";\n font-size: ",";\n color: ",";\n background-color: ",";\n outline: none;\n box-sizing: border-box;\n cursor: ",";\n\n &::placeholder {\n color: ",";\n font-weight: 400;\n }\n\n &:focus {\n border-color: ",";\n }\n\n &:hover {\n border-color: ",";\n }\n"])),$k,function(e){return e.borderColor},function(e){return e.hasPrefix?"0":"".concat(Vk," 0 0 ").concat(Vk)},pn,exports.FONT_SIZE.P1,function(e){return e.isDisabled?e.disabledTextColor:e.textColor},function(e){return e.isDisabled?e.disabledBgColor:"transparent"},function(e){return e.isDisabled?"not-allowed":"text"},function(e){return e.placeholderColor},function(e){return e.isDisabled?e.borderColor:e.focusBorderColor},function(e){return e.isDisabled?e.borderColor:e.focusBorderColor}),Yk=dt.button(wk||(wk=r.__makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 0 24px;\n border: none;\n border-radius: 0 "," "," 0;\n background-color: ",";\n color: ",";\n font-family: ",";\n font-size: ",";\n font-weight: 700;\n white-space: nowrap;\n cursor: ",";\n box-sizing: border-box;\n\n &:hover {\n opacity: ",";\n }\n"],["\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 0 24px;\n border: none;\n border-radius: 0 "," "," 0;\n background-color: ",";\n color: ",";\n font-family: ",";\n font-size: ",";\n font-weight: 700;\n white-space: nowrap;\n cursor: ",";\n box-sizing: border-box;\n\n &:hover {\n opacity: ",";\n }\n"])),Vk,Vk,function(e){return e.isDisabled?e.disabledBgColor:e.bgColor},function(e){return e.isDisabled?e.disabledTextColor:e.textColor},pn,exports.FONT_SIZE.P1,function(e){return e.isDisabled?"not-allowed":"pointer"},function(e){return e.isDisabled?1:.9}),Xk=dt.div(_k||(_k=r.__makeTemplateObject(["\n ","\n padding-left: ",";\n padding-right: ",";\n"],["\n ","\n padding-left: ",";\n padding-right: ",";\n"])),function(e){return e.hasIcon?"\n height: 86px;\n ":"\n height: 73px;\n "},Vt,Vt),qk=dt(Bn)(Sk||(Sk=r.__makeTemplateObject(["\n border-bottom: 1px solid #e8e8e8;\n padding-top: ",";\n padding-left: ",";\n padding-right: ",";\n padding-bottom: ",";\n"],["\n border-bottom: 1px solid #e8e8e8;\n padding-top: ",";\n padding-left: ",";\n padding-right: ",";\n padding-bottom: ",";\n"])),Ht,Vt,Vt,Vt),Kk=dt.div(Ek||(Ek=r.__makeTemplateObject(["\n background: #f6f7f9;\n display: flex;\n justify-content: flex-end;\n padding-right: ",";\n padding-top: ",";\n padding-bottom: ",";\n"],["\n background: #f6f7f9;\n display: flex;\n justify-content: flex-end;\n padding-right: ",";\n padding-top: ",";\n padding-bottom: ",";\n"])),Vt,zt,zt),Zk=dt.div(kk||(kk=r.__makeTemplateObject(["\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: space-between;\n"],["\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: space-between;\n"]))),Qk=dt.div(Ok||(Ok=r.__makeTemplateObject(["\n display: flex;\n align-items: center;\n user-select: none;\n & :not(:last-child) {\n margin-right: 10px;\n }\n"],["\n display: flex;\n align-items: center;\n user-select: none;\n & :not(:last-child) {\n margin-right: 10px;\n }\n"]))),Jk=dt.div(Ck||(Ck=r.__makeTemplateObject(["\n cursor: pointer;\n padding-left: 5px;\n padding-right: 5px;\n margin-right: -5px;\n"],["\n cursor: pointer;\n padding-left: 5px;\n padding-right: 5px;\n margin-right: -5px;\n"]))),eO=dt.div(Mk||(Mk=r.__makeTemplateObject(["\n width: calc(100vw - 32px);\n max-width: 400px;\n background: white;\n box-shadow: 0px 4px 10px rgba(170, 170, 170, 0.25);\n border-radius: 5px;\n overflow: hidden;\n -webkit-font-smoothing: antialiased;\n margin-bottom: 1.7vh;\n position: absolute;\n top: 6.8vh;\n left: 50%;\n transform: translateX(-50%);\n"],["\n width: calc(100vw - 32px);\n max-width: 400px;\n background: white;\n box-shadow: 0px 4px 10px rgba(170, 170, 170, 0.25);\n border-radius: 5px;\n overflow: hidden;\n -webkit-font-smoothing: antialiased;\n margin-bottom: 1.7vh;\n position: absolute;\n top: 6.8vh;\n left: 50%;\n transform: translateX(-50%);\n"]))),tO=document.body,nO=Ge(Pk||(Pk=r.__makeTemplateObject(["\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n"],["\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n"]))),rO=dt.div(Nk||(Nk=r.__makeTemplateObject(["\n position: fixed;\n width: 100vw;\n height: 100%;\n background: rgba(0, 0, 0, 0.2);\n top: 0;\n left: 0;\n background: rgba(0, 0, 0, 0.2);\n display: none;\n overflow: auto;\n z-index: 9; // bigger than nav bar z-index: 8\n\n ",";\n"],["\n position: fixed;\n width: 100vw;\n height: 100%;\n background: rgba(0, 0, 0, 0.2);\n top: 0;\n left: 0;\n background: rgba(0, 0, 0, 0.2);\n display: none;\n overflow: auto;\n z-index: 9; // bigger than nav bar z-index: 8\n\n ",";\n"])),function(e){return e.open&&Ve(Rk||(Rk=r.__makeTemplateObject(["\n display: block;\n animation: "," 0.3s ease;\n "],["\n display: block;\n animation: "," 0.3s ease;\n "])),nO)}),oO=dt.div(Dk||(Dk=r.__makeTemplateObject(["\n ","\n padding-left: ",";\n padding-right: ",";\n"],["\n ","\n padding-left: ",";\n padding-right: ",";\n"])),function(e){return e.hasIcon?"\n height: 86px;\n ":"\n height: 73px;\n "},Vt,Vt),iO=dt.div(Ik||(Ik=r.__makeTemplateObject(["\n border-bottom: 1px solid #e8e8e8;\n padding-top: ",";\n padding-left: ",";\n padding-right: ",";\n padding-bottom: ",";\n"],["\n border-bottom: 1px solid #e8e8e8;\n padding-top: ",";\n padding-left: ",";\n padding-right: ",";\n padding-bottom: ",";\n"])),Ht,Vt,Vt,Vt),aO=dt.div(Fk||(Fk=r.__makeTemplateObject(["\npadding-top: \n background: #f6f7f9;\n display: flex;\n justify-content: flex-end;\n padding-right: ",";\n padding-top: ",";\n padding-bottom: ",";\n"],["\npadding-top: \n background: #f6f7f9;\n display: flex;\n justify-content: flex-end;\n padding-right: ",";\n padding-top: ",";\n padding-bottom: ",";\n"])),Vt,zt,zt),sO=dt.div(Lk||(Lk=r.__makeTemplateObject(["\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: space-between;\n"],["\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: space-between;\n"]))),lO=dt.div(jk||(jk=r.__makeTemplateObject(["\n display: flex;\n align-items: center;\n user-select: none;\n & :not(:last-child) {\n margin-right: 10px;\n }\n"],["\n display: flex;\n align-items: center;\n user-select: none;\n & :not(:last-child) {\n margin-right: 10px;\n }\n"]))),cO=dt.div(zk||(zk=r.__makeTemplateObject(["\n cursor: pointer;\n padding-left: 5px;\n padding-right: 5px;\n margin-right: -5px;\n"],["\n cursor: pointer;\n padding-left: 5px;\n padding-right: 5px;\n margin-right: -5px;\n"])));var uO={Group:function(e){return l.default.createElement(t.Radio.Group,r.__assign({size:"large",onChange:e.onChange},e))},Button:function(e){var n=e.children,o=e.disabled,i=r.__rest(e,["children","disabled"]),a=en().brand,s="\n &.ant-radio-button-wrapper {\n ".concat(o?"":"color: ".concat(exports.NEUTRAL_COLORS.BLACK," !important;"),"\n -webkit-font-smoothing: antialiased !important;\n display: block !important;\n width: 100% !important;\n font-family: ").concat(pn," !important;\n font-weight: 400 !important;\n border-radius: 5px !important;\n border: 1px solid ").concat(exports.NEUTRAL_COLORS.G200," !important;\n user-select: none !important;\n }\n\n .ant-radio-group-large &.ant-radio-button-wrapper {\n height: 44px !important;\n }\n\n &.ant-radio-button-wrapper:first-child, &.ant-radio-button-wrapper:last-child {\n border-radius: 5px !important;\n }\n\n &.ant-radio-button-wrapper:first-child:last-child {\n border-radius: 5px !important;\n }\n\n .ant-radio-group &.ant-radio-button-wrapper {\n font-size: 14px !important;\n }\n\n &.ant-radio-button-wrapper:not(:first-child)::before {\n display: none !important;\n }\n\n &.ant-radio-button-wrapper:hover {\n ").concat(o?"":"\n border-color: ".concat(a.primary.default," !important;\n color: ").concat(exports.NEUTRAL_COLORS.BLACK," !important;\n "),"\n }\n\n &.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled),\n &.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):hover,\n &.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):first-child {\n border: 2px solid ").concat(a.primary.default," !important;\n color: ").concat(a.primary.default," !important;\n\n circle {\n transition: all 0.3s !important;\n }\n\n circle.center {\n fill: ").concat(se.S500," !important;\n }\n\n circle.border {\n stroke: ").concat(a.primary.default," !important;\n }\n }\n\n &.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):active {\n border-color: ").concat(a.primary.default," !important;\n color: ").concat(a.primary.default," !important;\n }\n\n &.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled).ant-radio-button-wrapper:first-child{\n border-right-color: ").concat(exports.NEUTRAL_COLORS.BLACK," !important;\n }\n ");return l.default.createElement(t.Radio.Button,r.__assign({className:we(s),disabled:o},i),l.default.createElement("div",{style:{display:"flex",height:"100%",alignItems:"center"}},l.default.createElement("div",{style:{width:"20px",height:"20px",lineHeight:"20px",marginRight:"11px"}},l.default.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.default.createElement("circle",{className:"border",cx:"10",cy:"10",r:"9.5",stroke:"#E8E8E8"}),l.default.createElement("circle",{className:"center",cx:"10",cy:"10",r:"7",fill:"rgba(0, 0, 0, 0)"}))),n))}};var dO,pO,hO=dt("div")(dO||(dO=r.__makeTemplateObject(["\n display: ",";\n "," {\n display: ",";\n }\n"],["\n display: ",";\n "," {\n display: ",";\n }\n"])),function(e){return"lg"===e.only?"block":"none"},Et,function(e){return"lg"===e.only?"none":"block"}),fO=function(e){var n=e.className,o=r.__rest(e,["className"]),i="\n & .ant-steps-item-title {\n padding-right: 0;\n }\n \n & .ant-steps-item-finish > .ant-steps-item-container > .ant-steps-item-content > .ant-steps-item-title {\n ".concat(Mt,"\n ").concat(jt,"\n }\n \n & .ant-steps-item-process > .ant-steps-item-container > .ant-steps-item-content > .ant-steps-item-title {\n ").concat(Mt,"\n ").concat(Lt,"\n }\n \n & .ant-steps-item-finish .ant-steps-item-icon > .ant-steps-icon .ant-steps-icon-dot {\n background: #43CC32;\n }\n \n &.ant-steps-dot .ant-steps-item-icon {\n width: 13px;\n height: 13px;\n }\n \n &.ant-steps-dot .ant-steps-item-content {\n width: unset;\n max-width: 100%;\n }\n \n &.ant-steps-dot .ant-steps-item-process .ant-steps-item-icon {\n width: 13px;\n height: 13px;\n }\n \n &.ant-steps-vertical.ant-steps-dot .ant-steps-item-icon {\n margin-top: 6px;\n }\n \n &.ant-steps-dot .ant-steps-item-tail::after {\n margin-left: 15px;\n }\n \n & .ant-steps-item-finish > .ant-steps-item-container > .ant-steps-item-tail::after {\n background: #CACACA;\n }\n \n &.ant-steps-vertical.ant-steps-dot .ant-steps-item-process .ant-steps-icon-dot {\n top: 0;\n }\n \n &.ant-steps-vertical .ant-steps-item-icon {\n margin-right: 10px;\n }\n \n &.ant-steps-vertical.ant-steps-dot .ant-steps-item-process .ant-steps-icon-dot {\n left: 0;\n }\n \n & .ant-steps-item-icon > .ant-steps-icon {\n top: 0;\n }\n \n &.ant-steps-vertical.ant-steps-dot .ant-steps-item > .ant-steps-item-container > .ant-steps-item-tail {\n top: 4px;\n left: -9px;\n }\n \n & .ant-steps-item-process > .ant-steps-item-container > .ant-steps-item-tail::after {\n background: #CACACA;\n }\n \n & .ant-steps-item-wait > .ant-steps-item-container > .ant-steps-item-content > .ant-steps-item-title {\n ").concat(Mt,"\n ").concat(jt,"\n color: #777777;\n }\n ");return l.default.createElement(t.Steps,r.__assign({},o,{className:xe(we(i),n)}))};fO.Step=function(e){var n=r.__rest(e,[]),o=we(pO||(pO=r.__makeTemplateObject(["\n & .ant-steps-item-title {\n white-space: nowrap;\n width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n "],["\n & .ant-steps-item-title {\n white-space: nowrap;\n width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n "])));return l.default.createElement(t.Steps.Step,r.__assign({className:xe(o)},n))};var mO,gO,vO,bO,yO,xO,wO=we(xO||(xO=r.__makeTemplateObject(["\n -webkit-font-smoothing: antialiased;\n font-family: ",";\n color: ",";\n"],["\n -webkit-font-smoothing: antialiased;\n font-family: ",";\n color: ",";\n"])),pn,ie.DEFAULT),_O=function(e){var n=e.children,o=r.__rest(e,["children"]),i=en().brand,a="\n font-family: ".concat(pn,";\n font-size: 16px;\n font-weight: 400;\n\n &.ant-tabs {\n width: 100%;\n }\n\n .ant-tabs-ink-bar {\n z-index: 0;\n }\n\n .ant-tabs-nav .ant-tabs-tab {\n margin-right: 20px;\n padding-top: 8px;\n padding-bottom: 8px;\n }\n\n .ant-tabs-nav .ant-tabs-tab:hover,\n .ant-tabs-nav .ant-tabs-tab-active .ant-tabs-tab-btn {\n color: ").concat(i.primary.default,";\n }\n\n .ant-tabs-nav .ant-tabs-tab-active {\n font-weight: 700;\n font-size: 16px;\n font-family: ").concat("Red Hat Display",";\n }\n \n .ant-tabs-ink-bar {\n background-color: ").concat(i.primary.default,"; \n }\n ");return l.default.createElement(t.Tabs,r.__assign({className:"".concat(we(a))},o),n)};_O.TabPane=t.Tabs.TabPane;var SO,EO,kO,OO,CO,MO,TO,AO,PO,RO,NO,DO,IO,FO,LO,jO,zO,BO,HO,VO={Group:function(e){var n=e.className,o=void 0===n?"":n,i=r.__rest(e,["className"]),a="\n &.ant-checkbox-group {\n width: 100% !important;\n }\n\n & .ant-checkbox-group-item {\n display: flex !important;\n align-items: flex-start !important;\n\n border: 1px solid ".concat(Ut.brand.line.base," !important;\n border-radius: 5px !important;\n\n &:hover {\n border: 1px solid ").concat(Ut.brand.primary.default," !important;\n }\n\n &:focus-within {\n border: 1px solid ").concat(Ut.brand.primary.default," !important;\n }\n\n &:not(:last-child) {\n margin-bottom: 10px !important;\n width: 100% !important;\n }\n }\n\n & .ant-checkbox-wrapper-checked {\n border: 1px solid ").concat(Ut.brand.primary.default," !important;\n }\n\n & .ant-checkbox-wrapper {\n padding-left: 16px !important;\n padding-top: 11px !important;\n padding-bottom: 11px !important;\n line-height: 1.6 !important;\n color: ").concat(exports.NEUTRAL_COLORS.BLACK," !important;\n font-family: ").concat(pn," !important;\n }\n\n & .ant-checkbox {\n margin-top: 4px !important;\n }\n\n & .ant-checkbox + span {\n padding-left: 10px !important;\n padding-right: 10px !important;\n }\n\n & .ant-checkbox-checked .ant-checkbox-inner {\n background-color: ").concat(Ut.brand.primary.illustration," !important;\n border-color: ").concat(Ut.brand.primary.default," !important;\n }\n\n & .ant-checkbox-inner {\n border-radius: 5px !important;\n border: 1px solid ").concat(Ut.brand.primary.default," !important;\n }\n ");return l.default.createElement(t.Checkbox.Group,r.__assign({className:"".concat(we(a)," ").concat(o)},i))}},$O=dt.div(SO||(SO=r.__makeTemplateObject(["\n width: 100%;\n padding-top: 4px;\n display: block;\n align-items: center;\n flex-direction: column;\n"],["\n width: 100%;\n padding-top: 4px;\n display: block;\n align-items: center;\n flex-direction: column;\n"]))),WO=dt(Hn)(EO||(EO=r.__makeTemplateObject(["\n text-align: center;\n margin-top: 10px;\n margin-bottom: 5px;\n"],["\n text-align: center;\n margin-top: 10px;\n margin-bottom: 5px;\n"]))),UO=dt(Bn)(kO||(kO=r.__makeTemplateObject(["\n text-align: center;\n color: ",";\n margin-top: 5px;\n margin-bottom: 20px;\n align-items: center;\n"],["\n text-align: center;\n color: ",";\n margin-top: 5px;\n margin-bottom: 20px;\n align-items: center;\n"])),le.S500),GO=dt(Bn)(OO||(OO=r.__makeTemplateObject(["\n text-align: center;\n color: ",";\n margin-top: 20px;\n margin-bottom: 20px;\n align-items: center;\n"],["\n text-align: center;\n color: ",";\n margin-top: 20px;\n margin-bottom: 20px;\n align-items: center;\n"])),ie.DEFAULT),YO=function(e){var t=e.typographyType,n=void 0===t?"body":t,o=e.size,i=void 0===o?"md":o,a=e.textContent,s=e.children,c=e.href,u=e.target,d=e.rel,p=e.isUnderlined,h=void 0===p||p,f=e.icon,m=e.iconPlacement,g=void 0===m?"left":m,v=e.onClick,b=r.__rest(e,["typographyType","size","textContent","children","href","target","rel","isUnderlined","icon","iconPlacement","onClick"]),y=dt.a(CO||(CO=r.__makeTemplateObject(["\n display: ",";\n align-items: center;\n gap: 4px;\n .material-symbols-rounded {\n color: "," !important;\n }\n text-decoration: ","\n ",";\n\n :hover {\n text-decoration: ","\n ",";\n }\n\n user-select: none;\n "],["\n display: ",";\n align-items: center;\n gap: 4px;\n .material-symbols-rounded {\n color: "," !important;\n }\n text-decoration: ","\n ",";\n\n :hover {\n text-decoration: ","\n ",";\n }\n\n user-select: none;\n "])),f?"flex":"inline-flex",Ut.color.base.link,h?"underline":"none",Ut.color.base.link,h?"underline":"none",Ut.color.base.link),x=f&&"left"===g,w=f&&"right"===g,_=a||s;return l.default.createElement(y,r.__assign({href:c,target:u,rel:d,onClick:v},b),x&&f,"body"===n&&l.default.createElement(Oe.Body,{size:i,color:Ut.color.base.link},_),"label"===n&&l.default.createElement(Oe.Label,{size:i,color:Ut.color.base.link},_),w&&f)},XO={Title:dt(zn)(NO||(NO=r.__makeTemplateObject(["\n color: #1b2736;\n margin-bottom: 5px;\n "],["\n color: #1b2736;\n margin-bottom: 5px;\n "]))),Subtitle:dt(Bn)(DO||(DO=r.__makeTemplateObject(["\n color: #777777;\n margin-bottom: 5px;\n "],["\n color: #777777;\n margin-bottom: 5px;\n "]))),Row:dt.div(IO||(IO=r.__makeTemplateObject(["\n display: block;\n "," {\n display: flex;\n flex-wrap: wrap;\n }\n "],["\n display: block;\n "," {\n display: flex;\n flex-wrap: wrap;\n }\n "])),Et),Left:dt.div(FO||(FO=r.__makeTemplateObject(["\n flex-basis: 0px;\n flex-grow: 1;\n flex-shrink: 0;\n margin-right: 20px;\n margin-bottom: 20px;\n min-width: unset;\n\n "," {\n min-width: 290px;\n }\n "],["\n flex-basis: 0px;\n flex-grow: 1;\n flex-shrink: 0;\n margin-right: 20px;\n margin-bottom: 20px;\n min-width: unset;\n\n "," {\n min-width: 290px;\n }\n "])),Et),Right:dt.div(LO||(LO=r.__makeTemplateObject(["\n flex-basis: 0px;\n flex-grow: 1;\n flex-shrink: 0;\n margin-bottom: 20px;\n min-width: unset;\n\n "," {\n min-width: 290px;\n }\n "],["\n flex-basis: 0px;\n flex-grow: 1;\n flex-shrink: 0;\n margin-bottom: 20px;\n min-width: unset;\n\n "," {\n min-width: 290px;\n }\n "])),Et)};var qO,KO,ZO,QO,JO,eC,tC,nC,rC,oC,iC,aC,sC,lC,cC=function(){if(HO)return BO;HO=1;var e=(zO||(zO=1,jO=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()}}),jO),t={"text/plain":"Text","text/html":"Url",default:"Text"};return BO=function(n,r){var o,i,a,s,l,c,u=!1;r||(r={}),o=r.debug||!1;try{if(a=e(),s=document.createRange(),l=document.getSelection(),(c=document.createElement("span")).textContent=n,c.ariaHidden="true",c.style.all="unset",c.style.position="fixed",c.style.top=0,c.style.clip="rect(0, 0, 0, 0)",c.style.whiteSpace="pre",c.style.webkitUserSelect="text",c.style.MozUserSelect="text",c.style.msUserSelect="text",c.style.userSelect="text",c.addEventListener("copy",function(e){if(e.stopPropagation(),r.format)if(e.preventDefault(),void 0===e.clipboardData){o&&console.warn("unable to use e.clipboardData"),o&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var i=t[r.format]||t.default;window.clipboardData.setData(i,n)}else e.clipboardData.clearData(),e.clipboardData.setData(r.format,n);r.onCopy&&(e.preventDefault(),r.onCopy(e.clipboardData))}),document.body.appendChild(c),s.selectNodeContents(c),l.addRange(s),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");u=!0}catch(e){o&&console.error("unable to copy using execCommand: ",e),o&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(r.format||"text",n),r.onCopy&&r.onCopy(window.clipboardData),u=!0}catch(e){o&&console.error("unable to copy using clipboardData: ",e),o&&console.error("falling back to prompt"),i=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in r?r.message:"Copy to clipboard: #{key}, Enter"),window.prompt(i,n)}}finally{l&&("function"==typeof l.removeRange?l.removeRange(s):l.removeAllRanges()),c&&document.body.removeChild(c),a()}return u},BO}(),uC=k(cC),dC=dt.div(qO||(qO=r.__makeTemplateObject(["\n display: flex;\n flex-direction: column;\n gap: 4px;\n"],["\n display: flex;\n flex-direction: column;\n gap: 4px;\n"]))),pC=dt.div(KO||(KO=r.__makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: 4px;\n"],["\n display: flex;\n align-items: center;\n gap: 4px;\n"]))),hC=dt.div(ZO||(ZO=r.__makeTemplateObject(["\n display: flex;\n align-items: center;\n"],["\n display: flex;\n align-items: center;\n"]))),fC=dt.div(QO||(QO=r.__makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: 4px;\n > svg {\n width: ","!important;\n height: 24px;\n }\n"],["\n display: flex;\n align-items: center;\n gap: 4px;\n > svg {\n width: ","!important;\n height: 24px;\n }\n"])),function(e){return"wide"===e.iconSize?"48px":"24px"}),mC=dt.div(JO||(JO=r.__makeTemplateObject(["\n display: flex;\n background: ",";\n border-radius: 12px;\n border: 1px solid ",";\n min-height: 48px;\n"],["\n display: flex;\n background: ",";\n border-radius: 12px;\n border: 1px solid ",";\n min-height: 48px;\n"])),Ut.color.surface.disabledSurface,Ut.color.base.line),gC=dt.div(eC||(eC=r.__makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 12px 16px;\n flex: 1 1 0px;\n"],["\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 12px 16px;\n flex: 1 1 0px;\n"]))),vC=dt.div(tC||(tC=r.__makeTemplateObject(["\n color: ",";\n line-height: '24px';\n max-height: ",";\n word-break: ",";\n"],["\n color: ",";\n line-height: '24px';\n max-height: ",";\n word-break: ",";\n"])),Ut.color.base.onNeutral,function(e){return e.isBankAddress?"auto":"48px"},function(e){return e.isBankAddress?"break-word":"break-all"}),bC=dt(t.Button)(nC||(nC=r.__makeTemplateObject(["\n &.ant-btn {\n text-shadow: none;\n -webkit-font-smoothing: antialiased;\n box-shadow: none;\n display: flex;\n align-items: center;\n justify-content: center;\n border-top-left-radius: 0px;\n border-bottom-left-radius: 0px;\n border-top-right-radius: 12px;\n border-bottom-right-radius: 12px;\n border-left: 1px solid "," !important;\n border-right: 0px;\n border-block: 0px;\n background: ",";\n padding: 12px;\n min-width: unset;\n min-height: unset;\n height: auto;\n & > svg {\n vertical-align: middle;\n font-size: 16px;\n margin: 0px;\n }\n ",";\n &[ant-click-animating-without-extra-node]:after {\n --antd-wave-shadow-color: ",";\n }\n }\n"],["\n &.ant-btn {\n text-shadow: none;\n -webkit-font-smoothing: antialiased;\n box-shadow: none;\n display: flex;\n align-items: center;\n justify-content: center;\n border-top-left-radius: 0px;\n border-bottom-left-radius: 0px;\n border-top-right-radius: 12px;\n border-bottom-right-radius: 12px;\n border-left: 1px solid "," !important;\n border-right: 0px;\n border-block: 0px;\n background: ",";\n padding: 12px;\n min-width: unset;\n min-height: unset;\n height: auto;\n & > svg {\n vertical-align: middle;\n font-size: 16px;\n margin: 0px;\n }\n ",";\n &[ant-click-animating-without-extra-node]:after {\n --antd-wave-shadow-color: ",";\n }\n }\n"])),Ut.color.base.line,Ut.color.surface.neutral,Mt,Ut.brand.primary.default),yC=function(e){var n=e.className,o=r.__rest(e,["className"]);return l.default.createElement(t.Timeline,r.__assign({},o,{className:xe(we("\n // for reverse === true\n &.ant-timeline.ant-timeline-reverse\n > .ant-timeline-item\n > .ant-timeline-item-head-custom {\n top: 40px;\n margin-right: 50px;\n }\n\n &.ant-timeline.ant-timeline-reverse\n > .ant-timeline-item\n > .ant-timeline-item-tail {\n top: 40px;\n }\n\n &.ant-timeline.ant-timeline-reverse\n > .ant-timeline-item\n > .ant-timeline-item-content {\n margin-left: 45px;\n }\n\n // for reverse === false\n &.ant-timeline > .ant-timeline-item > .ant-timeline-item-head-custom {\n top: 40px;\n margin-right: 50px;\n }\n\n &.ant-timeline > .ant-timeline-item > .ant-timeline-item-tail {\n top: 40px;\n }\n\n &.ant-timeline > .ant-timeline-item > .ant-timeline-item-content {\n margin-left: 45px;\n }\n "),n)}))};yC.Item=t.Timeline.Item;var xC,wC,_C,SC,EC,kC,OC,CC,MC,TC=dt.div(xC||(xC=r.__makeTemplateObject(["\n background-color: ",";\n border-radius: 8px;\n display: flex;\n flex-direction: column;\n gap: 24px;\n padding: 12px;\n min-width: 200px;\n max-width: 260px;\n"],["\n background-color: ",";\n border-radius: 8px;\n display: flex;\n flex-direction: column;\n gap: 24px;\n padding: 12px;\n min-width: 200px;\n max-width: 260px;\n"])),Ut.color.surface.secondaryNeutral),AC=dt.div(wC||(wC=r.__makeTemplateObject(["\n display: flex;\n flex-direction: column;\n gap: 12px;\n color: ",";\n"],["\n display: flex;\n flex-direction: column;\n gap: 12px;\n color: ",";\n"])),Ut.color.base.onNeutral),PC=dt.div(_C||(_C=r.__makeTemplateObject(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n"],["\n display: flex;\n justify-content: space-between;\n align-items: center;\n"]))),RC=dt(YO)(SC||(SC=r.__makeTemplateObject(["\n text-decoration: none !important;\n"],["\n text-decoration: none !important;\n"]))),NC=dt.div(EC||(EC=r.__makeTemplateObject(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n"],["\n display: flex;\n justify-content: space-between;\n align-items: center;\n"]))),DC=dt.div(kC||(kC=r.__makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 4px;\n"],["\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 4px;\n"]))),IC=dt.span(OC||(OC=r.__makeTemplateObject(["\n width: 6px;\n height: 6px;\n border-radius: 50%;\n background-color: ",";\n"],["\n width: 6px;\n height: 6px;\n border-radius: 50%;\n background-color: ",";\n"])),function(e){return e.isActive?"".concat(Ut.color.base.primary3):"".concat(Ut.color.surface.disabledOnSurface)}),FC=dt(YO)(CC||(CC=r.__makeTemplateObject(["\n h5 {\n color: ",";\n }\n pointer-events: ",";\n"],["\n h5 {\n color: ",";\n }\n pointer-events: ",";\n"])),function(e){return e.isDisabled?"".concat(Ut.color.surface.disabledOnSurface):"".concat(Ut.color.base.link)},function(e){return e.isDisabled?"none":"auto"}),LC=dt.div(MC||(MC=r.__makeTemplateObject(["\n display: flex;\n gap: 8px;\n"],["\n display: flex;\n gap: 8px;\n"])));var jC,zC,BC,HC,VC=l.default.createContext({setModal:function(){return null},resetModal:function(){return null}}),$C=document.body,WC=function(t){var n=t.modal,o=e.useState(document.createElement("div"))[0];o.setAttribute("id","modal-root"),e.useEffect(function(){return $C.appendChild(o),function(){$C.removeChild(o)}},[o]);var i=l.default.createElement(We,{styles:Ve(jC||(jC=r.__makeTemplateObject(["\n body {\n overflow: hidden;\n }\n "],["\n body {\n overflow: hidden;\n }\n "])))});return u.default.createPortal(l.default.createElement(GC,{open:!!n},!!n&&i,n),o)},UC=Ge(zC||(zC=r.__makeTemplateObject(["\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n"],["\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n"]))),GC=dt.div(HC||(HC=r.__makeTemplateObject(["\n position: fixed;\n width: 100vw;\n height: 100%;\n background: rgba(0, 0, 0, 0.2);\n top: 0;\n left: 0;\n display: none;\n overflow: auto;\n z-index: 9; // bigger than nav bar z-index: 8\n ",";\n"],["\n position: fixed;\n width: 100vw;\n height: 100%;\n background: rgba(0, 0, 0, 0.2);\n top: 0;\n left: 0;\n display: none;\n overflow: auto;\n z-index: 9; // bigger than nav bar z-index: 8\n ",";\n"])),function(e){return e.open&&Ve(BC||(BC=r.__makeTemplateObject(["\n display: block;\n animation: "," 0.3s ease;\n "],["\n display: block;\n animation: "," 0.3s ease;\n "])),UC)});exports.AccessApiTwoTone=n.SvgAccessApiTwoTone,exports.AccountStatement=n.SvgAccountStatement,exports.Add=n.SvgAdd,exports.Api=n.SvgApi,exports.ApiDocsTwoTone=n.SvgApiDocsTwoTone,exports.ArrowDown=n.SvgArrowDown,exports.ArrowLeft=n.SvgArrowLeft,exports.ArrowRight=n.SvgArrowRight,exports.ArrowSwitch=n.SvgArrowSwitch,exports.ArrowUp=n.SvgArrowUp,exports.Authorize=n.SvgAuthorize,exports.Avatar=n.SvgAvatar,exports.AvatarFilled=n.SvgAvatarFilled,exports.Bank=n.SvgBank,exports.BankFilled=n.SvgBankFilled,exports.BankFilledBackground=n.SvgBankFilledBackground,exports.Bell=n.SvgBell,exports.BellFilled=n.SvgBellFilled,exports.BulletPointArrow=n.SvgBulletPointArrow,exports.Calendar=n.SvgCalendar,exports.Camera=n.SvgCamera,exports.CardFilled=n.CardFilled,exports.Company=n.SvgCompany,exports.CompanyComplexTwoTone=n.SvgCompanyComplexTwoTone,exports.CompanyTwoTone=n.SvgCompanyTwoTone,exports.Confirmation=n.SvgConfirmation,exports.CopyToClipboard=n.SvgCopyToClipboard,exports.CreditCard=n.SvgCreditCard,exports.Cross=n.SvgCross,exports.CrossMini=n.SvgCrossMini,exports.CustomerKnowledgeAssessment=n.SvgCustomerKnowledgeAssessment,exports.CustomerSupport=n.SvgCustomerSupport,exports.CustomerSupportTwoTone=n.SvgCustomerSupportTwoTone,exports.Delete=n.SvgDelete,exports.DepositTwoTone=n.SvgDepositTwoTone,exports.DeveloperTool=n.SvgDeveloperTool,exports.DeveloperToolTwoTone=n.SvgDeveloperToolTwoTone,exports.DirectMint=n.SvgDirectMint,exports.Document=n.SvgDocument,exports.DocumentFilled=n.SvgDocumentFilled,exports.Dots=n.SvgDots,exports.DownArrow=n.SvgDownArrow,exports.Download=n.SvgDownload,exports.Earn=n.SvgEarn,exports.Edit=n.SvgEdit,exports.Employee=n.SvgEmployee,exports.EmptyIcon=n.SvgEmptyIcon,exports.EmptyStateWithPattern=n.SvgEmptyStateWithPattern,exports.Expand=n.SvgExpand,exports.ExternalLink=n.SvgExternalLink,exports.Faq=n.SvgFaq,exports.FaqDialog=n.SvgFaqDialog,exports.FaqFilled=n.SvgFaqFilled,exports.File=n.SvgFile,exports.Filter=n.SvgFilter,exports.Flag=n.SvgFlag,exports.FlipHorizontal=n.SvgFlipHorizontal,exports.FlipVertical=n.SvgFlipVertical,exports.GenerateVA=n.GenerateVA,exports.HandShake=n.SvgHandShake,exports.HelpGuide=n.SvgHelpGuide,exports.Home=n.SvgHome,exports.Idea=n.SvgIdea,exports.Info=n.SvgInfo,exports.InfoFilled=n.SvgInfoFilled,exports.Invoice=n.SvgInvoice,exports.LockFilled=n.SvgLockFilled,exports.LockWithKeyHole=n.SvgLockWithKeyHole,exports.Login=n.SvgLogin,exports.Logout=n.SvgLogout,exports.LowFee=n.SvgLowFee,exports.Mail=n.SvgMail,exports.MemoCard=n.MemoCard,exports.MintSetupWallet=n.MintSetupWallet,exports.MintWallet=n.SvgMintWallet,exports.Minus=n.SvgMinus,exports.Mobile=n.SvgMobile,exports.More=n.SvgMore,exports.NavDashboard=n.SvgNavDashboard,exports.NavHamburger=n.SvgNavHamburger,exports.NavTransactions=n.SvgNavTransactions,exports.Notes=n.SvgNotes,exports.OneToOneXIDR=n.SvgOneToOneXIDR,exports.OneToOneXSGD=n.SvgOneToOneXSGD,exports.Outgoing=n.SvgOutgoing,exports.Passport=n.SvgPassport,exports.PaymentTwoTone=n.SvgPaymentTwoTone,exports.Payout=n.SvgPayout,exports.PenField=n.PenField,exports.Pending=n.SvgPending,exports.PersonalTwoTone=n.SvgPersonalTwoTone,exports.PiggyBank=n.SvgPiggyBank,exports.Reroll=n.SvgReroll,exports.Resend=n.SvgCallback,exports.Response=n.SvgResponse,exports.RotateLeft=n.SvgRotateLeft,exports.RotateRight=n.SvgRotateRight,exports.Scan=n.SvgScan,exports.Search=n.SvgSearch,exports.SendEmail=n.SvgSendEmail,exports.SendInvitation=n.SvgSendInvitation,exports.Settings=n.SvgSettings,exports.SettingsFilled=n.SvgSettingsFilled,exports.SignUpTwoTone=n.SvgSignUpTwoTone,exports.StateSuccessV2=n.StateSuccess,exports.StraitsXEarnExchange=n.SvgExchange,exports.StraitsXEarnFee=n.SvgFee,exports.StraitsXEarnWallet=n.SvgWallet$1,exports.StraitsXEarnWithdrawal=n.SvgWithdrawal,exports.Swap=n.SvgSwap,exports.Switch=n.SvgSwitch,exports.Thumbnail=n.SvgThumbnail,exports.ThumbnailTwoTone=n.SvgThumbnailTwoTone,exports.Tick=n.SvgTick,exports.Time=n.Time,exports.Tips=n.SvgTips,exports.Transaction=n.SvgTransaction,exports.TwoFA=n.TwoFA,exports.Unlink=n.SvgUnlink,exports.UpArrow=n.SvgUpArrow,exports.Upload=n.SvgUpload,exports.UsefulLinks=n.SvgUsefulLinks,exports.UsefulLinksTwoTone=n.SvgUsefulLinksTwoTone,exports.User=n.SvgUser,exports.VerifiedShield=n.SvgVerifiedShield,exports.VerifyIdentity=n.SvgVerifyIdentity,exports.VerifyPhone=n.SvgVerifyPhone,exports.Wallet=n.SvgWallet,exports.WalletFilled=n.SvgWalletFilled,exports.WarningFilled=n.SvgWarningFilled,exports.WithdrawalTwoTone=n.SvgWithdrawalTwoTone,exports.Alfamart=i.SvgAlfamart,exports.Alfamidi=i.SvgAlfamidi,exports.Anz=i.SvgAnz,exports.Arbitrum=i.Arbitrum,exports.Avalanche=i.Avalanche,exports.Base=i.Base,exports.Bca=i.SvgBca,exports.Bea=i.SvgBea,exports.Binance=i.SvgBinance,exports.Bitgo=i.SvgBitgo,exports.Bnbsmart=i.BnbSmart,exports.Bni=i.SvgBni,exports.Bnp=i.SvgBnp,exports.Boc=i.SvgBoc,exports.Bri=i.SvgBri,exports.Bsi=i.SvgBsi,exports.Bss=i.SvgBss,exports.Cimb=i.SvgCimb,exports.Citi=i.SvgCiti,exports.Coinhako=i.SvgCoinhako,exports.Coinut=i.SvgCoinut,exports.CrossLogo=i.SvgCrossLogo,exports.Crypto=i.SvgCrypto,exports.DanPlusDan=i.SvgDanPlusDan,exports.Dana=i.SvgDana,exports.Danamon=i.SvgDanamon,exports.DarkStraitsXLogo=i.SvgDarkStraitsXLogo,exports.DarkStraitsXUserInfoBarLogo=i.SvgDarkStraitsXUserInfoBarLogo,exports.Dbag=i.SvgDbag,exports.Dbs=i.SvgDbs,exports.Dextf=i.SvgDextf,exports.EarnPiggyBank=i.SvgEarnPiggyBank,exports.EmptyStraitsX=i.EmptyStraitsX,exports.Ethereum=i.SvgEthereum,exports.FaceScan=i.FaceScan,exports.Fazz=i.SvgFazzLogo,exports.Feb=i.SvgFeb,exports.Finblox=i.SvgFinblox,exports.Fireblocks=i.SvgFireblocks,exports.GoPay=i.SvgGoPay,exports.Gpn=i.SvgGpn,exports.Hana=i.SvgHana,exports.Hedera=i.SvgHedera,exports.Hlb=i.SvgHlb,exports.Hodlnaut=i.SvgHodlnaut,exports.Hsbc=i.SvgHsbc,exports.Icbc=i.SvgIcbc,exports.Icici=i.SvgIcici,exports.IdFlag=i.SvgIdFlag,exports.IdrLogo=i.SvgIdrLogo,exports.Indomaret=i.SvgIndomaret,exports.InfoLogo=i.SvgInfoLogo,exports.InterestCompoundedDaily=i.SvgInterestCompoundedDaily,exports.Jcb=i.SvgJcb,exports.Jpmc=i.SvgSmbc,exports.Jumio=i.SvgJumio,exports.Lawson=i.SvgLawson,exports.LedgerVault=i.SvgLedgerVault,exports.LevelDown=i.LevelDown,exports.LightStraitsXLogo=i.SvgLightStraitsXLogo,exports.LinkAja=i.SvgLinkAja,exports.Liquid=i.SvgLiquid,exports.Mandiri=i.SvgMandiri,exports.Mastercard=i.SvgMastercard,exports.Mbb=i.SvgMbb,exports.Miz=i.SvgMiz,exports.Mufg=i.SvgMufg,exports.MyInfoLogo=i.SvgMyInfoLogo,exports.NoFees=i.SvgNoFees,exports.NoLockInPeriod=i.SvgNoLockInPeriod,exports.NotesBell=i.NotesBell,exports.OVO=i.SvgOvo,exports.Ocbc=i.SvgOcbc,exports.OnchainCustodian=i.SvgOnchainCustodian,exports.Permata=i.SvgPermata,exports.Polygon=i.SvgPolygon,exports.Posb=i.SvgPosb,exports.QcpCapital=i.SvgQcpCapital,exports.Qris=i.SvgQris,exports.Rbs=i.SvgRbs,exports.Rhb=i.SvgRhb,exports.Ripple=i.Ripple,exports.Scb=i.SvgScb,exports.SendLogo=i.SvgSendLogo,exports.SgdLogo=i.SvgSgdLogo,exports.ShopeePay=i.SvgShopeePay,exports.Sifl=i.SvgSifl,exports.Smbc=i.SvgSmbc$1,exports.Solana=i.Solana,exports.Sparrow=i.SvgSparrow,exports.StateError=i.StateError,exports.StateSuccess=i.StateSuccess,exports.StraitsXBusinessAccountDarkLogo=i.SvgStraitsXBusinessAccountDarkLogo,exports.StraitsXBusinessAccountLightLogo=i.SvgStraitsXBusinessAccountLightLogo,exports.StraitsXLogo=i.SvgStraitsXLogo,exports.StraitsXMyInfo=i.SvgStraitsXMyInfo,exports.StraitsXPersonalAccountDarkLogo=i.SvgStraitsXPersonalAccountDarkLogo,exports.StraitsXPersonalAccountLightLogo=i.SvgStraitsXPersonalAccountLightLogo,exports.StraitsXSandboxLogo=i.SvgStraitsXSandboxLogo,exports.StraitsxSandboxLogo=i.SvgStraitsxSandboxLogo,exports.Target=i.Target,exports.ThreeDSecure=i.SvgThreedsecure,exports.ThreeDotsLogo=i.SvgThreeDotsLogo,exports.TickLogo=i.SvgTickLogo,exports.TokenizeXchange=i.SvgTokenizeXchange,exports.Tron=i.Tron,exports.Trwi=i.SvgTrwi,exports.Unagii=i.SvgUnagii,exports.Uniswap=i.SvgUniswap,exports.Uob=i.SvgUob,exports.UsFlag=i.SvgUsFlag,exports.UsdLogo=i.SvgUsdLogo,exports.UsdcLogo=i.SvgUsdcLogo,exports.UsdpLogo=i.SvgUsdpLogo,exports.UsdtLogo=i.SvgUsdtLogo,exports.VecDeposits=i.SvgVecDeposits,exports.VecDesktop=i.SvgVecDesktop,exports.VecEmpty=i.SvgVecEmpty,exports.VecEmptyPlain=i.SvgVecEmptyPlain,exports.VecEmptyPlainGreen=i.SvgVecEmptyPlainGreen,exports.VecMobile=i.SvgVecMobile,exports.VecRecipients=i.SvgVecRecipients,exports.VecThumbnailDoc=i.SvgVecThumbnailDoc,exports.Visa=i.SvgVisa,exports.WalletLogo=i.SvgWalletLogo,exports.XfersLogo=i.SvgXfersLogo,exports.XfersSandboxLogo=i.SvgXfersSandboxLogo,exports.XidrLogo=i.SvgXidrLogo,exports.XsgdLogo=i.SvgXsgdLogo,exports.XusdLogo=i.SvgXusdLogo,exports.Zillet=i.SvgZillet,exports.Zilliqa=i.SvgZilliqa,exports.Zilswap=i.SvgZilswap,exports.Accordion=function(t){var n=t.header,r=t.body,o=t.defaultOpen,i=void 0!==o&&o,a=t.headerHeightDesktop,s=void 0===a?95:a,c=t.headerHeightMobile,u=void 0===c?95:c,d=t.toggleText,p=t.onCloseToggleText,h=void 0===p?d:p,f=t.additionalHeaderItem,m=t.withBoxShadow,g=void 0!==m&&m,v=e.useState(i),b=v[0],y=v[1];return l.default.createElement(Gn,{open:b,headerHeightDesktop:s,headerHeightMobile:u,withBoxShadow:g},l.default.createElement(Yn,{onClick:function(){return y(function(e){return!e})},headerHeightDesktop:s,headerHeightMobile:u},l.default.createElement(Xn,null,n,l.default.createElement(Zn,null,d&&l.default.createElement(qn,null,b?h:d),l.default.createElement(Kn,{open:b}))),f&&l.default.createElement(l.default.Fragment,null,f)),l.default.createElement(Un,null),l.default.createElement("div",null,r))},exports.ActionButton=function(e){var t=e.icon,n=e.type,o=e.disabled,i=r.__rest(e,["icon","type","disabled"]),a=en(),s=a.brand,c=a.actionButton,u="\n cursor: auto;\n pointer-events: none;\n opacity: ".concat(s.action.disabledOpacity,";\n "),d="\n color: ".concat(c.color,";\n\n &:focus {\n color: ").concat(c.color,";\n }\n\n &:hover {\n color: ").concat(c.hover,";\n }\n\n &:active {\n color: ").concat(c.color,";\n }\n "),p="\n color: ".concat(s.action.default,";\n\n &:focus {\n color: ").concat(s.action.default,";\n }\n\n &:hover {\n color: ").concat(s.action.hover,";\n }\n\n &:active {\n color: ").concat(s.action.default,";\n }\n "),h=dt(dn)(Kt||(Kt=r.__makeTemplateObject(["\n &.ant-btn {\n "," & > svg {\n "," vertical-align: middle;\n font-size: 1.4em;\n margin: 0;\n }\n }\n "],["\n &.ant-btn {\n "," & > svg {\n "," vertical-align: middle;\n font-size: 1.4em;\n margin: 0;\n }\n }\n "])),!0===o&&u,"primary"===n?p:d);return l.default.createElement(h,r.__assign({type:"secondary",size:"small"},i),l.default.createElement(function(){return l.default.cloneElement(t,{width:17,height:17})},null))},exports.ActionCard=function(e){var t=e.children,n=e.title,o=e.footer,i=en(),a=i.spacing,s=i.neutral,c=i.layout,u=dt(Fn)(kn||(kn=r.__makeTemplateObject(["\n border-style: none;\n\n & > div.ant-card-body {\n position: fixed;\n z-index: 1;\n width: 100%;\n bottom: 0;\n right: 0;\n background: ",";\n border-top: 1px solid ",";\n "," border-radius: 5px;\n }\n "," {\n margin: ",";\n border-style: solid;\n & > div.ant-card-body {\n position: static;\n z-index: auto;\n width: auto;\n }\n }\n "],["\n border-style: none;\n\n & > div.ant-card-body {\n position: fixed;\n z-index: 1;\n width: 100%;\n bottom: 0;\n right: 0;\n background: ",";\n border-top: 1px solid ",";\n "," border-radius: 5px;\n }\n "," {\n margin: ",";\n border-style: solid;\n & > div.ant-card-body {\n position: static;\n z-index: auto;\n width: auto;\n }\n }\n "])),s.white,s.border,!o&&"display: none;",Et,c.desktop),d=dt.div(On||(On=r.__makeTemplateObject(["\n min-height: calc(100vh - 100px);\n padding: ",";\n "," {\n padding: ",";\n min-height: unset;\n }\n "],["\n min-height: calc(100vh - 100px);\n padding: ",";\n "," {\n padding: ",";\n min-height: unset;\n }\n "])),c.mobile,Et,a.md),p=dt.div(Cn||(Cn=r.__makeTemplateObject(["\n display: flex;\n justify-content: flex-start;\n align-items: center;\n\n & > .badge-icon {\n margin-right: ",";\n }\n "],["\n display: flex;\n justify-content: flex-start;\n align-items: center;\n\n & > .badge-icon {\n margin-right: ",";\n }\n "])),a.sm),h=dt.div(Mn||(Mn=r.__makeTemplateObject(["\n display: flex;\n justify-content: flex-end;\n\n & > button[type='button'],\n button[type='submit'] {\n margin-left: ",";\n }\n\n & > button[type='button']:last-child,\n button[type='submit']:last-child {\n margin-right: ",";\n }\n "],["\n display: flex;\n justify-content: flex-end;\n\n & > button[type='button'],\n button[type='submit'] {\n margin-left: ",";\n }\n\n & > button[type='button']:last-child,\n button[type='submit']:last-child {\n margin-right: ",";\n }\n "])),a.sm,a.md);return l.default.createElement(u,{title:l.default.createElement(d,null,l.default.createElement(p,null,n),l.default.createElement(Un,{spacing:"lg"}),l.default.createElement(Bn,null,t))},l.default.createElement(h,null,o))},exports.Alert=function(t){var r,o=t.type,i=t.message,a=t.closable,s=t.icon,c=t.showIcon,u=t.onClose,d=t.title,p=e.useState(!0),h=p[0],f=p[1];return h?l.default.createElement(wt,{type:o||"warning",message:l.default.createElement(function(){var e="info"===o?ue.DEFAULT:ie.DEFAULT;return l.default.createElement(_t,null,d&&l.default.createElement(Oe.Label,{color:e,size:"md"},d),l.default.createElement(Oe.Body,{color:e,size:"md"},i))},null),closable:a,icon:(r=s?l.default.cloneElement(s,{width:20,height:20}):l.default.createElement(n.SvgBell,{width:20,height:20}),l.default.createElement(St,null,r)),showIcon:c,onClose:function(){f(!1),u&&u()},closeIcon:l.default.createElement(function(){return l.default.createElement(n.SvgCross,{width:14,height:14})},null)}):null},exports.AntdConfigProvider=function(e){var n=e.children;return l.default.createElement(t.ConfigProvider,{theme:{token:{colorPrimary:"#1890ff",borderRadius:2},components:{Button:{borderRadius:2}}}},n)},exports.BadgeIcon=function(e){var t=e.icon,n=e.type,o=void 0===n?"default":n,i=e.iconWidth,a=void 0===i?18:i,s=r.__rest(e,["icon","type","iconWidth"]),c=en(),u=c.brand,d=c.neutral,p=c.success,h=c.warning,f=c.error,m="\n color: ".concat(d.text,";\n background: ").concat(d.background,";\n "),g="\n color: ".concat(u.primary.default,";\n background: ").concat(u.primary.background,";\n "),v="\n color: ".concat(p.border,";\n background: ").concat(p.background,";\n "),b="\n color: ".concat(h.border,";\n background: ").concat(h.background,";\n "),y="\n color: ".concat(f.border,";\n background: ").concat(f.background,";\n "),x=dt.span(In||(In=r.__makeTemplateObject(["\n line-height: 0.75;\n padding: 10px;\n border-radius: 50%;\n display: flex;\n align-items: center;\n justify-content: center;\n ",";\n "],["\n line-height: 0.75;\n padding: 10px;\n border-radius: 50%;\n display: flex;\n align-items: center;\n justify-content: center;\n ",";\n "])),function(){switch(o){case"default":default:return m;case"primary":return g;case"success":return v;case"warning":return b;case"error":return y}}());return l.default.createElement(x,r.__assign({className:"badge-icon"},s),l.default.createElement(function(){return l.default.cloneElement(t,{width:a,height:a})},null))},exports.Banner=function(e){var t=e.withIcon,o=void 0!==t&&t,i=e.children,a=e.type,s=void 0===a?"primary":a,c=r.__rest(e,["withIcon","children","type"]),u=en(),d=u.brand,p=u.spacing,h="\n color: ".concat(Ut.color.base.primary,";\n background: ").concat(d.primary.background,";\n "),f="\n color: ".concat(Ut.color.status.positive,";\n background: ").concat(Ut.color.surface.subduePositive,";\n "),m="\n color: ".concat(Ut.color.status.warning,";\n background: ").concat(Ut.color.surface.subdueWarning,";\n "),g="\n color: ".concat(Ut.color.status.critical,";\n background: ").concat(Ut.color.surface.subdueCritical,";\n "),v="\n color: ".concat(Ut.color.base.onNeutral,"};\n background: ").concat(Ut.color.surface.SubdueInfo,";\n "),b=dt.div(PO||(PO=r.__makeTemplateObject(["\n padding: ",";\n border-radius: 5px;\n display: flex;\n vertical-align: middle;\n "," ol {\n padding-left: 20px;\n margin: 0;\n\n > li {\n margin-bottom: 5px;\n }\n }\n "],["\n padding: ",";\n border-radius: 5px;\n display: flex;\n vertical-align: middle;\n "," ol {\n padding-left: 20px;\n margin: 0;\n\n > li {\n margin-bottom: 5px;\n }\n }\n "])),p.sm,function(){switch(s){case"primary":default:return h;case"success":return f;case"warning":return m;case"error":return g;case"notification":return v}}()),y=we(RO||(RO=r.__makeTemplateObject(["\n display: block;\n margin: 1px 6px auto 0;\n "],["\n display: block;\n margin: 1px 6px auto 0;\n "])));return l.default.createElement(b,r.__assign({},c),o&&("primary"===s?l.default.createElement(n.SvgInfoFilled,{style:{minHeight:"18px",minWidth:"18px"},color:d.primary.emphasis,className:xe(y)}):"success"===s?l.default.createElement(n.SvgTick,{style:{minHeight:"18px",minWidth:"18px"},color:Ut.color.status.positive,className:xe(y)}):"warning"===s?l.default.createElement(n.SvgWarningFilled,{style:{minHeight:"18px",minWidth:"18px"},color:Ut.color.status.warning,className:xe(y)}):"error"===s?l.default.createElement(n.SvgCrossMini,{style:{minHeight:"18px",minWidth:"18px"},color:Ut.color.status.critical,className:xe(y)}):"notification"===s?l.default.createElement(n.SvgInfoFilled,{style:{minHeight:"18px",minWidth:"18px"},color:Ut.color.status.info,className:xe(y)}):l.default.createElement(l.default.Fragment,null)),l.default.createElement(Oe.Body,{size:"md"},i))},exports.Button=dn,exports.Card=Fn,exports.Carousel=function(e){var n=e.children,o=e.activeKey,i=e.width,a=void 0===i?250:i,s=r.__rest(e,["children","activeKey","width"]),c=en().brand,u=n.map(function(e,n){return l.default.createElement(t.Tabs.TabPane,{key:n,forceRender:!0},e)}),d=n.map(function(e,t){return l.default.createElement(fu,{key:t,isActive:t===o,activeColor:c.primary.default})});return l.default.createElement(du,null,l.default.createElement(pu,r.__assign({renderTabBar:function(){return l.default.createElement("div",null)},width:a,activeKey:o.toString(),animated:!0},s),u),l.default.createElement(hu,null,d))},exports.Chart=function(t){var n=t.xValues,o=t.yValues,i=t.dataPrefix,a=t.dataPostfix,s=t.straitsXStyle,c=t.height,u=void 0===c?40:c,d=e.useRef(null),p=e.useState({datasets:[]}),h=p[0],f=p[1],m={labels:n,datasets:[{data:o}]},g=i||"",v=a||"";e.useEffect(function(){var e=d.current;if(e){var t=e.ctx,n=t.createLinearGradient(0,0,0,280);n.addColorStop(.3,"rgba(47, 141, 238, 0.08)"),n.addColorStop(.6,"rgba(47, 141, 238, 0.0002)"),n.addColorStop(1,"rgba(47, 141, 238, 0");var o=t.createLinearGradient(0,0,0,280);o.addColorStop(0,"rgba(0, 211, 126, 0.2)"),o.addColorStop(.1,"rgba(0, 211, 126, 0.1)"),o.addColorStop(1,"rgba(0, 211, 126, 0)");var i=r.__assign(r.__assign({},m),{datasets:m.datasets.map(function(e){return r.__assign(r.__assign({},e),{backgroundColor:s?o:n,fill:!0,borderColor:s?"#00D37E":"#2E8DEE",pointRadius:0})})});f(i)}},[s,n,o]);var b={maintainAspectRatio:!1,plugins:{legend:{display:!1,labels:{font:{family:"'Inter', 'Arial', sans-serif"}}},tooltip:{intersect:!1,padding:15,displayColors:!1,borderColor:"rgba(0, 211, 126, 1)",borderWidth:s?1:0,backgroundColor:s?"#ffffff":"#000000",titleColor:s?"#1B2736":"#fff",bodyColor:s?"#1B2736":"#fff",titleAlign:"center",bodyAlign:"center",titleFont:{size:14},bodyFont:{size:14},callbacks:{title:function(e){return s?"".concat(g).concat(e[0].parsed.y).concat(v):e[0].label},label:function(e){return s?e.label:"".concat(g).concat(e.parsed.y).concat(v)}}}},scales:{x:{ticks:{color:s?"#1B2736":"rgba(0, 0, 0, 0.4)",font:{weight:"500",size:13}},grid:{display:!1}},y:{ticks:{beginAtZero:!0,padding:18,maxTicksLimit:3,color:s?"#1B2736":"rgba(0, 0, 0, 0.4)",callback:function(e){return"".concat(g).concat(e).concat(v)}},grid:{display:!1,drawBorder:!1}}}};return l.default.createElement("div",{style:{position:"relative",height:"".concat(u,"vh"),width:"99%"}},l.default.createElement(iu,{id:"chart",ref:d,type:"line",data:h,options:b}))},exports.Checkbox=VO,exports.Coachmark=function(e){var t=e.index,n=e.primaryProps,r=e.size,o=e.skipProps,i=e.step,a=e.tooltipProps,s=e.backProps,c=i.title,u=i.content,d=i.data;return l.default.createElement(TC,{role:a.role},l.default.createElement(AC,null,l.default.createElement(PC,null,l.default.createElement(Oe.Label,{size:"md"},c),l.default.createElement(RC,{role:o.role,onClick:o.onClick},l.default.createElement(yE,{icon:"close",size:"m"}))),l.default.createElement(Oe.Body,{size:"md"},u)),l.default.createElement(NC,null,l.default.createElement(DC,null,Array.from({length:r},function(e,n){return 0===t&&!0===(null==d?void 0:d.skipZeroIndex)?l.default.createElement(l.default.Fragment,null):l.default.createElement(IC,{key:n,isActive:n===t})})),l.default.createElement(LC,null,s&&l.default.createElement(FC,{typographyType:"label",size:"md",role:null==s?void 0:s.role,isDisabled:0===t,onClick:s.onClick,isUnderlined:!1},"Back"),l.default.createElement(YO,{typographyType:"label",size:"md",role:n.role,onClick:n.onClick,isUnderlined:!1},"Next"))))},exports.ContentBreakdown=function(e){var t=e.title,n=e.children,o=en(),i=o.spacing,a=o.neutral,s=dt.div(MO||(MO=r.__makeTemplateObject(["\n margin-top: ",";\n padding: ",";\n background: ",";\n\n & > ul {\n margin: 0;\n padding: 0;\n list-style-position: inside;\n }\n "],["\n margin-top: ",";\n padding: ",";\n background: ",";\n\n & > ul {\n margin: 0;\n padding: 0;\n list-style-position: inside;\n }\n "])),i.sm,i.md,a.background);return l.default.createElement(s,null,l.default.createElement(Hn,{style:{marginBottom:i.sm}},t),n)},exports.CopyBox=function(e){var t=e.value,r=e.allowCopy,o=void 0===r||r,i=e.valueToCopy,a=void 0===i?t:i,s=e.isBankAddress,c=void 0!==s&&s,u=e.showCopyIcon,d=void 0===u||u,p=e.icon,h=e.iconSize,f=e.labelText,m=e.labelTooltip,g=e.helperText,v=e.helperTextType,b=e.onButtonClick;return l.default.createElement(dC,null,l.default.createElement(pC,null,f&&l.default.createElement(Oe.Body,{size:"md",color:Ut.color.base.onNeutral},f),m&&l.default.createElement(hC,null,m)),l.default.createElement(mC,null,l.default.createElement(gC,null,p&&l.default.createElement(fC,{iconSize:h},p),l.default.createElement(Oe.Body,{size:"lg"},l.default.createElement(vC,{isBankAddress:c},t))),o&&l.default.createElement(bC,{onClick:function(){void 0!==b&&b(),uC(a)}},d?l.default.createElement(n.SvgCopyToClipboard,null):l.default.createElement(Oe.Label,{size:"md",color:Ut.brand.primary.default},"Copy"))),g&&l.default.createElement(Oe.Body,{size:"sm",color:"error"===v?Ut.color.status.critical:Ut.color.base.onNeutralSecondary},g))},exports.DESKTOP_BREAKPOINT=Et,exports.DatePicker=function(e){var n=e.disabled,o=void 0!==n&&n,i=e.label,a=e.required,s=void 0!==a&&a,c=e.optional,u=void 0!==c&&c,d=e.size,p=void 0===d?"large":d,h=e.error,f=void 0!==h&&h,m=e.helperText,g=e.showInfoIcon,v=e.onInfoClick,b=r.__rest(e,["disabled","label","required","optional","size","error","helperText","showInfoIcon","onInfoClick"]),y=en(),x=hn[p],w=x.height,_=x.borderRadius,S=x.padding,E=f?y.color.status.critical:y.color.base.line,k="\n -webkit-font-smoothing: antialiased;\n height: ".concat(w," !important;\n width: 100% !important;\n\n ").concat(o?"\n pointer-events: none !important;\n ":"","\n\n &.ant-picker {\n border-radius: ").concat(_," !important;\n border-color: ").concat(E," !important;\n padding: ").concat(S," !important;\n transition: 0.3s all ease !important;\n\n &:hover {\n border-color: ").concat(y.color.base.primary2," !important;\n }\n\n &.ant-picker-focused {\n border-color: ").concat(y.color.base.primary2," !important;\n box-shadow: none !important;\n -webkit-box-shadow: none !important;\n }\n }\n\n &.ant-picker > .ant-picker-input {\n font-family: ").concat(pn," !important;\n font-style: normal !important;\n font-weight: normal !important;\n font-size: 14px !important;\n line-height: 22px !important;\n color: ").concat(y.color.base.onNeutral," !important;\n\n & .ant-picker-input > input !important;\n font-size: 14px !important;\n color: ").concat(y.color.base.onNeutral," !important;\n\n & .ant-picker-input > input::placeholder !important;\n font-size: 14px !important;\n color: ").concat(y.color.component.placeholderInput," !important;\n\n &.ant-picker.ant-picker-disabled !important;\n background: ").concat(y.color.surface.disabledSurface," !important;\n border: 1px solid ").concat(y.color.base.line," !important;\n\n & .ant-picker-input > input[disabled] !important;\n color: ").concat(y.color.base.onNeutral," !important;\n -webkit-text-fill-color: ").concat(y.color.base.onNeutral," !important;\n }\n\n & .ant-picker-cell-in-view{\n &.ant-picker-cell-today .ant-picker-cell-inner{\n &:before {\n border-color: ").concat(y.color.base.primary2," !important;\n }\n }\n\n &ant-picker-cell-range-end .ant-picker-cell-inner,\n &ant-picker-cell-range-start .ant-picker-cell-inner,\n &ant-picker-cell-selected .ant-picker-cell-inner {\n background: ").concat(y.color.base.primary2," !important;\n }\n }\n "),O="\n .ant-picker-cell-in-view.ant-picker-cell-selected .ant-picker-cell-inner{\n background-color: ".concat(y.color.base.primary2," !important;\n }\n "),C=l.default.createElement(yE,{icon:"date_range",size:"m",color:y.color.base.onNeutral});return l.default.createElement("div",null,l.default.createElement(fk,{label:i,required:s,optional:u,showInfoIcon:g,onInfoClick:v}),l.default.createElement(t.DatePicker,r.__assign({className:"".concat(we(k)),popupClassName:we(O),disabled:o,suffixIcon:C,format:"DD-MM-YYYY"},b)),l.default.createElement(hk,{text:m,error:f}))},exports.DeprecatedModal=function(t){var o=en().neutral,i=e.useState(document.createElement("div"))[0];return e.useEffect(function(){return tO.appendChild(i),function(){tO.removeChild(i)}},[i]),u.default.createPortal(l.default.createElement(rO,{open:t.open},t.open&&l.default.createElement(We,{styles:Ve(Tk||(Tk=r.__makeTemplateObject(["\n body {\n overflow: hidden;\n position: fixed;\n }\n "],["\n body {\n overflow: hidden;\n position: fixed;\n }\n "])))}),l.default.createElement("div",{className:"".concat(we(Ak||(Ak=r.__makeTemplateObject(["\n width: calc(100% - 32px);\n max-width: 400px;\n background: white;\n box-shadow: 0px 4px 10px rgba(170, 170, 170, 0.25);\n border-radius: 5px;\n overflow: hidden;\n -webkit-font-smoothing: antialiased;\n margin-bottom: 1.7vh;\n position: absolute;\n top: 6.8vh;\n left: 50%;\n transform: translateX(-50%);\n "],["\n width: calc(100% - 32px);\n max-width: 400px;\n background: white;\n box-shadow: 0px 4px 10px rgba(170, 170, 170, 0.25);\n border-radius: 5px;\n overflow: hidden;\n -webkit-font-smoothing: antialiased;\n margin-bottom: 1.7vh;\n position: absolute;\n top: 6.8vh;\n left: 50%;\n transform: translateX(-50%);\n "])))," ").concat(t.modalClassName)},l.default.createElement(oO,{hasIcon:Boolean(t.icon)},l.default.createElement(sO,null,l.default.createElement(lO,null,t.icon,l.default.createElement(jn,null,t.title)),!t.disabledCloseIcon&&l.default.createElement(cO,{onClick:function(){return t.onClose()}},l.default.createElement(n.SvgCross,{color:o.text,width:18}))),l.default.createElement(Un,null)),l.default.createElement(iO,null,t.children),l.default.createElement(aO,null,t.footer))),i)},exports.Divider=Un,exports.Dropdown=function(n){var o=n.menu,i=n.children,a=n.type,s=void 0===a?"default":a,c=n.placement,u=void 0===c?"bottomLeft":c,d=n.className,p=void 0===d?"":d,h=n.trigger,f=void 0===h?["click"]:h,m=n.disabled,g=void 0!==m&&m,v=r.__rest(n,["menu","children","type","placement","className","trigger","disabled"]),b=en(),y=b.brand,x=b.spacing,w="\n background-color: ".concat(y.action.default,";\n color: ").concat(y.primary.contrast,";\n border: 1px solid ").concat(y.primary.contrast,";\n\n &:focus {\n background-color: ").concat(y.action.default,";\n color: ").concat(y.primary.contrast,";\n border: 1px solid ").concat(y.primary.contrast,";\n }\n\n &:active {\n background-color: ").concat(y.action.default,";\n color: ").concat(y.primary.contrast,";\n border: 1px solid ").concat(y.primary.contrast,";\n }\n\n &:hover {\n background-color: ").concat(y.action.hover,";\n color: ").concat(y.primary.contrast,";\n border: 1px solid ").concat(y.primary.contrast,";\n }\n "),_="\n cursor: auto;\n pointer-events: none;\n opacity: ".concat(y.action.disabledOpacity,";\n "),S=dt(t.Dropdown.Button)(uu||(uu=r.__makeTemplateObject(["\n &.ant-btn-group > .ant-btn:first-child:not(:last-child) {\n text-shadow: none;\n -webkit-font-smoothing: antialiased;\n border-top-left-radius: 5px;\n border-bottom-left-radius: 5px;\n height: unset;\n box-shadow: none;\n line-height: 0.75;\n ",";\n ",";\n ",";\n ","\n padding: ",";\n }\n\n &.ant-btn-group > .ant-btn:last-child:not(:first-child) {\n text-shadow: none;\n -webkit-font-smoothing: antialiased;\n border-top-right-radius: 5px;\n border-bottom-right-radius: 5px;\n height: 44px;\n min-width: 45px;\n line-height: 0.75;\n box-shadow: none;\n ",";\n ",";\n ",";\n ","\n padding: ",";\n }\n "],["\n &.ant-btn-group > .ant-btn:first-child:not(:last-child) {\n text-shadow: none;\n -webkit-font-smoothing: antialiased;\n border-top-left-radius: 5px;\n border-bottom-left-radius: 5px;\n height: unset;\n box-shadow: none;\n line-height: 0.75;\n ",";\n ",";\n ",";\n ","\n padding: ",";\n }\n\n &.ant-btn-group > .ant-btn:last-child:not(:first-child) {\n text-shadow: none;\n -webkit-font-smoothing: antialiased;\n border-top-right-radius: 5px;\n border-bottom-right-radius: 5px;\n height: 44px;\n min-width: 45px;\n line-height: 0.75;\n box-shadow: none;\n ",";\n ",";\n ",";\n ","\n padding: ",";\n }\n "])),Mt,Dt,w,!0===g&&_,x.md,Mt,Dt,w,!0===g&&_,x.sm);if("split"===s)return l.default.createElement(S,r.__assign({className:p,menu:o,placement:u,trigger:f},v),i);var E=e.useRef(null);return e.useEffect(function(){var e=function(e){e.cancelable&&e.preventDefault()},t=E.current;return t&&t.addEventListener("touchmove",e,{passive:!0}),function(){t&&t.removeEventListener("touchmove",e)}},[]),l.default.createElement(t.Dropdown,r.__assign({menu:o,placement:u,trigger:f},v),l.default.createElement("div",{ref:E},i))},exports.DynamicSelect=nk,exports.EXTRA_LARGE_DESKTOP_BREAKPOINT="@media (min-width: 1200px)",exports.EmptyData=function(e){var r=e.title,o=void 0===r?"No results found":r,i=e.subtitle,a=e.info,s=e.svgUniqueId,c=void 0===s?"randomString":s;return l.default.createElement($O,null,l.default.createElement(t.Empty,{image:l.default.createElement(n.SvgEmptyIcon,{id:c,height:80,width:130}),imageStyle:{marginBottom:10,display:"block",margin:"auto"},description:!1}),o&&l.default.createElement(WO,null,o),i&&l.default.createElement(UO,null,i),a&&l.default.createElement(GO,null,a))},exports.ErrorPage=function(e){var t=e.title,n=e.subtitle,o=e.content,i=e.fallbackContent,a=e.backgroundColor,s=en(),c=s.neutral,u=s.text,d=dt.div(rC||(rC=r.__makeTemplateObject(["\n font-family: ",";\n font-weight: 800;\n color: ",";\n font-size: 100px;\n margin-bottom: 20px;\n "],["\n font-family: ",";\n font-weight: 800;\n color: ",";\n font-size: 100px;\n margin-bottom: 20px;\n "])),kt,c.bluish),p=dt.div(oC||(oC=r.__makeTemplateObject(["\n font-family: ",";\n display: flex;\n flex-direction: column;\n align-items: center;\n padding-top: 60px;\n "," {\n background-color: ",";\n }\n "],["\n font-family: ",";\n display: flex;\n flex-direction: column;\n align-items: center;\n padding-top: 60px;\n "," {\n background-color: ",";\n }\n "])),kt,Et,function(e){return e.backgroundColor||c.background}),h=dt.div(iC||(iC=r.__makeTemplateObject(["\n font-family: ",";\n font-style: normal;\n text-align: center;\n color: ",";\n margin-bottom: 5px;\n word-break: break-word;\n ",";\n "],["\n font-family: ",";\n font-style: normal;\n text-align: center;\n color: ",";\n margin-bottom: 5px;\n word-break: break-word;\n ",";\n "])),kt,u.default,Tt),f=dt.div(aC||(aC=r.__makeTemplateObject(["\n text-align: center;\n color: ",";\n flex: none;\n order: 0;\n align-self: center;\n margin-bottom: 20px;\n ",";\n "],["\n text-align: center;\n color: ",";\n flex: none;\n order: 0;\n align-self: center;\n margin-bottom: 20px;\n ",";\n "])),u.default,Rt);return l.default.createElement(p,{backgroundColor:a},l.default.createElement(d,null,t),l.default.createElement(h,null,n),l.default.createElement(f,null,o),i)},exports.FALLBACK_FONT="Inter",exports.Form=dk,exports.H1=Ln,exports.H2=jn,exports.H3=zn,exports.H4=$n,exports.Hidden=hO,exports.Input=vk,exports.InputWithButton=function(e){var t=e.buttonText,n=e.onButtonClick,r=e.prefix,o=e.placeholder,i=e.value,a=e.defaultValue,s=e.onChange,c=e.disabled,u=void 0!==c&&c,d=e.disabledInput,p=void 0!==d&&d,h=e.disabledPrefix,f=void 0!==h&&h,m=e.staticPrefix,g=void 0!==m&&m,v=e.error,b=void 0!==v&&v,y=e.className,x=en(),w=u||p,_=u||f,S=b?x.color.status.critical:x.color.base.line,E=x.color.base.line;return l.default.createElement(Wk,{className:y},r&&l.default.createElement(Uk,{borderColor:E,bgColor:_?x.color.surface.disabledSurface:g?x.color.surface.secondaryNeutral:x.color.surface.neutral,hoverBgColor:_?x.color.surface.disabledSurface:x.color.interactive.hoverSurface,textColor:_?x.color.surface.disabledOnSurface:x.color.base.onNeutral,isDisabled:_},r),l.default.createElement(Gk,{type:"text",placeholder:o,value:i,defaultValue:a,onChange:s,disabled:w,borderColor:S,focusBorderColor:x.color.base.primary2,textColor:x.color.base.onNeutral,placeholderColor:x.color.component.placeholderInput,disabledBgColor:x.color.surface.disabledSurface,disabledTextColor:x.color.surface.disabledOnSurface,hasPrefix:!!r,isDisabled:w}),l.default.createElement(Yk,{type:"button",onClick:n,disabled:u||b,bgColor:x.color.base.primary,disabledBgColor:x.color.surface.disabledSurface,textColor:x.color.base.onNeutral,disabledTextColor:x.color.surface.disabledOnSurface,isDisabled:u||b},t))},exports.LAPTOP_BREAKPOINT="@media (min-width: 768px)",exports.Link=YO,exports.MAIN_FONT=pn,exports.MaterialSymbols=yE,exports.Modal=function(e){var t=e.onClose,r=e.icon,o=e.title,i=e.children,a=e.footer,s=e.disabledCloseIcon,c=e.className,u=en().neutral;return l.default.createElement(eO,{className:c},(r||o||!s)&&l.default.createElement(Xk,{hasIcon:Boolean(r)},l.default.createElement(Zk,null,l.default.createElement(Qk,null,r,l.default.createElement(jn,null,o||"")),!s&&l.default.createElement(Jk,{onClick:function(){return t()}},l.default.createElement(n.SvgCross,{color:u.text,width:18}))),l.default.createElement(Un,null)),l.default.createElement(qk,null,i),a&&l.default.createElement(Kk,null,a))},exports.ModalProvider=function(t){var n=t.children,r=e.useState(),o=r[0],i=r[1],a=e.useCallback(function(){i(void 0)},[i]);return l.default.createElement(VC.Provider,{value:{resetModal:a,setModal:i}},n,l.default.createElement(WC,{modal:o}))},exports.Note=function(e){var t=e.title,n=e.children,o=Array.isArray(n)&&n.length>1,i=dt.div(TO||(TO=r.__makeTemplateObject(["\n width: 100%;\n background: ",";\n padding: 4px;\n border-radius: 8px;\n "],["\n width: 100%;\n background: ",";\n padding: 4px;\n border-radius: 8px;\n "])),Ut.color.surface.subduePositive),a=dt.div(AO||(AO=r.__makeTemplateObject(["\n position: relative;\n ::before {\n content: '';\n height: 100%;\n width: 5px;\n background: ",";\n border-radius: 5px;\n position: absolute;\n left: 0;\n }\n display: flex;\n flex-direction: column;\n justify-content: center;\n padding: 5px 0 5px 15px;\n gap: ",";\n "],["\n position: relative;\n ::before {\n content: '';\n height: 100%;\n width: 5px;\n background: ",";\n border-radius: 5px;\n position: absolute;\n left: 0;\n }\n display: flex;\n flex-direction: column;\n justify-content: center;\n padding: 5px 0 5px 15px;\n gap: ",";\n "])),Ut.color.status.positive,t?"5px":"0px");return l.default.createElement(i,null,l.default.createElement(a,null,l.default.createElement(Oe.Label,{size:"md"},t),o?l.default.createElement(Oe.Body,{size:"md",style:{scrollbarWidth:"none"}},l.default.createElement("ol",{style:{margin:0,paddingLeft:"20px"}},n.map(function(e,t){return l.default.createElement("li",{key:t},e)}))):l.default.createElement(Oe.Body,{size:"md",style:{scrollbarWidth:"none"}},n)))},exports.P1=Bn,exports.P1Bold=Hn,exports.Pagination=function(e){var n=e.current,r=e.pageSize,o=e.total,i=e.onChange,a=e.showSizeChanger,s=e.onShowSizeChange,c=e.pageSizeOptions,u="\n -webkit-font-smoothing: antialiased;\n\n & > .ant-pagination-prev {\n height: 36px;\n line-height: 36px;\n min-width: 36px;\n margin-right: 5px;\n }\n\n & > .ant-pagination-prev .ant-pagination-item-link {\n border-radius: 5px;\n border: 1px solid ".concat(exports.NEUTRAL_COLORS.G200,";\n }\n\n & > .ant-pagination-item {\n height: 36px;\n line-height: 36px;\n min-width: 36px;\n font-family: ").concat(pn,";\n border-radius: 5px;\n border: 1px solid ").concat(exports.NEUTRAL_COLORS.G200,";\n margin-right: 5px;\n transition: 0.3s all;\n }\n\n & > .ant-pagination-item-active {\n border-color: ").concat(exports.MAIN_COLORS.PRIMARY_BLUE,";\n }\n\n & > .ant-pagination-next {\n height: 36px;\n line-height: 36px;\n min-width: 36px;\n margin-right: 5px;\n }\n\n & > .ant-pagination-next .ant-pagination-item-link {\n border-radius: 5px;\n }\n ");return l.default.createElement(t.Pagination,{className:"".concat(we(u)),current:n,pageSize:r,total:o,onChange:i,showSizeChanger:a,onShowSizeChange:s,pageSizeOptions:c})},exports.Radio=uO,exports.RangePicker=function(e){var n=e.format,o=void 0===n?"DD-MM-YYYY":n,i=e.size,a=void 0===i?"large":i,s=r.__rest(e,["format","size"]),c=en(),u=hn[a],d=u.height,p=u.borderRadius,h=u.padding,f="\n -webkit-font-smoothing: antialiased;\n height: ".concat(d," !important;\n\n &.ant-picker {\n border-radius: ").concat(p," !important;\n border-color: ").concat(c.color.base.line," !important;\n padding: ").concat(h," !important;\n transition: 0.3s all ease !important;\n\n &:hover {\n border-color: ").concat(c.color.base.primary2," !important;\n }\n\n &.ant-picker-focused {\n border-color: ").concat(c.color.base.primary2," !important;\n box-shadow: none !important;\n -webkit-box-shadow: none !important;\n }\n\n .ant-picker-active-bar {\n background: ").concat(c.color.base.primary2," !important;\n }\n }\n\n\n &.ant-picker > .ant-picker-input {\n font-family: ").concat(pn," !important;\n font-style: normal !important;\n font-weight: normal !important;\n font-size: 14px !important;\n line-height: 22px !important;\n color: ").concat(c.color.base.onNeutral," !important;\n }\n\n & .ant-picker-input > input {\n color: ").concat(c.color.base.onNeutral," !important;\n }\n\n & .ant-picker-input > input::placeholder {\n color: ").concat(c.color.component.placeholderInput," !important;\n }\n "),m="\n .ant-picker-cell.ant-picker-cell-in-view.ant-picker-cell-range-end > .ant-picker-cell-inner {\n background-color: ".concat(c.color.base.primary2," !important;\n }\n\n .ant-picker-cell.ant-picker-cell-in-view.ant-picker-cell-range-start > .ant-picker-cell-inner {\n background-color: ").concat(c.color.base.primary2," !important;\n }\n\n .ant-picker-cell.ant-picker-cell-in-view {\n &.ant-picker-cell-in-range::before {\n background-color: ").concat(c.color.interactive.selected," !important;\n }\n\n &.ant-picker-cell-range-end::before {\n background-color: ").concat(c.color.interactive.selected," !important;\n }\n\n &.ant-picker-cell-range-start::before {\n background-color: ").concat(c.color.interactive.selected," !important;\n }\n }\n ");return l.default.createElement(t.DatePicker.RangePicker,r.__assign({className:"".concat(we(f)),format:o,popupClassName:we(m)},s))},exports.Section=XO,exports.Select=ek,exports.SmallP=Vn,exports.Spin=function(e){var n=e.size,o=r.__rest(e,["size"]),i=en().brand,a=we(sC||(sC=r.__makeTemplateObject(["\n & .ant-spin-dot-item {\n background-color: ",";\n }\n "],["\n & .ant-spin-dot-item {\n background-color: ",";\n }\n "])),i.primary.default);return l.default.createElement(t.Spin,r.__assign({className:xe(a),size:n},o))},exports.Steps=function(t){var n=t.current,o=t.steps,i=t.desktopNote,a=e.useRef(null),s=en(),c=s.brand,u=s.success,d=s.neutral;e.useEffect(function(){var e=a.current;null!==e&&(e.scrollLeft=120*n)},[n]);var p=dt.div(mO||(mO=r.__makeTemplateObject(["\n height: 58px;\n padding-left: 16px;\n border-bottom: 1px solid ",";\n max-width: 100vw;\n display: flex;\n align-items: center;\n overflow: auto;\n background: ",";\n\n &::-webkit-scrollbar {\n display: none;\n }\n "],["\n height: 58px;\n padding-left: 16px;\n border-bottom: 1px solid ",";\n max-width: 100vw;\n display: flex;\n align-items: center;\n overflow: auto;\n background: ",";\n\n &::-webkit-scrollbar {\n display: none;\n }\n "])),d.border,d.background),h=dt.div(gO||(gO=r.__makeTemplateObject(["\n width: 9px;\n height: 9px;\n border-radius: 50%;\n margin-right: 10px;\n background: ",";\n display: inline-block;\n\n ",";\n "],["\n width: 9px;\n height: 9px;\n border-radius: 50%;\n margin-right: 10px;\n background: ",";\n display: inline-block;\n\n ",";\n "])),d.emphasis,function(e){return e.current===e.index?"\n background: ".concat(c.primary.default,";\n "):e.current>e.index?"\n background: ".concat(u.emphasis,";\n "):""}),f=dt.div(vO||(vO=r.__makeTemplateObject(["\n width: 20px;\n margin-left: 10px;\n margin-right: 10px;\n height: 1px;\n background: ",";\n display: inline-block;\n margin-bottom: 4px;\n "],["\n width: 20px;\n margin-left: 10px;\n margin-right: 10px;\n height: 1px;\n background: ",";\n display: inline-block;\n margin-bottom: 4px;\n "])),d.emphasis),m=dt.div(bO||(bO=r.__makeTemplateObject(["\n padding-right: 16px;\n width: 1px;\n white-space: nowrap;\n "],["\n padding-right: 16px;\n width: 1px;\n white-space: nowrap;\n "]))),g=dt(Bn)(yO||(yO=r.__makeTemplateObject(["\n color: #1b2736;\n display: inline-flex;\n align-items: center;\n white-space: nowrap;\n\n "," &:last-child {\n padding-right: 16px;\n }\n\n ",";\n "],["\n color: #1b2736;\n display: inline-flex;\n align-items: center;\n white-space: nowrap;\n\n "," &:last-child {\n padding-right: 16px;\n }\n\n ",";\n "])),function(e){return e.inactive&&"\n color: #777777;\n "},function(e){return e.current&&"\n font-weight: bold;\n "});return l.default.createElement(l.default.Fragment,null,l.default.createElement(hO,{only:"sm"},l.default.createElement("div",{style:{padding:"30px",width:"266px"}},l.default.createElement(fO,{progressDot:!0,current:n,direction:"vertical",style:{marginBottom:"34px"}},o.map(function(e,t){return l.default.createElement(fO.Step,{key:"desktop-".concat(e,"-").concat(t),title:e})})),i)),l.default.createElement(hO,{only:"lg",ref:a},l.default.createElement(p,null,l.default.createElement(m,null,o.map(function(e,t){return l.default.createElement("span",{key:"mobile-".concat(e,"-").concat(t)},l.default.createElement(g,{inactive:n<t,current:n===t},l.default.createElement(h,{index:t,current:n}),e),t!==o.length-1&&l.default.createElement(f,null))})))))},exports.SummaryCard=function(e){var t=e.label,n=e.amount,o=e.type,i=void 0===o?"default":o,a=e.height,s=void 0===a?91:a,c=e.width,u=void 0===c?230:c,d=e.isInverted,p=void 0!==d&&d,h=e.icon,f=dt(Fn)(lC||(lC=r.__makeTemplateObject(["\n width: ",";\n min-height: ","px;\n padding: 3px !important;\n border-radius: 5px !important;\n\n "," ",";\n "],["\n width: ",";\n min-height: ","px;\n padding: 3px !important;\n border-radius: 5px !important;\n\n "," ",";\n "])),"number"==typeof u?"".concat(u,"px"):u,s,h&&"\n & > .ant-card-body {\n display: flex !important;\n flex-direction: row !important;\n align-items: center !important;\n }\n ",p&&"\n & > .ant-card-body > div {\n display: flex !important;\n flex-direction: column-reverse !important;\n }\n ");return l.default.createElement(f,{type:i},h&&h,l.default.createElement("div",null,l.default.createElement(Bn,{style:{marginBottom:p?"0":"5px"}},t),l.default.createElement(Ln,{style:{marginBottom:p?"5px":"0"}},n)))},exports.TABLET_BREAKPOINT="@media (min-width: 576px)",exports.Table=function(e){var n=e.className,o=e.emptyText,i=r.__rest(e,["className","emptyText"]);return l.default.createElement(t.Table,r.__assign({className:xe(wO,n),locale:{emptyText:o}},i))},exports.Tabs=_O,exports.Tag=OE,exports.ThemeProvider=function(e){var t=e.theme,n=void 0===t?Ut:t,r=e.children;return l.default.createElement(Jt.Provider,{value:n},l.default.createElement(Qt,null),r)},exports.Timeline=yC,exports.Timer=function(t){var n=t.initialSeconds,r=t.blinkActivationSeconds,o=t.shouldRepeat,i=t.onTimesUp,a=t.children,s=e.useState(!1),l=s[0],c=s[1],u=e.useState(n),d=u[0],p=u[1],h=e.useState(void 0),f=h[0],m=h[1],g=e.useState(!0),v=g[0],b=g[1],y=Date.now()+1e3*d;return e.useEffect(function(){v&&(m(setInterval(function(){var e=(new Date).getTime(),t=y-e,n=Math.ceil(t/1e3);n>=0&&p(n),r&&n<=r&&c(!0)},1e3)),b(!1))},[v]),e.useEffect(function(){d<=0&&void 0!==f&&(clearInterval(f),m(void 0),c(!1),i&&i(),o&&(p(n),b(!0)))},[f,d]),a(l,d)},exports.Tooltip=iE,exports.Typography=Oe,exports.getCoachmarkJoyrideConfig=function(e){var t=e||{},n=t.arrowColor,r=void 0===n?Ut.color.surface.secondaryNeutral:n,o=t.arrowLength,i=void 0===o?8:o,a=t.arrowSpread;return{floaterProps:{styles:{arrow:{length:i,spread:void 0===a?16:a,color:r}}}}},exports.straitsXTheme=Ut,exports.useModal=function(){var e=l.default.useContext(VC);if(void 0===e)throw new Error("useModal must be used within a UserProvider");return e},exports.useTheme=en,exports.xfersTheme=Wt;
21
+ */var pa=new class{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,e,n,i){const o=e.listeners[i],r=e.duration;o.forEach(i=>i({chart:t,initial:e.initial,numSteps:r,currentStep:Math.min(n-e.start,r)}))}_refresh(){this._request||(this._running=!0,this._request=qi.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let e=0;this._charts.forEach((n,i)=>{if(!n.running||!n.items.length)return;const o=n.items;let r,a=o.length-1,s=!1;for(;a>=0;--a)r=o[a],r._active?(r._total>n.duration&&(n.duration=r._total),r.tick(t),s=!0):(o[a]=o[o.length-1],o.pop());s&&(i.draw(),this._notify(i,n,t,"progress")),o.length||(n.running=!1,this._notify(i,n,t,"complete"),n.initial=!1),e+=o.length}),this._lastDate=t,0===e&&(this._running=!1)}_getAnims(t){const e=this._charts;let n=e.get(t);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,n)),n}listen(t,e,n){this._getAnims(t).listeners[e].push(n)}add(t,e){e&&e.length&&this._getAnims(t).items.push(...e)}has(t){return this._getAnims(t).items.length>0}start(t){const e=this._charts.get(t);e&&(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce((t,e)=>Math.max(t,e._duration),0),this._refresh())}running(t){if(!this._running)return!1;const e=this._charts.get(t);return!!(e&&e.running&&e.items.length)}stop(t){const e=this._charts.get(t);if(!e||!e.items.length)return;const n=e.items;let i=n.length-1;for(;i>=0;--i)n[i].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}remove(t){return this._charts.delete(t)}};const fa="transparent",ga={boolean:(t,e,n)=>n>.5?e:t,color(t,e,n){const i=Yo(t||fa),o=i.valid&&Yo(e||fa);return o&&o.valid?o.mix(i,n).hexString():e},number:(t,e,n)=>t+(e-t)*n};class ma{constructor(t,e,n,i){const o=e[n];i=br([t.to,i,o,t.from]);const r=br([t.from,o,i]);this._active=!0,this._fn=t.fn||ga[t.type||typeof r],this._easing=oo[t.easing]||oo.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=e,this._prop=n,this._from=r,this._to=i,this._promises=void 0}active(){return this._active}update(t,e,n){if(this._active){this._notify(!1);const i=this._target[this._prop],o=n-this._start,r=this._duration-o;this._start=n,this._duration=Math.floor(Math.max(r,t.duration)),this._total+=o,this._loop=!!t.loop,this._to=br([t.to,e,i,t.from]),this._from=br([t.from,i,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const e=t-this._start,n=this._duration,i=this._prop,o=this._from,r=this._loop,a=this._to;let s;if(this._active=o!==a&&(r||e<n),!this._active)return this._target[i]=a,void this._notify(!0);e<0?this._target[i]=o:(s=e/n%2,s=r&&s>1?2-s:s,s=this._easing(Math.min(1,Math.max(0,s))),this._target[i]=this._fn(o,a,s))}wait(){const t=this._promises||(this._promises=[]);return new Promise((e,n)=>{t.push({res:e,rej:n})})}_notify(t){const e=t?"res":"rej",n=this._promises||[];for(let t=0;t<n.length;t++)n[t][e]()}}$o.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0});const ba=Object.keys($o.animation);$o.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>"onProgress"!==t&&"onComplete"!==t&&"fn"!==t}),$o.set("animations",{colors:{type:"color",properties:["color","borderColor","backgroundColor"]},numbers:{type:"number",properties:["x","y","borderWidth","radius","tension"]}}),$o.describe("animations",{_fallback:"animation"}),$o.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>0|t}}}});class xa{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(t){if(!Qn(t))return;const e=this._properties;Object.getOwnPropertyNames(t).forEach(n=>{const i=t[n];if(!Qn(i))return;const o={};for(const t of ba)o[t]=i[t];(Jn(i.properties)&&i.properties||[n]).forEach(t=>{t!==n&&e.has(t)||e.set(t,o)})})}_animateOptions(t,e){const n=e.options,i=function(t,e){if(!e)return;let n=t.options;if(!n)return void(t.options=e);n.$shared&&(t.options=n=Object.assign({},n,{$shared:!1,$animations:{}}));return n}(t,n);if(!i)return[];const o=this._createAnimations(i,n);return n.$shared&&function(t,e){const n=[],i=Object.keys(e);for(let e=0;e<i.length;e++){const o=t[i[e]];o&&o.active()&&n.push(o.wait())}return Promise.all(n)}(t.options.$animations,n).then(()=>{t.options=n},()=>{}),o}_createAnimations(t,e){const n=this._properties,i=[],o=t.$animations||(t.$animations={}),r=Object.keys(e),a=Date.now();let s;for(s=r.length-1;s>=0;--s){const l=r[s];if("$"===l.charAt(0))continue;if("options"===l){i.push(...this._animateOptions(t,e));continue}const c=e[l];let d=o[l];const h=n.get(l);if(d){if(h&&d.active()){d.update(h,c,a);continue}d.cancel()}h&&h.duration?(o[l]=d=new ma(h,t,l,c),i.push(d)):t[l]=c}return i}update(t,e){if(0===this._properties.size)return void Object.assign(t,e);const n=this._createAnimations(t,e);return n.length?(pa.add(this._chart,n),!0):void 0}}function va(t,e){const n=t&&t.options||{},i=n.reverse,o=void 0===n.min?e:0,r=void 0===n.max?e:0;return{start:i?r:o,end:i?o:r}}function ya(t,e){const n=[],i=t._getSortedDatasetMetas(e);let o,r;for(o=0,r=i.length;o<r;++o)n.push(i[o].index);return n}function _a(t,e,n,i={}){const o=t.keys,r="single"===i.mode;let a,s,l,c;if(null!==e){for(a=0,s=o.length;a<s;++a){if(l=+o[a],l===n){if(i.all)continue;break}c=t.values[l],ti(c)&&(r||0===e||Mi(e)===Mi(c))&&(e+=c)}return e}}function wa(t,e){const n=t&&t.options.stacked;return n||void 0===n&&void 0!==e.stack}function ka(t,e,n){const i=t[e]||(t[e]={});return i[n]||(i[n]={})}function Sa(t,e,n,i){for(const o of e.getMatchingVisibleMetas(i).reverse()){const e=t[o.index];if(n&&e>0||!n&&e<0)return o.index}return null}function Ea(t,e){const{chart:n,_cachedMeta:i}=t,o=n._stacks||(n._stacks={}),{iScale:r,vScale:a,index:s}=i,l=r.axis,c=a.axis,d=function(t,e,n){return`${t.id}.${e.id}.${n.stack||n.type}`}(r,a,i),h=e.length;let u;for(let t=0;t<h;++t){const n=e[t],{[l]:r,[c]:h}=n;u=(n._stacks||(n._stacks={}))[c]=ka(o,d,r),u[s]=h,u._top=Sa(u,a,!0,i.type),u._bottom=Sa(u,a,!1,i.type)}}function Oa(t,e){const n=t.scales;return Object.keys(n).filter(t=>n[t].axis===e).shift()}function Ta(t,e){const n=t.controller.index,i=t.vScale&&t.vScale.axis;if(i){e=e||t._parsed;for(const t of e){const e=t._stacks;if(!e||void 0===e[i]||void 0===e[i][n])return;delete e[i][n]}}}const Ma=t=>"reset"===t||"none"===t,Da=(t,e)=>e?t:Object.assign({},t);class Ca{constructor(t,e){this.chart=t,this._ctx=t.ctx,this.index=e,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=wa(t.vScale,t),this.addElements()}updateIndex(t){this.index!==t&&Ta(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,e=this._cachedMeta,n=this.getDataset(),i=(t,e,n,i)=>"x"===t?e:"r"===t?i:n,o=e.xAxisID=ni(n.xAxisID,Oa(t,"x")),r=e.yAxisID=ni(n.yAxisID,Oa(t,"y")),a=e.rAxisID=ni(n.rAxisID,Oa(t,"r")),s=e.indexAxis,l=e.iAxisID=i(s,o,r,a),c=e.vAxisID=i(s,r,o,a);e.xScale=this.getScaleForId(o),e.yScale=this.getScaleForId(r),e.rScale=this.getScaleForId(a),e.iScale=this.getScaleForId(l),e.vScale=this.getScaleForId(c)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const e=this._cachedMeta;return t===e.iScale?e.vScale:e.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&$i(this._data,this),t._stacked&&Ta(t)}_dataCheck(){const t=this.getDataset(),e=t.data||(t.data=[]),n=this._data;if(Qn(e))this._data=function(t){const e=Object.keys(t),n=new Array(e.length);let i,o,r;for(i=0,o=e.length;i<o;++i)r=e[i],n[i]={x:r,y:t[r]};return n}(e);else if(n!==e){if(n){$i(n,this);const t=this._cachedMeta;Ta(t),t._parsed=[]}e&&Object.isExtensible(e)&&(o=this,(i=e)._chartjs?i._chartjs.listeners.push(o):(Object.defineProperty(i,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[o]}}),Gi.forEach(t=>{const e="_onData"+gi(t),n=i[t];Object.defineProperty(i,t,{configurable:!0,enumerable:!1,value(...t){const o=n.apply(this,t);return i._chartjs.listeners.forEach(n=>{"function"==typeof n[e]&&n[e](...t)}),o}})}))),this._syncList=[],this._data=e}var i,o}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const e=this._cachedMeta,n=this.getDataset();let i=!1;this._dataCheck();const o=e._stacked;e._stacked=wa(e.vScale,e),e.stack!==n.stack&&(i=!0,Ta(e),e.stack=n.stack),this._resyncElements(t),(i||o!==e._stacked)&&Ea(this,e._parsed)}configure(){const t=this.chart.config,e=t.datasetScopeKeys(this._type),n=t.getOptionScopes(this.getDataset(),e,!0);this.options=t.createResolver(n,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,e){const{_cachedMeta:n,_data:i}=this,{iScale:o,_stacked:r}=n,a=o.axis;let s,l,c,d=0===t&&e===i.length||n._sorted,h=t>0&&n._parsed[t-1];if(!1===this._parsing)n._parsed=i,n._sorted=!0,c=i;else{c=Jn(i[t])?this.parseArrayData(n,i,t,e):Qn(i[t])?this.parseObjectData(n,i,t,e):this.parsePrimitiveData(n,i,t,e);const o=()=>null===l[a]||h&&l[a]<h[a];for(s=0;s<e;++s)n._parsed[s+t]=l=c[s],d&&(o()&&(d=!1),h=l);n._sorted=d}r&&Ea(this,c)}parsePrimitiveData(t,e,n,i){const{iScale:o,vScale:r}=t,a=o.axis,s=r.axis,l=o.getLabels(),c=o===r,d=new Array(i);let h,u,p;for(h=0,u=i;h<u;++h)p=h+n,d[h]={[a]:c||o.parse(l[p],p),[s]:r.parse(e[p],p)};return d}parseArrayData(t,e,n,i){const{xScale:o,yScale:r}=t,a=new Array(i);let s,l,c,d;for(s=0,l=i;s<l;++s)c=s+n,d=e[c],a[s]={x:o.parse(d[0],c),y:r.parse(d[1],c)};return a}parseObjectData(t,e,n,i){const{xScale:o,yScale:r}=t,{xAxisKey:a="x",yAxisKey:s="y"}=this._parsing,l=new Array(i);let c,d,h,u;for(c=0,d=i;c<d;++c)h=c+n,u=e[h],l[c]={x:o.parse(fi(u,a),h),y:r.parse(fi(u,s),h)};return l}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,e,n){const i=this.chart,o=this._cachedMeta,r=e[t.axis];return _a({keys:ya(i,!0),values:e._stacks[t.axis]},r,o.index,{mode:n})}updateRangeFromParsed(t,e,n,i){const o=n[e.axis];let r=null===o?NaN:o;const a=i&&n._stacks[e.axis];i&&a&&(i.values=a,r=_a(i,o,this._cachedMeta.index)),t.min=Math.min(t.min,r),t.max=Math.max(t.max,r)}getMinMax(t,e){const n=this._cachedMeta,i=n._parsed,o=n._sorted&&t===n.iScale,r=i.length,a=this._getOtherScale(t),s=((t,e,n)=>t&&!e.hidden&&e._stacked&&{keys:ya(n,!0),values:null})(e,n,this.chart),l={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:c,max:d}=function(t){const{min:e,max:n,minDefined:i,maxDefined:o}=t.getUserBounds();return{min:i?e:Number.NEGATIVE_INFINITY,max:o?n:Number.POSITIVE_INFINITY}}(a);let h,u;function p(){u=i[h];const e=u[a.axis];return!ti(u[t.axis])||c>e||d<e}for(h=0;h<r&&(p()||(this.updateRangeFromParsed(l,t,u,s),!o));++h);if(o)for(h=r-1;h>=0;--h)if(!p()){this.updateRangeFromParsed(l,t,u,s);break}return l}getAllParsedValues(t){const e=this._cachedMeta._parsed,n=[];let i,o,r;for(i=0,o=e.length;i<o;++i)r=e[i][t.axis],ti(r)&&n.push(r);return n}getMaxOverflow(){return!1}getLabelAndValue(t){const e=this._cachedMeta,n=e.iScale,i=e.vScale,o=this.getParsed(t);return{label:n?""+n.getLabelForValue(o[n.axis]):"",value:i?""+i.getLabelForValue(o[i.axis]):""}}_update(t){const e=this._cachedMeta;this.update(t||"default"),e._clip=function(t){let e,n,i,o;return Qn(t)?(e=t.top,n=t.right,i=t.bottom,o=t.left):e=n=i=o=t,{top:e,right:n,bottom:i,left:o,disabled:!1===t}}(ni(this.options.clip,function(t,e,n){if(!1===n)return!1;const i=va(t,n),o=va(e,n);return{top:o.end,right:i.end,bottom:o.start,left:i.start}}(e.xScale,e.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,e=this.chart,n=this._cachedMeta,i=n.data||[],o=e.chartArea,r=[],a=this._drawStart||0,s=this._drawCount||i.length-a,l=this.options.drawActiveElementsOnTop;let c;for(n.dataset&&n.dataset.draw(t,o,a,s),c=a;c<a+s;++c){const e=i[c];e.hidden||(e.active&&l?r.push(e):e.draw(t,o))}for(c=0;c<r.length;++c)r[c].draw(t,o)}getStyle(t,e){const n=e?"active":"default";return void 0===t&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(n):this.resolveDataElementOptions(t||0,n)}getContext(t,e,n){const i=this.getDataset();let o;if(t>=0&&t<this._cachedMeta.data.length){const e=this._cachedMeta.data[t];o=e.$context||(e.$context=function(t,e,n){return xr(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:n,index:e,mode:"default",type:"data"})}(this.getContext(),t,e)),o.parsed=this.getParsed(t),o.raw=i.data[t],o.index=o.dataIndex=t}else o=this.$context||(this.$context=function(t,e){return xr(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}(this.chart.getContext(),this.index)),o.dataset=i,o.index=o.datasetIndex=this.index;return o.active=!!e,o.mode=n,o}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,e){return this._resolveElementOptions(this.dataElementType.id,e,t)}_resolveElementOptions(t,e="default",n){const i="active"===e,o=this._cachedDataOpts,r=t+"-"+e,a=o[r],s=this.enableOptionSharing&&mi(n);if(a)return Da(a,s);const l=this.chart.config,c=l.datasetElementScopeKeys(this._type,t),d=i?[`${t}Hover`,"hover",t,""]:[t,""],h=l.getOptionScopes(this.getDataset(),c),u=Object.keys($o.elements[t]),p=l.resolveNamedOptions(h,u,()=>this.getContext(n,i),d);return p.$shared&&(p.$shared=s,o[r]=Object.freeze(Da(p,s))),p}_resolveAnimations(t,e,n){const i=this.chart,o=this._cachedDataOpts,r=`animation-${e}`,a=o[r];if(a)return a;let s;if(!1!==i.options.animation){const i=this.chart.config,o=i.datasetAnimationScopeKeys(this._type,e),r=i.getOptionScopes(this.getDataset(),o);s=i.createResolver(r,this.getContext(t,n,e))}const l=new xa(i,s&&s.animations);return s&&s._cacheable&&(o[r]=Object.freeze(l)),l}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,e){return!e||Ma(t)||this.chart._animationsDisabled}_getSharedOptions(t,e){const n=this.resolveDataElementOptions(t,e),i=this._sharedOptions,o=this.getSharedOptions(n),r=this.includeOptions(e,o)||o!==i;return this.updateSharedOptions(o,e,n),{sharedOptions:o,includeOptions:r}}updateElement(t,e,n,i){Ma(i)?Object.assign(t,n):this._resolveAnimations(e,i).update(t,n)}updateSharedOptions(t,e,n){t&&!Ma(e)&&this._resolveAnimations(void 0,e).update(t,n)}_setStyle(t,e,n,i){t.active=i;const o=this.getStyle(e,i);this._resolveAnimations(e,n,i).update(t,{options:!i&&this.getSharedOptions(o)||o})}removeHoverStyle(t,e,n){this._setStyle(t,n,"active",!1)}setHoverStyle(t,e,n){this._setStyle(t,n,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const e=this._data,n=this._cachedMeta.data;for(const[t,e,n]of this._syncList)this[t](e,n);this._syncList=[];const i=n.length,o=e.length,r=Math.min(o,i);r&&this.parse(0,r),o>i?this._insertElements(i,o-i,t):o<i&&this._removeElements(o,i-o)}_insertElements(t,e,n=!0){const i=this._cachedMeta,o=i.data,r=t+e;let a;const s=t=>{for(t.length+=e,a=t.length-1;a>=r;a--)t[a]=t[a-e]};for(s(o),a=t;a<r;++a)o[a]=new this.dataElementType;this._parsing&&s(i._parsed),this.parse(t,e),n&&this.updateElements(o,t,e,"reset")}updateElements(t,e,n,i){}_removeElements(t,e){const n=this._cachedMeta;if(this._parsing){const i=n._parsed.splice(t,e);n._stacked&&Ta(n,i)}n.data.splice(t,e)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[e,n,i]=t;this[e](n,i)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,e){e&&this._sync(["_removeElements",t,e]);const n=arguments.length-2;n&&this._sync(["_insertElements",t,n])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function Aa(t){const e=t.iScale,n=function(t,e){if(!t._cache.$bar){const n=t.getMatchingVisibleMetas(e);let i=[];for(let e=0,o=n.length;e<o;e++)i=i.concat(n[e].controller.getAllParsedValues(t));t._cache.$bar=Xi(i.sort((t,e)=>t-e))}return t._cache.$bar}(e,t.type);let i,o,r,a,s=e._length;const l=()=>{32767!==r&&-32768!==r&&(mi(a)&&(s=Math.min(s,Math.abs(r-a)||s)),a=r)};for(i=0,o=n.length;i<o;++i)r=e.getPixelForValue(n[i]),l();for(a=void 0,i=0,o=e.ticks.length;i<o;++i)r=e.getPixelForTick(i),l();return s}function Ra(t,e,n,i){return Jn(t)?function(t,e,n,i){const o=n.parse(t[0],i),r=n.parse(t[1],i),a=Math.min(o,r),s=Math.max(o,r);let l=a,c=s;Math.abs(a)>Math.abs(s)&&(l=s,c=a),e[n.axis]=c,e._custom={barStart:l,barEnd:c,start:o,end:r,min:a,max:s}}(t,e,n,i):e[n.axis]=n.parse(t,i),e}function La(t,e,n,i){const o=t.iScale,r=t.vScale,a=o.getLabels(),s=o===r,l=[];let c,d,h,u;for(c=n,d=n+i;c<d;++c)u=e[c],h={},h[o.axis]=s||o.parse(a[c],c),l.push(Ra(u,h,r,c));return l}function Pa(t){return t&&void 0!==t.barStart&&void 0!==t.barEnd}function Ia(t,e,n,i){let o=e.borderSkipped;const r={};if(!o)return void(t.borderSkipped=r);if(!0===o)return void(t.borderSkipped={top:!0,right:!0,bottom:!0,left:!0});const{start:a,end:s,reverse:l,top:c,bottom:d}=function(t){let e,n,i,o,r;return t.horizontal?(e=t.base>t.x,n="left",i="right"):(e=t.base<t.y,n="bottom",i="top"),e?(o="end",r="start"):(o="start",r="end"),{start:n,end:i,reverse:e,top:o,bottom:r}}(t);"middle"===o&&n&&(t.enableBorderRadius=!0,(n._top||0)===i?o=c:(n._bottom||0)===i?o=d:(r[Na(d,a,s,l)]=!0,o=c)),r[Na(o,a,s,l)]=!0,t.borderSkipped=r}function Na(t,e,n,i){var o,r,a;return i?(a=n,t=Fa(t=(o=t)===(r=e)?a:o===a?r:o,n,e)):t=Fa(t,e,n),t}function Fa(t,e,n){return"start"===t?e:"end"===t?n:t}function za(t,{inflateAmount:e},n){t.inflateAmount="auto"===e?1===n?.33:0:e}Ca.defaults={},Ca.prototype.datasetElementType=null,Ca.prototype.dataElementType=null;class Ba extends Ca{parsePrimitiveData(t,e,n,i){return La(t,e,n,i)}parseArrayData(t,e,n,i){return La(t,e,n,i)}parseObjectData(t,e,n,i){const{iScale:o,vScale:r}=t,{xAxisKey:a="x",yAxisKey:s="y"}=this._parsing,l="x"===o.axis?a:s,c="x"===r.axis?a:s,d=[];let h,u,p,f;for(h=n,u=n+i;h<u;++h)f=e[h],p={},p[o.axis]=o.parse(fi(f,l),h),d.push(Ra(fi(f,c),p,r,h));return d}updateRangeFromParsed(t,e,n,i){super.updateRangeFromParsed(t,e,n,i);const o=n._custom;o&&e===this._cachedMeta.vScale&&(t.min=Math.min(t.min,o.min),t.max=Math.max(t.max,o.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const e=this._cachedMeta,{iScale:n,vScale:i}=e,o=this.getParsed(t),r=o._custom,a=Pa(r)?"["+r.start+", "+r.end+"]":""+i.getLabelForValue(o[i.axis]);return{label:""+n.getLabelForValue(o[n.axis]),value:a}}initialize(){this.enableOptionSharing=!0,super.initialize();this._cachedMeta.stack=this.getDataset().stack}update(t){const e=this._cachedMeta;this.updateElements(e.data,0,e.data.length,t)}updateElements(t,e,n,i){const o="reset"===i,{index:r,_cachedMeta:{vScale:a}}=this,s=a.getBasePixel(),l=a.isHorizontal(),c=this._getRuler(),{sharedOptions:d,includeOptions:h}=this._getSharedOptions(e,i);for(let u=e;u<e+n;u++){const e=this.getParsed(u),n=o||Kn(e[a.axis])?{base:s,head:s}:this._calculateBarValuePixels(u),p=this._calculateBarIndexPixels(u,c),f=(e._stacks||{})[a.axis],g={horizontal:l,base:n.base,enableBorderRadius:!f||Pa(e._custom)||r===f._top||r===f._bottom,x:l?n.head:p.center,y:l?p.center:n.head,height:l?p.size:Math.abs(n.size),width:l?Math.abs(n.size):p.size};h&&(g.options=d||this.resolveDataElementOptions(u,t[u].active?"active":i));const m=g.options||t[u].options;Ia(g,m,f,r),za(g,m,c.ratio),this.updateElement(t[u],u,g,i)}}_getStacks(t,e){const{iScale:n}=this._cachedMeta,i=n.getMatchingVisibleMetas(this._type).filter(t=>t.controller.options.grouped),o=n.options.stacked,r=[],a=t=>{const n=t.controller.getParsed(e),i=n&&n[t.vScale.axis];if(Kn(i)||isNaN(i))return!0};for(const n of i)if((void 0===e||!a(n))&&((!1===o||-1===r.indexOf(n.stack)||void 0===o&&void 0===n.stack)&&r.push(n.stack),n.index===t))break;return r.length||r.push(void 0),r}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,e,n){const i=this._getStacks(t,n),o=void 0!==e?i.indexOf(e):-1;return-1===o?i.length-1:o}_getRuler(){const t=this.options,e=this._cachedMeta,n=e.iScale,i=[];let o,r;for(o=0,r=e.data.length;o<r;++o)i.push(n.getPixelForValue(this.getParsed(o)[n.axis],o));const a=t.barThickness;return{min:a||Aa(e),pixels:i,start:n._startPixel,end:n._endPixel,stackCount:this._getStackCount(),scale:n,grouped:t.grouped,ratio:a?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:e,_stacked:n},options:{base:i,minBarLength:o}}=this,r=i||0,a=this.getParsed(t),s=a._custom,l=Pa(s);let c,d,h=a[e.axis],u=0,p=n?this.applyStack(e,a,n):h;p!==h&&(u=p-h,p=h),l&&(h=s.barStart,p=s.barEnd-s.barStart,0!==h&&Mi(h)!==Mi(s.barEnd)&&(u=0),u+=h);const f=Kn(i)||l?u:i;let g=e.getPixelForValue(f);if(c=this.chart.getDataVisibility(t)?e.getPixelForValue(u+p):g,d=c-g,Math.abs(d)<o){d=function(t,e,n){return 0!==t?Mi(t):(e.isHorizontal()?1:-1)*(e.min>=n?1:-1)}(d,e,r)*o,h===r&&(g-=d/2);const t=e.getPixelForDecimal(0),n=e.getPixelForDecimal(1),i=Math.min(t,n),a=Math.max(t,n);g=Math.max(Math.min(g,a),i),c=g+d}if(g===e.getPixelForValue(r)){const t=Mi(d)*e.getLineWidthForValue(r)/2;g+=t,d-=t}return{size:d,base:g,head:c,center:c+d/2}}_calculateBarIndexPixels(t,e){const n=e.scale,i=this.options,o=i.skipNull,r=ni(i.maxBarThickness,1/0);let a,s;if(e.grouped){const n=o?this._getStackCount(t):e.stackCount,l="flex"===i.barThickness?function(t,e,n,i){const o=e.pixels,r=o[t];let a=t>0?o[t-1]:null,s=t<o.length-1?o[t+1]:null;const l=n.categoryPercentage;null===a&&(a=r-(null===s?e.end-e.start:s-r)),null===s&&(s=r+r-a);const c=r-(r-Math.min(a,s))/2*l;return{chunk:Math.abs(s-a)/2*l/i,ratio:n.barPercentage,start:c}}(t,e,i,n):function(t,e,n,i){const o=n.barThickness;let r,a;return Kn(o)?(r=e.min*n.categoryPercentage,a=n.barPercentage):(r=o*i,a=1),{chunk:r/i,ratio:a,start:e.pixels[t]-r/2}}(t,e,i,n),c=this._getStackIndex(this.index,this._cachedMeta.stack,o?t:void 0);a=l.start+l.chunk*c+l.chunk/2,s=Math.min(r,l.chunk*l.ratio)}else a=n.getPixelForValue(this.getParsed(t)[n.axis],t),s=Math.min(r,e.min*e.ratio);return{base:a-s/2,head:a+s/2,center:a,size:s}}draw(){const t=this._cachedMeta,e=t.vScale,n=t.data,i=n.length;let o=0;for(;o<i;++o)null!==this.getParsed(o)[e.axis]&&n[o].draw(this._ctx)}}Ba.id="bar",Ba.defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}},Ba.overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};class ja extends Ca{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(t,e,n,i){const o=super.parsePrimitiveData(t,e,n,i);for(let t=0;t<o.length;t++)o[t]._custom=this.resolveDataElementOptions(t+n).radius;return o}parseArrayData(t,e,n,i){const o=super.parseArrayData(t,e,n,i);for(let t=0;t<o.length;t++){const i=e[n+t];o[t]._custom=ni(i[2],this.resolveDataElementOptions(t+n).radius)}return o}parseObjectData(t,e,n,i){const o=super.parseObjectData(t,e,n,i);for(let t=0;t<o.length;t++){const i=e[n+t];o[t]._custom=ni(i&&i.r&&+i.r,this.resolveDataElementOptions(t+n).radius)}return o}getMaxOverflow(){const t=this._cachedMeta.data;let e=0;for(let n=t.length-1;n>=0;--n)e=Math.max(e,t[n].size(this.resolveDataElementOptions(n))/2);return e>0&&e}getLabelAndValue(t){const e=this._cachedMeta,{xScale:n,yScale:i}=e,o=this.getParsed(t),r=n.getLabelForValue(o.x),a=i.getLabelForValue(o.y),s=o._custom;return{label:e.label,value:"("+r+", "+a+(s?", "+s:"")+")"}}update(t){const e=this._cachedMeta.data;this.updateElements(e,0,e.length,t)}updateElements(t,e,n,i){const o="reset"===i,{iScale:r,vScale:a}=this._cachedMeta,{sharedOptions:s,includeOptions:l}=this._getSharedOptions(e,i),c=r.axis,d=a.axis;for(let h=e;h<e+n;h++){const e=t[h],n=!o&&this.getParsed(h),u={},p=u[c]=o?r.getPixelForDecimal(.5):r.getPixelForValue(n[c]),f=u[d]=o?a.getBasePixel():a.getPixelForValue(n[d]);u.skip=isNaN(p)||isNaN(f),l&&(u.options=s||this.resolveDataElementOptions(h,e.active?"active":i),o&&(u.options.radius=0)),this.updateElement(e,h,u,i)}}resolveDataElementOptions(t,e){const n=this.getParsed(t);let i=super.resolveDataElementOptions(t,e);i.$shared&&(i=Object.assign({},i,{$shared:!1}));const o=i.radius;return"active"!==e&&(i.radius=0),i.radius+=ni(n&&n._custom,o),i}}ja.id="bubble",ja.defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}},ja.overrides={scales:{x:{type:"linear"},y:{type:"linear"}},plugins:{tooltip:{callbacks:{title:()=>""}}}};class Ya extends Ca{constructor(t,e){super(t,e),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,e){const n=this.getDataset().data,i=this._cachedMeta;if(!1===this._parsing)i._parsed=n;else{let o,r,a=t=>+n[t];if(Qn(n[t])){const{key:t="value"}=this._parsing;a=e=>+fi(n[e],t)}for(o=t,r=t+e;o<r;++o)i._parsed[o]=a(o)}}_getRotation(){return Li(this.options.rotation-90)}_getCircumference(){return Li(this.options.circumference)}_getRotationExtents(){let t=yi,e=-yi;for(let n=0;n<this.chart.data.datasets.length;++n)if(this.chart.isDatasetVisible(n)){const i=this.chart.getDatasetMeta(n).controller,o=i._getRotation(),r=i._getCircumference();t=Math.min(t,o),e=Math.max(e,o+r)}return{rotation:t,circumference:e-t}}update(t){const e=this.chart,{chartArea:n}=e,i=this._cachedMeta,o=i.data,r=this.getMaxBorderWidth()+this.getMaxOffset(o)+this.options.spacing,a=Math.max((Math.min(n.width,n.height)-r)/2,0),s=Math.min((l=this.options.cutout,c=a,"string"==typeof l&&l.endsWith("%")?parseFloat(l)/100:l/c),1);var l,c;const d=this._getRingWeight(this.index),{circumference:h,rotation:u}=this._getRotationExtents(),{ratioX:p,ratioY:f,offsetX:g,offsetY:m}=function(t,e,n){let i=1,o=1,r=0,a=0;if(e<yi){const s=t,l=s+e,c=Math.cos(s),d=Math.sin(s),h=Math.cos(l),u=Math.sin(l),p=(t,e,i)=>ji(t,s,l,!0)?1:Math.max(e,e*n,i,i*n),f=(t,e,i)=>ji(t,s,l,!0)?-1:Math.min(e,e*n,i,i*n),g=p(0,c,h),m=p(Si,d,u),b=f(vi,c,h),x=f(vi+Si,d,u);i=(g-b)/2,o=(m-x)/2,r=-(g+b)/2,a=-(m+x)/2}return{ratioX:i,ratioY:o,offsetX:r,offsetY:a}}(u,h,s),b=(n.width-r)/p,x=(n.height-r)/f,v=Math.max(Math.min(b,x)/2,0),y=ii(this.options.radius,v),_=(y-Math.max(y*s,0))/this._getVisibleDatasetWeightTotal();this.offsetX=g*y,this.offsetY=m*y,i.total=this.calculateTotal(),this.outerRadius=y-_*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-_*d,0),this.updateElements(o,0,o.length,t)}_circumference(t,e){const n=this.options,i=this._cachedMeta,o=this._getCircumference();return e&&n.animation.animateRotate||!this.chart.getDataVisibility(t)||null===i._parsed[t]||i.data[t].hidden?0:this.calculateCircumference(i._parsed[t]*o/yi)}updateElements(t,e,n,i){const o="reset"===i,r=this.chart,a=r.chartArea,s=r.options.animation,l=(a.left+a.right)/2,c=(a.top+a.bottom)/2,d=o&&s.animateScale,h=d?0:this.innerRadius,u=d?0:this.outerRadius,{sharedOptions:p,includeOptions:f}=this._getSharedOptions(e,i);let g,m=this._getRotation();for(g=0;g<e;++g)m+=this._circumference(g,o);for(g=e;g<e+n;++g){const e=this._circumference(g,o),n=t[g],r={x:l+this.offsetX,y:c+this.offsetY,startAngle:m,endAngle:m+e,circumference:e,outerRadius:u,innerRadius:h};f&&(r.options=p||this.resolveDataElementOptions(g,n.active?"active":i)),m+=e,this.updateElement(n,g,r,i)}}calculateTotal(){const t=this._cachedMeta,e=t.data;let n,i=0;for(n=0;n<e.length;n++){const o=t._parsed[n];null===o||isNaN(o)||!this.chart.getDataVisibility(n)||e[n].hidden||(i+=Math.abs(o))}return i}calculateCircumference(t){const e=this._cachedMeta.total;return e>0&&!isNaN(t)?yi*(Math.abs(t)/e):0}getLabelAndValue(t){const e=this._cachedMeta,n=this.chart,i=n.data.labels||[],o=na(e._parsed[t],n.options.locale);return{label:i[t]||"",value:o}}getMaxBorderWidth(t){let e=0;const n=this.chart;let i,o,r,a,s;if(!t)for(i=0,o=n.data.datasets.length;i<o;++i)if(n.isDatasetVisible(i)){r=n.getDatasetMeta(i),t=r.data,a=r.controller;break}if(!t)return 0;for(i=0,o=t.length;i<o;++i)s=a.resolveDataElementOptions(i),"inner"!==s.borderAlign&&(e=Math.max(e,s.borderWidth||0,s.hoverBorderWidth||0));return e}getMaxOffset(t){let e=0;for(let n=0,i=t.length;n<i;++n){const t=this.resolveDataElementOptions(n);e=Math.max(e,t.offset||0,t.hoverOffset||0)}return e}_getRingWeightOffset(t){let e=0;for(let n=0;n<t;++n)this.chart.isDatasetVisible(n)&&(e+=this._getRingWeight(n));return e}_getRingWeight(t){return Math.max(ni(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}Ya.id="doughnut",Ya.defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"},Ya.descriptors={_scriptable:t=>"spacing"!==t,_indexable:t=>"spacing"!==t},Ya.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:n}}=t.legend.options;return e.labels.map((e,i)=>{const o=t.getDatasetMeta(0).controller.getStyle(i);return{text:e,fillStyle:o.backgroundColor,strokeStyle:o.borderColor,lineWidth:o.borderWidth,pointStyle:n,hidden:!t.getDataVisibility(i),index:i}})}return[]}},onClick(t,e,n){n.chart.toggleDataVisibility(e.index),n.chart.update()}},tooltip:{callbacks:{title:()=>"",label(t){let e=t.label;const n=": "+t.formattedValue;return Jn(e)?(e=e.slice(),e[0]+=n):e+=n,e}}}}};class Ha extends Ca{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const e=this._cachedMeta,{dataset:n,data:i=[],_dataset:o}=e,r=this.chart._animationsDisabled;let{start:a,count:s}=Qi(e,i,r);this._drawStart=a,this._drawCount=s,to(e)&&(a=0,s=i.length),n._chart=this.chart,n._datasetIndex=this.index,n._decimated=!!o._decimated,n.points=i;const l=this.resolveDatasetElementOptions(t);this.options.showLine||(l.borderWidth=0),l.segment=this.options.segment,this.updateElement(n,void 0,{animated:!r,options:l},t),this.updateElements(i,a,s,t)}updateElements(t,e,n,i){const o="reset"===i,{iScale:r,vScale:a,_stacked:s,_dataset:l}=this._cachedMeta,{sharedOptions:c,includeOptions:d}=this._getSharedOptions(e,i),h=r.axis,u=a.axis,{spanGaps:p,segment:f}=this.options,g=Ci(p)?p:Number.POSITIVE_INFINITY,m=this.chart._animationsDisabled||o||"none"===i;let b=e>0&&this.getParsed(e-1);for(let p=e;p<e+n;++p){const e=t[p],n=this.getParsed(p),x=m?e:{},v=Kn(n[u]),y=x[h]=r.getPixelForValue(n[h],p),_=x[u]=o||v?a.getBasePixel():a.getPixelForValue(s?this.applyStack(a,n,s):n[u],p);x.skip=isNaN(y)||isNaN(_)||v,x.stop=p>0&&Math.abs(n[h]-b[h])>g,f&&(x.parsed=n,x.raw=l.data[p]),d&&(x.options=c||this.resolveDataElementOptions(p,e.active?"active":i)),m||this.updateElement(e,p,x,i),b=n}}getMaxOverflow(){const t=this._cachedMeta,e=t.dataset,n=e.options&&e.options.borderWidth||0,i=t.data||[];if(!i.length)return n;const o=i[0].size(this.resolveDataElementOptions(0)),r=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(n,o,r)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}Ha.id="line",Ha.defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1},Ha.overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};class Wa extends Ca{constructor(t,e){super(t,e),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const e=this._cachedMeta,n=this.chart,i=n.data.labels||[],o=na(e._parsed[t].r,n.options.locale);return{label:i[t]||"",value:o}}parseObjectData(t,e,n,i){return Rr.bind(this)(t,e,n,i)}update(t){const e=this._cachedMeta.data;this._updateRadius(),this.updateElements(e,0,e.length,t)}getMinMax(){const t=this._cachedMeta,e={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach((t,n)=>{const i=this.getParsed(n).r;!isNaN(i)&&this.chart.getDataVisibility(n)&&(i<e.min&&(e.min=i),i>e.max&&(e.max=i))}),e}_updateRadius(){const t=this.chart,e=t.chartArea,n=t.options,i=Math.min(e.right-e.left,e.bottom-e.top),o=Math.max(i/2,0),r=(o-Math.max(n.cutoutPercentage?o/100*n.cutoutPercentage:1,0))/t.getVisibleDatasetCount();this.outerRadius=o-r*this.index,this.innerRadius=this.outerRadius-r}updateElements(t,e,n,i){const o="reset"===i,r=this.chart,a=r.options.animation,s=this._cachedMeta.rScale,l=s.xCenter,c=s.yCenter,d=s.getIndexAngle(0)-.5*vi;let h,u=d;const p=360/this.countVisibleElements();for(h=0;h<e;++h)u+=this._computeAngle(h,i,p);for(h=e;h<e+n;h++){const e=t[h];let n=u,f=u+this._computeAngle(h,i,p),g=r.getDataVisibility(h)?s.getDistanceFromCenterForValue(this.getParsed(h).r):0;u=f,o&&(a.animateScale&&(g=0),a.animateRotate&&(n=f=d));const m={x:l,y:c,innerRadius:0,outerRadius:g,startAngle:n,endAngle:f,options:this.resolveDataElementOptions(h,e.active?"active":i)};this.updateElement(e,h,m,i)}}countVisibleElements(){const t=this._cachedMeta;let e=0;return t.data.forEach((t,n)=>{!isNaN(this.getParsed(n).r)&&this.chart.getDataVisibility(n)&&e++}),e}_computeAngle(t,e,n){return this.chart.getDataVisibility(t)?Li(this.resolveDataElementOptions(t,e).angle||n):0}}Wa.id="polarArea",Wa.defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0},Wa.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:n}}=t.legend.options;return e.labels.map((e,i)=>{const o=t.getDatasetMeta(0).controller.getStyle(i);return{text:e,fillStyle:o.backgroundColor,strokeStyle:o.borderColor,lineWidth:o.borderWidth,pointStyle:n,hidden:!t.getDataVisibility(i),index:i}})}return[]}},onClick(t,e,n){n.chart.toggleDataVisibility(e.index),n.chart.update()}},tooltip:{callbacks:{title:()=>"",label:t=>t.chart.data.labels[t.dataIndex]+": "+t.formattedValue}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};class Va extends Ya{}Va.id="pie",Va.defaults={cutout:0,rotation:0,circumference:360,radius:"100%"};class Ua extends Ca{getLabelAndValue(t){const e=this._cachedMeta.vScale,n=this.getParsed(t);return{label:e.getLabels()[t],value:""+e.getLabelForValue(n[e.axis])}}parseObjectData(t,e,n,i){return Rr.bind(this)(t,e,n,i)}update(t){const e=this._cachedMeta,n=e.dataset,i=e.data||[],o=e.iScale.getLabels();if(n.points=i,"resize"!==t){const e=this.resolveDatasetElementOptions(t);this.options.showLine||(e.borderWidth=0);const r={_loop:!0,_fullLoop:o.length===i.length,options:e};this.updateElement(n,void 0,r,t)}this.updateElements(i,0,i.length,t)}updateElements(t,e,n,i){const o=this._cachedMeta.rScale,r="reset"===i;for(let a=e;a<e+n;a++){const e=t[a],n=this.resolveDataElementOptions(a,e.active?"active":i),s=o.getPointPositionForValue(a,this.getParsed(a).r),l=r?o.xCenter:s.x,c=r?o.yCenter:s.y,d={x:l,y:c,angle:s.angle,skip:isNaN(l)||isNaN(c),options:n};this.updateElement(e,a,d,i)}}}Ua.id="radar",Ua.defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}},Ua.overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};class Ga{constructor(){this.x=void 0,this.y=void 0,this.active=!1,this.options=void 0,this.$animations=void 0}tooltipPosition(t){const{x:e,y:n}=this.getProps(["x","y"],t);return{x:e,y:n}}hasValue(){return Ci(this.x)&&Ci(this.y)}getProps(t,e){const n=this.$animations;if(!e||!n)return this;const i={};return t.forEach(t=>{i[t]=n[t]&&n[t].active()?n[t]._to:this[t]}),i}}Ga.defaults={},Ga.defaultRoutes=void 0;const $a={values:t=>Jn(t)?t:""+t,numeric(t,e,n){if(0===t)return"0";const i=this.chart.options.locale;let o,r=t;if(n.length>1){const e=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(e<1e-4||e>1e15)&&(o="scientific"),r=function(t,e){let n=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;Math.abs(n)>=1&&t!==Math.floor(t)&&(n=t-Math.floor(t));return n}(t,n)}const a=Ti(Math.abs(r)),s=Math.max(Math.min(-1*Math.floor(a),20),0),l={notation:o,minimumFractionDigits:s,maximumFractionDigits:s};return Object.assign(l,this.options.ticks.format),na(t,i,l)},logarithmic(t,e,n){if(0===t)return"0";const i=t/Math.pow(10,Math.floor(Ti(t)));return 1===i||2===i||5===i?$a.numeric.call(this,t,e,n):""}};var Xa={formatters:$a};function qa(t,e){const n=t.options.ticks,i=n.maxTicksLimit||function(t){const e=t.options.offset,n=t._tickSize(),i=t._length/n+(e?0:1),o=t._maxLength/n;return Math.floor(Math.min(i,o))}(t),o=n.major.enabled?function(t){const e=[];let n,i;for(n=0,i=t.length;n<i;n++)t[n].major&&e.push(n);return e}(e):[],r=o.length,a=o[0],s=o[r-1],l=[];if(r>i)return function(t,e,n,i){let o,r=0,a=n[0];for(i=Math.ceil(i),o=0;o<t.length;o++)o===a&&(e.push(t[o]),r++,a=n[r*i])}(e,l,o,r/i),l;const c=function(t,e,n){const i=function(t){const e=t.length;let n,i;if(e<2)return!1;for(i=t[0],n=1;n<e;++n)if(t[n]-t[n-1]!==i)return!1;return i}(t),o=e.length/n;if(!i)return Math.max(o,1);const r=function(t){const e=[],n=Math.sqrt(t);let i;for(i=1;i<n;i++)t%i===0&&(e.push(i),e.push(t/i));return n===(0|n)&&e.push(n),e.sort((t,e)=>t-e).pop(),e}(i);for(let t=0,e=r.length-1;t<e;t++){const e=r[t];if(e>o)return e}return Math.max(o,1)}(o,e,i);if(r>0){let t,n;const i=r>1?Math.round((s-a)/(r-1)):null;for(Za(e,l,c,Kn(i)?0:a-i,a),t=0,n=r-1;t<n;t++)Za(e,l,c,o[t],o[t+1]);return Za(e,l,c,s,Kn(i)?e.length:s+i),l}return Za(e,l,c),l}function Za(t,e,n,i,o){const r=ni(i,0),a=Math.min(ni(o,t.length),t.length);let s,l,c,d=0;for(n=Math.ceil(n),o&&(s=o-i,n=s/Math.floor(s/n)),c=r;c<0;)d++,c=Math.round(r+d*n);for(l=Math.max(r,0);l<a;l++)l===c&&(e.push(t[l]),d++,c=Math.round(r+d*n))}$o.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",grace:0,grid:{display:!0,lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,e)=>e.lineWidth,tickColor:(t,e)=>e.color,offset:!1,borderDash:[],borderDashOffset:0,borderWidth:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Xa.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),$o.route("scale.ticks","color","","color"),$o.route("scale.grid","color","","borderColor"),$o.route("scale.grid","borderColor","","borderColor"),$o.route("scale.title","color","","color"),$o.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&"callback"!==t&&"parser"!==t,_indexable:t=>"borderDash"!==t&&"tickBorderDash"!==t}),$o.describe("scales",{_fallback:"scale"}),$o.describe("scale.ticks",{_scriptable:t=>"backdropPadding"!==t&&"callback"!==t,_indexable:t=>"backdropPadding"!==t});const Ka=(t,e,n)=>"top"===e||"left"===e?t[e]+n:t[e]-n;function Ja(t,e){const n=[],i=t.length/e,o=t.length;let r=0;for(;r<o;r+=i)n.push(t[Math.floor(r)]);return n}function Qa(t,e,n){const i=t.ticks.length,o=Math.min(e,i-1),r=t._startPixel,a=t._endPixel,s=1e-6;let l,c=t.getPixelForTick(o);if(!(n&&(l=1===i?Math.max(c-r,a-c):0===e?(t.getPixelForTick(1)-c)/2:(c-t.getPixelForTick(o-1))/2,c+=o<e?l:-l,c<r-s||c>a+s)))return c}function ts(t){return t.drawTicks?t.tickLength:0}function es(t,e){if(!t.display)return 0;const n=mr(t.font,e),i=gr(t.padding);return(Jn(t.text)?t.text.length:1)*n.lineHeight+i.height}function ns(t,e,n){let i=Ki(t);return(n&&"right"!==e||!n&&"right"===e)&&(i=(t=>"left"===t?"right":"right"===t?"left":t)(i)),i}class is extends Ga{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,e){return t}getUserBounds(){let{_userMin:t,_userMax:e,_suggestedMin:n,_suggestedMax:i}=this;return t=ei(t,Number.POSITIVE_INFINITY),e=ei(e,Number.NEGATIVE_INFINITY),n=ei(n,Number.POSITIVE_INFINITY),i=ei(i,Number.NEGATIVE_INFINITY),{min:ei(t,n),max:ei(e,i),minDefined:ti(t),maxDefined:ti(e)}}getMinMax(t){let e,{min:n,max:i,minDefined:o,maxDefined:r}=this.getUserBounds();if(o&&r)return{min:n,max:i};const a=this.getMatchingVisibleMetas();for(let s=0,l=a.length;s<l;++s)e=a[s].controller.getMinMax(this,t),o||(n=Math.min(n,e.min)),r||(i=Math.max(i,e.max));return n=r&&n>i?i:n,i=o&&n>i?n:i,{min:ei(n,ei(i,n)),max:ei(i,ei(n,i))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){oi(this.options.beforeUpdate,[this])}update(t,e,n){const{beginAtZero:i,grace:o,ticks:r}=this.options,a=r.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=e,this._margins=n=Object.assign({left:0,right:0,top:0,bottom:0},n),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+n.left+n.right:this.height+n.top+n.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=function(t,e,n){const{min:i,max:o}=t,r=ii(e,(o-i)/2),a=(t,e)=>n&&0===t?0:t+e;return{min:a(i,-Math.abs(r)),max:a(o,r)}}(this,o,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const s=a<this.ticks.length;this._convertTicksToLabels(s?Ja(this.ticks,a):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),r.display&&(r.autoSkip||"auto"===r.source)&&(this.ticks=qa(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),s&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t,e,n=this.options.reverse;this.isHorizontal()?(t=this.left,e=this.right):(t=this.top,e=this.bottom,n=!n),this._startPixel=t,this._endPixel=e,this._reversePixels=n,this._length=e-t,this._alignToPixels=this.options.alignToPixels}afterUpdate(){oi(this.options.afterUpdate,[this])}beforeSetDimensions(){oi(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){oi(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),oi(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){oi(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const e=this.options.ticks;let n,i,o;for(n=0,i=t.length;n<i;n++)o=t[n],o.label=oi(e.callback,[o.value,n,t],this)}afterTickToLabelConversion(){oi(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){oi(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,e=t.ticks,n=this.ticks.length,i=e.minRotation||0,o=e.maxRotation;let r,a,s,l=i;if(!this._isVisible()||!e.display||i>=o||n<=1||!this.isHorizontal())return void(this.labelRotation=i);const c=this._getLabelSizes(),d=c.widest.width,h=c.highest.height,u=Yi(this.chart.width-d,0,this.maxWidth);r=t.offset?this.maxWidth/n:u/(n-1),d+6>r&&(r=u/(n-(t.offset?.5:1)),a=this.maxHeight-ts(t.grid)-e.padding-es(t.title,this.chart.options.font),s=Math.sqrt(d*d+h*h),l=Pi(Math.min(Math.asin(Yi((c.highest.height+6)/r,-1,1)),Math.asin(Yi(a/s,-1,1))-Math.asin(Yi(h/s,-1,1)))),l=Math.max(i,Math.min(o,l))),this.labelRotation=l}afterCalculateLabelRotation(){oi(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){oi(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:e,options:{ticks:n,title:i,grid:o}}=this,r=this._isVisible(),a=this.isHorizontal();if(r){const r=es(i,e.options.font);if(a?(t.width=this.maxWidth,t.height=ts(o)+r):(t.height=this.maxHeight,t.width=ts(o)+r),n.display&&this.ticks.length){const{first:e,last:i,widest:o,highest:r}=this._getLabelSizes(),s=2*n.padding,l=Li(this.labelRotation),c=Math.cos(l),d=Math.sin(l);if(a){const e=n.mirror?0:d*o.width+c*r.height;t.height=Math.min(this.maxHeight,t.height+e+s)}else{const e=n.mirror?0:c*o.width+d*r.height;t.width=Math.min(this.maxWidth,t.width+e+s)}this._calculatePadding(e,i,d,c)}}this._handleMargins(),a?(this.width=this._length=e.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=e.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,e,n,i){const{ticks:{align:o,padding:r},position:a}=this.options,s=0!==this.labelRotation,l="top"!==a&&"x"===this.axis;if(this.isHorizontal()){const a=this.getPixelForTick(0)-this.left,c=this.right-this.getPixelForTick(this.ticks.length-1);let d=0,h=0;s?l?(d=i*t.width,h=n*e.height):(d=n*t.height,h=i*e.width):"start"===o?h=e.width:"end"===o?d=t.width:"inner"!==o&&(d=t.width/2,h=e.width/2),this.paddingLeft=Math.max((d-a+r)*this.width/(this.width-a),0),this.paddingRight=Math.max((h-c+r)*this.width/(this.width-c),0)}else{let n=e.height/2,i=t.height/2;"start"===o?(n=0,i=t.height):"end"===o&&(n=e.height,i=0),this.paddingTop=n+r,this.paddingBottom=i+r}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){oi(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:e}=this.options;return"top"===e||"bottom"===e||"x"===t}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){let e,n;for(this.beforeTickToLabelConversion(),this.generateTickLabels(t),e=0,n=t.length;e<n;e++)Kn(t[e].label)&&(t.splice(e,1),n--,e--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const e=this.options.ticks.sampleSize;let n=this.ticks;e<n.length&&(n=Ja(n,e)),this._labelSizes=t=this._computeLabelSizes(n,n.length)}return t}_computeLabelSizes(t,e){const{ctx:n,_longestTextCache:i}=this,o=[],r=[];let a,s,l,c,d,h,u,p,f,g,m,b=0,x=0;for(a=0;a<e;++a){if(c=t[a].label,d=this._resolveTickFontOptions(a),n.font=h=d.string,u=i[h]=i[h]||{data:{},gc:[]},p=d.lineHeight,f=g=0,Kn(c)||Jn(c)){if(Jn(c))for(s=0,l=c.length;s<l;++s)m=c[s],Kn(m)||Jn(m)||(f=Xo(n,u.data,u.gc,f,m),g+=p)}else f=Xo(n,u.data,u.gc,f,c),g=p;o.push(f),r.push(g),b=Math.max(f,b),x=Math.max(g,x)}!function(t,e){ri(t,t=>{const n=t.gc,i=n.length/2;let o;if(i>e){for(o=0;o<i;++o)delete t.data[n[o]];n.splice(0,i)}})}(i,e);const v=o.indexOf(b),y=r.indexOf(x),_=t=>({width:o[t]||0,height:r[t]||0});return{first:_(0),last:_(e-1),widest:_(v),highest:_(y),widths:o,heights:r}}getLabelForValue(t){return t}getPixelForValue(t,e){return NaN}getValueForPixel(t){}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const e=this._startPixel+t*this._length;return Yi(this._alignToPixels?Zo(this.chart,e,0):e,-32768,32767)}getDecimalForPixel(t){const e=(t-this._startPixel)/this._length;return this._reversePixels?1-e:e}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:e}=this;return t<0&&e<0?e:t>0&&e>0?t:0}getContext(t){const e=this.ticks||[];if(t>=0&&t<e.length){const n=e[t];return n.$context||(n.$context=function(t,e,n){return xr(t,{tick:n,index:e,type:"tick"})}(this.getContext(),t,n))}return this.$context||(this.$context=xr(this.chart.getContext(),{scale:this,type:"scale"}))}_tickSize(){const t=this.options.ticks,e=Li(this.labelRotation),n=Math.abs(Math.cos(e)),i=Math.abs(Math.sin(e)),o=this._getLabelSizes(),r=t.autoSkipPadding||0,a=o?o.widest.width+r:0,s=o?o.highest.height+r:0;return this.isHorizontal()?s*n>a*i?a/n:s/i:s*i<a*n?s/n:a/i}_isVisible(){const t=this.options.display;return"auto"!==t?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const e=this.axis,n=this.chart,i=this.options,{grid:o,position:r}=i,a=o.offset,s=this.isHorizontal(),l=this.ticks.length+(a?1:0),c=ts(o),d=[],h=o.setContext(this.getContext()),u=h.drawBorder?h.borderWidth:0,p=u/2,f=function(t){return Zo(n,t,u)};let g,m,b,x,v,y,_,w,k,S,E,O;if("top"===r)g=f(this.bottom),y=this.bottom-c,w=g-p,S=f(t.top)+p,O=t.bottom;else if("bottom"===r)g=f(this.top),S=t.top,O=f(t.bottom)-p,y=g+p,w=this.top+c;else if("left"===r)g=f(this.right),v=this.right-c,_=g-p,k=f(t.left)+p,E=t.right;else if("right"===r)g=f(this.left),k=t.left,E=f(t.right)-p,v=g+p,_=this.left+c;else if("x"===e){if("center"===r)g=f((t.top+t.bottom)/2+.5);else if(Qn(r)){const t=Object.keys(r)[0],e=r[t];g=f(this.chart.scales[t].getPixelForValue(e))}S=t.top,O=t.bottom,y=g+p,w=y+c}else if("y"===e){if("center"===r)g=f((t.left+t.right)/2);else if(Qn(r)){const t=Object.keys(r)[0],e=r[t];g=f(this.chart.scales[t].getPixelForValue(e))}v=g-p,_=v-c,k=t.left,E=t.right}const T=ni(i.ticks.maxTicksLimit,l),M=Math.max(1,Math.ceil(l/T));for(m=0;m<l;m+=M){const t=o.setContext(this.getContext(m)),e=t.lineWidth,i=t.color,r=t.borderDash||[],l=t.borderDashOffset,c=t.tickWidth,h=t.tickColor,u=t.tickBorderDash||[],p=t.tickBorderDashOffset;b=Qa(this,m,a),void 0!==b&&(x=Zo(n,b,e),s?v=_=k=E=x:y=w=S=O=x,d.push({tx1:v,ty1:y,tx2:_,ty2:w,x1:k,y1:S,x2:E,y2:O,width:e,color:i,borderDash:r,borderDashOffset:l,tickWidth:c,tickColor:h,tickBorderDash:u,tickBorderDashOffset:p}))}return this._ticksLength=l,this._borderValue=g,d}_computeLabelItems(t){const e=this.axis,n=this.options,{position:i,ticks:o}=n,r=this.isHorizontal(),a=this.ticks,{align:s,crossAlign:l,padding:c,mirror:d}=o,h=ts(n.grid),u=h+c,p=d?-c:u,f=-Li(this.labelRotation),g=[];let m,b,x,v,y,_,w,k,S,E,O,T,M="middle";if("top"===i)_=this.bottom-p,w=this._getXAxisLabelAlignment();else if("bottom"===i)_=this.top+p,w=this._getXAxisLabelAlignment();else if("left"===i){const t=this._getYAxisLabelAlignment(h);w=t.textAlign,y=t.x}else if("right"===i){const t=this._getYAxisLabelAlignment(h);w=t.textAlign,y=t.x}else if("x"===e){if("center"===i)_=(t.top+t.bottom)/2+u;else if(Qn(i)){const t=Object.keys(i)[0],e=i[t];_=this.chart.scales[t].getPixelForValue(e)+u}w=this._getXAxisLabelAlignment()}else if("y"===e){if("center"===i)y=(t.left+t.right)/2-u;else if(Qn(i)){const t=Object.keys(i)[0],e=i[t];y=this.chart.scales[t].getPixelForValue(e)}w=this._getYAxisLabelAlignment(h).textAlign}"y"===e&&("start"===s?M="top":"end"===s&&(M="bottom"));const D=this._getLabelSizes();for(m=0,b=a.length;m<b;++m){x=a[m],v=x.label;const t=o.setContext(this.getContext(m));k=this.getPixelForTick(m)+o.labelOffset,S=this._resolveTickFontOptions(m),E=S.lineHeight,O=Jn(v)?v.length:1;const e=O/2,n=t.color,s=t.textStrokeColor,c=t.textStrokeWidth;let h,u=w;if(r?(y=k,"inner"===w&&(u=m===b-1?this.options.reverse?"left":"right":0===m?this.options.reverse?"right":"left":"center"),T="top"===i?"near"===l||0!==f?-O*E+E/2:"center"===l?-D.highest.height/2-e*E+E:-D.highest.height+E/2:"near"===l||0!==f?E/2:"center"===l?D.highest.height/2-e*E:D.highest.height-O*E,d&&(T*=-1)):(_=k,T=(1-O)*E/2),t.showLabelBackdrop){const e=gr(t.backdropPadding),n=D.heights[m],i=D.widths[m];let o=_+T-e.top,r=y-e.left;switch(M){case"middle":o-=n/2;break;case"bottom":o-=n}switch(w){case"center":r-=i/2;break;case"right":r-=i}h={left:r,top:o,width:i+e.width,height:n+e.height,color:t.backdropColor}}g.push({rotation:f,label:v,font:S,color:n,strokeColor:s,strokeWidth:c,textOffset:T,textAlign:u,textBaseline:M,translation:[y,_],backdrop:h})}return g}_getXAxisLabelAlignment(){const{position:t,ticks:e}=this.options;if(-Li(this.labelRotation))return"top"===t?"left":"right";let n="center";return"start"===e.align?n="left":"end"===e.align?n="right":"inner"===e.align&&(n="inner"),n}_getYAxisLabelAlignment(t){const{position:e,ticks:{crossAlign:n,mirror:i,padding:o}}=this.options,r=t+o,a=this._getLabelSizes().widest.width;let s,l;return"left"===e?i?(l=this.right+o,"near"===n?s="left":"center"===n?(s="center",l+=a/2):(s="right",l+=a)):(l=this.right-r,"near"===n?s="right":"center"===n?(s="center",l-=a/2):(s="left",l=this.left)):"right"===e?i?(l=this.left+o,"near"===n?s="right":"center"===n?(s="center",l-=a/2):(s="left",l-=a)):(l=this.left+r,"near"===n?s="left":"center"===n?(s="center",l+=a/2):(s="right",l=this.right)):s="right",{textAlign:s,x:l}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,e=this.options.position;return"left"===e||"right"===e?{top:0,left:this.left,bottom:t.height,right:this.right}:"top"===e||"bottom"===e?{top:this.top,left:0,bottom:this.bottom,right:t.width}:void 0}drawBackground(){const{ctx:t,options:{backgroundColor:e},left:n,top:i,width:o,height:r}=this;e&&(t.save(),t.fillStyle=e,t.fillRect(n,i,o,r),t.restore())}getLineWidthForValue(t){const e=this.options.grid;if(!this._isVisible()||!e.display)return 0;const n=this.ticks.findIndex(e=>e.value===t);if(n>=0){return e.setContext(this.getContext(n)).lineWidth}return 0}drawGrid(t){const e=this.options.grid,n=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let o,r;const a=(t,e,i)=>{i.width&&i.color&&(n.save(),n.lineWidth=i.width,n.strokeStyle=i.color,n.setLineDash(i.borderDash||[]),n.lineDashOffset=i.borderDashOffset,n.beginPath(),n.moveTo(t.x,t.y),n.lineTo(e.x,e.y),n.stroke(),n.restore())};if(e.display)for(o=0,r=i.length;o<r;++o){const t=i[o];e.drawOnChartArea&&a({x:t.x1,y:t.y1},{x:t.x2,y:t.y2},t),e.drawTicks&&a({x:t.tx1,y:t.ty1},{x:t.tx2,y:t.ty2},{color:t.tickColor,width:t.tickWidth,borderDash:t.tickBorderDash,borderDashOffset:t.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:e,options:{grid:n}}=this,i=n.setContext(this.getContext()),o=n.drawBorder?i.borderWidth:0;if(!o)return;const r=n.setContext(this.getContext(0)).lineWidth,a=this._borderValue;let s,l,c,d;this.isHorizontal()?(s=Zo(t,this.left,o)-o/2,l=Zo(t,this.right,r)+r/2,c=d=a):(c=Zo(t,this.top,o)-o/2,d=Zo(t,this.bottom,r)+r/2,s=l=a),e.save(),e.lineWidth=i.borderWidth,e.strokeStyle=i.borderColor,e.beginPath(),e.moveTo(s,c),e.lineTo(l,d),e.stroke(),e.restore()}drawLabels(t){if(!this.options.ticks.display)return;const e=this.ctx,n=this._computeLabelArea();n&&er(e,n);const i=this._labelItems||(this._labelItems=this._computeLabelItems(t));let o,r;for(o=0,r=i.length;o<r;++o){const t=i[o],n=t.font,r=t.label;t.backdrop&&(e.fillStyle=t.backdrop.color,e.fillRect(t.backdrop.left,t.backdrop.top,t.backdrop.width,t.backdrop.height)),rr(e,r,0,t.textOffset,n,t)}n&&nr(e)}drawTitle(){const{ctx:t,options:{position:e,title:n,reverse:i}}=this;if(!n.display)return;const o=mr(n.font),r=gr(n.padding),a=n.align;let s=o.lineHeight/2;"bottom"===e||"center"===e||Qn(e)?(s+=r.bottom,Jn(n.text)&&(s+=o.lineHeight*(n.text.length-1))):s+=r.top;const{titleX:l,titleY:c,maxWidth:d,rotation:h}=function(t,e,n,i){const{top:o,left:r,bottom:a,right:s,chart:l}=t,{chartArea:c,scales:d}=l;let h,u,p,f=0;const g=a-o,m=s-r;if(t.isHorizontal()){if(u=Ji(i,r,s),Qn(n)){const t=Object.keys(n)[0],i=n[t];p=d[t].getPixelForValue(i)+g-e}else p="center"===n?(c.bottom+c.top)/2+g-e:Ka(t,n,e);h=s-r}else{if(Qn(n)){const t=Object.keys(n)[0],i=n[t];u=d[t].getPixelForValue(i)-m+e}else u="center"===n?(c.left+c.right)/2-m+e:Ka(t,n,e);p=Ji(i,a,o),f="left"===n?-Si:Si}return{titleX:u,titleY:p,maxWidth:h,rotation:f}}(this,s,e,a);rr(t,n.text,0,0,o,{color:n.color,maxWidth:d,rotation:h,textAlign:ns(a,e,i),textBaseline:"middle",translation:[l,c]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,e=t.ticks&&t.ticks.z||0,n=ni(t.grid&&t.grid.z,-1);return this._isVisible()&&this.draw===is.prototype.draw?[{z:n,draw:t=>{this.drawBackground(),this.drawGrid(t),this.drawTitle()}},{z:n+1,draw:()=>{this.drawBorder()}},{z:e,draw:t=>{this.drawLabels(t)}}]:[{z:e,draw:t=>{this.draw(t)}}]}getMatchingVisibleMetas(t){const e=this.chart.getSortedVisibleDatasetMetas(),n=this.axis+"AxisID",i=[];let o,r;for(o=0,r=e.length;o<r;++o){const r=e[o];r[n]!==this.id||t&&r.type!==t||i.push(r)}return i}_resolveTickFontOptions(t){return mr(this.options.ticks.setContext(this.getContext(t)).font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class os{constructor(t,e,n){this.type=t,this.scope=e,this.override=n,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const e=Object.getPrototypeOf(t);let n;(function(t){return"id"in t&&"defaults"in t})(e)&&(n=this.register(e));const i=this.items,o=t.id,r=this.scope+"."+o;if(!o)throw new Error("class does not have id: "+t);return o in i||(i[o]=t,function(t,e,n){const i=di(Object.create(null),[n?$o.get(n):{},$o.get(e),t.defaults]);$o.set(e,i),t.defaultRoutes&&function(t,e){Object.keys(e).forEach(n=>{const i=n.split("."),o=i.pop(),r=[t].concat(i).join("."),a=e[n].split("."),s=a.pop(),l=a.join(".");$o.route(r,o,l,s)})}(e,t.defaultRoutes);t.descriptors&&$o.describe(e,t.descriptors)}(t,r,n),this.override&&$o.override(t.id,t.overrides)),r}get(t){return this.items[t]}unregister(t){const e=this.items,n=t.id,i=this.scope;n in e&&delete e[n],i&&n in $o[i]&&(delete $o[i][n],this.override&&delete Wo[n])}}var rs=new class{constructor(){this.controllers=new os(Ca,"datasets",!0),this.elements=new os(Ga,"elements"),this.plugins=new os(Object,"plugins"),this.scales=new os(is,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,e,n){[...e].forEach(e=>{const i=n||this._getRegistryForType(e);n||i.isForType(e)||i===this.plugins&&e.id?this._exec(t,i,e):ri(e,e=>{const i=n||this._getRegistryForType(e);this._exec(t,i,e)})})}_exec(t,e,n){const i=gi(t);oi(n["before"+i],[],n),e[t](n),oi(n["after"+i],[],n)}_getRegistryForType(t){for(let e=0;e<this._typedRegistries.length;e++){const n=this._typedRegistries[e];if(n.isForType(t))return n}return this.plugins}_get(t,e,n){const i=e.get(t);if(void 0===i)throw new Error('"'+t+'" is not a registered '+n+".");return i}};class as extends Ca{update(t){const e=this._cachedMeta,{data:n=[]}=e,i=this.chart._animationsDisabled;let{start:o,count:r}=Qi(e,n,i);if(this._drawStart=o,this._drawCount=r,to(e)&&(o=0,r=n.length),this.options.showLine){const{dataset:o,_dataset:r}=e;o._chart=this.chart,o._datasetIndex=this.index,o._decimated=!!r._decimated,o.points=n;const a=this.resolveDatasetElementOptions(t);a.segment=this.options.segment,this.updateElement(o,void 0,{animated:!i,options:a},t)}this.updateElements(n,o,r,t)}addElements(){const{showLine:t}=this.options;!this.datasetElementType&&t&&(this.datasetElementType=rs.getElement("line")),super.addElements()}updateElements(t,e,n,i){const o="reset"===i,{iScale:r,vScale:a,_stacked:s,_dataset:l}=this._cachedMeta,c=this.resolveDataElementOptions(e,i),d=this.getSharedOptions(c),h=this.includeOptions(i,d),u=r.axis,p=a.axis,{spanGaps:f,segment:g}=this.options,m=Ci(f)?f:Number.POSITIVE_INFINITY,b=this.chart._animationsDisabled||o||"none"===i;let x=e>0&&this.getParsed(e-1);for(let c=e;c<e+n;++c){const e=t[c],n=this.getParsed(c),f=b?e:{},v=Kn(n[p]),y=f[u]=r.getPixelForValue(n[u],c),_=f[p]=o||v?a.getBasePixel():a.getPixelForValue(s?this.applyStack(a,n,s):n[p],c);f.skip=isNaN(y)||isNaN(_)||v,f.stop=c>0&&Math.abs(n[u]-x[u])>m,g&&(f.parsed=n,f.raw=l.data[c]),h&&(f.options=d||this.resolveDataElementOptions(c,e.active?"active":i)),b||this.updateElement(e,c,f,i),x=n}this.updateSharedOptions(d,i,c)}getMaxOverflow(){const t=this._cachedMeta,e=t.data||[];if(!this.options.showLine){let t=0;for(let n=e.length-1;n>=0;--n)t=Math.max(t,e[n].size(this.resolveDataElementOptions(n))/2);return t>0&&t}const n=t.dataset,i=n.options&&n.options.borderWidth||0;if(!e.length)return i;const o=e[0].size(this.resolveDataElementOptions(0)),r=e[e.length-1].size(this.resolveDataElementOptions(e.length-1));return Math.max(i,o,r)/2}}function ss(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}as.id="scatter",as.defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1},as.overrides={interaction:{mode:"point"},plugins:{tooltip:{callbacks:{title:()=>"",label:t=>"("+t.label+", "+t.formattedValue+")"}}},scales:{x:{type:"linear"},y:{type:"linear"}}};class ls{constructor(t){this.options=t||{}}init(t){}formats(){return ss()}parse(t,e){return ss()}format(t,e){return ss()}add(t,e,n){return ss()}diff(t,e,n){return ss()}startOf(t,e,n){return ss()}endOf(t,e){return ss()}}ls.override=function(t){Object.assign(ls.prototype,t)};var cs={_date:ls};function ds(t,e,n,i){const{controller:o,data:r,_sorted:a}=t,s=o._cachedMeta.iScale;if(s&&e===s.axis&&"r"!==e&&a&&r.length){const t=s._reversePixels?Ui:Vi;if(!i)return t(r,e,n);if(o._sharedOptions){const i=r[0],o="function"==typeof i.getRange&&i.getRange(e);if(o){const i=t(r,e,n-o),a=t(r,e,n+o);return{lo:i.lo,hi:a.hi}}}}return{lo:0,hi:r.length-1}}function hs(t,e,n,i,o){const r=t.getSortedVisibleDatasetMetas(),a=n[e];for(let t=0,n=r.length;t<n;++t){const{index:n,data:s}=r[t],{lo:l,hi:c}=ds(r[t],e,a,o);for(let t=l;t<=c;++t){const e=s[t];e.skip||i(e,n,t)}}}function us(t,e,n,i,o){const r=[];if(!o&&!t.isPointInArea(e))return r;return hs(t,n,e,function(n,a,s){(o||tr(n,t.chartArea,0))&&n.inRange(e.x,e.y,i)&&r.push({element:n,datasetIndex:a,index:s})},!0),r}function ps(t,e,n,i,o,r){let a=[];const s=function(t){const e=-1!==t.indexOf("x"),n=-1!==t.indexOf("y");return function(t,i){const o=e?Math.abs(t.x-i.x):0,r=n?Math.abs(t.y-i.y):0;return Math.sqrt(Math.pow(o,2)+Math.pow(r,2))}}(n);let l=Number.POSITIVE_INFINITY;return hs(t,n,e,function(n,c,d){const h=n.inRange(e.x,e.y,o);if(i&&!h)return;const u=n.getCenterPoint(o);if(!(!!r||t.isPointInArea(u))&&!h)return;const p=s(e,u);p<l?(a=[{element:n,datasetIndex:c,index:d}],l=p):p===l&&a.push({element:n,datasetIndex:c,index:d})}),a}function fs(t,e,n,i,o,r){return r||t.isPointInArea(e)?"r"!==n||i?ps(t,e,n,i,o,r):function(t,e,n,i){let o=[];return hs(t,n,e,function(t,n,r){const{startAngle:a,endAngle:s}=t.getProps(["startAngle","endAngle"],i),{angle:l}=Ni(t,{x:e.x,y:e.y});ji(l,a,s)&&o.push({element:t,datasetIndex:n,index:r})}),o}(t,e,n,o):[]}function gs(t,e,n,i,o){const r=[],a="x"===n?"inXRange":"inYRange";let s=!1;return hs(t,n,e,(t,i,l)=>{t[a](e[n],o)&&(r.push({element:t,datasetIndex:i,index:l}),s=s||t.inRange(e.x,e.y,o))}),i&&!s?[]:r}var ms={evaluateInteractionItems:hs,modes:{index(t,e,n,i){const o=Gr(e,t),r=n.axis||"x",a=n.includeInvisible||!1,s=n.intersect?us(t,o,r,i,a):fs(t,o,r,!1,i,a),l=[];return s.length?(t.getSortedVisibleDatasetMetas().forEach(t=>{const e=s[0].index,n=t.data[e];n&&!n.skip&&l.push({element:n,datasetIndex:t.index,index:e})}),l):[]},dataset(t,e,n,i){const o=Gr(e,t),r=n.axis||"xy",a=n.includeInvisible||!1;let s=n.intersect?us(t,o,r,i,a):fs(t,o,r,!1,i,a);if(s.length>0){const e=s[0].datasetIndex,n=t.getDatasetMeta(e).data;s=[];for(let t=0;t<n.length;++t)s.push({element:n[t],datasetIndex:e,index:t})}return s},point:(t,e,n,i)=>us(t,Gr(e,t),n.axis||"xy",i,n.includeInvisible||!1),nearest(t,e,n,i){const o=Gr(e,t),r=n.axis||"xy",a=n.includeInvisible||!1;return fs(t,o,r,n.intersect,i,a)},x:(t,e,n,i)=>gs(t,Gr(e,t),"x",n.intersect,i),y:(t,e,n,i)=>gs(t,Gr(e,t),"y",n.intersect,i)}};const bs=["left","top","right","bottom"];function xs(t,e){return t.filter(t=>t.pos===e)}function vs(t,e){return t.filter(t=>-1===bs.indexOf(t.pos)&&t.box.axis===e)}function ys(t,e){return t.sort((t,n)=>{const i=e?n:t,o=e?t:n;return i.weight===o.weight?i.index-o.index:i.weight-o.weight})}function _s(t,e){const n=function(t){const e={};for(const n of t){const{stack:t,pos:i,stackWeight:o}=n;if(!t||!bs.includes(i))continue;const r=e[t]||(e[t]={count:0,placed:0,weight:0,size:0});r.count++,r.weight+=o}return e}(t),{vBoxMaxWidth:i,hBoxMaxHeight:o}=e;let r,a,s;for(r=0,a=t.length;r<a;++r){s=t[r];const{fullSize:a}=s.box,l=n[s.stack],c=l&&s.stackWeight/l.weight;s.horizontal?(s.width=c?c*i:a&&e.availableWidth,s.height=o):(s.width=i,s.height=c?c*o:a&&e.availableHeight)}return n}function ws(t,e,n,i){return Math.max(t[n],e[n])+Math.max(t[i],e[i])}function ks(t,e){t.top=Math.max(t.top,e.top),t.left=Math.max(t.left,e.left),t.bottom=Math.max(t.bottom,e.bottom),t.right=Math.max(t.right,e.right)}function Ss(t,e,n,i){const{pos:o,box:r}=n,a=t.maxPadding;if(!Qn(o)){n.size&&(t[o]-=n.size);const e=i[n.stack]||{size:0,count:1};e.size=Math.max(e.size,n.horizontal?r.height:r.width),n.size=e.size/e.count,t[o]+=n.size}r.getPadding&&ks(a,r.getPadding());const s=Math.max(0,e.outerWidth-ws(a,t,"left","right")),l=Math.max(0,e.outerHeight-ws(a,t,"top","bottom")),c=s!==t.w,d=l!==t.h;return t.w=s,t.h=l,n.horizontal?{same:c,other:d}:{same:d,other:c}}function Es(t,e){const n=e.maxPadding;function i(t){const i={left:0,top:0,right:0,bottom:0};return t.forEach(t=>{i[t]=Math.max(e[t],n[t])}),i}return i(t?["left","right"]:["top","bottom"])}function Os(t,e,n,i){const o=[];let r,a,s,l,c,d;for(r=0,a=t.length,c=0;r<a;++r){s=t[r],l=s.box,l.update(s.width||e.w,s.height||e.h,Es(s.horizontal,e));const{same:a,other:h}=Ss(e,n,s,i);c|=a&&o.length,d=d||h,l.fullSize||o.push(s)}return c&&Os(o,e,n,i)||d}function Ts(t,e,n,i,o){t.top=n,t.left=e,t.right=e+i,t.bottom=n+o,t.width=i,t.height=o}function Ms(t,e,n,i){const o=n.padding;let{x:r,y:a}=e;for(const s of t){const t=s.box,l=i[s.stack]||{count:1,placed:0,weight:1},c=s.stackWeight/l.weight||1;if(s.horizontal){const i=e.w*c,r=l.size||t.height;mi(l.start)&&(a=l.start),t.fullSize?Ts(t,o.left,a,n.outerWidth-o.right-o.left,r):Ts(t,e.left+l.placed,a,i,r),l.start=a,l.placed+=i,a=t.bottom}else{const i=e.h*c,a=l.size||t.width;mi(l.start)&&(r=l.start),t.fullSize?Ts(t,r,o.top,a,n.outerHeight-o.bottom-o.top):Ts(t,r,e.top+l.placed,a,i),l.start=r,l.placed+=i,r=t.right}}e.x=r,e.y=a}$o.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}});var Ds={addBox(t,e){t.boxes||(t.boxes=[]),e.fullSize=e.fullSize||!1,e.position=e.position||"top",e.weight=e.weight||0,e._layers=e._layers||function(){return[{z:0,draw(t){e.draw(t)}}]},t.boxes.push(e)},removeBox(t,e){const n=t.boxes?t.boxes.indexOf(e):-1;-1!==n&&t.boxes.splice(n,1)},configure(t,e,n){e.fullSize=n.fullSize,e.position=n.position,e.weight=n.weight},update(t,e,n,i){if(!t)return;const o=gr(t.options.layout.padding),r=Math.max(e-o.width,0),a=Math.max(n-o.height,0),s=function(t){const e=function(t){const e=[];let n,i,o,r,a,s;for(n=0,i=(t||[]).length;n<i;++n)o=t[n],({position:r,options:{stack:a,stackWeight:s=1}}=o),e.push({index:n,box:o,pos:r,horizontal:o.isHorizontal(),weight:o.weight,stack:a&&r+a,stackWeight:s});return e}(t),n=ys(e.filter(t=>t.box.fullSize),!0),i=ys(xs(e,"left"),!0),o=ys(xs(e,"right")),r=ys(xs(e,"top"),!0),a=ys(xs(e,"bottom")),s=vs(e,"x"),l=vs(e,"y");return{fullSize:n,leftAndTop:i.concat(r),rightAndBottom:o.concat(l).concat(a).concat(s),chartArea:xs(e,"chartArea"),vertical:i.concat(o).concat(l),horizontal:r.concat(a).concat(s)}}(t.boxes),l=s.vertical,c=s.horizontal;ri(t.boxes,t=>{"function"==typeof t.beforeLayout&&t.beforeLayout()});const d=l.reduce((t,e)=>e.box.options&&!1===e.box.options.display?t:t+1,0)||1,h=Object.freeze({outerWidth:e,outerHeight:n,padding:o,availableWidth:r,availableHeight:a,vBoxMaxWidth:r/2/d,hBoxMaxHeight:a/2}),u=Object.assign({},o);ks(u,gr(i));const p=Object.assign({maxPadding:u,w:r,h:a,x:o.left,y:o.top},o),f=_s(l.concat(c),h);Os(s.fullSize,p,h,f),Os(l,p,h,f),Os(c,p,h,f)&&Os(l,p,h,f),function(t){const e=t.maxPadding;function n(n){const i=Math.max(e[n]-t[n],0);return t[n]+=i,i}t.y+=n("top"),t.x+=n("left"),n("right"),n("bottom")}(p),Ms(s.leftAndTop,p,h,f),p.x+=p.w,p.y+=p.h,Ms(s.rightAndBottom,p,h,f),t.chartArea={left:p.left,top:p.top,right:p.left+p.w,bottom:p.top+p.h,height:p.h,width:p.w},ri(s.chartArea,e=>{const n=e.box;Object.assign(n,t.chartArea),n.update(p.w,p.h,{left:0,top:0,right:0,bottom:0})})}};class Cs{acquireContext(t,e){}releaseContext(t){return!1}addEventListener(t,e,n){}removeEventListener(t,e,n){}getDevicePixelRatio(){return 1}getMaximumSize(t,e,n,i){return e=Math.max(0,e||t.width),n=n||t.height,{width:e,height:Math.max(0,i?Math.floor(e/i):n)}}isAttached(t){return!0}updateConfig(t){}}class As extends Cs{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const Rs="$chartjs",Ls={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Ps=t=>null===t||""===t;const Is=!!Zr&&{passive:!0};function Ns(t,e,n){t.canvas.removeEventListener(e,n,Is)}function Fs(t,e){for(const n of t)if(n===e||n.contains(e))return!0}function zs(t,e,n){const i=t.canvas,o=new MutationObserver(t=>{let e=!1;for(const n of t)e=e||Fs(n.addedNodes,i),e=e&&!Fs(n.removedNodes,i);e&&n()});return o.observe(document,{childList:!0,subtree:!0}),o}function Bs(t,e,n){const i=t.canvas,o=new MutationObserver(t=>{let e=!1;for(const n of t)e=e||Fs(n.removedNodes,i),e=e&&!Fs(n.addedNodes,i);e&&n()});return o.observe(document,{childList:!0,subtree:!0}),o}const js=new Map;let Ys=0;function Hs(){const t=window.devicePixelRatio;t!==Ys&&(Ys=t,js.forEach((e,n)=>{n.currentDevicePixelRatio!==t&&e()}))}function Ws(t,e,n){const i=t.canvas,o=i&&Yr(i);if(!o)return;const r=Zi((t,e)=>{const i=o.clientWidth;n(t,e),i<o.clientWidth&&n()},window),a=new ResizeObserver(t=>{const e=t[0],n=e.contentRect.width,i=e.contentRect.height;0===n&&0===i||r(n,i)});return a.observe(o),function(t,e){js.size||window.addEventListener("resize",Hs),js.set(t,e)}(t,r),a}function Vs(t,e,n){n&&n.disconnect(),"resize"===e&&function(t){js.delete(t),js.size||window.removeEventListener("resize",Hs)}(t)}function Us(t,e,n){const i=t.canvas,o=Zi(e=>{null!==t.ctx&&n(function(t,e){const n=Ls[t.type]||t.type,{x:i,y:o}=Gr(t,e);return{type:n,chart:e,native:t,x:void 0!==i?i:null,y:void 0!==o?o:null}}(e,t))},t,t=>{const e=t[0];return[e,e.offsetX,e.offsetY]});return function(t,e,n){t.addEventListener(e,n,Is)}(i,e,o),o}class Gs extends Cs{acquireContext(t,e){const n=t&&t.getContext&&t.getContext("2d");return n&&n.canvas===t?(function(t,e){const n=t.style,i=t.getAttribute("height"),o=t.getAttribute("width");if(t[Rs]={initial:{height:i,width:o,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",Ps(o)){const e=Kr(t,"width");void 0!==e&&(t.width=e)}if(Ps(i))if(""===t.style.height)t.height=t.width/(e||2);else{const e=Kr(t,"height");void 0!==e&&(t.height=e)}}(t,e),n):null}releaseContext(t){const e=t.canvas;if(!e[Rs])return!1;const n=e[Rs].initial;["height","width"].forEach(t=>{const i=n[t];Kn(i)?e.removeAttribute(t):e.setAttribute(t,i)});const i=n.style||{};return Object.keys(i).forEach(t=>{e.style[t]=i[t]}),e.width=e.width,delete e[Rs],!0}addEventListener(t,e,n){this.removeEventListener(t,e);const i=t.$proxies||(t.$proxies={}),o={attach:zs,detach:Bs,resize:Ws}[e]||Us;i[e]=o(t,e,n)}removeEventListener(t,e){const n=t.$proxies||(t.$proxies={}),i=n[e];if(!i)return;({attach:Vs,detach:Vs,resize:Vs}[e]||Ns)(t,e,i),n[e]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,n,i){return Xr(t,e,n,i)}isAttached(t){const e=Yr(t);return!(!e||!e.isConnected)}}class $s{constructor(){this._init=[]}notify(t,e,n,i){"beforeInit"===e&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const o=i?this._descriptors(t).filter(i):this._descriptors(t),r=this._notify(o,t,e,n);return"afterDestroy"===e&&(this._notify(o,t,"stop"),this._notify(this._init,t,"uninstall")),r}_notify(t,e,n,i){i=i||{};for(const o of t){const t=o.plugin;if(!1===oi(t[n],[e,i,o.options],t)&&i.cancelable)return!1}return!0}invalidate(){Kn(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const e=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),e}_createDescriptors(t,e){const n=t&&t.config,i=ni(n.options&&n.options.plugins,{}),o=function(t){const e={},n=[],i=Object.keys(rs.plugins.items);for(let t=0;t<i.length;t++)n.push(rs.getPlugin(i[t]));const o=t.plugins||[];for(let t=0;t<o.length;t++){const i=o[t];-1===n.indexOf(i)&&(n.push(i),e[i.id]=!0)}return{plugins:n,localIds:e}}(n);return!1!==i||e?function(t,{plugins:e,localIds:n},i,o){const r=[],a=t.getContext();for(const s of e){const e=s.id,l=Xs(i[e],o);null!==l&&r.push({plugin:s,options:qs(t.config,{plugin:s,local:n[e]},l,a)})}return r}(t,o,i,e):[]}_notifyStateChanges(t){const e=this._oldCache||[],n=this._cache,i=(t,e)=>t.filter(t=>!e.some(e=>t.plugin.id===e.plugin.id));this._notify(i(e,n),t,"stop"),this._notify(i(n,e),t,"start")}}function Xs(t,e){return e||!1!==t?!0===t?{}:t:null}function qs(t,{plugin:e,local:n},i,o){const r=t.pluginScopeKeys(e),a=t.getOptionScopes(i,r);return n&&e.defaults&&a.push(e.defaults),t.createResolver(a,o,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function Zs(t,e){const n=$o.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||n.indexAxis||"x"}function Ks(t,e){return"x"===t||"y"===t?t:e.axis||("top"===(n=e.position)||"bottom"===n?"x":"left"===n||"right"===n?"y":void 0)||t.charAt(0).toLowerCase();var n}function Js(t){const e=t.options||(t.options={});e.plugins=ni(e.plugins,{}),e.scales=function(t,e){const n=Wo[t.type]||{scales:{}},i=e.scales||{},o=Zs(t.type,e),r=Object.create(null),a=Object.create(null);return Object.keys(i).forEach(t=>{const e=i[t];if(!Qn(e))return console.error(`Invalid scale configuration for scale: ${t}`);if(e._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${t}`);const s=Ks(t,e),l=function(t,e){return t===e?"_index_":"_value_"}(s,o),c=n.scales||{};r[s]=r[s]||t,a[t]=hi(Object.create(null),[{axis:s},e,c[s],c[l]])}),t.data.datasets.forEach(n=>{const o=n.type||t.type,s=n.indexAxis||Zs(o,e),l=(Wo[o]||{}).scales||{};Object.keys(l).forEach(t=>{const e=function(t,e){let n=t;return"_index_"===t?n=e:"_value_"===t&&(n="x"===e?"y":"x"),n}(t,s),o=n[e+"AxisID"]||r[e]||e;a[o]=a[o]||Object.create(null),hi(a[o],[{axis:e},i[o],l[t]])})}),Object.keys(a).forEach(t=>{const e=a[t];hi(e,[$o.scales[e.type],$o.scale])}),a}(t,e)}function Qs(t){return(t=t||{}).datasets=t.datasets||[],t.labels=t.labels||[],t}const tl=new Map,el=new Set;function nl(t,e){let n=tl.get(t);return n||(n=e(),tl.set(t,n),el.add(n)),n}const il=(t,e,n)=>{const i=fi(e,n);void 0!==i&&t.add(i)};class ol{constructor(t){this._config=function(t){return(t=t||{}).data=Qs(t.data),Js(t),t}(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=Qs(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),Js(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return nl(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,e){return nl(`${t}.transition.${e}`,()=>[[`datasets.${t}.transitions.${e}`,`transitions.${e}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,e){return nl(`${t}-${e}`,()=>[[`datasets.${t}.elements.${e}`,`datasets.${t}`,`elements.${e}`,""]])}pluginScopeKeys(t){const e=t.id;return nl(`${this.type}-plugin-${e}`,()=>[[`plugins.${e}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,e){const n=this._scopeCache;let i=n.get(t);return i&&!e||(i=new Map,n.set(t,i)),i}getOptionScopes(t,e,n){const{options:i,type:o}=this,r=this._cachedScopes(t,n),a=r.get(e);if(a)return a;const s=new Set;e.forEach(e=>{t&&(s.add(t),e.forEach(e=>il(s,t,e))),e.forEach(t=>il(s,i,t)),e.forEach(t=>il(s,Wo[o]||{},t)),e.forEach(t=>il(s,$o,t)),e.forEach(t=>il(s,Vo,t))});const l=Array.from(s);return 0===l.length&&l.push(Object.create(null)),el.has(e)&&r.set(e,l),l}chartOptionScopes(){const{options:t,type:e}=this;return[t,Wo[e]||{},$o.datasets[e]||{},{type:e},$o,Vo]}resolveNamedOptions(t,e,n,i=[""]){const o={$shared:!0},{resolver:r,subPrefixes:a}=rl(this._resolverCache,t,i);let s=r;if(function(t,e){const{isScriptable:n,isIndexable:i}=_r(t);for(const o of e){const e=n(o),r=i(o),a=(r||e)&&t[o];if(e&&(bi(a)||al(a))||r&&Jn(a))return!0}return!1}(r,e)){o.$shared=!1;s=yr(r,n=bi(n)?n():n,this.createResolver(t,n,a))}for(const t of e)o[t]=s[t];return o}createResolver(t,e,n=[""],i){const{resolver:o}=rl(this._resolverCache,t,n);return Qn(e)?yr(o,e,void 0,i):o}}function rl(t,e,n){let i=t.get(e);i||(i=new Map,t.set(e,i));const o=n.join();let r=i.get(o);if(!r){r={resolver:vr(e,n),subPrefixes:n.filter(t=>!t.toLowerCase().includes("hover"))},i.set(o,r)}return r}const al=t=>Qn(t)&&Object.getOwnPropertyNames(t).reduce((e,n)=>e||bi(t[n]),!1);const sl=["top","bottom","left","right","chartArea"];function ll(t,e){return"top"===t||"bottom"===t||-1===sl.indexOf(t)&&"x"===e}function cl(t,e){return function(n,i){return n[t]===i[t]?n[e]-i[e]:n[t]-i[t]}}function dl(t){const e=t.chart,n=e.options.animation;e.notifyPlugins("afterRender"),oi(n&&n.onComplete,[t],e)}function hl(t){const e=t.chart,n=e.options.animation;oi(n&&n.onProgress,[t],e)}function ul(t){return jr()&&"string"==typeof t?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const pl={},fl=t=>{const e=ul(t);return Object.values(pl).filter(t=>t.canvas===e).pop()};function gl(t,e,n){const i=Object.keys(t);for(const o of i){const i=+o;if(i>=e){const r=t[o];delete t[o],(n>0||i>e)&&(t[i+n]=r)}}}class ml{constructor(t,e){const n=this.config=new ol(e),i=ul(t),o=fl(i);if(o)throw new Error("Canvas is already in use. Chart with ID '"+o.id+"' must be destroyed before the canvas with ID '"+o.canvas.id+"' can be reused.");const r=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||function(t){return!jr()||"undefined"!=typeof OffscreenCanvas&&t instanceof OffscreenCanvas?As:Gs}(i)),this.platform.updateConfig(n);const a=this.platform.acquireContext(i,r.aspectRatio),s=a&&a.canvas,l=s&&s.height,c=s&&s.width;this.id=Zn(),this.ctx=a,this.canvas=s,this.width=c,this.height=l,this._options=r,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new $s,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=function(t,e){let n;return function(...i){return e?(clearTimeout(n),n=setTimeout(t,e,i)):t.apply(this,i),e}}(t=>this.update(t),r.resizeDelay||0),this._dataChanges=[],pl[this.id]=this,a&&s?(pa.listen(this,"complete",dl),pa.listen(this,"progress",hl),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:e},width:n,height:i,_aspectRatio:o}=this;return Kn(t)?e&&o?o:i?n/i:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():qr(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return Ko(this.canvas,this.ctx),this}stop(){return pa.stop(this),this}resize(t,e){pa.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){const n=this.options,i=this.canvas,o=n.maintainAspectRatio&&this.aspectRatio,r=this.platform.getMaximumSize(i,t,e,o),a=n.devicePixelRatio||this.platform.getDevicePixelRatio(),s=this.width?"resize":"attach";this.width=r.width,this.height=r.height,this._aspectRatio=this.aspectRatio,qr(this,a,!0)&&(this.notifyPlugins("resize",{size:r}),oi(n.onResize,[this,r],this),this.attached&&this._doResize(s)&&this.render())}ensureScalesHaveIDs(){ri(this.options.scales||{},(t,e)=>{t.id=e})}buildOrUpdateScales(){const t=this.options,e=t.scales,n=this.scales,i=Object.keys(n).reduce((t,e)=>(t[e]=!1,t),{});let o=[];e&&(o=o.concat(Object.keys(e).map(t=>{const n=e[t],i=Ks(t,n),o="r"===i,r="x"===i;return{options:n,dposition:o?"chartArea":r?"bottom":"left",dtype:o?"radialLinear":r?"category":"linear"}}))),ri(o,e=>{const o=e.options,r=o.id,a=Ks(r,o),s=ni(o.type,e.dtype);void 0!==o.position&&ll(o.position,a)===ll(e.dposition)||(o.position=e.dposition),i[r]=!0;let l=null;if(r in n&&n[r].type===s)l=n[r];else{l=new(rs.getScale(s))({id:r,type:s,ctx:this.ctx,chart:this}),n[l.id]=l}l.init(o,t)}),ri(i,(t,e)=>{t||delete n[e]}),ri(n,t=>{Ds.configure(this,t,t.options),Ds.addBox(this,t)})}_updateMetasets(){const t=this._metasets,e=this.data.datasets.length,n=t.length;if(t.sort((t,e)=>t.index-e.index),n>e){for(let t=e;t<n;++t)this._destroyDatasetMeta(t);t.splice(e,n-e)}this._sortedMetasets=t.slice(0).sort(cl("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:e}}=this;t.length>e.length&&delete this._stacks,t.forEach((t,n)=>{0===e.filter(e=>e===t._dataset).length&&this._destroyDatasetMeta(n)})}buildOrUpdateControllers(){const t=[],e=this.data.datasets;let n,i;for(this._removeUnreferencedMetasets(),n=0,i=e.length;n<i;n++){const i=e[n];let o=this.getDatasetMeta(n);const r=i.type||this.config.type;if(o.type&&o.type!==r&&(this._destroyDatasetMeta(n),o=this.getDatasetMeta(n)),o.type=r,o.indexAxis=i.indexAxis||Zs(r,this.options),o.order=i.order||0,o.index=n,o.label=""+i.label,o.visible=this.isDatasetVisible(n),o.controller)o.controller.updateIndex(n),o.controller.linkScales();else{const e=rs.getController(r),{datasetElementType:i,dataElementType:a}=$o.datasets[r];Object.assign(e.prototype,{dataElementType:rs.getElement(a),datasetElementType:i&&rs.getElement(i)}),o.controller=new e(this,n),t.push(o.controller)}}return this._updateMetasets(),t}_resetElements(){ri(this.data.datasets,(t,e)=>{this.getDatasetMeta(e).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const e=this.config;e.update();const n=this._options=e.createResolver(e.chartOptionScopes(),this.getContext()),i=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0}))return;const o=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let r=0;for(let t=0,e=this.data.datasets.length;t<e;t++){const{controller:e}=this.getDatasetMeta(t),n=!i&&-1===o.indexOf(e);e.buildOrUpdateElements(n),r=Math.max(+e.getMaxOverflow(),r)}r=this._minPadding=n.layout.autoPadding?r:0,this._updateLayout(r),i||ri(o,t=>{t.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(cl("z","_idx"));const{_active:a,_lastEvent:s}=this;s?this._eventHandler(s,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){ri(this.scales,t=>{Ds.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,e=new Set(Object.keys(this._listeners)),n=new Set(t.events);xi(e,n)&&!!this._responsiveListeners===t.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,e=this._getUniformDataChanges()||[];for(const{method:n,start:i,count:o}of e){gl(t,i,"_removeElements"===n?-o:o)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const e=this.data.datasets.length,n=e=>new Set(t.filter(t=>t[0]===e).map((t,e)=>e+","+t.splice(1).join(","))),i=n(0);for(let t=1;t<e;t++)if(!xi(i,n(t)))return;return Array.from(i).map(t=>t.split(",")).map(t=>({method:t[1],start:+t[2],count:+t[3]}))}_updateLayout(t){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;Ds.update(this,this.width,this.height,t);const e=this.chartArea,n=e.width<=0||e.height<=0;this._layers=[],ri(this.boxes,t=>{n&&"chartArea"===t.position||(t.configure&&t.configure(),this._layers.push(...t._layers()))},this),this._layers.forEach((t,e)=>{t._idx=e}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})){for(let t=0,e=this.data.datasets.length;t<e;++t)this.getDatasetMeta(t).controller.configure();for(let e=0,n=this.data.datasets.length;e<n;++e)this._updateDataset(e,bi(t)?t({datasetIndex:e}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,e){const n=this.getDatasetMeta(t),i={meta:n,index:t,mode:e,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",i)&&(n.controller._update(e),i.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",i))}render(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(pa.has(this)?this.attached&&!pa.running(this)&&pa.start(this):(this.draw(),dl({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:t,height:e}=this._resizeBeforeDraw;this._resize(t,e),this._resizeBeforeDraw=null}if(this.clear(),this.width<=0||this.height<=0)return;if(!1===this.notifyPlugins("beforeDraw",{cancelable:!0}))return;const e=this._layers;for(t=0;t<e.length&&e[t].z<=0;++t)e[t].draw(this.chartArea);for(this._drawDatasets();t<e.length;++t)e[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const e=this._sortedMetasets,n=[];let i,o;for(i=0,o=e.length;i<o;++i){const o=e[i];t&&!o.visible||n.push(o)}return n}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(!1===this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0}))return;const t=this.getSortedVisibleDatasetMetas();for(let e=t.length-1;e>=0;--e)this._drawDataset(t[e]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const e=this.ctx,n=t._clip,i=!n.disabled,o=this.chartArea,r={meta:t,index:t.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",r)&&(i&&er(e,{left:!1===n.left?0:o.left-n.left,right:!1===n.right?this.width:o.right+n.right,top:!1===n.top?0:o.top-n.top,bottom:!1===n.bottom?this.height:o.bottom+n.bottom}),t.controller.draw(),i&&nr(e),r.cancelable=!1,this.notifyPlugins("afterDatasetDraw",r))}isPointInArea(t){return tr(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,e,n,i){const o=ms.modes[e];return"function"==typeof o?o(this,t,n,i):[]}getDatasetMeta(t){const e=this.data.datasets[t],n=this._metasets;let i=n.filter(t=>t&&t._dataset===e).pop();return i||(i={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:e&&e.order||0,index:t,_dataset:e,_parsed:[],_sorted:!1},n.push(i)),i}getContext(){return this.$context||(this.$context=xr(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const e=this.data.datasets[t];if(!e)return!1;const n=this.getDatasetMeta(t);return"boolean"==typeof n.hidden?!n.hidden:!e.hidden}setDatasetVisibility(t,e){this.getDatasetMeta(t).hidden=!e}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,e,n){const i=n?"show":"hide",o=this.getDatasetMeta(t),r=o.controller._resolveAnimations(void 0,i);mi(e)?(o.data[e].hidden=!n,this.update()):(this.setDatasetVisibility(t,n),r.update(o,{visible:n}),this.update(e=>e.datasetIndex===t?i:void 0))}hide(t,e){this._updateVisibility(t,e,!1)}show(t,e){this._updateVisibility(t,e,!0)}_destroyDatasetMeta(t){const e=this._metasets[t];e&&e.controller&&e.controller._destroy(),delete this._metasets[t]}_stop(){let t,e;for(this.stop(),pa.remove(this),t=0,e=this.data.datasets.length;t<e;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:e}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),Ko(t,e),this.platform.releaseContext(e),this.canvas=null,this.ctx=null),this.notifyPlugins("destroy"),delete pl[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,e=this.platform,n=(n,i)=>{e.addEventListener(this,n,i),t[n]=i},i=(t,e,n)=>{t.offsetX=e,t.offsetY=n,this._eventHandler(t)};ri(this.options.events,t=>n(t,i))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,e=this.platform,n=(n,i)=>{e.addEventListener(this,n,i),t[n]=i},i=(n,i)=>{t[n]&&(e.removeEventListener(this,n,i),delete t[n])},o=(t,e)=>{this.canvas&&this.resize(t,e)};let r;const a=()=>{i("attach",a),this.attached=!0,this.resize(),n("resize",o),n("detach",r)};r=()=>{this.attached=!1,i("resize",o),this._stop(),this._resize(0,0),n("attach",a)},e.isAttached(this.canvas)?a():r()}unbindEvents(){ri(this._listeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._listeners={},ri(this._responsiveListeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,e,n){const i=n?"set":"remove";let o,r,a,s;for("dataset"===e&&(o=this.getDatasetMeta(t[0].datasetIndex),o.controller["_"+i+"DatasetHoverStyle"]()),a=0,s=t.length;a<s;++a){r=t[a];const e=r&&this.getDatasetMeta(r.datasetIndex).controller;e&&e[i+"HoverStyle"](r.element,r.datasetIndex,r.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const e=this._active||[],n=t.map(({datasetIndex:t,index:e})=>{const n=this.getDatasetMeta(t);if(!n)throw new Error("No dataset found at index "+t);return{datasetIndex:t,element:n.data[e],index:e}});!ai(n,e)&&(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,e))}notifyPlugins(t,e,n){return this._plugins.notify(this,t,e,n)}_updateHoverStyles(t,e,n){const i=this.options.hover,o=(t,e)=>t.filter(t=>!e.some(e=>t.datasetIndex===e.datasetIndex&&t.index===e.index)),r=o(e,t),a=n?t:o(t,e);r.length&&this.updateHoverStyle(r,i.mode,!1),a.length&&i.mode&&this.updateHoverStyle(a,i.mode,!0)}_eventHandler(t,e){const n={event:t,replay:e,cancelable:!0,inChartArea:this.isPointInArea(t)},i=e=>(e.options.events||this.options.events).includes(t.native.type);if(!1===this.notifyPlugins("beforeEvent",n,i))return;const o=this._handleEvent(t,e,n.inChartArea);return n.cancelable=!1,this.notifyPlugins("afterEvent",n,i),(o||n.changed)&&this.render(),this}_handleEvent(t,e,n){const{_active:i=[],options:o}=this,r=e,a=this._getActiveElements(t,i,n,r),s=function(t){return"mouseup"===t.type||"click"===t.type||"contextmenu"===t.type}(t),l=function(t,e,n,i){return n&&"mouseout"!==t.type?i?e:t:null}(t,this._lastEvent,n,s);n&&(this._lastEvent=null,oi(o.onHover,[t,a,this],this),s&&oi(o.onClick,[t,a,this],this));const c=!ai(a,i);return(c||e)&&(this._active=a,this._updateHoverStyles(a,i,e)),this._lastEvent=l,c}_getActiveElements(t,e,n,i){if("mouseout"===t.type)return[];if(!n)return e;const o=this.options.hover;return this.getElementsAtEventForMode(t,o.mode,o,i)}}const bl=()=>ri(ml.instances,t=>t._plugins.invalidate()),xl=!0;function vl(t,e,n){const{startAngle:i,pixelMargin:o,x:r,y:a,outerRadius:s,innerRadius:l}=e;let c=o/s;t.beginPath(),t.arc(r,a,s,i-c,n+c),l>o?(c=o/l,t.arc(r,a,l,n+c,i-c,!0)):t.arc(r,a,o,n+Si,i-Si),t.closePath(),t.clip()}function yl(t,e,n,i){const o=ur(t.options.borderRadius,["outerStart","outerEnd","innerStart","innerEnd"]);const r=(n-e)/2,a=Math.min(r,i*e/2),s=t=>{const e=(n-Math.min(r,t))*i/2;return Yi(t,0,Math.min(r,e))};return{outerStart:s(o.outerStart),outerEnd:s(o.outerEnd),innerStart:Yi(o.innerStart,0,a),innerEnd:Yi(o.innerEnd,0,a)}}function _l(t,e,n,i){return{x:n+t*Math.cos(e),y:i+t*Math.sin(e)}}function wl(t,e,n,i,o,r){const{x:a,y:s,startAngle:l,pixelMargin:c,innerRadius:d}=e,h=Math.max(e.outerRadius+i+n-c,0),u=d>0?d+i+n+c:0;let p=0;const f=o-l;if(i){const t=((d>0?d-i:0)+(h>0?h-i:0))/2;p=(f-(0!==t?f*t/(t+i):f))/2}const g=(f-Math.max(.001,f*h-n/vi)/h)/2,m=l+g+p,b=o-g-p,{outerStart:x,outerEnd:v,innerStart:y,innerEnd:_}=yl(e,u,h,b-m),w=h-x,k=h-v,S=m+x/w,E=b-v/k,O=u+y,T=u+_,M=m+y/O,D=b-_/T;if(t.beginPath(),r){if(t.arc(a,s,h,S,E),v>0){const e=_l(k,E,a,s);t.arc(e.x,e.y,v,E,b+Si)}const e=_l(T,b,a,s);if(t.lineTo(e.x,e.y),_>0){const e=_l(T,D,a,s);t.arc(e.x,e.y,_,b+Si,D+Math.PI)}if(t.arc(a,s,u,b-_/u,m+y/u,!0),y>0){const e=_l(O,M,a,s);t.arc(e.x,e.y,y,M+Math.PI,m-Si)}const n=_l(w,m,a,s);if(t.lineTo(n.x,n.y),x>0){const e=_l(w,S,a,s);t.arc(e.x,e.y,x,m-Si,S)}}else{t.moveTo(a,s);const e=Math.cos(S)*h+a,n=Math.sin(S)*h+s;t.lineTo(e,n);const i=Math.cos(E)*h+a,o=Math.sin(E)*h+s;t.lineTo(i,o)}t.closePath()}function kl(t,e,n,i,o,r){const{options:a}=e,{borderWidth:s,borderJoinStyle:l}=a,c="inner"===a.borderAlign;s&&(c?(t.lineWidth=2*s,t.lineJoin=l||"round"):(t.lineWidth=s,t.lineJoin=l||"bevel"),e.fullCircles&&function(t,e,n){const{x:i,y:o,startAngle:r,pixelMargin:a,fullCircles:s}=e,l=Math.max(e.outerRadius-a,0),c=e.innerRadius+a;let d;for(n&&vl(t,e,r+yi),t.beginPath(),t.arc(i,o,c,r+yi,r,!0),d=0;d<s;++d)t.stroke();for(t.beginPath(),t.arc(i,o,l,r,r+yi),d=0;d<s;++d)t.stroke()}(t,e,c),c&&vl(t,e,o),wl(t,e,n,i,o,r),t.stroke())}Object.defineProperties(ml,{defaults:{enumerable:xl,value:$o},instances:{enumerable:xl,value:pl},overrides:{enumerable:xl,value:Wo},registry:{enumerable:xl,value:rs},version:{enumerable:xl,value:"3.9.1"},getChart:{enumerable:xl,value:fl},register:{enumerable:xl,value:(...t)=>{rs.add(...t),bl()}},unregister:{enumerable:xl,value:(...t)=>{rs.remove(...t),bl()}}});class Sl extends Ga{constructor(t){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,t&&Object.assign(this,t)}inRange(t,e,n){const i=this.getProps(["x","y"],n),{angle:o,distance:r}=Ni(i,{x:t,y:e}),{startAngle:a,endAngle:s,innerRadius:l,outerRadius:c,circumference:d}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],n),h=this.options.spacing/2,u=ni(d,s-a)>=yi||ji(o,a,s),p=Hi(r,l+h,c+h);return u&&p}getCenterPoint(t){const{x:e,y:n,startAngle:i,endAngle:o,innerRadius:r,outerRadius:a}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius","circumference"],t),{offset:s,spacing:l}=this.options,c=(i+o)/2,d=(r+a+l+s)/2;return{x:e+Math.cos(c)*d,y:n+Math.sin(c)*d}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){const{options:e,circumference:n}=this,i=(e.offset||0)/2,o=(e.spacing||0)/2,r=e.circular;if(this.pixelMargin="inner"===e.borderAlign?.33:0,this.fullCircles=n>yi?Math.floor(n/yi):0,0===n||this.innerRadius<0||this.outerRadius<0)return;t.save();let a=0;if(i){a=i/2;const e=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(e)*a,Math.sin(e)*a),this.circumference>=vi&&(a=i)}t.fillStyle=e.backgroundColor,t.strokeStyle=e.borderColor;const s=function(t,e,n,i,o){const{fullCircles:r,startAngle:a,circumference:s}=e;let l=e.endAngle;if(r){wl(t,e,n,i,a+yi,o);for(let e=0;e<r;++e)t.fill();isNaN(s)||(l=a+s%yi,s%yi===0&&(l+=yi))}return wl(t,e,n,i,l,o),t.fill(),l}(t,this,a,o,r);kl(t,this,a,o,s,r),t.restore()}}function El(t,e,n=e){t.lineCap=ni(n.borderCapStyle,e.borderCapStyle),t.setLineDash(ni(n.borderDash,e.borderDash)),t.lineDashOffset=ni(n.borderDashOffset,e.borderDashOffset),t.lineJoin=ni(n.borderJoinStyle,e.borderJoinStyle),t.lineWidth=ni(n.borderWidth,e.borderWidth),t.strokeStyle=ni(n.borderColor,e.borderColor)}function Ol(t,e,n){t.lineTo(n.x,n.y)}function Tl(t,e,n={}){const i=t.length,{start:o=0,end:r=i-1}=n,{start:a,end:s}=e,l=Math.max(o,a),c=Math.min(r,s),d=o<a&&r<a||o>s&&r>s;return{count:i,start:l,loop:e.loop,ilen:c<l&&!d?i+c-l:c-l}}function Ml(t,e,n,i){const{points:o,options:r}=e,{count:a,start:s,loop:l,ilen:c}=Tl(o,n,i),d=function(t){return t.stepped?ir:t.tension||"monotone"===t.cubicInterpolationMode?or:Ol}(r);let h,u,p,{move:f=!0,reverse:g}=i||{};for(h=0;h<=c;++h)u=o[(s+(g?c-h:h))%a],u.skip||(f?(t.moveTo(u.x,u.y),f=!1):d(t,p,u,g,r.stepped),p=u);return l&&(u=o[(s+(g?c:0))%a],d(t,p,u,g,r.stepped)),!!l}function Dl(t,e,n,i){const o=e.points,{count:r,start:a,ilen:s}=Tl(o,n,i),{move:l=!0,reverse:c}=i||{};let d,h,u,p,f,g,m=0,b=0;const x=t=>(a+(c?s-t:t))%r,v=()=>{p!==f&&(t.lineTo(m,f),t.lineTo(m,p),t.lineTo(m,g))};for(l&&(h=o[x(0)],t.moveTo(h.x,h.y)),d=0;d<=s;++d){if(h=o[x(d)],h.skip)continue;const e=h.x,n=h.y,i=0|e;i===u?(n<p?p=n:n>f&&(f=n),m=(b*m+e)/++b):(v(),t.lineTo(e,n),u=i,b=0,p=f=n),g=n}v()}function Cl(t){const e=t.options,n=e.borderDash&&e.borderDash.length;return!(t._decimated||t._loop||e.tension||"monotone"===e.cubicInterpolationMode||e.stepped||n)?Dl:Ml}Sl.id="arc",Sl.defaults={borderAlign:"center",borderColor:"#fff",borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0},Sl.defaultRoutes={backgroundColor:"backgroundColor"};const Al="function"==typeof Path2D;function Rl(t,e,n,i){Al&&!e.options.segment?function(t,e,n,i){let o=e._path;o||(o=e._path=new Path2D,e.path(o,n,i)&&o.closePath()),El(t,e.options),t.stroke(o)}(t,e,n,i):function(t,e,n,i){const{segments:o,options:r}=e,a=Cl(e);for(const s of o)El(t,r,s.style),t.beginPath(),a(t,e,s,{start:n,end:n+i-1})&&t.closePath(),t.stroke()}(t,e,n,i)}class Ll extends Ga{constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,e){const n=this.options;if((n.tension||"monotone"===n.cubicInterpolationMode)&&!n.stepped&&!this._pointsUpdated){const i=n.spanGaps?this._loop:this._fullLoop;Br(this._points,n,t,i,e),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=function(t,e){const n=t.points,i=t.options.spanGaps,o=n.length;if(!o)return[];const r=!!t._loop,{start:a,end:s}=function(t,e,n,i){let o=0,r=e-1;if(n&&!i)for(;o<e&&!t[o].skip;)o++;for(;o<e&&t[o].skip;)o++;for(o%=e,n&&(r+=o);r>o&&t[r%e].skip;)r--;return r%=e,{start:o,end:r}}(n,o,r,i);return da(t,!0===i?[{start:a,end:s,loop:r}]:function(t,e,n,i){const o=t.length,r=[];let a,s=e,l=t[e];for(a=e+1;a<=n;++a){const n=t[a%o];n.skip||n.stop?l.skip||(i=!1,r.push({start:e%o,end:(a-1)%o,loop:i}),e=s=n.stop?a:null):(s=a,l.skip&&(e=a)),l=n}return null!==s&&r.push({start:e%o,end:s%o,loop:i}),r}(n,a,s<a?s+o:s,!!t._fullLoop&&0===a&&s===o-1),n,e)}(this,this.options.segment))}first(){const t=this.segments,e=this.points;return t.length&&e[t[0].start]}last(){const t=this.segments,e=this.points,n=t.length;return n&&e[t[n-1].end]}interpolate(t,e){const n=this.options,i=t[e],o=this.points,r=ca(this,{property:e,start:i,end:i});if(!r.length)return;const a=[],s=function(t){return t.stepped?Qr:t.tension||"monotone"===t.cubicInterpolationMode?ta:Jr}(n);let l,c;for(l=0,c=r.length;l<c;++l){const{start:c,end:d}=r[l],h=o[c],u=o[d];if(h===u){a.push(h);continue}const p=s(h,u,Math.abs((i-h[e])/(u[e]-h[e])),n.stepped);p[e]=t[e],a.push(p)}return 1===a.length?a[0]:a}pathSegment(t,e,n){return Cl(this)(t,this,e,n)}path(t,e,n){const i=this.segments,o=Cl(this);let r=this._loop;e=e||0,n=n||this.points.length-e;for(const a of i)r&=o(t,this,a,{start:e,end:e+n-1});return!!r}draw(t,e,n,i){const o=this.options||{};(this.points||[]).length&&o.borderWidth&&(t.save(),Rl(t,this,n,i),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}function Pl(t,e,n,i){const o=t.options,{[n]:r}=t.getProps([n],i);return Math.abs(e-r)<o.radius+o.hitRadius}Ll.id="line",Ll.defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0},Ll.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"},Ll.descriptors={_scriptable:!0,_indexable:t=>"borderDash"!==t&&"fill"!==t};class Il extends Ga{constructor(t){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,t&&Object.assign(this,t)}inRange(t,e,n){const i=this.options,{x:o,y:r}=this.getProps(["x","y"],n);return Math.pow(t-o,2)+Math.pow(e-r,2)<Math.pow(i.hitRadius+i.radius,2)}inXRange(t,e){return Pl(this,t,"x",e)}inYRange(t,e){return Pl(this,t,"y",e)}getCenterPoint(t){const{x:e,y:n}=this.getProps(["x","y"],t);return{x:e,y:n}}size(t){let e=(t=t||this.options||{}).radius||0;e=Math.max(e,e&&t.hoverRadius||0);return 2*(e+(e&&t.borderWidth||0))}draw(t,e){const n=this.options;this.skip||n.radius<.1||!tr(this,e,this.size(n)/2)||(t.strokeStyle=n.borderColor,t.lineWidth=n.borderWidth,t.fillStyle=n.backgroundColor,Jo(t,n,this.x,this.y))}getRange(){const t=this.options||{};return t.radius+t.hitRadius}}function Nl(t,e){const{x:n,y:i,base:o,width:r,height:a}=t.getProps(["x","y","base","width","height"],e);let s,l,c,d,h;return t.horizontal?(h=a/2,s=Math.min(n,o),l=Math.max(n,o),c=i-h,d=i+h):(h=r/2,s=n-h,l=n+h,c=Math.min(i,o),d=Math.max(i,o)),{left:s,top:c,right:l,bottom:d}}function Fl(t,e,n,i){return t?0:Yi(e,n,i)}function zl(t){const e=Nl(t),n=e.right-e.left,i=e.bottom-e.top,o=function(t,e,n){const i=t.options.borderWidth,o=t.borderSkipped,r=pr(i);return{t:Fl(o.top,r.top,0,n),r:Fl(o.right,r.right,0,e),b:Fl(o.bottom,r.bottom,0,n),l:Fl(o.left,r.left,0,e)}}(t,n/2,i/2),r=function(t,e,n){const{enableBorderRadius:i}=t.getProps(["enableBorderRadius"]),o=t.options.borderRadius,r=fr(o),a=Math.min(e,n),s=t.borderSkipped,l=i||Qn(o);return{topLeft:Fl(!l||s.top||s.left,r.topLeft,0,a),topRight:Fl(!l||s.top||s.right,r.topRight,0,a),bottomLeft:Fl(!l||s.bottom||s.left,r.bottomLeft,0,a),bottomRight:Fl(!l||s.bottom||s.right,r.bottomRight,0,a)}}(t,n/2,i/2);return{outer:{x:e.left,y:e.top,w:n,h:i,radius:r},inner:{x:e.left+o.l,y:e.top+o.t,w:n-o.l-o.r,h:i-o.t-o.b,radius:{topLeft:Math.max(0,r.topLeft-Math.max(o.t,o.l)),topRight:Math.max(0,r.topRight-Math.max(o.t,o.r)),bottomLeft:Math.max(0,r.bottomLeft-Math.max(o.b,o.l)),bottomRight:Math.max(0,r.bottomRight-Math.max(o.b,o.r))}}}}function Bl(t,e,n,i){const o=null===e,r=null===n,a=t&&!(o&&r)&&Nl(t,i);return a&&(o||Hi(e,a.left,a.right))&&(r||Hi(n,a.top,a.bottom))}function jl(t,e){t.rect(e.x,e.y,e.w,e.h)}function Yl(t,e,n={}){const i=t.x!==n.x?-e:0,o=t.y!==n.y?-e:0,r=(t.x+t.w!==n.x+n.w?e:0)-i,a=(t.y+t.h!==n.y+n.h?e:0)-o;return{x:t.x+i,y:t.y+o,w:t.w+r,h:t.h+a,radius:t.radius}}Il.id="point",Il.defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0},Il.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};class Hl extends Ga{constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){const{inflateAmount:e,options:{borderColor:n,backgroundColor:i}}=this,{inner:o,outer:r}=zl(this),a=(s=r.radius).topLeft||s.topRight||s.bottomLeft||s.bottomRight?sr:jl;var s;t.save(),r.w===o.w&&r.h===o.h||(t.beginPath(),a(t,Yl(r,e,o)),t.clip(),a(t,Yl(o,-e,r)),t.fillStyle=n,t.fill("evenodd")),t.beginPath(),a(t,Yl(o,e)),t.fillStyle=i,t.fill(),t.restore()}inRange(t,e,n){return Bl(this,t,e,n)}inXRange(t,e){return Bl(this,t,null,e)}inYRange(t,e){return Bl(this,null,t,e)}getCenterPoint(t){const{x:e,y:n,base:i,horizontal:o}=this.getProps(["x","y","base","horizontal"],t);return{x:o?(e+i)/2:e,y:o?n:(n+i)/2}}getRange(t){return"x"===t?this.width/2:this.height/2}}function Wl(t,e,n,i){if(i)return;let o=e[t],r=n[t];return"angle"===t&&(o=Bi(o),r=Bi(r)),{property:t,start:o,end:r}}function Vl(t,e,n){for(;e>t;e--){const t=n[e];if(!isNaN(t.x)&&!isNaN(t.y))break}return e}function Ul(t,e,n,i){return t&&e?i(t[n],e[n]):t?t[n]:e?e[n]:0}function Gl(t,e){let n=[],i=!1;return Jn(t)?(i=!0,n=t):n=function(t,e){const{x:n=null,y:i=null}=t||{},o=e.points,r=[];return e.segments.forEach(({start:t,end:e})=>{e=Vl(t,e,o);const a=o[t],s=o[e];null!==i?(r.push({x:a.x,y:i}),r.push({x:s.x,y:i})):null!==n&&(r.push({x:n,y:a.y}),r.push({x:n,y:s.y}))}),r}(t,e),n.length?new Ll({points:n,options:{tension:0},_loop:i,_fullLoop:i}):null}function $l(t){return t&&!1!==t.fill}function Xl(t,e,n){let i=t[e].fill;const o=[e];let r;if(!n)return i;for(;!1!==i&&-1===o.indexOf(i);){if(!ti(i))return i;if(r=t[i],!r)return!1;if(r.visible)return i;o.push(i),i=r.fill}return!1}function ql(t,e,n){const i=function(t){const e=t.options,n=e.fill;let i=ni(n&&n.target,n);void 0===i&&(i=!!e.backgroundColor);if(!1===i||null===i)return!1;if(!0===i)return"origin";return i}(t);if(Qn(i))return!isNaN(i.value)&&i;let o=parseFloat(i);return ti(o)&&Math.floor(o)===o?function(t,e,n,i){"-"!==t&&"+"!==t||(n=e+n);if(n===e||n<0||n>=i)return!1;return n}(i[0],e,o,n):["origin","start","end","stack","shape"].indexOf(i)>=0&&i}function Zl(t,e,n){const i=[];for(let o=0;o<n.length;o++){const r=n[o],{first:a,last:s,point:l}=Kl(r,e,"x");if(!(!l||a&&s))if(a)i.unshift(l);else if(t.push(l),!s)break}t.push(...i)}function Kl(t,e,n){const i=t.interpolate(e,n);if(!i)return{};const o=i[n],r=t.segments,a=t.points;let s=!1,l=!1;for(let t=0;t<r.length;t++){const e=r[t],i=a[e.start][n],c=a[e.end][n];if(Hi(o,i,c)){s=o===i,l=o===c;break}}return{first:s,last:l,point:i}}Hl.id="bar",Hl.defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0},Hl.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};class Jl{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,e,n){const{x:i,y:o,radius:r}=this;return e=e||{start:0,end:yi},t.arc(i,o,r,e.end,e.start,!0),!n.bounds}interpolate(t){const{x:e,y:n,radius:i}=this,o=t.angle;return{x:e+Math.cos(o)*i,y:n+Math.sin(o)*i,angle:o}}}function Ql(t){const{chart:e,fill:n,line:i}=t;if(ti(n))return function(t,e){const n=t.getDatasetMeta(e),i=n&&t.isDatasetVisible(e);return i?n.dataset:null}(e,n);if("stack"===n)return function(t){const{scale:e,index:n,line:i}=t,o=[],r=i.segments,a=i.points,s=function(t,e){const n=[],i=t.getMatchingVisibleMetas("line");for(let t=0;t<i.length;t++){const o=i[t];if(o.index===e)break;o.hidden||n.unshift(o.dataset)}return n}(e,n);s.push(Gl({x:null,y:e.bottom},i));for(let t=0;t<r.length;t++){const e=r[t];for(let t=e.start;t<=e.end;t++)Zl(o,a[t],s)}return new Ll({points:o,options:{}})}(t);if("shape"===n)return!0;const o=function(t){const e=t.scale||{};if(e.getPointPositionForValue)return function(t){const{scale:e,fill:n}=t,i=e.options,o=e.getLabels().length,r=i.reverse?e.max:e.min,a=function(t,e,n){let i;return i="start"===t?n:"end"===t?e.options.reverse?e.min:e.max:Qn(t)?t.value:e.getBaseValue(),i}(n,e,r),s=[];if(i.grid.circular){const t=e.getPointPositionForValue(0,r);return new Jl({x:t.x,y:t.y,radius:e.getDistanceFromCenterForValue(a)})}for(let t=0;t<o;++t)s.push(e.getPointPositionForValue(t,a));return s}(t);return function(t){const{scale:e={},fill:n}=t,i=function(t,e){let n=null;return"start"===t?n=e.bottom:"end"===t?n=e.top:Qn(t)?n=e.getPixelForValue(t.value):e.getBasePixel&&(n=e.getBasePixel()),n}(n,e);if(ti(i)){const t=e.isHorizontal();return{x:t?i:null,y:t?null:i}}return null}(t)}(t);return o instanceof Jl?o:Gl(o,i)}function tc(t,e,n){const i=Ql(e),{line:o,scale:r,axis:a}=e,s=o.options,l=s.fill,c=s.backgroundColor,{above:d=c,below:h=c}=l||{};i&&o.points.length&&(er(t,n),function(t,e){const{line:n,target:i,above:o,below:r,area:a,scale:s}=e,l=n._loop?"angle":e.axis;t.save(),"x"===l&&r!==o&&(ec(t,i,a.top),nc(t,{line:n,target:i,color:o,scale:s,property:l}),t.restore(),t.save(),ec(t,i,a.bottom));nc(t,{line:n,target:i,color:r,scale:s,property:l}),t.restore()}(t,{line:o,target:i,above:d,below:h,area:n,scale:r,axis:a}),nr(t))}function ec(t,e,n){const{segments:i,points:o}=e;let r=!0,a=!1;t.beginPath();for(const s of i){const{start:i,end:l}=s,c=o[i],d=o[Vl(i,l,o)];r?(t.moveTo(c.x,c.y),r=!1):(t.lineTo(c.x,n),t.lineTo(c.x,c.y)),a=!!e.pathSegment(t,s,{move:a}),a?t.closePath():t.lineTo(d.x,n)}t.lineTo(e.first().x,n),t.closePath(),t.clip()}function nc(t,e){const{line:n,target:i,property:o,color:r,scale:a}=e,s=function(t,e,n){const i=t.segments,o=t.points,r=e.points,a=[];for(const t of i){let{start:i,end:s}=t;s=Vl(i,s,o);const l=Wl(n,o[i],o[s],t.loop);if(!e.segments){a.push({source:t,target:l,start:o[i],end:o[s]});continue}const c=ca(e,l);for(const e of c){const i=Wl(n,r[e.start],r[e.end],e.loop),s=la(t,o,i);for(const t of s)a.push({source:t,target:e,start:{[n]:Ul(l,i,"start",Math.max)},end:{[n]:Ul(l,i,"end",Math.min)}})}}return a}(n,i,o);for(const{source:e,target:l,start:c,end:d}of s){const{style:{backgroundColor:s=r}={}}=e,h=!0!==i;t.save(),t.fillStyle=s,ic(t,a,h&&Wl(o,c,d)),t.beginPath();const u=!!n.pathSegment(t,e);let p;if(h){u?t.closePath():oc(t,i,d,o);const e=!!i.pathSegment(t,l,{move:u,reverse:!0});p=u&&e,p||oc(t,i,c,o)}t.closePath(),t.fill(p?"evenodd":"nonzero"),t.restore()}}function ic(t,e,n){const{top:i,bottom:o}=e.chart.chartArea,{property:r,start:a,end:s}=n||{};"x"===r&&(t.beginPath(),t.rect(a,i,s-a,o-i),t.clip())}function oc(t,e,n,i){const o=e.interpolate(n,i);o&&t.lineTo(o.x,o.y)}var rc={id:"filler",afterDatasetsUpdate(t,e,n){const i=(t.data.datasets||[]).length,o=[];let r,a,s,l;for(a=0;a<i;++a)r=t.getDatasetMeta(a),s=r.dataset,l=null,s&&s.options&&s instanceof Ll&&(l={visible:t.isDatasetVisible(a),index:a,fill:ql(s,a,i),chart:t,axis:r.controller.options.indexAxis,scale:r.vScale,line:s}),r.$filler=l,o.push(l);for(a=0;a<i;++a)l=o[a],l&&!1!==l.fill&&(l.fill=Xl(o,a,n.propagate))},beforeDraw(t,e,n){const i="beforeDraw"===n.drawTime,o=t.getSortedVisibleDatasetMetas(),r=t.chartArea;for(let e=o.length-1;e>=0;--e){const n=o[e].$filler;n&&(n.line.updateControlPoints(r,n.axis),i&&n.fill&&tc(t.ctx,n,r))}},beforeDatasetsDraw(t,e,n){if("beforeDatasetsDraw"!==n.drawTime)return;const i=t.getSortedVisibleDatasetMetas();for(let e=i.length-1;e>=0;--e){const n=i[e].$filler;$l(n)&&tc(t.ctx,n,t.chartArea)}},beforeDatasetDraw(t,e,n){const i=e.meta.$filler;$l(i)&&"beforeDatasetDraw"===n.drawTime&&tc(t.ctx,i,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const ac=(t,e)=>{let{boxHeight:n=e,boxWidth:i=e}=t;return t.usePointStyle&&(n=Math.min(n,e),i=t.pointStyleWidth||Math.min(i,e)),{boxWidth:i,boxHeight:n,itemHeight:Math.max(e,n)}};class sc extends Ga{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e,n){this.maxWidth=t,this.maxHeight=e,this._margins=n,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let e=oi(t.generateLabels,[this.chart],this)||[];t.filter&&(e=e.filter(e=>t.filter(e,this.chart.data))),t.sort&&(e=e.sort((e,n)=>t.sort(e,n,this.chart.data))),this.options.reverse&&e.reverse(),this.legendItems=e}fit(){const{options:t,ctx:e}=this;if(!t.display)return void(this.width=this.height=0);const n=t.labels,i=mr(n.font),o=i.size,r=this._computeTitleHeight(),{boxWidth:a,itemHeight:s}=ac(n,o);let l,c;e.font=i.string,this.isHorizontal()?(l=this.maxWidth,c=this._fitRows(r,o,a,s)+10):(c=this.maxHeight,l=this._fitCols(r,o,a,s)+10),this.width=Math.min(l,t.maxWidth||this.maxWidth),this.height=Math.min(c,t.maxHeight||this.maxHeight)}_fitRows(t,e,n,i){const{ctx:o,maxWidth:r,options:{labels:{padding:a}}}=this,s=this.legendHitBoxes=[],l=this.lineWidths=[0],c=i+a;let d=t;o.textAlign="left",o.textBaseline="middle";let h=-1,u=-c;return this.legendItems.forEach((t,p)=>{const f=n+e/2+o.measureText(t.text).width;(0===p||l[l.length-1]+f+2*a>r)&&(d+=c,l[l.length-(p>0?0:1)]=0,u+=c,h++),s[p]={left:0,top:u,row:h,width:f,height:i},l[l.length-1]+=f+a}),d}_fitCols(t,e,n,i){const{ctx:o,maxHeight:r,options:{labels:{padding:a}}}=this,s=this.legendHitBoxes=[],l=this.columnSizes=[],c=r-t;let d=a,h=0,u=0,p=0,f=0;return this.legendItems.forEach((t,r)=>{const g=n+e/2+o.measureText(t.text).width;r>0&&u+i+2*a>c&&(d+=h+a,l.push({width:h,height:u}),p+=h+a,f++,h=u=0),s[r]={left:p,top:u,col:f,width:g,height:i},h=Math.max(h,g),u+=i+a}),d+=h,l.push({width:h,height:u}),d}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:e,options:{align:n,labels:{padding:i},rtl:o}}=this,r=ia(o,this.left,this.width);if(this.isHorizontal()){let o=0,a=Ji(n,this.left+i,this.right-this.lineWidths[o]);for(const s of e)o!==s.row&&(o=s.row,a=Ji(n,this.left+i,this.right-this.lineWidths[o])),s.top+=this.top+t+i,s.left=r.leftForLtr(r.x(a),s.width),a+=s.width+i}else{let o=0,a=Ji(n,this.top+t+i,this.bottom-this.columnSizes[o].height);for(const s of e)s.col!==o&&(o=s.col,a=Ji(n,this.top+t+i,this.bottom-this.columnSizes[o].height)),s.top=a,s.left+=this.left+i,s.left=r.leftForLtr(r.x(s.left),s.width),a+=s.height+i}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const t=this.ctx;er(t,this),this._draw(),nr(t)}}_draw(){const{options:t,columnSizes:e,lineWidths:n,ctx:i}=this,{align:o,labels:r}=t,a=$o.color,s=ia(t.rtl,this.left,this.width),l=mr(r.font),{color:c,padding:d}=r,h=l.size,u=h/2;let p;this.drawTitle(),i.textAlign=s.textAlign("left"),i.textBaseline="middle",i.lineWidth=.5,i.font=l.string;const{boxWidth:f,boxHeight:g,itemHeight:m}=ac(r,h),b=this.isHorizontal(),x=this._computeTitleHeight();p=b?{x:Ji(o,this.left+d,this.right-n[0]),y:this.top+d+x,line:0}:{x:this.left+d,y:Ji(o,this.top+x+d,this.bottom-e[0].height),line:0},oa(this.ctx,t.textDirection);const v=m+d;this.legendItems.forEach((y,_)=>{i.strokeStyle=y.fontColor||c,i.fillStyle=y.fontColor||c;const w=i.measureText(y.text).width,k=s.textAlign(y.textAlign||(y.textAlign=r.textAlign)),S=f+u+w;let E=p.x,O=p.y;s.setWidth(this.width),b?_>0&&E+S+d>this.right&&(O=p.y+=v,p.line++,E=p.x=Ji(o,this.left+d,this.right-n[p.line])):_>0&&O+v>this.bottom&&(E=p.x=E+e[p.line].width+d,p.line++,O=p.y=Ji(o,this.top+x+d,this.bottom-e[p.line].height));!function(t,e,n){if(isNaN(f)||f<=0||isNaN(g)||g<0)return;i.save();const o=ni(n.lineWidth,1);if(i.fillStyle=ni(n.fillStyle,a),i.lineCap=ni(n.lineCap,"butt"),i.lineDashOffset=ni(n.lineDashOffset,0),i.lineJoin=ni(n.lineJoin,"miter"),i.lineWidth=o,i.strokeStyle=ni(n.strokeStyle,a),i.setLineDash(ni(n.lineDash,[])),r.usePointStyle){const a={radius:g*Math.SQRT2/2,pointStyle:n.pointStyle,rotation:n.rotation,borderWidth:o},l=s.xPlus(t,f/2);Qo(i,a,l,e+u,r.pointStyleWidth&&f)}else{const r=e+Math.max((h-g)/2,0),a=s.leftForLtr(t,f),l=fr(n.borderRadius);i.beginPath(),Object.values(l).some(t=>0!==t)?sr(i,{x:a,y:r,w:f,h:g,radius:l}):i.rect(a,r,f,g),i.fill(),0!==o&&i.stroke()}i.restore()}(s.x(E),O,y),E=((t,e,n,i)=>t===(i?"left":"right")?n:"center"===t?(e+n)/2:e)(k,E+f+u,b?E+S:this.right,t.rtl),function(t,e,n){rr(i,n.text,t,e+m/2,l,{strikethrough:n.hidden,textAlign:s.textAlign(n.textAlign)})}(s.x(E),O,y),b?p.x+=S+d:p.y+=v}),ra(this.ctx,t.textDirection)}drawTitle(){const t=this.options,e=t.title,n=mr(e.font),i=gr(e.padding);if(!e.display)return;const o=ia(t.rtl,this.left,this.width),r=this.ctx,a=e.position,s=n.size/2,l=i.top+s;let c,d=this.left,h=this.width;if(this.isHorizontal())h=Math.max(...this.lineWidths),c=this.top+l,d=Ji(t.align,d,this.right-h);else{const e=this.columnSizes.reduce((t,e)=>Math.max(t,e.height),0);c=l+Ji(t.align,this.top,this.bottom-e-t.labels.padding-this._computeTitleHeight())}const u=Ji(a,d,d+h);r.textAlign=o.textAlign(Ki(a)),r.textBaseline="middle",r.strokeStyle=e.color,r.fillStyle=e.color,r.font=n.string,rr(r,e.text,u,c,n)}_computeTitleHeight(){const t=this.options.title,e=mr(t.font),n=gr(t.padding);return t.display?e.lineHeight+n.height:0}_getLegendItemAt(t,e){let n,i,o;if(Hi(t,this.left,this.right)&&Hi(e,this.top,this.bottom))for(o=this.legendHitBoxes,n=0;n<o.length;++n)if(i=o[n],Hi(t,i.left,i.left+i.width)&&Hi(e,i.top,i.top+i.height))return this.legendItems[n];return null}handleEvent(t){const e=this.options;if(!function(t,e){if(("mousemove"===t||"mouseout"===t)&&(e.onHover||e.onLeave))return!0;if(e.onClick&&("click"===t||"mouseup"===t))return!0;return!1}(t.type,e))return;const n=this._getLegendItemAt(t.x,t.y);if("mousemove"===t.type||"mouseout"===t.type){const r=this._hoveredItem,a=(o=n,null!==(i=r)&&null!==o&&i.datasetIndex===o.datasetIndex&&i.index===o.index);r&&!a&&oi(e.onLeave,[t,r,this],this),this._hoveredItem=n,n&&!a&&oi(e.onHover,[t,n,this],this)}else n&&oi(e.onClick,[t,n,this],this);var i,o}}var lc={id:"legend",_element:sc,start(t,e,n){const i=t.legend=new sc({ctx:t.ctx,options:n,chart:t});Ds.configure(t,i,n),Ds.addBox(t,i)},stop(t){Ds.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,n){const i=t.legend;Ds.configure(t,i,n),i.options=n},afterUpdate(t){const e=t.legend;e.buildLabels(),e.adjustHitBoxes()},afterEvent(t,e){e.replay||t.legend.handleEvent(e.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,e,n){const i=e.datasetIndex,o=n.chart;o.isDatasetVisible(i)?(o.hide(i),e.hidden=!0):(o.show(i),e.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){const e=t.data.datasets,{labels:{usePointStyle:n,pointStyle:i,textAlign:o,color:r}}=t.legend.options;return t._getSortedDatasetMetas().map(t=>{const a=t.controller.getStyle(n?0:void 0),s=gr(a.borderWidth);return{text:e[t.index].label,fillStyle:a.backgroundColor,fontColor:r,hidden:!t.visible,lineCap:a.borderCapStyle,lineDash:a.borderDash,lineDashOffset:a.borderDashOffset,lineJoin:a.borderJoinStyle,lineWidth:(s.width+s.height)/4,strokeStyle:a.borderColor,pointStyle:i||a.pointStyle,rotation:a.rotation,textAlign:o||a.textAlign,borderRadius:0,datasetIndex:t.index}},this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}};const cc={average(t){if(!t.length)return!1;let e,n,i=0,o=0,r=0;for(e=0,n=t.length;e<n;++e){const n=t[e].element;if(n&&n.hasValue()){const t=n.tooltipPosition();i+=t.x,o+=t.y,++r}}return{x:i/r,y:o/r}},nearest(t,e){if(!t.length)return!1;let n,i,o,r=e.x,a=e.y,s=Number.POSITIVE_INFINITY;for(n=0,i=t.length;n<i;++n){const i=t[n].element;if(i&&i.hasValue()){const t=Fi(e,i.getCenterPoint());t<s&&(s=t,o=i)}}if(o){const t=o.tooltipPosition();r=t.x,a=t.y}return{x:r,y:a}}};function dc(t,e){return e&&(Jn(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function hc(t){return("string"==typeof t||t instanceof String)&&t.indexOf("\n")>-1?t.split("\n"):t}function uc(t,e){const{element:n,datasetIndex:i,index:o}=e,r=t.getDatasetMeta(i).controller,{label:a,value:s}=r.getLabelAndValue(o);return{chart:t,label:a,parsed:r.getParsed(o),raw:t.data.datasets[i].data[o],formattedValue:s,dataset:r.getDataset(),dataIndex:o,datasetIndex:i,element:n}}function pc(t,e){const n=t.chart.ctx,{body:i,footer:o,title:r}=t,{boxWidth:a,boxHeight:s}=e,l=mr(e.bodyFont),c=mr(e.titleFont),d=mr(e.footerFont),h=r.length,u=o.length,p=i.length,f=gr(e.padding);let g=f.height,m=0,b=i.reduce((t,e)=>t+e.before.length+e.lines.length+e.after.length,0);if(b+=t.beforeBody.length+t.afterBody.length,h&&(g+=h*c.lineHeight+(h-1)*e.titleSpacing+e.titleMarginBottom),b){g+=p*(e.displayColors?Math.max(s,l.lineHeight):l.lineHeight)+(b-p)*l.lineHeight+(b-1)*e.bodySpacing}u&&(g+=e.footerMarginTop+u*d.lineHeight+(u-1)*e.footerSpacing);let x=0;const v=function(t){m=Math.max(m,n.measureText(t).width+x)};return n.save(),n.font=c.string,ri(t.title,v),n.font=l.string,ri(t.beforeBody.concat(t.afterBody),v),x=e.displayColors?a+2+e.boxPadding:0,ri(i,t=>{ri(t.before,v),ri(t.lines,v),ri(t.after,v)}),x=0,n.font=d.string,ri(t.footer,v),n.restore(),m+=f.width,{width:m,height:g}}function fc(t,e,n,i){const{x:o,width:r}=n,{width:a,chartArea:{left:s,right:l}}=t;let c="center";return"center"===i?c=o<=(s+l)/2?"left":"right":o<=r/2?c="left":o>=a-r/2&&(c="right"),function(t,e,n,i){const{x:o,width:r}=i,a=n.caretSize+n.caretPadding;return"left"===t&&o+r+a>e.width||"right"===t&&o-r-a<0||void 0}(c,t,e,n)&&(c="center"),c}function gc(t,e,n){const i=n.yAlign||e.yAlign||function(t,e){const{y:n,height:i}=e;return n<i/2?"top":n>t.height-i/2?"bottom":"center"}(t,n);return{xAlign:n.xAlign||e.xAlign||fc(t,e,n,i),yAlign:i}}function mc(t,e,n,i){const{caretSize:o,caretPadding:r,cornerRadius:a}=t,{xAlign:s,yAlign:l}=n,c=o+r,{topLeft:d,topRight:h,bottomLeft:u,bottomRight:p}=fr(a);let f=function(t,e){let{x:n,width:i}=t;return"right"===e?n-=i:"center"===e&&(n-=i/2),n}(e,s);const g=function(t,e,n){let{y:i,height:o}=t;return"top"===e?i+=n:i-="bottom"===e?o+n:o/2,i}(e,l,c);return"center"===l?"left"===s?f+=c:"right"===s&&(f-=c):"left"===s?f-=Math.max(d,u)+o:"right"===s&&(f+=Math.max(h,p)+o),{x:Yi(f,0,i.width-e.width),y:Yi(g,0,i.height-e.height)}}function bc(t,e,n){const i=gr(n.padding);return"center"===e?t.x+t.width/2:"right"===e?t.x+t.width-i.right:t.x+i.left}function xc(t){return dc([],hc(t))}function vc(t,e){const n=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return n?t.override(n):t}class yc extends Ga{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart||t._chart,this._chart=this.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const e=this.chart,n=this.options.setContext(this.getContext()),i=n.enabled&&e.options.animation&&n.animations,o=new xa(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(o)),o}getContext(){return this.$context||(this.$context=(t=this.chart.getContext(),e=this,n=this._tooltipItems,xr(t,{tooltip:e,tooltipItems:n,type:"tooltip"})));var t,e,n}getTitle(t,e){const{callbacks:n}=e,i=n.beforeTitle.apply(this,[t]),o=n.title.apply(this,[t]),r=n.afterTitle.apply(this,[t]);let a=[];return a=dc(a,hc(i)),a=dc(a,hc(o)),a=dc(a,hc(r)),a}getBeforeBody(t,e){return xc(e.callbacks.beforeBody.apply(this,[t]))}getBody(t,e){const{callbacks:n}=e,i=[];return ri(t,t=>{const e={before:[],lines:[],after:[]},o=vc(n,t);dc(e.before,hc(o.beforeLabel.call(this,t))),dc(e.lines,o.label.call(this,t)),dc(e.after,hc(o.afterLabel.call(this,t))),i.push(e)}),i}getAfterBody(t,e){return xc(e.callbacks.afterBody.apply(this,[t]))}getFooter(t,e){const{callbacks:n}=e,i=n.beforeFooter.apply(this,[t]),o=n.footer.apply(this,[t]),r=n.afterFooter.apply(this,[t]);let a=[];return a=dc(a,hc(i)),a=dc(a,hc(o)),a=dc(a,hc(r)),a}_createItems(t){const e=this._active,n=this.chart.data,i=[],o=[],r=[];let a,s,l=[];for(a=0,s=e.length;a<s;++a)l.push(uc(this.chart,e[a]));return t.filter&&(l=l.filter((e,i,o)=>t.filter(e,i,o,n))),t.itemSort&&(l=l.sort((e,i)=>t.itemSort(e,i,n))),ri(l,e=>{const n=vc(t.callbacks,e);i.push(n.labelColor.call(this,e)),o.push(n.labelPointStyle.call(this,e)),r.push(n.labelTextColor.call(this,e))}),this.labelColors=i,this.labelPointStyles=o,this.labelTextColors=r,this.dataPoints=l,l}update(t,e){const n=this.options.setContext(this.getContext()),i=this._active;let o,r=[];if(i.length){const t=cc[n.position].call(this,i,this._eventPosition);r=this._createItems(n),this.title=this.getTitle(r,n),this.beforeBody=this.getBeforeBody(r,n),this.body=this.getBody(r,n),this.afterBody=this.getAfterBody(r,n),this.footer=this.getFooter(r,n);const e=this._size=pc(this,n),a=Object.assign({},t,e),s=gc(this.chart,n,a),l=mc(n,a,s,this.chart);this.xAlign=s.xAlign,this.yAlign=s.yAlign,o={opacity:1,x:l.x,y:l.y,width:e.width,height:e.height,caretX:t.x,caretY:t.y}}else 0!==this.opacity&&(o={opacity:0});this._tooltipItems=r,this.$context=void 0,o&&this._resolveAnimations().update(this,o),t&&n.external&&n.external.call(this,{chart:this.chart,tooltip:this,replay:e})}drawCaret(t,e,n,i){const o=this.getCaretPosition(t,n,i);e.lineTo(o.x1,o.y1),e.lineTo(o.x2,o.y2),e.lineTo(o.x3,o.y3)}getCaretPosition(t,e,n){const{xAlign:i,yAlign:o}=this,{caretSize:r,cornerRadius:a}=n,{topLeft:s,topRight:l,bottomLeft:c,bottomRight:d}=fr(a),{x:h,y:u}=t,{width:p,height:f}=e;let g,m,b,x,v,y;return"center"===o?(v=u+f/2,"left"===i?(g=h,m=g-r,x=v+r,y=v-r):(g=h+p,m=g+r,x=v-r,y=v+r),b=g):(m="left"===i?h+Math.max(s,c)+r:"right"===i?h+p-Math.max(l,d)-r:this.caretX,"top"===o?(x=u,v=x-r,g=m-r,b=m+r):(x=u+f,v=x+r,g=m+r,b=m-r),y=x),{x1:g,x2:m,x3:b,y1:x,y2:v,y3:y}}drawTitle(t,e,n){const i=this.title,o=i.length;let r,a,s;if(o){const l=ia(n.rtl,this.x,this.width);for(t.x=bc(this,n.titleAlign,n),e.textAlign=l.textAlign(n.titleAlign),e.textBaseline="middle",r=mr(n.titleFont),a=n.titleSpacing,e.fillStyle=n.titleColor,e.font=r.string,s=0;s<o;++s)e.fillText(i[s],l.x(t.x),t.y+r.lineHeight/2),t.y+=r.lineHeight+a,s+1===o&&(t.y+=n.titleMarginBottom-a)}}_drawColorBox(t,e,n,i,o){const r=this.labelColors[n],a=this.labelPointStyles[n],{boxHeight:s,boxWidth:l,boxPadding:c}=o,d=mr(o.bodyFont),h=bc(this,"left",o),u=i.x(h),p=s<d.lineHeight?(d.lineHeight-s)/2:0,f=e.y+p;if(o.usePointStyle){const e={radius:Math.min(l,s)/2,pointStyle:a.pointStyle,rotation:a.rotation,borderWidth:1},n=i.leftForLtr(u,l)+l/2,c=f+s/2;t.strokeStyle=o.multiKeyBackground,t.fillStyle=o.multiKeyBackground,Jo(t,e,n,c),t.strokeStyle=r.borderColor,t.fillStyle=r.backgroundColor,Jo(t,e,n,c)}else{t.lineWidth=Qn(r.borderWidth)?Math.max(...Object.values(r.borderWidth)):r.borderWidth||1,t.strokeStyle=r.borderColor,t.setLineDash(r.borderDash||[]),t.lineDashOffset=r.borderDashOffset||0;const e=i.leftForLtr(u,l-c),n=i.leftForLtr(i.xPlus(u,1),l-c-2),a=fr(r.borderRadius);Object.values(a).some(t=>0!==t)?(t.beginPath(),t.fillStyle=o.multiKeyBackground,sr(t,{x:e,y:f,w:l,h:s,radius:a}),t.fill(),t.stroke(),t.fillStyle=r.backgroundColor,t.beginPath(),sr(t,{x:n,y:f+1,w:l-2,h:s-2,radius:a}),t.fill()):(t.fillStyle=o.multiKeyBackground,t.fillRect(e,f,l,s),t.strokeRect(e,f,l,s),t.fillStyle=r.backgroundColor,t.fillRect(n,f+1,l-2,s-2))}t.fillStyle=this.labelTextColors[n]}drawBody(t,e,n){const{body:i}=this,{bodySpacing:o,bodyAlign:r,displayColors:a,boxHeight:s,boxWidth:l,boxPadding:c}=n,d=mr(n.bodyFont);let h=d.lineHeight,u=0;const p=ia(n.rtl,this.x,this.width),f=function(n){e.fillText(n,p.x(t.x+u),t.y+h/2),t.y+=h+o},g=p.textAlign(r);let m,b,x,v,y,_,w;for(e.textAlign=r,e.textBaseline="middle",e.font=d.string,t.x=bc(this,g,n),e.fillStyle=n.bodyColor,ri(this.beforeBody,f),u=a&&"right"!==g?"center"===r?l/2+c:l+2+c:0,v=0,_=i.length;v<_;++v){for(m=i[v],b=this.labelTextColors[v],e.fillStyle=b,ri(m.before,f),x=m.lines,a&&x.length&&(this._drawColorBox(e,t,v,p,n),h=Math.max(d.lineHeight,s)),y=0,w=x.length;y<w;++y)f(x[y]),h=d.lineHeight;ri(m.after,f)}u=0,h=d.lineHeight,ri(this.afterBody,f),t.y-=o}drawFooter(t,e,n){const i=this.footer,o=i.length;let r,a;if(o){const s=ia(n.rtl,this.x,this.width);for(t.x=bc(this,n.footerAlign,n),t.y+=n.footerMarginTop,e.textAlign=s.textAlign(n.footerAlign),e.textBaseline="middle",r=mr(n.footerFont),e.fillStyle=n.footerColor,e.font=r.string,a=0;a<o;++a)e.fillText(i[a],s.x(t.x),t.y+r.lineHeight/2),t.y+=r.lineHeight+n.footerSpacing}}drawBackground(t,e,n,i){const{xAlign:o,yAlign:r}=this,{x:a,y:s}=t,{width:l,height:c}=n,{topLeft:d,topRight:h,bottomLeft:u,bottomRight:p}=fr(i.cornerRadius);e.fillStyle=i.backgroundColor,e.strokeStyle=i.borderColor,e.lineWidth=i.borderWidth,e.beginPath(),e.moveTo(a+d,s),"top"===r&&this.drawCaret(t,e,n,i),e.lineTo(a+l-h,s),e.quadraticCurveTo(a+l,s,a+l,s+h),"center"===r&&"right"===o&&this.drawCaret(t,e,n,i),e.lineTo(a+l,s+c-p),e.quadraticCurveTo(a+l,s+c,a+l-p,s+c),"bottom"===r&&this.drawCaret(t,e,n,i),e.lineTo(a+u,s+c),e.quadraticCurveTo(a,s+c,a,s+c-u),"center"===r&&"left"===o&&this.drawCaret(t,e,n,i),e.lineTo(a,s+d),e.quadraticCurveTo(a,s,a+d,s),e.closePath(),e.fill(),i.borderWidth>0&&e.stroke()}_updateAnimationTarget(t){const e=this.chart,n=this.$animations,i=n&&n.x,o=n&&n.y;if(i||o){const n=cc[t.position].call(this,this._active,this._eventPosition);if(!n)return;const r=this._size=pc(this,t),a=Object.assign({},n,this._size),s=gc(e,t,a),l=mc(t,a,s,e);i._to===l.x&&o._to===l.y||(this.xAlign=s.xAlign,this.yAlign=s.yAlign,this.width=r.width,this.height=r.height,this.caretX=n.x,this.caretY=n.y,this._resolveAnimations().update(this,l))}}_willRender(){return!!this.opacity}draw(t){const e=this.options.setContext(this.getContext());let n=this.opacity;if(!n)return;this._updateAnimationTarget(e);const i={width:this.width,height:this.height},o={x:this.x,y:this.y};n=Math.abs(n)<.001?0:n;const r=gr(e.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;e.enabled&&a&&(t.save(),t.globalAlpha=n,this.drawBackground(o,t,i,e),oa(t,e.textDirection),o.y+=r.top,this.drawTitle(o,t,e),this.drawBody(o,t,e),this.drawFooter(o,t,e),ra(t,e.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,e){const n=this._active,i=t.map(({datasetIndex:t,index:e})=>{const n=this.chart.getDatasetMeta(t);if(!n)throw new Error("Cannot find a dataset at index "+t);return{datasetIndex:t,element:n.data[e],index:e}}),o=!ai(n,i),r=this._positionChanged(i,e);(o||r)&&(this._active=i,this._eventPosition=e,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,e,n=!0){if(e&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const i=this.options,o=this._active||[],r=this._getActiveElements(t,o,e,n),a=this._positionChanged(r,t),s=e||!ai(r,o)||a;return s&&(this._active=r,(i.enabled||i.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,e))),s}_getActiveElements(t,e,n,i){const o=this.options;if("mouseout"===t.type)return[];if(!i)return e;const r=this.chart.getElementsAtEventForMode(t,o.mode,o,n);return o.reverse&&r.reverse(),r}_positionChanged(t,e){const{caretX:n,caretY:i,options:o}=this,r=cc[o.position].call(this,t,e);return!1!==r&&(n!==r.x||i!==r.y)}}yc.positioners=cc;var _c={id:"tooltip",_element:yc,positioners:cc,afterInit(t,e,n){n&&(t.tooltip=new yc({chart:t,options:n}))},beforeUpdate(t,e,n){t.tooltip&&t.tooltip.initialize(n)},reset(t,e,n){t.tooltip&&t.tooltip.initialize(n)},afterDraw(t){const e=t.tooltip;if(e&&e._willRender()){const n={tooltip:e};if(!1===t.notifyPlugins("beforeTooltipDraw",n))return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",n)}},afterEvent(t,e){if(t.tooltip){const n=e.replay;t.tooltip.handleEvent(e.event,n,e.inChartArea)&&(e.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(t,e)=>e.bodyFont.size,boxWidth:(t,e)=>e.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:{beforeTitle:qn,title(t){if(t.length>0){const e=t[0],n=e.chart.data.labels,i=n?n.length:0;if(this&&this.options&&"dataset"===this.options.mode)return e.dataset.label||"";if(e.label)return e.label;if(i>0&&e.dataIndex<i)return n[e.dataIndex]}return""},afterTitle:qn,beforeBody:qn,beforeLabel:qn,label(t){if(this&&this.options&&"dataset"===this.options.mode)return t.label+": "+t.formattedValue||t.formattedValue;let e=t.dataset.label||"";e&&(e+=": ");const n=t.formattedValue;return Kn(n)||(e+=n),e},labelColor(t){const e=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{borderColor:e.borderColor,backgroundColor:e.backgroundColor,borderWidth:e.borderWidth,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(t){const e=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{pointStyle:e.pointStyle,rotation:e.rotation}},afterLabel:qn,afterBody:qn,beforeFooter:qn,footer:qn,afterFooter:qn}},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:t=>"filter"!==t&&"itemSort"!==t&&"external"!==t,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};function wc(t,e,n,i){const o=t.indexOf(e);if(-1===o)return((t,e,n,i)=>("string"==typeof e?(n=t.push(e)-1,i.unshift({index:n,label:e})):isNaN(e)&&(n=null),n))(t,e,n,i);return o!==t.lastIndexOf(e)?n:o}class kc extends is{constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const e=this._addedLabels;if(e.length){const t=this.getLabels();for(const{index:n,label:i}of e)t[n]===i&&t.splice(n,1);this._addedLabels=[]}super.init(t)}parse(t,e){if(Kn(t))return null;const n=this.getLabels();return((t,e)=>null===t?null:Yi(Math.round(t),0,e))(e=isFinite(e)&&n[e]===t?e:wc(n,t,ni(e,t),this._addedLabels),n.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let{min:n,max:i}=this.getMinMax(!0);"ticks"===this.options.bounds&&(t||(n=0),e||(i=this.getLabels().length-1)),this.min=n,this.max=i}buildTicks(){const t=this.min,e=this.max,n=this.options.offset,i=[];let o=this.getLabels();o=0===t&&e===o.length-1?o:o.slice(t,e+1),this._valueRange=Math.max(o.length-(n?0:1),1),this._startValue=this.min-(n?.5:0);for(let n=t;n<=e;n++)i.push({value:n});return i}getLabelForValue(t){const e=this.getLabels();return t>=0&&t<e.length?e[t]:t}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return"number"!=typeof t&&(t=this.parse(t)),null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}function Sc(t,e){const n=[],{bounds:i,step:o,min:r,max:a,precision:s,count:l,maxTicks:c,maxDigits:d,includeBounds:h}=t,u=o||1,p=c-1,{min:f,max:g}=e,m=!Kn(r),b=!Kn(a),x=!Kn(l),v=(g-f)/(d+1);let y,_,w,k,S=Di((g-f)/p/u)*u;if(S<1e-14&&!m&&!b)return[{value:f},{value:g}];k=Math.ceil(g/S)-Math.floor(f/S),k>p&&(S=Di(k*S/p/u)*u),Kn(s)||(y=Math.pow(10,s),S=Math.ceil(S*y)/y),"ticks"===i?(_=Math.floor(f/S)*S,w=Math.ceil(g/S)*S):(_=f,w=g),m&&b&&o&&function(t,e){const n=Math.round(t);return n-e<=t&&n+e>=t}((a-r)/o,S/1e3)?(k=Math.round(Math.min((a-r)/S,c)),S=(a-r)/k,_=r,w=a):x?(_=m?r:_,w=b?a:w,k=l-1,S=(w-_)/k):(k=(w-_)/S,k=Ai(k,Math.round(k),S/1e3)?Math.round(k):Math.ceil(k));const E=Math.max(Ii(S),Ii(_));y=Math.pow(10,Kn(s)?E:s),_=Math.round(_*y)/y,w=Math.round(w*y)/y;let O=0;for(m&&(h&&_!==r?(n.push({value:r}),_<r&&O++,Ai(Math.round((_+O*S)*y)/y,r,Ec(r,v,t))&&O++):_<r&&O++);O<k;++O)n.push({value:Math.round((_+O*S)*y)/y});return b&&h&&w!==a?n.length&&Ai(n[n.length-1].value,a,Ec(a,v,t))?n[n.length-1].value=a:n.push({value:a}):b&&w!==a||n.push({value:w}),n}function Ec(t,e,{horizontal:n,minRotation:i}){const o=Li(i),r=(n?Math.sin(o):Math.cos(o))||.001,a=.75*e*(""+t).length;return Math.min(e/r,a)}kc.id="category",kc.defaults={ticks:{callback:kc.prototype.getLabelForValue}};class Oc extends is{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,e){return Kn(t)||("number"==typeof t||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:e,maxDefined:n}=this.getUserBounds();let{min:i,max:o}=this;const r=t=>i=e?i:t,a=t=>o=n?o:t;if(t){const t=Mi(i),e=Mi(o);t<0&&e<0?a(0):t>0&&e>0&&r(0)}if(i===o){let e=1;(o>=Number.MAX_SAFE_INTEGER||i<=Number.MIN_SAFE_INTEGER)&&(e=Math.abs(.05*o)),a(o+e),t||r(i-e)}this.min=i,this.max=o}getTickLimit(){const t=this.options.ticks;let e,{maxTicksLimit:n,stepSize:i}=t;return i?(e=Math.ceil(this.max/i)-Math.floor(this.min/i)+1,e>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${i} would result generating up to ${e} ticks. Limiting to 1000.`),e=1e3)):(e=this.computeTickLimit(),n=n||11),n&&(e=Math.min(n,e)),e}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,e=t.ticks;let n=this.getTickLimit();n=Math.max(2,n);const i=Sc({maxTicks:n,bounds:t.bounds,min:t.min,max:t.max,precision:e.precision,step:e.stepSize,count:e.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:e.minRotation||0,includeBounds:!1!==e.includeBounds},this._range||this);return"ticks"===t.bounds&&Ri(i,this,"value"),t.reverse?(i.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),i}configure(){const t=this.ticks;let e=this.min,n=this.max;if(super.configure(),this.options.offset&&t.length){const i=(n-e)/Math.max(t.length-1,1)/2;e-=i,n+=i}this._startValue=e,this._endValue=n,this._valueRange=n-e}getLabelForValue(t){return na(t,this.chart.options.locale,this.options.ticks.format)}}class Tc extends Oc{determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=ti(t)?t:0,this.max=ti(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),e=t?this.width:this.height,n=Li(this.options.ticks.minRotation),i=(t?Math.sin(n):Math.cos(n))||.001,o=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,o.lineHeight/i))}getPixelForValue(t){return null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}function Mc(t){return 1===t/Math.pow(10,Math.floor(Ti(t)))}Tc.id="linear",Tc.defaults={ticks:{callback:Xa.formatters.numeric}};class Dc extends is{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,e){const n=Oc.prototype.parse.apply(this,[t,e]);if(0!==n)return ti(n)&&n>0?n:null;this._zero=!0}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=ti(t)?Math.max(0,t):null,this.max=ti(e)?Math.max(0,e):null,this.options.beginAtZero&&(this._zero=!0),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let n=this.min,i=this.max;const o=e=>n=t?n:e,r=t=>i=e?i:t,a=(t,e)=>Math.pow(10,Math.floor(Ti(t))+e);n===i&&(n<=0?(o(1),r(10)):(o(a(n,-1)),r(a(i,1)))),n<=0&&o(a(i,-1)),i<=0&&r(a(n,1)),this._zero&&this.min!==this._suggestedMin&&n===a(this.min,0)&&o(a(n,-1)),this.min=n,this.max=i}buildTicks(){const t=this.options,e=function(t,e){const n=Math.floor(Ti(e.max)),i=Math.ceil(e.max/Math.pow(10,n)),o=[];let r=ei(t.min,Math.pow(10,Math.floor(Ti(e.min)))),a=Math.floor(Ti(r)),s=Math.floor(r/Math.pow(10,a)),l=a<0?Math.pow(10,Math.abs(a)):1;do{o.push({value:r,major:Mc(r)}),++s,10===s&&(s=1,++a,l=a>=0?1:l),r=Math.round(s*Math.pow(10,a)*l)/l}while(a<n||a===n&&s<i);const c=ei(t.max,r);return o.push({value:c,major:Mc(r)}),o}({min:this._userMin,max:this._userMax},this);return"ticks"===t.bounds&&Ri(e,this,"value"),t.reverse?(e.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),e}getLabelForValue(t){return void 0===t?"0":na(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=Ti(t),this._valueRange=Ti(this.max)-Ti(t)}getPixelForValue(t){return void 0!==t&&0!==t||(t=this.min),null===t||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(Ti(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const e=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+e*this._valueRange)}}function Cc(t){const e=t.ticks;if(e.display&&t.display){const t=gr(e.backdropPadding);return ni(e.font&&e.font.size,$o.font.size)+t.height}return 0}function Ac(t,e,n){return n=Jn(n)?n:[n],{w:qo(t,e.string,n),h:n.length*e.lineHeight}}function Rc(t,e,n,i,o){return t===i||t===o?{start:e-n/2,end:e+n/2}:t<i||t>o?{start:e-n,end:e}:{start:e,end:e+n}}function Lc(t){const e={l:t.left+t._padding.left,r:t.right-t._padding.right,t:t.top+t._padding.top,b:t.bottom-t._padding.bottom},n=Object.assign({},e),i=[],o=[],r=t._pointLabels.length,a=t.options.pointLabels,s=a.centerPointLabels?vi/r:0;for(let l=0;l<r;l++){const r=a.setContext(t.getPointLabelContext(l));o[l]=r.padding;const c=t.getPointPosition(l,t.drawingArea+o[l],s),d=mr(r.font),h=Ac(t.ctx,d,t._pointLabels[l]);i[l]=h;const u=Bi(t.getIndexAngle(l)+s),p=Math.round(Pi(u));Pc(n,e,u,Rc(p,c.x,h.w,0,180),Rc(p,c.y,h.h,90,270))}t.setCenterPoint(e.l-n.l,n.r-e.r,e.t-n.t,n.b-e.b),t._pointLabelItems=function(t,e,n){const i=[],o=t._pointLabels.length,r=t.options,a=Cc(r)/2,s=t.drawingArea,l=r.pointLabels.centerPointLabels?vi/o:0;for(let r=0;r<o;r++){const o=t.getPointPosition(r,s+a+n[r],l),c=Math.round(Pi(Bi(o.angle+Si))),d=e[r],h=Fc(o.y,d.h,c),u=Ic(c),p=Nc(o.x,d.w,u);i.push({x:o.x,y:h,textAlign:u,left:p,top:h,right:p+d.w,bottom:h+d.h})}return i}(t,i,o)}function Pc(t,e,n,i,o){const r=Math.abs(Math.sin(n)),a=Math.abs(Math.cos(n));let s=0,l=0;i.start<e.l?(s=(e.l-i.start)/r,t.l=Math.min(t.l,e.l-s)):i.end>e.r&&(s=(i.end-e.r)/r,t.r=Math.max(t.r,e.r+s)),o.start<e.t?(l=(e.t-o.start)/a,t.t=Math.min(t.t,e.t-l)):o.end>e.b&&(l=(o.end-e.b)/a,t.b=Math.max(t.b,e.b+l))}function Ic(t){return 0===t||180===t?"center":t<180?"left":"right"}function Nc(t,e,n){return"right"===n?t-=e:"center"===n&&(t-=e/2),t}function Fc(t,e,n){return 90===n||270===n?t-=e/2:(n>270||n<90)&&(t-=e),t}function zc(t,e,n,i){const{ctx:o}=t;if(n)o.arc(t.xCenter,t.yCenter,e,0,yi);else{let n=t.getPointPosition(0,e);o.moveTo(n.x,n.y);for(let r=1;r<i;r++)n=t.getPointPosition(r,e),o.lineTo(n.x,n.y)}}Dc.id="logarithmic",Dc.defaults={ticks:{callback:Xa.formatters.logarithmic,major:{enabled:!0}}};class Bc extends Oc{constructor(t){super(t),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const t=this._padding=gr(Cc(this.options)/2),e=this.width=this.maxWidth-t.width,n=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+e/2+t.left),this.yCenter=Math.floor(this.top+n/2+t.top),this.drawingArea=Math.floor(Math.min(e,n)/2)}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!1);this.min=ti(t)&&!isNaN(t)?t:0,this.max=ti(e)&&!isNaN(e)?e:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/Cc(this.options))}generateTickLabels(t){Oc.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map((t,e)=>{const n=oi(this.options.pointLabels.callback,[t,e],this);return n||0===n?n:""}).filter((t,e)=>this.chart.getDataVisibility(e))}fit(){const t=this.options;t.display&&t.pointLabels.display?Lc(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,e,n,i){this.xCenter+=Math.floor((t-e)/2),this.yCenter+=Math.floor((n-i)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,e,n,i))}getIndexAngle(t){return Bi(t*(yi/(this._pointLabels.length||1))+Li(this.options.startAngle||0))}getDistanceFromCenterForValue(t){if(Kn(t))return NaN;const e=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*e:(t-this.min)*e}getValueForDistanceFromCenter(t){if(Kn(t))return NaN;const e=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-e:this.min+e}getPointLabelContext(t){const e=this._pointLabels||[];if(t>=0&&t<e.length){const n=e[t];return function(t,e,n){return xr(t,{label:n,index:e,type:"pointLabel"})}(this.getContext(),t,n)}}getPointPosition(t,e,n=0){const i=this.getIndexAngle(t)-Si+n;return{x:Math.cos(i)*e+this.xCenter,y:Math.sin(i)*e+this.yCenter,angle:i}}getPointPositionForValue(t,e){return this.getPointPosition(t,this.getDistanceFromCenterForValue(e))}getBasePosition(t){return this.getPointPositionForValue(t||0,this.getBaseValue())}getPointLabelPosition(t){const{left:e,top:n,right:i,bottom:o}=this._pointLabelItems[t];return{left:e,top:n,right:i,bottom:o}}drawBackground(){const{backgroundColor:t,grid:{circular:e}}=this.options;if(t){const n=this.ctx;n.save(),n.beginPath(),zc(this,this.getDistanceFromCenterForValue(this._endValue),e,this._pointLabels.length),n.closePath(),n.fillStyle=t,n.fill(),n.restore()}}drawGrid(){const t=this.ctx,e=this.options,{angleLines:n,grid:i}=e,o=this._pointLabels.length;let r,a,s;if(e.pointLabels.display&&function(t,e){const{ctx:n,options:{pointLabels:i}}=t;for(let o=e-1;o>=0;o--){const e=i.setContext(t.getPointLabelContext(o)),r=mr(e.font),{x:a,y:s,textAlign:l,left:c,top:d,right:h,bottom:u}=t._pointLabelItems[o],{backdropColor:p}=e;if(!Kn(p)){const t=fr(e.borderRadius),i=gr(e.backdropPadding);n.fillStyle=p;const o=c-i.left,r=d-i.top,a=h-c+i.width,s=u-d+i.height;Object.values(t).some(t=>0!==t)?(n.beginPath(),sr(n,{x:o,y:r,w:a,h:s,radius:t}),n.fill()):n.fillRect(o,r,a,s)}rr(n,t._pointLabels[o],a,s+r.lineHeight/2,r,{color:e.color,textAlign:l,textBaseline:"middle"})}}(this,o),i.display&&this.ticks.forEach((t,e)=>{if(0!==e){a=this.getDistanceFromCenterForValue(t.value);!function(t,e,n,i){const o=t.ctx,r=e.circular,{color:a,lineWidth:s}=e;!r&&!i||!a||!s||n<0||(o.save(),o.strokeStyle=a,o.lineWidth=s,o.setLineDash(e.borderDash),o.lineDashOffset=e.borderDashOffset,o.beginPath(),zc(t,n,r,i),o.closePath(),o.stroke(),o.restore())}(this,i.setContext(this.getContext(e-1)),a,o)}}),n.display){for(t.save(),r=o-1;r>=0;r--){const i=n.setContext(this.getPointLabelContext(r)),{color:o,lineWidth:l}=i;l&&o&&(t.lineWidth=l,t.strokeStyle=o,t.setLineDash(i.borderDash),t.lineDashOffset=i.borderDashOffset,a=this.getDistanceFromCenterForValue(e.ticks.reverse?this.min:this.max),s=this.getPointPosition(r,a),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(s.x,s.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,e=this.options,n=e.ticks;if(!n.display)return;const i=this.getIndexAngle(0);let o,r;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(i),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((i,a)=>{if(0===a&&!e.reverse)return;const s=n.setContext(this.getContext(a)),l=mr(s.font);if(o=this.getDistanceFromCenterForValue(this.ticks[a].value),s.showLabelBackdrop){t.font=l.string,r=t.measureText(i.label).width,t.fillStyle=s.backdropColor;const e=gr(s.backdropPadding);t.fillRect(-r/2-e.left,-o-l.size/2-e.top,r+e.width,l.size+e.height)}rr(t,i.label,0,-o,l,{color:s.color})}),t.restore()}drawTitle(){}}Bc.id="radialLinear",Bc.defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Xa.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:t=>t,padding:5,centerPointLabels:!1}},Bc.defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"},Bc.descriptors={angleLines:{_fallback:"grid"}};const jc={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},Yc=Object.keys(jc);function Hc(t,e){return t-e}function Wc(t,e){if(Kn(e))return null;const n=t._adapter,{parser:i,round:o,isoWeekday:r}=t._parseOpts;let a=e;return"function"==typeof i&&(a=i(a)),ti(a)||(a="string"==typeof i?n.parse(a,i):n.parse(a)),null===a?null:(o&&(a="week"!==o||!Ci(r)&&!0!==r?n.startOf(a,o):n.startOf(a,"isoWeek",r)),+a)}function Vc(t,e,n,i){const o=Yc.length;for(let r=Yc.indexOf(t);r<o-1;++r){const t=jc[Yc[r]],o=t.steps?t.steps:Number.MAX_SAFE_INTEGER;if(t.common&&Math.ceil((n-e)/(o*t.size))<=i)return Yc[r]}return Yc[o-1]}function Uc(t,e,n){if(n){if(n.length){const{lo:i,hi:o}=Wi(n,e);t[n[i]>=e?n[i]:n[o]]=!0}}else t[e]=!0}function Gc(t,e,n){const i=[],o={},r=e.length;let a,s;for(a=0;a<r;++a)s=e[a],o[s]=a,i.push({value:s,major:!1});return 0!==r&&n?function(t,e,n,i){const o=t._adapter,r=+o.startOf(e[0].value,i),a=e[e.length-1].value;let s,l;for(s=r;s<=a;s=+o.add(s,1,i))l=n[s],l>=0&&(e[l].major=!0);return e}(t,i,o,n):i}class $c extends is{constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,e){const n=t.time||(t.time={}),i=this._adapter=new cs._date(t.adapters.date);i.init(e),hi(n.displayFormats,i.formats()),this._parseOpts={parser:n.parser,round:n.round,isoWeekday:n.isoWeekday},super.init(t),this._normalized=e.normalized}parse(t,e){return void 0===t?null:Wc(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,e=this._adapter,n=t.time.unit||"day";let{min:i,max:o,minDefined:r,maxDefined:a}=this.getUserBounds();function s(t){r||isNaN(t.min)||(i=Math.min(i,t.min)),a||isNaN(t.max)||(o=Math.max(o,t.max))}r&&a||(s(this._getLabelBounds()),"ticks"===t.bounds&&"labels"===t.ticks.source||s(this.getMinMax(!1))),i=ti(i)&&!isNaN(i)?i:+e.startOf(Date.now(),n),o=ti(o)&&!isNaN(o)?o:+e.endOf(Date.now(),n)+1,this.min=Math.min(i,o-1),this.max=Math.max(i+1,o)}_getLabelBounds(){const t=this.getLabelTimestamps();let e=Number.POSITIVE_INFINITY,n=Number.NEGATIVE_INFINITY;return t.length&&(e=t[0],n=t[t.length-1]),{min:e,max:n}}buildTicks(){const t=this.options,e=t.time,n=t.ticks,i="labels"===n.source?this.getLabelTimestamps():this._generate();"ticks"===t.bounds&&i.length&&(this.min=this._userMin||i[0],this.max=this._userMax||i[i.length-1]);const o=this.min,r=function(t,e,n){let i=0,o=t.length;for(;i<o&&t[i]<e;)i++;for(;o>i&&t[o-1]>n;)o--;return i>0||o<t.length?t.slice(i,o):t}(i,o,this.max);return this._unit=e.unit||(n.autoSkip?Vc(e.minUnit,this.min,this.max,this._getLabelCapacity(o)):function(t,e,n,i,o){for(let r=Yc.length-1;r>=Yc.indexOf(n);r--){const n=Yc[r];if(jc[n].common&&t._adapter.diff(o,i,n)>=e-1)return n}return Yc[n?Yc.indexOf(n):0]}(this,r.length,e.minUnit,this.min,this.max)),this._majorUnit=n.major.enabled&&"year"!==this._unit?function(t){for(let e=Yc.indexOf(t)+1,n=Yc.length;e<n;++e)if(jc[Yc[e]].common)return Yc[e]}(this._unit):void 0,this.initOffsets(i),t.reverse&&r.reverse(),Gc(this,r,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t){let e,n,i=0,o=0;this.options.offset&&t.length&&(e=this.getDecimalForValue(t[0]),i=1===t.length?1-e:(this.getDecimalForValue(t[1])-e)/2,n=this.getDecimalForValue(t[t.length-1]),o=1===t.length?n:(n-this.getDecimalForValue(t[t.length-2]))/2);const r=t.length<3?.5:.25;i=Yi(i,0,r),o=Yi(o,0,r),this._offsets={start:i,end:o,factor:1/(i+1+o)}}_generate(){const t=this._adapter,e=this.min,n=this.max,i=this.options,o=i.time,r=o.unit||Vc(o.minUnit,e,n,this._getLabelCapacity(e)),a=ni(o.stepSize,1),s="week"===r&&o.isoWeekday,l=Ci(s)||!0===s,c={};let d,h,u=e;if(l&&(u=+t.startOf(u,"isoWeek",s)),u=+t.startOf(u,l?"day":r),t.diff(n,e,r)>1e5*a)throw new Error(e+" and "+n+" are too far apart with stepSize of "+a+" "+r);const p="data"===i.ticks.source&&this.getDataTimestamps();for(d=u,h=0;d<n;d=+t.add(d,a,r),h++)Uc(c,d,p);return d!==n&&"ticks"!==i.bounds&&1!==h||Uc(c,d,p),Object.keys(c).sort((t,e)=>t-e).map(t=>+t)}getLabelForValue(t){const e=this._adapter,n=this.options.time;return n.tooltipFormat?e.format(t,n.tooltipFormat):e.format(t,n.displayFormats.datetime)}_tickFormatFunction(t,e,n,i){const o=this.options,r=o.time.displayFormats,a=this._unit,s=this._majorUnit,l=a&&r[a],c=s&&r[s],d=n[e],h=s&&c&&d&&d.major,u=this._adapter.format(t,i||(h?c:l)),p=o.ticks.callback;return p?oi(p,[u,e,n],this):u}generateTickLabels(t){let e,n,i;for(e=0,n=t.length;e<n;++e)i=t[e],i.label=this._tickFormatFunction(i.value,e,t)}getDecimalForValue(t){return null===t?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const e=this._offsets,n=this.getDecimalForValue(t);return this.getPixelForDecimal((e.start+n)*e.factor)}getValueForPixel(t){const e=this._offsets,n=this.getDecimalForPixel(t)/e.factor-e.end;return this.min+n*(this.max-this.min)}_getLabelSize(t){const e=this.options.ticks,n=this.ctx.measureText(t).width,i=Li(this.isHorizontal()?e.maxRotation:e.minRotation),o=Math.cos(i),r=Math.sin(i),a=this._resolveTickFontOptions(0).size;return{w:n*o+a*r,h:n*r+a*o}}_getLabelCapacity(t){const e=this.options.time,n=e.displayFormats,i=n[e.unit]||n.millisecond,o=this._tickFormatFunction(t,0,Gc(this,[t],this._majorUnit),i),r=this._getLabelSize(o),a=Math.floor(this.isHorizontal()?this.width/r.w:this.height/r.h)-1;return a>0?a:1}getDataTimestamps(){let t,e,n=this._cache.data||[];if(n.length)return n;const i=this.getMatchingVisibleMetas();if(this._normalized&&i.length)return this._cache.data=i[0].controller.getAllParsedValues(this);for(t=0,e=i.length;t<e;++t)n=n.concat(i[t].controller.getAllParsedValues(this));return this._cache.data=this.normalize(n)}getLabelTimestamps(){const t=this._cache.labels||[];let e,n;if(t.length)return t;const i=this.getLabels();for(e=0,n=i.length;e<n;++e)t.push(Wc(this,i[e]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return Xi(t.sort(Hc))}}function Xc(t,e,n){let i,o,r,a,s=0,l=t.length-1;n?(e>=t[s].pos&&e<=t[l].pos&&({lo:s,hi:l}=Vi(t,"pos",e)),({pos:i,time:r}=t[s]),({pos:o,time:a}=t[l])):(e>=t[s].time&&e<=t[l].time&&({lo:s,hi:l}=Vi(t,"time",e)),({time:i,pos:r}=t[s]),({time:o,pos:a}=t[l]));const c=o-i;return c?r+(a-r)*(e-i)/c:r}$c.id="time",$c.defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",major:{enabled:!1}}};class qc extends $c{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),e=this._table=this.buildLookupTable(t);this._minPos=Xc(e,this.min),this._tableRange=Xc(e,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:e,max:n}=this,i=[],o=[];let r,a,s,l,c;for(r=0,a=t.length;r<a;++r)l=t[r],l>=e&&l<=n&&i.push(l);if(i.length<2)return[{time:e,pos:0},{time:n,pos:1}];for(r=0,a=i.length;r<a;++r)c=i[r+1],s=i[r-1],l=i[r],Math.round((c+s)/2)!==l&&o.push({time:l,pos:r/(a-1)});return o}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const e=this.getDataTimestamps(),n=this.getLabelTimestamps();return t=e.length&&n.length?this.normalize(e.concat(n)):e.length?e:n,t=this._cache.all=t,t}getDecimalForValue(t){return(Xc(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const e=this._offsets,n=this.getDecimalForPixel(t)/e.factor-e.end;return Xc(this._table,n*this._tableRange+this._minPos,!0)}}qc.id="timeseries",qc.defaults=$c.defaults;const Zc="label";function Kc(t,e){"function"==typeof t?t(e):t&&(t.current=e)}function Jc(t,e){t.labels=e}function Qc(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Zc;const i=[];t.datasets=e.map(e=>{const o=t.datasets.find(t=>t[n]===e[n]);return o&&e.data&&!i.includes(o)?(i.push(o),Object.assign(o,e),o):{...e}})}function td(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Zc;const n={labels:[],datasets:[]};return Jc(n,t.labels),Qc(n,t.datasets,e),n}function ed(e,n){let{height:i=150,width:o=300,redraw:r=!1,datasetIdKey:a,type:l,data:c,options:d,plugins:h=[],fallbackContent:u,updateMode:p,...f}=e;const g=t.useRef(null),m=t.useRef(),b=()=>{g.current&&(m.current=new ml(g.current,{type:l,data:td(c,a),options:d&&{...d},plugins:h}),Kc(n,m.current))},x=()=>{Kc(n,null),m.current&&(m.current.destroy(),m.current=null)};return t.useEffect(()=>{var t,e;!r&&m.current&&d&&(t=m.current,e=d,Object.assign(t.options,e))},[r,d]),t.useEffect(()=>{!r&&m.current&&Jc(m.current.config.data,c.labels)},[r,c.labels]),t.useEffect(()=>{!r&&m.current&&c.datasets&&Qc(m.current.config.data,c.datasets,a)},[r,c.datasets]),t.useEffect(()=>{m.current&&(r?(x(),setTimeout(b)):m.current.update(p))},[r,d,c.labels,c.datasets,p]),t.useEffect(()=>{m.current&&(x(),setTimeout(b))},[l]),t.useEffect(()=>(b(),()=>x()),[]),s.default.createElement("canvas",Object.assign({ref:g,role:"img",height:i,width:o},f),u)}const nd=t.forwardRef(ed);ml.register(kc,Tc,Il,Ll,Ha,_c,lc,rc);var id,od,rd,ad,sd,ld=le.div(id||(id=i.__makeTemplateObject(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n"],["\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n"]))),cd=le(e.Tabs)(od||(od=i.__makeTemplateObject(["\n width: ",";\n\n & .ant-tabs-content-animated {\n transition: margin 1s ease-out;\n }\n"],["\n width: ",";\n\n & .ant-tabs-content-animated {\n transition: margin 1s ease-out;\n }\n"])),function(t){return"".concat(t.width,"px")}),dd=le.span(rd||(rd=i.__makeTemplateObject(["\n display: flex;\n gap: 0.25rem;\n margin-top: 10px;\n"],["\n display: flex;\n gap: 0.25rem;\n margin-top: 10px;\n"]))),hd=le.span(ad||(ad=i.__makeTemplateObject(["\n height: 10px;\n width: 10px;\n background-color: ",";\n border-radius: 50%;\n display: inline-block;\n"],["\n height: 10px;\n width: 10px;\n background-color: ",";\n border-radius: 50%;\n display: inline-block;\n"])),function(t){return t.isActive?t.activeColor:"#d3d7de"});function ud(t){var n=t.children,i=t.placement,o=void 0===i?"bottomRight":i,r=t.overlayClassName,a=void 0===r?vd:r,l=t.arrowPointAtCenter,c=void 0===l||l,d=t.trigger,h=void 0===d?"hover":d,u=t.color,p=t.title,f=t.content,g=t.mouseEnterDelay,m=void 0===g?0:g,b=t.mouseLeaveDelay,x=void 0===b?0:b,v=t.isNew,y=void 0!==v&&v,_=t.actionTitle,w=t.dismissTitle,k=t.maxWidth,S=t.onAction,E=t.onDismiss,O=k?{maxWidth:k}:void 0;return s.default.createElement(e.Tooltip,{overlayClassName:a,arrowPointAtCenter:c,trigger:h,color:u,placement:o,overlayStyle:O,title:s.default.createElement(yd,null,p&&s.default.createElement(zn,{style:{fontSize:exports.FONT_SIZE.P1,marginBottom:"16px",color:He.text.white}},p,!0===y&&s.default.createElement(wd,null,"New")),f,(_||w)&&s.default.createElement(_d,null,s.default.createElement(Sd,{onClick:function(t){t.preventDefault(),E&&E()}},w),s.default.createElement(kd,{onClick:function(t){t.preventDefault(),S&&S()}},_))),mouseEnterDelay:m,mouseLeaveDelay:x},n)}var pd,fd,gd,md,bd,xd,vd=xt(pd||(pd=i.__makeTemplateObject(["\n max-width: 200px;\n font-family: ",";\n font-size: ",";\n font-weight: ",";\n color: ",";\n box-shadow: none;\n\n .ant-tooltip-inner {\n padding: 12px;\n border-radius: 8px;\n box-shadow: none;\n background-color: ",";\n }\n\n "," {\n max-width: 250px;\n }\n\n .ant-tooltip-arrow {\n width: 16px;\n height: 16px;\n\n .ant-tooltip-arrow-content {\n background-color: ",";\n box-shadow: none;\n width: 16px;\n height: 16px;\n }\n }\n"],["\n max-width: 200px;\n font-family: ",";\n font-size: ",";\n font-weight: ",";\n color: ",";\n box-shadow: none;\n\n .ant-tooltip-inner {\n padding: 12px;\n border-radius: 8px;\n box-shadow: none;\n background-color: ",";\n }\n\n "," {\n max-width: 250px;\n }\n\n .ant-tooltip-arrow {\n width: 16px;\n height: 16px;\n\n .ant-tooltip-arrow-content {\n background-color: ",";\n box-shadow: none;\n width: 16px;\n height: 16px;\n }\n }\n"])),we,exports.FONT_SIZE.P1,exports.FONT_WEIGHT.REGULAR,He.text.white,He.brand.primary.contrast,_e,He.brand.primary.contrast),yd=le.div(fd||(fd=i.__makeTemplateObject(["\n line-height: 22px;\n"],["\n line-height: 22px;\n"]))),_d=le.div(gd||(gd=i.__makeTemplateObject(["\n margin: 24px 0 0 0;\n display: flex;\n justify-content: flex-end;\n\n a {\n margin: 0 0 0 20px;\n }\n"],["\n margin: 24px 0 0 0;\n display: flex;\n justify-content: flex-end;\n\n a {\n margin: 0 0 0 20px;\n }\n"]))),wd=le.span(md||(md=i.__makeTemplateObject(["\n display: inline-block;\n margin: 0 0 0 8px;\n padding: 2px 6px;\n background-color: ",";\n color: ",";\n font-size: ",";\n font-weight: ",";\n border-radius: 4px;\n"],["\n display: inline-block;\n margin: 0 0 0 8px;\n padding: 2px 6px;\n background-color: ",";\n color: ",";\n font-size: ",";\n font-weight: ",";\n border-radius: 4px;\n"])),exports.GREEN_COLORS.G400,He.text.white,exports.FONT_SIZE.SMALL,exports.FONT_WEIGHT.BOLD),kd=le.a(bd||(bd=i.__makeTemplateObject(["\n font-weight: ",";\n color: ",";\n &:hover {\n color: ",";\n }\n"],["\n font-weight: ",";\n color: ",";\n &:hover {\n color: ",";\n }\n"])),exports.FONT_WEIGHT.BOLD,He.brand.action.default,He.brand.action.hover),Sd=le.a(xd||(xd=i.__makeTemplateObject(["\n font-weight: ",";\n color: ",";\n &:hover {\n color: ",";\n }\n"],["\n font-weight: ",";\n color: ",";\n &:hover {\n color: ",";\n }\n"])),exports.FONT_WEIGHT.BOLD,He.text.white,He.text.white);We('@import url("https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200");.material-symbols-rounded{word-wrap:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-feature-settings:"liga";direction:ltr;display:inline-block;font-family:Material Symbols Rounded;font-size:24px;font-style:normal;font-weight:400;letter-spacing:normal;line-height:1;text-rendering:optimizeLegibility;text-transform:none;white-space:nowrap}');var Ed={xs:16,s:20,m:24,l:32,xl:40,xxl:48},Od=function(t){var e=t.icon,n=t.size,o=void 0===n?"m":n,r=t.fill,a=void 0===r?0:r,l=t.color,c=void 0===l?exports.NEUTRAL_COLORS.BLACK:l,d=t.className,h=void 0===d?"":d,u=t.style,p="string"==typeof o?Ed[o]:o,f=i.__assign({fontVariationSettings:"'FILL' ".concat(a,", 'wght' 400"),fontSize:p,color:c},u);return s.default.createElement("span",{className:"material-symbols-rounded ".concat(h),style:f,translate:"no"},e)},Td={positive:"check",critical:"cancel",warning:"timer",info:"info",neutral:"timer"},Md={sm:"xs",lg:"s"},Dd={positive:{base:He.color.surface.subduePositive,text:He.color.status.positive,icon:He.color.status.positive,border:He.color.status.positive},critical:{base:He.color.surface.subdueCritical,text:He.color.status.critical,icon:He.color.status.critical,border:He.color.status.critical},warning:{base:He.color.surface.subdueWarning,text:He.color.status.warning,icon:He.color.status.warning,border:He.color.status.warning},info:{base:He.color.surface.SubdueInfo,text:He.color.status.info,icon:He.color.status.info,border:He.color.status.info},neutral:{base:exports.NEUTRAL_COLORS.G100,text:He.color.base.onNeutralSecondary,icon:He.color.base.onNeutralSecondary,border:He.color.base.line}},Cd={positive:{base:He.color.status.positive,text:He.color.base.onContainer,icon:"",border:He.color.status.positive},neutral:{base:He.color.surface.disabledSurface,text:He.color.surface.disabledOnSurface,icon:"",border:He.color.base.line}},Ad={positive:{base:He.color.surface.subduePositive,text:He.color.status.positive,icon:He.color.status.positive,border:He.color.status.positive},disabled:{base:He.color.surface.disabledSurface,text:He.color.surface.disabledOnSurface,icon:He.color.surface.disabledOnSurface,border:He.color.base.line},neutral:{base:He.color.surface.neutral,text:He.color.base.onNeutralSecondary,icon:He.color.base.onNeutralSecondary,border:He.color.base.line}};function Rd(t,e,n){switch(e){case"outlined":default:return Dd[t][n];case"filled":return Cd[t][n];case"removable":return Ad[t][n]}}function Ld(t){var e=t.type,n=t.children,i=t.showIcon,o=void 0!==i&&i,r=t.size,a=void 0===r?"sm":r,l=t.variant,c=void 0===l?"outlined":l,d=t.onClick;return s.default.createElement(Hd,{type:e,size:a,variant:c,onClick:"removable"!==c?d:void 0},o&&"disabled"!==e&&s.default.createElement(Od,{icon:Td[e],size:Md[a],color:Rd(e,c,"icon")}),s.default.createElement(kt.Body,{size:a,color:Rd(e,c,"text")},n),"removable"===c&&s.default.createElement(Yd,{onMouseDown:function(t){t.preventDefault(),t.stopPropagation()},onClick:function(t){t.preventDefault(),t.stopPropagation(),null==d||d()},type:"tertiary",icon:s.default.createElement(Od,{icon:"close",size:Md[a],color:Rd(e,c,"icon")})}))}var Pd,Id,Nd,Fd,zd,Bd,jd,Yd=le(ln)(Pd||(Pd=i.__makeTemplateObject(["\n && {\n padding: 0 !important;\n width: auto !important;\n height: auto !important;\n }\n\n &&:hover {\n background: transparent !important;\n }\n\n &&:focus {\n background: transparent !important;\n }\n\n &&:active {\n background: transparent !important;\n }\n"],["\n && {\n padding: 0 !important;\n width: auto !important;\n height: auto !important;\n }\n\n &&:hover {\n background: transparent !important;\n }\n\n &&:focus {\n background: transparent !important;\n }\n\n &&:active {\n background: transparent !important;\n }\n"]))),Hd=le.div(Id||(Id=i.__makeTemplateObject(["\n display: flex;\n flex-direction: row;\n gap: 4px;\n align-items: center;\n justify-content: center;\n width: fit-content;\n height: fit-content;\n text-transform: capitalize;\n\n ",";\n"],["\n display: flex;\n flex-direction: row;\n gap: 4px;\n align-items: center;\n justify-content: center;\n width: fit-content;\n height: fit-content;\n text-transform: capitalize;\n\n ",";\n"])),function(t){return function(t){var e=t.type,n=t.variant,i=void 0===n?"outlined":n,o=t.size,r=void 0===o?"sm":o,a=t.onClick;return"\n border-radius: ".concat("removable"===i?"999px":"4px",";\n min-height: ").concat("sm"===r?"24px":"32px",";\n background-color: ").concat(e&&i?Rd(e,i,"base"):"transparent",";\n border: 1px solid ").concat(e&&i?Rd(e,i,"border"):"transparent",";\n padding-inline: ").concat("removable"===i?"12px":"8px",";\n cursor: ").concat(a?"pointer":"default",";\n\n")}(t)}),Wd=le.div(Nd||(Nd=i.__makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: 4px;\n span {\n display: inline-flex;\n cursor: pointer;\n }\n"],["\n display: flex;\n align-items: center;\n gap: 4px;\n span {\n display: inline-flex;\n cursor: pointer;\n }\n"]))),Vd=le.div(Fd||(Fd=i.__makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: 8px;\n"],["\n display: flex;\n align-items: center;\n gap: 8px;\n"]))),Ud=le.div(zd||(zd=i.__makeTemplateObject(["\n display: flex;\n flex-direction: column;\n gap: 4px;\n min-width: 100px;\n width: 100%;\n"],["\n display: flex;\n flex-direction: column;\n gap: 4px;\n min-width: 100px;\n width: 100%;\n"]))),Gd="\n .ant-select-selection-placeholder {\n display: flex;\n align-items: center;\n \n span {\n color: ".concat(He.color.component.placeholderInput," !important;\n }\n }\n"),$d="\n .ant-select-selection-item {\n display: flex !important;\n align-items: center !important;\n color: ".concat(He.color.base.onNeutral," !important;\n }\n\n &.ant-select-open .ant-select-selection-item {\n color: ").concat(He.color.base.onNeutral," !important;\n }\n"),Xd="\n .ant-select-arrow {\n display: flex !important;\n align-items: center !important;\n gap: 8px !important;\n width: auto !important;\n align-self: center !important;\n \n span {\n color: ".concat(He.color.base.onNeutral," !important;\n }\n }\n"),qd=le(e.Select)(Bd||(Bd=i.__makeTemplateObject(["\n .ant-form-item-has-error & {\n background-color: "," !important;\n }\n ","\n ","\n ","\n ","\n ","\n ","\n"],["\n .ant-form-item-has-error & {\n background-color: "," !important;\n }\n ","\n ","\n ","\n ","\n ","\n ","\n"])),He.color.surface.neutral,function(t){return function(t){var e="multiple"===t.$mode?"sm"===t.$size?"6px":"8px":"12px";return"\n .ant-select-selector {\n border-radius: ".concat("sm"===t.$size?"8px":"12px"," !important;\n position: relative !important;\n display: flex;\n align-items: ").concat("multiple"===t.$mode?"flex-start":"center"," !important;\n padding: ").concat(e," 16px !important;\n\n min-height: ").concat("sm"===t.$size?"36px":"48px"," !important;\n ").concat("multiple"!==t.$mode?"height: ".concat("sm"===t.$size?"36px":"48px"," !important;"):"height: auto !important;","\n\n background: ").concat(t.disabled?He.color.surface.disabledSurface:He.color.surface.neutral," !important;\n\n border: 1px solid ").concat(t.error?He.color.status.critical:He.color.base.line," !important;\n }\n")}(t)},function(t){return function(t){return"\n &:hover .ant-select-selector,\n &.ant-select-focused .ant-select-selector {\n ".concat(!t.disabled&&"\n box-shadow: 0 0 0 1px ".concat(He.color.base.onNeutral,"20 !important;\n border: 1px solid ").concat(t.error?He.color.status.critical:He.color.base.primary2," !important;\n "),"\n }\n")}(t)},Gd,function(t){return function(t){return"\n .ant-select-selection-overflow {\n gap: 8px;\n ".concat("multiple"===t.$mode?"flex-wrap: wrap !important;":"","\n ").concat("multiple"===t.$mode?"align-content: center !important;":"","\n }\n")}(t)},$d,Xd),Zd="\n .rc-virtual-list-holder-inner {\n gap: 0;\n }\n .rc-virtual-list-holder {\n overflow-y: auto !important;\n }\n .ant-select-item {\n color: ".concat(He.color.base.onNeutral," !important;\n padding: 12px !important;\n margin-bottom: 4px !important;\n }\n .ant-select-item:last-child {\n margin-bottom: 0 !important;\n }\n"),Kd="\n .ant-select-item-option-selected {\n background: #d7efe2 !important;\n position: relative !important;\n \n .anticon {\n display: none !important;\n }\n \n &::after {\n content: 'check' !important;\n font-family: 'Material Symbols Rounded' !important;\n color: ".concat(He.color.status.positive," !important;\n position: absolute !important;\n right: 12px !important;\n top: 50% !important;\n transform: translateY(-50%) !important;\n font-size: 16px !important;\n }\n }\n"),Jd="\n .ant-select-item:hover {\n background: ".concat(He.color.interactive.hoverSurface," !important;\n }\n \n .ant-select-item:active {\n background: ").concat(He.color.interactive.pressedSurface," !important;\n }\n"),Qd="\n .ant-select-item-option-disabled,\n .ant-select-item-option-disabled:hover {\n background: ".concat(He.color.surface.disabledSurface," !important;\n span { \n color: ").concat(He.color.surface.disabledOnSurface," !important;\n }\n }\n"),th=le.div(jd||(jd=i.__makeTemplateObject(["\n ","\n ","\n ","\n ","\n padding-bottom: 8px;\n"],["\n ","\n ","\n ","\n ","\n padding-bottom: 8px;\n"])),Zd,Kd,Jd,Qd),eh={padding:0,paddingBottom:"4px",borderRadius:"12px"},nh={sm:"md",lg:"lg"},ih={sm:"md",lg:"lg"},oh=function(t){return s.default.createElement(s.default.Fragment,null,t&&s.default.createElement(kt.Body,{color:He.color.base.onNeutralSecondary,size:"sm"},t),s.default.createElement(Od,{icon:"keyboard_arrow_down"}))},rh=function(t,e){return e?s.default.createElement(kt.Body,{size:nh[t]},e):null},ah=function(t,e,n){return"multiple"===t?function(t){var i=t.label,o=t.onClose;return s.default.createElement(Ld,{type:e?"disabled":"positive",variant:"removable",size:n,onClick:e?void 0:o},i)}:void 0},sh=function(n){var o=n.children,r=n.disabled,a=void 0!==r&&r,l=n.size,c=void 0===l?"sm":l,d=n.mode,h=n.label,u=n.labelTooltip,p=n.selectRef,f=n.placeholder,g=n.error,m=void 0!==g&&g,b=n.secondaryText,x=n.helperText,v=n.options,y=i.__rest(n,["children","disabled","size","mode","label","labelTooltip","selectRef","placeholder","error","secondaryText","helperText","options"]),_=t.useRef(null),w=p||_;return s.default.createElement(Ud,null,h&&function(t,e){return t?s.default.createElement(Wd,null,s.default.createElement(kt.Body,{size:"md"},t),e?s.default.createElement(ud,{placement:"top",title:"I'm Tooltip Component",content:e},s.default.createElement("span",null,s.default.createElement(Od,{icon:"info",size:"xs"}))):null):null}(h,u),s.default.createElement(qd,i.__assign({disabled:a,mode:d,ref:w,$size:c,$mode:d,getPopupContainer:function(){return document.body}},y,{error:m,dropdownRender:function(t){return s.default.createElement(th,{$size:c},s.default.createElement(kt.Body,{size:"sm"===c?"md":"lg"},t))},dropdownStyle:eh,suffixIcon:oh(b),placeholder:rh(c,f),showArrow:!0,tagRender:ah(d,a,c),maxTagCount:999}),v?function(t,n){return t.map(function(t){var i=t.value,o=t.label,r=t.icon,a=t.disabled;return s.default.createElement(e.Select.Option,{key:i,value:i,disabled:a},s.default.createElement(Vd,null,r&&s.default.createElement(r,{style:{width:"16px",height:"16px"}}),s.default.createElement(kt.Body,{size:ih[n]},o)))})}(v,c):o),function(t){return t?s.default.createElement(kt.Body,{color:He.color.base.onNeutralSecondary,size:"sm"},t):null}(x))};sh.Option=e.Select.Option;var lh=function(t,e){var i=e.iconSrc,o=void 0===i?null:i,r=e.extraText,a=void 0===r?"":r,l=e.extraAction,c=void 0===l?function(){}:l,d=e.isAddItemBarVisible,h=void 0===d||d,u=e.topContent,p=e.bottomContent,f=e.actionContent;return s.default.createElement(fh,null,u,t,f||function(t){var e=t.iconSrc,i=void 0===e?null:e,o=t.extraText,r=void 0===o?"":o,a=t.extraAction,l=void 0===a?function(){}:a,c=t.isAddItemBarVisible;return void 0===c||c?s.default.createElement(mh,{onMouseDown:function(){l()}},i?s.default.createElement(gh,{src:i}):s.default.createElement(n.SvgAdd,null),r):null}({iconSrc:o,extraText:a,extraAction:c,isAddItemBarVisible:h}),p)},ch=function(t){var e=t.className,n=void 0===e?"":e,o=t.children,r=t.disabled,a=void 0!==r&&r,l=t.mode,c=t.label,d=t.iconSrc,h=void 0===d?"":d,u=t.extraText,p=void 0===u?"":u,f=t.extraAction,g=void 0===f?function(){}:f,m=t.isAddItemBarVisible,b=void 0===m||m,x=t.topContent,v=void 0===x?null:x,y=t.bottomContent,_=void 0===y?null:y,w=t.actionContent,k=void 0===w?null:w,S=i.__rest(t,["className","children","disabled","mode","label","iconSrc","extraText","extraAction","isAddItemBarVisible","topContent","bottomContent","actionContent"]);return s.default.createElement(sh,i.__assign({className:n,disabled:a,mode:l,label:c,dropdownRender:function(t){return lh(t,{iconSrc:h,extraText:p,extraAction:g,isAddItemBarVisible:b,topContent:v,bottomContent:_,actionContent:k})}},S),o)};ch.Option=sh.Option;var dh,hh,uh,ph,fh=le.div(dh||(dh=i.__makeTemplateObject(["\n padding-top: 15px;\n"],["\n padding-top: 15px;\n"]))),gh=le.img(hh||(hh=i.__makeTemplateObject(["\n margin-right: 5px;\n"],["\n margin-right: 5px;\n"]))),mh=le(Fn)(uh||(uh=i.__makeTemplateObject(["\n font-weight: 500;\n color: #2f8dee;\n display: flex;\n align-items: center;\n margin-left: 15px;\n cursor: pointer;\n margin-top: 10px;\n margin-bottom: 15px;\n &:hover {\n text-decoration: underline;\n }\n"],["\n font-weight: 500;\n color: #2f8dee;\n display: flex;\n align-items: center;\n margin-left: 15px;\n cursor: pointer;\n margin-top: 10px;\n margin-bottom: 15px;\n &:hover {\n text-decoration: underline;\n }\n"]))),bh=xt(ph||(ph=i.__makeTemplateObject(["\n & .ant-form-item {\n margin-bottom: 0 !important;\n }\n\n & .ant-form-item-has-error {\n font-family: "," !important;\n font-size: "," !important;\n line-height: 17px !important;\n\n & .ant-form-item-explain {\n color: "," !important;\n padding-top: 5px !important;\n padding-bottom: 5px !important;\n }\n\n & .ant-input,\n .ant-picker-input,\n .ant-select-selector {\n color: "," !important;\n\n &::placeholder,\n input::placeholder,\n .ant-select-selection-placeholder {\n color: "," !important;\n font-weight: 400 !important;\n }\n }\n\n & .ant-input,\n .ant-picker,\n .ant-select,\n .ant-select-selector {\n border-top-right-radius: 5px !important;\n border-bottom-right-radius: 5px !important;\n border-color: "," !important;\n background-color: "," !important;\n\n &:hover {\n border-color: "," !important;\n background-color: "," !important;\n }\n\n &:focus {\n border-color: "," !important;\n -webkit-box-shadow: 0 0 0 3px "," !important;\n box-shadow: 0 0 0 3px "," !important;\n background-color: "," !important;\n }\n }\n\n & .ant-input-group-addon .ant-select,\n & .ant-input-group-addon .ant-select-selector {\n background-color: transparent !important;\n border-color: transparent !important;\n }\n\n & .ant-input-group-addon:not(:last-child) {\n color: "," !important;\n background-color: "," !important;\n border-top-left-radius: 5px !important;\n border-bottom-left-radius: 5px !important;\n border-color: "," !important;\n border-right: 0 !important;\n }\n }\n"],["\n & .ant-form-item {\n margin-bottom: 0 !important;\n }\n\n & .ant-form-item-has-error {\n font-family: "," !important;\n font-size: "," !important;\n line-height: 17px !important;\n\n & .ant-form-item-explain {\n color: "," !important;\n padding-top: 5px !important;\n padding-bottom: 5px !important;\n }\n\n & .ant-input,\n .ant-picker-input,\n .ant-select-selector {\n color: "," !important;\n\n &::placeholder,\n input::placeholder,\n .ant-select-selection-placeholder {\n color: "," !important;\n font-weight: 400 !important;\n }\n }\n\n & .ant-input,\n .ant-picker,\n .ant-select,\n .ant-select-selector {\n border-top-right-radius: 5px !important;\n border-bottom-right-radius: 5px !important;\n border-color: "," !important;\n background-color: "," !important;\n\n &:hover {\n border-color: "," !important;\n background-color: "," !important;\n }\n\n &:focus {\n border-color: "," !important;\n -webkit-box-shadow: 0 0 0 3px "," !important;\n box-shadow: 0 0 0 3px "," !important;\n background-color: "," !important;\n }\n }\n\n & .ant-input-group-addon .ant-select,\n & .ant-input-group-addon .ant-select-selector {\n background-color: transparent !important;\n border-color: transparent !important;\n }\n\n & .ant-input-group-addon:not(:last-child) {\n color: "," !important;\n background-color: "," !important;\n border-top-left-radius: 5px !important;\n border-bottom-left-radius: 5px !important;\n border-color: "," !important;\n border-right: 0 !important;\n }\n }\n"])),cn,exports.FONT_SIZE.P1,exports.RED_COLORS.R400,exports.RED_COLORS.R400,exports.RED_COLORS.R400,exports.RED_COLORS.R300,exports.RED_COLORS.R100,exports.RED_COLORS.R300,exports.RED_COLORS.R100,exports.RED_COLORS.R300,exports.RED_COLORS.R200,exports.RED_COLORS.R200,exports.RED_COLORS.R100,exports.RED_COLORS.R400,exports.RED_COLORS.R100,exports.RED_COLORS.R300),xh=function(t){var n=t.className,o=void 0===n?"":n,r=t.children,a=i.__rest(t,["className","children"]);return s.default.createElement(e.Form,i.__assign({className:bt(bh,o)},a),r)};function vh(t,e,n,i){void 0===e&&(e="large");var o=dn[e],r=o.height,a=o.borderRadius,s=o.padding,l=n?t.color.status.critical:t.color.base.line;return"\n -webkit-font-smoothing: antialiased;\n\n /* Shared font/sizing for all .ant-input elements */\n & .ant-input, &.ant-input, &.ant-input-password {\n padding: ".concat(s,";\n font-family: ").concat(cn,";\n font-size: ").concat(exports.FONT_SIZE.P1,";\n color: ").concat(t.color.base.onNeutral,";\n line-height: 17px;\n height: ").concat(r,";\n box-sizing: border-box;\n &::placeholder {\n color: ").concat(t.color.component.placeholderInput,";\n font-weight: 400;\n }\n }\n\n /* Case 1: Standalone input — class directly on .ant-input */\n &.ant-input, &.ant-input-password {\n border-radius: ").concat(a," !important;\n border-color: ").concat(l,";\n height: ").concat(r,";\n padding: ").concat(s,";\n &:hover:not(:disabled):not(.ant-input-affix-wrapper-disabled) { border-color: ").concat(n?t.color.status.critical:t.color.base.primary2," !important; }\n &:focus {\n border-color: ").concat(n?t.color.status.critical:t.color.base.primary2,";\n box-shadow: none;\n color: ").concat(t.color.base.onNeutral,";\n }\n }\n\n /* Case 2: Input with addon — class on .ant-input-group-wrapper */\n /* addonBefore: input is after addon — flat left, rounded right */\n & .ant-input-group > .ant-input:last-child {\n border-radius: 0 ").concat(a," ").concat(a," 0 !important;\n border-color: ").concat(l,";\n height: ").concat(r,";\n &:hover:not(:disabled):not(.ant-input-affix-wrapper-disabled) { border-color: ").concat(n?t.color.status.critical:t.color.base.primary2," !important; }\n &:focus {\n border-color: ").concat(n?t.color.status.critical:t.color.base.primary2,";\n box-shadow: none;\n color: ").concat(t.color.base.onNeutral,";\n }\n }\n /* addonAfter: input is before addon — rounded left, flat right */\n & .ant-input-group > .ant-input:first-child {\n border-radius: ").concat(a," 0 0 ").concat(a," !important;\n border-color: ").concat(l,";\n height: ").concat(r,";\n &:hover:not(:disabled):not(.ant-input-affix-wrapper-disabled) { border-color: ").concat(n?t.color.status.critical:t.color.base.primary2," !important; }\n &:focus {\n border-color: ").concat(n?t.color.status.critical:t.color.base.primary2,";\n box-shadow: none;\n color: ").concat(t.color.base.onNeutral,";\n }\n }\n\n /* Case 3: Input with prefix (e.g. Search without addon) — class on .ant-input-affix-wrapper */\n &.ant-input-affix-wrapper {\n border-radius: ").concat(a," !important;\n border-color: ").concat(l,";\n height: ").concat(r,";\n padding: ").concat(s,";\n &:hover:not(:disabled):not(.ant-input-affix-wrapper-disabled) { border-color: ").concat(n?t.color.status.critical:t.color.base.primary2," !important; }\n & .ant-input {\n height: auto;\n padding: 0;\n border: none;\n border-radius: 0 !important;\n }\n }\n &.ant-input-affix-wrapper-focused {\n border-color: ").concat(n?t.color.status.critical:t.color.base.primary2," !important;\n box-shadow: none;\n }\n\n /* Case 4: addon + prefix — class on .ant-input-group-wrapper */\n & .ant-input-group > .ant-input-affix-wrapper:last-child,\n & .ant-input-group > .ant-input-affix-wrapper:first-child {\n border-color: ").concat(l,";\n height: ").concat(r,";\n padding: ").concat(s,";\n &:hover:not(:disabled):not(.ant-input-affix-wrapper-disabled) { border-color: ").concat(n?t.color.status.critical:t.color.base.primary2," !important; }\n &.ant-input-affix-wrapper-focused {\n border-color: ").concat(n?t.color.status.critical:t.color.base.primary2," !important;\n box-shadow: none;\n }\n & .ant-input {\n height: auto;\n padding: 0;\n border: none;\n border-radius: 0 !important;\n box-shadow: none;\n &:hover, &:focus { border: none; box-shadow: none; }\n }\n }\n /* addonBefore + prefix — rounded right */\n & .ant-input-group > .ant-input-affix-wrapper:last-child {\n border-radius: 0 ").concat(a," ").concat(a," 0 !important;\n padding-left: 8px;\n }\n /* prefix + addonAfter — rounded left */\n & .ant-input-group > .ant-input-affix-wrapper:first-child {\n border-radius: ").concat(a," 0 0 ").concat(a," !important;\n }\n\n /* Disabled states */\n &.ant-input-disabled, & .ant-input-disabled {\n background-color: ").concat(t.color.surface.disabledSurface,";\n border-color: ").concat(t.color.base.line,";\n color: ").concat(t.color.base.onNeutral,";\n -webkit-text-fill-color: ").concat(t.color.base.onNeutral,";\n &::placeholder {\n color: ").concat(t.color.component.placeholderInput,";\n -webkit-text-fill-color: ").concat(t.color.component.placeholderInput,";\n }\n &:hover { border-color: ").concat(t.color.base.line," !important; }\n }\n &.ant-input-affix-wrapper-disabled {\n background-color: ").concat(t.color.surface.disabledSurface,";\n border-color: ").concat(t.color.base.line,";\n &:hover { border-color: ").concat(t.color.base.line," !important; }\n & .ant-input-disabled {\n background-color: ").concat(t.color.surface.disabledSurface,";\n color: ").concat(t.color.base.onNeutral,";\n -webkit-text-fill-color: ").concat(t.color.base.onNeutral,";\n &::placeholder {\n color: ").concat(t.color.component.placeholderInput,";\n -webkit-text-fill-color: ").concat(t.color.component.placeholderInput,";\n }\n }\n }\n\n /* Addon containers */\n &.ant-input-group-wrapper-status-error .ant-input-group-addon,\n &.ant-input-group-wrapper-status-error .ant-input-group-addon:last-child,\n &.ant-input-group-wrapper-status-error .ant-input-group-addon:not(:last-child) {\n background-color: ").concat(t.color.surface.neutral," !important;\n }\n &.ant-input-group-wrapper-status-error .ant-input-group-addon .ant-select {\n background-color: ").concat(t.color.surface.neutral," !important;\n }\n\n & .ant-input-group-addon:not(:last-child) {\n font-family: ").concat(cn,";\n color: ").concat(t.color.base.onNeutral,";\n background-color: ").concat(t.color.surface.neutral,";\n border-top-left-radius: ").concat(a," !important;\n border-bottom-left-radius: ").concat(a," !important;\n border-color: ").concat(t.color.base.line,";\n border-right: 0;\n padding-left: 12px;\n padding-right: 8px;\n &:has(.ant-select) {\n padding: 4px;\n .ant-select-focused .ant-select-selector {\n border-color: transparent !important;\n box-shadow: none !important;\n }\n .ant-select-selector {\n border: none !important;\n box-shadow: none !important;\n background: transparent !important;\n height: 100%;\n }\n }\n &:has([data-addon-custom]) {\n background-color: ").concat(t.color.surface.neutral,";\n padding-left: 12px;\n padding-right: 8px;\n }\n + .ant-input-disabled {\n background-color: ").concat(t.color.surface.disabledSurface,";\n border-color: ").concat(t.color.base.line,";\n color: ").concat(t.color.base.onNeutral,";\n -webkit-text-fill-color: ").concat(t.color.base.onNeutral,";\n &::placeholder {\n color: ").concat(t.color.component.placeholderInput,";\n -webkit-text-fill-color: ").concat(t.color.component.placeholderInput,";\n }\n &:hover { border-color: ").concat(t.color.base.line,"; }\n }\n }\n & .ant-input-group-addon:last-child {\n font-family: ").concat(cn,";\n color: ").concat(t.color.base.onNeutral,";\n background-color: ").concat(t.color.surface.neutral,";\n border-top-right-radius: ").concat(a," !important;\n border-bottom-right-radius: ").concat(a," !important;\n border-color: ").concat(t.color.base.line,";\n border-left: 0;\n padding-left: 16px;\n padding-right: 16px;\n &:has(.ant-select) {\n padding: 4px;\n .ant-select-focused .ant-select-selector {\n border-color: transparent !important;\n box-shadow: none !important;\n }\n .ant-select-selector {\n border: none !important;\n box-shadow: none !important;\n background: transparent !important;\n height: 100%;\n }\n }\n &:has([data-addon-custom]) {\n background-color: ").concat(t.color.surface.neutral,";\n padding-left: 8px;\n padding-right: 12px;\n }\n &:hover {\n background-color: ").concat(t.color.interactive.hoverSurface,";\n border-color: ").concat(t.color.base.line,";\n border-left: 1px solid ").concat(t.color.base.line,";\n }\n &:focus-within {\n background-color: ").concat(t.color.surface.neutral,";\n border-color: ").concat(t.color.base.primary2," !important;\n border-left: 1px solid ").concat(t.color.base.primary2,";\n }\n }\n & .ant-input-group-addon:not(:last-child):hover {\n background-color: ").concat(t.color.interactive.hoverSurface,";\n border-color: ").concat(t.color.base.line,";\n border-right: 1px solid ").concat(t.color.base.line,";\n }\n & .ant-input-group-addon:not(:last-child):focus-within {\n background-color: ").concat(t.color.surface.neutral,";\n border-color: ").concat(t.color.base.primary2," !important;\n border-right: 1px solid ").concat(t.color.base.primary2,";\n }\n & .ant-input-group:has(.ant-input-group-addon:last-child:hover) > .ant-input:first-child,\n & .ant-input-group:has(.ant-input-group-addon:last-child:hover) > .ant-input-affix-wrapper:first-child {\n border-right: 0 !important;\n }\n & .ant-input-group:has(.ant-input-group-addon:last-child:focus-within) > .ant-input:first-child,\n & .ant-input-group:has(.ant-input-group-addon:last-child:focus-within) > .ant-input-affix-wrapper:first-child {\n border-right: 0 !important;\n }\n & .ant-input-group:has(.ant-input-group-addon:not(:last-child):hover) > .ant-input:last-child,\n & .ant-input-group:has(.ant-input-group-addon:not(:last-child):hover) > .ant-input-affix-wrapper:last-child {\n border-left: 0 !important;\n }\n & .ant-input-group:has(.ant-input-group-addon:not(:last-child):focus-within) > .ant-input:last-child,\n & .ant-input-group:has(.ant-input-group-addon:not(:last-child):focus-within) > .ant-input-affix-wrapper:last-child {\n border-left: 0 !important;\n }\n ").concat(i?"\n & .ant-input-group-addon:last-child {\n background-color: ".concat(t.color.surface.disabledSurface,";\n color: ").concat(t.color.base.onNeutral,";\n pointer-events: none;\n cursor: not-allowed;\n border-color: ").concat(t.color.base.line,";\n border-left: 1px solid ").concat(t.color.base.line,";\n &:has([data-addon-custom]) {\n background-color: ").concat(t.color.surface.disabledSurface,";\n }\n }\n & .ant-input-group > .ant-input:first-child,\n & .ant-input-group > .ant-input-affix-wrapper:first-child {\n border-right: 0;\n }\n & .ant-input-group-addon:not(:last-child) {\n background-color: ").concat(t.color.surface.disabledSurface,";\n color: ").concat(t.color.base.onNeutral,";\n pointer-events: none;\n cursor: not-allowed;\n border-color: ").concat(t.color.base.line,";\n border-right: 1px solid ").concat(t.color.base.line,";\n &:has([data-addon-custom]) {\n background-color: ").concat(t.color.surface.disabledSurface,";\n }\n }\n & .ant-input-group > .ant-input:last-child,\n & .ant-input-group > .ant-input-affix-wrapper:last-child {\n border-left: 0;\n }\n "):"","\n ")}function yh(t){var e=t.text,n=t.error,i=Ke();if(!e)return null;var o=n?i.color.status.critical:i.color.component.helperInput;return s.default.createElement(kt.Body,{size:"sm",style:{color:o,marginTop:4}},e)}function _h(t){var e=t.label,i=t.required,o=t.optional,r=t.showInfoIcon,a=t.infoText,l=t.onInfoClick,c=Ke();return e?s.default.createElement(kh,null,s.default.createElement(kt.Body,{size:"sm",style:{color:c.color.base.onNeutral}},e,i&&s.default.createElement("span",{style:{color:c.error.text,marginLeft:2}},"*")),o&&s.default.createElement(kt.Body,{size:"sm",style:{color:c.color.base.onNeutralSecondary}},"Optional"),r&&a&&s.default.createElement(ud,{content:a,placement:"top"},s.default.createElement("span",{role:"button",tabIndex:0,"aria-label":"More information",onClick:l,onKeyDown:function(t){"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),null==l||l())},style:{display:"inline-flex",cursor:"pointer"}},s.default.createElement(n.SvgInfo,{style:{width:16,height:16}}))),r&&!a&&s.default.createElement("span",{role:"button",tabIndex:0,"aria-label":"More information",onClick:l,onKeyDown:function(t){"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),null==l||l())},style:{display:"inline-flex",cursor:"pointer"}},s.default.createElement(n.SvgInfo,{style:{width:16,height:16}}))):null}xh.Item=function(t){var n=t.className,o=void 0===n?"":n,r=i.__rest(t,["className"]);return s.default.createElement(e.Form.Item,i.__assign({className:bt(bh,o)},r))},xh.useForm=e.Form.useForm;var wh,kh=le.div(wh||(wh=i.__makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: 4px;\n margin-bottom: 4px;\n"],["\n display: flex;\n align-items: center;\n gap: 4px;\n margin-bottom: 4px;\n"]))),Sh=function(t){var n=t.addonBefore,o=t.addonAfter,r=t.placeholder,a=void 0===r?"":r,l=t.disabled,c=void 0!==l&&l,d=t.disabledAddon,h=void 0!==d&&d,u=t.className,p=void 0===u?"":u,f=t.label,g=t.required,m=t.optional,b=void 0!==m&&m,x=t.size,v=void 0===x?"large":x,y=t.helperText,_=t.error,w=t.showInfoIcon,k=t.infoText,S=t.onInfoClick,E=i.__rest(t,["addonBefore","addonAfter","placeholder","disabled","disabledAddon","className","label","required","optional","size","helperText","error","showInfoIcon","infoText","onInfoClick"]),O=vh(Ke(),v,_,h);return s.default.createElement("div",null,s.default.createElement(_h,{label:f,required:g,optional:b,showInfoIcon:w,infoText:k,onInfoClick:S}),s.default.createElement(e.Input,i.__assign({className:"".concat(xt(O)," ").concat(p),addonBefore:n,addonAfter:o,placeholder:a,disabled:c},E)),s.default.createElement(yh,{text:y,error:_}))};Sh.Password=function(t){var n=t.addonBefore,o=void 0===n?"":n,r=t.placeholder,a=void 0===r?"":r,l=t.disabled,c=void 0!==l&&l,d=t.className,h=void 0===d?"":d,u=t.label,p=t.required,f=t.optional,g=void 0!==f&&f,m=t.size,b=void 0===m?"large":m,x=t.helperText,v=t.error,y=t.showInfoIcon,_=t.infoText,w=t.onInfoClick,k=i.__rest(t,["addonBefore","placeholder","disabled","className","label","required","optional","size","helperText","error","showInfoIcon","infoText","onInfoClick"]),S=vh(Ke(),b,v);return s.default.createElement("div",null,s.default.createElement(_h,{label:u,required:p,optional:g,showInfoIcon:y,infoText:_,onInfoClick:w}),s.default.createElement(e.Input.Password,i.__assign({className:"".concat(xt(S)," ").concat(h),addonBefore:o,placeholder:a,disabled:c,visibilityToggle:!0},k)),s.default.createElement(yh,{text:x,error:v}))},Sh.Search=function(t){var n=t.addonBefore,o=void 0===n?"":n,r=t.placeholder,a=void 0===r?"":r,l=t.className,c=void 0===l?"":l,d=t.onChange,h=t.onSearch,u=t.size,p=void 0===u?"large":u,f=t.helperText,g=t.error,m=i.__rest(t,["addonBefore","placeholder","className","onChange","onSearch","size","helperText","error"]),b=Ke(),x="".concat(vh(b,p,g),"\n & .ant-input-group-addon:not(:last-child) {\n background-color: ").concat(b.color.surface.neutral,";\n padding: ").concat("string"==typeof o?"0 15px":"0",";\n }\n &.ant-input-affix-wrapper .ant-input-prefix {\n margin-right: 8px;\n display: flex;\n align-items: center;\n }\n ");return s.default.createElement("div",null,s.default.createElement(e.Input,i.__assign({placeholder:a,addonBefore:o,onChange:d,onKeyDown:h,className:"".concat(xt(x)," ").concat(c),prefix:s.default.createElement("span",{onClick:h,style:{display:"flex",cursor:h?"pointer":"default"}},s.default.createElement(Od,{icon:"search",size:"small"===p?"xs":"m",color:b.color.base.onNeutral}))},m)),s.default.createElement(yh,{text:f,error:g}))},Sh.TextArea=function(t){var n=t.className,o=void 0===n?"":n,r=t.label,a=t.required,l=void 0!==a&&a,c=t.optional,d=void 0!==c&&c,h=t.size,u=void 0===h?"large":h,p=t.helperText,f=t.error,g=t.showInfoIcon,m=t.infoText,b=t.onInfoClick,x=i.__rest(t,["className","label","required","optional","size","helperText","error","showInfoIcon","infoText","onInfoClick"]),v=Ke(),y=f?v.color.status.critical:v.color.base.line,_=dn[u],w=_.borderRadius,k=_.padding,S="".concat(vh(v,u,f),"\n &.ant-input {\n min-height: 72px;\n height: auto;\n resize: none;\n border-radius: ").concat(w," !important;\n border-color: ").concat(y,";\n padding: ").concat(k,";\n &:hover:not(:disabled):not(.ant-input-disabled) { border-color: ").concat(f?v.color.status.critical:v.color.base.primary2," !important; }\n &:focus {\n border-color: ").concat(v.color.base.primary2,";\n box-shadow: none;\n }\n &:disabled {\n color: ").concat(v.color.base.onNeutral," !important;\n -webkit-text-fill-color: ").concat(v.color.base.onNeutral," !important;\n background-color: ").concat(v.color.surface.disabledSurface,";\n border-color: ").concat(v.color.base.line,";\n &::placeholder {\n color: ").concat(v.color.surface.disabledOnSurface," !important;\n -webkit-text-fill-color: ").concat(v.color.surface.disabledOnSurface," !important;\n }\n &:hover { border-color: ").concat(v.color.base.line," !important; }\n }\n }\n ");return s.default.createElement("div",null,s.default.createElement(_h,{label:r,required:l,optional:d,showInfoIcon:g,infoText:m,onInfoClick:b}),s.default.createElement(e.Input.TextArea,i.__assign({className:"".concat(xt(S)," ").concat(o)},x)),s.default.createElement(yh,{text:p,error:f}))},Sh.Group=e.Input.Group;var Eh,Oh,Th,Mh,Dh,Ch,Ah,Rh,Lh,Ph,Ih,Nh,Fh,zh,Bh,jh,Yh,Hh,Wh,Vh,Uh,Gh,$h=dn.large,Xh=$h.height,qh=$h.borderRadius,Zh=$h.padding,Kh=le.div(Eh||(Eh=i.__makeTemplateObject(["\n display: flex;\n height: ",";\n width: 100%;\n position: relative;\n"],["\n display: flex;\n height: ",";\n width: 100%;\n position: relative;\n"])),Xh),Jh=le.div(Oh||(Oh=i.__makeTemplateObject(["\n display: flex;\n align-items: center;\n padding: 0 16px;\n border: 1px solid ",";\n border-right: none;\n border-radius: "," 0 0 ",";\n background-color: ",";\n color: ",";\n font-family: ",";\n font-size: ",";\n white-space: nowrap;\n cursor: ",";\n box-sizing: border-box;\n overflow: visible;\n\n & > * {\n pointer-events: ",";\n }\n\n &:hover {\n background-color: ",";\n }\n"],["\n display: flex;\n align-items: center;\n padding: 0 16px;\n border: 1px solid ",";\n border-right: none;\n border-radius: "," 0 0 ",";\n background-color: ",";\n color: ",";\n font-family: ",";\n font-size: ",";\n white-space: nowrap;\n cursor: ",";\n box-sizing: border-box;\n overflow: visible;\n\n & > * {\n pointer-events: ",";\n }\n\n &:hover {\n background-color: ",";\n }\n"])),function(t){return t.borderColor},qh,qh,function(t){return t.bgColor},function(t){return t.textColor},cn,exports.FONT_SIZE.P1,function(t){return t.isDisabled?"not-allowed":"default"},function(t){return t.isDisabled?"none":"auto"},function(t){return t.isDisabled?t.bgColor:t.hoverBgColor}),Qh=le.input(Th||(Th=i.__makeTemplateObject(["\n flex: 1;\n min-width: 0;\n height: 100%;\n padding: ",";\n border: 1px solid ",";\n border-radius: ",";\n font-family: ",";\n font-size: ",";\n color: ",";\n background-color: ",";\n outline: none;\n box-sizing: border-box;\n cursor: ",";\n\n &::placeholder {\n color: ",";\n font-weight: 400;\n }\n\n &:focus {\n border-color: ",";\n }\n\n &:hover {\n border-color: ",";\n }\n"],["\n flex: 1;\n min-width: 0;\n height: 100%;\n padding: ",";\n border: 1px solid ",";\n border-radius: ",";\n font-family: ",";\n font-size: ",";\n color: ",";\n background-color: ",";\n outline: none;\n box-sizing: border-box;\n cursor: ",";\n\n &::placeholder {\n color: ",";\n font-weight: 400;\n }\n\n &:focus {\n border-color: ",";\n }\n\n &:hover {\n border-color: ",";\n }\n"])),Zh,function(t){return t.borderColor},function(t){return t.hasPrefix?"0":"".concat(qh," 0 0 ").concat(qh)},cn,exports.FONT_SIZE.P1,function(t){return t.isDisabled?t.disabledTextColor:t.textColor},function(t){return t.isDisabled?t.disabledBgColor:"transparent"},function(t){return t.isDisabled?"not-allowed":"text"},function(t){return t.placeholderColor},function(t){return t.isDisabled?t.borderColor:t.focusBorderColor},function(t){return t.isDisabled?t.borderColor:t.focusBorderColor}),tu=le.button(Mh||(Mh=i.__makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 0 24px;\n border: none;\n border-radius: 0 "," "," 0;\n background-color: ",";\n color: ",";\n font-family: ",";\n font-size: ",";\n font-weight: 700;\n white-space: nowrap;\n cursor: ",";\n box-sizing: border-box;\n\n &:hover {\n opacity: ",";\n }\n"],["\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 0 24px;\n border: none;\n border-radius: 0 "," "," 0;\n background-color: ",";\n color: ",";\n font-family: ",";\n font-size: ",";\n font-weight: 700;\n white-space: nowrap;\n cursor: ",";\n box-sizing: border-box;\n\n &:hover {\n opacity: ",";\n }\n"])),qh,qh,function(t){return t.isDisabled?t.disabledBgColor:t.bgColor},function(t){return t.isDisabled?t.disabledTextColor:t.textColor},cn,exports.FONT_SIZE.P1,function(t){return t.isDisabled?"not-allowed":"pointer"},function(t){return t.isDisabled?1:.9}),eu=le.div(Dh||(Dh=i.__makeTemplateObject(["\n ","\n padding-left: ",";\n padding-right: ",";\n"],["\n ","\n padding-left: ",";\n padding-right: ",";\n"])),function(t){return t.hasIcon?"\n height: 86px;\n ":"\n height: 73px;\n "},Be,Be),nu=le(Fn)(Ch||(Ch=i.__makeTemplateObject(["\n border-bottom: 1px solid #e8e8e8;\n padding-top: ",";\n padding-left: ",";\n padding-right: ",";\n padding-bottom: ",";\n"],["\n border-bottom: 1px solid #e8e8e8;\n padding-top: ",";\n padding-left: ",";\n padding-right: ",";\n padding-bottom: ",";\n"])),ze,Be,Be,Be),iu=le.div(Ah||(Ah=i.__makeTemplateObject(["\n background: #f6f7f9;\n display: flex;\n justify-content: flex-end;\n padding-right: ",";\n padding-top: ",";\n padding-bottom: ",";\n"],["\n background: #f6f7f9;\n display: flex;\n justify-content: flex-end;\n padding-right: ",";\n padding-top: ",";\n padding-bottom: ",";\n"])),Be,Ne,Ne),ou=le.div(Rh||(Rh=i.__makeTemplateObject(["\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: space-between;\n"],["\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: space-between;\n"]))),ru=le.div(Lh||(Lh=i.__makeTemplateObject(["\n display: flex;\n align-items: center;\n user-select: none;\n & :not(:last-child) {\n margin-right: 10px;\n }\n"],["\n display: flex;\n align-items: center;\n user-select: none;\n & :not(:last-child) {\n margin-right: 10px;\n }\n"]))),au=le.div(Ph||(Ph=i.__makeTemplateObject(["\n cursor: pointer;\n padding-left: 5px;\n padding-right: 5px;\n margin-right: -5px;\n"],["\n cursor: pointer;\n padding-left: 5px;\n padding-right: 5px;\n margin-right: -5px;\n"]))),su=le.div(Ih||(Ih=i.__makeTemplateObject(["\n width: calc(100vw - 32px);\n max-width: 400px;\n background: white;\n box-shadow: 0px 4px 10px rgba(170, 170, 170, 0.25);\n border-radius: 5px;\n overflow: hidden;\n -webkit-font-smoothing: antialiased;\n margin-bottom: 1.7vh;\n position: absolute;\n top: 6.8vh;\n left: 50%;\n transform: translateX(-50%);\n"],["\n width: calc(100vw - 32px);\n max-width: 400px;\n background: white;\n box-shadow: 0px 4px 10px rgba(170, 170, 170, 0.25);\n border-radius: 5px;\n overflow: hidden;\n -webkit-font-smoothing: antialiased;\n margin-bottom: 1.7vh;\n position: absolute;\n top: 6.8vh;\n left: 50%;\n transform: translateX(-50%);\n"]))),lu=document.body,cu=Wt(zh||(zh=i.__makeTemplateObject(["\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n"],["\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n"]))),du=le.div(jh||(jh=i.__makeTemplateObject(["\n position: fixed;\n width: 100vw;\n height: 100%;\n background: rgba(0, 0, 0, 0.2);\n top: 0;\n left: 0;\n background: rgba(0, 0, 0, 0.2);\n display: none;\n overflow: auto;\n z-index: 9; // bigger than nav bar z-index: 8\n\n ",";\n"],["\n position: fixed;\n width: 100vw;\n height: 100%;\n background: rgba(0, 0, 0, 0.2);\n top: 0;\n left: 0;\n background: rgba(0, 0, 0, 0.2);\n display: none;\n overflow: auto;\n z-index: 9; // bigger than nav bar z-index: 8\n\n ",";\n"])),function(t){return t.open&&Bt(Bh||(Bh=i.__makeTemplateObject(["\n display: block;\n animation: "," 0.3s ease;\n "],["\n display: block;\n animation: "," 0.3s ease;\n "])),cu)}),hu=le.div(Yh||(Yh=i.__makeTemplateObject(["\n ","\n padding-left: ",";\n padding-right: ",";\n"],["\n ","\n padding-left: ",";\n padding-right: ",";\n"])),function(t){return t.hasIcon?"\n height: 86px;\n ":"\n height: 73px;\n "},Be,Be),uu=le.div(Hh||(Hh=i.__makeTemplateObject(["\n border-bottom: 1px solid #e8e8e8;\n padding-top: ",";\n padding-left: ",";\n padding-right: ",";\n padding-bottom: ",";\n"],["\n border-bottom: 1px solid #e8e8e8;\n padding-top: ",";\n padding-left: ",";\n padding-right: ",";\n padding-bottom: ",";\n"])),ze,Be,Be,Be),pu=le.div(Wh||(Wh=i.__makeTemplateObject(["\npadding-top: \n background: #f6f7f9;\n display: flex;\n justify-content: flex-end;\n padding-right: ",";\n padding-top: ",";\n padding-bottom: ",";\n"],["\npadding-top: \n background: #f6f7f9;\n display: flex;\n justify-content: flex-end;\n padding-right: ",";\n padding-top: ",";\n padding-bottom: ",";\n"])),Be,Ne,Ne),fu=le.div(Vh||(Vh=i.__makeTemplateObject(["\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: space-between;\n"],["\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: space-between;\n"]))),gu=le.div(Uh||(Uh=i.__makeTemplateObject(["\n display: flex;\n align-items: center;\n user-select: none;\n & :not(:last-child) {\n margin-right: 10px;\n }\n"],["\n display: flex;\n align-items: center;\n user-select: none;\n & :not(:last-child) {\n margin-right: 10px;\n }\n"]))),mu=le.div(Gh||(Gh=i.__makeTemplateObject(["\n cursor: pointer;\n padding-left: 5px;\n padding-right: 5px;\n margin-right: -5px;\n"],["\n cursor: pointer;\n padding-left: 5px;\n padding-right: 5px;\n margin-right: -5px;\n"])));var bu,xu={Group:function(t){return s.default.createElement(e.Radio.Group,i.__assign({size:"large",onChange:t.onChange},t))},Button:function(t){var n=t.children,o=t.disabled,r=i.__rest(t,["children","disabled"]),a=Ke().brand,l="\n &.ant-radio-button-wrapper {\n ".concat(o?"":"color: ".concat(exports.NEUTRAL_COLORS.BLACK," !important;"),"\n -webkit-font-smoothing: antialiased !important;\n display: block !important;\n width: 100% !important;\n font-family: ").concat(cn," !important;\n font-weight: 400 !important;\n border-radius: 5px !important;\n border: 1px solid ").concat(exports.NEUTRAL_COLORS.G200," !important;\n user-select: none !important;\n }\n\n .ant-radio-group-large &.ant-radio-button-wrapper {\n height: 44px !important;\n }\n\n &.ant-radio-button-wrapper:first-child, &.ant-radio-button-wrapper:last-child {\n border-radius: 5px !important;\n }\n\n &.ant-radio-button-wrapper:first-child:last-child {\n border-radius: 5px !important;\n }\n\n .ant-radio-group &.ant-radio-button-wrapper {\n font-size: 14px !important;\n }\n\n &.ant-radio-button-wrapper:not(:first-child)::before {\n display: none !important;\n }\n\n &.ant-radio-button-wrapper:hover {\n ").concat(o?"":"\n border-color: ".concat(a.primary.default," !important;\n color: ").concat(exports.NEUTRAL_COLORS.BLACK," !important;\n "),"\n }\n\n &.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled),\n &.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):hover,\n &.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):first-child {\n border: 2px solid ").concat(a.primary.default," !important;\n color: ").concat(a.primary.default," !important;\n\n circle {\n transition: all 0.3s !important;\n }\n\n circle.center {\n fill: ").concat(ot.S500," !important;\n }\n\n circle.border {\n stroke: ").concat(a.primary.default," !important;\n }\n }\n\n &.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):active {\n border-color: ").concat(a.primary.default," !important;\n color: ").concat(a.primary.default," !important;\n }\n\n &.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled).ant-radio-button-wrapper:first-child{\n border-right-color: ").concat(exports.NEUTRAL_COLORS.BLACK," !important;\n }\n ");return s.default.createElement(e.Radio.Button,i.__assign({className:xt(l),disabled:o},r),s.default.createElement("div",{style:{display:"flex",height:"100%",alignItems:"center"}},s.default.createElement("div",{style:{width:"20px",height:"20px",lineHeight:"20px",marginRight:"11px"}},s.default.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s.default.createElement("circle",{className:"border",cx:"10",cy:"10",r:"9.5",stroke:"#E8E8E8"}),s.default.createElement("circle",{className:"center",cx:"10",cy:"10",r:"7",fill:"rgba(0, 0, 0, 0)"}))),n))}},vu={},yu={exports:{}};function _u(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var wu,ku={exports:{}};function Su(){return wu||(wu=1,(t=ku).exports=function(){var e,n;function i(){return e.apply(null,arguments)}function o(t){e=t}function r(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function a(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function s(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var e;for(e in t)if(t.hasOwnProperty(e))return!1;return!0}function l(t){return void 0===t}function c(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function d(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function h(t,e){var n,i=[];for(n=0;n<t.length;++n)i.push(e(t[n],n));return i}function u(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function p(t,e){for(var n in e)u(e,n)&&(t[n]=e[n]);return u(e,"toString")&&(t.toString=e.toString),u(e,"valueOf")&&(t.valueOf=e.valueOf),t}function f(t,e,n,i){return $n(t,e,n,i,!0).utc()}function g(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function m(t){return null==t._pf&&(t._pf=g()),t._pf}function b(t){if(null==t._isValid){var e=m(t),i=n.call(e.parsedDateParts,function(t){return null!=t}),o=!isNaN(t._d.getTime())&&e.overflow<0&&!e.empty&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&i);if(t._strict&&(o=o&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour),null!=Object.isFrozen&&Object.isFrozen(t))return o;t._isValid=o}return t._isValid}function x(t){var e=f(NaN);return null!=t?p(m(e),t):m(e).userInvalidated=!0,e}n=Array.prototype.some?Array.prototype.some:function(t){for(var e=Object(this),n=e.length>>>0,i=0;i<n;i++)if(i in e&&t.call(this,e[i],i,e))return!0;return!1};var v=i.momentProperties=[];function y(t,e){var n,i,o;if(l(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),l(e._i)||(t._i=e._i),l(e._f)||(t._f=e._f),l(e._l)||(t._l=e._l),l(e._strict)||(t._strict=e._strict),l(e._tzm)||(t._tzm=e._tzm),l(e._isUTC)||(t._isUTC=e._isUTC),l(e._offset)||(t._offset=e._offset),l(e._pf)||(t._pf=m(e)),l(e._locale)||(t._locale=e._locale),v.length>0)for(n=0;n<v.length;n++)l(o=e[i=v[n]])||(t[i]=o);return t}var _=!1;function w(t){y(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===_&&(_=!0,i.updateOffset(this),_=!1)}function k(t){return t instanceof w||null!=t&&null!=t._isAMomentObject}function S(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function E(t){var e=+t,n=0;return 0!==e&&isFinite(e)&&(n=S(e)),n}function O(t,e,n){var i,o=Math.min(t.length,e.length),r=Math.abs(t.length-e.length),a=0;for(i=0;i<o;i++)(n&&t[i]!==e[i]||!n&&E(t[i])!==E(e[i]))&&a++;return a+r}function T(t){!1===i.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function M(t,e){var n=!0;return p(function(){if(null!=i.deprecationHandler&&i.deprecationHandler(null,t),n){for(var o,r=[],a=0;a<arguments.length;a++){if(o="","object"==typeof arguments[a]){for(var s in o+="\n["+a+"] ",arguments[0])o+=s+": "+arguments[0][s]+", ";o=o.slice(0,-2)}else o=arguments[a];r.push(o)}T(t+"\nArguments: "+Array.prototype.slice.call(r).join("")+"\n"+(new Error).stack),n=!1}return e.apply(this,arguments)},e)}var D,C={};function A(t,e){null!=i.deprecationHandler&&i.deprecationHandler(t,e),C[t]||(T(e),C[t]=!0)}function R(t){return t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function L(t){var e,n;for(n in t)R(e=t[n])?this[n]=e:this["_"+n]=e;this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function P(t,e){var n,i=p({},t);for(n in e)u(e,n)&&(a(t[n])&&a(e[n])?(i[n]={},p(i[n],t[n]),p(i[n],e[n])):null!=e[n]?i[n]=e[n]:delete i[n]);for(n in t)u(t,n)&&!u(e,n)&&a(t[n])&&(i[n]=p({},i[n]));return i}function I(t){null!=t&&this.set(t)}i.suppressDeprecationWarnings=!1,i.deprecationHandler=null,D=Object.keys?Object.keys:function(t){var e,n=[];for(e in t)u(t,e)&&n.push(e);return n};var N={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function F(t,e,n){var i=this._calendar[t]||this._calendar.sameElse;return R(i)?i.call(e,n):i}var z={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"};function B(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return e||!n?e:(this._longDateFormat[t]=n.replace(/MMMM|MM|DD|dddd/g,function(t){return t.slice(1)}),this._longDateFormat[t])}var j="Invalid date";function Y(){return this._invalidDate}var H="%d",W=/\d{1,2}/;function V(t){return this._ordinal.replace("%d",t)}var U={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function G(t,e,n,i){var o=this._relativeTime[n];return R(o)?o(t,e,n,i):o.replace(/%d/i,t)}function $(t,e){var n=this._relativeTime[t>0?"future":"past"];return R(n)?n(e):n.replace(/%s/i,e)}var X={};function q(t,e){var n=t.toLowerCase();X[n]=X[n+"s"]=X[e]=t}function Z(t){return"string"==typeof t?X[t]||X[t.toLowerCase()]:void 0}function K(t){var e,n,i={};for(n in t)u(t,n)&&(e=Z(n))&&(i[e]=t[n]);return i}var J={};function Q(t,e){J[t]=e}function tt(t){var e=[];for(var n in t)e.push({unit:n,priority:J[n]});return e.sort(function(t,e){return t.priority-e.priority}),e}function et(t,e,n){var i=""+Math.abs(t),o=e-i.length;return(t>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+i}var nt=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,it=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,ot={},rt={};function at(t,e,n,i){var o=i;"string"==typeof i&&(o=function(){return this[i]()}),t&&(rt[t]=o),e&&(rt[e[0]]=function(){return et(o.apply(this,arguments),e[1],e[2])}),n&&(rt[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),t)})}function st(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function lt(t){var e,n,i=t.match(nt);for(e=0,n=i.length;e<n;e++)rt[i[e]]?i[e]=rt[i[e]]:i[e]=st(i[e]);return function(e){var o,r="";for(o=0;o<n;o++)r+=R(i[o])?i[o].call(e,t):i[o];return r}}function ct(t,e){return t.isValid()?(e=dt(e,t.localeData()),ot[e]=ot[e]||lt(e),ot[e](t)):t.localeData().invalidDate()}function dt(t,e){var n=5;function i(t){return e.longDateFormat(t)||t}for(it.lastIndex=0;n>=0&&it.test(t);)t=t.replace(it,i),it.lastIndex=0,n-=1;return t}var ht=/\d/,ut=/\d\d/,pt=/\d{3}/,ft=/\d{4}/,gt=/[+-]?\d{6}/,mt=/\d\d?/,bt=/\d\d\d\d?/,xt=/\d\d\d\d\d\d?/,vt=/\d{1,3}/,yt=/\d{1,4}/,_t=/[+-]?\d{1,6}/,wt=/\d+/,kt=/[+-]?\d+/,St=/Z|[+-]\d\d:?\d\d/gi,Et=/Z|[+-]\d\d(?::?\d\d)?/gi,Ot=/[+-]?\d+(\.\d{1,3})?/,Tt=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Mt={};function Dt(t,e,n){Mt[t]=R(e)?e:function(t,i){return t&&n?n:e}}function Ct(t,e){return u(Mt,t)?Mt[t](e._strict,e._locale):new RegExp(At(t))}function At(t){return Rt(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,n,i,o){return e||n||i||o}))}function Rt(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var Lt={};function Pt(t,e){var n,i=e;for("string"==typeof t&&(t=[t]),c(e)&&(i=function(t,n){n[e]=E(t)}),n=0;n<t.length;n++)Lt[t[n]]=i}function It(t,e){Pt(t,function(t,n,i,o){i._w=i._w||{},e(t,i._w,i,o)})}function Nt(t,e,n){null!=e&&u(Lt,t)&&Lt[t](e,n._a,n,t)}var Ft=0,zt=1,Bt=2,jt=3,Yt=4,Ht=5,Wt=6,Vt=7,Ut=8;function Gt(t){return $t(t)?366:365}function $t(t){return t%4==0&&t%100!=0||t%400==0}at("Y",0,0,function(){var t=this.year();return t<=9999?""+t:"+"+t}),at(0,["YY",2],0,function(){return this.year()%100}),at(0,["YYYY",4],0,"year"),at(0,["YYYYY",5],0,"year"),at(0,["YYYYYY",6,!0],0,"year"),q("year","y"),Q("year",1),Dt("Y",kt),Dt("YY",mt,ut),Dt("YYYY",yt,ft),Dt("YYYYY",_t,gt),Dt("YYYYYY",_t,gt),Pt(["YYYYY","YYYYYY"],Ft),Pt("YYYY",function(t,e){e[Ft]=2===t.length?i.parseTwoDigitYear(t):E(t)}),Pt("YY",function(t,e){e[Ft]=i.parseTwoDigitYear(t)}),Pt("Y",function(t,e){e[Ft]=parseInt(t,10)}),i.parseTwoDigitYear=function(t){return E(t)+(E(t)>68?1900:2e3)};var Xt,qt=Kt("FullYear",!0);function Zt(){return $t(this.year())}function Kt(t,e){return function(n){return null!=n?(Qt(this,t,n),i.updateOffset(this,e),this):Jt(this,t)}}function Jt(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function Qt(t,e,n){t.isValid()&&!isNaN(n)&&("FullYear"===e&&$t(t.year())&&1===t.month()&&29===t.date()?t._d["set"+(t._isUTC?"UTC":"")+e](n,t.month(),ie(n,t.month())):t._d["set"+(t._isUTC?"UTC":"")+e](n))}function te(t){return R(this[t=Z(t)])?this[t]():this}function ee(t,e){if("object"==typeof t)for(var n=tt(t=K(t)),i=0;i<n.length;i++)this[n[i].unit](t[n[i].unit]);else if(R(this[t=Z(t)]))return this[t](e);return this}function ne(t,e){return(t%e+e)%e}function ie(t,e){if(isNaN(t)||isNaN(e))return NaN;var n=ne(e,12);return t+=(e-n)/12,1===n?$t(t)?29:28:31-n%7%2}Xt=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var e;for(e=0;e<this.length;++e)if(this[e]===t)return e;return-1},at("M",["MM",2],"Mo",function(){return this.month()+1}),at("MMM",0,0,function(t){return this.localeData().monthsShort(this,t)}),at("MMMM",0,0,function(t){return this.localeData().months(this,t)}),q("month","M"),Q("month",8),Dt("M",mt),Dt("MM",mt,ut),Dt("MMM",function(t,e){return e.monthsShortRegex(t)}),Dt("MMMM",function(t,e){return e.monthsRegex(t)}),Pt(["M","MM"],function(t,e){e[zt]=E(t)-1}),Pt(["MMM","MMMM"],function(t,e,n,i){var o=n._locale.monthsParse(t,i,n._strict);null!=o?e[zt]=o:m(n).invalidMonth=t});var oe=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,re="January_February_March_April_May_June_July_August_September_October_November_December".split("_");function ae(t,e){return t?r(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||oe).test(e)?"format":"standalone"][t.month()]:r(this._months)?this._months:this._months.standalone}var se="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function le(t,e){return t?r(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[oe.test(e)?"format":"standalone"][t.month()]:r(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function ce(t,e,n){var i,o,r,a=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)r=f([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(r,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(r,"").toLocaleLowerCase();return n?"MMM"===e?-1!==(o=Xt.call(this._shortMonthsParse,a))?o:null:-1!==(o=Xt.call(this._longMonthsParse,a))?o:null:"MMM"===e?-1!==(o=Xt.call(this._shortMonthsParse,a))||-1!==(o=Xt.call(this._longMonthsParse,a))?o:null:-1!==(o=Xt.call(this._longMonthsParse,a))||-1!==(o=Xt.call(this._shortMonthsParse,a))?o:null}function de(t,e,n){var i,o,r;if(this._monthsParseExact)return ce.call(this,t,e,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(o=f([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(o,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(o,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(r="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),this._monthsParse[i]=new RegExp(r.replace(".",""),"i")),n&&"MMMM"===e&&this._longMonthsParse[i].test(t))return i;if(n&&"MMM"===e&&this._shortMonthsParse[i].test(t))return i;if(!n&&this._monthsParse[i].test(t))return i}}function he(t,e){var n;if(!t.isValid())return t;if("string"==typeof e)if(/^\d+$/.test(e))e=E(e);else if(!c(e=t.localeData().monthsParse(e)))return t;return n=Math.min(t.date(),ie(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,n),t}function ue(t){return null!=t?(he(this,t),i.updateOffset(this,!0),this):Jt(this,"Month")}function pe(){return ie(this.year(),this.month())}var fe=Tt;function ge(t){return this._monthsParseExact?(u(this,"_monthsRegex")||xe.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(u(this,"_monthsShortRegex")||(this._monthsShortRegex=fe),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)}var me=Tt;function be(t){return this._monthsParseExact?(u(this,"_monthsRegex")||xe.call(this),t?this._monthsStrictRegex:this._monthsRegex):(u(this,"_monthsRegex")||(this._monthsRegex=me),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)}function xe(){function t(t,e){return e.length-t.length}var e,n,i=[],o=[],r=[];for(e=0;e<12;e++)n=f([2e3,e]),i.push(this.monthsShort(n,"")),o.push(this.months(n,"")),r.push(this.months(n,"")),r.push(this.monthsShort(n,""));for(i.sort(t),o.sort(t),r.sort(t),e=0;e<12;e++)i[e]=Rt(i[e]),o[e]=Rt(o[e]);for(e=0;e<24;e++)r[e]=Rt(r[e]);this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+i.join("|")+")","i")}function ve(t,e,n,i,o,r,a){var s;return t<100&&t>=0?(s=new Date(t+400,e,n,i,o,r,a),isFinite(s.getFullYear())&&s.setFullYear(t)):s=new Date(t,e,n,i,o,r,a),s}function ye(t){var e;if(t<100&&t>=0){var n=Array.prototype.slice.call(arguments);n[0]=t+400,e=new Date(Date.UTC.apply(null,n)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)}else e=new Date(Date.UTC.apply(null,arguments));return e}function _e(t,e,n){var i=7+e-n;return-(7+ye(t,0,i).getUTCDay()-e)%7+i-1}function we(t,e,n,i,o){var r,a,s=1+7*(e-1)+(7+n-i)%7+_e(t,i,o);return s<=0?a=Gt(r=t-1)+s:s>Gt(t)?(r=t+1,a=s-Gt(t)):(r=t,a=s),{year:r,dayOfYear:a}}function ke(t,e,n){var i,o,r=_e(t.year(),e,n),a=Math.floor((t.dayOfYear()-r-1)/7)+1;return a<1?i=a+Se(o=t.year()-1,e,n):a>Se(t.year(),e,n)?(i=a-Se(t.year(),e,n),o=t.year()+1):(o=t.year(),i=a),{week:i,year:o}}function Se(t,e,n){var i=_e(t,e,n),o=_e(t+1,e,n);return(Gt(t)-i+o)/7}function Ee(t){return ke(t,this._week.dow,this._week.doy).week}at("w",["ww",2],"wo","week"),at("W",["WW",2],"Wo","isoWeek"),q("week","w"),q("isoWeek","W"),Q("week",5),Q("isoWeek",5),Dt("w",mt),Dt("ww",mt,ut),Dt("W",mt),Dt("WW",mt,ut),It(["w","ww","W","WW"],function(t,e,n,i){e[i.substr(0,1)]=E(t)});var Oe={dow:0,doy:6};function Te(){return this._week.dow}function Me(){return this._week.doy}function De(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")}function Ce(t){var e=ke(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")}function Ae(t,e){return"string"!=typeof t?t:isNaN(t)?"number"==typeof(t=e.weekdaysParse(t))?t:null:parseInt(t,10)}function Re(t,e){return"string"==typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}function Le(t,e){return t.slice(e,7).concat(t.slice(0,e))}at("d",0,"do","day"),at("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),at("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),at("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),at("e",0,0,"weekday"),at("E",0,0,"isoWeekday"),q("day","d"),q("weekday","e"),q("isoWeekday","E"),Q("day",11),Q("weekday",11),Q("isoWeekday",11),Dt("d",mt),Dt("e",mt),Dt("E",mt),Dt("dd",function(t,e){return e.weekdaysMinRegex(t)}),Dt("ddd",function(t,e){return e.weekdaysShortRegex(t)}),Dt("dddd",function(t,e){return e.weekdaysRegex(t)}),It(["dd","ddd","dddd"],function(t,e,n,i){var o=n._locale.weekdaysParse(t,i,n._strict);null!=o?e.d=o:m(n).invalidWeekday=t}),It(["d","e","E"],function(t,e,n,i){e[i]=E(t)});var Pe="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_");function Ie(t,e){var n=r(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?"format":"standalone"];return!0===t?Le(n,this._week.dow):t?n[t.day()]:n}var Ne="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_");function Fe(t){return!0===t?Le(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort}var ze="Su_Mo_Tu_We_Th_Fr_Sa".split("_");function Be(t){return!0===t?Le(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin}function je(t,e,n){var i,o,r,a=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)r=f([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(r,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(r,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(r,"").toLocaleLowerCase();return n?"dddd"===e?-1!==(o=Xt.call(this._weekdaysParse,a))?o:null:"ddd"===e?-1!==(o=Xt.call(this._shortWeekdaysParse,a))?o:null:-1!==(o=Xt.call(this._minWeekdaysParse,a))?o:null:"dddd"===e?-1!==(o=Xt.call(this._weekdaysParse,a))||-1!==(o=Xt.call(this._shortWeekdaysParse,a))||-1!==(o=Xt.call(this._minWeekdaysParse,a))?o:null:"ddd"===e?-1!==(o=Xt.call(this._shortWeekdaysParse,a))||-1!==(o=Xt.call(this._weekdaysParse,a))||-1!==(o=Xt.call(this._minWeekdaysParse,a))?o:null:-1!==(o=Xt.call(this._minWeekdaysParse,a))||-1!==(o=Xt.call(this._weekdaysParse,a))||-1!==(o=Xt.call(this._shortWeekdaysParse,a))?o:null}function Ye(t,e,n){var i,o,r;if(this._weekdaysParseExact)return je.call(this,t,e,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(o=f([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(o,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(o,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(o,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(r="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[i]=new RegExp(r.replace(".",""),"i")),n&&"dddd"===e&&this._fullWeekdaysParse[i].test(t))return i;if(n&&"ddd"===e&&this._shortWeekdaysParse[i].test(t))return i;if(n&&"dd"===e&&this._minWeekdaysParse[i].test(t))return i;if(!n&&this._weekdaysParse[i].test(t))return i}}function He(t){if(!this.isValid())return null!=t?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=Ae(t,this.localeData()),this.add(t-e,"d")):e}function We(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")}function Ve(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var e=Re(t,this.localeData());return this.day(this.day()%7?e:e-7)}return this.day()||7}var Ue=Tt;function Ge(t){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Ke.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(u(this,"_weekdaysRegex")||(this._weekdaysRegex=Ue),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)}var $e=Tt;function Xe(t){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Ke.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(u(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=$e),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}var qe=Tt;function Ze(t){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Ke.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(u(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=qe),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Ke(){function t(t,e){return e.length-t.length}var e,n,i,o,r,a=[],s=[],l=[],c=[];for(e=0;e<7;e++)n=f([2e3,1]).day(e),i=this.weekdaysMin(n,""),o=this.weekdaysShort(n,""),r=this.weekdays(n,""),a.push(i),s.push(o),l.push(r),c.push(i),c.push(o),c.push(r);for(a.sort(t),s.sort(t),l.sort(t),c.sort(t),e=0;e<7;e++)s[e]=Rt(s[e]),l[e]=Rt(l[e]),c[e]=Rt(c[e]);this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Je(){return this.hours()%12||12}function Qe(){return this.hours()||24}function tn(t,e){at(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}function en(t,e){return e._meridiemParse}function nn(t){return"p"===(t+"").toLowerCase().charAt(0)}at("H",["HH",2],0,"hour"),at("h",["hh",2],0,Je),at("k",["kk",2],0,Qe),at("hmm",0,0,function(){return""+Je.apply(this)+et(this.minutes(),2)}),at("hmmss",0,0,function(){return""+Je.apply(this)+et(this.minutes(),2)+et(this.seconds(),2)}),at("Hmm",0,0,function(){return""+this.hours()+et(this.minutes(),2)}),at("Hmmss",0,0,function(){return""+this.hours()+et(this.minutes(),2)+et(this.seconds(),2)}),tn("a",!0),tn("A",!1),q("hour","h"),Q("hour",13),Dt("a",en),Dt("A",en),Dt("H",mt),Dt("h",mt),Dt("k",mt),Dt("HH",mt,ut),Dt("hh",mt,ut),Dt("kk",mt,ut),Dt("hmm",bt),Dt("hmmss",xt),Dt("Hmm",bt),Dt("Hmmss",xt),Pt(["H","HH"],jt),Pt(["k","kk"],function(t,e,n){var i=E(t);e[jt]=24===i?0:i}),Pt(["a","A"],function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t}),Pt(["h","hh"],function(t,e,n){e[jt]=E(t),m(n).bigHour=!0}),Pt("hmm",function(t,e,n){var i=t.length-2;e[jt]=E(t.substr(0,i)),e[Yt]=E(t.substr(i)),m(n).bigHour=!0}),Pt("hmmss",function(t,e,n){var i=t.length-4,o=t.length-2;e[jt]=E(t.substr(0,i)),e[Yt]=E(t.substr(i,2)),e[Ht]=E(t.substr(o)),m(n).bigHour=!0}),Pt("Hmm",function(t,e,n){var i=t.length-2;e[jt]=E(t.substr(0,i)),e[Yt]=E(t.substr(i))}),Pt("Hmmss",function(t,e,n){var i=t.length-4,o=t.length-2;e[jt]=E(t.substr(0,i)),e[Yt]=E(t.substr(i,2)),e[Ht]=E(t.substr(o))});var on=/[ap]\.?m?\.?/i;function rn(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"}var an,sn=Kt("Hours",!0),ln={calendar:N,longDateFormat:z,invalidDate:j,ordinal:H,dayOfMonthOrdinalParse:W,relativeTime:U,months:re,monthsShort:se,week:Oe,weekdays:Pe,weekdaysMin:ze,weekdaysShort:Ne,meridiemParse:on},cn={},dn={};function hn(t){return t?t.toLowerCase().replace("_","-"):t}function un(t){for(var e,n,i,o,r=0;r<t.length;){for(e=(o=hn(t[r]).split("-")).length,n=(n=hn(t[r+1]))?n.split("-"):null;e>0;){if(i=pn(o.slice(0,e).join("-")))return i;if(n&&n.length>=e&&O(o,n,!0)>=e-1)break;e--}r++}return an}function pn(e){var n=null;if(!cn[e]&&t&&t.exports)try{n=an._abbr,_u("./locale/"+e),fn(n)}catch(t){}return cn[e]}function fn(t,e){var n;return t&&((n=l(e)?bn(t):gn(t,e))?an=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),an._abbr}function gn(t,e){if(null!==e){var n,i=ln;if(e.abbr=t,null!=cn[t])A("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=cn[t]._config;else if(null!=e.parentLocale)if(null!=cn[e.parentLocale])i=cn[e.parentLocale]._config;else{if(null==(n=pn(e.parentLocale)))return dn[e.parentLocale]||(dn[e.parentLocale]=[]),dn[e.parentLocale].push({name:t,config:e}),null;i=n._config}return cn[t]=new I(P(i,e)),dn[t]&&dn[t].forEach(function(t){gn(t.name,t.config)}),fn(t),cn[t]}return delete cn[t],null}function mn(t,e){if(null!=e){var n,i,o=ln;null!=(i=pn(t))&&(o=i._config),(n=new I(e=P(o,e))).parentLocale=cn[t],cn[t]=n,fn(t)}else null!=cn[t]&&(null!=cn[t].parentLocale?cn[t]=cn[t].parentLocale:null!=cn[t]&&delete cn[t]);return cn[t]}function bn(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return an;if(!r(t)){if(e=pn(t))return e;t=[t]}return un(t)}function xn(){return D(cn)}function vn(t){var e,n=t._a;return n&&-2===m(t).overflow&&(e=n[zt]<0||n[zt]>11?zt:n[Bt]<1||n[Bt]>ie(n[Ft],n[zt])?Bt:n[jt]<0||n[jt]>24||24===n[jt]&&(0!==n[Yt]||0!==n[Ht]||0!==n[Wt])?jt:n[Yt]<0||n[Yt]>59?Yt:n[Ht]<0||n[Ht]>59?Ht:n[Wt]<0||n[Wt]>999?Wt:-1,m(t)._overflowDayOfYear&&(e<Ft||e>Bt)&&(e=Bt),m(t)._overflowWeeks&&-1===e&&(e=Vt),m(t)._overflowWeekday&&-1===e&&(e=Ut),m(t).overflow=e),t}function yn(t,e,n){return null!=t?t:null!=e?e:n}function _n(t){var e=new Date(i.now());return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}function wn(t){var e,n,i,o,r,a=[];if(!t._d){for(i=_n(t),t._w&&null==t._a[Bt]&&null==t._a[zt]&&kn(t),null!=t._dayOfYear&&(r=yn(t._a[Ft],i[Ft]),(t._dayOfYear>Gt(r)||0===t._dayOfYear)&&(m(t)._overflowDayOfYear=!0),n=ye(r,0,t._dayOfYear),t._a[zt]=n.getUTCMonth(),t._a[Bt]=n.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=a[e]=i[e];for(;e<7;e++)t._a[e]=a[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[jt]&&0===t._a[Yt]&&0===t._a[Ht]&&0===t._a[Wt]&&(t._nextDay=!0,t._a[jt]=0),t._d=(t._useUTC?ye:ve).apply(null,a),o=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[jt]=24),t._w&&void 0!==t._w.d&&t._w.d!==o&&(m(t).weekdayMismatch=!0)}}function kn(t){var e,n,i,o,r,a,s,l;if(null!=(e=t._w).GG||null!=e.W||null!=e.E)r=1,a=4,n=yn(e.GG,t._a[Ft],ke(Xn(),1,4).year),i=yn(e.W,1),((o=yn(e.E,1))<1||o>7)&&(l=!0);else{r=t._locale._week.dow,a=t._locale._week.doy;var c=ke(Xn(),r,a);n=yn(e.gg,t._a[Ft],c.year),i=yn(e.w,c.week),null!=e.d?((o=e.d)<0||o>6)&&(l=!0):null!=e.e?(o=e.e+r,(e.e<0||e.e>6)&&(l=!0)):o=r}i<1||i>Se(n,r,a)?m(t)._overflowWeeks=!0:null!=l?m(t)._overflowWeekday=!0:(s=we(n,i,o,r,a),t._a[Ft]=s.year,t._dayOfYear=s.dayOfYear)}var Sn=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,En=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,On=/Z|[+-]\d\d(?::?\d\d)?/,Tn=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],Mn=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Dn=/^\/?Date\((\-?\d+)/i;function Cn(t){var e,n,i,o,r,a,s=t._i,l=Sn.exec(s)||En.exec(s);if(l){for(m(t).iso=!0,e=0,n=Tn.length;e<n;e++)if(Tn[e][1].exec(l[1])){o=Tn[e][0],i=!1!==Tn[e][2];break}if(null==o)return void(t._isValid=!1);if(l[3]){for(e=0,n=Mn.length;e<n;e++)if(Mn[e][1].exec(l[3])){r=(l[2]||" ")+Mn[e][0];break}if(null==r)return void(t._isValid=!1)}if(!i&&null!=r)return void(t._isValid=!1);if(l[4]){if(!On.exec(l[4]))return void(t._isValid=!1);a="Z"}t._f=o+(r||"")+(a||""),jn(t)}else t._isValid=!1}var An=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/;function Rn(t,e,n,i,o,r){var a=[Ln(t),se.indexOf(e),parseInt(n,10),parseInt(i,10),parseInt(o,10)];return r&&a.push(parseInt(r,10)),a}function Ln(t){var e=parseInt(t,10);return e<=49?2e3+e:e<=999?1900+e:e}function Pn(t){return t.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function In(t,e,n){return!t||Ne.indexOf(t)===new Date(e[0],e[1],e[2]).getDay()||(m(n).weekdayMismatch=!0,n._isValid=!1,!1)}var Nn={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Fn(t,e,n){if(t)return Nn[t];if(e)return 0;var i=parseInt(n,10),o=i%100;return(i-o)/100*60+o}function zn(t){var e=An.exec(Pn(t._i));if(e){var n=Rn(e[4],e[3],e[2],e[5],e[6],e[7]);if(!In(e[1],n,t))return;t._a=n,t._tzm=Fn(e[8],e[9],e[10]),t._d=ye.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),m(t).rfc2822=!0}else t._isValid=!1}function Bn(t){var e=Dn.exec(t._i);null===e?(Cn(t),!1===t._isValid&&(delete t._isValid,zn(t),!1===t._isValid&&(delete t._isValid,i.createFromInputFallback(t)))):t._d=new Date(+e[1])}function jn(t){if(t._f!==i.ISO_8601)if(t._f!==i.RFC_2822){t._a=[],m(t).empty=!0;var e,n,o,r,a,s=""+t._i,l=s.length,c=0;for(o=dt(t._f,t._locale).match(nt)||[],e=0;e<o.length;e++)r=o[e],(n=(s.match(Ct(r,t))||[])[0])&&((a=s.substr(0,s.indexOf(n))).length>0&&m(t).unusedInput.push(a),s=s.slice(s.indexOf(n)+n.length),c+=n.length),rt[r]?(n?m(t).empty=!1:m(t).unusedTokens.push(r),Nt(r,n,t)):t._strict&&!n&&m(t).unusedTokens.push(r);m(t).charsLeftOver=l-c,s.length>0&&m(t).unusedInput.push(s),t._a[jt]<=12&&!0===m(t).bigHour&&t._a[jt]>0&&(m(t).bigHour=void 0),m(t).parsedDateParts=t._a.slice(0),m(t).meridiem=t._meridiem,t._a[jt]=Yn(t._locale,t._a[jt],t._meridiem),wn(t),vn(t)}else zn(t);else Cn(t)}function Yn(t,e,n){var i;return null==n?e:null!=t.meridiemHour?t.meridiemHour(e,n):null!=t.isPM?((i=t.isPM(n))&&e<12&&(e+=12),i||12!==e||(e=0),e):e}function Hn(t){var e,n,i,o,r;if(0===t._f.length)return m(t).invalidFormat=!0,void(t._d=new Date(NaN));for(o=0;o<t._f.length;o++)r=0,e=y({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[o],jn(e),b(e)&&(r+=m(e).charsLeftOver,r+=10*m(e).unusedTokens.length,m(e).score=r,(null==i||r<i)&&(i=r,n=e));p(t,n||e)}function Wn(t){if(!t._d){var e=K(t._i);t._a=h([e.year,e.month,e.day||e.date,e.hour,e.minute,e.second,e.millisecond],function(t){return t&&parseInt(t,10)}),wn(t)}}function Vn(t){var e=new w(vn(Un(t)));return e._nextDay&&(e.add(1,"d"),e._nextDay=void 0),e}function Un(t){var e=t._i,n=t._f;return t._locale=t._locale||bn(t._l),null===e||void 0===n&&""===e?x({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),k(e)?new w(vn(e)):(d(e)?t._d=e:r(n)?Hn(t):n?jn(t):Gn(t),b(t)||(t._d=null),t))}function Gn(t){var e=t._i;l(e)?t._d=new Date(i.now()):d(e)?t._d=new Date(e.valueOf()):"string"==typeof e?Bn(t):r(e)?(t._a=h(e.slice(0),function(t){return parseInt(t,10)}),wn(t)):a(e)?Wn(t):c(e)?t._d=new Date(e):i.createFromInputFallback(t)}function $n(t,e,n,i,o){var l={};return!0!==n&&!1!==n||(i=n,n=void 0),(a(t)&&s(t)||r(t)&&0===t.length)&&(t=void 0),l._isAMomentObject=!0,l._useUTC=l._isUTC=o,l._l=n,l._i=t,l._f=e,l._strict=i,Vn(l)}function Xn(t,e,n,i){return $n(t,e,n,i,!1)}i.createFromInputFallback=M("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))}),i.ISO_8601=function(){},i.RFC_2822=function(){};var qn=M("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Xn.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:x()}),Zn=M("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Xn.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:x()});function Kn(t,e){var n,i;if(1===e.length&&r(e[0])&&(e=e[0]),!e.length)return Xn();for(n=e[0],i=1;i<e.length;++i)e[i].isValid()&&!e[i][t](n)||(n=e[i]);return n}function Jn(){return Kn("isBefore",[].slice.call(arguments,0))}function Qn(){return Kn("isAfter",[].slice.call(arguments,0))}var ti=function(){return Date.now?Date.now():+new Date},ei=["year","quarter","month","week","day","hour","minute","second","millisecond"];function ni(t){for(var e in t)if(-1===Xt.call(ei,e)||null!=t[e]&&isNaN(t[e]))return!1;for(var n=!1,i=0;i<ei.length;++i)if(t[ei[i]]){if(n)return!1;parseFloat(t[ei[i]])!==E(t[ei[i]])&&(n=!0)}return!0}function ii(){return this._isValid}function oi(){return Oi(NaN)}function ri(t){var e=K(t),n=e.year||0,i=e.quarter||0,o=e.month||0,r=e.week||e.isoWeek||0,a=e.day||0,s=e.hour||0,l=e.minute||0,c=e.second||0,d=e.millisecond||0;this._isValid=ni(e),this._milliseconds=+d+1e3*c+6e4*l+1e3*s*60*60,this._days=+a+7*r,this._months=+o+3*i+12*n,this._data={},this._locale=bn(),this._bubble()}function ai(t){return t instanceof ri}function si(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function li(t,e){at(t,0,0,function(){var t=this.utcOffset(),n="+";return t<0&&(t=-t,n="-"),n+et(~~(t/60),2)+e+et(~~t%60,2)})}li("Z",":"),li("ZZ",""),Dt("Z",Et),Dt("ZZ",Et),Pt(["Z","ZZ"],function(t,e,n){n._useUTC=!0,n._tzm=di(Et,t)});var ci=/([\+\-]|\d\d)/gi;function di(t,e){var n=(e||"").match(t);if(null===n)return null;var i=((n[n.length-1]||[])+"").match(ci)||["-",0,0],o=60*i[1]+E(i[2]);return 0===o?0:"+"===i[0]?o:-o}function hi(t,e){var n,o;return e._isUTC?(n=e.clone(),o=(k(t)||d(t)?t.valueOf():Xn(t).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+o),i.updateOffset(n,!1),n):Xn(t).local()}function ui(t){return 15*-Math.round(t._d.getTimezoneOffset()/15)}function pi(t,e,n){var o,r=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null!=t){if("string"==typeof t){if(null===(t=di(Et,t)))return this}else Math.abs(t)<16&&!n&&(t*=60);return!this._isUTC&&e&&(o=ui(this)),this._offset=t,this._isUTC=!0,null!=o&&this.add(o,"m"),r!==t&&(!e||this._changeInProgress?Ai(this,Oi(t-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,i.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?r:ui(this)}function fi(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()}function gi(t){return this.utcOffset(0,t)}function mi(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(ui(this),"m")),this}function bi(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=di(St,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this}function xi(t){return!!this.isValid()&&(t=t?Xn(t).utcOffset():0,(this.utcOffset()-t)%60==0)}function vi(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function yi(){if(!l(this._isDSTShifted))return this._isDSTShifted;var t={};if(y(t,this),(t=Un(t))._a){var e=t._isUTC?f(t._a):Xn(t._a);this._isDSTShifted=this.isValid()&&O(t._a,e.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function _i(){return!!this.isValid()&&!this._isUTC}function wi(){return!!this.isValid()&&this._isUTC}function ki(){return!!this.isValid()&&this._isUTC&&0===this._offset}i.updateOffset=function(){};var Si=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Ei=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Oi(t,e){var n,i,o,r=t,a=null;return ai(t)?r={ms:t._milliseconds,d:t._days,M:t._months}:c(t)?(r={},e?r[e]=t:r.milliseconds=t):(a=Si.exec(t))?(n="-"===a[1]?-1:1,r={y:0,d:E(a[Bt])*n,h:E(a[jt])*n,m:E(a[Yt])*n,s:E(a[Ht])*n,ms:E(si(1e3*a[Wt]))*n}):(a=Ei.exec(t))?(n="-"===a[1]?-1:1,r={y:Ti(a[2],n),M:Ti(a[3],n),w:Ti(a[4],n),d:Ti(a[5],n),h:Ti(a[6],n),m:Ti(a[7],n),s:Ti(a[8],n)}):null==r?r={}:"object"==typeof r&&("from"in r||"to"in r)&&(o=Di(Xn(r.from),Xn(r.to)),(r={}).ms=o.milliseconds,r.M=o.months),i=new ri(r),ai(t)&&u(t,"_locale")&&(i._locale=t._locale),i}function Ti(t,e){var n=t&&parseFloat(t.replace(",","."));return(isNaN(n)?0:n)*e}function Mi(t,e){var n={};return n.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(n.months,"M").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,"M"),n}function Di(t,e){var n;return t.isValid()&&e.isValid()?(e=hi(e,t),t.isBefore(e)?n=Mi(t,e):((n=Mi(e,t)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Ci(t,e){return function(n,i){var o;return null===i||isNaN(+i)||(A(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),o=n,n=i,i=o),Ai(this,Oi(n="string"==typeof n?+n:n,i),t),this}}function Ai(t,e,n,o){var r=e._milliseconds,a=si(e._days),s=si(e._months);t.isValid()&&(o=null==o||o,s&&he(t,Jt(t,"Month")+s*n),a&&Qt(t,"Date",Jt(t,"Date")+a*n),r&&t._d.setTime(t._d.valueOf()+r*n),o&&i.updateOffset(t,a||s))}Oi.fn=ri.prototype,Oi.invalid=oi;var Ri=Ci(1,"add"),Li=Ci(-1,"subtract");function Pi(t,e){var n=t.diff(e,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function Ii(t,e){var n=t||Xn(),o=hi(n,this).startOf("day"),r=i.calendarFormat(this,o)||"sameElse",a=e&&(R(e[r])?e[r].call(this,n):e[r]);return this.format(a||this.localeData().calendar(r,this,Xn(n)))}function Ni(){return new w(this)}function Fi(t,e){var n=k(t)?t:Xn(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=Z(e)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(e).valueOf())}function zi(t,e){var n=k(t)?t:Xn(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=Z(e)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(e).valueOf()<n.valueOf())}function Bi(t,e,n,i){var o=k(t)?t:Xn(t),r=k(e)?e:Xn(e);return!!(this.isValid()&&o.isValid()&&r.isValid())&&("("===(i=i||"()")[0]?this.isAfter(o,n):!this.isBefore(o,n))&&(")"===i[1]?this.isBefore(r,n):!this.isAfter(r,n))}function ji(t,e){var n,i=k(t)?t:Xn(t);return!(!this.isValid()||!i.isValid())&&("millisecond"===(e=Z(e)||"millisecond")?this.valueOf()===i.valueOf():(n=i.valueOf(),this.clone().startOf(e).valueOf()<=n&&n<=this.clone().endOf(e).valueOf()))}function Yi(t,e){return this.isSame(t,e)||this.isAfter(t,e)}function Hi(t,e){return this.isSame(t,e)||this.isBefore(t,e)}function Wi(t,e,n){var i,o,r;if(!this.isValid())return NaN;if(!(i=hi(t,this)).isValid())return NaN;switch(o=6e4*(i.utcOffset()-this.utcOffset()),e=Z(e)){case"year":r=Vi(this,i)/12;break;case"month":r=Vi(this,i);break;case"quarter":r=Vi(this,i)/3;break;case"second":r=(this-i)/1e3;break;case"minute":r=(this-i)/6e4;break;case"hour":r=(this-i)/36e5;break;case"day":r=(this-i-o)/864e5;break;case"week":r=(this-i-o)/6048e5;break;default:r=this-i}return n?r:S(r)}function Vi(t,e){var n=12*(e.year()-t.year())+(e.month()-t.month()),i=t.clone().add(n,"months");return-(n+(e-i<0?(e-i)/(i-t.clone().add(n-1,"months")):(e-i)/(t.clone().add(n+1,"months")-i)))||0}function Ui(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Gi(t){if(!this.isValid())return null;var e=!0!==t,n=e?this.clone().utc():this;return n.year()<0||n.year()>9999?ct(n,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):R(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",ct(n,"Z")):ct(n,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function $i(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t="moment",e="";this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",e="Z");var n="["+t+'("]',i=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",o="-MM-DD[T]HH:mm:ss.SSS",r=e+'[")]';return this.format(n+i+o+r)}function Xi(t){t||(t=this.isUtc()?i.defaultFormatUtc:i.defaultFormat);var e=ct(this,t);return this.localeData().postformat(e)}function qi(t,e){return this.isValid()&&(k(t)&&t.isValid()||Xn(t).isValid())?Oi({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function Zi(t){return this.from(Xn(),t)}function Ki(t,e){return this.isValid()&&(k(t)&&t.isValid()||Xn(t).isValid())?Oi({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function Ji(t){return this.to(Xn(),t)}function Qi(t){var e;return void 0===t?this._locale._abbr:(null!=(e=bn(t))&&(this._locale=e),this)}i.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",i.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var to=M("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return void 0===t?this.localeData():this.locale(t)});function eo(){return this._locale}var no=1e3,io=60*no,oo=60*io,ro=3506328*oo;function ao(t,e){return(t%e+e)%e}function so(t,e,n){return t<100&&t>=0?new Date(t+400,e,n)-ro:new Date(t,e,n).valueOf()}function lo(t,e,n){return t<100&&t>=0?Date.UTC(t+400,e,n)-ro:Date.UTC(t,e,n)}function co(t){var e;if(void 0===(t=Z(t))||"millisecond"===t||!this.isValid())return this;var n=this._isUTC?lo:so;switch(t){case"year":e=n(this.year(),0,1);break;case"quarter":e=n(this.year(),this.month()-this.month()%3,1);break;case"month":e=n(this.year(),this.month(),1);break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=n(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=ao(e+(this._isUTC?0:this.utcOffset()*io),oo);break;case"minute":e=this._d.valueOf(),e-=ao(e,io);break;case"second":e=this._d.valueOf(),e-=ao(e,no)}return this._d.setTime(e),i.updateOffset(this,!0),this}function ho(t){var e;if(void 0===(t=Z(t))||"millisecond"===t||!this.isValid())return this;var n=this._isUTC?lo:so;switch(t){case"year":e=n(this.year()+1,0,1)-1;break;case"quarter":e=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=n(this.year(),this.month()+1,1)-1;break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=oo-ao(e+(this._isUTC?0:this.utcOffset()*io),oo)-1;break;case"minute":e=this._d.valueOf(),e+=io-ao(e,io)-1;break;case"second":e=this._d.valueOf(),e+=no-ao(e,no)-1}return this._d.setTime(e),i.updateOffset(this,!0),this}function uo(){return this._d.valueOf()-6e4*(this._offset||0)}function po(){return Math.floor(this.valueOf()/1e3)}function fo(){return new Date(this.valueOf())}function go(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]}function mo(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}}function bo(){return this.isValid()?this.toISOString():null}function xo(){return b(this)}function vo(){return p({},m(this))}function yo(){return m(this).overflow}function _o(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function wo(t,e){at(0,[t,t.length],0,e)}function ko(t){return To.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function So(t){return To.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)}function Eo(){return Se(this.year(),1,4)}function Oo(){var t=this.localeData()._week;return Se(this.year(),t.dow,t.doy)}function To(t,e,n,i,o){var r;return null==t?ke(this,i,o).year:(e>(r=Se(t,i,o))&&(e=r),Mo.call(this,t,e,n,i,o))}function Mo(t,e,n,i,o){var r=we(t,e,n,i,o),a=ye(r.year,0,r.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}function Do(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)}at(0,["gg",2],0,function(){return this.weekYear()%100}),at(0,["GG",2],0,function(){return this.isoWeekYear()%100}),wo("gggg","weekYear"),wo("ggggg","weekYear"),wo("GGGG","isoWeekYear"),wo("GGGGG","isoWeekYear"),q("weekYear","gg"),q("isoWeekYear","GG"),Q("weekYear",1),Q("isoWeekYear",1),Dt("G",kt),Dt("g",kt),Dt("GG",mt,ut),Dt("gg",mt,ut),Dt("GGGG",yt,ft),Dt("gggg",yt,ft),Dt("GGGGG",_t,gt),Dt("ggggg",_t,gt),It(["gggg","ggggg","GGGG","GGGGG"],function(t,e,n,i){e[i.substr(0,2)]=E(t)}),It(["gg","GG"],function(t,e,n,o){e[o]=i.parseTwoDigitYear(t)}),at("Q",0,"Qo","quarter"),q("quarter","Q"),Q("quarter",7),Dt("Q",ht),Pt("Q",function(t,e){e[zt]=3*(E(t)-1)}),at("D",["DD",2],"Do","date"),q("date","D"),Q("date",9),Dt("D",mt),Dt("DD",mt,ut),Dt("Do",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient}),Pt(["D","DD"],Bt),Pt("Do",function(t,e){e[Bt]=E(t.match(mt)[0])});var Co=Kt("Date",!0);function Ao(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")}at("DDD",["DDDD",3],"DDDo","dayOfYear"),q("dayOfYear","DDD"),Q("dayOfYear",4),Dt("DDD",vt),Dt("DDDD",pt),Pt(["DDD","DDDD"],function(t,e,n){n._dayOfYear=E(t)}),at("m",["mm",2],0,"minute"),q("minute","m"),Q("minute",14),Dt("m",mt),Dt("mm",mt,ut),Pt(["m","mm"],Yt);var Ro=Kt("Minutes",!1);at("s",["ss",2],0,"second"),q("second","s"),Q("second",15),Dt("s",mt),Dt("ss",mt,ut),Pt(["s","ss"],Ht);var Lo,Po=Kt("Seconds",!1);for(at("S",0,0,function(){return~~(this.millisecond()/100)}),at(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),at(0,["SSS",3],0,"millisecond"),at(0,["SSSS",4],0,function(){return 10*this.millisecond()}),at(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),at(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),at(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),at(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),at(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),q("millisecond","ms"),Q("millisecond",16),Dt("S",vt,ht),Dt("SS",vt,ut),Dt("SSS",vt,pt),Lo="SSSS";Lo.length<=9;Lo+="S")Dt(Lo,wt);function Io(t,e){e[Wt]=E(1e3*("0."+t))}for(Lo="S";Lo.length<=9;Lo+="S")Pt(Lo,Io);var No=Kt("Milliseconds",!1);function Fo(){return this._isUTC?"UTC":""}function zo(){return this._isUTC?"Coordinated Universal Time":""}at("z",0,0,"zoneAbbr"),at("zz",0,0,"zoneName");var Bo=w.prototype;function jo(t){return Xn(1e3*t)}function Yo(){return Xn.apply(null,arguments).parseZone()}function Ho(t){return t}Bo.add=Ri,Bo.calendar=Ii,Bo.clone=Ni,Bo.diff=Wi,Bo.endOf=ho,Bo.format=Xi,Bo.from=qi,Bo.fromNow=Zi,Bo.to=Ki,Bo.toNow=Ji,Bo.get=te,Bo.invalidAt=yo,Bo.isAfter=Fi,Bo.isBefore=zi,Bo.isBetween=Bi,Bo.isSame=ji,Bo.isSameOrAfter=Yi,Bo.isSameOrBefore=Hi,Bo.isValid=xo,Bo.lang=to,Bo.locale=Qi,Bo.localeData=eo,Bo.max=Zn,Bo.min=qn,Bo.parsingFlags=vo,Bo.set=ee,Bo.startOf=co,Bo.subtract=Li,Bo.toArray=go,Bo.toObject=mo,Bo.toDate=fo,Bo.toISOString=Gi,Bo.inspect=$i,Bo.toJSON=bo,Bo.toString=Ui,Bo.unix=po,Bo.valueOf=uo,Bo.creationData=_o,Bo.year=qt,Bo.isLeapYear=Zt,Bo.weekYear=ko,Bo.isoWeekYear=So,Bo.quarter=Bo.quarters=Do,Bo.month=ue,Bo.daysInMonth=pe,Bo.week=Bo.weeks=De,Bo.isoWeek=Bo.isoWeeks=Ce,Bo.weeksInYear=Oo,Bo.isoWeeksInYear=Eo,Bo.date=Co,Bo.day=Bo.days=He,Bo.weekday=We,Bo.isoWeekday=Ve,Bo.dayOfYear=Ao,Bo.hour=Bo.hours=sn,Bo.minute=Bo.minutes=Ro,Bo.second=Bo.seconds=Po,Bo.millisecond=Bo.milliseconds=No,Bo.utcOffset=pi,Bo.utc=gi,Bo.local=mi,Bo.parseZone=bi,Bo.hasAlignedHourOffset=xi,Bo.isDST=vi,Bo.isLocal=_i,Bo.isUtcOffset=wi,Bo.isUtc=ki,Bo.isUTC=ki,Bo.zoneAbbr=Fo,Bo.zoneName=zo,Bo.dates=M("dates accessor is deprecated. Use date instead.",Co),Bo.months=M("months accessor is deprecated. Use month instead",ue),Bo.years=M("years accessor is deprecated. Use year instead",qt),Bo.zone=M("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",fi),Bo.isDSTShifted=M("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",yi);var Wo=I.prototype;function Vo(t,e,n,i){var o=bn(),r=f().set(i,e);return o[n](r,t)}function Uo(t,e,n){if(c(t)&&(e=t,t=void 0),t=t||"",null!=e)return Vo(t,e,n,"month");var i,o=[];for(i=0;i<12;i++)o[i]=Vo(t,i,n,"month");return o}function Go(t,e,n,i){"boolean"==typeof t?(c(e)&&(n=e,e=void 0),e=e||""):(n=e=t,t=!1,c(e)&&(n=e,e=void 0),e=e||"");var o,r=bn(),a=t?r._week.dow:0;if(null!=n)return Vo(e,(n+a)%7,i,"day");var s=[];for(o=0;o<7;o++)s[o]=Vo(e,(o+a)%7,i,"day");return s}function $o(t,e){return Uo(t,e,"months")}function Xo(t,e){return Uo(t,e,"monthsShort")}function qo(t,e,n){return Go(t,e,n,"weekdays")}function Zo(t,e,n){return Go(t,e,n,"weekdaysShort")}function Ko(t,e,n){return Go(t,e,n,"weekdaysMin")}Wo.calendar=F,Wo.longDateFormat=B,Wo.invalidDate=Y,Wo.ordinal=V,Wo.preparse=Ho,Wo.postformat=Ho,Wo.relativeTime=G,Wo.pastFuture=$,Wo.set=L,Wo.months=ae,Wo.monthsShort=le,Wo.monthsParse=de,Wo.monthsRegex=be,Wo.monthsShortRegex=ge,Wo.week=Ee,Wo.firstDayOfYear=Me,Wo.firstDayOfWeek=Te,Wo.weekdays=Ie,Wo.weekdaysMin=Be,Wo.weekdaysShort=Fe,Wo.weekdaysParse=Ye,Wo.weekdaysRegex=Ge,Wo.weekdaysShortRegex=Xe,Wo.weekdaysMinRegex=Ze,Wo.isPM=nn,Wo.meridiem=rn,fn("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===E(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),i.lang=M("moment.lang is deprecated. Use moment.locale instead.",fn),i.langData=M("moment.langData is deprecated. Use moment.localeData instead.",bn);var Jo=Math.abs;function Qo(){var t=this._data;return this._milliseconds=Jo(this._milliseconds),this._days=Jo(this._days),this._months=Jo(this._months),t.milliseconds=Jo(t.milliseconds),t.seconds=Jo(t.seconds),t.minutes=Jo(t.minutes),t.hours=Jo(t.hours),t.months=Jo(t.months),t.years=Jo(t.years),this}function tr(t,e,n,i){var o=Oi(e,n);return t._milliseconds+=i*o._milliseconds,t._days+=i*o._days,t._months+=i*o._months,t._bubble()}function er(t,e){return tr(this,t,e,1)}function nr(t,e){return tr(this,t,e,-1)}function ir(t){return t<0?Math.floor(t):Math.ceil(t)}function or(){var t,e,n,i,o,r=this._milliseconds,a=this._days,s=this._months,l=this._data;return r>=0&&a>=0&&s>=0||r<=0&&a<=0&&s<=0||(r+=864e5*ir(ar(s)+a),a=0,s=0),l.milliseconds=r%1e3,t=S(r/1e3),l.seconds=t%60,e=S(t/60),l.minutes=e%60,n=S(e/60),l.hours=n%24,a+=S(n/24),s+=o=S(rr(a)),a-=ir(ar(o)),i=S(s/12),s%=12,l.days=a,l.months=s,l.years=i,this}function rr(t){return 4800*t/146097}function ar(t){return 146097*t/4800}function sr(t){if(!this.isValid())return NaN;var e,n,i=this._milliseconds;if("month"===(t=Z(t))||"quarter"===t||"year"===t)switch(e=this._days+i/864e5,n=this._months+rr(e),t){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(e=this._days+Math.round(ar(this._months)),t){case"week":return e/7+i/6048e5;case"day":return e+i/864e5;case"hour":return 24*e+i/36e5;case"minute":return 1440*e+i/6e4;case"second":return 86400*e+i/1e3;case"millisecond":return Math.floor(864e5*e)+i;default:throw new Error("Unknown unit "+t)}}function lr(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*E(this._months/12):NaN}function cr(t){return function(){return this.as(t)}}var dr=cr("ms"),hr=cr("s"),ur=cr("m"),pr=cr("h"),fr=cr("d"),gr=cr("w"),mr=cr("M"),br=cr("Q"),xr=cr("y");function vr(){return Oi(this)}function yr(t){return t=Z(t),this.isValid()?this[t+"s"]():NaN}function _r(t){return function(){return this.isValid()?this._data[t]:NaN}}var wr=_r("milliseconds"),kr=_r("seconds"),Sr=_r("minutes"),Er=_r("hours"),Or=_r("days"),Tr=_r("months"),Mr=_r("years");function Dr(){return S(this.days()/7)}var Cr=Math.round,Ar={ss:44,s:45,m:45,h:22,d:26,M:11};function Rr(t,e,n,i,o){return o.relativeTime(e||1,!!n,t,i)}function Lr(t,e,n){var i=Oi(t).abs(),o=Cr(i.as("s")),r=Cr(i.as("m")),a=Cr(i.as("h")),s=Cr(i.as("d")),l=Cr(i.as("M")),c=Cr(i.as("y")),d=o<=Ar.ss&&["s",o]||o<Ar.s&&["ss",o]||r<=1&&["m"]||r<Ar.m&&["mm",r]||a<=1&&["h"]||a<Ar.h&&["hh",a]||s<=1&&["d"]||s<Ar.d&&["dd",s]||l<=1&&["M"]||l<Ar.M&&["MM",l]||c<=1&&["y"]||["yy",c];return d[2]=e,d[3]=+t>0,d[4]=n,Rr.apply(null,d)}function Pr(t){return void 0===t?Cr:"function"==typeof t&&(Cr=t,!0)}function Ir(t,e){return void 0!==Ar[t]&&(void 0===e?Ar[t]:(Ar[t]=e,"s"===t&&(Ar.ss=e-1),!0))}function Nr(t){if(!this.isValid())return this.localeData().invalidDate();var e=this.localeData(),n=Lr(this,!t,e);return t&&(n=e.pastFuture(+this,n)),e.postformat(n)}var Fr=Math.abs;function zr(t){return(t>0)-(t<0)||+t}function Br(){if(!this.isValid())return this.localeData().invalidDate();var t,e,n=Fr(this._milliseconds)/1e3,i=Fr(this._days),o=Fr(this._months);t=S(n/60),e=S(t/60),n%=60,t%=60;var r=S(o/12),a=o%=12,s=i,l=e,c=t,d=n?n.toFixed(3).replace(/\.?0+$/,""):"",h=this.asSeconds();if(!h)return"P0D";var u=h<0?"-":"",p=zr(this._months)!==zr(h)?"-":"",f=zr(this._days)!==zr(h)?"-":"",g=zr(this._milliseconds)!==zr(h)?"-":"";return u+"P"+(r?p+r+"Y":"")+(a?p+a+"M":"")+(s?f+s+"D":"")+(l||c||d?"T":"")+(l?g+l+"H":"")+(c?g+c+"M":"")+(d?g+d+"S":"")}var jr=ri.prototype;return jr.isValid=ii,jr.abs=Qo,jr.add=er,jr.subtract=nr,jr.as=sr,jr.asMilliseconds=dr,jr.asSeconds=hr,jr.asMinutes=ur,jr.asHours=pr,jr.asDays=fr,jr.asWeeks=gr,jr.asMonths=mr,jr.asQuarters=br,jr.asYears=xr,jr.valueOf=lr,jr._bubble=or,jr.clone=vr,jr.get=yr,jr.milliseconds=wr,jr.seconds=kr,jr.minutes=Sr,jr.hours=Er,jr.days=Or,jr.weeks=Dr,jr.months=Tr,jr.years=Mr,jr.humanize=Nr,jr.toISOString=Br,jr.toString=Br,jr.toJSON=Br,jr.locale=Qi,jr.localeData=eo,jr.toIsoString=M("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Br),jr.lang=to,at("X",0,0,"unix"),at("x",0,0,"valueOf"),Dt("x",kt),Dt("X",Ot),Pt("X",function(t,e,n){n._d=new Date(1e3*parseFloat(t,10))}),Pt("x",function(t,e,n){n._d=new Date(E(t))}),i.version="2.24.0",o(Xn),i.fn=Bo,i.min=Jn,i.max=Qn,i.now=ti,i.utc=f,i.unix=jo,i.months=$o,i.isDate=d,i.locale=fn,i.invalid=x,i.duration=Oi,i.isMoment=k,i.weekdays=qo,i.parseZone=Yo,i.localeData=bn,i.isDuration=ai,i.monthsShort=Xo,i.weekdaysMin=Ko,i.defineLocale=gn,i.updateLocale=mn,i.locales=xn,i.weekdaysShort=Zo,i.normalizeUnits=Z,i.relativeTimeRounding=Pr,i.relativeTimeThreshold=Ir,i.calendarFormat=Pi,i.prototype=Bo,i.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},i}()),ku.exports;var t}var Eu,Ou,Tu={};var Mu=function(){if(Ou)return vu;Ou=1;var t,e=(bu||(bu=1,(t=yu).exports=function(t){return t&&t.__esModule?t:{default:t}},t.exports.__esModule=!0,t.exports.default=t.exports),yu.exports).default;Object.defineProperty(vu,"__esModule",{value:!0}),vu.default=void 0;var n=e(Su()),i=function(){if(Eu)return Tu;Eu=1,Object.defineProperty(Tu,"__esModule",{value:!0}),Tu.call=a,Tu.default=void 0,Tu.note=o,Tu.noteOnce=l,Tu.preMessage=void 0,Tu.resetWarned=r,Tu.warning=i,Tu.warningOnce=s;var t={},e=[],n=Tu.preMessage=function(t){e.push(t)};function i(t,n){if("production"!==process.env.NODE_ENV&&!t&&void 0!==console){var i=e.reduce(function(t,e){return e(null!=t?t:"","warning")},n);i&&console.error("Warning: ".concat(i))}}function o(t,n){if("production"!==process.env.NODE_ENV&&!t&&void 0!==console){var i=e.reduce(function(t,e){return e(null!=t?t:"","note")},n);i&&console.warn("Note: ".concat(i))}}function r(){t={}}function a(e,n,i){n||t[i]||(e(!1,i),t[i]=!0)}function s(t,e){a(i,t,e)}function l(t,e){a(o,t,e)}return s.preMessage=n,s.resetWarned=r,s.noteOnce=l,Tu.default=s,Tu}(),o={getNow:function(){return(0,n.default)()},getFixedDate:function(t){return(0,n.default)(t,"YYYY-MM-DD")},getEndDate:function(t){return t.clone().endOf("month")},getWeekDay:function(t){var e=t.clone().locale("en_US");return e.weekday()+e.localeData().firstDayOfWeek()},getYear:function(t){return t.year()},getMonth:function(t){return t.month()},getDate:function(t){return t.date()},getHour:function(t){return t.hour()},getMinute:function(t){return t.minute()},getSecond:function(t){return t.second()},getMillisecond:function(t){return t.millisecond()},addYear:function(t,e){return t.clone().add(e,"year")},addMonth:function(t,e){return t.clone().add(e,"month")},addDate:function(t,e){return t.clone().add(e,"day")},setYear:function(t,e){return t.clone().year(e)},setMonth:function(t,e){return t.clone().month(e)},setDate:function(t,e){return t.clone().date(e)},setHour:function(t,e){return t.clone().hour(e)},setMinute:function(t,e){return t.clone().minute(e)},setSecond:function(t,e){return t.clone().second(e)},setMillisecond:function(t,e){return t.clone().millisecond(e)},isAfter:function(t,e){return t.isAfter(e)},isValidate:function(t){return t.isValid()},locale:{getWeekFirstDay:function(t){return(0,n.default)().locale(t).localeData().firstDayOfWeek()},getWeekFirstDate:function(t,e){return e.clone().locale(t).weekday(0)},getWeek:function(t,e){return e.clone().locale(t).week()},getShortWeekDays:function(t){return(0,n.default)().locale(t).localeData().weekdaysMin()},getShortMonths:function(t){return(0,n.default)().locale(t).localeData().monthsShort()},format:function(t,e,n){return e.clone().locale(t).format(n)},parse:function(t,e,o){for(var r=[],a=0;a<o.length;a+=1){var s=o[a],l=e;if(s.includes("wo")||s.includes("Wo")){var c=(s=s.replace(/wo/g,"w").replace(/Wo/g,"W")).match(/[-YyMmDdHhSsWwGg]+/g),d=l.match(/[-\d]+/g);c&&d?(s=c.join(""),l=d.join("")):r.push(s.replace(/o/g,""))}var h=(0,n.default)(l,s,t,!0);if(h.isValid())return h}for(var u=0;u<r.length;u+=1){var p=(0,n.default)(e,r[u],t,!1);if(p.isValid())return(0,i.noteOnce)(!1,"Not match any format strictly and fallback to fuzzy match. Please help to fire a issue about this."),p}return null}}};return vu.default=o,vu}(),Du=w(Mu),Cu=e.DatePicker.generatePicker(Du);var Au,Ru,Lu=le("div")(Au||(Au=i.__makeTemplateObject(["\n display: ",";\n "," {\n display: ",";\n }\n"],["\n display: ",";\n "," {\n display: ",";\n }\n"])),function(t){return"lg"===t.only?"block":"none"},_e,function(t){return"lg"===t.only?"none":"block"}),Pu=function(t){var n=t.className,o=i.__rest(t,["className"]),r="\n & .ant-steps-item-title {\n padding-right: 0;\n }\n \n & .ant-steps-item-finish > .ant-steps-item-container > .ant-steps-item-content > .ant-steps-item-title {\n ".concat(Ee,"\n ").concat(Ie,"\n }\n \n & .ant-steps-item-process > .ant-steps-item-container > .ant-steps-item-content > .ant-steps-item-title {\n ").concat(Ee,"\n ").concat(Pe,"\n }\n \n & .ant-steps-item-finish .ant-steps-item-icon > .ant-steps-icon .ant-steps-icon-dot {\n background: #43CC32;\n }\n \n &.ant-steps-dot .ant-steps-item-icon {\n width: 13px;\n height: 13px;\n }\n \n &.ant-steps-dot .ant-steps-item-content {\n width: unset;\n max-width: 100%;\n }\n \n &.ant-steps-dot .ant-steps-item-process .ant-steps-item-icon {\n width: 13px;\n height: 13px;\n }\n \n &.ant-steps-vertical.ant-steps-dot .ant-steps-item-icon {\n margin-top: 6px;\n }\n \n &.ant-steps-dot .ant-steps-item-tail::after {\n margin-left: 15px;\n }\n \n & .ant-steps-item-finish > .ant-steps-item-container > .ant-steps-item-tail::after {\n background: #CACACA;\n }\n \n &.ant-steps-vertical.ant-steps-dot .ant-steps-item-process .ant-steps-icon-dot {\n top: 0;\n }\n \n &.ant-steps-vertical .ant-steps-item-icon {\n margin-right: 10px;\n }\n \n &.ant-steps-vertical.ant-steps-dot .ant-steps-item-process .ant-steps-icon-dot {\n left: 0;\n }\n \n & .ant-steps-item-icon > .ant-steps-icon {\n top: 0;\n }\n \n &.ant-steps-vertical.ant-steps-dot .ant-steps-item > .ant-steps-item-container > .ant-steps-item-tail {\n top: 4px;\n left: -9px;\n }\n \n & .ant-steps-item-process > .ant-steps-item-container > .ant-steps-item-tail::after {\n background: #CACACA;\n }\n \n & .ant-steps-item-wait > .ant-steps-item-container > .ant-steps-item-content > .ant-steps-item-title {\n ").concat(Ee,"\n ").concat(Ie,"\n color: #777777;\n }\n ");return s.default.createElement(e.Steps,i.__assign({},o,{className:bt(xt(r),n)}))};Pu.Step=function(t){var n=i.__rest(t,[]),o=xt(Ru||(Ru=i.__makeTemplateObject(["\n & .ant-steps-item-title {\n white-space: nowrap;\n width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n "],["\n & .ant-steps-item-title {\n white-space: nowrap;\n width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n "])));return s.default.createElement(e.Steps.Step,i.__assign({className:bt(o)},n))};var Iu,Nu,Fu,zu,Bu,ju,Yu=xt(ju||(ju=i.__makeTemplateObject(["\n -webkit-font-smoothing: antialiased;\n font-family: ",";\n color: ",";\n"],["\n -webkit-font-smoothing: antialiased;\n font-family: ",";\n color: ",";\n"])),cn,nt.DEFAULT),Hu=function(t){var n=t.children,o=i.__rest(t,["children"]),r=Ke().brand,a="\n font-family: ".concat(cn,";\n font-size: 16px;\n font-weight: 400;\n\n &.ant-tabs {\n width: 100%;\n }\n\n .ant-tabs-ink-bar {\n z-index: 0;\n }\n\n .ant-tabs-nav .ant-tabs-tab {\n margin-right: 20px;\n padding-top: 8px;\n padding-bottom: 8px;\n }\n\n .ant-tabs-nav .ant-tabs-tab:hover,\n .ant-tabs-nav .ant-tabs-tab-active .ant-tabs-tab-btn {\n color: ").concat(r.primary.default,";\n }\n\n .ant-tabs-nav .ant-tabs-tab-active {\n font-weight: 700;\n font-size: 16px;\n font-family: ").concat("Red Hat Display",";\n }\n \n .ant-tabs-ink-bar {\n background-color: ").concat(r.primary.default,"; \n }\n ");return s.default.createElement(e.Tabs,i.__assign({className:"".concat(xt(a))},o),n)};Hu.TabPane=e.Tabs.TabPane;var Wu,Vu,Uu,Gu,$u,Xu,qu,Zu,Ku,Ju,Qu,tp,ep,np,ip,op,rp,ap,sp,lp={Group:function(t){var n=t.className,o=void 0===n?"":n,r=i.__rest(t,["className"]),a="\n &.ant-checkbox-group {\n width: 100% !important;\n }\n\n & .ant-checkbox-group-item {\n display: flex !important;\n align-items: flex-start !important;\n\n border: 1px solid ".concat(He.brand.line.base," !important;\n border-radius: 5px !important;\n\n &:hover {\n border: 1px solid ").concat(He.brand.primary.default," !important;\n }\n\n &:focus-within {\n border: 1px solid ").concat(He.brand.primary.default," !important;\n }\n\n &:not(:last-child) {\n margin-bottom: 10px !important;\n width: 100% !important;\n }\n }\n\n & .ant-checkbox-wrapper-checked {\n border: 1px solid ").concat(He.brand.primary.default," !important;\n }\n\n & .ant-checkbox-wrapper {\n padding-left: 16px !important;\n padding-top: 11px !important;\n padding-bottom: 11px !important;\n line-height: 1.6 !important;\n color: ").concat(exports.NEUTRAL_COLORS.BLACK," !important;\n font-family: ").concat(cn," !important;\n }\n\n & .ant-checkbox {\n margin-top: 4px !important;\n }\n\n & .ant-checkbox + span {\n padding-left: 10px !important;\n padding-right: 10px !important;\n }\n\n & .ant-checkbox-checked .ant-checkbox-inner {\n background-color: ").concat(He.brand.primary.illustration," !important;\n border-color: ").concat(He.brand.primary.default," !important;\n }\n\n & .ant-checkbox-inner {\n border-radius: 5px !important;\n border: 1px solid ").concat(He.brand.primary.default," !important;\n }\n ");return s.default.createElement(e.Checkbox.Group,i.__assign({className:"".concat(xt(a)," ").concat(o)},r))}},cp=le.div(Wu||(Wu=i.__makeTemplateObject(["\n width: 100%;\n padding-top: 4px;\n display: block;\n align-items: center;\n flex-direction: column;\n"],["\n width: 100%;\n padding-top: 4px;\n display: block;\n align-items: center;\n flex-direction: column;\n"]))),dp=le(zn)(Vu||(Vu=i.__makeTemplateObject(["\n text-align: center;\n margin-top: 10px;\n margin-bottom: 5px;\n"],["\n text-align: center;\n margin-top: 10px;\n margin-bottom: 5px;\n"]))),hp=le(Fn)(Uu||(Uu=i.__makeTemplateObject(["\n text-align: center;\n color: ",";\n margin-top: 5px;\n margin-bottom: 20px;\n align-items: center;\n"],["\n text-align: center;\n color: ",";\n margin-top: 5px;\n margin-bottom: 20px;\n align-items: center;\n"])),rt.S500),up=le(Fn)(Gu||(Gu=i.__makeTemplateObject(["\n text-align: center;\n color: ",";\n margin-top: 20px;\n margin-bottom: 20px;\n align-items: center;\n"],["\n text-align: center;\n color: ",";\n margin-top: 20px;\n margin-bottom: 20px;\n align-items: center;\n"])),nt.DEFAULT),pp=function(t){var e=t.typographyType,n=void 0===e?"body":e,o=t.size,r=void 0===o?"md":o,a=t.textContent,l=t.children,c=t.href,d=t.target,h=t.rel,u=t.isUnderlined,p=void 0===u||u,f=t.icon,g=t.iconPlacement,m=void 0===g?"left":g,b=t.onClick,x=i.__rest(t,["typographyType","size","textContent","children","href","target","rel","isUnderlined","icon","iconPlacement","onClick"]),v=le.a($u||($u=i.__makeTemplateObject(["\n display: ",";\n align-items: center;\n gap: 4px;\n .material-symbols-rounded {\n color: "," !important;\n }\n text-decoration: ","\n ",";\n\n :hover {\n text-decoration: ","\n ",";\n }\n\n user-select: none;\n "],["\n display: ",";\n align-items: center;\n gap: 4px;\n .material-symbols-rounded {\n color: "," !important;\n }\n text-decoration: ","\n ",";\n\n :hover {\n text-decoration: ","\n ",";\n }\n\n user-select: none;\n "])),f?"flex":"inline-flex",He.color.base.link,p?"underline":"none",He.color.base.link,p?"underline":"none",He.color.base.link),y=f&&"left"===m,_=f&&"right"===m,w=a||l;return s.default.createElement(v,i.__assign({href:c,target:d,rel:h,onClick:b},x),y&&f,"body"===n&&s.default.createElement(kt.Body,{size:r,color:He.color.base.link},w),"label"===n&&s.default.createElement(kt.Label,{size:r,color:He.color.base.link},w),_&&f)},fp={Title:le(Nn)(Qu||(Qu=i.__makeTemplateObject(["\n color: #1b2736;\n margin-bottom: 5px;\n "],["\n color: #1b2736;\n margin-bottom: 5px;\n "]))),Subtitle:le(Fn)(tp||(tp=i.__makeTemplateObject(["\n color: #777777;\n margin-bottom: 5px;\n "],["\n color: #777777;\n margin-bottom: 5px;\n "]))),Row:le.div(ep||(ep=i.__makeTemplateObject(["\n display: block;\n "," {\n display: flex;\n flex-wrap: wrap;\n }\n "],["\n display: block;\n "," {\n display: flex;\n flex-wrap: wrap;\n }\n "])),_e),Left:le.div(np||(np=i.__makeTemplateObject(["\n flex-basis: 0px;\n flex-grow: 1;\n flex-shrink: 0;\n margin-right: 20px;\n margin-bottom: 20px;\n min-width: unset;\n\n "," {\n min-width: 290px;\n }\n "],["\n flex-basis: 0px;\n flex-grow: 1;\n flex-shrink: 0;\n margin-right: 20px;\n margin-bottom: 20px;\n min-width: unset;\n\n "," {\n min-width: 290px;\n }\n "])),_e),Right:le.div(ip||(ip=i.__makeTemplateObject(["\n flex-basis: 0px;\n flex-grow: 1;\n flex-shrink: 0;\n margin-bottom: 20px;\n min-width: unset;\n\n "," {\n min-width: 290px;\n }\n "],["\n flex-basis: 0px;\n flex-grow: 1;\n flex-shrink: 0;\n margin-bottom: 20px;\n min-width: unset;\n\n "," {\n min-width: 290px;\n }\n "])),_e)};var gp,mp,bp,xp,vp,yp,_p,wp,kp,Sp,Ep,Op,Tp,Mp,Dp=w(function(){if(sp)return ap;sp=1;var t=rp?op:(rp=1,op=function(){var t=document.getSelection();if(!t.rangeCount)return function(){};for(var e=document.activeElement,n=[],i=0;i<t.rangeCount;i++)n.push(t.getRangeAt(i));switch(e.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":e.blur();break;default:e=null}return t.removeAllRanges(),function(){"Caret"===t.type&&t.removeAllRanges(),t.rangeCount||n.forEach(function(e){t.addRange(e)}),e&&e.focus()}}),e={"text/plain":"Text","text/html":"Url",default:"Text"};return ap=function(n,i){var o,r,a,s,l,c,d=!1;i||(i={}),o=i.debug||!1;try{if(a=t(),s=document.createRange(),l=document.getSelection(),(c=document.createElement("span")).textContent=n,c.ariaHidden="true",c.style.all="unset",c.style.position="fixed",c.style.top=0,c.style.clip="rect(0, 0, 0, 0)",c.style.whiteSpace="pre",c.style.webkitUserSelect="text",c.style.MozUserSelect="text",c.style.msUserSelect="text",c.style.userSelect="text",c.addEventListener("copy",function(t){if(t.stopPropagation(),i.format)if(t.preventDefault(),void 0===t.clipboardData){o&&console.warn("unable to use e.clipboardData"),o&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var r=e[i.format]||e.default;window.clipboardData.setData(r,n)}else t.clipboardData.clearData(),t.clipboardData.setData(i.format,n);i.onCopy&&(t.preventDefault(),i.onCopy(t.clipboardData))}),document.body.appendChild(c),s.selectNodeContents(c),l.addRange(s),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");d=!0}catch(t){o&&console.error("unable to copy using execCommand: ",t),o&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(i.format||"text",n),i.onCopy&&i.onCopy(window.clipboardData),d=!0}catch(t){o&&console.error("unable to copy using clipboardData: ",t),o&&console.error("falling back to prompt"),r=function(t){var e=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return t.replace(/#{\s*key\s*}/g,e)}("message"in i?i.message:"Copy to clipboard: #{key}, Enter"),window.prompt(r,n)}}finally{l&&("function"==typeof l.removeRange?l.removeRange(s):l.removeAllRanges()),c&&document.body.removeChild(c),a()}return d}}()),Cp=le.div(gp||(gp=i.__makeTemplateObject(["\n display: flex;\n flex-direction: column;\n gap: 4px;\n"],["\n display: flex;\n flex-direction: column;\n gap: 4px;\n"]))),Ap=le.div(mp||(mp=i.__makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: 4px;\n"],["\n display: flex;\n align-items: center;\n gap: 4px;\n"]))),Rp=le.div(bp||(bp=i.__makeTemplateObject(["\n display: flex;\n align-items: center;\n"],["\n display: flex;\n align-items: center;\n"]))),Lp=le.div(xp||(xp=i.__makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: 4px;\n > svg {\n width: ","!important;\n height: 24px;\n }\n"],["\n display: flex;\n align-items: center;\n gap: 4px;\n > svg {\n width: ","!important;\n height: 24px;\n }\n"])),function(t){return"wide"===t.iconSize?"48px":"24px"}),Pp=le.div(vp||(vp=i.__makeTemplateObject(["\n display: flex;\n background: ",";\n border-radius: 12px;\n border: 1px solid ",";\n min-height: 48px;\n"],["\n display: flex;\n background: ",";\n border-radius: 12px;\n border: 1px solid ",";\n min-height: 48px;\n"])),He.color.surface.disabledSurface,He.color.base.line),Ip=le.div(yp||(yp=i.__makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 12px 16px;\n flex: 1 1 0px;\n"],["\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 12px 16px;\n flex: 1 1 0px;\n"]))),Np=le.div(_p||(_p=i.__makeTemplateObject(["\n color: ",";\n line-height: '24px';\n max-height: ",";\n word-break: ",";\n"],["\n color: ",";\n line-height: '24px';\n max-height: ",";\n word-break: ",";\n"])),He.color.base.onNeutral,function(t){return t.isBankAddress?"auto":"48px"},function(t){return t.isBankAddress?"break-word":"break-all"}),Fp=le(e.Button)(wp||(wp=i.__makeTemplateObject(["\n &.ant-btn {\n text-shadow: none;\n -webkit-font-smoothing: antialiased;\n box-shadow: none;\n display: flex;\n align-items: center;\n justify-content: center;\n border-top-left-radius: 0px;\n border-bottom-left-radius: 0px;\n border-top-right-radius: 12px;\n border-bottom-right-radius: 12px;\n border-left: 1px solid "," !important;\n border-right: 0px;\n border-block: 0px;\n background: ",";\n padding: 12px;\n min-width: unset;\n min-height: unset;\n height: auto;\n & > svg {\n vertical-align: middle;\n font-size: 16px;\n margin: 0px;\n }\n ",";\n &[ant-click-animating-without-extra-node]:after {\n --antd-wave-shadow-color: ",";\n }\n }\n"],["\n &.ant-btn {\n text-shadow: none;\n -webkit-font-smoothing: antialiased;\n box-shadow: none;\n display: flex;\n align-items: center;\n justify-content: center;\n border-top-left-radius: 0px;\n border-bottom-left-radius: 0px;\n border-top-right-radius: 12px;\n border-bottom-right-radius: 12px;\n border-left: 1px solid "," !important;\n border-right: 0px;\n border-block: 0px;\n background: ",";\n padding: 12px;\n min-width: unset;\n min-height: unset;\n height: auto;\n & > svg {\n vertical-align: middle;\n font-size: 16px;\n margin: 0px;\n }\n ",";\n &[ant-click-animating-without-extra-node]:after {\n --antd-wave-shadow-color: ",";\n }\n }\n"])),He.color.base.line,He.color.surface.neutral,Ee,He.brand.primary.default),zp=function(t){var n=t.className,o=i.__rest(t,["className"]);return s.default.createElement(e.Timeline,i.__assign({},o,{className:bt(xt("\n // for reverse === true\n &.ant-timeline.ant-timeline-reverse\n > .ant-timeline-item\n > .ant-timeline-item-head-custom {\n top: 40px;\n margin-right: 50px;\n }\n\n &.ant-timeline.ant-timeline-reverse\n > .ant-timeline-item\n > .ant-timeline-item-tail {\n top: 40px;\n }\n\n &.ant-timeline.ant-timeline-reverse\n > .ant-timeline-item\n > .ant-timeline-item-content {\n margin-left: 45px;\n }\n\n // for reverse === false\n &.ant-timeline > .ant-timeline-item > .ant-timeline-item-head-custom {\n top: 40px;\n margin-right: 50px;\n }\n\n &.ant-timeline > .ant-timeline-item > .ant-timeline-item-tail {\n top: 40px;\n }\n\n &.ant-timeline > .ant-timeline-item > .ant-timeline-item-content {\n margin-left: 45px;\n }\n "),n)}))};zp.Item=e.Timeline.Item;var Bp,jp,Yp,Hp,Wp,Vp,Up,Gp,$p,Xp=le.div(Bp||(Bp=i.__makeTemplateObject(["\n background-color: ",";\n border-radius: 8px;\n display: flex;\n flex-direction: column;\n gap: 24px;\n padding: 12px;\n min-width: 200px;\n max-width: 260px;\n"],["\n background-color: ",";\n border-radius: 8px;\n display: flex;\n flex-direction: column;\n gap: 24px;\n padding: 12px;\n min-width: 200px;\n max-width: 260px;\n"])),He.color.surface.secondaryNeutral),qp=le.div(jp||(jp=i.__makeTemplateObject(["\n display: flex;\n flex-direction: column;\n gap: 12px;\n color: ",";\n"],["\n display: flex;\n flex-direction: column;\n gap: 12px;\n color: ",";\n"])),He.color.base.onNeutral),Zp=le.div(Yp||(Yp=i.__makeTemplateObject(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n"],["\n display: flex;\n justify-content: space-between;\n align-items: center;\n"]))),Kp=le(pp)(Hp||(Hp=i.__makeTemplateObject(["\n text-decoration: none !important;\n"],["\n text-decoration: none !important;\n"]))),Jp=le.div(Wp||(Wp=i.__makeTemplateObject(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n"],["\n display: flex;\n justify-content: space-between;\n align-items: center;\n"]))),Qp=le.div(Vp||(Vp=i.__makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 4px;\n"],["\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 4px;\n"]))),tf=le.span(Up||(Up=i.__makeTemplateObject(["\n width: 6px;\n height: 6px;\n border-radius: 50%;\n background-color: ",";\n"],["\n width: 6px;\n height: 6px;\n border-radius: 50%;\n background-color: ",";\n"])),function(t){return t.isActive?"".concat(He.color.base.primary3):"".concat(He.color.surface.disabledOnSurface)}),ef=le(pp)(Gp||(Gp=i.__makeTemplateObject(["\n h5 {\n color: ",";\n }\n pointer-events: ",";\n"],["\n h5 {\n color: ",";\n }\n pointer-events: ",";\n"])),function(t){return t.isDisabled?"".concat(He.color.surface.disabledOnSurface):"".concat(He.color.base.link)},function(t){return t.isDisabled?"none":"auto"}),nf=le.div($p||($p=i.__makeTemplateObject(["\n display: flex;\n gap: 8px;\n"],["\n display: flex;\n gap: 8px;\n"])));var of,rf,af,sf,lf=s.default.createContext({setModal:function(){return null},resetModal:function(){return null}}),cf=document.body,df=function(e){var n=e.modal,o=t.useState(document.createElement("div"))[0];o.setAttribute("id","modal-root"),t.useEffect(function(){return cf.appendChild(o),function(){cf.removeChild(o)}},[o]);var r=s.default.createElement(Yt,{styles:Bt(of||(of=i.__makeTemplateObject(["\n body {\n overflow: hidden;\n }\n "],["\n body {\n overflow: hidden;\n }\n "])))});return l.default.createPortal(s.default.createElement(uf,{open:!!n},!!n&&r,n),o)},hf=Wt(rf||(rf=i.__makeTemplateObject(["\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n"],["\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n"]))),uf=le.div(sf||(sf=i.__makeTemplateObject(["\n position: fixed;\n width: 100vw;\n height: 100%;\n background: rgba(0, 0, 0, 0.2);\n top: 0;\n left: 0;\n display: none;\n overflow: auto;\n z-index: 9; // bigger than nav bar z-index: 8\n ",";\n"],["\n position: fixed;\n width: 100vw;\n height: 100%;\n background: rgba(0, 0, 0, 0.2);\n top: 0;\n left: 0;\n display: none;\n overflow: auto;\n z-index: 9; // bigger than nav bar z-index: 8\n ",";\n"])),function(t){return t.open&&Bt(af||(af=i.__makeTemplateObject(["\n display: block;\n animation: "," 0.3s ease;\n "],["\n display: block;\n animation: "," 0.3s ease;\n "])),hf)});exports.AccessApiTwoTone=n.SvgAccessApiTwoTone,exports.AccountStatement=n.SvgAccountStatement,exports.Add=n.SvgAdd,exports.Api=n.SvgApi,exports.ApiDocsTwoTone=n.SvgApiDocsTwoTone,exports.ArrowDown=n.SvgArrowDown,exports.ArrowLeft=n.SvgArrowLeft,exports.ArrowRight=n.SvgArrowRight,exports.ArrowSwitch=n.SvgArrowSwitch,exports.ArrowUp=n.SvgArrowUp,exports.Authorize=n.SvgAuthorize,exports.Avatar=n.SvgAvatar,exports.AvatarFilled=n.SvgAvatarFilled,exports.Bank=n.SvgBank,exports.BankFilled=n.SvgBankFilled,exports.BankFilledBackground=n.SvgBankFilledBackground,exports.Bell=n.SvgBell,exports.BellFilled=n.SvgBellFilled,exports.BulletPointArrow=n.SvgBulletPointArrow,exports.Calendar=n.SvgCalendar,exports.Camera=n.SvgCamera,exports.CardFilled=n.CardFilled,exports.Coins=n.Coins,exports.Company=n.SvgCompany,exports.CompanyComplexTwoTone=n.SvgCompanyComplexTwoTone,exports.CompanyTwoTone=n.SvgCompanyTwoTone,exports.Confirmation=n.SvgConfirmation,exports.CopyToClipboard=n.SvgCopyToClipboard,exports.CreditCard=n.SvgCreditCard,exports.Cross=n.SvgCross,exports.CrossMini=n.SvgCrossMini,exports.CustomerKnowledgeAssessment=n.SvgCustomerKnowledgeAssessment,exports.CustomerSupport=n.SvgCustomerSupport,exports.CustomerSupportTwoTone=n.SvgCustomerSupportTwoTone,exports.Delete=n.SvgDelete,exports.DepositTwoTone=n.SvgDepositTwoTone,exports.DeveloperTool=n.SvgDeveloperTool,exports.DeveloperToolTwoTone=n.SvgDeveloperToolTwoTone,exports.DirectMint=n.SvgDirectMint,exports.Document=n.SvgDocument,exports.DocumentFilled=n.SvgDocumentFilled,exports.Dots=n.SvgDots,exports.DownArrow=n.SvgDownArrow,exports.Download=n.SvgDownload,exports.Earn=n.SvgEarn,exports.Edit=n.SvgEdit,exports.Employee=n.SvgEmployee,exports.EmptyIcon=n.SvgEmptyIcon,exports.EmptyStateWithPattern=n.SvgEmptyStateWithPattern,exports.Expand=n.SvgExpand,exports.ExternalLink=n.SvgExternalLink,exports.Faq=n.SvgFaq,exports.FaqDialog=n.SvgFaqDialog,exports.FaqFilled=n.SvgFaqFilled,exports.File=n.SvgFile,exports.Filter=n.SvgFilter,exports.Flag=n.SvgFlag,exports.FlipHorizontal=n.SvgFlipHorizontal,exports.FlipVertical=n.SvgFlipVertical,exports.GenerateVA=n.GenerateVA,exports.HandShake=n.SvgHandShake,exports.HelpGuide=n.SvgHelpGuide,exports.Home=n.SvgHome,exports.Idea=n.SvgIdea,exports.Info=n.SvgInfo,exports.InfoFilled=n.SvgInfoFilled,exports.Invoice=n.SvgInvoice,exports.LockFilled=n.SvgLockFilled,exports.LockWithKeyHole=n.SvgLockWithKeyHole,exports.Login=n.SvgLogin,exports.Logout=n.SvgLogout,exports.LowFee=n.SvgLowFee,exports.Mail=n.SvgMail,exports.MemoCard=n.MemoCard,exports.MintSetupWallet=n.MintSetupWallet,exports.MintWallet=n.SvgMintWallet,exports.Minus=n.SvgMinus,exports.Mobile=n.SvgMobile,exports.More=n.SvgMore,exports.NavDashboard=n.SvgNavDashboard,exports.NavHamburger=n.SvgNavHamburger,exports.NavTransactions=n.SvgNavTransactions,exports.Notes=n.SvgNotes,exports.OneToOneXIDR=n.SvgOneToOneXIDR,exports.OneToOneXSGD=n.SvgOneToOneXSGD,exports.Outgoing=n.SvgOutgoing,exports.Passport=n.SvgPassport,exports.PaymentTwoTone=n.SvgPaymentTwoTone,exports.Payout=n.SvgPayout,exports.PenField=n.PenField,exports.Pending=n.SvgPending,exports.PersonalTwoTone=n.SvgPersonalTwoTone,exports.PiggyBank=n.SvgPiggyBank,exports.Reroll=n.SvgReroll,exports.Resend=n.SvgCallback,exports.Response=n.SvgResponse,exports.RotateLeft=n.SvgRotateLeft,exports.RotateRight=n.SvgRotateRight,exports.Scan=n.SvgScan,exports.Search=n.SvgSearch,exports.SendEmail=n.SvgSendEmail,exports.SendInvitation=n.SvgSendInvitation,exports.Settings=n.SvgSettings,exports.SettingsFilled=n.SvgSettingsFilled,exports.SignUpTwoTone=n.SvgSignUpTwoTone,exports.StateSuccessV2=n.StateSuccess,exports.StraitsXDecoVertical=n.Coins$1,exports.StraitsXEarnExchange=n.SvgExchange,exports.StraitsXEarnFee=n.SvgFee,exports.StraitsXEarnWallet=n.SvgWallet$1,exports.StraitsXEarnWithdrawal=n.SvgWithdrawal,exports.Swap=n.SvgSwap,exports.Switch=n.SvgSwitch,exports.SwitchAccount=n.SvgSwitchAccount,exports.Thumbnail=n.SvgThumbnail,exports.ThumbnailTwoTone=n.SvgThumbnailTwoTone,exports.Tick=n.SvgTick,exports.Time=n.Time,exports.Tips=n.SvgTips,exports.Transaction=n.SvgTransaction,exports.TwoFA=n.TwoFA,exports.Unlink=n.SvgUnlink,exports.UpArrow=n.SvgUpArrow,exports.Upload=n.SvgUpload,exports.UsefulLinks=n.SvgUsefulLinks,exports.UsefulLinksTwoTone=n.SvgUsefulLinksTwoTone,exports.User=n.SvgUser,exports.VerifiedShield=n.SvgVerifiedShield,exports.VerifyIdentity=n.SvgVerifyIdentity,exports.VerifyPhone=n.SvgVerifyPhone,exports.Wallet=n.SvgWallet,exports.WalletFilled=n.SvgWalletFilled,exports.WarningFilled=n.SvgWarningFilled,exports.WithdrawalTwoTone=n.SvgWithdrawalTwoTone,exports.Alfamart=r.SvgAlfamart,exports.Alfamidi=r.SvgAlfamidi,exports.Anz=r.SvgAnz,exports.Arbitrum=r.Arbitrum,exports.Avalanche=r.Avalanche,exports.Base=r.Base,exports.Bca=r.SvgBca,exports.Bea=r.SvgBea,exports.Binance=r.SvgBinance,exports.Bitgo=r.SvgBitgo,exports.Bnbsmart=r.BnbSmart,exports.Bni=r.SvgBni,exports.Bnp=r.SvgBnp,exports.Boc=r.SvgBoc,exports.Bri=r.SvgBri,exports.Bsi=r.SvgBsi,exports.Bss=r.SvgBss,exports.Cimb=r.SvgCimb,exports.Citi=r.SvgCiti,exports.Coinhako=r.SvgCoinhako,exports.Coinut=r.SvgCoinut,exports.CrossLogo=r.SvgCrossLogo,exports.Crypto=r.SvgCrypto,exports.DanPlusDan=r.SvgDanPlusDan,exports.Dana=r.SvgDana,exports.Danamon=r.SvgDanamon,exports.DarkStraitsXLogo=r.SvgDarkStraitsXLogo,exports.DarkStraitsXUserInfoBarLogo=r.SvgDarkStraitsXUserInfoBarLogo,exports.Dbag=r.SvgDbag,exports.Dbs=r.SvgDbs,exports.Dextf=r.SvgDextf,exports.EarnPiggyBank=r.SvgEarnPiggyBank,exports.EmptyStraitsX=r.EmptyStraitsX,exports.Ethereum=r.SvgEthereum,exports.FaceScan=r.FaceScan,exports.Fazz=r.SvgFazzLogo,exports.Feb=r.SvgFeb,exports.Finblox=r.SvgFinblox,exports.Fireblocks=r.SvgFireblocks,exports.GoPay=r.SvgGoPay,exports.Gpn=r.SvgGpn,exports.Hana=r.SvgHana,exports.Hedera=r.SvgHedera,exports.Hlb=r.SvgHlb,exports.Hodlnaut=r.SvgHodlnaut,exports.Hsbc=r.SvgHsbc,exports.Icbc=r.SvgIcbc,exports.Icici=r.SvgIcici,exports.IdFlag=r.SvgIdFlag,exports.IdrLogo=r.SvgIdrLogo,exports.Indomaret=r.SvgIndomaret,exports.InfoLogo=r.SvgInfoLogo,exports.InterestCompoundedDaily=r.SvgInterestCompoundedDaily,exports.Jcb=r.SvgJcb,exports.Jpmc=r.SvgSmbc,exports.Jumio=r.SvgJumio,exports.Lawson=r.SvgLawson,exports.LedgerVault=r.SvgLedgerVault,exports.LevelDown=r.LevelDown,exports.LightStraitsXLogo=r.SvgLightStraitsXLogo,exports.LinkAja=r.SvgLinkAja,exports.Liquid=r.SvgLiquid,exports.Mandiri=r.SvgMandiri,exports.Mastercard=r.SvgMastercard,exports.Mbb=r.SvgMbb,exports.Miz=r.SvgMiz,exports.Mufg=r.SvgMufg,exports.MyInfoLogo=r.SvgMyInfoLogo,exports.NoFees=r.SvgNoFees,exports.NoLockInPeriod=r.SvgNoLockInPeriod,exports.NotesBell=r.NotesBell,exports.OVO=r.SvgOvo,exports.Ocbc=r.SvgOcbc,exports.OnchainCustodian=r.SvgOnchainCustodian,exports.Permata=r.SvgPermata,exports.Polygon=r.SvgPolygon,exports.Posb=r.SvgPosb,exports.QcpCapital=r.SvgQcpCapital,exports.Qris=r.SvgQris,exports.Rbs=r.SvgRbs,exports.Rhb=r.SvgRhb,exports.Ripple=r.Ripple,exports.Scb=r.SvgScb,exports.SendLogo=r.SvgSendLogo,exports.SgdLogo=r.SvgSgdLogo,exports.ShopeePay=r.SvgShopeePay,exports.Sifl=r.SvgSifl,exports.Smbc=r.SvgSmbc$1,exports.Solana=r.Solana,exports.Sparrow=r.SvgSparrow,exports.StateError=r.StateError,exports.StateSuccess=r.StateSuccess,exports.StraitsXBusinessAccountDarkLogo=r.SvgStraitsXBusinessAccountDarkLogo,exports.StraitsXBusinessAccountLightLogo=r.SvgStraitsXBusinessAccountLightLogo,exports.StraitsXLogo=r.SvgStraitsXLogo,exports.StraitsXMyInfo=r.SvgStraitsXMyInfo,exports.StraitsXPersonalAccountDarkLogo=r.SvgStraitsXPersonalAccountDarkLogo,exports.StraitsXPersonalAccountLightLogo=r.SvgStraitsXPersonalAccountLightLogo,exports.StraitsXSandboxLogo=r.SvgStraitsXSandboxLogo,exports.StraitsxSandboxLogo=r.SvgStraitsxSandboxLogo,exports.Target=r.Target,exports.ThreeDSecure=r.SvgThreedsecure,exports.ThreeDotsLogo=r.SvgThreeDotsLogo,exports.TickLogo=r.SvgTickLogo,exports.TokenizeXchange=r.SvgTokenizeXchange,exports.Tron=r.Tron,exports.Trwi=r.SvgTrwi,exports.Unagii=r.SvgUnagii,exports.Uniswap=r.SvgUniswap,exports.Uob=r.SvgUob,exports.UsFlag=r.SvgUsFlag,exports.UsdLogo=r.SvgUsdLogo,exports.UsdcLogo=r.SvgUsdcLogo,exports.UsdpLogo=r.SvgUsdpLogo,exports.UsdtLogo=r.SvgUsdtLogo,exports.VecDeposits=r.SvgVecDeposits,exports.VecDesktop=r.SvgVecDesktop,exports.VecEmpty=r.SvgVecEmpty,exports.VecEmptyPlain=r.SvgVecEmptyPlain,exports.VecEmptyPlainGreen=r.SvgVecEmptyPlainGreen,exports.VecMobile=r.SvgVecMobile,exports.VecRecipients=r.SvgVecRecipients,exports.VecThumbnailDoc=r.SvgVecThumbnailDoc,exports.Visa=r.SvgVisa,exports.WalletLogo=r.SvgWalletLogo,exports.XfersLogo=r.SvgXfersLogo,exports.XfersSandboxLogo=r.SvgXfersSandboxLogo,exports.XidrLogo=r.SvgXidrLogo,exports.XsgdLogo=r.SvgXsgdLogo,exports.XusdLogo=r.SvgXusdLogo,exports.Zillet=r.SvgZillet,exports.Zilliqa=r.SvgZilliqa,exports.Zilswap=r.SvgZilswap,exports.Accordion=function(e){var n=e.header,i=e.body,o=e.defaultOpen,r=void 0!==o&&o,a=e.headerHeightDesktop,l=void 0===a?95:a,c=e.headerHeightMobile,d=void 0===c?95:c,h=e.toggleText,u=e.onCloseToggleText,p=void 0===u?h:u,f=e.additionalHeaderItem,g=e.withBoxShadow,m=void 0!==g&&g,b=t.useState(r),x=b[0],v=b[1];return s.default.createElement(Wn,{open:x,headerHeightDesktop:l,headerHeightMobile:d,withBoxShadow:m},s.default.createElement(Vn,{onClick:function(){return v(function(t){return!t})},headerHeightDesktop:l,headerHeightMobile:d},s.default.createElement(Un,null,n,s.default.createElement(Xn,null,h&&s.default.createElement(Gn,null,x?p:h),s.default.createElement($n,{open:x}))),f&&s.default.createElement(s.default.Fragment,null,f)),s.default.createElement(Hn,null),s.default.createElement("div",null,i))},exports.ActionButton=function(t){var e=t.icon,n=t.type,o=t.disabled,r=i.__rest(t,["icon","type","disabled"]),a=Ke(),l=a.brand,c=a.actionButton,d="\n cursor: auto;\n pointer-events: none;\n opacity: ".concat(l.action.disabledOpacity,";\n "),h="\n color: ".concat(c.color,";\n\n &:focus {\n color: ").concat(c.color,";\n }\n\n &:hover {\n color: ").concat(c.hover,";\n }\n\n &:active {\n color: ").concat(c.color,";\n }\n "),u="\n color: ".concat(l.action.default,";\n\n &:focus {\n color: ").concat(l.action.default,";\n }\n\n &:hover {\n color: ").concat(l.action.hover,";\n }\n\n &:active {\n color: ").concat(l.action.default,";\n }\n "),p=le(ln)($e||($e=i.__makeTemplateObject(["\n &.ant-btn {\n "," & > svg {\n "," vertical-align: middle;\n font-size: 1.4em;\n margin: 0;\n }\n }\n "],["\n &.ant-btn {\n "," & > svg {\n "," vertical-align: middle;\n font-size: 1.4em;\n margin: 0;\n }\n }\n "])),!0===o&&d,"primary"===n?u:h);return s.default.createElement(p,i.__assign({type:"secondary",size:"small"},r),s.default.createElement(function(){return s.default.cloneElement(e,{width:17,height:17})},null))},exports.ActionCard=function(t){var e=t.children,n=t.title,o=t.footer,r=Ke(),a=r.spacing,l=r.neutral,c=r.layout,d=le(Ln)(wn||(wn=i.__makeTemplateObject(["\n border-style: none;\n\n & > div.ant-card-body {\n position: fixed;\n z-index: 1;\n width: 100%;\n bottom: 0;\n right: 0;\n background: ",";\n border-top: 1px solid ",";\n "," border-radius: 5px;\n }\n "," {\n margin: ",";\n border-style: solid;\n & > div.ant-card-body {\n position: static;\n z-index: auto;\n width: auto;\n }\n }\n "],["\n border-style: none;\n\n & > div.ant-card-body {\n position: fixed;\n z-index: 1;\n width: 100%;\n bottom: 0;\n right: 0;\n background: ",";\n border-top: 1px solid ",";\n "," border-radius: 5px;\n }\n "," {\n margin: ",";\n border-style: solid;\n & > div.ant-card-body {\n position: static;\n z-index: auto;\n width: auto;\n }\n }\n "])),l.white,l.border,!o&&"display: none;",_e,c.desktop),h=le.div(kn||(kn=i.__makeTemplateObject(["\n min-height: calc(100vh - 100px);\n padding: ",";\n "," {\n padding: ",";\n min-height: unset;\n }\n "],["\n min-height: calc(100vh - 100px);\n padding: ",";\n "," {\n padding: ",";\n min-height: unset;\n }\n "])),c.mobile,_e,a.md),u=le.div(Sn||(Sn=i.__makeTemplateObject(["\n display: flex;\n justify-content: flex-start;\n align-items: center;\n\n & > .badge-icon {\n margin-right: ",";\n }\n "],["\n display: flex;\n justify-content: flex-start;\n align-items: center;\n\n & > .badge-icon {\n margin-right: ",";\n }\n "])),a.sm),p=le.div(En||(En=i.__makeTemplateObject(["\n display: flex;\n justify-content: flex-end;\n\n & > button[type='button'],\n button[type='submit'] {\n margin-left: ",";\n }\n\n & > button[type='button']:last-child,\n button[type='submit']:last-child {\n margin-right: ",";\n }\n "],["\n display: flex;\n justify-content: flex-end;\n\n & > button[type='button'],\n button[type='submit'] {\n margin-left: ",";\n }\n\n & > button[type='button']:last-child,\n button[type='submit']:last-child {\n margin-right: ",";\n }\n "])),a.sm,a.md);return s.default.createElement(d,{title:s.default.createElement(h,null,s.default.createElement(u,null,n),s.default.createElement(Hn,{spacing:"lg"}),s.default.createElement(Fn,null,e))},s.default.createElement(p,null,o))},exports.Alert=function(e){var i,o=e.type,r=e.message,a=e.closable,l=e.icon,c=e.showIcon,d=e.onClose,h=e.title,u=t.useState(!0),p=u[0],f=u[1];return p?s.default.createElement(xe,{type:o||"warning",message:s.default.createElement(function(){var t="info"===o?st.DEFAULT:nt.DEFAULT;return s.default.createElement(ve,null,h&&s.default.createElement(kt.Label,{color:t,size:"md"},h),s.default.createElement(kt.Body,{color:t,size:"md"},r))},null),closable:a,icon:(i=l?s.default.cloneElement(l,{width:20,height:20}):s.default.createElement(n.SvgBell,{width:20,height:20}),s.default.createElement(ye,null,i)),showIcon:c,onClose:function(){f(!1),d&&d()},closeIcon:s.default.createElement(function(){return s.default.createElement(n.SvgCross,{width:14,height:14})},null)}):null},exports.AntdConfigProvider=function(t){var n=t.children;return s.default.createElement(e.ConfigProvider,{theme:{token:{colorPrimary:"#1890ff",borderRadius:2},components:{Button:{borderRadius:2}}}},n)},exports.BadgeIcon=function(t){var e=t.icon,n=t.type,o=void 0===n?"default":n,r=t.iconWidth,a=void 0===r?18:r,l=i.__rest(t,["icon","type","iconWidth"]),c=Ke(),d=c.brand,h=c.neutral,u=c.success,p=c.warning,f=c.error,g="\n color: ".concat(h.text,";\n background: ").concat(h.background,";\n "),m="\n color: ".concat(d.primary.default,";\n background: ").concat(d.primary.background,";\n "),b="\n color: ".concat(u.border,";\n background: ").concat(u.background,";\n "),x="\n color: ".concat(p.border,";\n background: ").concat(p.background,";\n "),v="\n color: ".concat(f.border,";\n background: ").concat(f.background,";\n "),y=le.span(Rn||(Rn=i.__makeTemplateObject(["\n line-height: 0.75;\n padding: 10px;\n border-radius: 50%;\n display: flex;\n align-items: center;\n justify-content: center;\n ",";\n "],["\n line-height: 0.75;\n padding: 10px;\n border-radius: 50%;\n display: flex;\n align-items: center;\n justify-content: center;\n ",";\n "])),function(){switch(o){case"default":default:return g;case"primary":return m;case"success":return b;case"warning":return x;case"error":return v}}());return s.default.createElement(y,i.__assign({className:"badge-icon"},l),s.default.createElement(function(){return s.default.cloneElement(e,{width:a,height:a})},null))},exports.Banner=function(t){var e=t.withIcon,o=void 0!==e&&e,r=t.children,a=t.type,l=void 0===a?"primary":a,c=i.__rest(t,["withIcon","children","type"]),d=Ke(),h=d.brand,u=d.spacing,p="\n color: ".concat(He.color.base.primary,";\n background: ").concat(h.primary.background,";\n "),f="\n color: ".concat(He.color.status.positive,";\n background: ").concat(He.color.surface.subduePositive,";\n "),g="\n color: ".concat(He.color.status.warning,";\n background: ").concat(He.color.surface.subdueWarning,";\n "),m="\n color: ".concat(He.color.status.critical,";\n background: ").concat(He.color.surface.subdueCritical,";\n "),b="\n color: ".concat(He.color.base.onNeutral,"};\n background: ").concat(He.color.surface.SubdueInfo,";\n "),x=le.div(Ku||(Ku=i.__makeTemplateObject(["\n padding: ",";\n border-radius: 5px;\n display: flex;\n vertical-align: middle;\n "," ol {\n padding-left: 20px;\n margin: 0;\n\n > li {\n margin-bottom: 5px;\n }\n }\n "],["\n padding: ",";\n border-radius: 5px;\n display: flex;\n vertical-align: middle;\n "," ol {\n padding-left: 20px;\n margin: 0;\n\n > li {\n margin-bottom: 5px;\n }\n }\n "])),u.sm,function(){switch(l){case"primary":default:return p;case"success":return f;case"warning":return g;case"error":return m;case"notification":return b}}()),v=xt(Ju||(Ju=i.__makeTemplateObject(["\n display: block;\n margin: 1px 6px auto 0;\n "],["\n display: block;\n margin: 1px 6px auto 0;\n "])));return s.default.createElement(x,i.__assign({},c),o&&("primary"===l?s.default.createElement(n.SvgInfoFilled,{style:{minHeight:"18px",minWidth:"18px"},color:h.primary.emphasis,className:bt(v)}):"success"===l?s.default.createElement(n.SvgTick,{style:{minHeight:"18px",minWidth:"18px"},color:He.color.status.positive,className:bt(v)}):"warning"===l?s.default.createElement(n.SvgWarningFilled,{style:{minHeight:"18px",minWidth:"18px"},color:He.color.status.warning,className:bt(v)}):"error"===l?s.default.createElement(n.SvgCrossMini,{style:{minHeight:"18px",minWidth:"18px"},color:He.color.status.critical,className:bt(v)}):"notification"===l?s.default.createElement(n.SvgInfoFilled,{style:{minHeight:"18px",minWidth:"18px"},color:He.color.status.info,className:bt(v)}):s.default.createElement(s.default.Fragment,null)),s.default.createElement(kt.Body,{size:"md"},r))},exports.Button=ln,exports.Card=Ln,exports.Carousel=function(t){var n=t.children,o=t.activeKey,r=t.width,a=void 0===r?250:r,l=i.__rest(t,["children","activeKey","width"]),c=Ke().brand,d=n.map(function(t,n){return s.default.createElement(e.Tabs.TabPane,{key:n,forceRender:!0},t)}),h=n.map(function(t,e){return s.default.createElement(hd,{key:e,isActive:e===o,activeColor:c.primary.default})});return s.default.createElement(ld,null,s.default.createElement(cd,i.__assign({renderTabBar:function(){return s.default.createElement("div",null)},width:a,activeKey:o.toString(),animated:!0},l),d),s.default.createElement(dd,null,h))},exports.Chart=function(e){var n=e.xValues,o=e.yValues,r=e.dataPrefix,a=e.dataPostfix,l=e.straitsXStyle,c=e.height,d=void 0===c?40:c,h=t.useRef(null),u=t.useState({datasets:[]}),p=u[0],f=u[1],g={labels:n,datasets:[{data:o}]},m=r||"",b=a||"";t.useEffect(function(){var t=h.current;if(t){var e=t.ctx,n=e.createLinearGradient(0,0,0,280);n.addColorStop(.3,"rgba(47, 141, 238, 0.08)"),n.addColorStop(.6,"rgba(47, 141, 238, 0.0002)"),n.addColorStop(1,"rgba(47, 141, 238, 0");var o=e.createLinearGradient(0,0,0,280);o.addColorStop(0,"rgba(0, 211, 126, 0.2)"),o.addColorStop(.1,"rgba(0, 211, 126, 0.1)"),o.addColorStop(1,"rgba(0, 211, 126, 0)");var r=i.__assign(i.__assign({},g),{datasets:g.datasets.map(function(t){return i.__assign(i.__assign({},t),{backgroundColor:l?o:n,fill:!0,borderColor:l?"#00D37E":"#2E8DEE",pointRadius:0})})});f(r)}},[l,n,o]);var x={maintainAspectRatio:!1,plugins:{legend:{display:!1,labels:{font:{family:"'Inter', 'Arial', sans-serif"}}},tooltip:{intersect:!1,padding:15,displayColors:!1,borderColor:"rgba(0, 211, 126, 1)",borderWidth:l?1:0,backgroundColor:l?"#ffffff":"#000000",titleColor:l?"#1B2736":"#fff",bodyColor:l?"#1B2736":"#fff",titleAlign:"center",bodyAlign:"center",titleFont:{size:14},bodyFont:{size:14},callbacks:{title:function(t){return l?"".concat(m).concat(t[0].parsed.y).concat(b):t[0].label},label:function(t){return l?t.label:"".concat(m).concat(t.parsed.y).concat(b)}}}},scales:{x:{ticks:{color:l?"#1B2736":"rgba(0, 0, 0, 0.4)",font:{weight:"500",size:13}},grid:{display:!1}},y:{ticks:{beginAtZero:!0,padding:18,maxTicksLimit:3,color:l?"#1B2736":"rgba(0, 0, 0, 0.4)",callback:function(t){return"".concat(m).concat(t).concat(b)}},grid:{display:!1,drawBorder:!1}}}};return s.default.createElement("div",{style:{position:"relative",height:"".concat(d,"vh"),width:"99%"}},s.default.createElement(nd,{id:"chart",ref:h,type:"line",data:p,options:x}))},exports.Checkbox=lp,exports.Coachmark=function(t){var e=t.index,n=t.primaryProps,i=t.size,o=t.skipProps,r=t.step,a=t.tooltipProps,l=t.backProps,c=r.title,d=r.content,h=r.data;return s.default.createElement(Xp,{role:a.role},s.default.createElement(qp,null,s.default.createElement(Zp,null,s.default.createElement(kt.Label,{size:"md"},c),s.default.createElement(Kp,{role:o.role,onClick:o.onClick},s.default.createElement(Od,{icon:"close",size:"m"}))),s.default.createElement(kt.Body,{size:"md"},d)),s.default.createElement(Jp,null,s.default.createElement(Qp,null,Array.from({length:i},function(t,n){return 0===e&&!0===(null==h?void 0:h.skipZeroIndex)?s.default.createElement(s.default.Fragment,null):s.default.createElement(tf,{key:n,isActive:n===e})})),s.default.createElement(nf,null,l&&s.default.createElement(ef,{typographyType:"label",size:"md",role:null==l?void 0:l.role,isDisabled:0===e,onClick:l.onClick,isUnderlined:!1},"Back"),s.default.createElement(pp,{typographyType:"label",size:"md",role:n.role,onClick:n.onClick,isUnderlined:!1},"Next"))))},exports.ContentBreakdown=function(t){var e=t.title,n=t.children,o=Ke(),r=o.spacing,a=o.neutral,l=le.div(Xu||(Xu=i.__makeTemplateObject(["\n margin-top: ",";\n padding: ",";\n background: ",";\n\n & > ul {\n margin: 0;\n padding: 0;\n list-style-position: inside;\n }\n "],["\n margin-top: ",";\n padding: ",";\n background: ",";\n\n & > ul {\n margin: 0;\n padding: 0;\n list-style-position: inside;\n }\n "])),r.sm,r.md,a.background);return s.default.createElement(l,null,s.default.createElement(zn,{style:{marginBottom:r.sm}},e),n)},exports.CopyBox=function(t){var e=t.value,i=t.allowCopy,o=void 0===i||i,r=t.valueToCopy,a=void 0===r?e:r,l=t.isBankAddress,c=void 0!==l&&l,d=t.showCopyIcon,h=void 0===d||d,u=t.icon,p=t.iconSize,f=t.labelText,g=t.labelTooltip,m=t.helperText,b=t.helperTextType,x=t.onButtonClick;return s.default.createElement(Cp,null,s.default.createElement(Ap,null,f&&s.default.createElement(kt.Body,{size:"md",color:He.color.base.onNeutral},f),g&&s.default.createElement(Rp,null,g)),s.default.createElement(Pp,null,s.default.createElement(Ip,null,u&&s.default.createElement(Lp,{iconSize:p},u),s.default.createElement(kt.Body,{size:"lg"},s.default.createElement(Np,{isBankAddress:c},e))),o&&s.default.createElement(Fp,{onClick:function(){void 0!==x&&x(),Dp(a)}},h?s.default.createElement(n.SvgCopyToClipboard,null):s.default.createElement(kt.Label,{size:"md",color:He.brand.primary.default},"Copy"))),m&&s.default.createElement(kt.Body,{size:"sm",color:"error"===b?He.color.status.critical:He.color.base.onNeutralSecondary},m))},exports.DESKTOP_BREAKPOINT=_e,exports.DatePicker=function(t){var n=t.disabled,o=void 0!==n&&n,r=t.label,a=t.required,l=void 0!==a&&a,c=t.optional,d=void 0!==c&&c,h=t.size,u=void 0===h?"large":h,p=t.error,f=void 0!==p&&p,g=t.helperText,m=t.showInfoIcon,b=t.onInfoClick,x=i.__rest(t,["disabled","label","required","optional","size","error","helperText","showInfoIcon","onInfoClick"]),v=Ke(),y=dn[u],_=y.height,w=y.borderRadius,k=y.padding,S=f?v.color.status.critical:v.color.base.line,E="\n -webkit-font-smoothing: antialiased;\n height: ".concat(_," !important;\n width: 100% !important;\n\n ").concat(o?"\n pointer-events: none !important;\n ":"","\n\n &.ant-picker {\n border-radius: ").concat(w," !important;\n border-color: ").concat(S," !important;\n padding: ").concat(k," !important;\n transition: 0.3s all ease !important;\n\n &:hover {\n border-color: ").concat(v.color.base.primary2," !important;\n }\n\n &.ant-picker-focused {\n border-color: ").concat(v.color.base.primary2," !important;\n box-shadow: none !important;\n -webkit-box-shadow: none !important;\n }\n }\n\n &.ant-picker > .ant-picker-input {\n font-family: ").concat(cn," !important;\n font-style: normal !important;\n font-weight: normal !important;\n font-size: 14px !important;\n line-height: 22px !important;\n color: ").concat(v.color.base.onNeutral," !important;\n }\n\n & .ant-picker-input > input {\n font-size: 14px !important;\n color: ").concat(v.color.base.onNeutral," !important;\n }\n\n & .ant-picker-input > input::placeholder {\n font-size: 14px !important;\n color: ").concat(v.color.component.placeholderInput," !important;\n }\n\n &.ant-picker.ant-picker-disabled {\n background: ").concat(v.color.surface.disabledSurface," !important;\n border: 1px solid ").concat(v.color.base.line," !important;\n }\n\n & .ant-picker-input > input[disabled] {\n color: ").concat(v.color.base.onNeutral," !important;\n -webkit-text-fill-color: ").concat(v.color.base.onNeutral," !important;\n }\n\n & .ant-picker-cell-in-view {\n &.ant-picker-cell-today .ant-picker-cell-inner {\n &:before {\n border-color: ").concat(v.color.base.primary2," !important;\n }\n }\n\n &ant-picker-cell-range-end .ant-picker-cell-inner,\n &ant-picker-cell-range-start .ant-picker-cell-inner,\n &ant-picker-cell-selected .ant-picker-cell-inner {\n background: ").concat(v.color.base.primary2," !important;\n }\n }\n "),O="\n .ant-picker-cell-in-view.ant-picker-cell-selected .ant-picker-cell-inner {\n background-color: ".concat(v.color.base.primary2," !important;\n }\n "),T=s.default.createElement(Od,{icon:"date_range",size:"m",color:v.color.base.onNeutral});return s.default.createElement("div",null,s.default.createElement(_h,{label:r,required:l,optional:d,showInfoIcon:m,onInfoClick:b}),s.default.createElement(e.DatePicker,i.__assign({className:"".concat(xt(E)),popupClassName:xt(O),disabled:o,suffixIcon:T,format:"DD-MM-YYYY"},x)),s.default.createElement(yh,{text:g,error:f}))},exports.DeprecatedModal=function(e){var o=Ke().neutral,r=t.useState(document.createElement("div"))[0];return t.useEffect(function(){return lu.appendChild(r),function(){lu.removeChild(r)}},[r]),l.default.createPortal(s.default.createElement(du,{open:e.open},e.open&&s.default.createElement(Yt,{styles:Bt(Nh||(Nh=i.__makeTemplateObject(["\n body {\n overflow: hidden;\n position: fixed;\n }\n "],["\n body {\n overflow: hidden;\n position: fixed;\n }\n "])))}),s.default.createElement("div",{className:"".concat(xt(Fh||(Fh=i.__makeTemplateObject(["\n width: calc(100% - 32px);\n max-width: 400px;\n background: white;\n box-shadow: 0px 4px 10px rgba(170, 170, 170, 0.25);\n border-radius: 5px;\n overflow: hidden;\n -webkit-font-smoothing: antialiased;\n margin-bottom: 1.7vh;\n position: absolute;\n top: 6.8vh;\n left: 50%;\n transform: translateX(-50%);\n "],["\n width: calc(100% - 32px);\n max-width: 400px;\n background: white;\n box-shadow: 0px 4px 10px rgba(170, 170, 170, 0.25);\n border-radius: 5px;\n overflow: hidden;\n -webkit-font-smoothing: antialiased;\n margin-bottom: 1.7vh;\n position: absolute;\n top: 6.8vh;\n left: 50%;\n transform: translateX(-50%);\n "])))," ").concat(e.modalClassName)},s.default.createElement(hu,{hasIcon:Boolean(e.icon)},s.default.createElement(fu,null,s.default.createElement(gu,null,e.icon,s.default.createElement(In,null,e.title)),!e.disabledCloseIcon&&s.default.createElement(mu,{onClick:function(){return e.onClose()}},s.default.createElement(n.SvgCross,{color:o.text,width:18}))),s.default.createElement(Hn,null)),s.default.createElement(uu,null,e.children),s.default.createElement(pu,null,e.footer))),r)},exports.Divider=Hn,exports.Dropdown=function(n){var o=n.menu,r=n.children,a=n.type,l=void 0===a?"default":a,c=n.placement,d=void 0===c?"bottomLeft":c,h=n.className,u=void 0===h?"":h,p=n.trigger,f=void 0===p?["click"]:p,g=n.disabled,m=void 0!==g&&g,b=i.__rest(n,["menu","children","type","placement","className","trigger","disabled"]),x=Ke(),v=x.brand,y=x.spacing,_="\n background-color: ".concat(v.action.default,";\n color: ").concat(v.primary.contrast,";\n border: 1px solid ").concat(v.primary.contrast,";\n\n &:focus {\n background-color: ").concat(v.action.default,";\n color: ").concat(v.primary.contrast,";\n border: 1px solid ").concat(v.primary.contrast,";\n }\n\n &:active {\n background-color: ").concat(v.action.default,";\n color: ").concat(v.primary.contrast,";\n border: 1px solid ").concat(v.primary.contrast,";\n }\n\n &:hover {\n background-color: ").concat(v.action.hover,";\n color: ").concat(v.primary.contrast,";\n border: 1px solid ").concat(v.primary.contrast,";\n }\n "),w="\n cursor: auto;\n pointer-events: none;\n opacity: ".concat(v.action.disabledOpacity,";\n "),k=le(e.Dropdown.Button)(sd||(sd=i.__makeTemplateObject(["\n &.ant-btn-group > .ant-btn:first-child:not(:last-child) {\n text-shadow: none;\n -webkit-font-smoothing: antialiased;\n border-top-left-radius: 5px;\n border-bottom-left-radius: 5px;\n height: unset;\n box-shadow: none;\n line-height: 0.75;\n ",";\n ",";\n ",";\n ","\n padding: ",";\n }\n\n &.ant-btn-group > .ant-btn:last-child:not(:first-child) {\n text-shadow: none;\n -webkit-font-smoothing: antialiased;\n border-top-right-radius: 5px;\n border-bottom-right-radius: 5px;\n height: 44px;\n min-width: 45px;\n line-height: 0.75;\n box-shadow: none;\n ",";\n ",";\n ",";\n ","\n padding: ",";\n }\n "],["\n &.ant-btn-group > .ant-btn:first-child:not(:last-child) {\n text-shadow: none;\n -webkit-font-smoothing: antialiased;\n border-top-left-radius: 5px;\n border-bottom-left-radius: 5px;\n height: unset;\n box-shadow: none;\n line-height: 0.75;\n ",";\n ",";\n ",";\n ","\n padding: ",";\n }\n\n &.ant-btn-group > .ant-btn:last-child:not(:first-child) {\n text-shadow: none;\n -webkit-font-smoothing: antialiased;\n border-top-right-radius: 5px;\n border-bottom-right-radius: 5px;\n height: 44px;\n min-width: 45px;\n line-height: 0.75;\n box-shadow: none;\n ",";\n ",";\n ",";\n ","\n padding: ",";\n }\n "])),Ee,Ae,_,!0===m&&w,y.md,Ee,Ae,_,!0===m&&w,y.sm);if("split"===l)return s.default.createElement(k,i.__assign({className:u,menu:o,placement:d,trigger:f},b),r);var S=t.useRef(null);return t.useEffect(function(){var t=function(t){t.cancelable&&t.preventDefault()},e=S.current;return e&&e.addEventListener("touchmove",t,{passive:!0}),function(){e&&e.removeEventListener("touchmove",t)}},[]),s.default.createElement(e.Dropdown,i.__assign({menu:o,placement:d,trigger:f},b),s.default.createElement("div",{ref:S},r))},exports.DynamicSelect=ch,exports.EXTRA_LARGE_DESKTOP_BREAKPOINT="@media (min-width: 1200px)",exports.EmptyData=function(t){var i=t.title,o=void 0===i?"No results found":i,r=t.subtitle,a=t.info,l=t.svgUniqueId,c=void 0===l?"randomString":l;return s.default.createElement(cp,null,s.default.createElement(e.Empty,{image:s.default.createElement(n.SvgEmptyIcon,{id:c,height:80,width:130}),imageStyle:{marginBottom:10,display:"block",margin:"auto"},description:!1}),o&&s.default.createElement(dp,null,o),r&&s.default.createElement(hp,null,r),a&&s.default.createElement(up,null,a))},exports.ErrorPage=function(t){var e=t.title,n=t.subtitle,o=t.content,r=t.fallbackContent,a=t.backgroundColor,l=Ke(),c=l.neutral,d=l.text,h=le.div(kp||(kp=i.__makeTemplateObject(["\n font-family: ",";\n font-weight: 800;\n color: ",";\n font-size: 100px;\n margin-bottom: 20px;\n "],["\n font-family: ",";\n font-weight: 800;\n color: ",";\n font-size: 100px;\n margin-bottom: 20px;\n "])),we,c.bluish),u=le.div(Sp||(Sp=i.__makeTemplateObject(["\n font-family: ",";\n display: flex;\n flex-direction: column;\n align-items: center;\n padding-top: 60px;\n "," {\n background-color: ",";\n }\n "],["\n font-family: ",";\n display: flex;\n flex-direction: column;\n align-items: center;\n padding-top: 60px;\n "," {\n background-color: ",";\n }\n "])),we,_e,function(t){return t.backgroundColor||c.background}),p=le.div(Ep||(Ep=i.__makeTemplateObject(["\n font-family: ",";\n font-style: normal;\n text-align: center;\n color: ",";\n margin-bottom: 5px;\n word-break: break-word;\n ",";\n "],["\n font-family: ",";\n font-style: normal;\n text-align: center;\n color: ",";\n margin-bottom: 5px;\n word-break: break-word;\n ",";\n "])),we,d.default,Oe),f=le.div(Op||(Op=i.__makeTemplateObject(["\n text-align: center;\n color: ",";\n flex: none;\n order: 0;\n align-self: center;\n margin-bottom: 20px;\n ",";\n "],["\n text-align: center;\n color: ",";\n flex: none;\n order: 0;\n align-self: center;\n margin-bottom: 20px;\n ",";\n "])),d.default,De);return s.default.createElement(u,{backgroundColor:a},s.default.createElement(h,null,e),s.default.createElement(p,null,n),s.default.createElement(f,null,o),r)},exports.FALLBACK_FONT="Inter",exports.Form=xh,exports.H1=Pn,exports.H2=In,exports.H3=Nn,exports.H4=jn,exports.Hidden=Lu,exports.Input=Sh,exports.InputWithButton=function(t){var e=t.buttonText,n=t.onButtonClick,i=t.prefix,o=t.placeholder,r=t.value,a=t.defaultValue,l=t.onChange,c=t.disabled,d=void 0!==c&&c,h=t.disabledInput,u=void 0!==h&&h,p=t.disabledPrefix,f=void 0!==p&&p,g=t.staticPrefix,m=void 0!==g&&g,b=t.error,x=void 0!==b&&b,v=t.className,y=Ke(),_=d||u,w=d||f,k=x?y.color.status.critical:y.color.base.line,S=y.color.base.line;return s.default.createElement(Kh,{className:v},i&&s.default.createElement(Jh,{borderColor:S,bgColor:w?y.color.surface.disabledSurface:m?y.color.surface.secondaryNeutral:y.color.surface.neutral,hoverBgColor:w?y.color.surface.disabledSurface:y.color.interactive.hoverSurface,textColor:w?y.color.surface.disabledOnSurface:y.color.base.onNeutral,isDisabled:w},i),s.default.createElement(Qh,{type:"text",placeholder:o,value:r,defaultValue:a,onChange:l,disabled:_,borderColor:k,focusBorderColor:y.color.base.primary2,textColor:y.color.base.onNeutral,placeholderColor:y.color.component.placeholderInput,disabledBgColor:y.color.surface.disabledSurface,disabledTextColor:y.color.surface.disabledOnSurface,hasPrefix:!!i,isDisabled:_}),s.default.createElement(tu,{type:"button",onClick:n,disabled:d||x,bgColor:y.color.base.primary,disabledBgColor:y.color.surface.disabledSurface,textColor:y.color.base.onNeutral,disabledTextColor:y.color.surface.disabledOnSurface,isDisabled:d||x},e))},exports.LAPTOP_BREAKPOINT="@media (min-width: 768px)",exports.Link=pp,exports.MAIN_FONT=cn,exports.MaterialSymbols=Od,exports.Modal=function(t){var e=t.onClose,i=t.icon,o=t.title,r=t.children,a=t.footer,l=t.disabledCloseIcon,c=t.className,d=Ke().neutral;return s.default.createElement(su,{className:c},(i||o||!l)&&s.default.createElement(eu,{hasIcon:Boolean(i)},s.default.createElement(ou,null,s.default.createElement(ru,null,i,s.default.createElement(In,null,o||"")),!l&&s.default.createElement(au,{onClick:function(){return e()}},s.default.createElement(n.SvgCross,{color:d.text,width:18}))),s.default.createElement(Hn,null)),s.default.createElement(nu,null,r),a&&s.default.createElement(iu,null,a))},exports.ModalProvider=function(e){var n=e.children,i=t.useState(),o=i[0],r=i[1],a=t.useCallback(function(){r(void 0)},[r]);return s.default.createElement(lf.Provider,{value:{resetModal:a,setModal:r}},n,s.default.createElement(df,{modal:o}))},exports.Note=function(t){var e=t.title,n=t.children,o=Array.isArray(n)&&n.length>1,r=le.div(qu||(qu=i.__makeTemplateObject(["\n width: 100%;\n background: ",";\n padding: 4px;\n border-radius: 8px;\n "],["\n width: 100%;\n background: ",";\n padding: 4px;\n border-radius: 8px;\n "])),He.color.surface.subduePositive),a=le.div(Zu||(Zu=i.__makeTemplateObject(["\n position: relative;\n ::before {\n content: '';\n height: 100%;\n width: 5px;\n background: ",";\n border-radius: 5px;\n position: absolute;\n left: 0;\n }\n display: flex;\n flex-direction: column;\n justify-content: center;\n padding: 5px 0 5px 15px;\n gap: ",";\n "],["\n position: relative;\n ::before {\n content: '';\n height: 100%;\n width: 5px;\n background: ",";\n border-radius: 5px;\n position: absolute;\n left: 0;\n }\n display: flex;\n flex-direction: column;\n justify-content: center;\n padding: 5px 0 5px 15px;\n gap: ",";\n "])),He.color.status.positive,e?"5px":"0px");return s.default.createElement(r,null,s.default.createElement(a,null,s.default.createElement(kt.Label,{size:"md"},e),o?s.default.createElement(kt.Body,{size:"md",style:{scrollbarWidth:"none"}},s.default.createElement("ol",{style:{margin:0,paddingLeft:"20px"}},n.map(function(t,e){return s.default.createElement("li",{key:e},t)}))):s.default.createElement(kt.Body,{size:"md",style:{scrollbarWidth:"none"}},n)))},exports.P1=Fn,exports.P1Bold=zn,exports.Pagination=function(t){var n=t.current,i=t.pageSize,o=t.total,r=t.onChange,a=t.showSizeChanger,l=t.onShowSizeChange,c=t.pageSizeOptions,d="\n -webkit-font-smoothing: antialiased;\n\n & > .ant-pagination-prev {\n height: 36px;\n line-height: 36px;\n min-width: 36px;\n margin-right: 5px;\n }\n\n & > .ant-pagination-prev .ant-pagination-item-link {\n border-radius: 5px;\n border: 1px solid ".concat(exports.NEUTRAL_COLORS.G200,";\n }\n\n & > .ant-pagination-item {\n height: 36px;\n line-height: 36px;\n min-width: 36px;\n font-family: ").concat(cn,";\n border-radius: 5px;\n border: 1px solid ").concat(exports.NEUTRAL_COLORS.G200,";\n margin-right: 5px;\n transition: 0.3s all;\n }\n\n & > .ant-pagination-item-active {\n border-color: ").concat(exports.MAIN_COLORS.PRIMARY_BLUE,";\n }\n\n & > .ant-pagination-next {\n height: 36px;\n line-height: 36px;\n min-width: 36px;\n margin-right: 5px;\n }\n\n & > .ant-pagination-next .ant-pagination-item-link {\n border-radius: 5px;\n }\n ");return s.default.createElement(e.Pagination,{className:"".concat(xt(d)),current:n,pageSize:i,total:o,onChange:r,showSizeChanger:a,onShowSizeChange:l,pageSizeOptions:c})},exports.Radio=xu,exports.RangePicker=function(t){var e=t.format,n=void 0===e?"DD-MM-YYYY":e,o=t.size,r=void 0===o?"large":o,a=i.__rest(t,["format","size"]),l=Ke(),c=dn[r],d=c.height,h=c.borderRadius,u=c.padding,p="\n -webkit-font-smoothing: antialiased;\n height: ".concat(d," !important;\n\n &.ant-picker {\n border-radius: ").concat(h," !important;\n border-color: ").concat(l.color.base.line," !important;\n padding: ").concat(u," !important;\n transition: 0.3s all ease !important;\n\n &:hover {\n border-color: ").concat(l.color.base.primary2," !important;\n }\n\n &.ant-picker-focused {\n border-color: ").concat(l.color.base.primary2," !important;\n box-shadow: none !important;\n -webkit-box-shadow: none !important;\n }\n\n .ant-picker-active-bar {\n background: ").concat(l.color.base.primary2," !important;\n }\n }\n\n\n &.ant-picker > .ant-picker-input {\n font-family: ").concat(cn," !important;\n font-style: normal !important;\n font-weight: normal !important;\n font-size: 14px !important;\n line-height: 22px !important;\n color: ").concat(l.color.base.onNeutral," !important;\n }\n\n & .ant-picker-input > input {\n color: ").concat(l.color.base.onNeutral," !important;\n }\n\n & .ant-picker-input > input::placeholder {\n color: ").concat(l.color.component.placeholderInput," !important;\n }\n "),f="\n .ant-picker-cell.ant-picker-cell-in-view.ant-picker-cell-range-end > .ant-picker-cell-inner {\n background-color: ".concat(l.color.base.primary2," !important;\n }\n\n .ant-picker-cell.ant-picker-cell-in-view.ant-picker-cell-range-start > .ant-picker-cell-inner {\n background-color: ").concat(l.color.base.primary2," !important;\n }\n\n .ant-picker-cell.ant-picker-cell-in-view {\n &.ant-picker-cell-in-range::before {\n background-color: ").concat(l.color.interactive.selected," !important;\n }\n\n &.ant-picker-cell-range-end::before {\n background-color: ").concat(l.color.interactive.selected," !important;\n }\n\n &.ant-picker-cell-range-start::before {\n background-color: ").concat(l.color.interactive.selected," !important;\n }\n }\n ");return s.default.createElement(Cu.RangePicker,i.__assign({className:"".concat(xt(p)),format:n,popupClassName:xt(f)},a))},exports.Section=fp,exports.Select=sh,exports.SmallP=Bn,exports.Spin=function(t){var n=t.size,o=i.__rest(t,["size"]),r=Ke().brand,a=xt(Tp||(Tp=i.__makeTemplateObject(["\n & .ant-spin-dot-item {\n background-color: ",";\n }\n "],["\n & .ant-spin-dot-item {\n background-color: ",";\n }\n "])),r.primary.default);return s.default.createElement(e.Spin,i.__assign({className:bt(a),size:n},o))},exports.Steps=function(e){var n=e.current,o=e.steps,r=e.desktopNote,a=t.useRef(null),l=Ke(),c=l.brand,d=l.success,h=l.neutral;t.useEffect(function(){var t=a.current;null!==t&&(t.scrollLeft=120*n)},[n]);var u=le.div(Iu||(Iu=i.__makeTemplateObject(["\n height: 58px;\n padding-left: 16px;\n border-bottom: 1px solid ",";\n max-width: 100vw;\n display: flex;\n align-items: center;\n overflow: auto;\n background: ",";\n\n &::-webkit-scrollbar {\n display: none;\n }\n "],["\n height: 58px;\n padding-left: 16px;\n border-bottom: 1px solid ",";\n max-width: 100vw;\n display: flex;\n align-items: center;\n overflow: auto;\n background: ",";\n\n &::-webkit-scrollbar {\n display: none;\n }\n "])),h.border,h.background),p=le.div(Nu||(Nu=i.__makeTemplateObject(["\n width: 9px;\n height: 9px;\n border-radius: 50%;\n margin-right: 10px;\n background: ",";\n display: inline-block;\n\n ",";\n "],["\n width: 9px;\n height: 9px;\n border-radius: 50%;\n margin-right: 10px;\n background: ",";\n display: inline-block;\n\n ",";\n "])),h.emphasis,function(t){return t.current===t.index?"\n background: ".concat(c.primary.default,";\n "):t.current>t.index?"\n background: ".concat(d.emphasis,";\n "):""}),f=le.div(Fu||(Fu=i.__makeTemplateObject(["\n width: 20px;\n margin-left: 10px;\n margin-right: 10px;\n height: 1px;\n background: ",";\n display: inline-block;\n margin-bottom: 4px;\n "],["\n width: 20px;\n margin-left: 10px;\n margin-right: 10px;\n height: 1px;\n background: ",";\n display: inline-block;\n margin-bottom: 4px;\n "])),h.emphasis),g=le.div(zu||(zu=i.__makeTemplateObject(["\n padding-right: 16px;\n width: 1px;\n white-space: nowrap;\n "],["\n padding-right: 16px;\n width: 1px;\n white-space: nowrap;\n "]))),m=le(Fn)(Bu||(Bu=i.__makeTemplateObject(["\n color: #1b2736;\n display: inline-flex;\n align-items: center;\n white-space: nowrap;\n\n "," &:last-child {\n padding-right: 16px;\n }\n\n ",";\n "],["\n color: #1b2736;\n display: inline-flex;\n align-items: center;\n white-space: nowrap;\n\n "," &:last-child {\n padding-right: 16px;\n }\n\n ",";\n "])),function(t){return t.inactive&&"\n color: #777777;\n "},function(t){return t.current&&"\n font-weight: bold;\n "});return s.default.createElement(s.default.Fragment,null,s.default.createElement(Lu,{only:"sm"},s.default.createElement("div",{style:{padding:"30px",width:"266px"}},s.default.createElement(Pu,{progressDot:!0,current:n,direction:"vertical",style:{marginBottom:"34px"}},o.map(function(t,e){return s.default.createElement(Pu.Step,{key:"desktop-".concat(t,"-").concat(e),title:t})})),r)),s.default.createElement(Lu,{only:"lg",ref:a},s.default.createElement(u,null,s.default.createElement(g,null,o.map(function(t,e){return s.default.createElement("span",{key:"mobile-".concat(t,"-").concat(e)},s.default.createElement(m,{inactive:n<e,current:n===e},s.default.createElement(p,{index:e,current:n}),t),e!==o.length-1&&s.default.createElement(f,null))})))))},exports.SummaryCard=function(t){var e=t.label,n=t.amount,o=t.type,r=void 0===o?"default":o,a=t.height,l=void 0===a?91:a,c=t.width,d=void 0===c?230:c,h=t.isInverted,u=void 0!==h&&h,p=t.icon,f=le(Ln)(Mp||(Mp=i.__makeTemplateObject(["\n width: ",";\n min-height: ","px;\n padding: 3px !important;\n border-radius: 5px !important;\n\n "," ",";\n "],["\n width: ",";\n min-height: ","px;\n padding: 3px !important;\n border-radius: 5px !important;\n\n "," ",";\n "])),"number"==typeof d?"".concat(d,"px"):d,l,p&&"\n & > .ant-card-body {\n display: flex !important;\n flex-direction: row !important;\n align-items: center !important;\n }\n ",u&&"\n & > .ant-card-body > div {\n display: flex !important;\n flex-direction: column-reverse !important;\n }\n ");return s.default.createElement(f,{type:r},p&&p,s.default.createElement("div",null,s.default.createElement(Fn,{style:{marginBottom:u?"0":"5px"}},e),s.default.createElement(Pn,{style:{marginBottom:u?"5px":"0"}},n)))},exports.TABLET_BREAKPOINT="@media (min-width: 576px)",exports.Table=function(t){var n=t.className,o=t.emptyText,r=i.__rest(t,["className","emptyText"]);return s.default.createElement(e.Table,i.__assign({className:bt(Yu,n),locale:{emptyText:o}},r))},exports.Tabs=Hu,exports.Tag=Ld,exports.ThemeProvider=function(t){var e=t.theme,n=void 0===e?He:e,i=t.children;return s.default.createElement(Ze.Provider,{value:n},s.default.createElement(qe,null),i)},exports.Timeline=zp,exports.Timer=function(e){var n=e.initialSeconds,i=e.blinkActivationSeconds,o=e.shouldRepeat,r=e.onTimesUp,a=e.children,s=t.useState(!1),l=s[0],c=s[1],d=t.useState(n),h=d[0],u=d[1],p=t.useState(void 0),f=p[0],g=p[1],m=t.useState(!0),b=m[0],x=m[1],v=Date.now()+1e3*h;return t.useEffect(function(){b&&(g(setInterval(function(){var t=(new Date).getTime(),e=v-t,n=Math.ceil(e/1e3);n>=0&&u(n),i&&n<=i&&c(!0)},1e3)),x(!1))},[b]),t.useEffect(function(){h<=0&&void 0!==f&&(clearInterval(f),g(void 0),c(!1),r&&r(),o&&(u(n),x(!0)))},[f,h]),a(l,h)},exports.Tooltip=ud,exports.Typography=kt,exports.getCoachmarkJoyrideConfig=function(t){var e=t||{},n=e.arrowColor,i=void 0===n?He.color.surface.secondaryNeutral:n,o=e.arrowLength,r=void 0===o?8:o,a=e.arrowSpread;return{floaterProps:{styles:{arrow:{length:r,spread:void 0===a?16:a,color:i}}}}},exports.straitsXTheme=He,exports.useModal=function(){var t=s.default.useContext(lf);if(void 0===t)throw new Error("useModal must be used within a UserProvider");return t},exports.useTheme=Ke,exports.xfersTheme=Ye;
38
22
  //# sourceMappingURL=index.js.map