@xfers/design-system 5.0.0-dev.6d501f8a49 → 5.0.0-dev.8da41ea20c
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/StraitsXDecoVertical-70fd7a91.js +2 -0
- package/cjs/StraitsXDecoVertical-70fd7a91.js.map +1 -0
- package/cjs/StraitsXPersonalAccountLightLogo-44c49e48.js +2 -0
- package/cjs/StraitsXPersonalAccountLightLogo-44c49e48.js.map +1 -0
- package/cjs/icons.js +1 -1
- package/cjs/icons.js.map +1 -1
- package/cjs/index.js +4 -20
- package/cjs/index.js.map +1 -1
- package/cjs/logos.js +1 -1
- package/dist/components/DatePicker/index.js +2 -2
- package/dist/components/DatePicker/index.js.map +1 -1
- package/dist/components/Form/index.js +1 -1
- package/dist/components/Form/index.js.map +1 -1
- package/dist/components/Input/index.js +0 -1
- package/dist/components/Input/index.js.map +1 -1
- package/dist/components/Input/inputStyles.js +2 -2
- package/dist/components/Input/inputStyles.js.map +1 -1
- package/dist/components/Modal/DialogItems.js +41 -0
- package/dist/components/Modal/DialogItems.js.map +1 -0
- package/dist/components/Modal/index.js +29 -32
- package/dist/components/Modal/index.js.map +1 -1
- package/dist/components/Modal/styles.js +42 -0
- package/dist/components/Modal/styles.js.map +1 -0
- package/dist/components/RangePicker/index.js +2 -2
- package/dist/components/RangePicker/index.js.map +1 -1
- package/dist/components/Select/helpers.js +2 -2
- package/dist/components/Select/helpers.js.map +1 -1
- package/dist/components/Select/index.js +1 -1
- package/dist/components/Select/index.js.map +1 -1
- package/dist/components/Select/style.js +10 -6
- package/dist/components/Select/style.js.map +1 -1
- package/dist/icons/Coins.js +23 -0
- package/dist/icons/Coins.js.map +1 -0
- package/dist/icons/StraitsXDecoVertical.js +25 -0
- package/dist/icons/StraitsXDecoVertical.js.map +1 -0
- package/dist/icons/SwitchAccount.js +20 -0
- package/dist/icons/SwitchAccount.js.map +1 -0
- package/dist/icons/index.js +8 -2
- package/dist/icons/index.js.map +1 -1
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/logos/Base.js +5 -2
- package/dist/logos/Base.js.map +1 -1
- package/dist/shared/modalContext.js +2 -2
- package/dist/shared/modalContext.js.map +1 -1
- package/dist/shared/momentDatePicker.js +9 -0
- package/dist/shared/momentDatePicker.js.map +1 -0
- package/dist/types/components/Modal/DialogItems.d.ts +13 -0
- package/dist/types/components/Modal/index.d.ts +9 -2
- package/dist/types/components/Modal/styles.d.ts +17 -0
- package/dist/types/components/RangePicker/index.d.ts +2 -1
- package/dist/types/components/Select/style.d.ts +1 -0
- package/dist/types/icons/Coins.d.ts +3 -0
- package/dist/types/icons/StraitsXDecoVertical.d.ts +3 -0
- package/dist/types/icons/SwitchAccount.d.ts +3 -0
- package/dist/types/icons/index.d.ts +3 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/shared/momentDatePicker.d.ts +34 -0
- package/es/StraitsXDecoVertical-0243d5ce.js +2 -0
- package/es/StraitsXDecoVertical-0243d5ce.js.map +1 -0
- package/es/{StraitsXPersonalAccountLightLogo-2319d5c0.js → StraitsXPersonalAccountLightLogo-17fc73c1.js} +2 -2
- package/es/{StraitsXPersonalAccountLightLogo-2319d5c0.js.map → StraitsXPersonalAccountLightLogo-17fc73c1.js.map} +1 -1
- package/es/icons.js +1 -1
- package/es/icons.js.map +1 -1
- package/es/index.js +4 -20
- package/es/index.js.map +1 -1
- package/es/logos.js +1 -1
- package/package.json +1 -1
- package/cjs/MintSetupWallet-000e4d82.js +0 -2
- package/cjs/MintSetupWallet-000e4d82.js.map +0 -1
- package/cjs/StraitsXPersonalAccountLightLogo-042665bf.js +0 -2
- package/cjs/StraitsXPersonalAccountLightLogo-042665bf.js.map +0 -1
- package/es/MintSetupWallet-16164339.js +0 -2
- package/es/MintSetupWallet-16164339.js.map +0 -1
package/es/index.js
CHANGED
|
@@ -1,38 +1,22 @@
|
|
|
1
|
-
import*as tt from"react";import et,{createContext as nt,forwardRef as rt,createElement as ot,Component as it,Fragment as st,useState as lt,useRef as ct,useEffect as ut,version as dt,isValidElement as ht,useMemo as ft,useCallback as pt,useLayoutEffect as mt,useContext as gt}from"react";import{ConfigProvider as bt,Alert as vt,Button as yt,Card as xt,Tabs as wt,Dropdown as Et,Tooltip as St,Select as kt,Form as _t,Input as Ct,Pagination as Ot,Radio as Mt,DatePicker as Pt,Steps as At,Table as Nt,Checkbox as Dt,Empty as It,Spin as Tt,Timeline as Rt}from"antd";import{S as Ft,a as Lt,b as jt,c as zt,d as Bt,e as Vt,f as $t,g as Ht,h as Wt,i as Ut,j as Yt}from"./MintSetupWallet-16164339.js";export{k as AccessApiTwoTone,b2 as AccountStatement,c as Add,l as Api,m as ApiDocsTwoTone,n as ArrowDown,o as ArrowLeft,p as ArrowRight,q as ArrowSwitch,b as ArrowUp,r as Authorize,t as Avatar,s as AvatarFilled,w as Bank,u as BankFilled,v as BankFilledBackground,S as Bell,x as BellFilled,y as BulletPointArrow,z as Calendar,A as Camera,C as CardFilled,E as Company,B as CompanyComplexTwoTone,D as CompanyTwoTone,F as Confirmation,j as CopyToClipboard,aX as CreditCard,a as Cross,i as CrossMini,b5 as CustomerKnowledgeAssessment,H as CustomerSupport,G as CustomerSupportTwoTone,I as Delete,J as DepositTwoTone,L as DeveloperTool,K as DeveloperToolTwoTone,aP as DirectMint,N as Document,M as DocumentFilled,O as Dots,P as DownArrow,Q as Download,R as Earn,T as Edit,U as Employee,e as EmptyIcon,aQ as EmptyStateWithPattern,V as Expand,W as ExternalLink,X as Faq,aM as FaqDialog,aI as FaqFilled,aJ as File,Y as Filter,aN as Flag,Z as FlipHorizontal,_ as FlipVertical,ba as GenerateVA,aL as HandShake,$ as HelpGuide,aK as Home,a0 as Idea,d as Info,f as InfoFilled,a1 as Invoice,a2 as LockFilled,a3 as LockWithKeyHole,aE as Login,a4 as Logout,aR as LowFee,aT as Mail,aU as MemoCard,bc as MintSetupWallet,aS as MintWallet,a5 as Minus,a6 as Mobile,a7 as More,a8 as NavDashboard,a9 as NavHamburger,aa as NavTransactions,ab as Notes,aW as OneToOneXIDR,aV as OneToOneXSGD,ac as Outgoing,ae as Passport,ad as PaymentTwoTone,aY as Payout,af as PenField,ah as Pending,ai as PersonalTwoTone,ag as PiggyBank,am as Reroll,aj as Resend,aG as Response,ak as RotateLeft,al as RotateRight,aZ as Scan,an as Search,b3 as SendEmail,ao as SendInvitation,aq as Settings,ap as SettingsFilled,ar as SignUpTwoTone,as as StateSuccessV2,a_ as StraitsXEarnExchange,a$ as StraitsXEarnFee,b0 as StraitsXEarnWallet,b1 as StraitsXEarnWithdrawal,b4 as Swap,at as Switch,au as Thumbnail,av as ThumbnailTwoTone,g as Tick,bb as Time,aH as Tips,aO as Transaction,b9 as TwoFA,aA as Unlink,aw as UpArrow,ax as Upload,ay as UsefulLinks,aF as UsefulLinksTwoTone,az as User,b6 as VerifiedShield,b7 as VerifyIdentity,b8 as VerifyPhone,aC as Wallet,aB as WalletFilled,h as WarningFilled,aD as WithdrawalTwoTone}from"./MintSetupWallet-16164339.js";import{_ as Gt,a as qt,b as Xt}from"./_tslib-73c90073.js";import Kt,{unstable_batchedUpdates as Zt,createPortal as Qt,flushSync as Jt}from"react-dom";export{aU as Alfamart,aV as Alfamidi,O as Anz,aN as Arbitrum,aO as Avalanche,aT as Base,P as Bca,Q as Bea,ap as Binance,aq as Bitgo,aQ as Bnbsmart,R as Bni,U as Bnp,V as Boc,W as Bri,X as Bsi,Y as Bss,Z as Cimb,_ as Citi,ar as Coinhako,as as Coinut,z as CrossLogo,at as Crypto,aW as DanPlusDan,b5 as Dana,$ as Danamon,o as DarkStraitsXLogo,q as DarkStraitsXUserInfoBarLogo,a0 as Dbag,a1 as Dbs,ao as Dextf,u as EarnPiggyBank,M as EmptyStraitsX,au as Ethereum,F as FaceScan,a2 as Fazz,a3 as Feb,aM as Finblox,av as Fireblocks,b6 as GoPay,aK as Gpn,a4 as Hana,aJ as Hedera,a5 as Hlb,aw as Hodlnaut,a6 as Hsbc,a7 as Icbc,a8 as Icici,b2 as IdFlag,y as IdrLogo,aX as Indomaret,S as InfoLogo,v as InterestCompoundedDaily,aZ as Jcb,a9 as Jpmc,b8 as Jumio,aY as Lawson,ax as LedgerVault,L as LevelDown,p as LightStraitsXLogo,b7 as LinkAja,ay as Liquid,ad as Mandiri,a_ as Mastercard,aa as Mbb,ab as Miz,ac as Mufg,a as MyInfoLogo,w as NoFees,x as NoLockInPeriod,N as NotesBell,b3 as OVO,ae as Ocbc,az as OnchainCustodian,af as Permata,aA as Polygon,ag as Posb,aB as QcpCapital,aL as Qris,ah as Rbs,ai as Rhb,aR as Ripple,aj as Scb,b as SendLogo,m as SgdLogo,b4 as ShopeePay,ak as Sifl,al as Smbc,aS as Solana,aC as Sparrow,B as StateError,C as StateSuccess,bb as StraitsXBusinessAccountDarkLogo,bc as StraitsXBusinessAccountLightLogo,b9 as StraitsXLogo,s as StraitsXMyInfo,bd as StraitsXPersonalAccountDarkLogo,be as StraitsXPersonalAccountLightLogo,ba as StraitsXSandboxLogo,r as StraitsxSandboxLogo,T as Target,b0 as ThreeDSecure,n as ThreeDotsLogo,c as TickLogo,aD as TokenizeXchange,aP as Tron,am as Trwi,aE as Unagii,aF as Uniswap,an as Uob,b1 as UsFlag,l as UsdLogo,h as UsdcLogo,i as UsdpLogo,j as UsdtLogo,E as VecDeposits,G as VecDesktop,H as VecEmpty,I as VecEmptyPlain,t as VecEmptyPlainGreen,J as VecMobile,K as VecRecipients,D as VecThumbnailDoc,a$ as Visa,A as WalletLogo,d as XfersLogo,e as XfersSandboxLogo,g as XidrLogo,f as XsgdLogo,k as XusdLogo,aG as Zillet,aH as Zilliqa,aI as Zilswap}from"./StraitsXPersonalAccountLightLogo-2319d5c0.js";function te(t){var e=t.children;return et.createElement(bt,{theme:{token:{colorPrimary:"#1890ff",borderRadius:2},components:{Button:{borderRadius:2}}}},e)}var ee=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 r=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]}(r);try{var i=105===t.charCodeAt(1)&&64===t.charCodeAt(0);o.insertRule(t,i?0:o.cssRules.length)}catch(e){"production"!==process.env.NODE_ENV&&console.warn('There was a problem inserting the following rule: "'+t+'"',e)}}else r.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 ne(t){function e(t,r,l,c,h){for(var f,p,m,g,x,E=0,S=0,k=0,_=0,C=0,D=0,T=m=f=0,F=0,L=0,j=0,z=0,B=l.length,V=B-1,$="",H="",W="",U="";F<B;){if(p=l.charCodeAt(F),F===V&&0!==S+_+k+E&&(0!==S&&(p=47===S?10:47),_=k=E=0,B++,V++),0===S+_+k+E){if(F===V&&(0<L&&($=$.replace(d,"")),0<$.trim().length)){switch(p){case 32:case 9:case 59:case 13:case 10:break;default:$+=l.charAt(F)}p=59}switch(p){case 123:for(f=($=$.trim()).charCodeAt(0),m=1,z=++F;F<B;){switch(p=l.charCodeAt(F)){case 123:m++;break;case 125:m--;break;case 47:switch(p=l.charCodeAt(F+1)){case 42:case 47:t:{for(T=F+1;T<V;++T)switch(l.charCodeAt(T)){case 47:if(42===p&&42===l.charCodeAt(T-1)&&F+2!==T){F=T+1;break t}break;case 10:if(47===p){F=T+1;break t}}F=T}}break;case 91:p++;case 40:p++;case 34:case 39:for(;F++<V&&l.charCodeAt(F)!==p;);}if(0===m)break;F++}if(m=l.substring(z,F),0===f&&(f=($=$.replace(u,"").trim()).charCodeAt(0)),64===f){switch(0<L&&($=$.replace(d,"")),p=$.charCodeAt(1)){case 100:case 109:case 115:case 45:L=r;break;default:L=N}if(z=(m=e(r,L,m,p,h+1)).length,0<I&&(x=s(3,m,L=n(N,$,j),r,M,O,z,p,h,c),$=L.join(""),void 0!==x&&0===(z=(m=x.trim()).length)&&(p=0,m="")),0<z)switch(p){case 115:$=$.replace(w,a);case 100:case 109:case 45:m=$+"{"+m+"}";break;case 107:m=($=$.replace(b,"$1 $2"))+"{"+m+"}",m=1===A||2===A&&i("@"+m,3)?"@-webkit-"+m+"@"+m:"@"+m;break;default:m=$+m,112===c&&(H+=m,m="")}else m=""}else m=e(r,n(r,$,j),m,c,h+1);W+=m,m=j=L=T=f=0,$="",p=l.charCodeAt(++F);break;case 125:case 59:if(1<(z=($=(0<L?$.replace(d,""):$).trim()).length))switch(0===T&&(f=$.charCodeAt(0),45===f||96<f&&123>f)&&(z=($=$.replace(" ",":")).length),0<I&&void 0!==(x=s(1,$,r,t,M,O,H.length,c,h,c))&&0===(z=($=x.trim()).length)&&($="\0\0"),f=$.charCodeAt(0),p=$.charCodeAt(1),f){case 0:break;case 64:if(105===p||99===p){U+=$+l.charAt(F);break}default:58!==$.charCodeAt(z-1)&&(H+=o($,f,p,$.charCodeAt(2)))}j=L=T=f=0,$="",p=l.charCodeAt(++F)}}switch(p){case 13:case 10:47===S?S=0:0===1+f&&107!==c&&0<$.length&&(L=1,$+="\0"),0<I*R&&s(0,$,r,t,M,O,H.length,c,h,c),O=1,M++;break;case 59:case 125:if(0===S+_+k+E){O++;break}default:switch(O++,g=l.charAt(F),p){case 9:case 32:if(0===_+E+S)switch(C){case 44:case 58:case 9:case 32:g="";break;default:32!==p&&(g=" ")}break;case 0:g="\\0";break;case 12:g="\\f";break;case 11:g="\\v";break;case 38:0===_+S+E&&(L=j=1,g="\f"+g);break;case 108:if(0===_+S+E+P&&0<T)switch(F-T){case 2:112===C&&58===l.charCodeAt(F-3)&&(P=C);case 8:111===D&&(P=D)}break;case 58:0===_+S+E&&(T=F);break;case 44:0===S+k+_+E&&(L=1,g+="\r");break;case 34:case 39:0===S&&(_=_===p?0:0===_?p:_);break;case 91:0===_+S+k&&E++;break;case 93:0===_+S+k&&E--;break;case 41:0===_+S+E&&k--;break;case 40:if(0===_+S+E){if(0===f)if(2*C+3*D==533);else f=1;k++}break;case 64:0===S+k+_+E+T+m&&(m=1);break;case 42:case 47:if(!(0<_+E+k))switch(S){case 0:switch(2*p+3*l.charCodeAt(F+1)){case 235:S=47;break;case 220:z=F,S=42}break;case 42:47===p&&42===C&&z+2!==F&&(33===l.charCodeAt(z+2)&&(H+=l.substring(z,F+1)),g="",S=0)}}0===S&&($+=g)}D=C,C=p,F++}if(0<(z=H.length)){if(L=r,0<I&&(void 0!==(x=s(2,H,L,t,M,O,z,c,h,c))&&0===(H=x).length))return U+H+W;if(H=L.join(",")+"{"+H+"}",0!==A*P){switch(2!==A||i(H,2)||(P=0),P){case 111:H=H.replace(y,":-moz-$1")+H;break;case 112:H=H.replace(v,"::-webkit-input-$1")+H.replace(v,"::-moz-$1")+H.replace(v,":-ms-input-$1")+H}P=0}}return U+H+W}function n(t,e,n){var o=e.trim().split(m);e=o;var i=o.length,a=t.length;switch(a){case 0:case 1:var s=0;for(t=0===a?"":t[0]+" ";s<i;++s)e[s]=r(t,e[s],n).trim();break;default:var l=s=0;for(e=[];s<i;++s)for(var c=0;c<a;++c)e[l++]=r(t[c]+" ",o[s],n).trim()}return e}function r(t,e,n){var r=e.charCodeAt(0);switch(33>r&&(r=(e=e.trim()).charCodeAt(0)),r){case 38:return e.replace(g,"$1"+t.trim());case 58:return t.trim()+e.replace(g,"$1"+t.trim());default:if(0<1*n&&0<e.indexOf("\f"))return e.replace(g,(58===t.charCodeAt(0)?"":"$1")+t.trim())}return t+e}function o(t,e,n,r){var a=t+";",s=2*e+3*n+4*r;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===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(C,"$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 f.test(a)?a.replace(h,":-webkit-")+a.replace(h,":-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(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(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(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===_.test(t))return 115===(l=t.substring(t.indexOf(":")+1)).charCodeAt(0)?o(t.replace("stretch","fill-available"),e,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(p,"$1-webkit-$2")+a}return a}function i(t,e){var n=t.indexOf(1===e?":":"{"),r=t.substring(0,3!==e?n:10);return n=t.substring(n+1,t.length-1),T(2!==e?r:r.replace(k,"$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(E," or ($1)").substring(4):"("+e+")"}function s(t,e,n,r,o,i,a,s,l,u){for(var d,h=0,f=e;h<I;++h)switch(d=D[h].call(c,t,f,n,r,o,i,a,s,l,u)){case void 0:case!1:case!0:case null:break;default:f=d}if(f!==e)return f}function l(t){return void 0!==(t=t.prefix)&&(T=null,t?"function"!=typeof t?A=1:(A=2,T=t):A=0),l}function c(t,n){var r=t;if(33>r.charCodeAt(0)&&(r=r.trim()),r=[r],0<I){var o=s(-1,n,r,r,M,O,0,0,0,0);void 0!==o&&"string"==typeof o&&(n=o)}var i=e(N,r,n,0,0);return 0<I&&(void 0!==(o=s(-2,i,r,r,M,O,i.length,0,0,0))&&(i=o)),P=0,O=M=1,i}var u=/^\0+/g,d=/[\0\r\f]/g,h=/: */g,f=/zoo|gra/,p=/([,: ])(transform)/g,m=/,\r+?/g,g=/([\t\r\n ])*\f?&/g,b=/@(k\w+)\s*(\S*)\s*/,v=/::(place)/g,y=/:(read-only)/g,x=/[svh]\w+-[tblr]{2}/,w=/\(\s*(.*)\s*\)/g,E=/([\s\S]*?);/g,S=/-self|flex-/g,k=/[^]*?(:[rp][el]a[\w-]+)[^]*/,_=/stretch|:\s*\w+\-(?:conte|avail)/,C=/([^-])(image-set\()/,O=1,M=1,P=0,A=1,N=[],D=[],I=0,T=null,R=0;return c.use=function t(e){switch(e){case void 0:case null:I=D.length=0;break;default:if("function"==typeof e)D[I++]=e;else if("object"==typeof e)for(var n=0,r=e.length;n<r;++n)t(e[n]);else R=0|!!e}return t},c.set=l,void 0!==t&&l(t),c}var re=function(t){var e=new WeakMap;return function(n){if(e.has(n))return e.get(n);var r=t(n);return e.set(n,r),r}},oe="/*|*/",ie=oe+"}";function se(t){t&&le.current.insert(t+"}")}var le={current:null},ce=function(t,e,n,r,o,i,a,s,l,c){switch(t){case 1:switch(e.charCodeAt(0)){case 64:return le.current.insert(e+";"),"";case 108:if(98===e.charCodeAt(2))return""}break;case 2:if(0===s)return e+oe;break;case 3:switch(s){case 102:case 112:return le.current.insert(n[0]+e),"";default:return e+(0===c?oe:"")}case-2:e.split(ie).forEach(se)}},ue=function(t,e){if(1===t&&108===e.charCodeAt(0)&&98===e.charCodeAt(2))return""},de="undefined"!=typeof document,he={},fe=de?void 0:re(function(){var t=re(function(){return{}}),e={},n={};return function(r){return void 0===r||!0===r?e:!1===r?n:t(r)}}),pe=function(t){void 0===t&&(t={});var e,n=t.key||"css";void 0!==t.prefix&&(e={prefix:t.prefix});var r=new ne(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,i,a={};if(de){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(de)r.use(t.stylisPlugins)(ce),i=function(t,e,n,o){var i=e.name;if(le.current=n,"production"!==process.env.NODE_ENV&&void 0!==e.map){var a=e.map;le.current={insert:function(t){n.insert(t+a)}}}r(t,e.styles),o&&(d.inserted[i]=!0)};else{r.use(ue);var l=he;(t.stylisPlugins||void 0!==t.prefix)&&(r.use(t.stylisPlugins),l=fe(t.stylisPlugins||he)(t.prefix));i=function(t,e,n,o){var i=e.name,a=function(t,e){var n=e.name;return void 0===l[n]&&(l[n]=r(t,e.styles)),l[n]}(t,e);return void 0===d.compat?(o&&(d.inserted[i]=!0),"development"===process.env.NODE_ENV&&void 0!==e.map?a+e.map:a):o?void(d.inserted[i]=a):a}}if("production"!==process.env.NODE_ENV){var c=/\/\*/g,u=/\*\//g;r.use(function(t,e){if(-1===t){for(;c.test(e);){if(u.lastIndex=c.lastIndex,!u.test(e))throw new Error('Your styles have an unterminated comment ("/*" without corresponding "*/").');c.lastIndex=u.lastIndex}c.lastIndex=0}}),r.use(function(t,e,n){if(-1===t){var r=e.match(/(:first|:nth|:nth-last)-child/g);r&&!0!==d.compat&&r.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 d={key:n,sheet:new ee({key:n,container:o,nonce:t.nonce,speedy:t.speedy}),nonce:t.nonce,inserted:a,registered:{},insert:i};return d};function me(t){for(var e,n=0,r=0,o=t.length;o>=4;++r,o-=4)e=1540483477*(65535&(e=255&t.charCodeAt(r)|(255&t.charCodeAt(++r))<<8|(255&t.charCodeAt(++r))<<16|(255&t.charCodeAt(++r))<<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(r+2))<<16;case 2:n^=(255&t.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&t.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}function ge(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var ve,ye={exports:{}},xe={};var we,Ee,Se={};var ke=ge((Ee||(Ee=1,"production"===process.env.NODE_ENV?ye.exports=(ve||(ve=1,Object.defineProperty(xe,"__esModule",{value:!0}),xe.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}),xe):ye.exports=(we||(we=1,Object.defineProperty(Se,"__esModule",{value:!0}),Se.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}),Se)),ye.exports));function _e(t){var e={};return function(n){return void 0===e[n]&&(e[n]=t(n)),e[n]}}var Ce="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",Oe="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",Me=/[A-Z]|^ms/g,Pe=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ae=function(t){return 45===t.charCodeAt(1)},Ne=function(t){return null!=t&&"boolean"!=typeof t},De=_e(function(t){return Ae(t)?t:t.replace(Me,"-$&").toLowerCase()}),Ie=function(t,e){switch(t){case"animation":case"animationName":if("string"==typeof e)return e.replace(Pe,function(t,e,n){return He={name:e,styles:n,next:He},e})}return 1===ke[t]||Ae(t)||"number"!=typeof e||0===e?e:e+"px"};if("production"!==process.env.NODE_ENV){var Te=/(attr|calc|counters?|url)\(/,Re=["normal","none","counter","open-quote","close-quote","no-open-quote","no-close-quote","initial","inherit","unset"],Fe=Ie,Le=/^-ms-/,je=/-(.)/g,ze={};Ie=function(t,e){"content"===t&&("string"!=typeof e||-1===Re.indexOf(e)&&!Te.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=Fe(t,e);return""===n||Ae(t)||-1===t.indexOf("-")||void 0!==ze[t]||(ze[t]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+t.replace(Le,"ms-").replace(je,function(t,e){return e.toUpperCase()})+"?")),n}}var Be=!0;function Ve(t,e,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 He={name:n.name,styles:n.styles,next:He},n.name;if(void 0!==n.styles){var o=n.next;if(void 0!==o)for(;void 0!==o;)He={name:o.name,styles:o.styles,next:He},o=o.next;var i=n.styles+";";return"production"!==process.env.NODE_ENV&&void 0!==n.map&&(i+=n.map),i}return function(t,e,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Ve(t,e,n[o],!1);else for(var i in n){var a=n[i];if("object"!=typeof a)null!=e&&void 0!==e[a]?r+=i+"{"+e[a]+"}":Ne(a)&&(r+=De(i)+":"+Ie(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!=e&&void 0!==e[a[0]]){var s=Ve(t,e,a,!1);switch(i){case"animation":case"animationName":r+=De(i)+":"+s+";";break;default:"production"!==process.env.NODE_ENV&&"undefined"===i&&console.error(Oe),r+=i+"{"+s+"}"}}else for(var l=0;l<a.length;l++)Ne(a[l])&&(r+=De(i)+":"+Ie(i,a[l])+";")}}return r}(t,e,n);case"function":if(void 0!==t){var a=He,s=n(t);return He=a,Ve(t,e,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(Pe,function(t,e,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==e)return n;var u=e[n];return"production"!==process.env.NODE_ENV&&r&&Be&&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"),Be=!1),void 0===u||r?n:u}var $e,He,We=/label:\s*([^\s;\n{]+)\s*;/g;"production"!==process.env.NODE_ENV&&($e=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//);var Ue=function(t,e,n){if(1===t.length&&"object"==typeof t[0]&&null!==t[0]&&void 0!==t[0].styles)return t[0];var r=!0,o="";He=void 0;var i,a=t[0];null==a||void 0===a.raw?(r=!1,o+=Ve(n,e,a,!1)):("production"!==process.env.NODE_ENV&&void 0===a[0]&&console.error(Ce),o+=a[0]);for(var s=1;s<t.length;s++)o+=Ve(n,e,t[s],46===o.charCodeAt(o.length-1)),r&&("production"!==process.env.NODE_ENV&&void 0===a[s]&&console.error(Ce),o+=a[s]);"production"!==process.env.NODE_ENV&&(o=o.replace($e,function(t){return i=t,""})),We.lastIndex=0;for(var l,c="";null!==(l=We.exec(o));)c+="-"+l[1];var u=me(o)+c;return"production"!==process.env.NODE_ENV?{name:u,styles:o,map:i,next:He,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:He}},Ye="undefined"!=typeof document;function Ge(t,e,n){var r="";return n.split(" ").forEach(function(n){void 0!==t[n]?e.push(t[n]):r+=n+" "}),r}var qe=function(t,e,n){var r=t.key+"-"+e.name;if((!1===n||!1===Ye&&void 0!==t.compat)&&void 0===t.registered[r]&&(t.registered[r]=e.styles),void 0===t.inserted[e.name]){var o="",i=e;do{var a=t.insert("."+r,i,t.sheet,!0);Ye||void 0===a||(o+=a),i=i.next}while(void 0!==i);if(!Ye&&0!==o.length)return o}};function Xe(t,e){if(void 0===t.inserted[e.name])return t.insert("",e,t.sheet,!0)}function Ke(t,e,n){var r=[],o=Ge(t,r,n);return r.length<2?n:o+e(r)}var Ze,Qe,Je,tn,en,nn,rn,on,sn,ln,cn,un,dn,hn=function t(e){for(var n="",r=0;r<e.length;r++){var o=e[r];if(null!=o){var i=void 0;switch(typeof o){case"boolean":break;case"object":if(Array.isArray(o))i=t(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},fn=function(t){var e=pe(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),r=0;r<t;r++)n[r]=arguments[r];var o=Ue(n,e.registered,void 0);return qe(e,o,!1),e.key+"-"+o.name};return{css:n,cx:function(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return Ke(e.registered,n,hn(r))},injectGlobal:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=Ue(n,e.registered);Xe(e,o)},keyframes:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=Ue(n,e.registered),i="animation-"+o.name;return Xe(e,{name:o.name,styles:"@keyframes "+i+"{"+o.styles+"}"}),i},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:Ge.bind(null,e.registered),merge:Ke.bind(null,e.registered,n)}}(),pn=fn.cx,mn=fn.css;!function(t){t.DEFAULT="#1B2736",t.T10="#2C4058",t.T20="#3E597A",t.T30="#4F719C"}(Ze||(Ze={})),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"}(Qe||(Qe={})),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"}(Je||(Je={})),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"}(tn||(tn={})),function(t){t.S400="#B71515",t.S300="#E22726",t.S100="#FFF0F0"}(en||(en={})),function(t){t.DEFAULT="#FFFFFF"}(nn||(nn={})),function(t){t.S400="#8D7700",t.S300="#E5C412",t.S100="#FFFBE9"}(rn||(rn={})),function(t){t.NEUTRAL="#FFFFFF",t.SECONDARY_NEUTRAL="#F6F7F9",t.PRIMARY="#00A965",t.SECONDARY="#F6FEFB"}(on||(on={})),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"}(sn||(sn={})),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)"}(ln||(ln={})),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"}(cn||(cn={})),function(t){t.INFO="#0C45E1",t.POSITIVE="#257C58",t.WARNING="#FC9A07",t.CRITICAL="#DF1312"}(un||(un={})),function(t){t.BUTTON_DISABLED="#BDBDBD",t.BUTTON_PRIMARY="#00A965",t.LABEL_INPUT="#757575",t.HELPER_INPUT="#757575",t.PLACEHOLDER_INPUT="#B6B6B6"}(dn||(dn={}));var gn,bn={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"}}},vn={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;"},yn=function(t,e){var n,r,o,i;return mn(gn||(gn=Gt(["\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!==(r=e.align)&&void 0!==r?r:"inherit",bn[t].FONT_SIZE[e.size],bn[t].LINE_HEIGHT[e.size],bn[t].FONT_WEIGHT[e.size],bn[t].LETTER_SPACING[e.size],null!==(o=e.color)&&void 0!==o?o:ln.ON_NEUTRAL,"label"===t?"Red Hat Display":"Hanken Grotesk",vn[null!==(i=e.overflow)&&void 0!==i?i:"normal"])};var xn={Display:function(t){var e=t.as,n=void 0===e?"h1":e,r=t.children,o=t.className,i=qt(t,["as","children","className"]);return et.createElement(n,Xt({className:pn(yn("display",t),o)},i),r)},Headline:function(t){var e=t.as,n=void 0===e?"h2":e,r=t.children,o=t.className,i=qt(t,["as","children","className"]);return et.createElement(n,Xt({className:pn(yn("headline",t),o)},i),r)},Title:function(t){var e=t.as,n=void 0===e?"h2":e,r=t.children,o=t.className,i=qt(t,["as","children","className"]);return et.createElement(n,Xt({className:pn(yn("title",t),o)},i),r)},Label:function(t){var e=t.as,n=void 0===e?"h5":e,r=t.children,o=t.className,i=qt(t,["as","children","className"]);return et.createElement(n,Xt({className:pn(yn("label",t),o)},i),r)},Body:function(t){var e=t.as,n=void 0===e?"span":e,r=t.children,o=t.className,i=qt(t,["as","children","className"]);return et.createElement(n,Xt({className:pn(yn("body",t),o)},i),r)}};function wn(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var En=/^((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)-.*))$/,Sn=_e(function(t){return En.test(t)||111===t.charCodeAt(0)&&110===t.charCodeAt(1)&&t.charCodeAt(2)<91});function kn(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var _n="undefined"!=typeof document,Cn=Object.prototype.hasOwnProperty,On=nt("undefined"!=typeof HTMLElement?pe():null),Mn=nt({});On.Provider;var Pn=function(t){return rt(function(e,n){return ot(On.Consumer,null,function(r){return t(e,r,n)})})};if(!_n){var An=function(t){function e(e,n,r){var o;return(o=t.call(this,e,n,r)||this).state={value:pe()},o}return kn(e,t),e.prototype.render=function(){return ot(On.Provider,this.state,this.props.children(this.state.value))},e}(it);Pn=function(t){return function(e){return ot(On.Consumer,null,function(n){return null===n?ot(An,null,function(n){return t(e,n)}):t(e,n)})}}}var Nn="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Dn="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",In=function(){return null},Tn=function(t,e,n,r){var o=null===n?e.css:e.css(n);"string"==typeof o&&void 0!==t.registered[o]&&(o=t.registered[o]);var i=e[Nn],a=[o],s="";"string"==typeof e.className?s=Ge(t.registered,a,e.className):null!=e.className&&(s=e.className+" ");var l=Ue(a);if("production"!==process.env.NODE_ENV&&-1===l.name.indexOf("-")){var c=e[Dn];c&&(l=Ue([l,"label:"+c+";"]))}var u=qe(t,l,"string"==typeof i);s+=t.key+"-"+l.name;var d={};for(var h in e)!Cn.call(e,h)||"css"===h||h===Nn||"production"!==process.env.NODE_ENV&&h===Dn||(d[h]=e[h]);d.ref=r,d.className=s;var f=ot(i,d),p=ot(In,null);if(!_n&&void 0!==u){for(var m,g=l.name,b=l.next;void 0!==b;)g+=" "+b.name,b=b.next;p=ot("style",((m={})["data-emotion-"+t.key]=g,m.dangerouslySetInnerHTML={__html:u},m.nonce=t.sheet.nonce,m))}return ot(st,null,p,f)},Rn=Pn(function(t,e,n){return"function"==typeof t.css?ot(Mn.Consumer,null,function(r){return Tn(e,t,r,n)}):Tn(e,t,null,n)});function Fn(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return Ue(e)}"production"!==process.env.NODE_ENV&&(Rn.displayName="EmotionCssPropInternal");var Ln=!1,jn=Pn(function(t,e){"production"===process.env.NODE_ENV||Ln||!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?"),Ln=!0);var n=t.styles;if("function"==typeof n)return ot(Mn.Consumer,null,function(t){var r=Ue([n(t)]);return ot(zn,{serialized:r,cache:e})});var r=Ue([n]);return ot(zn,{serialized:r,cache:e})}),zn=function(t){function e(e,n,r){return t.call(this,e,n,r)||this}kn(e,t);var n=e.prototype;return n.componentDidMount=function(){this.sheet=new ee({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()},n.componentDidUpdate=function(t){t.serialized.name!==this.props.serialized.name&&this.insertStyles()},n.insertStyles=function(){if(void 0!==this.props.serialized.next&&qe(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)},n.componentWillUnmount=function(){this.sheet.flush()},n.render=function(){if(!_n){for(var t=this.props.serialized,e=t.name,n=t.styles,r=t.next;void 0!==r;)e+=" "+r.name,n+=r.styles,r=r.next;var o,i=!0===this.props.cache.compat,a=this.props.cache.insert("",{name:e,styles:n},this.sheet,i);if(!i)return ot("style",((o={})["data-emotion-"+this.props.cache.key]=e,o.dangerouslySetInnerHTML={__html:a},o.nonce=this.props.cache.sheet.nonce,o))}return null},e}(it),Bn=function(){var t=Fn.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_"}}},Vn=function t(e){for(var n=e.length,r=0,o="";r<n;r++){var i=e[r];if(null!=i){var a=void 0;switch(typeof i){case"boolean":break;case"object":if(Array.isArray(i))a=t(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 $n=function(){return null};Pn(function(t,e){return ot(Mn.Consumer,null,function(n){var r="",o="",i=!1,a=function(){if(i&&"production"!==process.env.NODE_ENV)throw new Error("css can only be used during render");for(var t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];var s=Ue(n,e.registered);if(_n)qe(e,s,!1);else{var l=qe(e,s,!1);void 0!==l&&(r+=l)}return _n||(o+=" "+s.name),e.key+"-"+s.name},s={css:a,cx:function(){if(i&&"production"!==process.env.NODE_ENV)throw new Error("cx can only be used during render");for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(t,e,n){var r=[],o=Ge(t,r,n);return r.length<2?n:o+e(r)}(e.registered,a,Vn(n))},theme:n},l=t.children(s);i=!0;var c,u=ot($n,null);_n||0===r.length||(u=ot("style",((c={})["data-emotion-"+e.key]=o.substring(1),c.dangerouslySetInnerHTML={__html:r},c.nonce=e.sheet.nonce,c)));return ot(st,null,u,l)})});var Hn=Sn,Wn=function(t){return"theme"!==t&&"innerRef"!==t},Un=function(t){return"string"==typeof t&&t.charCodeAt(0)>96?Hn:Wn};function Yn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}var Gn,qn,Xn,Kn,Zn,Qn,Jn,tr,er,nr="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",rr="undefined"!=typeof document,or=function(){return null},ir=function t(e,n){if("production"!==process.env.NODE_ENV&&void 0===e)throw new Error("You are trying to create a styled element with an undefined component.\nYou may have forgotten to import it.");var r,o,i;void 0!==n&&(r=n.label,i=n.target,o=e.__emotion_forwardProp&&n.shouldForwardProp?function(t){return e.__emotion_forwardProp(t)&&n.shouldForwardProp(t)}:n.shouldForwardProp);var a=e.__emotion_real===e,s=a&&e.__emotion_base||e;"function"!=typeof o&&a&&(o=e.__emotion_forwardProp);var l=o||Un(s),c=!l("as");return function(){var u=arguments,d=a&&void 0!==e.__emotion_styles?e.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==u[0]||void 0===u[0].raw)d.push.apply(d,u);else{"production"!==process.env.NODE_ENV&&void 0===u[0][0]&&console.error(nr),d.push(u[0][0]);for(var h=u.length,f=1;f<h;f++)"production"!==process.env.NODE_ENV&&void 0===u[0][f]&&console.error(nr),d.push(u[f],u[0][f])}var p=Pn(function(t,e,n){return ot(Mn.Consumer,null,function(a){var u=c&&t.as||s,h="",f=[],p=t;if(null==t.theme){for(var m in p={},t)p[m]=t[m];p.theme=a}"string"==typeof t.className?h=Ge(e.registered,f,t.className):null!=t.className&&(h=t.className+" ");var g=Ue(d.concat(f),e.registered,p),b=qe(e,g,"string"==typeof u);h+=e.key+"-"+g.name,void 0!==i&&(h+=" "+i);var v=c&&void 0===o?Un(u):l,y={};for(var x in t)c&&"as"===x||v(x)&&(y[x]=t[x]);y.className=h,y.ref=n||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===r?"":" in the usage of `"+r+"`"));var w=ot(u,y),E=ot(or,null);if(!rr&&void 0!==b){for(var S,k=g.name,_=g.next;void 0!==_;)k+=" "+_.name,_=_.next;E=ot("style",((S={})["data-emotion-"+e.key]=k,S.dangerouslySetInnerHTML={__html:b},S.nonce=e.sheet.nonce,S))}return ot(st,null,E,w)})});return p.displayName=void 0!==r?r:"Styled("+("string"==typeof s?s:s.displayName||s.name||"Component")+")",p.defaultProps=e.defaultProps,p.__emotion_real=p,p.__emotion_base=s,p.__emotion_styles=d,p.__emotion_forwardProp=o,Object.defineProperty(p,"toString",{value:function(){return void 0===i&&"production"!==process.env.NODE_ENV?"NO_COMPONENT_SELECTOR":"."+i}}),p.withComponent=function(e,r){return t(e,void 0!==r?function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Yn(Object(n),!0).forEach(function(e){wn(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Yn(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}({},n||{},{},r):n).apply(void 0,d)},p}}.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){ir[t]=ir(t)}),function(t){t.B400="#0C45E1",t.B300="#1863B0",t.B200="#C3DCF6",t.B100="#EEF6FF"}(Gn||(Gn={})),function(t){t.G400="#257C58",t.G300="#43CC32",t.G200="#C8FAC0",t.G100="#F0F9F4"}(qn||(qn={})),function(t){t.R400="#DF1312",t.R300="#E22726",t.R200="#FFC9C9",t.R100="#FFF1F1"}(Xn||(Xn={})),function(t){t.Y400="#FC9A07",t.Y300="#FC9A07",t.Y200="#FFEB7E",t.Y100="#FFFAEA"}(Kn||(Kn={})),function(t){t.BLACK="#1B2736",t.G500="#505454",t.G400="#959595",t.G300="#D8D8D8",t.G200="#E8E8E8",t.G100="#F0F0F0",t.WHITE="#FFFFFF"}(Zn||(Zn={})),function(t){t.PRIMARY_BLUE="#1863B0",t.PRIMARY_BLACK="#1B2736",t.PRIMARY_WHITE="#FFFFFF",t.SECONDARY_GREEN="#43CC32",t.SECONDARY_RED="#E22726",t.SECONDARY_YELLOW="#FC9A07"}(Qn||(Qn={})),function(t){t.SUCCESS="#43CC32",t.INFO="#1863B0",t.WARNING="#FC9A07",t.ERROR="#E22726",t.NEUTRAL="#D8D8D8"}(Jn||(Jn={})),function(t){t.SUCCESS="#257C58",t.INFO="#0C45E1",t.WARNING="#FC9A07",t.ERROR="#DF1312",t.NEUTRAL="#959595"}(tr||(tr={})),function(t){t.SUCCESS="#F0F9F4",t.INFO="#EEF6FF",t.WARNING="#FFFAEA",t.ERROR="#FFF1F1",t.NEUTRAL="#F0F0F0"}(er||(er={}));var sr,lr,cr,ur,dr=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")},hr=dr(qn.G400,qn.G400,qn.G100),fr=dr(Kn.Y400,Kn.Y400,Kn.Y100),pr=dr(Xn.R400,Xn.R400,Xn.R100),mr="\n border: none !important;\n background-color: ".concat(Je.CONTRAST," !important;\n \n .ant-alert-icon {\n color: ").concat(nn.DEFAULT," !important;\n }\n \n .ant-alert-close-icon {\n color: ").concat(nn.DEFAULT," !important;\n }\n"),gr=ir(vt)(sr||(sr=Gt(["\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&&hr},function(t){return"warning"===t.type&&fr},function(t){return"error"===t.type&&pr},function(t){return"info"===t.type&&mr}),br=ir.div(lr||(lr=Gt(["\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"]))),vr=ir.div(cr||(cr=Gt(["\n width: 24px;\n height: 24px;\n"],["\n width: 24px;\n height: 24px;\n"]))),yr=function(t){var e,n=t.type,r=t.message,o=t.closable,i=t.icon,a=t.showIcon,s=t.onClose,l=t.title,c=lt(!0),u=c[0],d=c[1];return u?et.createElement(gr,{type:n||"warning",message:et.createElement(function(){var t="info"===n?nn.DEFAULT:Ze.DEFAULT;return et.createElement(br,null,l&&et.createElement(xn.Label,{color:t,size:"md"},l),et.createElement(xn.Body,{color:t,size:"md"},r))},null),closable:o,icon:(e=i?et.cloneElement(i,{width:20,height:20}):et.createElement(Ft,{width:20,height:20}),et.createElement(vr,null,e)),showIcon:a,onClose:function(){d(!1),s&&s()},closeIcon:et.createElement(function(){return et.createElement(Lt,{width:14,height:14})},null)}):null},xr="@media (min-width: 1200px)",wr="@media (min-width: 992px)",Er="@media (min-width: 768px)",Sr="@media (min-width: 576px)",kr="Hanken Grotesk",_r="Red Hat Display";!function(t){t[t.BOLD=700]="BOLD",t[t.MEDIUM=500]="MEDIUM",t[t.REGULAR=400]="REGULAR"}(ur||(ur={}));var Cr,Or="\n color: ".concat(Ze.DEFAULT,";\n font-family: ").concat(kr,", ").concat("Inter",";\n margin: 0;\n"),Mr="\n font-weight: ".concat(ur.BOLD,";\n font-size: 24px;\n line-height: 28px;\n font-family: ").concat(_r,";\n\n ").concat(wr," {\n font-size: 24px;\n line-height: 29px;\n }\n"),Pr="\n font-weight: ".concat(ur.BOLD,";\n font-size: 20px;\n line-height: 23px;\n font-family: ").concat(_r,";\n\n ").concat(wr," {\n font-size: 18px;\n line-height: 22px;\n }\n"),Ar="\n font-weight: ".concat(ur.BOLD,";\n font-size: 18px;\n line-height: 21px;\n font-family: ").concat(_r,";\n\n ").concat(wr," {\n font-size: 16px;\n line-height: 19px;\n }\n"),Nr="\n font-weight: ".concat(ur.REGULAR,";\n font-size: 16px;\n line-height: 19px;\n font-family: ").concat(kr,";\n\n ").concat(wr," {\n font-size: 14px;\n line-height: 17px;\n }\n"),Dr="\n font-weight: ".concat(ur.REGULAR,";\n font-size: 12px;\n line-height: 18px;\n font-family: ").concat(kr,";\n\n ").concat(wr," {\n line-height: 15px;\n }\n"),Ir="\n font-weight: ".concat(ur.BOLD,";\n font-size: 16px;\n font-family: ").concat(_r,";\n"),Tr="\n font-weight: ".concat(ur.BOLD,";\n font-size: 14px;\n font-family: ").concat(_r,";\n"),Rr="\n font-weight: ".concat(ur.BOLD,";\n font-size: 16px;\n line-height: 19px;\n font-family: ").concat(_r,";\n\n ").concat(wr," {\n font-size: 14px;\n line-height: 17px;\n }\n"),Fr="\n font-weight: ".concat(ur.BOLD,";\n font-size: 14px;\n line-height: 24px;\n font-family: ").concat(kr,";\n"),Lr="\n font-weight: ".concat(ur.REGULAR,";\n font-size: 14px;\n line-height: 24px;\n font-family: ").concat(_r,";\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)"}(Cr||(Cr={}));var jr="10px",zr="15px",Br="20px",Vr="30px",$r={spacing:{xs:"5px",sm:jr,md:zr,lg:Br,xl:Vr},layout:{desktop:"24px",mobile:"16px"},shadow:{raised:Cr.RAISED,action:Cr.ACTION,overlay:Cr.OVERLAY,reverseRaised:Cr.REVERSE_RAISED},color:{background:{neutral:on.NEUTRAL,secondaryNeutral:on.SECONDARY_NEUTRAL,primary:on.PRIMARY,secondary:on.SECONDARY},surface:{neutral:sn.NEUTRAL,secondaryNeutral:sn.SECONDARY_NEUTRAL,disabledSurface:sn.DISABLED_SURFACE,disabledOnSurface:sn.DISABLED_ON_SURFACE,dark:sn.DARK,SubdueInfo:sn.SUBDUE_INFO,subduePositive:sn.SUBDUE_POSITIVE,subdueCritical:sn.SUBDUE_CRITICAL,subdueWarning:sn.SUBDUE_WARNING},base:{primary:ln.PRIMARY,primary2:ln.PRIMARY_2,primary3:ln.PRIMARY_3,onContainer:ln.ON_CONTAINER,onNeutral:ln.ON_NEUTRAL,onNeutralSecondary:ln.ON_NEUTRAL_SECONDARY,line:ln.LINE,link:ln.LINK,overlay:ln.OVERLAY},interactive:{hoverPrimary:cn.HOVER_PRIMARY,focusDefault:cn.FOCUS_DEFAULT,pressedPrimary:cn.PRESSED_PRIMARY,selected:cn.SELECTED,hoverSurface:cn.HOVER_SURFACE,focusSurface:cn.FOCUS_SURFACE,pressedSurface:cn.PRESSED_SURFACE,hoverCritical:cn.HOVER_CRITICAL,pressedCritical:cn.PRESSED_CRITICAL},status:{info:un.INFO,positive:un.POSITIVE,warning:un.WARNING,critical:un.CRITICAL},component:{buttonDisabled:dn.BUTTON_DISABLED,buttonPrimary:dn.BUTTON_PRIMARY,labelInput:dn.LABEL_INPUT,helperInput:dn.HELPER_INPUT,placeholderInput:dn.PLACEHOLDER_INPUT}},text:{default:Ze.DEFAULT,white:nn.DEFAULT},button:{background:nn.DEFAULT,color:Je.DEFAULT,border:Je.BASE,hover:Ze.T10},actionButton:{color:tn.S400,hover:tn.T10},neutral:{text:tn.S400,emphasis:tn.S300,border:tn.S200,background:tn.S100,white:nn.DEFAULT,bluish:tn.BLUISH},success:{text:Je.S400,emphasis:Je.S300,border:Je.S300,background:Je.S100},warning:{text:rn.S400,emphasis:rn.S300,border:rn.S300,background:rn.S100},error:{text:en.S400,emphasis:en.S300,border:en.S300,background:en.S100},notification:{text:Qe.S300,emphasis:Qe.DEFAULT,background:Qe.S100},card:{background:{default:nn.DEFAULT,dark:Ze.T10}},divider:{background:tn.S200}},Hr=Xt(Xt({},$r),{brand:{primary:{default:Qe.DEFAULT,emphasis:Qe.S300,background:Qe.S100,contrast:nn.DEFAULT,illustration:Qe.DEFAULT},action:{default:Qe.DEFAULT,hover:Qe.T10,disabledOpacity:.7}}}),Wr=Xt(Xt({},$r),{brand:{primary:{default:Je.BASE,emphasis:Je.DEFAULT,background:Je.G100,contrast:Je.CONTRAST,illustration:Je.S500,link:Qe.LINK},secondary:{onSurface:tn.OUTLINE,action:{hover:Je.HOVER_SECONDARY,pressed:Je.PRESSED_SECONDARY}},tertiary:{action:{hover:Je.HOVER_TERTIARY,pressed:Je.PRESSED_TERTIARY}},action:{default:Je.S500,hover:Je.HOVER,pressed:Je.PRESSED,disabledOpacity:.7},line:{base:tn.BASE}}});function Ur(t,e){void 0===e&&(e={});var n=e.insertAt;if(t&&"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=t:o.appendChild(document.createTextNode(t))}}Ur('@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 Yr,Gr,qr,Xr,Kr,Zr,Qr=function(){return et.createElement(jn,{styles:Fn(Yr||(Yr=Gt(["\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 "])))})},Jr=et.createContext(Wr),to=function(t){var e=t.theme,n=void 0===e?Wr:e,r=t.children;return et.createElement(Jr.Provider,{value:n},et.createElement(Qr,null),r)},eo=function(){var t=et.useContext(Jr);if(void 0===t)throw new Error("useTheme must be used within a ThemeProvider");return t},no="\n padding: 0;\n border-radius: 99px;\n display: flex;\n align-items: center;\n justify-content: center;\n",ro="\n ".concat(no,"\n width: 48px;\n height: 48px;\n"),oo="\n ".concat(no,"\n width: 36px;\n height: 36px;\n"),io=function(t,e,n,r,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(r||t," !important;\n box-shadow: none !important;\n }\n")},so=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")},lo=io(Wr.brand.action.default,Wr.brand.primary.contrast,Wr.brand.action.hover,Wr.brand.action.pressed),co=io(Wr.color.surface.neutral,Wr.brand.secondary.onSurface,Wr.color.interactive.hoverSurface,Wr.color.interactive.pressedSurface,"1px solid ".concat(Wr.brand.line.base)),uo=io("transparent",Wr.brand.secondary.onSurface,Wr.color.interactive.hoverSurface,Wr.color.interactive.pressedSurface,"none"),ho={primary:so(Wr.color.surface.disabledSurface,Wr.color.surface.disabledOnSurface),secondary:so(Wr.color.surface.disabledSurface,Wr.color.surface.disabledOnSurface),tertiary:so(Wr.color.surface.disabledSurface,Wr.color.surface.disabledOnSurface)},fo=function(t){var e=t.type,n=void 0===e?"primary":e,r=t.size,o=t.iconColor,i=t.isDisabled,a=void 0!==i&&i,s=t.isFullWidth,l=void 0!==s&&s,c=t.className,u=void 0===c?"":c,d=t.children,h=t.icon,f=qt(t,["type","size","iconColor","isDisabled","isFullWidth","className","children","icon"]),p=eo(),m=p.brand,g=p.button,b=p.actionButton,v=p.color,y="\n background-color: ".concat(m.action.default," !important;\n color: ").concat(m.primary.contrast," !important;\n border: none !important;\n\n &:focus {\n background-color: ").concat(m.action.default," !important;\n border: none !important;\n }\n \n &:active {\n background-color: ").concat(m.action.pressed," !important;\n border: none !important;\n }\n \n &:hover {\n background-color: ").concat(m.action.hover," !important;\n border: none !important;\n }\n "),x="\n background-color: ".concat(g.background," !important;\n color: ").concat(m.primary.contrast," !important;\n border: 1px solid ").concat(g.border," !important;\n\n &:focus {\n background-color: ").concat(g.background," !important;\n border: 1px solid ").concat(g.border," !important;\n }\n\n &:hover {\n background-color: ").concat(m.secondary.action.hover," !important;\n border: 1px solid ").concat(g.border," !important;\n }\n\n &:active {\n background-color: ").concat(m.secondary.action.pressed," !important;\n border: 1px solid ").concat(g.border," !important;\n }\n\n &[ant-click-animating-without-extra-node]:after {\n --antd-wave-shadow-color: ").concat(Wr.brand.primary.default,";\n }\n "),w="\n background-color: transparent !important;\n color: ".concat(m.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(m.tertiary.action.hover," !important;\n border: none !important;\n }\n\n &:active {\n background-color: ").concat(m.tertiary.action.pressed," !important;\n border: none !important;\n }\n "),E="\n cursor: not-allowed !important;\n background-color: ".concat(v.surface.disabledSurface," !important;\n color: ").concat(v.surface.disabledOnSurface," !important;\n border: none !important;\n \n &:hover, &:focus, &:active {\n cursor: not-allowed !important;\n background-color: ").concat(v.surface.disabledSurface," !important;\n color: ").concat(v.surface.disabledOnSurface," !important;\n border: none !important;\n }\n "),S="\n cursor: not-allowed !important;\n background-color: ".concat(g.background," !important;\n color: ").concat(v.surface.disabledOnSurface," !important;\n border: 1px solid ").concat(tn.S300," !important;\n \n &:hover, &:focus, &:active {\n cursor: not-allowed !important;\n background-color: ").concat(g.background," !important;\n color: ").concat(v.surface.disabledOnSurface," !important;\n border: 1px solid ").concat(tn.BASE," !important;\n }\n "),k="\n cursor: not-allowed !important;\n background-color: transparent !important;\n color: ".concat(v.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(v.surface.disabledOnSurface," !important;\n border: none !important;\n }\n "),_="\n color: ".concat(b.color,";\n\n &:focus {\n color: ").concat(b.color,";\n }\n\n &:hover {\n color: ").concat(b.hover,";\n }\n\n &:active {\n color: ").concat(b.color,";\n }\n "),C="\n color: ".concat(m.action.default,";\n\n &:focus {\n color: ").concat(m.action.default,";\n }\n\n &:hover {\n color: ").concat(m.action.hover,";\n }\n\n &:active {\n color: ").concat(m.action.default,";\n }\n "),O=ir(yt)(Gr||(Gr=Gt(["\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",Or,"small"===r?Tr:Ir,"primary"===n&&y,"secondary"===n&&x,"tertiary"===n&&w,function(){if(!a)return"";switch(n){case"primary":default:return E;case"secondary":return S;case"tertiary":return k}}(),l&&"\n width: 100%;\n ","primary"===o?C:_,m.primary.contrast),M=ir(yt)(qr||(qr=Gt(["\n &.ant-btn {\n ",";\n ","\n ","\n ","\n ","\n ","\n ","\n }\n "],["\n &.ant-btn {\n ",";\n ","\n ","\n ","\n ","\n ","\n ","\n }\n "])),Or,"small"===r?oo:ro,"primary"===n&&lo,"secondary"===n&&co,"tertiary"===n&&uo,function(t){return"\n & > svg {\n height: ".concat("small"===t?"20px":"24px",";\n width: ").concat("small"===t?"20px":"24px",";\n }\n")}(r),a&&function(t){return ho[t]||ho.primary}(n)),P=a?"straitsx-button-disabled":void 0;return h?et.createElement(M,Xt({className:"".concat(u," ").concat(P),disabled:a},f),h):et.createElement(O,Xt({className:"".concat(u," ").concat(P),disabled:a},f),d)},po=function(t){var e=t.icon,n=t.type,r=t.disabled,o=qt(t,["icon","type","disabled"]),i=eo(),a=i.brand,s=i.actionButton,l="\n cursor: auto;\n pointer-events: none;\n opacity: ".concat(a.action.disabledOpacity,";\n "),c="\n color: ".concat(s.color,";\n\n &:focus {\n color: ").concat(s.color,";\n }\n\n &:hover {\n color: ").concat(s.hover,";\n }\n\n &:active {\n color: ").concat(s.color,";\n }\n "),u="\n color: ".concat(a.action.default,";\n\n &:focus {\n color: ").concat(a.action.default,";\n }\n\n &:hover {\n color: ").concat(a.action.hover,";\n }\n\n &:active {\n color: ").concat(a.action.default,";\n }\n "),d=ir(fo)(Xr||(Xr=Gt(["\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===r&&l,"primary"===n?u:c);return et.createElement(d,Xt({type:"secondary",size:"small"},o),et.createElement(function(){return et.cloneElement(e,{width:17,height:17})},null))},mo="Hanken Grotesk",go="Inter";!function(t){t[t.BOLD=700]="BOLD",t[t.MEDIUM=500]="MEDIUM",t[t.REGULAR=400]="REGULAR"}(Kr||(Kr={})),function(t){t.H1="24px",t.H1_MOBILE="24px",t.H2="18px",t.H2_MOBILE="20px",t.H3="16px",t.H3_MOBILE="18px",t.H4="14px",t.P1="14px",t.P1_MOBILE="16px",t.SMALL="12px",t.SMALL_MOBILE="14px"}(Zr||(Zr={}));var bo,vo={large:{height:"48px",borderRadius:"12px",padding:"12px 16px"},small:{height:"36px",borderRadius:"8px",padding:"8px 12px"}};!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"}(bo||(bo={}));var yo,xo,wo,Eo,So,ko,_o,Co,Oo,Mo,Po,Ao,No,Do,Io,To,Ro,Fo,Lo,jo,zo,Bo,Vo=function(t){var e,n=t.className,r=t.alignTitle,o=void 0===r?"center":r,i=t.alignBody,a=void 0===i?"left":i,s=t.type,l=void 0===s?"default":s,c=qt(t,["className","alignTitle","alignBody","type"]),u=eo(),d=u.card,h=u.text,f=u.neutral,p="\n color: ".concat("default"===l?h.default:h.white,";\n\n & > div > div {\n color: ").concat("default"===l?h.default:h.white,";\n }\n\n h1 {\n color: ").concat("default"===l?h.default:h.white,";\n }\n "),m=mn(yo||(yo=Gt(["\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 "])),f.border,"default"===l?d.background.default:d.background.dark,Kr.BOLD,Zr.P1_MOBILE,bo.P1_MOBILE,p,p,Kr.BOLD,Zr.P1_MOBILE,bo.P1_MOBILE,p,Kr.REGULAR,Zr.P1_MOBILE,bo.P1_MOBILE,p);return et.createElement(xt,Xt({className:pn(m,n,(e=o,mn(xo||(xo=Gt(["\n .ant-card-head-wrapper {\n align-items: ",";\n }\n "],["\n .ant-card-head-wrapper {\n align-items: ",";\n }\n "])),e)),function(t){return mn(wo||(wo=Gt(["\n .ant-card-body {\n text-align: ",";\n }\n "],["\n .ant-card-body {\n text-align: ",";\n }\n "])),t)}(a))},c))},$o=ir.h1(Eo||(Eo=Gt(["\n ",";\n ",";\n"],["\n ",";\n ",";\n"])),Or,Mr),Ho=ir.h2(So||(So=Gt(["\n ",";\n ",";\n"],["\n ",";\n ",";\n"])),Or,Pr),Wo=ir.h3(ko||(ko=Gt(["\n ",";\n ",";\n"],["\n ",";\n ",";\n"])),Or,Ar),Uo=ir.div(_o||(_o=Gt(["\n ",";\n ",";\n"],["\n ",";\n ",";\n"])),Or,Nr),Yo=ir.div(Co||(Co=Gt(["\n ",";\n ",";\n"],["\n ",";\n ",";\n"])),Or,Rr),Go=ir.div(Oo||(Oo=Gt(["\n ",";\n ",";\n"],["\n ",";\n ",";\n"])),Or,Dr),qo=ir.h4(Mo||(Mo=Gt(["\n ",";\n ",";\n"],["\n ",";\n ",";\n"])),Or,Rr),Xo={xs:"5px",sm:jr,md:zr,lg:Br,xl:Vr},Ko=function(t){var e=t.spacing,n=qt(t,["spacing"]),r=eo().divider,o=ir.hr(Po||(Po=Gt(["\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?Xo[e]:0,e?Xo[e]:0,r.background);return et.createElement(o,Xt({},n))},Zo=function(t){var e=t.children,n=t.title,r=t.footer,o=eo(),i=o.spacing,a=o.neutral,s=o.layout,l=ir(Vo)(Ao||(Ao=Gt(["\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 "])),a.white,a.border,!r&&"display: none;",wr,s.desktop),c=ir.div(No||(No=Gt(["\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 "])),s.mobile,wr,i.md),u=ir.div(Do||(Do=Gt(["\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 "])),i.sm),d=ir.div(Io||(Io=Gt(["\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 "])),i.sm,i.md);return et.createElement(l,{title:et.createElement(c,null,et.createElement(u,null,n),et.createElement(Ko,{spacing:"lg"}),et.createElement(Uo,null,e))},et.createElement(d,null,r))},Qo=function(t){var e=t.header,n=t.body,r=t.defaultOpen,o=void 0!==r&&r,i=t.headerHeightDesktop,a=void 0===i?95:i,s=t.headerHeightMobile,l=void 0===s?95:s,c=t.toggleText,u=t.onCloseToggleText,d=void 0===u?c:u,h=t.additionalHeaderItem,f=t.withBoxShadow,p=void 0!==f&&f,m=lt(o),g=m[0],b=m[1];return et.createElement(Jo,{open:g,headerHeightDesktop:a,headerHeightMobile:l,withBoxShadow:p},et.createElement(ti,{onClick:function(){return b(function(t){return!t})},headerHeightDesktop:a,headerHeightMobile:l},et.createElement(ei,null,e,et.createElement(oi,null,c&&et.createElement(ni,null,g?d:c),et.createElement(ri,{open:g}))),h&&et.createElement(et.Fragment,null,h)),et.createElement(Ko,null),et.createElement("div",null,n))},Jo=ir.div(To||(To=Gt(["\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},wr,function(t){return t.headerHeightDesktop},function(t){return t.open&&"\n max-height: 2000px !important;\n ".concat(wr," {\n max-height: 1200px !important;\n }\n ")}),ti=ir.div(Ro||(Ro=Gt(["\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},wr,function(t){return t.headerHeightDesktop}),ei=ir.div(Fo||(Fo=Gt(["\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"]))),ni=ir(Uo)(Lo||(Lo=Gt(["\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"])),wr),ri=ir(jt)(jo||(jo=Gt(["\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)"}),oi=ir.div(zo||(zo=Gt(["\n display: flex;\n align-items: center;\n"],["\n display: flex;\n align-items: center;\n"]))),ii=function(t){var e=t.icon,n=t.type,r=void 0===n?"default":n,o=t.iconWidth,i=void 0===o?18:o,a=qt(t,["icon","type","iconWidth"]),s=eo(),l=s.brand,c=s.neutral,u=s.success,d=s.warning,h=s.error,f="\n color: ".concat(c.text,";\n background: ").concat(c.background,";\n "),p="\n color: ".concat(l.primary.default,";\n background: ").concat(l.primary.background,";\n "),m="\n color: ".concat(u.border,";\n background: ").concat(u.background,";\n "),g="\n color: ".concat(d.border,";\n background: ").concat(d.background,";\n "),b="\n color: ".concat(h.border,";\n background: ").concat(h.background,";\n "),v=ir.span(Bo||(Bo=Gt(["\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(r){case"default":default:return f;case"primary":return p;case"success":return m;case"warning":return g;case"error":return b}}());return et.createElement(v,Xt({className:"badge-icon"},a),et.createElement(function(){return et.cloneElement(e,{width:i,height:i})},null))};
|
|
1
|
+
import tt,{createContext as et,forwardRef as nt,createElement as it,Component as ot,Fragment as rt,useState as st,useRef as lt,useEffect as ct,useCallback as dt}from"react";import{ConfigProvider as ht,Alert as ut,Button as pt,Card as ft,Tabs as mt,Dropdown as gt,Tooltip as bt,Select as xt,Form as yt,Input as vt,Pagination as _t,Radio as wt,DatePicker as kt,Steps as St,Table as Et,Checkbox as Mt,Empty as Dt,Spin as Ct,Timeline as Ot}from"antd";import{S as Tt,a as At,b as Pt,c as Rt,d as Lt,e as It,f as Nt,g as Ft,h as zt,i as Bt,j as Yt}from"./StraitsXDecoVertical-0243d5ce.js";export{k as AccessApiTwoTone,b3 as AccountStatement,c as Add,l as Api,m as ApiDocsTwoTone,n as ArrowDown,o as ArrowLeft,p as ArrowRight,q as ArrowSwitch,b as ArrowUp,r as Authorize,t as Avatar,s as AvatarFilled,w as Bank,u as BankFilled,v as BankFilledBackground,S as Bell,x as BellFilled,y as BulletPointArrow,z as Calendar,A as Camera,C as CardFilled,be as Coins,E as Company,B as CompanyComplexTwoTone,D as CompanyTwoTone,F as Confirmation,j as CopyToClipboard,aY as CreditCard,a as Cross,i as CrossMini,b6 as CustomerKnowledgeAssessment,H as CustomerSupport,G as CustomerSupportTwoTone,I as Delete,J as DepositTwoTone,L as DeveloperTool,K as DeveloperToolTwoTone,aQ as DirectMint,N as Document,M as DocumentFilled,O as Dots,P as DownArrow,Q as Download,R as Earn,T as Edit,U as Employee,e as EmptyIcon,aR as EmptyStateWithPattern,V as Expand,W as ExternalLink,X as Faq,aN as FaqDialog,aJ as FaqFilled,aK as File,Y as Filter,aO as Flag,Z as FlipHorizontal,_ as FlipVertical,bb as GenerateVA,aM as HandShake,$ as HelpGuide,aL as Home,a0 as Idea,d as Info,f as InfoFilled,a1 as Invoice,a2 as LockFilled,a3 as LockWithKeyHole,aF as Login,a4 as Logout,aS as LowFee,aU as Mail,aV as MemoCard,bd as MintSetupWallet,aT as MintWallet,a5 as Minus,a6 as Mobile,a7 as More,a8 as NavDashboard,a9 as NavHamburger,aa as NavTransactions,ab as Notes,aX as OneToOneXIDR,aW as OneToOneXSGD,ac as Outgoing,ae as Passport,ad as PaymentTwoTone,aZ as Payout,af as PenField,ah as Pending,ai as PersonalTwoTone,ag as PiggyBank,am as Reroll,aj as Resend,aH as Response,ak as RotateLeft,al as RotateRight,a_ as Scan,an as Search,b4 as SendEmail,ao as SendInvitation,aq as Settings,ap as SettingsFilled,ar as SignUpTwoTone,as as StateSuccessV2,bf as StraitsXDecoVertical,a$ as StraitsXEarnExchange,b0 as StraitsXEarnFee,b1 as StraitsXEarnWallet,b2 as StraitsXEarnWithdrawal,b5 as Swap,at as Switch,au as SwitchAccount,av as Thumbnail,aw as ThumbnailTwoTone,g as Tick,bc as Time,aI as Tips,aP as Transaction,ba as TwoFA,aB as Unlink,ax as UpArrow,ay as Upload,az as UsefulLinks,aG as UsefulLinksTwoTone,aA as User,b7 as VerifiedShield,b8 as VerifyIdentity,b9 as VerifyPhone,aD as Wallet,aC as WalletFilled,h as WarningFilled,aE as WithdrawalTwoTone}from"./StraitsXDecoVertical-0243d5ce.js";import{_ as Vt,a as Ht,b as Wt}from"./_tslib-73c90073.js";import Ut from"react-dom";export{aU as Alfamart,aV as Alfamidi,O as Anz,aN as Arbitrum,aO as Avalanche,aT as Base,P as Bca,Q as Bea,ap as Binance,aq as Bitgo,aQ as Bnbsmart,R as Bni,U as Bnp,V as Boc,W as Bri,X as Bsi,Y as Bss,Z as Cimb,_ as Citi,ar as Coinhako,as as Coinut,z as CrossLogo,at as Crypto,aW as DanPlusDan,b5 as Dana,$ as Danamon,o as DarkStraitsXLogo,q as DarkStraitsXUserInfoBarLogo,a0 as Dbag,a1 as Dbs,ao as Dextf,u as EarnPiggyBank,M as EmptyStraitsX,au as Ethereum,F as FaceScan,a2 as Fazz,a3 as Feb,aM as Finblox,av as Fireblocks,b6 as GoPay,aK as Gpn,a4 as Hana,aJ as Hedera,a5 as Hlb,aw as Hodlnaut,a6 as Hsbc,a7 as Icbc,a8 as Icici,b2 as IdFlag,y as IdrLogo,aX as Indomaret,S as InfoLogo,v as InterestCompoundedDaily,aZ as Jcb,a9 as Jpmc,b8 as Jumio,aY as Lawson,ax as LedgerVault,L as LevelDown,p as LightStraitsXLogo,b7 as LinkAja,ay as Liquid,ad as Mandiri,a_ as Mastercard,aa as Mbb,ab as Miz,ac as Mufg,a as MyInfoLogo,w as NoFees,x as NoLockInPeriod,N as NotesBell,b3 as OVO,ae as Ocbc,az as OnchainCustodian,af as Permata,aA as Polygon,ag as Posb,aB as QcpCapital,aL as Qris,ah as Rbs,ai as Rhb,aR as Ripple,aj as Scb,b as SendLogo,m as SgdLogo,b4 as ShopeePay,ak as Sifl,al as Smbc,aS as Solana,aC as Sparrow,B as StateError,C as StateSuccess,bb as StraitsXBusinessAccountDarkLogo,bc as StraitsXBusinessAccountLightLogo,b9 as StraitsXLogo,s as StraitsXMyInfo,bd as StraitsXPersonalAccountDarkLogo,be as StraitsXPersonalAccountLightLogo,ba as StraitsXSandboxLogo,r as StraitsxSandboxLogo,T as Target,b0 as ThreeDSecure,n as ThreeDotsLogo,c as TickLogo,aD as TokenizeXchange,aP as Tron,am as Trwi,aE as Unagii,aF as Uniswap,an as Uob,b1 as UsFlag,l as UsdLogo,h as UsdcLogo,i as UsdpLogo,j as UsdtLogo,E as VecDeposits,G as VecDesktop,H as VecEmpty,I as VecEmptyPlain,t as VecEmptyPlainGreen,J as VecMobile,K as VecRecipients,D as VecThumbnailDoc,a$ as Visa,A as WalletLogo,d as XfersLogo,e as XfersSandboxLogo,g as XidrLogo,f as XsgdLogo,k as XusdLogo,aG as Zillet,aH as Zilliqa,aI as Zilswap}from"./StraitsXPersonalAccountLightLogo-17fc73c1.js";function jt(t){var e=t.children;return tt.createElement(ht,{theme:{token:{colorPrimary:"#1890ff",borderRadius:2},components:{Button:{borderRadius:2}}}},e)}var Gt=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 a=105===t.charCodeAt(1)&&64===t.charCodeAt(0);o.insertRule(t,a?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 $t(t){function e(t,i,l,c,u){for(var p,f,m,g,v,w=0,k=0,S=0,E=0,M=0,P=0,L=m=p=0,N=0,F=0,z=0,B=0,Y=l.length,V=Y-1,H="",W="",U="",j="";N<Y;){if(f=l.charCodeAt(N),N===V&&0!==k+E+S+w&&(0!==k&&(f=47===k?10:47),E=S=w=0,Y++,V++),0===k+E+S+w){if(N===V&&(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),m=1,B=++N;N<Y;){switch(f=l.charCodeAt(N)){case 123:m++;break;case 125:m--;break;case 47:switch(f=l.charCodeAt(N+1)){case 42:case 47:t:{for(L=N+1;L<V;++L)switch(l.charCodeAt(L)){case 47:if(42===f&&42===l.charCodeAt(L-1)&&N+2!==L){N=L+1;break t}break;case 10:if(47===f){N=L+1;break t}}N=L}}break;case 91:f++;case 40:f++;case 34:case 39:for(;N++<V&&l.charCodeAt(N)!==f;);}if(0===m)break;N++}if(m=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=(m=e(i,F,m,f,u+1)).length,0<R&&(v=s(3,m,F=n(A,H,z),i,C,D,B,f,u,c),H=F.join(""),void 0!==v&&0===(B=(m=v.trim()).length)&&(f=0,m="")),0<B)switch(f){case 115:H=H.replace(_,r);case 100:case 109:case 45:m=H+"{"+m+"}";break;case 107:m=(H=H.replace(b,"$1 $2"))+"{"+m+"}",m=1===T||2===T&&a("@"+m,3)?"@-webkit-"+m+"@"+m:"@"+m;break;default:m=H+m,112===c&&(W+=m,m="")}else m=""}else m=e(i,n(i,H,z),m,c,u+1);U+=m,m=z=F=L=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===L&&(p=H.charCodeAt(0),45===p||96<p&&123>p)&&(B=(H=H.replace(" ",":")).length),0<R&&void 0!==(v=s(1,H,i,t,C,D,W.length,c,u,c))&&0===(B=(H=v.trim()).length)&&(H="\0\0"),p=H.charCodeAt(0),f=H.charCodeAt(1),p){case 0:break;case 64:if(105===f||99===f){j+=H+l.charAt(N);break}default:58!==H.charCodeAt(B-1)&&(W+=o(H,p,f,H.charCodeAt(2)))}z=F=L=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<R*I&&s(0,H,i,t,C,D,W.length,c,u,c),D=1,C++;break;case 59:case 125:if(0===k+E+S+w){D++;break}default:switch(D++,g=l.charAt(N),f){case 9:case 32:if(0===E+w+k)switch(M){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===E+k+w&&(F=z=1,g="\f"+g);break;case 108:if(0===E+k+w+O&&0<L)switch(N-L){case 2:112===M&&58===l.charCodeAt(N-3)&&(O=M);case 8:111===P&&(O=P)}break;case 58:0===E+k+w&&(L=N);break;case 44:0===k+S+E+w&&(F=1,g+="\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*M+3*P==533);else p=1;S++}break;case 64:0===k+S+E+w+L+m&&(m=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===M&&B+2!==N&&(33===l.charCodeAt(B+2)&&(W+=l.substring(B,N+1)),g="",k=0)}}0===k&&(H+=g)}P=M,M=f,N++}if(0<(B=W.length)){if(F=i,0<R&&(void 0!==(v=s(2,W,F,t,C,D,B,c,u,c))&&0===(W=v).length))return j+W+U;if(W=F.join(",")+"{"+W+"}",0!==T*O){switch(2!==T||a(W,2)||(O=0),O){case 111:W=W.replace(y,":-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}O=0}}return j+W+U}function n(t,e,n){var o=e.trim().split(m);e=o;var a=o.length,r=t.length;switch(r){case 0:case 1:var s=0;for(t=0===r?"":t[0]+" ";s<a;++s)e[s]=i(t,e[s],n).trim();break;default:var l=s=0;for(e=[];s<a;++s)for(var c=0;c<r;++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(g,"$1"+t.trim());case 58:return t.trim()+e.replace(g,"$1"+t.trim());default:if(0<1*n&&0<e.indexOf("\f"))return e.replace(g,(58===t.charCodeAt(0)?"":"$1")+t.trim())}return t+e}function o(t,e,n,i){var r=t+";",s=2*e+3*n+4*i;if(944===s){t=r.indexOf(":",9)+1;var l=r.substring(t,r.length-1).trim();return l=r.substring(0,t).trim()+l+";",1===T||2===T&&a(l,1)?"-webkit-"+l+l:l}if(0===T||2===T&&!a(r,1))return r;switch(s){case 1015:return 97===r.charCodeAt(10)?"-webkit-"+r+r:r;case 951:return 116===r.charCodeAt(3)?"-webkit-"+r+r:r;case 963:return 110===r.charCodeAt(5)?"-webkit-"+r+r:r;case 1009:if(100!==r.charCodeAt(4))break;case 969:case 942:return"-webkit-"+r+r;case 978:return"-webkit-"+r+"-moz-"+r+r;case 1019:case 983:return"-webkit-"+r+"-moz-"+r+"-ms-"+r+r;case 883:if(45===r.charCodeAt(8))return"-webkit-"+r+r;if(0<r.indexOf("image-set(",11))return r.replace(M,"$1-webkit-$2")+r;break;case 932:if(45===r.charCodeAt(4))switch(r.charCodeAt(5)){case 103:return"-webkit-box-"+r.replace("-grow","")+"-webkit-"+r+"-ms-"+r.replace("grow","positive")+r;case 115:return"-webkit-"+r+"-ms-"+r.replace("shrink","negative")+r;case 98:return"-webkit-"+r+"-ms-"+r.replace("basis","preferred-size")+r}return"-webkit-"+r+"-ms-"+r+r;case 964:return"-webkit-"+r+"-ms-flex-"+r+r;case 1023:if(99!==r.charCodeAt(8))break;return"-webkit-box-pack"+(l=r.substring(r.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+r+"-ms-flex-pack"+l+r;case 1005:return p.test(r)?r.replace(u,":-webkit-")+r.replace(u,":-moz-")+r:r;case 1e3:switch(e=(l=r.substring(13).trim()).indexOf("-")+1,l.charCodeAt(0)+l.charCodeAt(e)){case 226:l=r.replace(v,"tb");break;case 232:l=r.replace(v,"tb-rl");break;case 220:l=r.replace(v,"lr");break;default:return r}return"-webkit-"+r+"-ms-"+l+r;case 1017:if(-1===r.indexOf("sticky",9))break;case 975:switch(e=(r=t).length-10,s=(l=(33===r.charCodeAt(e)?r.substring(0,e):r).substring(t.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|l.charCodeAt(7))){case 203:if(111>l.charCodeAt(8))break;case 115:r=r.replace(l,"-webkit-"+l)+";"+r;break;case 207:case 102:r=r.replace(l,"-webkit-"+(102<s?"inline-":"")+"box")+";"+r.replace(l,"-webkit-"+l)+";"+r.replace(l,"-ms-"+l+"box")+";"+r}return r+";";case 938:if(45===r.charCodeAt(5))switch(r.charCodeAt(6)){case 105:return l=r.replace("-items",""),"-webkit-"+r+"-webkit-box-"+l+"-ms-flex-"+l+r;case 115:return"-webkit-"+r+"-ms-flex-item-"+r.replace(k,"")+r;default:return"-webkit-"+r+"-ms-flex-line-pack"+r.replace("align-content","").replace(k,"")+r}break;case 973:case 989:if(45!==r.charCodeAt(3)||122===r.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"):r.replace(l,"-webkit-"+l)+r.replace(l,"-moz-"+l.replace("fill-",""))+r;break;case 962:if(r="-webkit-"+r+(102===r.charCodeAt(5)?"-ms-"+r:"")+r,211===n+i&&105===r.charCodeAt(13)&&0<r.indexOf("transform",10))return r.substring(0,r.indexOf(";",27)+1).replace(f,"$1-webkit-$2")+r}return r}function a(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),L(2!==e?i:i.replace(S,"$1"),n,e)}function r(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,a,r,s,l,d){for(var h,u=0,p=e;u<R;++u)switch(h=P[u].call(c,t,p,n,i,o,a,r,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)&&(L=null,t?"function"!=typeof t?T=1:(T=2,L=t):T=0),l}function c(t,n){var i=t;if(33>i.charCodeAt(0)&&(i=i.trim()),i=[i],0<R){var o=s(-1,n,i,i,C,D,0,0,0,0);void 0!==o&&"string"==typeof o&&(n=o)}var a=e(A,i,n,0,0);return 0<R&&(void 0!==(o=s(-2,a,i,i,C,D,a.length,0,0,0))&&(a=o)),O=0,D=C=1,a}var d=/^\0+/g,h=/[\0\r\f]/g,u=/: */g,p=/zoo|gra/,f=/([,: ])(transform)/g,m=/,\r+?/g,g=/([\t\r\n ])*\f?&/g,b=/@(k\w+)\s*(\S*)\s*/,x=/::(place)/g,y=/:(read-only)/g,v=/[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)/,M=/([^-])(image-set\()/,D=1,C=1,O=0,T=1,A=[],P=[],R=0,L=null,I=0;return c.use=function t(e){switch(e){case void 0:case null:R=P.length=0;break;default:if("function"==typeof e)P[R++]=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 Xt=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}},qt="/*|*/",Zt=qt+"}";function Kt(t){t&&Jt.current.insert(t+"}")}var Jt={current:null},Qt=function(t,e,n,i,o,a,r,s,l,c){switch(t){case 1:switch(e.charCodeAt(0)){case 64:return Jt.current.insert(e+";"),"";case 108:if(98===e.charCodeAt(2))return""}break;case 2:if(0===s)return e+qt;break;case 3:switch(s){case 102:case 112:return Jt.current.insert(n[0]+e),"";default:return e+(0===c?qt:"")}case-2:e.split(Zt).forEach(Kt)}},te=function(t,e){if(1===t&&108===e.charCodeAt(0)&&98===e.charCodeAt(2))return""},ee="undefined"!=typeof document,ne={},ie=ee?void 0:Xt(function(){var t=Xt(function(){return{}}),e={},n={};return function(i){return void 0===i||!0===i?e:!1===i?n:t(i)}}),oe=function(t){void 0===t&&(t={});var e,n=t.key||"css";void 0!==t.prefix&&(e={prefix:t.prefix});var i=new $t(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,a,r={};if(ee){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){r[t]=!0}),t.parentNode!==o&&o.appendChild(t)})}if(ee)i.use(t.stylisPlugins)(Qt),a=function(t,e,n,o){var a=e.name;if(Jt.current=n,"production"!==process.env.NODE_ENV&&void 0!==e.map){var r=e.map;Jt.current={insert:function(t){n.insert(t+r)}}}i(t,e.styles),o&&(h.inserted[a]=!0)};else{i.use(te);var l=ne;(t.stylisPlugins||void 0!==t.prefix)&&(i.use(t.stylisPlugins),l=ie(t.stylisPlugins||ne)(t.prefix));a=function(t,e,n,o){var a=e.name,r=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===h.compat?(o&&(h.inserted[a]=!0),"development"===process.env.NODE_ENV&&void 0!==e.map?r+e.map:r):o?void(h.inserted[a]=r):r}}if("production"!==process.env.NODE_ENV){var c=/\/\*/g,d=/\*\//g;i.use(function(t,e){if(-1===t){for(;c.test(e);){if(d.lastIndex=c.lastIndex,!d.test(e))throw new Error('Your styles have an unterminated comment ("/*" without corresponding "*/").');c.lastIndex=d.lastIndex}c.lastIndex=0}}),i.use(function(t,e,n){if(-1===t){var i=e.match(/(:first|:nth|:nth-last)-child/g);i&&!0!==h.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 h={key:n,sheet:new Gt({key:n,container:o,nonce:t.nonce,speedy:t.speedy}),nonce:t.nonce,inserted:r,registered:{},insert:a};return h};function re(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var se,le={exports:{}},ce={};var de,he,ue={};var pe=re((he||(he=1,"production"===process.env.NODE_ENV?le.exports=(se||(se=1,Object.defineProperty(ce,"__esModule",{value:!0}),ce.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}),ce):le.exports=(de||(de=1,Object.defineProperty(ue,"__esModule",{value:!0}),ue.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}),ue)),le.exports));function fe(t){var e={};return function(n){return void 0===e[n]&&(e[n]=t(n)),e[n]}}var me="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",ge="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",xe=/[A-Z]|^ms/g,ye=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ve=function(t){return 45===t.charCodeAt(1)},_e=function(t){return null!=t&&"boolean"!=typeof t},we=fe(function(t){return ve(t)?t:t.replace(xe,"-$&").toLowerCase()}),ke=function(t,e){switch(t){case"animation":case"animationName":if("string"==typeof e)return e.replace(ye,function(t,e,n){return Re={name:e,styles:n,next:Re},e})}return 1===pe[t]||ve(t)||"number"!=typeof e||0===e?e:e+"px"};if("production"!==process.env.NODE_ENV){var Se=/(attr|calc|counters?|url)\(/,Ee=["normal","none","counter","open-quote","close-quote","no-open-quote","no-close-quote","initial","inherit","unset"],Me=ke,De=/^-ms-/,Ce=/-(.)/g,Oe={};ke=function(t,e){"content"===t&&("string"!=typeof e||-1===Ee.indexOf(e)&&!Se.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=Me(t,e);return""===n||ve(t)||-1===t.indexOf("-")||void 0!==Oe[t]||(Oe[t]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+t.replace(De,"ms-").replace(Ce,function(t,e){return e.toUpperCase()})+"?")),n}}var Te=!0;function Ae(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 Re={name:n.name,styles:n.styles,next:Re},n.name;if(void 0!==n.styles){var o=n.next;if(void 0!==o)for(;void 0!==o;)Re={name:o.name,styles:o.styles,next:Re},o=o.next;var a=n.styles+";";return"production"!==process.env.NODE_ENV&&void 0!==n.map&&(a+=n.map),a}return function(t,e,n){var i="";if(Array.isArray(n))for(var o=0;o<n.length;o++)i+=Ae(t,e,n[o],!1);else for(var a in n){var r=n[a];if("object"!=typeof r)null!=e&&void 0!==e[r]?i+=a+"{"+e[r]+"}":_e(r)&&(i+=we(a)+":"+ke(a,r)+";");else{if("NO_COMPONENT_SELECTOR"===a&&"production"!==process.env.NODE_ENV)throw new Error("Component selectors can only be used in conjunction with babel-plugin-emotion.");if(!Array.isArray(r)||"string"!=typeof r[0]||null!=e&&void 0!==e[r[0]]){var s=Ae(t,e,r,!1);switch(a){case"animation":case"animationName":i+=we(a)+":"+s+";";break;default:"production"!==process.env.NODE_ENV&&"undefined"===a&&console.error(ge),i+=a+"{"+s+"}"}}else for(var l=0;l<r.length;l++)_e(r[l])&&(i+=we(a)+":"+ke(a,r[l])+";")}}return i}(t,e,n);case"function":if(void 0!==t){var r=Re,s=n(t);return Re=r,Ae(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(ye,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&&Te&&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"),Te=!1),void 0===d||i?n:d}var Pe,Re,Le=/label:\s*([^\s;\n{]+)\s*;/g;"production"!==process.env.NODE_ENV&&(Pe=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//);var Ie=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="";Re=void 0;var a,r=t[0];null==r||void 0===r.raw?(i=!1,o+=Ae(n,e,r,!1)):("production"!==process.env.NODE_ENV&&void 0===r[0]&&console.error(me),o+=r[0]);for(var s=1;s<t.length;s++)o+=Ae(n,e,t[s],46===o.charCodeAt(o.length-1)),i&&("production"!==process.env.NODE_ENV&&void 0===r[s]&&console.error(me),o+=r[s]);"production"!==process.env.NODE_ENV&&(o=o.replace(Pe,function(t){return a=t,""})),Le.lastIndex=0;for(var l,c="";null!==(l=Le.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:a,next:Re,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:Re}},Ne="undefined"!=typeof document;function Fe(t,e,n){var i="";return n.split(" ").forEach(function(n){void 0!==t[n]?e.push(t[n]):i+=n+" "}),i}var ze=function(t,e,n){var i=t.key+"-"+e.name;if((!1===n||!1===Ne&&void 0!==t.compat)&&void 0===t.registered[i]&&(t.registered[i]=e.styles),void 0===t.inserted[e.name]){var o="",a=e;do{var r=t.insert("."+i,a,t.sheet,!0);Ne||void 0===r||(o+=r),a=a.next}while(void 0!==a);if(!Ne&&0!==o.length)return o}};function Be(t,e){if(void 0===t.inserted[e.name])return t.insert("",e,t.sheet,!0)}function Ye(t,e,n){var i=[],o=Fe(t,i,n);return i.length<2?n:o+e(i)}var Ve,He,We,Ue,je,Ge,$e,Xe,qe,Ze,Ke,Je,Qe,tn=function t(e){for(var n="",i=0;i<e.length;i++){var o=e[i];if(null!=o){var a=void 0;switch(typeof o){case"boolean":break;case"object":if(Array.isArray(o))a=t(o);else for(var r in a="",o)o[r]&&r&&(a&&(a+=" "),a+=r);break;default:a=o}a&&(n&&(n+=" "),n+=a)}}return n},en=function(t){var e=oe(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=Ie(n,e.registered,void 0);return ze(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 Ye(e.registered,n,tn(i))},injectGlobal:function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];var o=Ie(n,e.registered);Be(e,o)},keyframes:function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];var o=Ie(n,e.registered),a="animation-"+o.name;return Be(e,{name:o.name,styles:"@keyframes "+a+"{"+o.styles+"}"}),a},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:Fe.bind(null,e.registered),merge:Ye.bind(null,e.registered,n)}}(),nn=en.cx,on=en.css;!function(t){t.DEFAULT="#1B2736",t.T10="#2C4058",t.T20="#3E597A",t.T30="#4F719C"}(Ve||(Ve={})),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"}(He||(He={})),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"}(We||(We={})),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"}(Ue||(Ue={})),function(t){t.S400="#B71515",t.S300="#E22726",t.S100="#FFF0F0"}(je||(je={})),function(t){t.DEFAULT="#FFFFFF"}(Ge||(Ge={})),function(t){t.S400="#8D7700",t.S300="#E5C412",t.S100="#FFFBE9"}($e||($e={})),function(t){t.NEUTRAL="#FFFFFF",t.SECONDARY_NEUTRAL="#F6F7F9",t.PRIMARY="#00A965",t.SECONDARY="#F6FEFB"}(Xe||(Xe={})),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"}(qe||(qe={})),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)"}(Ze||(Ze={})),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"}(Ke||(Ke={})),function(t){t.INFO="#0C45E1",t.POSITIVE="#257C58",t.WARNING="#FC9A07",t.CRITICAL="#DF1312"}(Je||(Je={})),function(t){t.BUTTON_DISABLED="#BDBDBD",t.BUTTON_PRIMARY="#00A965",t.LABEL_INPUT="#757575",t.HELPER_INPUT="#757575",t.PLACEHOLDER_INPUT="#B6B6B6"}(Qe||(Qe={}));var rn,sn={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"}}},ln={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;"},cn=function(t,e){var n,i,o,a;return on(rn||(rn=Vt(["\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!==(i=e.align)&&void 0!==i?i:"inherit",sn[t].FONT_SIZE[e.size],sn[t].LINE_HEIGHT[e.size],sn[t].FONT_WEIGHT[e.size],sn[t].LETTER_SPACING[e.size],null!==(o=e.color)&&void 0!==o?o:Ze.ON_NEUTRAL,"label"===t?"Red Hat Display":"Hanken Grotesk",ln[null!==(a=e.overflow)&&void 0!==a?a:"normal"])};var dn={Display:function(t){var e=t.as,n=void 0===e?"h1":e,i=t.children,o=t.className,a=Ht(t,["as","children","className"]);return tt.createElement(n,Wt({className:nn(cn("display",t),o)},a),i)},Headline:function(t){var e=t.as,n=void 0===e?"h2":e,i=t.children,o=t.className,a=Ht(t,["as","children","className"]);return tt.createElement(n,Wt({className:nn(cn("headline",t),o)},a),i)},Title:function(t){var e=t.as,n=void 0===e?"h2":e,i=t.children,o=t.className,a=Ht(t,["as","children","className"]);return tt.createElement(n,Wt({className:nn(cn("title",t),o)},a),i)},Label:function(t){var e=t.as,n=void 0===e?"h5":e,i=t.children,o=t.className,a=Ht(t,["as","children","className"]);return tt.createElement(n,Wt({className:nn(cn("label",t),o)},a),i)},Body:function(t){var e=t.as,n=void 0===e?"span":e,i=t.children,o=t.className,a=Ht(t,["as","children","className"]);return tt.createElement(n,Wt({className:nn(cn("body",t),o)},a),i)}};function hn(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var un=/^((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)-.*))$/,pn=fe(function(t){return un.test(t)||111===t.charCodeAt(0)&&110===t.charCodeAt(1)&&t.charCodeAt(2)<91});function fn(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var mn="undefined"!=typeof document,gn=Object.prototype.hasOwnProperty,bn=et("undefined"!=typeof HTMLElement?oe():null),xn=et({});bn.Provider;var yn=function(t){return nt(function(e,n){return it(bn.Consumer,null,function(i){return t(e,i,n)})})};if(!mn){var vn=function(t){function e(e,n,i){var o;return(o=t.call(this,e,n,i)||this).state={value:oe()},o}return fn(e,t),e.prototype.render=function(){return it(bn.Provider,this.state,this.props.children(this.state.value))},e}(ot);yn=function(t){return function(e){return it(bn.Consumer,null,function(n){return null===n?it(vn,null,function(n){return t(e,n)}):t(e,n)})}}}var _n="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",wn="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",kn=function(){return null},Sn=function(t,e,n,i){var o=null===n?e.css:e.css(n);"string"==typeof o&&void 0!==t.registered[o]&&(o=t.registered[o]);var a=e[_n],r=[o],s="";"string"==typeof e.className?s=Fe(t.registered,r,e.className):null!=e.className&&(s=e.className+" ");var l=Ie(r);if("production"!==process.env.NODE_ENV&&-1===l.name.indexOf("-")){var c=e[wn];c&&(l=Ie([l,"label:"+c+";"]))}var d=ze(t,l,"string"==typeof a);s+=t.key+"-"+l.name;var h={};for(var u in e)!gn.call(e,u)||"css"===u||u===_n||"production"!==process.env.NODE_ENV&&u===wn||(h[u]=e[u]);h.ref=i,h.className=s;var p=it(a,h),f=it(kn,null);if(!mn&&void 0!==d){for(var m,g=l.name,b=l.next;void 0!==b;)g+=" "+b.name,b=b.next;f=it("style",((m={})["data-emotion-"+t.key]=g,m.dangerouslySetInnerHTML={__html:d},m.nonce=t.sheet.nonce,m))}return it(rt,null,f,p)},En=yn(function(t,e,n){return"function"==typeof t.css?it(xn.Consumer,null,function(i){return Sn(e,t,i,n)}):Sn(e,t,null,n)});function Mn(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return Ie(e)}"production"!==process.env.NODE_ENV&&(En.displayName="EmotionCssPropInternal");var Dn=!1,Cn=yn(function(t,e){"production"===process.env.NODE_ENV||Dn||!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?"),Dn=!0);var n=t.styles;if("function"==typeof n)return it(xn.Consumer,null,function(t){var i=Ie([n(t)]);return it(On,{serialized:i,cache:e})});var i=Ie([n]);return it(On,{serialized:i,cache:e})}),On=function(t){function e(e,n,i){return t.call(this,e,n,i)||this}fn(e,t);var n=e.prototype;return n.componentDidMount=function(){this.sheet=new Gt({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()},n.componentDidUpdate=function(t){t.serialized.name!==this.props.serialized.name&&this.insertStyles()},n.insertStyles=function(){if(void 0!==this.props.serialized.next&&ze(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)},n.componentWillUnmount=function(){this.sheet.flush()},n.render=function(){if(!mn){for(var t=this.props.serialized,e=t.name,n=t.styles,i=t.next;void 0!==i;)e+=" "+i.name,n+=i.styles,i=i.next;var o,a=!0===this.props.cache.compat,r=this.props.cache.insert("",{name:e,styles:n},this.sheet,a);if(!a)return it("style",((o={})["data-emotion-"+this.props.cache.key]=e,o.dangerouslySetInnerHTML={__html:r},o.nonce=this.props.cache.sheet.nonce,o))}return null},e}(ot),Tn=function(){var t=Mn.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_"}}},An=function t(e){for(var n=e.length,i=0,o="";i<n;i++){var a=e[i];if(null!=a){var r=void 0;switch(typeof a){case"boolean":break;case"object":if(Array.isArray(a))r=t(a);else for(var s in r="",a)a[s]&&s&&(r&&(r+=" "),r+=s);break;default:r=a}r&&(o&&(o+=" "),o+=r)}}return o};var Pn=function(){return null};yn(function(t,e){return it(xn.Consumer,null,function(n){var i="",o="",a=!1,r=function(){if(a&&"production"!==process.env.NODE_ENV)throw new Error("css can only be used during render");for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var s=Ie(n,e.registered);if(mn)ze(e,s,!1);else{var l=ze(e,s,!1);void 0!==l&&(i+=l)}return mn||(o+=" "+s.name),e.key+"-"+s.name},s={css:r,cx:function(){if(a&&"production"!==process.env.NODE_ENV)throw new Error("cx can only be used during render");for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return function(t,e,n){var i=[],o=Fe(t,i,n);return i.length<2?n:o+e(i)}(e.registered,r,An(n))},theme:n},l=t.children(s);a=!0;var c,d=it(Pn,null);mn||0===i.length||(d=it("style",((c={})["data-emotion-"+e.key]=o.substring(1),c.dangerouslySetInnerHTML={__html:i},c.nonce=e.sheet.nonce,c)));return it(rt,null,d,l)})});var Rn=pn,Ln=function(t){return"theme"!==t&&"innerRef"!==t},In=function(t){return"string"==typeof t&&t.charCodeAt(0)>96?Rn:Ln};function Nn(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 Fn,zn,Bn,Yn,Vn,Hn,Wn,Un,jn,Gn="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",$n="undefined"!=typeof document,Xn=function(){return null},qn=function t(e,n){if("production"!==process.env.NODE_ENV&&void 0===e)throw new Error("You are trying to create a styled element with an undefined component.\nYou may have forgotten to import it.");var i,o,a;void 0!==n&&(i=n.label,a=n.target,o=e.__emotion_forwardProp&&n.shouldForwardProp?function(t){return e.__emotion_forwardProp(t)&&n.shouldForwardProp(t)}:n.shouldForwardProp);var r=e.__emotion_real===e,s=r&&e.__emotion_base||e;"function"!=typeof o&&r&&(o=e.__emotion_forwardProp);var l=o||In(s),c=!l("as");return function(){var d=arguments,h=r&&void 0!==e.__emotion_styles?e.__emotion_styles.slice(0):[];if(void 0!==i&&h.push("label:"+i+";"),null==d[0]||void 0===d[0].raw)h.push.apply(h,d);else{"production"!==process.env.NODE_ENV&&void 0===d[0][0]&&console.error(Gn),h.push(d[0][0]);for(var u=d.length,p=1;p<u;p++)"production"!==process.env.NODE_ENV&&void 0===d[0][p]&&console.error(Gn),h.push(d[p],d[0][p])}var f=yn(function(t,e,n){return it(xn.Consumer,null,function(r){var d=c&&t.as||s,u="",p=[],f=t;if(null==t.theme){for(var m in f={},t)f[m]=t[m];f.theme=r}"string"==typeof t.className?u=Fe(e.registered,p,t.className):null!=t.className&&(u=t.className+" ");var g=Ie(h.concat(p),e.registered,f),b=ze(e,g,"string"==typeof d);u+=e.key+"-"+g.name,void 0!==a&&(u+=" "+a);var x=c&&void 0===o?In(d):l,y={};for(var v in t)c&&"as"===v||x(v)&&(y[v]=t[v]);y.className=u,y.ref=n||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===i?"":" in the usage of `"+i+"`"));var _=it(d,y),w=it(Xn,null);if(!$n&&void 0!==b){for(var k,S=g.name,E=g.next;void 0!==E;)S+=" "+E.name,E=E.next;w=it("style",((k={})["data-emotion-"+e.key]=S,k.dangerouslySetInnerHTML={__html:b},k.nonce=e.sheet.nonce,k))}return it(rt,null,w,_)})});return f.displayName=void 0!==i?i:"Styled("+("string"==typeof s?s:s.displayName||s.name||"Component")+")",f.defaultProps=e.defaultProps,f.__emotion_real=f,f.__emotion_base=s,f.__emotion_styles=h,f.__emotion_forwardProp=o,Object.defineProperty(f,"toString",{value:function(){return void 0===a&&"production"!==process.env.NODE_ENV?"NO_COMPONENT_SELECTOR":"."+a}}),f.withComponent=function(e,i){return t(e,void 0!==i?function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Nn(Object(n),!0).forEach(function(e){hn(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Nn(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}({},n||{},{},i):n).apply(void 0,h)},f}}.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){qn[t]=qn(t)}),function(t){t.B400="#0C45E1",t.B300="#1863B0",t.B200="#C3DCF6",t.B100="#EEF6FF"}(Fn||(Fn={})),function(t){t.G400="#257C58",t.G300="#43CC32",t.G200="#C8FAC0",t.G100="#F0F9F4"}(zn||(zn={})),function(t){t.R400="#DF1312",t.R300="#E22726",t.R200="#FFC9C9",t.R100="#FFF1F1"}(Bn||(Bn={})),function(t){t.Y400="#FC9A07",t.Y300="#FC9A07",t.Y200="#FFEB7E",t.Y100="#FFFAEA"}(Yn||(Yn={})),function(t){t.BLACK="#1B2736",t.G500="#505454",t.G400="#959595",t.G300="#D8D8D8",t.G200="#E8E8E8",t.G100="#F0F0F0",t.WHITE="#FFFFFF"}(Vn||(Vn={})),function(t){t.PRIMARY_BLUE="#1863B0",t.PRIMARY_BLACK="#1B2736",t.PRIMARY_WHITE="#FFFFFF",t.SECONDARY_GREEN="#43CC32",t.SECONDARY_RED="#E22726",t.SECONDARY_YELLOW="#FC9A07"}(Hn||(Hn={})),function(t){t.SUCCESS="#43CC32",t.INFO="#1863B0",t.WARNING="#FC9A07",t.ERROR="#E22726",t.NEUTRAL="#D8D8D8"}(Wn||(Wn={})),function(t){t.SUCCESS="#257C58",t.INFO="#0C45E1",t.WARNING="#FC9A07",t.ERROR="#DF1312",t.NEUTRAL="#959595"}(Un||(Un={})),function(t){t.SUCCESS="#F0F9F4",t.INFO="#EEF6FF",t.WARNING="#FFFAEA",t.ERROR="#FFF1F1",t.NEUTRAL="#F0F0F0"}(jn||(jn={}));var Zn,Kn,Jn,Qn,ti=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")},ei=ti(zn.G400,zn.G400,zn.G100),ni=ti(Yn.Y400,Yn.Y400,Yn.Y100),ii=ti(Bn.R400,Bn.R400,Bn.R100),oi="\n border: none !important;\n background-color: ".concat(We.CONTRAST," !important;\n \n .ant-alert-icon {\n color: ").concat(Ge.DEFAULT," !important;\n }\n \n .ant-alert-close-icon {\n color: ").concat(Ge.DEFAULT," !important;\n }\n"),ri=qn(ut)(Zn||(Zn=Vt(["\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&&ei},function(t){return"warning"===t.type&&ni},function(t){return"error"===t.type&&ii},function(t){return"info"===t.type&&oi}),si=qn.div(Kn||(Kn=Vt(["\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"]))),li=qn.div(Jn||(Jn=Vt(["\n width: 24px;\n height: 24px;\n"],["\n width: 24px;\n height: 24px;\n"]))),ci=function(t){var e,n=t.type,i=t.message,o=t.closable,a=t.icon,r=t.showIcon,s=t.onClose,l=t.title,c=st(!0),d=c[0],h=c[1];return d?tt.createElement(ri,{type:n||"warning",message:tt.createElement(function(){var t="info"===n?Ge.DEFAULT:Ve.DEFAULT;return tt.createElement(si,null,l&&tt.createElement(dn.Label,{color:t,size:"md"},l),tt.createElement(dn.Body,{color:t,size:"md"},i))},null),closable:o,icon:(e=a?tt.cloneElement(a,{width:20,height:20}):tt.createElement(Tt,{width:20,height:20}),tt.createElement(li,null,e)),showIcon:r,onClose:function(){h(!1),s&&s()},closeIcon:tt.createElement(function(){return tt.createElement(At,{width:14,height:14})},null)}):null},di="@media (min-width: 1200px)",hi="@media (min-width: 992px)",ui="@media (min-width: 768px)",pi="@media (min-width: 576px)",fi="Hanken Grotesk",mi="Red Hat Display";!function(t){t[t.BOLD=700]="BOLD",t[t.MEDIUM=500]="MEDIUM",t[t.REGULAR=400]="REGULAR"}(Qn||(Qn={}));var gi,bi="\n color: ".concat(Ve.DEFAULT,";\n font-family: ").concat(fi,", ").concat("Inter",";\n margin: 0;\n"),xi="\n font-weight: ".concat(Qn.BOLD,";\n font-size: 24px;\n line-height: 28px;\n font-family: ").concat(mi,";\n\n ").concat(hi," {\n font-size: 24px;\n line-height: 29px;\n }\n"),yi="\n font-weight: ".concat(Qn.BOLD,";\n font-size: 20px;\n line-height: 23px;\n font-family: ").concat(mi,";\n\n ").concat(hi," {\n font-size: 18px;\n line-height: 22px;\n }\n"),vi="\n font-weight: ".concat(Qn.BOLD,";\n font-size: 18px;\n line-height: 21px;\n font-family: ").concat(mi,";\n\n ").concat(hi," {\n font-size: 16px;\n line-height: 19px;\n }\n"),_i="\n font-weight: ".concat(Qn.REGULAR,";\n font-size: 16px;\n line-height: 19px;\n font-family: ").concat(fi,";\n\n ").concat(hi," {\n font-size: 14px;\n line-height: 17px;\n }\n"),wi="\n font-weight: ".concat(Qn.REGULAR,";\n font-size: 12px;\n line-height: 18px;\n font-family: ").concat(fi,";\n\n ").concat(hi," {\n line-height: 15px;\n }\n"),ki="\n font-weight: ".concat(Qn.BOLD,";\n font-size: 16px;\n font-family: ").concat(mi,";\n"),Si="\n font-weight: ".concat(Qn.BOLD,";\n font-size: 14px;\n font-family: ").concat(mi,";\n"),Ei="\n font-weight: ".concat(Qn.BOLD,";\n font-size: 16px;\n line-height: 19px;\n font-family: ").concat(mi,";\n\n ").concat(hi," {\n font-size: 14px;\n line-height: 17px;\n }\n"),Mi="\n font-weight: ".concat(Qn.BOLD,";\n font-size: 14px;\n line-height: 24px;\n font-family: ").concat(fi,";\n"),Di="\n font-weight: ".concat(Qn.REGULAR,";\n font-size: 14px;\n line-height: 24px;\n font-family: ").concat(mi,";\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)"}(gi||(gi={}));var Ci="10px",Oi="15px",Ti="20px",Ai="30px",Pi={spacing:{xs:"5px",sm:Ci,md:Oi,lg:Ti,xl:Ai},layout:{desktop:"24px",mobile:"16px"},shadow:{raised:gi.RAISED,action:gi.ACTION,overlay:gi.OVERLAY,reverseRaised:gi.REVERSE_RAISED},color:{background:{neutral:Xe.NEUTRAL,secondaryNeutral:Xe.SECONDARY_NEUTRAL,primary:Xe.PRIMARY,secondary:Xe.SECONDARY},surface:{neutral:qe.NEUTRAL,secondaryNeutral:qe.SECONDARY_NEUTRAL,disabledSurface:qe.DISABLED_SURFACE,disabledOnSurface:qe.DISABLED_ON_SURFACE,dark:qe.DARK,SubdueInfo:qe.SUBDUE_INFO,subduePositive:qe.SUBDUE_POSITIVE,subdueCritical:qe.SUBDUE_CRITICAL,subdueWarning:qe.SUBDUE_WARNING},base:{primary:Ze.PRIMARY,primary2:Ze.PRIMARY_2,primary3:Ze.PRIMARY_3,onContainer:Ze.ON_CONTAINER,onNeutral:Ze.ON_NEUTRAL,onNeutralSecondary:Ze.ON_NEUTRAL_SECONDARY,line:Ze.LINE,link:Ze.LINK,overlay:Ze.OVERLAY},interactive:{hoverPrimary:Ke.HOVER_PRIMARY,focusDefault:Ke.FOCUS_DEFAULT,pressedPrimary:Ke.PRESSED_PRIMARY,selected:Ke.SELECTED,hoverSurface:Ke.HOVER_SURFACE,focusSurface:Ke.FOCUS_SURFACE,pressedSurface:Ke.PRESSED_SURFACE,hoverCritical:Ke.HOVER_CRITICAL,pressedCritical:Ke.PRESSED_CRITICAL},status:{info:Je.INFO,positive:Je.POSITIVE,warning:Je.WARNING,critical:Je.CRITICAL},component:{buttonDisabled:Qe.BUTTON_DISABLED,buttonPrimary:Qe.BUTTON_PRIMARY,labelInput:Qe.LABEL_INPUT,helperInput:Qe.HELPER_INPUT,placeholderInput:Qe.PLACEHOLDER_INPUT}},text:{default:Ve.DEFAULT,white:Ge.DEFAULT},button:{background:Ge.DEFAULT,color:We.DEFAULT,border:We.BASE,hover:Ve.T10},actionButton:{color:Ue.S400,hover:Ue.T10},neutral:{text:Ue.S400,emphasis:Ue.S300,border:Ue.S200,background:Ue.S100,white:Ge.DEFAULT,bluish:Ue.BLUISH},success:{text:We.S400,emphasis:We.S300,border:We.S300,background:We.S100},warning:{text:$e.S400,emphasis:$e.S300,border:$e.S300,background:$e.S100},error:{text:je.S400,emphasis:je.S300,border:je.S300,background:je.S100},notification:{text:He.S300,emphasis:He.DEFAULT,background:He.S100},card:{background:{default:Ge.DEFAULT,dark:Ve.T10}},divider:{background:Ue.S200}},Ri=Wt(Wt({},Pi),{brand:{primary:{default:He.DEFAULT,emphasis:He.S300,background:He.S100,contrast:Ge.DEFAULT,illustration:He.DEFAULT},action:{default:He.DEFAULT,hover:He.T10,disabledOpacity:.7}}}),Li=Wt(Wt({},Pi),{brand:{primary:{default:We.BASE,emphasis:We.DEFAULT,background:We.G100,contrast:We.CONTRAST,illustration:We.S500,link:He.LINK},secondary:{onSurface:Ue.OUTLINE,action:{hover:We.HOVER_SECONDARY,pressed:We.PRESSED_SECONDARY}},tertiary:{action:{hover:We.HOVER_TERTIARY,pressed:We.PRESSED_TERTIARY}},action:{default:We.S500,hover:We.HOVER,pressed:We.PRESSED,disabledOpacity:.7},line:{base:Ue.BASE}}});function Ii(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))}}Ii('@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 Ni,Fi,zi,Bi,Yi,Vi,Hi=function(){return tt.createElement(Cn,{styles:Mn(Ni||(Ni=Vt(["\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 "])))})},Wi=tt.createContext(Li),Ui=function(t){var e=t.theme,n=void 0===e?Li:e,i=t.children;return tt.createElement(Wi.Provider,{value:n},tt.createElement(Hi,null),i)},ji=function(){var t=tt.useContext(Wi);if(void 0===t)throw new Error("useTheme must be used within a ThemeProvider");return t},Gi="\n padding: 0;\n border-radius: 99px;\n display: flex;\n align-items: center;\n justify-content: center;\n",$i="\n ".concat(Gi,"\n width: 48px;\n height: 48px;\n"),Xi="\n ".concat(Gi,"\n width: 36px;\n height: 36px;\n"),qi=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")},Zi=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")},Ki=qi(Li.brand.action.default,Li.brand.primary.contrast,Li.brand.action.hover,Li.brand.action.pressed),Ji=qi(Li.color.surface.neutral,Li.brand.secondary.onSurface,Li.color.interactive.hoverSurface,Li.color.interactive.pressedSurface,"1px solid ".concat(Li.brand.line.base)),Qi=qi("transparent",Li.brand.secondary.onSurface,Li.color.interactive.hoverSurface,Li.color.interactive.pressedSurface,"none"),to={primary:Zi(Li.color.surface.disabledSurface,Li.color.surface.disabledOnSurface),secondary:Zi(Li.color.surface.disabledSurface,Li.color.surface.disabledOnSurface),tertiary:Zi(Li.color.surface.disabledSurface,Li.color.surface.disabledOnSurface)},eo=function(t){var e=t.type,n=void 0===e?"primary":e,i=t.size,o=t.iconColor,a=t.isDisabled,r=void 0!==a&&a,s=t.isFullWidth,l=void 0!==s&&s,c=t.className,d=void 0===c?"":c,h=t.children,u=t.icon,p=Ht(t,["type","size","iconColor","isDisabled","isFullWidth","className","children","icon"]),f=ji(),m=f.brand,g=f.button,b=f.actionButton,x=f.color,y="\n background-color: ".concat(m.action.default," !important;\n color: ").concat(m.primary.contrast," !important;\n border: none !important;\n\n &:focus {\n background-color: ").concat(m.action.default," !important;\n border: none !important;\n }\n \n &:active {\n background-color: ").concat(m.action.pressed," !important;\n border: none !important;\n }\n \n &:hover {\n background-color: ").concat(m.action.hover," !important;\n border: none !important;\n }\n "),v="\n background-color: ".concat(g.background," !important;\n color: ").concat(m.primary.contrast," !important;\n border: 1px solid ").concat(g.border," !important;\n\n &:focus {\n background-color: ").concat(g.background," !important;\n border: 1px solid ").concat(g.border," !important;\n }\n\n &:hover {\n background-color: ").concat(m.secondary.action.hover," !important;\n border: 1px solid ").concat(g.border," !important;\n }\n\n &:active {\n background-color: ").concat(m.secondary.action.pressed," !important;\n border: 1px solid ").concat(g.border," !important;\n }\n\n &[ant-click-animating-without-extra-node]:after {\n --antd-wave-shadow-color: ").concat(Li.brand.primary.default,";\n }\n "),_="\n background-color: transparent !important;\n color: ".concat(m.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(m.tertiary.action.hover," !important;\n border: none !important;\n }\n\n &:active {\n background-color: ").concat(m.tertiary.action.pressed," !important;\n border: none !important;\n }\n "),w="\n cursor: not-allowed !important;\n background-color: ".concat(x.surface.disabledSurface," !important;\n color: ").concat(x.surface.disabledOnSurface," !important;\n border: none !important;\n \n &:hover, &:focus, &:active {\n cursor: not-allowed !important;\n background-color: ").concat(x.surface.disabledSurface," !important;\n color: ").concat(x.surface.disabledOnSurface," !important;\n border: none !important;\n }\n "),k="\n cursor: not-allowed !important;\n background-color: ".concat(g.background," !important;\n color: ").concat(x.surface.disabledOnSurface," !important;\n border: 1px solid ").concat(Ue.S300," !important;\n \n &:hover, &:focus, &:active {\n cursor: not-allowed !important;\n background-color: ").concat(g.background," !important;\n color: ").concat(x.surface.disabledOnSurface," !important;\n border: 1px solid ").concat(Ue.BASE," !important;\n }\n "),S="\n cursor: not-allowed !important;\n background-color: transparent !important;\n color: ".concat(x.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(x.surface.disabledOnSurface," !important;\n border: none !important;\n }\n "),E="\n color: ".concat(b.color,";\n\n &:focus {\n color: ").concat(b.color,";\n }\n\n &:hover {\n color: ").concat(b.hover,";\n }\n\n &:active {\n color: ").concat(b.color,";\n }\n "),M="\n color: ".concat(m.action.default,";\n\n &:focus {\n color: ").concat(m.action.default,";\n }\n\n &:hover {\n color: ").concat(m.action.hover,";\n }\n\n &:active {\n color: ").concat(m.action.default,";\n }\n "),D=qn(pt)(Fi||(Fi=Vt(["\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",bi,"small"===i?Si:ki,"primary"===n&&y,"secondary"===n&&v,"tertiary"===n&&_,function(){if(!r)return"";switch(n){case"primary":default:return w;case"secondary":return k;case"tertiary":return S}}(),l&&"\n width: 100%;\n ","primary"===o?M:E,m.primary.contrast),C=qn(pt)(zi||(zi=Vt(["\n &.ant-btn {\n ",";\n ","\n ","\n ","\n ","\n ","\n ","\n }\n "],["\n &.ant-btn {\n ",";\n ","\n ","\n ","\n ","\n ","\n ","\n }\n "])),bi,"small"===i?Xi:$i,"primary"===n&&Ki,"secondary"===n&&Ji,"tertiary"===n&&Qi,function(t){return"\n & > svg {\n height: ".concat("small"===t?"20px":"24px",";\n width: ").concat("small"===t?"20px":"24px",";\n }\n")}(i),r&&function(t){return to[t]||to.primary}(n)),O=r?"straitsx-button-disabled":void 0;return u?tt.createElement(C,Wt({className:"".concat(d," ").concat(O),disabled:r},p),u):tt.createElement(D,Wt({className:"".concat(d," ").concat(O),disabled:r},p),h)},no=function(t){var e=t.icon,n=t.type,i=t.disabled,o=Ht(t,["icon","type","disabled"]),a=ji(),r=a.brand,s=a.actionButton,l="\n cursor: auto;\n pointer-events: none;\n opacity: ".concat(r.action.disabledOpacity,";\n "),c="\n color: ".concat(s.color,";\n\n &:focus {\n color: ").concat(s.color,";\n }\n\n &:hover {\n color: ").concat(s.hover,";\n }\n\n &:active {\n color: ").concat(s.color,";\n }\n "),d="\n color: ".concat(r.action.default,";\n\n &:focus {\n color: ").concat(r.action.default,";\n }\n\n &:hover {\n color: ").concat(r.action.hover,";\n }\n\n &:active {\n color: ").concat(r.action.default,";\n }\n "),h=qn(eo)(Bi||(Bi=Vt(["\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===i&&l,"primary"===n?d:c);return tt.createElement(h,Wt({type:"secondary",size:"small"},o),tt.createElement(function(){return tt.cloneElement(e,{width:17,height:17})},null))},io="Hanken Grotesk",oo="Inter";!function(t){t[t.BOLD=700]="BOLD",t[t.MEDIUM=500]="MEDIUM",t[t.REGULAR=400]="REGULAR"}(Yi||(Yi={})),function(t){t.H1="24px",t.H1_MOBILE="24px",t.H2="18px",t.H2_MOBILE="20px",t.H3="16px",t.H3_MOBILE="18px",t.H4="14px",t.P1="14px",t.P1_MOBILE="16px",t.SMALL="12px",t.SMALL_MOBILE="14px"}(Vi||(Vi={}));var ro,so={large:{height:"48px",borderRadius:"12px",padding:"12px 16px"},small:{height:"36px",borderRadius:"8px",padding:"8px 12px"}};!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"}(ro||(ro={}));var lo,co,ho,uo,po,fo,mo,go,bo,xo,yo,vo,_o,wo,ko,So,Eo,Mo,Do,Co,Oo,To,Ao=function(t){var e,n=t.className,i=t.alignTitle,o=void 0===i?"center":i,a=t.alignBody,r=void 0===a?"left":a,s=t.type,l=void 0===s?"default":s,c=Ht(t,["className","alignTitle","alignBody","type"]),d=ji(),h=d.card,u=d.text,p=d.neutral,f="\n color: ".concat("default"===l?u.default:u.white,";\n\n & > div > div {\n color: ").concat("default"===l?u.default:u.white,";\n }\n\n h1 {\n color: ").concat("default"===l?u.default:u.white,";\n }\n "),m=on(lo||(lo=Vt(["\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 "])),p.border,"default"===l?h.background.default:h.background.dark,Yi.BOLD,Vi.P1_MOBILE,ro.P1_MOBILE,f,f,Yi.BOLD,Vi.P1_MOBILE,ro.P1_MOBILE,f,Yi.REGULAR,Vi.P1_MOBILE,ro.P1_MOBILE,f);return tt.createElement(ft,Wt({className:nn(m,n,(e=o,on(co||(co=Vt(["\n .ant-card-head-wrapper {\n align-items: ",";\n }\n "],["\n .ant-card-head-wrapper {\n align-items: ",";\n }\n "])),e)),function(t){return on(ho||(ho=Vt(["\n .ant-card-body {\n text-align: ",";\n }\n "],["\n .ant-card-body {\n text-align: ",";\n }\n "])),t)}(r))},c))},Po=qn.h1(uo||(uo=Vt(["\n ",";\n ",";\n"],["\n ",";\n ",";\n"])),bi,xi),Ro=qn.h2(po||(po=Vt(["\n ",";\n ",";\n"],["\n ",";\n ",";\n"])),bi,yi),Lo=qn.h3(fo||(fo=Vt(["\n ",";\n ",";\n"],["\n ",";\n ",";\n"])),bi,vi),Io=qn.div(mo||(mo=Vt(["\n ",";\n ",";\n"],["\n ",";\n ",";\n"])),bi,_i),No=qn.div(go||(go=Vt(["\n ",";\n ",";\n"],["\n ",";\n ",";\n"])),bi,Ei),Fo=qn.div(bo||(bo=Vt(["\n ",";\n ",";\n"],["\n ",";\n ",";\n"])),bi,wi),zo=qn.h4(xo||(xo=Vt(["\n ",";\n ",";\n"],["\n ",";\n ",";\n"])),bi,Ei),Bo={xs:"5px",sm:Ci,md:Oi,lg:Ti,xl:Ai},Yo=function(t){var e=t.spacing,n=Ht(t,["spacing"]),i=ji().divider,o=qn.hr(yo||(yo=Vt(["\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?Bo[e]:0,e?Bo[e]:0,i.background);return tt.createElement(o,Wt({},n))},Vo=function(t){var e=t.children,n=t.title,i=t.footer,o=ji(),a=o.spacing,r=o.neutral,s=o.layout,l=qn(Ao)(vo||(vo=Vt(["\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 "])),r.white,r.border,!i&&"display: none;",hi,s.desktop),c=qn.div(_o||(_o=Vt(["\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 "])),s.mobile,hi,a.md),d=qn.div(wo||(wo=Vt(["\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=qn.div(ko||(ko=Vt(["\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 tt.createElement(l,{title:tt.createElement(c,null,tt.createElement(d,null,n),tt.createElement(Yo,{spacing:"lg"}),tt.createElement(Io,null,e))},tt.createElement(h,null,i))},Ho=function(t){var e=t.header,n=t.body,i=t.defaultOpen,o=void 0!==i&&i,a=t.headerHeightDesktop,r=void 0===a?95:a,s=t.headerHeightMobile,l=void 0===s?95:s,c=t.toggleText,d=t.onCloseToggleText,h=void 0===d?c:d,u=t.additionalHeaderItem,p=t.withBoxShadow,f=void 0!==p&&p,m=st(o),g=m[0],b=m[1];return tt.createElement(Wo,{open:g,headerHeightDesktop:r,headerHeightMobile:l,withBoxShadow:f},tt.createElement(Uo,{onClick:function(){return b(function(t){return!t})},headerHeightDesktop:r,headerHeightMobile:l},tt.createElement(jo,null,e,tt.createElement(Xo,null,c&&tt.createElement(Go,null,g?h:c),tt.createElement($o,{open:g}))),u&&tt.createElement(tt.Fragment,null,u)),tt.createElement(Yo,null),tt.createElement("div",null,n))},Wo=qn.div(So||(So=Vt(["\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},hi,function(t){return t.headerHeightDesktop},function(t){return t.open&&"\n max-height: 2000px !important;\n ".concat(hi," {\n max-height: 1200px !important;\n }\n ")}),Uo=qn.div(Eo||(Eo=Vt(["\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},hi,function(t){return t.headerHeightDesktop}),jo=qn.div(Mo||(Mo=Vt(["\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"]))),Go=qn(Io)(Do||(Do=Vt(["\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"])),hi),$o=qn(Pt)(Co||(Co=Vt(["\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)"}),Xo=qn.div(Oo||(Oo=Vt(["\n display: flex;\n align-items: center;\n"],["\n display: flex;\n align-items: center;\n"]))),qo=function(t){var e=t.icon,n=t.type,i=void 0===n?"default":n,o=t.iconWidth,a=void 0===o?18:o,r=Ht(t,["icon","type","iconWidth"]),s=ji(),l=s.brand,c=s.neutral,d=s.success,h=s.warning,u=s.error,p="\n color: ".concat(c.text,";\n background: ").concat(c.background,";\n "),f="\n color: ".concat(l.primary.default,";\n background: ").concat(l.primary.background,";\n "),m="\n color: ".concat(d.border,";\n background: ").concat(d.background,";\n "),g="\n color: ".concat(h.border,";\n background: ").concat(h.background,";\n "),b="\n color: ".concat(u.border,";\n background: ").concat(u.background,";\n "),x=qn.span(To||(To=Vt(["\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(i){case"default":default:return p;case"primary":return f;case"success":return m;case"warning":return g;case"error":return b}}());return tt.createElement(x,Wt({className:"badge-icon"},r),tt.createElement(function(){return tt.cloneElement(e,{width:a,height:a})},null))};
|
|
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
|
|
8
|
+
function Zo(){}const Ko=function(){let t=0;return function(){return t++}}();function Jo(t){return null==t}function Qo(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 ta(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)}const ea=t=>("number"==typeof t||t instanceof Number)&&isFinite(+t);function na(t,e){return ea(t)?t:e}function ia(t,e){return void 0===t?e:t}const oa=(t,e)=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100*e:+t;function ra(t,e,n){if(t&&"function"==typeof t.call)return t.apply(n,e)}function sa(t,e,n,i){let o,a,r;if(Qo(t))if(a=t.length,i)for(o=a-1;o>=0;o--)e.call(n,t[o],o);else for(o=0;o<a;o++)e.call(n,t[o],o);else if(ta(t))for(r=Object.keys(t),a=r.length,o=0;o<a;o++)e.call(n,t[r[o]],r[o])}function la(t,e){let n,i,o,a;if(!t||!e||t.length!==e.length)return!1;for(n=0,i=t.length;n<i;++n)if(o=t[n],a=e[n],o.datasetIndex!==a.datasetIndex||o.index!==a.index)return!1;return!0}function ca(t){if(Qo(t))return t.map(ca);if(ta(t)){const e=Object.create(null),n=Object.keys(t),i=n.length;let o=0;for(;o<i;++o)e[n[o]]=ca(t[n[o]]);return e}return t}function da(t){return-1===["__proto__","prototype","constructor"].indexOf(t)}function ha(t,e,n,i){if(!da(t))return;const o=e[t],a=n[t];ta(o)&&ta(a)?ua(o,a,i):e[t]=ca(a)}function ua(t,e,n){const i=Qo(e)?e:[e],o=i.length;if(!ta(t))return t;const a=(n=n||{}).merger||ha;for(let r=0;r<o;++r){if(!ta(e=i[r]))continue;const o=Object.keys(e);for(let i=0,r=o.length;i<r;++i)a(o[i],t,e,n)}return t}function pa(t,e){return ua(t,e,{merger:fa})}function fa(t,e,n){if(!da(t))return;const i=e[t],o=n[t];ta(i)&&ta(o)?pa(i,o):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=ca(o))}const ma={"":t=>t,x:t=>t.x,y:t=>t.y};function ga(t,e){const n=ma[e]||(ma[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 xa(t){return t.charAt(0).toUpperCase()+t.slice(1)}const ya=t=>void 0!==t,va=t=>"function"==typeof t,_a=(t,e)=>{if(t.size!==e.size)return!1;for(const n of t)if(!e.has(n))return!1;return!0};const wa=Math.PI,ka=2*wa,Sa=ka+wa,Ea=Number.POSITIVE_INFINITY,Ma=wa/180,Da=wa/2,Ca=wa/4,Oa=2*wa/3,Ta=Math.log10,Aa=Math.sign;function Pa(t){const e=Math.round(t);t=La(t,e,t/1e3)?e:t;const n=Math.pow(10,Math.floor(Ta(t))),i=t/n;return(i<=1?1:i<=2?2:i<=5?5:10)*n}function Ra(t){return!isNaN(parseFloat(t))&&isFinite(t)}function La(t,e,n){return Math.abs(t-e)<n}function Ia(t,e,n){let i,o,a;for(i=0,o=t.length;i<o;i++)a=t[i][n],isNaN(a)||(e.min=Math.min(e.min,a),e.max=Math.max(e.max,a))}function Na(t){return t*(wa/180)}function Fa(t){return t*(180/wa)}function za(t){if(!ea(t))return;let e=1,n=0;for(;Math.round(t*e)/e!==t;)e*=10,n++;return n}function Ba(t,e){const n=e.x-t.x,i=e.y-t.y,o=Math.sqrt(n*n+i*i);let a=Math.atan2(i,n);return a<-.5*wa&&(a+=ka),{angle:a,distance:o}}function Ya(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function Va(t,e){return(t-e+Sa)%ka-wa}function Ha(t){return(t%ka+ka)%ka}function Wa(t,e,n,i){const o=Ha(t),a=Ha(e),r=Ha(n),s=Ha(a-o),l=Ha(r-o),c=Ha(o-a),d=Ha(o-r);return o===a||o===r||i&&a===r||s>l&&c<d}function Ua(t,e,n){return Math.max(e,Math.min(n,t))}function ja(t,e,n,i=1e-6){return t>=Math.min(e,n)-i&&t<=Math.max(e,n)+i}function Ga(t,e,n){n=n||(n=>t[n]<e);let i,o=t.length-1,a=0;for(;o-a>1;)i=a+o>>1,n(i)?a=i:o=i;return{lo:a,hi:o}}const $a=(t,e,n,i)=>Ga(t,n,i?i=>t[i][e]<=n:i=>t[i][e]<n),Xa=(t,e,n)=>Ga(t,n,i=>t[i][e]>=n);const qa=["push","pop","shift","splice","unshift"];function Za(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||(qa.forEach(e=>{delete t[e]}),delete t._chartjs)}function Ka(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 Ja="undefined"==typeof window?function(t){return t()}:window.requestAnimationFrame;function Qa(t,e,n){const i=n||(t=>Array.prototype.slice.call(t));let o=!1,a=[];return function(...n){a=i(n),o||(o=!0,Ja.call(window,()=>{o=!1,t.apply(e,a)}))}}const tr=t=>"start"===t?"left":"end"===t?"right":"center",er=(t,e,n)=>"start"===t?e:"end"===t?n:(e+n)/2;function nr(t,e,n){const i=e.length;let o=0,a=i;if(t._sorted){const{iScale:r,_parsed:s}=t,l=r.axis,{min:c,max:d,minDefined:h,maxDefined:u}=r.getUserBounds();h&&(o=Ua(Math.min($a(s,r.axis,c).lo,n?i:$a(e,l,r.getPixelForValue(c)).lo),0,i-1)),a=u?Ua(Math.max($a(s,r.axis,d,!0).hi+1,n?0:$a(e,l,r.getPixelForValue(d),!0).hi+1),o,i)-o:i-o}return{start:o,count:a}}function ir(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 a=i.xmin!==e.min||i.xmax!==e.max||i.ymin!==n.min||i.ymax!==n.max;return Object.assign(i,o),a}const or=t=>0===t||1===t,rr=(t,e,n)=>-Math.pow(2,10*(t-=1))*Math.sin((t-e)*ka/n),sr=(t,e,n)=>Math.pow(2,-10*t)*Math.sin((t-e)*ka/n)+1,lr={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*Da),easeOutSine:t=>Math.sin(t*Da),easeInOutSine:t=>-.5*(Math.cos(wa*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=>or(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=>or(t)?t:rr(t,.075,.3),easeOutElastic:t=>or(t)?t:sr(t,.075,.3),easeInOutElastic(t){const e=.1125;return or(t)?t:t<.5?.5*rr(2*t,e,.45):.5+.5*sr(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-lr.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*lr.easeInBounce(2*t):.5*lr.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 ya(t){return t+.5|0}const xa=(t,e,n)=>Math.max(Math.min(t,n),e);function wa(t){return xa(ya(2.55*t),0,255)}function Ea(t){return xa(ya(255*t),0,255)}function Sa(t){return xa(ya(t/2.55)/100,0,1)}function ka(t){return xa(ya(100*t),0,100)}const _a={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},Ca=[..."0123456789ABCDEF"],Oa=t=>Ca[15&t],Ma=t=>Ca[(240&t)>>4]+Ca[15&t],Pa=t=>(240&t)>>4==(15&t);function Aa(t){var e=(t=>Pa(t.r)&&Pa(t.g)&&Pa(t.b)&&Pa(t.a))(t)?Oa:Ma;return t?"#"+e(t.r)+e(t.g)+e(t.b)+((t,e)=>t<255?e(t):"")(t.a,e):void 0}const Na=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Da(t,e,n){const r=e*Math.min(n,1-n),o=(e,o=(e+t/30)%12)=>n-r*Math.max(Math.min(o-3,9-o,1),-1);return[o(0),o(8),o(4)]}function Ia(t,e,n){const r=(r,o=(r+t/60)%6)=>n-n*e*Math.max(Math.min(o,4-o,1),0);return[r(5),r(3),r(1)]}function Ta(t,e,n){const r=Da(t,1,.5);let o;for(e+n>1&&(o=1/(e+n),e*=o,n*=o),o=0;o<3;o++)r[o]*=1-e-n,r[o]+=e;return r}function Ra(t){const e=t.r/255,n=t.g/255,r=t.b/255,o=Math.max(e,n,r),i=Math.min(e,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(t,e,n,r,o){return t===o?(e-n)/r+(e<n?6:0):e===o?(n-t)/r+2:(t-e)/r+4}(e,n,r,c,o),s=60*s+.5),[0|s,l||0,a]}function Fa(t,e,n,r){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,n,r)).map(Ea)}function La(t,e,n){return Fa(Da,t,e,n)}function ja(t){return(t%360+360)%360}function za(t){const e=Na.exec(t);let n,r=255;if(!e)return;e[5]!==n&&(r=e[6]?wa(+e[5]):Ea(+e[5]));const o=ja(+e[2]),i=+e[3]/100,a=+e[4]/100;return n="hwb"===e[1]?function(t,e,n){return Fa(Ta,t,e,n)}(o,i,a):"hsv"===e[1]?function(t,e,n){return Fa(Ia,t,e,n)}(o,i,a):La(o,i,a),{r:n[0],g:n[1],b:n[2],a:r}}const Ba={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"},Va={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 $a;function Ha(t){$a||($a=function(){const t={},e=Object.keys(Va),n=Object.keys(Ba);let r,o,i,a,s;for(r=0;r<e.length;r++){for(a=s=e[r],o=0;o<n.length;o++)i=n[o],s=s.replace(i,Ba[i]);i=parseInt(Va[a],16),t[s]=[i>>16&255,i>>8&255,255&i]}return t}(),$a.transparent=[0,0,0,0]);const e=$a[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:4===e.length?e[3]:255}}const Wa=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;const Ua=t=>t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055,Ya=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function Ga(t,e,n){if(t){let r=Ra(t);r[e]=Math.max(0,Math.min(r[e]+r[e]*n,0===e?360:1)),r=La(r),t.r=r[0],t.g=r[1],t.b=r[2]}}function qa(t,e){return t?Object.assign(e||{},t):t}function Xa(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=Ea(t[3]))):(e=qa(t,{r:0,g:0,b:0,a:1})).a=Ea(e.a),e}function Ka(t){return"r"===t.charAt(0)?function(t){const e=Wa.exec(t);let n,r,o,i=255;if(e){if(e[7]!==n){const t=+e[7];i=e[8]?wa(t):xa(255*t,0,255)}return n=+e[1],r=+e[3],o=+e[5],n=255&(e[2]?wa(n):xa(n,0,255)),r=255&(e[4]?wa(r):xa(r,0,255)),o=255&(e[6]?wa(o):xa(o,0,255)),{r:n,g:r,b:o,a:i}}}(t):za(t)}class Za{constructor(t){if(t instanceof Za)return t;const e=typeof t;let n;var r,o,i;"object"===e?n=Xa(t):"string"===e&&(i=(r=t).length,"#"===r[0]&&(4===i||5===i?o={r:255&17*_a[r[1]],g:255&17*_a[r[2]],b:255&17*_a[r[3]],a:5===i?17*_a[r[4]]:255}:7!==i&&9!==i||(o={r:_a[r[1]]<<4|_a[r[2]],g:_a[r[3]]<<4|_a[r[4]],b:_a[r[5]]<<4|_a[r[6]],a:9===i?_a[r[7]]<<4|_a[r[8]]:255})),n=o||Ha(t)||Ka(t)),this._rgb=n,this._valid=!!n}get valid(){return this._valid}get rgb(){var t=qa(this._rgb);return t&&(t.a=Sa(t.a)),t}set rgb(t){this._rgb=Xa(t)}rgbString(){return this._valid?function(t){return t&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${Sa(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`)}(this._rgb):void 0}hexString(){return this._valid?Aa(this._rgb):void 0}hslString(){return this._valid?function(t){if(!t)return;const e=Ra(t),n=e[0],r=ka(e[1]),o=ka(e[2]);return t.a<255?`hsla(${n}, ${r}%, ${o}%, ${Sa(t.a)})`:`hsl(${n}, ${r}%, ${o}%)`}(this._rgb):void 0}mix(t,e){if(t){const n=this.rgb,r=t.rgb;let o;const i=e===o?.5:e,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(t,e){return t&&(this._rgb=function(t,e,n){const r=Ya(Sa(t.r)),o=Ya(Sa(t.g)),i=Ya(Sa(t.b));return{r:Ea(Ua(r+n*(Ya(Sa(e.r))-r))),g:Ea(Ua(o+n*(Ya(Sa(e.g))-o))),b:Ea(Ua(i+n*(Ya(Sa(e.b))-i))),a:t.a+n*(e.a-t.a)}}(this._rgb,t._rgb,e)),this}clone(){return new Za(this.rgb)}alpha(t){return this._rgb.a=Ea(t),this}clearer(t){return this._rgb.a*=1-t,this}greyscale(){const t=this._rgb,e=ya(.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 Ga(this._rgb,2,t),this}darken(t){return Ga(this._rgb,2,-t),this}saturate(t){return Ga(this._rgb,1,t),this}desaturate(t){return Ga(this._rgb,1,-t),this}rotate(t){return function(t,e){var n=Ra(t);n[0]=ja(n[0]+e),n=La(n),t.r=n[0],t.g=n[1],t.b=n[2]}(this._rgb,t),this}}function Qa(t){return new Za(t)}function Ja(t){if(t&&"object"==typeof t){const e=t.toString();return"[object CanvasPattern]"===e||"[object CanvasGradient]"===e}return!1}function ts(t){return Ja(t)?t:Qa(t)}function es(t){return Ja(t)?t:Qa(t).saturate(.5).darken(.1).hexString()}const ns=Object.create(null),rs=Object.create(null);function os(t,e){if(!e)return t;const n=e.split(".");for(let e=0,r=n.length;e<r;++e){const r=n[e];t=t[r]||(t[r]=Object.create(null))}return t}function is(t,e,n){return"string"==typeof e?Ei(os(t,e),n):Ei(os(t,""),e)}var ss=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)=>es(e.backgroundColor),this.hoverBorderColor=(t,e)=>es(e.borderColor),this.hoverColor=(t,e)=>es(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 is(this,t,e)}get(t){return os(this,t)}describe(t,e){return is(rs,t,e)}override(t,e){return is(ns,t,e)}route(t,e,n,r){const o=os(this,t),i=os(this,n),a="_"+e;Object.defineProperties(o,{[a]:{value:o[e],writable:!0},[e]:{enumerable:!0,get(){const t=this[a],e=i[r];return di(t)?Object.assign({},e,t):pi(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 ls(t,e,n,r,o){let i=e[o];return i||(i=e[o]=t.measureText(o).width,n.push(o)),i>r&&(r=i),r}function cs(t,e,n,r){let o=(r=r||{}).data=r.data||{},i=r.garbageCollect=r.garbageCollect||[];r.font!==e&&(o=r.data={},i=r.garbageCollect=[],r.font=e),t.save(),t.font=e;let a=0;const s=n.length;let l,c,u,d,h;for(l=0;l<s;l++)if(d=n[l],null!=d&&!0!==ui(d))a=ls(t,o,i,a,d);else if(ui(d))for(c=0,u=d.length;c<u;c++)h=d[c],null==h||ui(h)||(a=ls(t,o,i,a,h));t.restore();const f=i.length/2;if(f>n.length){for(l=0;l<f;l++)delete o[i[l]];i.splice(0,f)}return a}function us(t,e,n){const r=t.currentDevicePixelRatio,o=0!==n?Math.max(n/2,.5):0;return Math.round((e-o)*r)/r+o}function ds(t,e){(e=e||t.getContext("2d")).save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore()}function hs(t,e,n,r){fs(t,e,n,r,null)}function fs(t,e,n,r,o){let i,a,s,l,c,u;const d=e.pointStyle,h=e.rotation,f=e.radius;let p=(h||0)*Ri;if(d&&"object"==typeof d&&(i=d.toString(),"[object HTMLImageElement]"===i||"[object HTMLCanvasElement]"===i))return t.save(),t.translate(n,r),t.rotate(p),t.drawImage(d,-d.width/2,-d.height/2,d.width,d.height),void t.restore();if(!(isNaN(f)||f<=0)){switch(t.beginPath(),d){default:o?t.ellipse(n,r,o/2,f,0,0,Di):t.arc(n,r,f,0,Di),t.closePath();break;case"triangle":t.moveTo(n+Math.sin(p)*f,r-Math.cos(p)*f),p+=ji,t.lineTo(n+Math.sin(p)*f,r-Math.cos(p)*f),p+=ji,t.lineTo(n+Math.sin(p)*f,r-Math.cos(p)*f),t.closePath();break;case"rectRounded":c=.516*f,l=f-c,a=Math.cos(p+Li)*l,s=Math.sin(p+Li)*l,t.arc(n-a,r-s,c,p-Ni,p-Fi),t.arc(n+s,r-a,c,p-Fi,p),t.arc(n+a,r+s,c,p,p+Fi),t.arc(n-s,r+a,c,p+Fi,p+Ni),t.closePath();break;case"rect":if(!h){l=Math.SQRT1_2*f,u=o?o/2:l,t.rect(n-u,r-l,2*u,2*l);break}p+=Li;case"rectRot":a=Math.cos(p)*f,s=Math.sin(p)*f,t.moveTo(n-a,r-s),t.lineTo(n+s,r-a),t.lineTo(n+a,r+s),t.lineTo(n-s,r+a),t.closePath();break;case"crossRot":p+=Li;case"cross":a=Math.cos(p)*f,s=Math.sin(p)*f,t.moveTo(n-a,r-s),t.lineTo(n+a,r+s),t.moveTo(n+s,r-a),t.lineTo(n-s,r+a);break;case"star":a=Math.cos(p)*f,s=Math.sin(p)*f,t.moveTo(n-a,r-s),t.lineTo(n+a,r+s),t.moveTo(n+s,r-a),t.lineTo(n-s,r+a),p+=Li,a=Math.cos(p)*f,s=Math.sin(p)*f,t.moveTo(n-a,r-s),t.lineTo(n+a,r+s),t.moveTo(n+s,r-a),t.lineTo(n-s,r+a);break;case"line":a=o?o/2:Math.cos(p)*f,s=Math.sin(p)*f,t.moveTo(n-a,r-s),t.lineTo(n+a,r+s);break;case"dash":t.moveTo(n,r),t.lineTo(n+Math.cos(p)*f,r+Math.sin(p)*f)}t.fill(),e.borderWidth>0&&t.stroke()}}function ps(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 ms(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function gs(t){t.restore()}function bs(t,e,n,r,o){if(!e)return t.lineTo(n.x,n.y);if("middle"===o){const r=(e.x+n.x)/2;t.lineTo(r,e.y),t.lineTo(r,n.y)}else"after"===o!=!!r?t.lineTo(e.x,n.y):t.lineTo(n.x,e.y);t.lineTo(n.x,n.y)}function vs(t,e,n,r){if(!e)return t.lineTo(n.x,n.y);t.bezierCurveTo(r?e.cp1x:e.cp2x,r?e.cp1y:e.cp2y,r?n.cp2x:n.cp1x,r?n.cp2y:n.cp1y,n.x,n.y)}function ys(t,e,n,r,o,i={}){const a=ui(e)?e:[e],s=i.strokeWidth>0&&""!==i.strokeColor;let l,c;for(t.save(),t.font=o.string,function(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]);ci(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,i),l=0;l<a.length;++l)c=a[l],s&&(i.strokeColor&&(t.strokeStyle=i.strokeColor),ci(i.strokeWidth)||(t.lineWidth=i.strokeWidth),t.strokeText(c,n,r,i.maxWidth)),t.fillText(c,n,r,i.maxWidth),xs(t,n,r,c,i),r+=o.lineHeight;t.restore()}function xs(t,e,n,r,o){if(o.strikethrough||o.underline){const i=t.measureText(r),a=e-i.actualBoundingBoxLeft,s=e+i.actualBoundingBoxRight,l=n-i.actualBoundingBoxAscent,c=n+i.actualBoundingBoxDescent,u=o.strikethrough?(l+c)/2:c;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=o.decorationWidth||2,t.moveTo(a,u),t.lineTo(s,u),t.stroke()}}function ws(t,e){const{x:n,y:r,w:o,h:i,radius:a}=e;t.arc(n+a.topLeft,r+a.topLeft,a.topLeft,-Fi,Ni,!0),t.lineTo(n,r+i-a.bottomLeft),t.arc(n+a.bottomLeft,r+i-a.bottomLeft,a.bottomLeft,Ni,Fi,!0),t.lineTo(n+o-a.bottomRight,r+i),t.arc(n+o-a.bottomRight,r+i-a.bottomRight,a.bottomRight,Fi,0,!0),t.lineTo(n+o,r+a.topRight),t.arc(n+o-a.topRight,r+a.topRight,a.topRight,0,-Fi,!0),t.lineTo(n+a.topLeft,r)}const Es=new RegExp(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/),Ss=new RegExp(/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/);function ks(t,e){const n=(""+t).match(Es);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 _s=t=>+t||0;function Cs(t,e){const n={},r=di(e),o=r?Object.keys(e):e,i=di(t)?r?n=>pi(t[n],t[e[n]]):e=>t[e]:()=>t;for(const t of o)n[t]=_s(i(t));return n}function Os(t){return Cs(t,{top:"y",right:"x",bottom:"y",left:"x"})}function Ms(t){return Cs(t,["topLeft","topRight","bottomLeft","bottomRight"])}function Ps(t){const e=Os(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function As(t,e){t=t||{},e=e||ss.font;let n=pi(t.size,e.size);"string"==typeof n&&(n=parseInt(n,10));let r=pi(t.style,e.style);r&&!(""+r).match(Ss)&&(console.warn('Invalid font style specified: "'+r+'"'),r="");const o={family:pi(t.family,e.family),lineHeight:ks(pi(t.lineHeight,e.lineHeight),n),size:n,style:r,weight:pi(t.weight,e.weight),string:""};return o.string=function(t){return!t||ci(t.size)||ci(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}(o),o}function Ns(t,e,n,r){let o,i,a,s=!0;for(o=0,i=t.length;o<i;++o)if(a=t[o],void 0!==a&&(void 0!==e&&"function"==typeof a&&(a=a(e),s=!1),void 0!==n&&ui(a)&&(a=a[n%a.length],s=!1),void 0!==a))return r&&!s&&(r.cacheable=!1),a}function Ds(t,e){return Object.assign(Object.create(t),e)}function Is(t,e=[""],n=t,r,o=()=>t[0]){Mi(r)||(r=Ws("_fallback",t));const i={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:n,_fallback:r,_getTarget:o,override:o=>Is([o,...t],e,n,r)};return new Proxy(i,{deleteProperty:(e,n)=>(delete e[n],delete e._keys,delete t[0][n],!0),get:(n,r)=>js(n,r,()=>function(t,e,n,r){let o;for(const i of e)if(o=Ws(Fs(i,t),n),Mi(o))return Ls(t,o)?$s(n,r,t,o):o}(r,e,t,n)),getOwnPropertyDescriptor:(t,e)=>Reflect.getOwnPropertyDescriptor(t._scopes[0],e),getPrototypeOf:()=>Reflect.getPrototypeOf(t[0]),has:(t,e)=>Us(t).includes(e),ownKeys:t=>Us(t),set(t,e,n){const r=t._storage||(t._storage=o());return t[e]=r[e]=n,delete t._keys,!0}})}function Ts(t,e,n,r){const o={_cacheable:!1,_proxy:t,_context:e,_subProxy:n,_stack:new Set,_descriptors:Rs(t,r),setContext:e=>Ts(t,e,n,r),override:o=>Ts(t.override(o),e,n,r)};return new Proxy(o,{deleteProperty:(e,n)=>(delete e[n],delete t[n],!0),get:(t,e,n)=>js(t,e,()=>function(t,e,n){const{_proxy:r,_context:o,_subProxy:i,_descriptors:a}=t;let s=r[e];Pi(s)&&a.isScriptable(e)&&(s=function(t,e,n,r){const{_proxy:o,_context:i,_subProxy:a,_stack:s}=n;if(s.has(t))throw new Error("Recursion detected: "+Array.from(s).join("->")+"->"+t);s.add(t),e=e(i,a||r),s.delete(t),Ls(t,e)&&(e=$s(o._scopes,o,t,e));return e}(e,s,t,n));ui(s)&&s.length&&(s=function(t,e,n,r){const{_proxy:o,_context:i,_subProxy:a,_descriptors:s}=n;if(Mi(i.index)&&r(t))e=e[i.index%e.length];else if(di(e[0])){const n=e,r=o._scopes.filter(t=>t!==n);e=[];for(const l of n){const n=$s(r,o,t,l);e.push(Ts(n,i,a&&a[t],s))}}return e}(e,s,t,a.isIndexable));Ls(e,s)&&(s=Ts(s,o,i&&i[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,r)=>(t[n]=r,delete e[n],!0)})}function Rs(t,e={scriptable:!0,indexable:!0}){const{_scriptable:n=e.scriptable,_indexable:r=e.indexable,_allKeys:o=e.allKeys}=t;return{allKeys:o,scriptable:n,indexable:r,isScriptable:Pi(n)?n:()=>n,isIndexable:Pi(r)?r:()=>r}}const Fs=(t,e)=>t?t+Oi(e):e,Ls=(t,e)=>di(e)&&"adapters"!==t&&(null===Object.getPrototypeOf(e)||e.constructor===Object);function js(t,e,n){if(Object.prototype.hasOwnProperty.call(t,e))return t[e];const r=n();return t[e]=r,r}function zs(t,e,n){return Pi(t)?t(e,n):t}const Bs=(t,e)=>!0===t?e:"string"==typeof t?Ci(e,t):void 0;function Vs(t,e,n,r,o){for(const i of e){const e=Bs(n,i);if(e){t.add(e);const i=zs(e._fallback,n,o);if(Mi(i)&&i!==n&&i!==r)return i}else if(!1===e&&Mi(r)&&n!==r)return null}return!1}function $s(t,e,n,r){const o=e._rootScopes,i=zs(e._fallback,n,r),a=[...t,...o],s=new Set;s.add(r);let l=Hs(s,a,n,i||n,r);return null!==l&&((!Mi(i)||i===n||(l=Hs(s,a,i,l,r),null!==l))&&Is(Array.from(s),[""],o,i,()=>function(t,e,n){const r=t._getTarget();e in r||(r[e]={});const o=r[e];if(ui(o)&&di(n))return n;return o}(e,n,r)))}function Hs(t,e,n,r,o){for(;n;)n=Vs(t,e,n,r,o);return n}function Ws(t,e){for(const n of e){if(!n)continue;const e=n[t];if(Mi(e))return e}}function Us(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 Ys(t,e,n,r){const{iScale:o}=t,{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=e[c],a[s]={r:o.parse(Ci(u,i),c)};return a}const Gs=Number.EPSILON||1e-14,qs=(t,e)=>e<t.length&&!t[e].skip&&t[e],Xs=t=>"x"===t?"y":"x";function Ks(t,e,n,r){const o=t.skip?e:t,i=e,a=n.skip?e:n,s=Xi(i,o),l=Xi(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,h=r*u;return{previous:{x:i.x-d*(a.x-o.x),y:i.y-d*(a.y-o.y)},next:{x:i.x+h*(a.x-o.x),y:i.y+h*(a.y-o.y)}}}function Zs(t,e="x"){const n=Xs(e),r=t.length,o=Array(r).fill(0),i=Array(r);let a,s,l,c=qs(t,0);for(a=0;a<r;++a)if(s=l,l=c,c=qs(t,a+1),l){if(c){const t=c[e]-l[e];o[a]=0!==t?(c[n]-l[n])/t:0}i[a]=s?c?Bi(o[a-1])!==Bi(o[a])?0:(o[a-1]+o[a])/2:o[a-1]:o[a]}!function(t,e,n){const r=t.length;let o,i,a,s,l,c=qs(t,0);for(let u=0;u<r-1;++u)l=c,c=qs(t,u+1),l&&c&&(Hi(e[u],0,Gs)?n[u]=n[u+1]=0:(o=n[u]/e[u],i=n[u+1]/e[u],s=Math.pow(o,2)+Math.pow(i,2),s<=9||(a=3/Math.sqrt(s),n[u]=o*a*e[u],n[u+1]=i*a*e[u])))}(t,o,i),function(t,e,n="x"){const r=Xs(n),o=t.length;let i,a,s,l=qs(t,0);for(let c=0;c<o;++c){if(a=s,s=l,l=qs(t,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*e[c]),l&&(i=(l[n]-o)/3,s[`cp2${n}`]=o+i,s[`cp2${r}`]=u+i*e[c])}}(t,i,e)}function Qs(t,e,n){return Math.max(Math.min(t,n),e)}function Js(t,e,n,r,o){let i,a,s,l;if(e.spanGaps&&(t=t.filter(t=>!t.skip)),"monotone"===e.cubicInterpolationMode)Zs(t,o);else{let n=r?t[t.length-1]:t[0];for(i=0,a=t.length;i<a;++i)s=t[i],l=Ks(n,s,t[Math.min(i+1,a-(r?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,r,o,i,a,s=ps(t[0],e);for(n=0,r=t.length;n<r;++n)a=i,i=s,s=n<r-1&&ps(t[n+1],e),i&&(o=t[n],a&&(o.cp1x=Qs(o.cp1x,e.left,e.right),o.cp1y=Qs(o.cp1y,e.top,e.bottom)),s&&(o.cp2x=Qs(o.cp2x,e.left,e.right),o.cp2y=Qs(o.cp2y,e.top,e.bottom)))}(t,n)}function tl(){return"undefined"!=typeof window&&"undefined"!=typeof document}function el(t){let e=t.parentNode;return e&&"[object ShadowRoot]"===e.toString()&&(e=e.host),e}function nl(t,e,n){let r;return"string"==typeof t?(r=parseInt(t,10),-1!==t.indexOf("%")&&(r=r/100*e.parentNode[n])):r=t,r}const rl=t=>window.getComputedStyle(t,null);const ol=["top","right","bottom","left"];function il(t,e,n){const r={};n=n?"-"+n:"";for(let o=0;o<4;o++){const i=ol[o];r[i]=parseFloat(t[e+"-"+i+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}function sl(t,e){if("native"in t)return t;const{canvas:n,currentDevicePixelRatio:r}=e,o=rl(n),i="border-box"===o.boxSizing,a=il(o,"padding"),s=il(o,"border","width"),{x:l,y:c,box:u}=function(t,e){const n=t.touches,r=n&&n.length?n[0]:t,{offsetX:o,offsetY:i}=r;let a,s,l=!1;if(((t,e,n)=>(t>0||e>0)&&(!n||!n.shadowRoot))(o,i,t.target))a=o,s=i;else{const t=e.getBoundingClientRect();a=r.clientX-t.left,s=r.clientY-t.top,l=!0}return{x:a,y:s,box:l}}(t,n),d=a.left+(u&&s.left),h=a.top+(u&&s.top);let{width:f,height:p}=e;return i&&(f-=a.width+s.width,p-=a.height+s.height),{x:Math.round((l-d)/f*n.width/r),y:Math.round((c-h)/p*n.height/r)}}const ll=t=>Math.round(10*t)/10;function cl(t,e,n,r){const o=rl(t),i=il(o,"margin"),a=nl(o.maxWidth,t,"clientWidth")||Ti,s=nl(o.maxHeight,t,"clientHeight")||Ti,l=function(t,e,n){let r,o;if(void 0===e||void 0===n){const i=el(t);if(i){const t=i.getBoundingClientRect(),a=rl(i),s=il(a,"border","width"),l=il(a,"padding");e=t.width-l.width-s.width,n=t.height-l.height-s.height,r=nl(a.maxWidth,i,"clientWidth"),o=nl(a.maxHeight,i,"clientHeight")}else e=t.clientWidth,n=t.clientHeight}return{width:e,height:n,maxWidth:r||Ti,maxHeight:o||Ti}}(t,e,n);let{width:c,height:u}=l;if("content-box"===o.boxSizing){const t=il(o,"border","width"),e=il(o,"padding");c-=e.width+t.width,u-=e.height+t.height}return c=Math.max(0,c-i.width),u=Math.max(0,r?Math.floor(c/r):u-i.height),c=ll(Math.min(c,a,l.maxWidth)),u=ll(Math.min(u,s,l.maxHeight)),c&&!u&&(u=ll(c/2)),{width:c,height:u}}function ul(t,e,n){const r=e||1,o=Math.floor(t.height*r),i=Math.floor(t.width*r);t.height=o/r,t.width=i/r;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!==r||a.height!==o||a.width!==i)&&(t.currentDevicePixelRatio=r,a.height=o,a.width=i,t.ctx.setTransform(r,0,0,r,0,0),!0)}const dl=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 hl(t,e){const n=function(t,e){return rl(t).getPropertyValue(e)}(t,e),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function fl(t,e,n,r){return{x:t.x+n*(e.x-t.x),y:t.y+n*(e.y-t.y)}}function pl(t,e,n,r){return{x:t.x+n*(e.x-t.x),y:"middle"===r?n<.5?t.y:e.y:"after"===r?n<1?t.y:e.y:n>0?e.y:t.y}}function ml(t,e,n,r){const o={x:t.cp2x,y:t.cp2y},i={x:e.cp1x,y:e.cp1y},a=fl(t,o,n),s=fl(o,i,n),l=fl(i,e,n),c=fl(a,s,n),u=fl(s,l,n);return fl(c,u,n)}const gl=new Map;function bl(t,e,n){return function(t,e){e=e||{};const n=t+JSON.stringify(e);let r=gl.get(n);return r||(r=new Intl.NumberFormat(t,e),gl.set(n,r)),r}(e,n).format(t)}function vl(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 yl(t,e){let n,r;"ltr"!==e&&"rtl"!==e||(n=t.canvas.style,r=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",e,"important"),t.prevTextDirection=r)}function xl(t,e){void 0!==e&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function wl(t){return"angle"===t?{between:Qi,compare:Ki,normalize:Zi}:{between:ta,compare:(t,e)=>t-e,normalize:t=>t}}function El({start:t,end:e,count:n,loop:r,style:o}){return{start:t%n,end:e%n,loop:r&&(e-t+1)%n==0,style:o}}function Sl(t,e,n){if(!n)return[t];const{property:r,start:o,end:i}=n,a=e.length,{compare:s,between:l,normalize:c}=wl(r),{start:u,end:d,loop:h,style:f}=function(t,e,n){const{property:r,start:o,end:i}=n,{between:a,normalize:s}=wl(r),l=e.length;let c,u,{start:d,end:h,loop:f}=t;if(f){for(d+=l,h+=l,c=0,u=l;c<u&&a(s(e[d%l][r]),o,i);++c)d--,h--;d%=l,h%=l}return h<d&&(h+=l),{start:d,end:h,loop:f,style:t.style}}(t,e,n),p=[];let m,g,b,v=!1,y=null;const x=()=>v||l(o,b,m)&&0!==s(o,b),w=()=>!v||0===s(i,m)||l(i,b,m);for(let t=u,n=u;t<=d;++t)g=e[t%a],g.skip||(m=c(g[r]),m!==b&&(v=l(m,o,i),null===y&&x()&&(y=0===s(m,o)?t:n),null!==y&&w()&&(p.push(El({start:y,end:t,loop:h,count:a,style:f})),y=null),n=t,b=m));return null!==y&&p.push(El({start:y,end:d,loop:h,count:a,style:f})),p}function kl(t,e){const n=[],r=t.segments;for(let o=0;o<r.length;o++){const i=Sl(r[o],t.points,e);i.length&&n.push(...i)}return n}function _l(t,e,n,r){return r&&r.setContext&&n?function(t,e,n,r){const o=t._chart.getContext(),i=Cl(t.options),{_datasetIndex:a,options:{spanGaps:s}}=t,l=n.length,c=[];let u=i,d=e[0].start,h=d;function f(t,e,r,o){const i=s?-1:1;if(t!==e){for(t+=l;n[t%l].skip;)t-=i;for(;n[e%l].skip;)e+=i;t%l!==e%l&&(c.push({start:t%l,end:e%l,loop:r,style:o}),u=o,d=e%l)}}for(const t of e){d=s?d:t.start;let e,i=n[d%l];for(h=d+1;h<=t.end;h++){const s=n[h%l];e=Cl(r.setContext(Ds(o,{type:"segment",p0:i,p1:s,p0DataIndex:(h-1)%l,p1DataIndex:h%l,datasetIndex:a}))),Ol(e,u)&&f(d,h-1,t.loop,u),i=s,u=e}d<h-1&&f(d,h-1,t.loop,u)}return c}(t,e,n,r):e}function Cl(t){return{backgroundColor:t.backgroundColor,borderCapStyle:t.borderCapStyle,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderJoinStyle:t.borderJoinStyle,borderWidth:t.borderWidth,borderColor:t.borderColor}}function Ol(t,e){return e&&JSON.stringify(t)!==JSON.stringify(e)}
|
|
15
|
+
function cr(t){return t+.5|0}const dr=(t,e,n)=>Math.max(Math.min(t,n),e);function hr(t){return dr(cr(2.55*t),0,255)}function ur(t){return dr(cr(255*t),0,255)}function pr(t){return dr(cr(t/2.55)/100,0,1)}function fr(t){return dr(cr(100*t),0,100)}const mr={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},gr=[..."0123456789ABCDEF"],br=t=>gr[15&t],xr=t=>gr[(240&t)>>4]+gr[15&t],yr=t=>(240&t)>>4==(15&t);function vr(t){var e=(t=>yr(t.r)&&yr(t.g)&&yr(t.b)&&yr(t.a))(t)?br:xr;return t?"#"+e(t.r)+e(t.g)+e(t.b)+((t,e)=>t<255?e(t):"")(t.a,e):void 0}const _r=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function wr(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 kr(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 Sr(t,e,n){const i=wr(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 Er(t){const e=t.r/255,n=t.g/255,i=t.b/255,o=Math.max(e,n,i),a=Math.min(e,n,i),r=(o+a)/2;let s,l,c;return o!==a&&(c=o-a,l=r>.5?c/(2-o-a):c/(o+a),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,r]}function Mr(t,e,n,i){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,n,i)).map(ur)}function Dr(t,e,n){return Mr(wr,t,e,n)}function Cr(t){return(t%360+360)%360}function Or(t){const e=_r.exec(t);let n,i=255;if(!e)return;e[5]!==n&&(i=e[6]?hr(+e[5]):ur(+e[5]));const o=Cr(+e[2]),a=+e[3]/100,r=+e[4]/100;return n="hwb"===e[1]?function(t,e,n){return Mr(Sr,t,e,n)}(o,a,r):"hsv"===e[1]?function(t,e,n){return Mr(kr,t,e,n)}(o,a,r):Dr(o,a,r),{r:n[0],g:n[1],b:n[2],a:i}}const Tr={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"},Ar={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 Pr;function Rr(t){Pr||(Pr=function(){const t={},e=Object.keys(Ar),n=Object.keys(Tr);let i,o,a,r,s;for(i=0;i<e.length;i++){for(r=s=e[i],o=0;o<n.length;o++)a=n[o],s=s.replace(a,Tr[a]);a=parseInt(Ar[r],16),t[s]=[a>>16&255,a>>8&255,255&a]}return t}(),Pr.transparent=[0,0,0,0]);const e=Pr[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:4===e.length?e[3]:255}}const Lr=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;const Ir=t=>t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055,Nr=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function Fr(t,e,n){if(t){let i=Er(t);i[e]=Math.max(0,Math.min(i[e]+i[e]*n,0===e?360:1)),i=Dr(i),t.r=i[0],t.g=i[1],t.b=i[2]}}function zr(t,e){return t?Object.assign(e||{},t):t}function Br(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=ur(t[3]))):(e=zr(t,{r:0,g:0,b:0,a:1})).a=ur(e.a),e}function Yr(t){return"r"===t.charAt(0)?function(t){const e=Lr.exec(t);let n,i,o,a=255;if(e){if(e[7]!==n){const t=+e[7];a=e[8]?hr(t):dr(255*t,0,255)}return n=+e[1],i=+e[3],o=+e[5],n=255&(e[2]?hr(n):dr(n,0,255)),i=255&(e[4]?hr(i):dr(i,0,255)),o=255&(e[6]?hr(o):dr(o,0,255)),{r:n,g:i,b:o,a:a}}}(t):Or(t)}class Vr{constructor(t){if(t instanceof Vr)return t;const e=typeof t;let n;var i,o,a;"object"===e?n=Br(t):"string"===e&&(a=(i=t).length,"#"===i[0]&&(4===a||5===a?o={r:255&17*mr[i[1]],g:255&17*mr[i[2]],b:255&17*mr[i[3]],a:5===a?17*mr[i[4]]:255}:7!==a&&9!==a||(o={r:mr[i[1]]<<4|mr[i[2]],g:mr[i[3]]<<4|mr[i[4]],b:mr[i[5]]<<4|mr[i[6]],a:9===a?mr[i[7]]<<4|mr[i[8]]:255})),n=o||Rr(t)||Yr(t)),this._rgb=n,this._valid=!!n}get valid(){return this._valid}get rgb(){var t=zr(this._rgb);return t&&(t.a=pr(t.a)),t}set rgb(t){this._rgb=Br(t)}rgbString(){return this._valid?function(t){return t&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${pr(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`)}(this._rgb):void 0}hexString(){return this._valid?vr(this._rgb):void 0}hslString(){return this._valid?function(t){if(!t)return;const e=Er(t),n=e[0],i=fr(e[1]),o=fr(e[2]);return t.a<255?`hsla(${n}, ${i}%, ${o}%, ${pr(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 a=e===o?.5:e,r=2*a-1,s=n.a-i.a,l=((r*s===-1?r:(r+s)/(1+r*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=a*n.a+(1-a)*i.a,this.rgb=n}return this}interpolate(t,e){return t&&(this._rgb=function(t,e,n){const i=Nr(pr(t.r)),o=Nr(pr(t.g)),a=Nr(pr(t.b));return{r:ur(Ir(i+n*(Nr(pr(e.r))-i))),g:ur(Ir(o+n*(Nr(pr(e.g))-o))),b:ur(Ir(a+n*(Nr(pr(e.b))-a))),a:t.a+n*(e.a-t.a)}}(this._rgb,t._rgb,e)),this}clone(){return new Vr(this.rgb)}alpha(t){return this._rgb.a=ur(t),this}clearer(t){return this._rgb.a*=1-t,this}greyscale(){const t=this._rgb,e=cr(.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 Fr(this._rgb,2,t),this}darken(t){return Fr(this._rgb,2,-t),this}saturate(t){return Fr(this._rgb,1,t),this}desaturate(t){return Fr(this._rgb,1,-t),this}rotate(t){return function(t,e){var n=Er(t);n[0]=Cr(n[0]+e),n=Dr(n),t.r=n[0],t.g=n[1],t.b=n[2]}(this._rgb,t),this}}function Hr(t){return new Vr(t)}function Wr(t){if(t&&"object"==typeof t){const e=t.toString();return"[object CanvasPattern]"===e||"[object CanvasGradient]"===e}return!1}function Ur(t){return Wr(t)?t:Hr(t)}function jr(t){return Wr(t)?t:Hr(t).saturate(.5).darken(.1).hexString()}const Gr=Object.create(null),$r=Object.create(null);function Xr(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 qr(t,e,n){return"string"==typeof e?ua(Xr(t,e),n):ua(Xr(t,""),e)}var Zr=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)=>jr(e.backgroundColor),this.hoverBorderColor=(t,e)=>jr(e.borderColor),this.hoverColor=(t,e)=>jr(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 qr(this,t,e)}get(t){return Xr(this,t)}describe(t,e){return qr($r,t,e)}override(t,e){return qr(Gr,t,e)}route(t,e,n,i){const o=Xr(this,t),a=Xr(this,n),r="_"+e;Object.defineProperties(o,{[r]:{value:o[e],writable:!0},[e]:{enumerable:!0,get(){const t=this[r],e=a[i];return ta(t)?Object.assign({},e,t):ia(t,e)},set(t){this[r]=t}}})}}({_scriptable:t=>!t.startsWith("on"),_indexable:t=>"events"!==t,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}});function Kr(t,e,n,i,o){let a=e[o];return a||(a=e[o]=t.measureText(o).width,n.push(o)),a>i&&(i=a),i}function Jr(t,e,n,i){let o=(i=i||{}).data=i.data||{},a=i.garbageCollect=i.garbageCollect||[];i.font!==e&&(o=i.data={},a=i.garbageCollect=[],i.font=e),t.save(),t.font=e;let r=0;const s=n.length;let l,c,d,h,u;for(l=0;l<s;l++)if(h=n[l],null!=h&&!0!==Qo(h))r=Kr(t,o,a,r,h);else if(Qo(h))for(c=0,d=h.length;c<d;c++)u=h[c],null==u||Qo(u)||(r=Kr(t,o,a,r,u));t.restore();const p=a.length/2;if(p>n.length){for(l=0;l<p;l++)delete o[a[l]];a.splice(0,p)}return r}function Qr(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 ts(t,e){(e=e||t.getContext("2d")).save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore()}function es(t,e,n,i){ns(t,e,n,i,null)}function ns(t,e,n,i,o){let a,r,s,l,c,d;const h=e.pointStyle,u=e.rotation,p=e.radius;let f=(u||0)*Ma;if(h&&"object"==typeof h&&(a=h.toString(),"[object HTMLImageElement]"===a||"[object HTMLCanvasElement]"===a))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,ka):t.arc(n,i,p,0,ka),t.closePath();break;case"triangle":t.moveTo(n+Math.sin(f)*p,i-Math.cos(f)*p),f+=Oa,t.lineTo(n+Math.sin(f)*p,i-Math.cos(f)*p),f+=Oa,t.lineTo(n+Math.sin(f)*p,i-Math.cos(f)*p),t.closePath();break;case"rectRounded":c=.516*p,l=p-c,r=Math.cos(f+Ca)*l,s=Math.sin(f+Ca)*l,t.arc(n-r,i-s,c,f-wa,f-Da),t.arc(n+s,i-r,c,f-Da,f),t.arc(n+r,i+s,c,f,f+Da),t.arc(n-s,i+r,c,f+Da,f+wa),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+=Ca;case"rectRot":r=Math.cos(f)*p,s=Math.sin(f)*p,t.moveTo(n-r,i-s),t.lineTo(n+s,i-r),t.lineTo(n+r,i+s),t.lineTo(n-s,i+r),t.closePath();break;case"crossRot":f+=Ca;case"cross":r=Math.cos(f)*p,s=Math.sin(f)*p,t.moveTo(n-r,i-s),t.lineTo(n+r,i+s),t.moveTo(n+s,i-r),t.lineTo(n-s,i+r);break;case"star":r=Math.cos(f)*p,s=Math.sin(f)*p,t.moveTo(n-r,i-s),t.lineTo(n+r,i+s),t.moveTo(n+s,i-r),t.lineTo(n-s,i+r),f+=Ca,r=Math.cos(f)*p,s=Math.sin(f)*p,t.moveTo(n-r,i-s),t.lineTo(n+r,i+s),t.moveTo(n+s,i-r),t.lineTo(n-s,i+r);break;case"line":r=o?o/2:Math.cos(f)*p,s=Math.sin(f)*p,t.moveTo(n-r,i-s),t.lineTo(n+r,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 is(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 os(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function rs(t){t.restore()}function ss(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 ls(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 cs(t,e,n,i,o,a={}){const r=Qo(e)?e:[e],s=a.strokeWidth>0&&""!==a.strokeColor;let l,c;for(t.save(),t.font=o.string,function(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]);Jo(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,a),l=0;l<r.length;++l)c=r[l],s&&(a.strokeColor&&(t.strokeStyle=a.strokeColor),Jo(a.strokeWidth)||(t.lineWidth=a.strokeWidth),t.strokeText(c,n,i,a.maxWidth)),t.fillText(c,n,i,a.maxWidth),ds(t,n,i,c,a),i+=o.lineHeight;t.restore()}function ds(t,e,n,i,o){if(o.strikethrough||o.underline){const a=t.measureText(i),r=e-a.actualBoundingBoxLeft,s=e+a.actualBoundingBoxRight,l=n-a.actualBoundingBoxAscent,c=n+a.actualBoundingBoxDescent,d=o.strikethrough?(l+c)/2:c;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=o.decorationWidth||2,t.moveTo(r,d),t.lineTo(s,d),t.stroke()}}function hs(t,e){const{x:n,y:i,w:o,h:a,radius:r}=e;t.arc(n+r.topLeft,i+r.topLeft,r.topLeft,-Da,wa,!0),t.lineTo(n,i+a-r.bottomLeft),t.arc(n+r.bottomLeft,i+a-r.bottomLeft,r.bottomLeft,wa,Da,!0),t.lineTo(n+o-r.bottomRight,i+a),t.arc(n+o-r.bottomRight,i+a-r.bottomRight,r.bottomRight,Da,0,!0),t.lineTo(n+o,i+r.topRight),t.arc(n+o-r.topRight,i+r.topRight,r.topRight,0,-Da,!0),t.lineTo(n+r.topLeft,i)}const us=new RegExp(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/),ps=new RegExp(/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/);function fs(t,e){const n=(""+t).match(us);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 ms=t=>+t||0;function gs(t,e){const n={},i=ta(e),o=i?Object.keys(e):e,a=ta(t)?i?n=>ia(t[n],t[e[n]]):e=>t[e]:()=>t;for(const t of o)n[t]=ms(a(t));return n}function bs(t){return gs(t,{top:"y",right:"x",bottom:"y",left:"x"})}function xs(t){return gs(t,["topLeft","topRight","bottomLeft","bottomRight"])}function ys(t){const e=bs(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function vs(t,e){t=t||{},e=e||Zr.font;let n=ia(t.size,e.size);"string"==typeof n&&(n=parseInt(n,10));let i=ia(t.style,e.style);i&&!(""+i).match(ps)&&(console.warn('Invalid font style specified: "'+i+'"'),i="");const o={family:ia(t.family,e.family),lineHeight:fs(ia(t.lineHeight,e.lineHeight),n),size:n,style:i,weight:ia(t.weight,e.weight),string:""};return o.string=function(t){return!t||Jo(t.size)||Jo(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}(o),o}function _s(t,e,n,i){let o,a,r,s=!0;for(o=0,a=t.length;o<a;++o)if(r=t[o],void 0!==r&&(void 0!==e&&"function"==typeof r&&(r=r(e),s=!1),void 0!==n&&Qo(r)&&(r=r[n%r.length],s=!1),void 0!==r))return i&&!s&&(i.cacheable=!1),r}function ws(t,e){return Object.assign(Object.create(t),e)}function ks(t,e=[""],n=t,i,o=()=>t[0]){ya(i)||(i=Ls("_fallback",t));const a={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:n,_fallback:i,_getTarget:o,override:o=>ks([o,...t],e,n,i)};return new Proxy(a,{deleteProperty:(e,n)=>(delete e[n],delete e._keys,delete t[0][n],!0),get:(n,i)=>Cs(n,i,()=>function(t,e,n,i){let o;for(const a of e)if(o=Ls(Ms(a,t),n),ya(o))return Ds(t,o)?Ps(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)=>Is(t).includes(e),ownKeys:t=>Is(t),set(t,e,n){const i=t._storage||(t._storage=o());return t[e]=i[e]=n,delete t._keys,!0}})}function Ss(t,e,n,i){const o={_cacheable:!1,_proxy:t,_context:e,_subProxy:n,_stack:new Set,_descriptors:Es(t,i),setContext:e=>Ss(t,e,n,i),override:o=>Ss(t.override(o),e,n,i)};return new Proxy(o,{deleteProperty:(e,n)=>(delete e[n],delete t[n],!0),get:(t,e,n)=>Cs(t,e,()=>function(t,e,n){const{_proxy:i,_context:o,_subProxy:a,_descriptors:r}=t;let s=i[e];va(s)&&r.isScriptable(e)&&(s=function(t,e,n,i){const{_proxy:o,_context:a,_subProxy:r,_stack:s}=n;if(s.has(t))throw new Error("Recursion detected: "+Array.from(s).join("->")+"->"+t);s.add(t),e=e(a,r||i),s.delete(t),Ds(t,e)&&(e=Ps(o._scopes,o,t,e));return e}(e,s,t,n));Qo(s)&&s.length&&(s=function(t,e,n,i){const{_proxy:o,_context:a,_subProxy:r,_descriptors:s}=n;if(ya(a.index)&&i(t))e=e[a.index%e.length];else if(ta(e[0])){const n=e,i=o._scopes.filter(t=>t!==n);e=[];for(const l of n){const n=Ps(i,o,t,l);e.push(Ss(n,a,r&&r[t],s))}}return e}(e,s,t,r.isIndexable));Ds(e,s)&&(s=Ss(s,o,a&&a[e],r));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 Es(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:va(n)?n:()=>n,isIndexable:va(i)?i:()=>i}}const Ms=(t,e)=>t?t+xa(e):e,Ds=(t,e)=>ta(e)&&"adapters"!==t&&(null===Object.getPrototypeOf(e)||e.constructor===Object);function Cs(t,e,n){if(Object.prototype.hasOwnProperty.call(t,e))return t[e];const i=n();return t[e]=i,i}function Os(t,e,n){return va(t)?t(e,n):t}const Ts=(t,e)=>!0===t?e:"string"==typeof t?ga(e,t):void 0;function As(t,e,n,i,o){for(const a of e){const e=Ts(n,a);if(e){t.add(e);const a=Os(e._fallback,n,o);if(ya(a)&&a!==n&&a!==i)return a}else if(!1===e&&ya(i)&&n!==i)return null}return!1}function Ps(t,e,n,i){const o=e._rootScopes,a=Os(e._fallback,n,i),r=[...t,...o],s=new Set;s.add(i);let l=Rs(s,r,n,a||n,i);return null!==l&&((!ya(a)||a===n||(l=Rs(s,r,a,l,i),null!==l))&&ks(Array.from(s),[""],o,a,()=>function(t,e,n){const i=t._getTarget();e in i||(i[e]={});const o=i[e];if(Qo(o)&&ta(n))return n;return o}(e,n,i)))}function Rs(t,e,n,i,o){for(;n;)n=As(t,e,n,i,o);return n}function Ls(t,e){for(const n of e){if(!n)continue;const e=n[t];if(ya(e))return e}}function Is(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 Ns(t,e,n,i){const{iScale:o}=t,{key:a="r"}=this._parsing,r=new Array(i);let s,l,c,d;for(s=0,l=i;s<l;++s)c=s+n,d=e[c],r[s]={r:o.parse(ga(d,a),c)};return r}const Fs=Number.EPSILON||1e-14,zs=(t,e)=>e<t.length&&!t[e].skip&&t[e],Bs=t=>"x"===t?"y":"x";function Ys(t,e,n,i){const o=t.skip?e:t,a=e,r=n.skip?e:n,s=Ya(a,o),l=Ya(r,a);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:a.x-h*(r.x-o.x),y:a.y-h*(r.y-o.y)},next:{x:a.x+u*(r.x-o.x),y:a.y+u*(r.y-o.y)}}}function Vs(t,e="x"){const n=Bs(e),i=t.length,o=Array(i).fill(0),a=Array(i);let r,s,l,c=zs(t,0);for(r=0;r<i;++r)if(s=l,l=c,c=zs(t,r+1),l){if(c){const t=c[e]-l[e];o[r]=0!==t?(c[n]-l[n])/t:0}a[r]=s?c?Aa(o[r-1])!==Aa(o[r])?0:(o[r-1]+o[r])/2:o[r-1]:o[r]}!function(t,e,n){const i=t.length;let o,a,r,s,l,c=zs(t,0);for(let d=0;d<i-1;++d)l=c,c=zs(t,d+1),l&&c&&(La(e[d],0,Fs)?n[d]=n[d+1]=0:(o=n[d]/e[d],a=n[d+1]/e[d],s=Math.pow(o,2)+Math.pow(a,2),s<=9||(r=3/Math.sqrt(s),n[d]=o*r*e[d],n[d+1]=a*r*e[d])))}(t,o,a),function(t,e,n="x"){const i=Bs(n),o=t.length;let a,r,s,l=zs(t,0);for(let c=0;c<o;++c){if(r=s,s=l,l=zs(t,c+1),!s)continue;const o=s[n],d=s[i];r&&(a=(o-r[n])/3,s[`cp1${n}`]=o-a,s[`cp1${i}`]=d-a*e[c]),l&&(a=(l[n]-o)/3,s[`cp2${n}`]=o+a,s[`cp2${i}`]=d+a*e[c])}}(t,a,e)}function Hs(t,e,n){return Math.max(Math.min(t,n),e)}function Ws(t,e,n,i,o){let a,r,s,l;if(e.spanGaps&&(t=t.filter(t=>!t.skip)),"monotone"===e.cubicInterpolationMode)Vs(t,o);else{let n=i?t[t.length-1]:t[0];for(a=0,r=t.length;a<r;++a)s=t[a],l=Ys(n,s,t[Math.min(a+1,r-(i?0:1))%r],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,a,r,s=is(t[0],e);for(n=0,i=t.length;n<i;++n)r=a,a=s,s=n<i-1&&is(t[n+1],e),a&&(o=t[n],r&&(o.cp1x=Hs(o.cp1x,e.left,e.right),o.cp1y=Hs(o.cp1y,e.top,e.bottom)),s&&(o.cp2x=Hs(o.cp2x,e.left,e.right),o.cp2y=Hs(o.cp2y,e.top,e.bottom)))}(t,n)}function Us(){return"undefined"!=typeof window&&"undefined"!=typeof document}function js(t){let e=t.parentNode;return e&&"[object ShadowRoot]"===e.toString()&&(e=e.host),e}function Gs(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 $s=t=>window.getComputedStyle(t,null);const Xs=["top","right","bottom","left"];function qs(t,e,n){const i={};n=n?"-"+n:"";for(let o=0;o<4;o++){const a=Xs[o];i[a]=parseFloat(t[e+"-"+a+n])||0}return i.width=i.left+i.right,i.height=i.top+i.bottom,i}function Zs(t,e){if("native"in t)return t;const{canvas:n,currentDevicePixelRatio:i}=e,o=$s(n),a="border-box"===o.boxSizing,r=qs(o,"padding"),s=qs(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:a}=i;let r,s,l=!1;if(((t,e,n)=>(t>0||e>0)&&(!n||!n.shadowRoot))(o,a,t.target))r=o,s=a;else{const t=e.getBoundingClientRect();r=i.clientX-t.left,s=i.clientY-t.top,l=!0}return{x:r,y:s,box:l}}(t,n),h=r.left+(d&&s.left),u=r.top+(d&&s.top);let{width:p,height:f}=e;return a&&(p-=r.width+s.width,f-=r.height+s.height),{x:Math.round((l-h)/p*n.width/i),y:Math.round((c-u)/f*n.height/i)}}const Ks=t=>Math.round(10*t)/10;function Js(t,e,n,i){const o=$s(t),a=qs(o,"margin"),r=Gs(o.maxWidth,t,"clientWidth")||Ea,s=Gs(o.maxHeight,t,"clientHeight")||Ea,l=function(t,e,n){let i,o;if(void 0===e||void 0===n){const a=js(t);if(a){const t=a.getBoundingClientRect(),r=$s(a),s=qs(r,"border","width"),l=qs(r,"padding");e=t.width-l.width-s.width,n=t.height-l.height-s.height,i=Gs(r.maxWidth,a,"clientWidth"),o=Gs(r.maxHeight,a,"clientHeight")}else e=t.clientWidth,n=t.clientHeight}return{width:e,height:n,maxWidth:i||Ea,maxHeight:o||Ea}}(t,e,n);let{width:c,height:d}=l;if("content-box"===o.boxSizing){const t=qs(o,"border","width"),e=qs(o,"padding");c-=e.width+t.width,d-=e.height+t.height}return c=Math.max(0,c-a.width),d=Math.max(0,i?Math.floor(c/i):d-a.height),c=Ks(Math.min(c,r,l.maxWidth)),d=Ks(Math.min(d,s,l.maxHeight)),c&&!d&&(d=Ks(c/2)),{width:c,height:d}}function Qs(t,e,n){const i=e||1,o=Math.floor(t.height*i),a=Math.floor(t.width*i);t.height=o/i,t.width=a/i;const r=t.canvas;return r.style&&(n||!r.style.height&&!r.style.width)&&(r.style.height=`${t.height}px`,r.style.width=`${t.width}px`),(t.currentDevicePixelRatio!==i||r.height!==o||r.width!==a)&&(t.currentDevicePixelRatio=i,r.height=o,r.width=a,t.ctx.setTransform(i,0,0,i,0,0),!0)}const tl=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 el(t,e){const n=function(t,e){return $s(t).getPropertyValue(e)}(t,e),i=n&&n.match(/^(\d+)(\.\d+)?px$/);return i?+i[1]:void 0}function nl(t,e,n,i){return{x:t.x+n*(e.x-t.x),y:t.y+n*(e.y-t.y)}}function il(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 ol(t,e,n,i){const o={x:t.cp2x,y:t.cp2y},a={x:e.cp1x,y:e.cp1y},r=nl(t,o,n),s=nl(o,a,n),l=nl(a,e,n),c=nl(r,s,n),d=nl(s,l,n);return nl(c,d,n)}const rl=new Map;function sl(t,e,n){return function(t,e){e=e||{};const n=t+JSON.stringify(e);let i=rl.get(n);return i||(i=new Intl.NumberFormat(t,e),rl.set(n,i)),i}(e,n).format(t)}function ll(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 cl(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 dl(t,e){void 0!==e&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function hl(t){return"angle"===t?{between:Wa,compare:Va,normalize:Ha}:{between:ja,compare:(t,e)=>t-e,normalize:t=>t}}function ul({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 pl(t,e,n){if(!n)return[t];const{property:i,start:o,end:a}=n,r=e.length,{compare:s,between:l,normalize:c}=hl(i),{start:d,end:h,loop:u,style:p}=function(t,e,n){const{property:i,start:o,end:a}=n,{between:r,normalize:s}=hl(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&&r(s(e[h%l][i]),o,a);++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 m,g,b,x=!1,y=null;const v=()=>x||l(o,b,m)&&0!==s(o,b),_=()=>!x||0===s(a,m)||l(a,b,m);for(let t=d,n=d;t<=h;++t)g=e[t%r],g.skip||(m=c(g[i]),m!==b&&(x=l(m,o,a),null===y&&v()&&(y=0===s(m,o)?t:n),null!==y&&_()&&(f.push(ul({start:y,end:t,loop:u,count:r,style:p})),y=null),n=t,b=m));return null!==y&&f.push(ul({start:y,end:h,loop:u,count:r,style:p})),f}function fl(t,e){const n=[],i=t.segments;for(let o=0;o<i.length;o++){const a=pl(i[o],t.points,e);a.length&&n.push(...a)}return n}function ml(t,e,n,i){return i&&i.setContext&&n?function(t,e,n,i){const o=t._chart.getContext(),a=gl(t.options),{_datasetIndex:r,options:{spanGaps:s}}=t,l=n.length,c=[];let d=a,h=e[0].start,u=h;function p(t,e,i,o){const a=s?-1:1;if(t!==e){for(t+=l;n[t%l].skip;)t-=a;for(;n[e%l].skip;)e+=a;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,a=n[h%l];for(u=h+1;u<=t.end;u++){const s=n[u%l];e=gl(i.setContext(ws(o,{type:"segment",p0:a,p1:s,p0DataIndex:(u-1)%l,p1DataIndex:u%l,datasetIndex:r}))),bl(e,d)&&p(h,u-1,t.loop,d),a=s,d=e}h<u-1&&p(h,u-1,t.loop,d)}return c}(t,e,n,i):e}function gl(t){return{backgroundColor:t.backgroundColor,borderCapStyle:t.borderCapStyle,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderJoinStyle:t.borderJoinStyle,borderWidth:t.borderWidth,borderColor:t.borderColor}}function bl(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 Ml=new class{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,e,n,r){const o=e.listeners[r],i=e.duration;o.forEach(r=>r({chart:t,initial:e.initial,numSteps:i,currentStep:Math.min(n-e.start,i)}))}_refresh(){this._request||(this._running=!0,this._request=la.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let e=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(t),s=!0):(o[a]=o[o.length-1],o.pop());s&&(r.draw(),this._notify(r,n,t,"progress")),o.length||(n.running=!1,this._notify(r,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 r=n.length-1;for(;r>=0;--r)n[r].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}remove(t){return this._charts.delete(t)}};const Pl="transparent",Al={boolean:(t,e,n)=>n>.5?e:t,color(t,e,n){const r=ts(t||Pl),o=r.valid&&ts(e||Pl);return o&&o.valid?o.mix(r,n).hexString():e},number:(t,e,n)=>t+(e-t)*n};class Nl{constructor(t,e,n,r){const o=e[n];r=Ns([t.to,r,o,t.from]);const i=Ns([t.from,o,r]);this._active=!0,this._fn=t.fn||Al[t.type||typeof i],this._easing=va[t.easing]||va.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=i,this._to=r,this._promises=void 0}active(){return this._active}update(t,e,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,t.duration)),this._total+=o,this._loop=!!t.loop,this._to=Ns([t.to,e,r,t.from]),this._from=Ns([t.from,r,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const e=t-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||e<n),!this._active)return this._target[r]=a,void this._notify(!0);e<0?this._target[r]=o:(s=e/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 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]()}}ss.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 Dl=Object.keys(ss.animation);ss.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>"onProgress"!==t&&"onComplete"!==t&&"fn"!==t}),ss.set("animations",{colors:{type:"color",properties:["color","borderColor","backgroundColor"]},numbers:{type:"number",properties:["x","y","borderWidth","radius","tension"]}}),ss.describe("animations",{_fallback:"animation"}),ss.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 Il{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(t){if(!di(t))return;const e=this._properties;Object.getOwnPropertyNames(t).forEach(n=>{const r=t[n];if(!di(r))return;const o={};for(const t of Dl)o[t]=r[t];(ui(r.properties)&&r.properties||[n]).forEach(t=>{t!==n&&e.has(t)||e.set(t,o)})})}_animateOptions(t,e){const n=e.options,r=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(!r)return[];const o=this._createAnimations(r,n);return n.$shared&&function(t,e){const n=[],r=Object.keys(e);for(let e=0;e<r.length;e++){const o=t[r[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,r=[],o=t.$animations||(t.$animations={}),i=Object.keys(e),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(t,e));continue}const c=e[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 Nl(d,t,l,c),r.push(u)):t[l]=c}return r}update(t,e){if(0===this._properties.size)return void Object.assign(t,e);const n=this._createAnimations(t,e);return n.length?(Ml.add(this._chart,n),!0):void 0}}function Tl(t,e){const n=t&&t.options||{},r=n.reverse,o=void 0===n.min?e:0,i=void 0===n.max?e:0;return{start:r?i:o,end:r?o:i}}function Rl(t,e){const n=[],r=t._getSortedDatasetMetas(e);let o,i;for(o=0,i=r.length;o<i;++o)n.push(r[o].index);return n}function Fl(t,e,n,r={}){const o=t.keys,i="single"===r.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(r.all)continue;break}c=t.values[l],hi(c)&&(i||0===e||Bi(e)===Bi(c))&&(e+=c)}return e}}function Ll(t,e){const n=t&&t.options.stacked;return n||void 0===n&&void 0!==e.stack}function jl(t,e,n){const r=t[e]||(t[e]={});return r[n]||(r[n]={})}function zl(t,e,n,r){for(const o of e.getMatchingVisibleMetas(r).reverse()){const e=t[o.index];if(n&&e>0||!n&&e<0)return o.index}return null}function Bl(t,e){const{chart:n,_cachedMeta:r}=t,o=n._stacks||(n._stacks={}),{iScale:i,vScale:a,index:s}=r,l=i.axis,c=a.axis,u=function(t,e,n){return`${t.id}.${e.id}.${n.stack||n.type}`}(i,a,r),d=e.length;let h;for(let t=0;t<d;++t){const n=e[t],{[l]:i,[c]:d}=n;h=(n._stacks||(n._stacks={}))[c]=jl(o,u,i),h[s]=d,h._top=zl(h,a,!0,r.type),h._bottom=zl(h,a,!1,r.type)}}function Vl(t,e){const n=t.scales;return Object.keys(n).filter(t=>n[t].axis===e).shift()}function $l(t,e){const n=t.controller.index,r=t.vScale&&t.vScale.axis;if(r){e=e||t._parsed;for(const t of e){const e=t._stacks;if(!e||void 0===e[r]||void 0===e[r][n])return;delete e[r][n]}}}const Hl=t=>"reset"===t||"none"===t,Wl=(t,e)=>e?t:Object.assign({},t);class Ul{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=Ll(t.vScale,t),this.addElements()}updateIndex(t){this.index!==t&&$l(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,e=this._cachedMeta,n=this.getDataset(),r=(t,e,n,r)=>"x"===t?e:"r"===t?r:n,o=e.xAxisID=pi(n.xAxisID,Vl(t,"x")),i=e.yAxisID=pi(n.yAxisID,Vl(t,"y")),a=e.rAxisID=pi(n.rAxisID,Vl(t,"r")),s=e.indexAxis,l=e.iAxisID=r(s,o,i,a),c=e.vAxisID=r(s,i,o,a);e.xScale=this.getScaleForId(o),e.yScale=this.getScaleForId(i),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&&ia(this._data,this),t._stacked&&$l(t)}_dataCheck(){const t=this.getDataset(),e=t.data||(t.data=[]),n=this._data;if(di(e))this._data=function(t){const e=Object.keys(t),n=new Array(e.length);let r,o,i;for(r=0,o=e.length;r<o;++r)i=e[r],n[r]={x:i,y:t[i]};return n}(e);else if(n!==e){if(n){ia(n,this);const t=this._cachedMeta;$l(t),t._parsed=[]}e&&Object.isExtensible(e)&&function(t,e){t._chartjs?t._chartjs.listeners.push(e):(Object.defineProperty(t,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[e]}}),oa.forEach(e=>{const n="_onData"+Oi(e),r=t[e];Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value(...e){const o=r.apply(this,e);return t._chartjs.listeners.forEach(t=>{"function"==typeof t[n]&&t[n](...e)}),o}})}))}(e,this),this._syncList=[],this._data=e}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const e=this._cachedMeta,n=this.getDataset();let r=!1;this._dataCheck();const o=e._stacked;e._stacked=Ll(e.vScale,e),e.stack!==n.stack&&(r=!0,$l(e),e.stack=n.stack),this._resyncElements(t),(r||o!==e._stacked)&&Bl(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:r}=this,{iScale:o,_stacked:i}=n,a=o.axis;let s,l,c,u=0===t&&e===r.length||n._sorted,d=t>0&&n._parsed[t-1];if(!1===this._parsing)n._parsed=r,n._sorted=!0,c=r;else{c=ui(r[t])?this.parseArrayData(n,r,t,e):di(r[t])?this.parseObjectData(n,r,t,e):this.parsePrimitiveData(n,r,t,e);const o=()=>null===l[a]||d&&l[a]<d[a];for(s=0;s<e;++s)n._parsed[s+t]=l=c[s],u&&(o()&&(u=!1),d=l);n._sorted=u}i&&Bl(this,c)}parsePrimitiveData(t,e,n,r){const{iScale:o,vScale:i}=t,a=o.axis,s=i.axis,l=o.getLabels(),c=o===i,u=new Array(r);let d,h,f;for(d=0,h=r;d<h;++d)f=d+n,u[d]={[a]:c||o.parse(l[f],f),[s]:i.parse(e[f],f)};return u}parseArrayData(t,e,n,r){const{xScale:o,yScale:i}=t,a=new Array(r);let s,l,c,u;for(s=0,l=r;s<l;++s)c=s+n,u=e[c],a[s]={x:o.parse(u[0],c),y:i.parse(u[1],c)};return a}parseObjectData(t,e,n,r){const{xScale:o,yScale:i}=t,{xAxisKey:a="x",yAxisKey:s="y"}=this._parsing,l=new Array(r);let c,u,d,h;for(c=0,u=r;c<u;++c)d=c+n,h=e[d],l[c]={x:o.parse(Ci(h,a),d),y:i.parse(Ci(h,s),d)};return l}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,e,n){const r=this.chart,o=this._cachedMeta,i=e[t.axis];return Fl({keys:Rl(r,!0),values:e._stacks[t.axis]},i,o.index,{mode:n})}updateRangeFromParsed(t,e,n,r){const o=n[e.axis];let i=null===o?NaN:o;const a=r&&n._stacks[e.axis];r&&a&&(r.values=a,i=Fl(r,o,this._cachedMeta.index)),t.min=Math.min(t.min,i),t.max=Math.max(t.max,i)}getMinMax(t,e){const n=this._cachedMeta,r=n._parsed,o=n._sorted&&t===n.iScale,i=r.length,a=this._getOtherScale(t),s=((t,e,n)=>t&&!e.hidden&&e._stacked&&{keys:Rl(n,!0),values:null})(e,n,this.chart),l={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:c,max:u}=function(t){const{min:e,max:n,minDefined:r,maxDefined:o}=t.getUserBounds();return{min:r?e:Number.NEGATIVE_INFINITY,max:o?n:Number.POSITIVE_INFINITY}}(a);let d,h;function f(){h=r[d];const e=h[a.axis];return!hi(h[t.axis])||c>e||u<e}for(d=0;d<i&&(f()||(this.updateRangeFromParsed(l,t,h,s),!o));++d);if(o)for(d=i-1;d>=0;--d)if(!f()){this.updateRangeFromParsed(l,t,h,s);break}return l}getAllParsedValues(t){const e=this._cachedMeta._parsed,n=[];let r,o,i;for(r=0,o=e.length;r<o;++r)i=e[r][t.axis],hi(i)&&n.push(i);return n}getMaxOverflow(){return!1}getLabelAndValue(t){const e=this._cachedMeta,n=e.iScale,r=e.vScale,o=this.getParsed(t);return{label:n?""+n.getLabelForValue(o[n.axis]):"",value:r?""+r.getLabelForValue(o[r.axis]):""}}_update(t){const e=this._cachedMeta;this.update(t||"default"),e._clip=function(t){let e,n,r,o;return di(t)?(e=t.top,n=t.right,r=t.bottom,o=t.left):e=n=r=o=t,{top:e,right:n,bottom:r,left:o,disabled:!1===t}}(pi(this.options.clip,function(t,e,n){if(!1===n)return!1;const r=Tl(t,n),o=Tl(e,n);return{top:o.end,right:r.end,bottom:o.start,left:r.start}}(e.xScale,e.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,e=this.chart,n=this._cachedMeta,r=n.data||[],o=e.chartArea,i=[],a=this._drawStart||0,s=this._drawCount||r.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=r[c];e.hidden||(e.active&&l?i.push(e):e.draw(t,o))}for(c=0;c<i.length;++c)i[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 r=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 Ds(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=r.data[t],o.index=o.dataIndex=t}else o=this.$context||(this.$context=function(t,e){return Ds(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}(this.chart.getContext(),this.index)),o.dataset=r,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 r="active"===e,o=this._cachedDataOpts,i=t+"-"+e,a=o[i],s=this.enableOptionSharing&&Mi(n);if(a)return Wl(a,s);const l=this.chart.config,c=l.datasetElementScopeKeys(this._type,t),u=r?[`${t}Hover`,"hover",t,""]:[t,""],d=l.getOptionScopes(this.getDataset(),c),h=Object.keys(ss.elements[t]),f=l.resolveNamedOptions(d,h,()=>this.getContext(n,r),u);return f.$shared&&(f.$shared=s,o[i]=Object.freeze(Wl(f,s))),f}_resolveAnimations(t,e,n){const r=this.chart,o=this._cachedDataOpts,i=`animation-${e}`,a=o[i];if(a)return a;let s;if(!1!==r.options.animation){const r=this.chart.config,o=r.datasetAnimationScopeKeys(this._type,e),i=r.getOptionScopes(this.getDataset(),o);s=r.createResolver(i,this.getContext(t,n,e))}const l=new Il(r,s&&s.animations);return s&&s._cacheable&&(o[i]=Object.freeze(l)),l}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,e){return!e||Hl(t)||this.chart._animationsDisabled}_getSharedOptions(t,e){const n=this.resolveDataElementOptions(t,e),r=this._sharedOptions,o=this.getSharedOptions(n),i=this.includeOptions(e,o)||o!==r;return this.updateSharedOptions(o,e,n),{sharedOptions:o,includeOptions:i}}updateElement(t,e,n,r){Hl(r)?Object.assign(t,n):this._resolveAnimations(e,r).update(t,n)}updateSharedOptions(t,e,n){t&&!Hl(e)&&this._resolveAnimations(void 0,e).update(t,n)}_setStyle(t,e,n,r){t.active=r;const o=this.getStyle(e,r);this._resolveAnimations(e,n,r).update(t,{options:!r&&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 r=n.length,o=e.length,i=Math.min(o,r);i&&this.parse(0,i),o>r?this._insertElements(r,o-r,t):o<r&&this._removeElements(o,r-o)}_insertElements(t,e,n=!0){const r=this._cachedMeta,o=r.data,i=t+e;let a;const s=t=>{for(t.length+=e,a=t.length-1;a>=i;a--)t[a]=t[a-e]};for(s(o),a=t;a<i;++a)o[a]=new this.dataElementType;this._parsing&&s(r._parsed),this.parse(t,e),n&&this.updateElements(o,t,e,"reset")}updateElements(t,e,n,r){}_removeElements(t,e){const n=this._cachedMeta;if(this._parsing){const r=n._parsed.splice(t,e);n._stacked&&$l(n,r)}n.data.splice(t,e)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[e,n,r]=t;this[e](n,r)}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 Yl(t){const e=t.iScale,n=function(t,e){if(!t._cache.$bar){const n=t.getMatchingVisibleMetas(e);let r=[];for(let e=0,o=n.length;e<o;e++)r=r.concat(n[e].controller.getAllParsedValues(t));t._cache.$bar=sa(r.sort((t,e)=>t-e))}return t._cache.$bar}(e,t.type);let r,o,i,a,s=e._length;const l=()=>{32767!==i&&-32768!==i&&(Mi(a)&&(s=Math.min(s,Math.abs(i-a)||s)),a=i)};for(r=0,o=n.length;r<o;++r)i=e.getPixelForValue(n[r]),l();for(a=void 0,r=0,o=e.ticks.length;r<o;++r)i=e.getPixelForTick(r),l();return s}function Gl(t,e,n,r){return ui(t)?function(t,e,n,r){const o=n.parse(t[0],r),i=n.parse(t[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),e[n.axis]=c,e._custom={barStart:l,barEnd:c,start:o,end:i,min:a,max:s}}(t,e,n,r):e[n.axis]=n.parse(t,r),e}function ql(t,e,n,r){const o=t.iScale,i=t.vScale,a=o.getLabels(),s=o===i,l=[];let c,u,d,h;for(c=n,u=n+r;c<u;++c)h=e[c],d={},d[o.axis]=s||o.parse(a[c],c),l.push(Gl(h,d,i,c));return l}function Xl(t){return t&&void 0!==t.barStart&&void 0!==t.barEnd}function Kl(t,e,n,r){let o=e.borderSkipped;const i={};if(!o)return void(t.borderSkipped=i);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:u}=function(t){let e,n,r,o,i;return t.horizontal?(e=t.base>t.x,n="left",r="right"):(e=t.base<t.y,n="bottom",r="top"),e?(o="end",i="start"):(o="start",i="end"),{start:n,end:r,reverse:e,top:o,bottom:i}}(t);"middle"===o&&n&&(t.enableBorderRadius=!0,(n._top||0)===r?o=c:(n._bottom||0)===r?o=u:(i[Zl(u,a,s,l)]=!0,o=c)),i[Zl(o,a,s,l)]=!0,t.borderSkipped=i}function Zl(t,e,n,r){var o,i,a;return r?(a=n,t=Ql(t=(o=t)===(i=e)?a:o===a?i:o,n,e)):t=Ql(t,e,n),t}function Ql(t,e,n){return"start"===t?e:"end"===t?n:t}function Jl(t,{inflateAmount:e},n){t.inflateAmount="auto"===e?1===n?.33:0:e}Ul.defaults={},Ul.prototype.datasetElementType=null,Ul.prototype.dataElementType=null;class tc extends Ul{parsePrimitiveData(t,e,n,r){return ql(t,e,n,r)}parseArrayData(t,e,n,r){return ql(t,e,n,r)}parseObjectData(t,e,n,r){const{iScale:o,vScale:i}=t,{xAxisKey:a="x",yAxisKey:s="y"}=this._parsing,l="x"===o.axis?a:s,c="x"===i.axis?a:s,u=[];let d,h,f,p;for(d=n,h=n+r;d<h;++d)p=e[d],f={},f[o.axis]=o.parse(Ci(p,l),d),u.push(Gl(Ci(p,c),f,i,d));return u}updateRangeFromParsed(t,e,n,r){super.updateRangeFromParsed(t,e,n,r);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:r}=e,o=this.getParsed(t),i=o._custom,a=Xl(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(t){const e=this._cachedMeta;this.updateElements(e.data,0,e.data.length,t)}updateElements(t,e,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(e,r);for(let h=e;h<e+n;h++){const e=this.getParsed(h),n=o||ci(e[a.axis])?{base:s,head:s}:this._calculateBarValuePixels(h),f=this._calculateBarIndexPixels(h,c),p=(e._stacks||{})[a.axis],m={horizontal:l,base:n.base,enableBorderRadius:!p||Xl(e._custom)||i===p._top||i===p._bottom,x:l?n.head:f.center,y:l?f.center:n.head,height:l?f.size:Math.abs(n.size),width:l?Math.abs(n.size):f.size};d&&(m.options=u||this.resolveDataElementOptions(h,t[h].active?"active":r));const g=m.options||t[h].options;Kl(m,g,p,i),Jl(m,g,c.ratio),this.updateElement(t[h],h,m,r)}}_getStacks(t,e){const{iScale:n}=this._cachedMeta,r=n.getMatchingVisibleMetas(this._type).filter(t=>t.controller.options.grouped),o=n.options.stacked,i=[],a=t=>{const n=t.controller.getParsed(e),r=n&&n[t.vScale.axis];if(ci(r)||isNaN(r))return!0};for(const n of r)if((void 0===e||!a(n))&&((!1===o||-1===i.indexOf(n.stack)||void 0===o&&void 0===n.stack)&&i.push(n.stack),n.index===t))break;return i.length||i.push(void 0),i}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,e,n){const r=this._getStacks(t,n),o=void 0!==e?r.indexOf(e):-1;return-1===o?r.length-1:o}_getRuler(){const t=this.options,e=this._cachedMeta,n=e.iScale,r=[];let o,i;for(o=0,i=e.data.length;o<i;++o)r.push(n.getPixelForValue(this.getParsed(o)[n.axis],o));const a=t.barThickness;return{min:a||Yl(e),pixels:r,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:r,minBarLength:o}}=this,i=r||0,a=this.getParsed(t),s=a._custom,l=Xl(s);let c,u,d=a[e.axis],h=0,f=n?this.applyStack(e,a,n):d;f!==d&&(h=f-d,f=d),l&&(d=s.barStart,f=s.barEnd-s.barStart,0!==d&&Bi(d)!==Bi(s.barEnd)&&(h=0),h+=d);const p=ci(r)||l?h:r;let m=e.getPixelForValue(p);if(c=this.chart.getDataVisibility(t)?e.getPixelForValue(h+f):m,u=c-m,Math.abs(u)<o){u=function(t,e,n){return 0!==t?Bi(t):(e.isHorizontal()?1:-1)*(e.min>=n?1:-1)}(u,e,i)*o,d===i&&(m-=u/2);const t=e.getPixelForDecimal(0),n=e.getPixelForDecimal(1),r=Math.min(t,n),a=Math.max(t,n);m=Math.max(Math.min(m,a),r),c=m+u}if(m===e.getPixelForValue(i)){const t=Bi(u)*e.getLineWidthForValue(i)/2;m+=t,u-=t}return{size:u,base:m,head:c,center:c+u/2}}_calculateBarIndexPixels(t,e){const n=e.scale,r=this.options,o=r.skipNull,i=pi(r.maxBarThickness,1/0);let a,s;if(e.grouped){const n=o?this._getStackCount(t):e.stackCount,l="flex"===r.barThickness?function(t,e,n,r){const o=e.pixels,i=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=i-(null===s?e.end-e.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}}(t,e,r,n):function(t,e,n,r){const o=n.barThickness;let i,a;return ci(o)?(i=e.min*n.categoryPercentage,a=n.barPercentage):(i=o*r,a=1),{chunk:i/r,ratio:a,start:e.pixels[t]-i/2}}(t,e,r,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(i,l.chunk*l.ratio)}else a=n.getPixelForValue(this.getParsed(t)[n.axis],t),s=Math.min(i,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,r=n.length;let o=0;for(;o<r;++o)null!==this.getParsed(o)[e.axis]&&n[o].draw(this._ctx)}}tc.id="bar",tc.defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}},tc.overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};class ec extends Ul{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(t,e,n,r){const o=super.parsePrimitiveData(t,e,n,r);for(let t=0;t<o.length;t++)o[t]._custom=this.resolveDataElementOptions(t+n).radius;return o}parseArrayData(t,e,n,r){const o=super.parseArrayData(t,e,n,r);for(let t=0;t<o.length;t++){const r=e[n+t];o[t]._custom=pi(r[2],this.resolveDataElementOptions(t+n).radius)}return o}parseObjectData(t,e,n,r){const o=super.parseObjectData(t,e,n,r);for(let t=0;t<o.length;t++){const r=e[n+t];o[t]._custom=pi(r&&r.r&&+r.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:r}=e,o=this.getParsed(t),i=n.getLabelForValue(o.x),a=r.getLabelForValue(o.y),s=o._custom;return{label:e.label,value:"("+i+", "+a+(s?", "+s:"")+")"}}update(t){const e=this._cachedMeta.data;this.updateElements(e,0,e.length,t)}updateElements(t,e,n,r){const o="reset"===r,{iScale:i,vScale:a}=this._cachedMeta,{sharedOptions:s,includeOptions:l}=this._getSharedOptions(e,r),c=i.axis,u=a.axis;for(let d=e;d<e+n;d++){const e=t[d],n=!o&&this.getParsed(d),h={},f=h[c]=o?i.getPixelForDecimal(.5):i.getPixelForValue(n[c]),p=h[u]=o?a.getBasePixel():a.getPixelForValue(n[u]);h.skip=isNaN(f)||isNaN(p),l&&(h.options=s||this.resolveDataElementOptions(d,e.active?"active":r),o&&(h.options.radius=0)),this.updateElement(e,d,h,r)}}resolveDataElementOptions(t,e){const n=this.getParsed(t);let r=super.resolveDataElementOptions(t,e);r.$shared&&(r=Object.assign({},r,{$shared:!1}));const o=r.radius;return"active"!==e&&(r.radius=0),r.radius+=pi(n&&n._custom,o),r}}ec.id="bubble",ec.defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}},ec.overrides={scales:{x:{type:"linear"},y:{type:"linear"}},plugins:{tooltip:{callbacks:{title:()=>""}}}};class nc extends Ul{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,r=this._cachedMeta;if(!1===this._parsing)r._parsed=n;else{let o,i,a=t=>+n[t];if(di(n[t])){const{key:t="value"}=this._parsing;a=e=>+Ci(n[e],t)}for(o=t,i=t+e;o<i;++o)r._parsed[o]=a(o)}}_getRotation(){return Ui(this.options.rotation-90)}_getCircumference(){return Ui(this.options.circumference)}_getRotationExtents(){let t=Di,e=-Di;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();t=Math.min(t,o),e=Math.max(e,o+i)}return{rotation:t,circumference:e-t}}update(t){const e=this.chart,{chartArea:n}=e,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:h}=this._getRotationExtents(),{ratioX:f,ratioY:p,offsetX:m,offsetY:g}=function(t,e,n){let r=1,o=1,i=0,a=0;if(e<Di){const s=t,l=s+e,c=Math.cos(s),u=Math.sin(s),d=Math.cos(l),h=Math.sin(l),f=(t,e,r)=>Qi(t,s,l,!0)?1:Math.max(e,e*n,r,r*n),p=(t,e,r)=>Qi(t,s,l,!0)?-1:Math.min(e,e*n,r,r*n),m=f(0,c,d),g=f(Fi,u,h),b=p(Ni,c,d),v=p(Ni+Fi,u,h);r=(m-b)/2,o=(g-v)/2,i=-(m+b)/2,a=-(g+v)/2}return{ratioX:r,ratioY:o,offsetX:i,offsetY:a}}(h,d,s),b=(n.width-i)/f,v=(n.height-i)/p,y=Math.max(Math.min(b,v)/2,0),x=mi(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,t)}_circumference(t,e){const n=this.options,r=this._cachedMeta,o=this._getCircumference();return e&&n.animation.animateRotate||!this.chart.getDataVisibility(t)||null===r._parsed[t]||r.data[t].hidden?0:this.calculateCircumference(r._parsed[t]*o/Di)}updateElements(t,e,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,h=u?0:this.outerRadius,{sharedOptions:f,includeOptions:p}=this._getSharedOptions(e,r);let m,g=this._getRotation();for(m=0;m<e;++m)g+=this._circumference(m,o);for(m=e;m<e+n;++m){const e=this._circumference(m,o),n=t[m],i={x:l+this.offsetX,y:c+this.offsetY,startAngle:g,endAngle:g+e,circumference:e,outerRadius:h,innerRadius:d};p&&(i.options=f||this.resolveDataElementOptions(m,n.active?"active":r)),g+=e,this.updateElement(n,m,i,r)}}calculateTotal(){const t=this._cachedMeta,e=t.data;let n,r=0;for(n=0;n<e.length;n++){const o=t._parsed[n];null===o||isNaN(o)||!this.chart.getDataVisibility(n)||e[n].hidden||(r+=Math.abs(o))}return r}calculateCircumference(t){const e=this._cachedMeta.total;return e>0&&!isNaN(t)?Di*(Math.abs(t)/e):0}getLabelAndValue(t){const e=this._cachedMeta,n=this.chart,r=n.data.labels||[],o=bl(e._parsed[t],n.options.locale);return{label:r[t]||"",value:o}}getMaxBorderWidth(t){let e=0;const n=this.chart;let r,o,i,a,s;if(!t)for(r=0,o=n.data.datasets.length;r<o;++r)if(n.isDatasetVisible(r)){i=n.getDatasetMeta(r),t=i.data,a=i.controller;break}if(!t)return 0;for(r=0,o=t.length;r<o;++r)s=a.resolveDataElementOptions(r),"inner"!==s.borderAlign&&(e=Math.max(e,s.borderWidth||0,s.hoverBorderWidth||0));return e}getMaxOffset(t){let e=0;for(let n=0,r=t.length;n<r;++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(pi(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}nc.id="doughnut",nc.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"},nc.descriptors={_scriptable:t=>"spacing"!==t,_indexable:t=>"spacing"!==t},nc.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,r)=>{const o=t.getDatasetMeta(0).controller.getStyle(r);return{text:e,fillStyle:o.backgroundColor,strokeStyle:o.borderColor,lineWidth:o.borderWidth,pointStyle:n,hidden:!t.getDataVisibility(r),index:r}})}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 ui(e)?(e=e.slice(),e[0]+=n):e+=n,e}}}}};class rc extends Ul{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const e=this._cachedMeta,{dataset:n,data:r=[],_dataset:o}=e,i=this.chart._animationsDisabled;let{start:a,count:s}=ha(e,r,i);this._drawStart=a,this._drawCount=s,fa(e)&&(a=0,s=r.length),n._chart=this.chart,n._datasetIndex=this.index,n._decimated=!!o._decimated,n.points=r;const l=this.resolveDatasetElementOptions(t);this.options.showLine||(l.borderWidth=0),l.segment=this.options.segment,this.updateElement(n,void 0,{animated:!i,options:l},t),this.updateElements(r,a,s,t)}updateElements(t,e,n,r){const o="reset"===r,{iScale:i,vScale:a,_stacked:s,_dataset:l}=this._cachedMeta,{sharedOptions:c,includeOptions:u}=this._getSharedOptions(e,r),d=i.axis,h=a.axis,{spanGaps:f,segment:p}=this.options,m=$i(f)?f:Number.POSITIVE_INFINITY,g=this.chart._animationsDisabled||o||"none"===r;let b=e>0&&this.getParsed(e-1);for(let f=e;f<e+n;++f){const e=t[f],n=this.getParsed(f),v=g?e:{},y=ci(n[h]),x=v[d]=i.getPixelForValue(n[d],f),w=v[h]=o||y?a.getBasePixel():a.getPixelForValue(s?this.applyStack(a,n,s):n[h],f);v.skip=isNaN(x)||isNaN(w)||y,v.stop=f>0&&Math.abs(n[d]-b[d])>m,p&&(v.parsed=n,v.raw=l.data[f]),u&&(v.options=c||this.resolveDataElementOptions(f,e.active?"active":r)),g||this.updateElement(e,f,v,r),b=n}}getMaxOverflow(){const t=this._cachedMeta,e=t.dataset,n=e.options&&e.options.borderWidth||0,r=t.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 t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}rc.id="line",rc.defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1},rc.overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};class oc extends Ul{constructor(t,e){super(t,e),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const e=this._cachedMeta,n=this.chart,r=n.data.labels||[],o=bl(e._parsed[t].r,n.options.locale);return{label:r[t]||"",value:o}}parseObjectData(t,e,n,r){return Ys.bind(this)(t,e,n,r)}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 r=this.getParsed(n).r;!isNaN(r)&&this.chart.getDataVisibility(n)&&(r<e.min&&(e.min=r),r>e.max&&(e.max=r))}),e}_updateRadius(){const t=this.chart,e=t.chartArea,n=t.options,r=Math.min(e.right-e.left,e.bottom-e.top),o=Math.max(r/2,0),i=(o-Math.max(n.cutoutPercentage?o/100*n.cutoutPercentage:1,0))/t.getVisibleDatasetCount();this.outerRadius=o-i*this.index,this.innerRadius=this.outerRadius-i}updateElements(t,e,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*Ni;let d,h=u;const f=360/this.countVisibleElements();for(d=0;d<e;++d)h+=this._computeAngle(d,r,f);for(d=e;d<e+n;d++){const e=t[d];let n=h,p=h+this._computeAngle(d,r,f),m=i.getDataVisibility(d)?s.getDistanceFromCenterForValue(this.getParsed(d).r):0;h=p,o&&(a.animateScale&&(m=0),a.animateRotate&&(n=p=u));const g={x:l,y:c,innerRadius:0,outerRadius:m,startAngle:n,endAngle:p,options:this.resolveDataElementOptions(d,e.active?"active":r)};this.updateElement(e,d,g,r)}}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)?Ui(this.resolveDataElementOptions(t,e).angle||n):0}}oc.id="polarArea",oc.defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0},oc.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,r)=>{const o=t.getDatasetMeta(0).controller.getStyle(r);return{text:e,fillStyle:o.backgroundColor,strokeStyle:o.borderColor,lineWidth:o.borderWidth,pointStyle:n,hidden:!t.getDataVisibility(r),index:r}})}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 ic extends nc{}ic.id="pie",ic.defaults={cutout:0,rotation:0,circumference:360,radius:"100%"};class sc extends Ul{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,r){return Ys.bind(this)(t,e,n,r)}update(t){const e=this._cachedMeta,n=e.dataset,r=e.data||[],o=e.iScale.getLabels();if(n.points=r,"resize"!==t){const e=this.resolveDatasetElementOptions(t);this.options.showLine||(e.borderWidth=0);const i={_loop:!0,_fullLoop:o.length===r.length,options:e};this.updateElement(n,void 0,i,t)}this.updateElements(r,0,r.length,t)}updateElements(t,e,n,r){const o=this._cachedMeta.rScale,i="reset"===r;for(let a=e;a<e+n;a++){const e=t[a],n=this.resolveDataElementOptions(a,e.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(e,a,u,r)}}}sc.id="radar",sc.defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}},sc.overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};class lc{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 $i(this.x)&&$i(this.y)}getProps(t,e){const n=this.$animations;if(!e||!n)return this;const r={};return t.forEach(t=>{r[t]=n[t]&&n[t].active()?n[t]._to:this[t]}),r}}lc.defaults={},lc.defaultRoutes=void 0;const cc={values:t=>ui(t)?t:""+t,numeric(t,e,n){if(0===t)return"0";const r=this.chart.options.locale;let o,i=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"),i=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=zi(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),bl(t,r,l)},logarithmic(t,e,n){if(0===t)return"0";const r=t/Math.pow(10,Math.floor(zi(t)));return 1===r||2===r||5===r?cc.numeric.call(this,t,e,n):""}};var uc={formatters:cc};function dc(t,e){const n=t.options.ticks,r=n.maxTicksLimit||function(t){const e=t.options.offset,n=t._tickSize(),r=t._length/n+(e?0:1),o=t._maxLength/n;return Math.floor(Math.min(r,o))}(t),o=n.major.enabled?function(t){const e=[];let n,r;for(n=0,r=t.length;n<r;n++)t[n].major&&e.push(n);return e}(e):[],i=o.length,a=o[0],s=o[i-1],l=[];if(i>r)return function(t,e,n,r){let o,i=0,a=n[0];for(r=Math.ceil(r),o=0;o<t.length;o++)o===a&&(e.push(t[o]),i++,a=n[i*r])}(e,l,o,i/r),l;const c=function(t,e,n){const r=function(t){const e=t.length;let n,r;if(e<2)return!1;for(r=t[0],n=1;n<e;++n)if(t[n]-t[n-1]!==r)return!1;return r}(t),o=e.length/n;if(!r)return Math.max(o,1);const i=function(t){const e=[],n=Math.sqrt(t);let r;for(r=1;r<n;r++)t%r===0&&(e.push(r),e.push(t/r));return n===(0|n)&&e.push(n),e.sort((t,e)=>t-e).pop(),e}(r);for(let t=0,e=i.length-1;t<e;t++){const e=i[t];if(e>o)return e}return Math.max(o,1)}(o,e,r);if(i>0){let t,n;const r=i>1?Math.round((s-a)/(i-1)):null;for(hc(e,l,c,ci(r)?0:a-r,a),t=0,n=i-1;t<n;t++)hc(e,l,c,o[t],o[t+1]);return hc(e,l,c,s,ci(r)?e.length:s+r),l}return hc(e,l,c),l}function hc(t,e,n,r,o){const i=pi(r,0),a=Math.min(pi(o,t.length),t.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&&(e.push(t[l]),u++,c=Math.round(i+u*n))}ss.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:uc.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),ss.route("scale.ticks","color","","color"),ss.route("scale.grid","color","","borderColor"),ss.route("scale.grid","borderColor","","borderColor"),ss.route("scale.title","color","","color"),ss.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&"callback"!==t&&"parser"!==t,_indexable:t=>"borderDash"!==t&&"tickBorderDash"!==t}),ss.describe("scales",{_fallback:"scale"}),ss.describe("scale.ticks",{_scriptable:t=>"backdropPadding"!==t&&"callback"!==t,_indexable:t=>"backdropPadding"!==t});const fc=(t,e,n)=>"top"===e||"left"===e?t[e]+n:t[e]-n;function pc(t,e){const n=[],r=t.length/e,o=t.length;let i=0;for(;i<o;i+=r)n.push(t[Math.floor(i)]);return n}function mc(t,e,n){const r=t.ticks.length,o=Math.min(e,r-1),i=t._startPixel,a=t._endPixel,s=1e-6;let l,c=t.getPixelForTick(o);if(!(n&&(l=1===r?Math.max(c-i,a-c):0===e?(t.getPixelForTick(1)-c)/2:(c-t.getPixelForTick(o-1))/2,c+=o<e?l:-l,c<i-s||c>a+s)))return c}function gc(t){return t.drawTicks?t.tickLength:0}function vc(t,e){if(!t.display)return 0;const n=As(t.font,e),r=Ps(t.padding);return(ui(t.text)?t.text.length:1)*n.lineHeight+r.height}function yc(t,e,n){let r=ua(t);return(n&&"right"!==e||!n&&"right"===e)&&(r=(t=>"left"===t?"right":"right"===t?"left":t)(r)),r}class xc extends lc{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:r}=this;return t=fi(t,Number.POSITIVE_INFINITY),e=fi(e,Number.NEGATIVE_INFINITY),n=fi(n,Number.POSITIVE_INFINITY),r=fi(r,Number.NEGATIVE_INFINITY),{min:fi(t,n),max:fi(e,r),minDefined:hi(t),maxDefined:hi(e)}}getMinMax(t){let e,{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)e=a[s].controller.getMinMax(this,t),o||(n=Math.min(n,e.min)),i||(r=Math.max(r,e.max));return n=i&&n>r?r:n,r=o&&n>r?n:r,{min:fi(n,fi(r,n)),max:fi(r,fi(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 t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){gi(this.options.beforeUpdate,[this])}update(t,e,n){const{beginAtZero:r,grace:o,ticks:i}=this.options,a=i.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:r,max:o}=t,i=mi(e,(o-r)/2),a=(t,e)=>n&&0===t?0:t+e;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?pc(this.ticks,a):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),i.display&&(i.autoSkip||"auto"===i.source)&&(this.ticks=dc(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(){gi(this.options.afterUpdate,[this])}beforeSetDimensions(){gi(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(){gi(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),gi(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){gi(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const e=this.options.ticks;let n,r,o;for(n=0,r=t.length;n<r;n++)o=t[n],o.label=gi(e.callback,[o.value,n,t],this)}afterTickToLabelConversion(){gi(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){gi(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,e=t.ticks,n=this.ticks.length,r=e.minRotation||0,o=e.maxRotation;let i,a,s,l=r;if(!this._isVisible()||!e.display||r>=o||n<=1||!this.isHorizontal())return void(this.labelRotation=r);const c=this._getLabelSizes(),u=c.widest.width,d=c.highest.height,h=Ji(this.chart.width-u,0,this.maxWidth);i=t.offset?this.maxWidth/n:h/(n-1),u+6>i&&(i=h/(n-(t.offset?.5:1)),a=this.maxHeight-gc(t.grid)-e.padding-vc(t.title,this.chart.options.font),s=Math.sqrt(u*u+d*d),l=Yi(Math.min(Math.asin(Ji((c.highest.height+6)/i,-1,1)),Math.asin(Ji(a/s,-1,1))-Math.asin(Ji(d/s,-1,1)))),l=Math.max(r,Math.min(o,l))),this.labelRotation=l}afterCalculateLabelRotation(){gi(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){gi(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:e,options:{ticks:n,title:r,grid:o}}=this,i=this._isVisible(),a=this.isHorizontal();if(i){const i=vc(r,e.options.font);if(a?(t.width=this.maxWidth,t.height=gc(o)+i):(t.height=this.maxHeight,t.width=gc(o)+i),n.display&&this.ticks.length){const{first:e,last:r,widest:o,highest:i}=this._getLabelSizes(),s=2*n.padding,l=Ui(this.labelRotation),c=Math.cos(l),u=Math.sin(l);if(a){const e=n.mirror?0:u*o.width+c*i.height;t.height=Math.min(this.maxHeight,t.height+e+s)}else{const e=n.mirror?0:c*o.width+u*i.height;t.width=Math.min(this.maxWidth,t.width+e+s)}this._calculatePadding(e,r,u,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,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*t.width,d=n*e.height):(u=n*t.height,d=r*e.width):"start"===o?d=e.width:"end"===o?u=t.width:"inner"!==o&&(u=t.width/2,d=e.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=e.height/2,r=t.height/2;"start"===o?(n=0,r=t.height):"end"===o&&(n=e.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(){gi(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++)ci(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=pc(n,e)),this._labelSizes=t=this._computeLabelSizes(n,n.length)}return t}_computeLabelSizes(t,e){const{ctx:n,_longestTextCache:r}=this,o=[],i=[];let a,s,l,c,u,d,h,f,p,m,g,b=0,v=0;for(a=0;a<e;++a){if(c=t[a].label,u=this._resolveTickFontOptions(a),n.font=d=u.string,h=r[d]=r[d]||{data:{},gc:[]},f=u.lineHeight,p=m=0,ci(c)||ui(c)){if(ui(c))for(s=0,l=c.length;s<l;++s)g=c[s],ci(g)||ui(g)||(p=ls(n,h.data,h.gc,p,g),m+=f)}else p=ls(n,h.data,h.gc,p,c),m=f;o.push(p),i.push(m),b=Math.max(p,b),v=Math.max(m,v)}!function(t,e){bi(t,t=>{const n=t.gc,r=n.length/2;let o;if(r>e){for(o=0;o<r;++o)delete t.data[n[o]];n.splice(0,r)}})}(r,e);const y=o.indexOf(b),x=i.indexOf(v),w=t=>({width:o[t]||0,height:i[t]||0});return{first:w(0),last:w(e-1),widest:w(y),highest:w(x),widths:o,heights:i}}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 Ji(this._alignToPixels?us(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 Ds(t,{tick:n,index:e,type:"tick"})}(this.getContext(),t,n))}return this.$context||(this.$context=Ds(this.chart.getContext(),{scale:this,type:"scale"}))}_tickSize(){const t=this.options.ticks,e=Ui(this.labelRotation),n=Math.abs(Math.cos(e)),r=Math.abs(Math.sin(e)),o=this._getLabelSizes(),i=t.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 t=this.options.display;return"auto"!==t?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const e=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=gc(o),u=[],d=o.setContext(this.getContext()),h=d.drawBorder?d.borderWidth:0,f=h/2,p=function(t){return us(n,t,h)};let m,g,b,v,y,x,w,E,S,k,_,C;if("top"===i)m=p(this.bottom),x=this.bottom-c,E=m-f,k=p(t.top)+f,C=t.bottom;else if("bottom"===i)m=p(this.top),k=t.top,C=p(t.bottom)-f,x=m+f,E=this.top+c;else if("left"===i)m=p(this.right),y=this.right-c,w=m-f,S=p(t.left)+f,_=t.right;else if("right"===i)m=p(this.left),S=t.left,_=p(t.right)-f,y=m+f,w=this.left+c;else if("x"===e){if("center"===i)m=p((t.top+t.bottom)/2+.5);else if(di(i)){const t=Object.keys(i)[0],e=i[t];m=p(this.chart.scales[t].getPixelForValue(e))}k=t.top,C=t.bottom,x=m+f,E=x+c}else if("y"===e){if("center"===i)m=p((t.left+t.right)/2);else if(di(i)){const t=Object.keys(i)[0],e=i[t];m=p(this.chart.scales[t].getPixelForValue(e))}y=m-f,w=y-c,S=t.left,_=t.right}const O=pi(r.ticks.maxTicksLimit,l),M=Math.max(1,Math.ceil(l/O));for(g=0;g<l;g+=M){const t=o.setContext(this.getContext(g)),e=t.lineWidth,r=t.color,i=t.borderDash||[],l=t.borderDashOffset,c=t.tickWidth,d=t.tickColor,h=t.tickBorderDash||[],f=t.tickBorderDashOffset;b=mc(this,g,a),void 0!==b&&(v=us(n,b,e),s?y=w=S=_=v:x=E=k=C=v,u.push({tx1:y,ty1:x,tx2:w,ty2:E,x1:S,y1:k,x2:_,y2:C,width:e,color:r,borderDash:i,borderDashOffset:l,tickWidth:c,tickColor:d,tickBorderDash:h,tickBorderDashOffset:f}))}return this._ticksLength=l,this._borderValue=m,u}_computeLabelItems(t){const e=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=gc(n.grid),h=d+c,f=u?-c:h,p=-Ui(this.labelRotation),m=[];let g,b,v,y,x,w,E,S,k,_,C,O,M="middle";if("top"===r)w=this.bottom-f,E=this._getXAxisLabelAlignment();else if("bottom"===r)w=this.top+f,E=this._getXAxisLabelAlignment();else if("left"===r){const t=this._getYAxisLabelAlignment(d);E=t.textAlign,x=t.x}else if("right"===r){const t=this._getYAxisLabelAlignment(d);E=t.textAlign,x=t.x}else if("x"===e){if("center"===r)w=(t.top+t.bottom)/2+h;else if(di(r)){const t=Object.keys(r)[0],e=r[t];w=this.chart.scales[t].getPixelForValue(e)+h}E=this._getXAxisLabelAlignment()}else if("y"===e){if("center"===r)x=(t.left+t.right)/2-h;else if(di(r)){const t=Object.keys(r)[0],e=r[t];x=this.chart.scales[t].getPixelForValue(e)}E=this._getYAxisLabelAlignment(d).textAlign}"y"===e&&("start"===s?M="top":"end"===s&&(M="bottom"));const P=this._getLabelSizes();for(g=0,b=a.length;g<b;++g){v=a[g],y=v.label;const t=o.setContext(this.getContext(g));S=this.getPixelForTick(g)+o.labelOffset,k=this._resolveTickFontOptions(g),_=k.lineHeight,C=ui(y)?y.length:1;const e=C/2,n=t.color,s=t.textStrokeColor,c=t.textStrokeWidth;let d,h=E;if(i?(x=S,"inner"===E&&(h=g===b-1?this.options.reverse?"left":"right":0===g?this.options.reverse?"right":"left":"center"),O="top"===r?"near"===l||0!==p?-C*_+_/2:"center"===l?-P.highest.height/2-e*_+_:-P.highest.height+_/2:"near"===l||0!==p?_/2:"center"===l?P.highest.height/2-e*_:P.highest.height-C*_,u&&(O*=-1)):(w=S,O=(1-C)*_/2),t.showLabelBackdrop){const e=Ps(t.backdropPadding),n=P.heights[g],r=P.widths[g];let o=w+O-e.top,i=x-e.left;switch(M){case"middle":o-=n/2;break;case"bottom":o-=n}switch(E){case"center":i-=r/2;break;case"right":i-=r}d={left:i,top:o,width:r+e.width,height:n+e.height,color:t.backdropColor}}m.push({rotation:p,label:y,font:k,color:n,strokeColor:s,strokeWidth:c,textOffset:O,textAlign:h,textBaseline:M,translation:[x,w],backdrop:d})}return m}_getXAxisLabelAlignment(){const{position:t,ticks:e}=this.options;if(-Ui(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:r,padding:o}}=this.options,i=t+o,a=this._getLabelSizes().widest.width;let s,l;return"left"===e?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"===e?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 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:r,width:o,height:i}=this;e&&(t.save(),t.fillStyle=e,t.fillRect(n,r,o,i),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,r=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let o,i;const a=(t,e,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(t.x,t.y),n.lineTo(e.x,e.y),n.stroke(),n.restore())};if(e.display)for(o=0,i=r.length;o<i;++o){const t=r[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,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=us(t,this.left,o)-o/2,l=us(t,this.right,i)+i/2,c=u=a):(c=us(t,this.top,o)-o/2,u=us(t,this.bottom,i)+i/2,s=l=a),e.save(),e.lineWidth=r.borderWidth,e.strokeStyle=r.borderColor,e.beginPath(),e.moveTo(s,c),e.lineTo(l,u),e.stroke(),e.restore()}drawLabels(t){if(!this.options.ticks.display)return;const e=this.ctx,n=this._computeLabelArea();n&&ms(e,n);const r=this._labelItems||(this._labelItems=this._computeLabelItems(t));let o,i;for(o=0,i=r.length;o<i;++o){const t=r[o],n=t.font,i=t.label;t.backdrop&&(e.fillStyle=t.backdrop.color,e.fillRect(t.backdrop.left,t.backdrop.top,t.backdrop.width,t.backdrop.height)),ys(e,i,0,t.textOffset,n,t)}n&&gs(e)}drawTitle(){const{ctx:t,options:{position:e,title:n,reverse:r}}=this;if(!n.display)return;const o=As(n.font),i=Ps(n.padding),a=n.align;let s=o.lineHeight/2;"bottom"===e||"center"===e||di(e)?(s+=i.bottom,ui(n.text)&&(s+=o.lineHeight*(n.text.length-1))):s+=i.top;const{titleX:l,titleY:c,maxWidth:u,rotation:d}=function(t,e,n,r){const{top:o,left:i,bottom:a,right:s,chart:l}=t,{chartArea:c,scales:u}=l;let d,h,f,p=0;const m=a-o,g=s-i;if(t.isHorizontal()){if(h=da(r,i,s),di(n)){const t=Object.keys(n)[0],r=n[t];f=u[t].getPixelForValue(r)+m-e}else f="center"===n?(c.bottom+c.top)/2+m-e:fc(t,n,e);d=s-i}else{if(di(n)){const t=Object.keys(n)[0],r=n[t];h=u[t].getPixelForValue(r)-g+e}else h="center"===n?(c.left+c.right)/2-g+e:fc(t,n,e);f=da(r,a,o),p="left"===n?-Fi:Fi}return{titleX:h,titleY:f,maxWidth:d,rotation:p}}(this,s,e,a);ys(t,n.text,0,0,o,{color:n.color,maxWidth:u,rotation:d,textAlign:yc(a,e,r),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=pi(t.grid&&t.grid.z,-1);return this._isVisible()&&this.draw===xc.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",r=[];let o,i;for(o=0,i=e.length;o<i;++o){const i=e[o];i[n]!==this.id||t&&i.type!==t||r.push(i)}return r}_resolveTickFontOptions(t){return As(this.options.ticks.setContext(this.getContext(t)).font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class wc{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 r=this.items,o=t.id,i=this.scope+"."+o;if(!o)throw new Error("class does not have id: "+t);return o in r||(r[o]=t,function(t,e,n){const r=Ei(Object.create(null),[n?ss.get(n):{},ss.get(e),t.defaults]);ss.set(e,r),t.defaultRoutes&&function(t,e){Object.keys(e).forEach(n=>{const r=n.split("."),o=r.pop(),i=[t].concat(r).join("."),a=e[n].split("."),s=a.pop(),l=a.join(".");ss.route(i,o,l,s)})}(e,t.defaultRoutes);t.descriptors&&ss.describe(e,t.descriptors)}(t,i,n),this.override&&ss.override(t.id,t.overrides)),i}get(t){return this.items[t]}unregister(t){const e=this.items,n=t.id,r=this.scope;n in e&&delete e[n],r&&n in ss[r]&&(delete ss[r][n],this.override&&delete ns[n])}}var Ec=new class{constructor(){this.controllers=new wc(Ul,"datasets",!0),this.elements=new wc(lc,"elements"),this.plugins=new wc(Object,"plugins"),this.scales=new wc(xc,"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 r=n||this._getRegistryForType(e);n||r.isForType(e)||r===this.plugins&&e.id?this._exec(t,r,e):bi(e,e=>{const r=n||this._getRegistryForType(e);this._exec(t,r,e)})})}_exec(t,e,n){const r=Oi(t);gi(n["before"+r],[],n),e[t](n),gi(n["after"+r],[],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 r=e.get(t);if(void 0===r)throw new Error('"'+t+'" is not a registered '+n+".");return r}};class Sc extends Ul{update(t){const e=this._cachedMeta,{data:n=[]}=e,r=this.chart._animationsDisabled;let{start:o,count:i}=ha(e,n,r);if(this._drawStart=o,this._drawCount=i,fa(e)&&(o=0,i=n.length),this.options.showLine){const{dataset:o,_dataset:i}=e;o._chart=this.chart,o._datasetIndex=this.index,o._decimated=!!i._decimated,o.points=n;const a=this.resolveDatasetElementOptions(t);a.segment=this.options.segment,this.updateElement(o,void 0,{animated:!r,options:a},t)}this.updateElements(n,o,i,t)}addElements(){const{showLine:t}=this.options;!this.datasetElementType&&t&&(this.datasetElementType=Ec.getElement("line")),super.addElements()}updateElements(t,e,n,r){const o="reset"===r,{iScale:i,vScale:a,_stacked:s,_dataset:l}=this._cachedMeta,c=this.resolveDataElementOptions(e,r),u=this.getSharedOptions(c),d=this.includeOptions(r,u),h=i.axis,f=a.axis,{spanGaps:p,segment:m}=this.options,g=$i(p)?p:Number.POSITIVE_INFINITY,b=this.chart._animationsDisabled||o||"none"===r;let v=e>0&&this.getParsed(e-1);for(let c=e;c<e+n;++c){const e=t[c],n=this.getParsed(c),p=b?e:{},y=ci(n[f]),x=p[h]=i.getPixelForValue(n[h],c),w=p[f]=o||y?a.getBasePixel():a.getPixelForValue(s?this.applyStack(a,n,s):n[f],c);p.skip=isNaN(x)||isNaN(w)||y,p.stop=c>0&&Math.abs(n[h]-v[h])>g,m&&(p.parsed=n,p.raw=l.data[c]),d&&(p.options=u||this.resolveDataElementOptions(c,e.active?"active":r)),b||this.updateElement(e,c,p,r),v=n}this.updateSharedOptions(u,r,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,r=n.options&&n.options.borderWidth||0;if(!e.length)return r;const o=e[0].size(this.resolveDataElementOptions(0)),i=e[e.length-1].size(this.resolveDataElementOptions(e.length-1));return Math.max(r,o,i)/2}}function kc(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}Sc.id="scatter",Sc.defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1},Sc.overrides={interaction:{mode:"point"},plugins:{tooltip:{callbacks:{title:()=>"",label:t=>"("+t.label+", "+t.formattedValue+")"}}},scales:{x:{type:"linear"},y:{type:"linear"}}};class _c{constructor(t){this.options=t||{}}init(t){}formats(){return kc()}parse(t,e){return kc()}format(t,e){return kc()}add(t,e,n){return kc()}diff(t,e,n){return kc()}startOf(t,e,n){return kc()}endOf(t,e){return kc()}}_c.override=function(t){Object.assign(_c.prototype,t)};var Cc={_date:_c};function Oc(t,e,n,r){const{controller:o,data:i,_sorted:a}=t,s=o._cachedMeta.iScale;if(s&&e===s.axis&&"r"!==e&&a&&i.length){const t=s._reversePixels?ra:na;if(!r)return t(i,e,n);if(o._sharedOptions){const r=i[0],o="function"==typeof r.getRange&&r.getRange(e);if(o){const r=t(i,e,n-o),a=t(i,e,n+o);return{lo:r.lo,hi:a.hi}}}}return{lo:0,hi:i.length-1}}function Mc(t,e,n,r,o){const i=t.getSortedVisibleDatasetMetas(),a=n[e];for(let t=0,n=i.length;t<n;++t){const{index:n,data:s}=i[t],{lo:l,hi:c}=Oc(i[t],e,a,o);for(let t=l;t<=c;++t){const e=s[t];e.skip||r(e,n,t)}}}function Pc(t,e,n,r,o){const i=[];if(!o&&!t.isPointInArea(e))return i;return Mc(t,n,e,function(n,a,s){(o||ps(n,t.chartArea,0))&&n.inRange(e.x,e.y,r)&&i.push({element:n,datasetIndex:a,index:s})},!0),i}function Ac(t,e,n,r,o,i){let a=[];const s=function(t){const e=-1!==t.indexOf("x"),n=-1!==t.indexOf("y");return function(t,r){const o=e?Math.abs(t.x-r.x):0,i=n?Math.abs(t.y-r.y):0;return Math.sqrt(Math.pow(o,2)+Math.pow(i,2))}}(n);let l=Number.POSITIVE_INFINITY;return Mc(t,n,e,function(n,c,u){const d=n.inRange(e.x,e.y,o);if(r&&!d)return;const h=n.getCenterPoint(o);if(!(!!i||t.isPointInArea(h))&&!d)return;const f=s(e,h);f<l?(a=[{element:n,datasetIndex:c,index:u}],l=f):f===l&&a.push({element:n,datasetIndex:c,index:u})}),a}function Nc(t,e,n,r,o,i){return i||t.isPointInArea(e)?"r"!==n||r?Ac(t,e,n,r,o,i):function(t,e,n,r){let o=[];return Mc(t,n,e,function(t,n,i){const{startAngle:a,endAngle:s}=t.getProps(["startAngle","endAngle"],r),{angle:l}=qi(t,{x:e.x,y:e.y});Qi(l,a,s)&&o.push({element:t,datasetIndex:n,index:i})}),o}(t,e,n,o):[]}function Dc(t,e,n,r,o){const i=[],a="x"===n?"inXRange":"inYRange";let s=!1;return Mc(t,n,e,(t,r,l)=>{t[a](e[n],o)&&(i.push({element:t,datasetIndex:r,index:l}),s=s||t.inRange(e.x,e.y,o))}),r&&!s?[]:i}var Ic={evaluateInteractionItems:Mc,modes:{index(t,e,n,r){const o=sl(e,t),i=n.axis||"x",a=n.includeInvisible||!1,s=n.intersect?Pc(t,o,i,r,a):Nc(t,o,i,!1,r,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,r){const o=sl(e,t),i=n.axis||"xy",a=n.includeInvisible||!1;let s=n.intersect?Pc(t,o,i,r,a):Nc(t,o,i,!1,r,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,r)=>Pc(t,sl(e,t),n.axis||"xy",r,n.includeInvisible||!1),nearest(t,e,n,r){const o=sl(e,t),i=n.axis||"xy",a=n.includeInvisible||!1;return Nc(t,o,i,n.intersect,r,a)},x:(t,e,n,r)=>Dc(t,sl(e,t),"x",n.intersect,r),y:(t,e,n,r)=>Dc(t,sl(e,t),"y",n.intersect,r)}};const Tc=["left","top","right","bottom"];function Rc(t,e){return t.filter(t=>t.pos===e)}function Fc(t,e){return t.filter(t=>-1===Tc.indexOf(t.pos)&&t.box.axis===e)}function Lc(t,e){return t.sort((t,n)=>{const r=e?n:t,o=e?t:n;return r.weight===o.weight?r.index-o.index:r.weight-o.weight})}function jc(t,e){const n=function(t){const e={};for(const n of t){const{stack:t,pos:r,stackWeight:o}=n;if(!t||!Tc.includes(r))continue;const i=e[t]||(e[t]={count:0,placed:0,weight:0,size:0});i.count++,i.weight+=o}return e}(t),{vBoxMaxWidth:r,hBoxMaxHeight:o}=e;let i,a,s;for(i=0,a=t.length;i<a;++i){s=t[i];const{fullSize:a}=s.box,l=n[s.stack],c=l&&s.stackWeight/l.weight;s.horizontal?(s.width=c?c*r:a&&e.availableWidth,s.height=o):(s.width=r,s.height=c?c*o:a&&e.availableHeight)}return n}function zc(t,e,n,r){return Math.max(t[n],e[n])+Math.max(t[r],e[r])}function Bc(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 Vc(t,e,n,r){const{pos:o,box:i}=n,a=t.maxPadding;if(!di(o)){n.size&&(t[o]-=n.size);const e=r[n.stack]||{size:0,count:1};e.size=Math.max(e.size,n.horizontal?i.height:i.width),n.size=e.size/e.count,t[o]+=n.size}i.getPadding&&Bc(a,i.getPadding());const s=Math.max(0,e.outerWidth-zc(a,t,"left","right")),l=Math.max(0,e.outerHeight-zc(a,t,"top","bottom")),c=s!==t.w,u=l!==t.h;return t.w=s,t.h=l,n.horizontal?{same:c,other:u}:{same:u,other:c}}function $c(t,e){const n=e.maxPadding;function r(t){const r={left:0,top:0,right:0,bottom:0};return t.forEach(t=>{r[t]=Math.max(e[t],n[t])}),r}return r(t?["left","right"]:["top","bottom"])}function Hc(t,e,n,r){const o=[];let i,a,s,l,c,u;for(i=0,a=t.length,c=0;i<a;++i){s=t[i],l=s.box,l.update(s.width||e.w,s.height||e.h,$c(s.horizontal,e));const{same:a,other:d}=Vc(e,n,s,r);c|=a&&o.length,u=u||d,l.fullSize||o.push(s)}return c&&Hc(o,e,n,r)||u}function Wc(t,e,n,r,o){t.top=n,t.left=e,t.right=e+r,t.bottom=n+o,t.width=r,t.height=o}function Uc(t,e,n,r){const o=n.padding;let{x:i,y:a}=e;for(const s of t){const t=s.box,l=r[s.stack]||{count:1,placed:0,weight:1},c=s.stackWeight/l.weight||1;if(s.horizontal){const r=e.w*c,i=l.size||t.height;Mi(l.start)&&(a=l.start),t.fullSize?Wc(t,o.left,a,n.outerWidth-o.right-o.left,i):Wc(t,e.left+l.placed,a,r,i),l.start=a,l.placed+=r,a=t.bottom}else{const r=e.h*c,a=l.size||t.width;Mi(l.start)&&(i=l.start),t.fullSize?Wc(t,i,o.top,a,n.outerHeight-o.bottom-o.top):Wc(t,i,e.top+l.placed,a,r),l.start=i,l.placed+=r,i=t.right}}e.x=i,e.y=a}ss.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}});var Yc={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,r){if(!t)return;const o=Ps(t.options.layout.padding),i=Math.max(e-o.width,0),a=Math.max(n-o.height,0),s=function(t){const e=function(t){const e=[];let n,r,o,i,a,s;for(n=0,r=(t||[]).length;n<r;++n)o=t[n],({position:i,options:{stack:a,stackWeight:s=1}}=o),e.push({index:n,box:o,pos:i,horizontal:o.isHorizontal(),weight:o.weight,stack:a&&i+a,stackWeight:s});return e}(t),n=Lc(e.filter(t=>t.box.fullSize),!0),r=Lc(Rc(e,"left"),!0),o=Lc(Rc(e,"right")),i=Lc(Rc(e,"top"),!0),a=Lc(Rc(e,"bottom")),s=Fc(e,"x"),l=Fc(e,"y");return{fullSize:n,leftAndTop:r.concat(i),rightAndBottom:o.concat(l).concat(a).concat(s),chartArea:Rc(e,"chartArea"),vertical:r.concat(o).concat(l),horizontal:i.concat(a).concat(s)}}(t.boxes),l=s.vertical,c=s.horizontal;bi(t.boxes,t=>{"function"==typeof t.beforeLayout&&t.beforeLayout()});const u=l.reduce((t,e)=>e.box.options&&!1===e.box.options.display?t:t+1,0)||1,d=Object.freeze({outerWidth:e,outerHeight:n,padding:o,availableWidth:i,availableHeight:a,vBoxMaxWidth:i/2/u,hBoxMaxHeight:a/2}),h=Object.assign({},o);Bc(h,Ps(r));const f=Object.assign({maxPadding:h,w:i,h:a,x:o.left,y:o.top},o),p=jc(l.concat(c),d);Hc(s.fullSize,f,d,p),Hc(l,f,d,p),Hc(c,f,d,p)&&Hc(l,f,d,p),function(t){const e=t.maxPadding;function n(n){const r=Math.max(e[n]-t[n],0);return t[n]+=r,r}t.y+=n("top"),t.x+=n("left"),n("right"),n("bottom")}(f),Uc(s.leftAndTop,f,d,p),f.x+=f.w,f.y+=f.h,Uc(s.rightAndBottom,f,d,p),t.chartArea={left:f.left,top:f.top,right:f.left+f.w,bottom:f.top+f.h,height:f.h,width:f.w},bi(s.chartArea,e=>{const n=e.box;Object.assign(n,t.chartArea),n.update(f.w,f.h,{left:0,top:0,right:0,bottom:0})})}};class Gc{acquireContext(t,e){}releaseContext(t){return!1}addEventListener(t,e,n){}removeEventListener(t,e,n){}getDevicePixelRatio(){return 1}getMaximumSize(t,e,n,r){return e=Math.max(0,e||t.width),n=n||t.height,{width:e,height:Math.max(0,r?Math.floor(e/r):n)}}isAttached(t){return!0}updateConfig(t){}}class qc extends Gc{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const Xc="$chartjs",Kc={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Zc=t=>null===t||""===t;const Qc=!!dl&&{passive:!0};function Jc(t,e,n){t.canvas.removeEventListener(e,n,Qc)}function tu(t,e){for(const n of t)if(n===e||n.contains(e))return!0}function eu(t,e,n){const r=t.canvas,o=new MutationObserver(t=>{let e=!1;for(const n of t)e=e||tu(n.addedNodes,r),e=e&&!tu(n.removedNodes,r);e&&n()});return o.observe(document,{childList:!0,subtree:!0}),o}function nu(t,e,n){const r=t.canvas,o=new MutationObserver(t=>{let e=!1;for(const n of t)e=e||tu(n.removedNodes,r),e=e&&!tu(n.addedNodes,r);e&&n()});return o.observe(document,{childList:!0,subtree:!0}),o}const ru=new Map;let ou=0;function iu(){const t=window.devicePixelRatio;t!==ou&&(ou=t,ru.forEach((e,n)=>{n.currentDevicePixelRatio!==t&&e()}))}function su(t,e,n){const r=t.canvas,o=r&&el(r);if(!o)return;const i=ca((t,e)=>{const r=o.clientWidth;n(t,e),r<o.clientWidth&&n()},window),a=new ResizeObserver(t=>{const e=t[0],n=e.contentRect.width,r=e.contentRect.height;0===n&&0===r||i(n,r)});return a.observe(o),function(t,e){ru.size||window.addEventListener("resize",iu),ru.set(t,e)}(t,i),a}function lu(t,e,n){n&&n.disconnect(),"resize"===e&&function(t){ru.delete(t),ru.size||window.removeEventListener("resize",iu)}(t)}function cu(t,e,n){const r=t.canvas,o=ca(e=>{null!==t.ctx&&n(function(t,e){const n=Kc[t.type]||t.type,{x:r,y:o}=sl(t,e);return{type:n,chart:e,native:t,x:void 0!==r?r: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,Qc)}(r,e,o),o}class uu extends Gc{acquireContext(t,e){const n=t&&t.getContext&&t.getContext("2d");return n&&n.canvas===t?(function(t,e){const n=t.style,r=t.getAttribute("height"),o=t.getAttribute("width");if(t[Xc]={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",Zc(o)){const e=hl(t,"width");void 0!==e&&(t.width=e)}if(Zc(r))if(""===t.style.height)t.height=t.width/(e||2);else{const e=hl(t,"height");void 0!==e&&(t.height=e)}}(t,e),n):null}releaseContext(t){const e=t.canvas;if(!e[Xc])return!1;const n=e[Xc].initial;["height","width"].forEach(t=>{const r=n[t];ci(r)?e.removeAttribute(t):e.setAttribute(t,r)});const r=n.style||{};return Object.keys(r).forEach(t=>{e.style[t]=r[t]}),e.width=e.width,delete e[Xc],!0}addEventListener(t,e,n){this.removeEventListener(t,e);const r=t.$proxies||(t.$proxies={}),o={attach:eu,detach:nu,resize:su}[e]||cu;r[e]=o(t,e,n)}removeEventListener(t,e){const n=t.$proxies||(t.$proxies={}),r=n[e];if(!r)return;({attach:lu,detach:lu,resize:lu}[e]||Jc)(t,e,r),n[e]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,n,r){return cl(t,e,n,r)}isAttached(t){const e=el(t);return!(!e||!e.isConnected)}}class du{constructor(){this._init=[]}notify(t,e,n,r){"beforeInit"===e&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const o=r?this._descriptors(t).filter(r):this._descriptors(t),i=this._notify(o,t,e,n);return"afterDestroy"===e&&(this._notify(o,t,"stop"),this._notify(this._init,t,"uninstall")),i}_notify(t,e,n,r){r=r||{};for(const o of t){const t=o.plugin;if(!1===gi(t[n],[e,r,o.options],t)&&r.cancelable)return!1}return!0}invalidate(){ci(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,r=pi(n.options&&n.options.plugins,{}),o=function(t){const e={},n=[],r=Object.keys(Ec.plugins.items);for(let t=0;t<r.length;t++)n.push(Ec.getPlugin(r[t]));const o=t.plugins||[];for(let t=0;t<o.length;t++){const r=o[t];-1===n.indexOf(r)&&(n.push(r),e[r.id]=!0)}return{plugins:n,localIds:e}}(n);return!1!==r||e?function(t,{plugins:e,localIds:n},r,o){const i=[],a=t.getContext();for(const s of e){const e=s.id,l=hu(r[e],o);null!==l&&i.push({plugin:s,options:fu(t.config,{plugin:s,local:n[e]},l,a)})}return i}(t,o,r,e):[]}_notifyStateChanges(t){const e=this._oldCache||[],n=this._cache,r=(t,e)=>t.filter(t=>!e.some(e=>t.plugin.id===e.plugin.id));this._notify(r(e,n),t,"stop"),this._notify(r(n,e),t,"start")}}function hu(t,e){return e||!1!==t?!0===t?{}:t:null}function fu(t,{plugin:e,local:n},r,o){const i=t.pluginScopeKeys(e),a=t.getOptionScopes(r,i);return n&&e.defaults&&a.push(e.defaults),t.createResolver(a,o,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function pu(t,e){const n=ss.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||n.indexAxis||"x"}function mu(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 gu(t){const e=t.options||(t.options={});e.plugins=pi(e.plugins,{}),e.scales=function(t,e){const n=ns[t.type]||{scales:{}},r=e.scales||{},o=pu(t.type,e),i=Object.create(null),a=Object.create(null);return Object.keys(r).forEach(t=>{const e=r[t];if(!di(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=mu(t,e),l=function(t,e){return t===e?"_index_":"_value_"}(s,o),c=n.scales||{};i[s]=i[s]||t,a[t]=Si(Object.create(null),[{axis:s},e,c[s],c[l]])}),t.data.datasets.forEach(n=>{const o=n.type||t.type,s=n.indexAxis||pu(o,e),l=(ns[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"]||i[e]||e;a[o]=a[o]||Object.create(null),Si(a[o],[{axis:e},r[o],l[t]])})}),Object.keys(a).forEach(t=>{const e=a[t];Si(e,[ss.scales[e.type],ss.scale])}),a}(t,e)}function bu(t){return(t=t||{}).datasets=t.datasets||[],t.labels=t.labels||[],t}const vu=new Map,yu=new Set;function xu(t,e){let n=vu.get(t);return n||(n=e(),vu.set(t,n),yu.add(n)),n}const wu=(t,e,n)=>{const r=Ci(e,n);void 0!==r&&t.add(r)};class Eu{constructor(t){this._config=function(t){return(t=t||{}).data=bu(t.data),gu(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=bu(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(),gu(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return xu(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,e){return xu(`${t}.transition.${e}`,()=>[[`datasets.${t}.transitions.${e}`,`transitions.${e}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,e){return xu(`${t}-${e}`,()=>[[`datasets.${t}.elements.${e}`,`datasets.${t}`,`elements.${e}`,""]])}pluginScopeKeys(t){const e=t.id;return xu(`${this.type}-plugin-${e}`,()=>[[`plugins.${e}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,e){const n=this._scopeCache;let r=n.get(t);return r&&!e||(r=new Map,n.set(t,r)),r}getOptionScopes(t,e,n){const{options:r,type:o}=this,i=this._cachedScopes(t,n),a=i.get(e);if(a)return a;const s=new Set;e.forEach(e=>{t&&(s.add(t),e.forEach(e=>wu(s,t,e))),e.forEach(t=>wu(s,r,t)),e.forEach(t=>wu(s,ns[o]||{},t)),e.forEach(t=>wu(s,ss,t)),e.forEach(t=>wu(s,rs,t))});const l=Array.from(s);return 0===l.length&&l.push(Object.create(null)),yu.has(e)&&i.set(e,l),l}chartOptionScopes(){const{options:t,type:e}=this;return[t,ns[e]||{},ss.datasets[e]||{},{type:e},ss,rs]}resolveNamedOptions(t,e,n,r=[""]){const o={$shared:!0},{resolver:i,subPrefixes:a}=Su(this._resolverCache,t,r);let s=i;if(function(t,e){const{isScriptable:n,isIndexable:r}=Rs(t);for(const o of e){const e=n(o),i=r(o),a=(i||e)&&t[o];if(e&&(Pi(a)||ku(a))||i&&ui(a))return!0}return!1}(i,e)){o.$shared=!1;s=Ts(i,n=Pi(n)?n():n,this.createResolver(t,n,a))}for(const t of e)o[t]=s[t];return o}createResolver(t,e,n=[""],r){const{resolver:o}=Su(this._resolverCache,t,n);return di(e)?Ts(o,e,void 0,r):o}}function Su(t,e,n){let r=t.get(e);r||(r=new Map,t.set(e,r));const o=n.join();let i=r.get(o);if(!i){i={resolver:Is(e,n),subPrefixes:n.filter(t=>!t.toLowerCase().includes("hover"))},r.set(o,i)}return i}const ku=t=>di(t)&&Object.getOwnPropertyNames(t).reduce((e,n)=>e||Pi(t[n]),!1);const _u=["top","bottom","left","right","chartArea"];function Cu(t,e){return"top"===t||"bottom"===t||-1===_u.indexOf(t)&&"x"===e}function Ou(t,e){return function(n,r){return n[t]===r[t]?n[e]-r[e]:n[t]-r[t]}}function Mu(t){const e=t.chart,n=e.options.animation;e.notifyPlugins("afterRender"),gi(n&&n.onComplete,[t],e)}function Pu(t){const e=t.chart,n=e.options.animation;gi(n&&n.onProgress,[t],e)}function Au(t){return tl()&&"string"==typeof t?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const Nu={},Du=t=>{const e=Au(t);return Object.values(Nu).filter(t=>t.canvas===e).pop()};function Iu(t,e,n){const r=Object.keys(t);for(const o of r){const r=+o;if(r>=e){const i=t[o];delete t[o],(n>0||r>e)&&(t[r+n]=i)}}}class Tu{constructor(t,e){const n=this.config=new Eu(e),r=Au(t),o=Du(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(t){return!tl()||"undefined"!=typeof OffscreenCanvas&&t instanceof OffscreenCanvas?qc:uu}(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=li(),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 du,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=function(t,e){let n;return function(...r){return e?(clearTimeout(n),n=setTimeout(t,e,r)):t.apply(this,r),e}}(t=>this.update(t),i.resizeDelay||0),this._dataChanges=[],Nu[this.id]=this,a&&s?(Ml.listen(this,"complete",Mu),Ml.listen(this,"progress",Pu),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:r,_aspectRatio:o}=this;return ci(t)?e&&o?o:r?n/r: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():ul(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return ds(this.canvas,this.ctx),this}stop(){return Ml.stop(this),this}resize(t,e){Ml.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){const n=this.options,r=this.canvas,o=n.maintainAspectRatio&&this.aspectRatio,i=this.platform.getMaximumSize(r,t,e,o),a=n.devicePixelRatio||this.platform.getDevicePixelRatio(),s=this.width?"resize":"attach";this.width=i.width,this.height=i.height,this._aspectRatio=this.aspectRatio,ul(this,a,!0)&&(this.notifyPlugins("resize",{size:i}),gi(n.onResize,[this,i],this),this.attached&&this._doResize(s)&&this.render())}ensureScalesHaveIDs(){bi(this.options.scales||{},(t,e)=>{t.id=e})}buildOrUpdateScales(){const t=this.options,e=t.scales,n=this.scales,r=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],r=mu(t,n),o="r"===r,i="x"===r;return{options:n,dposition:o?"chartArea":i?"bottom":"left",dtype:o?"radialLinear":i?"category":"linear"}}))),bi(o,e=>{const o=e.options,i=o.id,a=mu(i,o),s=pi(o.type,e.dtype);void 0!==o.position&&Cu(o.position,a)===Cu(e.dposition)||(o.position=e.dposition),r[i]=!0;let l=null;if(i in n&&n[i].type===s)l=n[i];else{l=new(Ec.getScale(s))({id:i,type:s,ctx:this.ctx,chart:this}),n[l.id]=l}l.init(o,t)}),bi(r,(t,e)=>{t||delete n[e]}),bi(n,t=>{Yc.configure(this,t,t.options),Yc.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(Ou("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,r;for(this._removeUnreferencedMetasets(),n=0,r=e.length;n<r;n++){const r=e[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||pu(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 e=Ec.getController(i),{datasetElementType:r,dataElementType:a}=ss.datasets[i];Object.assign(e.prototype,{dataElementType:Ec.getElement(a),datasetElementType:r&&Ec.getElement(r)}),o.controller=new e(this,n),t.push(o.controller)}}return this._updateMetasets(),t}_resetElements(){bi(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()),r=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 i=0;for(let t=0,e=this.data.datasets.length;t<e;t++){const{controller:e}=this.getDatasetMeta(t),n=!r&&-1===o.indexOf(e);e.buildOrUpdateElements(n),i=Math.max(+e.getMaxOverflow(),i)}i=this._minPadding=n.layout.autoPadding?i:0,this._updateLayout(i),r||bi(o,t=>{t.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(Ou("z","_idx"));const{_active:a,_lastEvent:s}=this;s?this._eventHandler(s,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){bi(this.scales,t=>{Yc.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,e=new Set(Object.keys(this._listeners)),n=new Set(t.events);Ai(e,n)&&!!this._responsiveListeners===t.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,e=this._getUniformDataChanges()||[];for(const{method:n,start:r,count:o}of e){Iu(t,r,"_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(","))),r=n(0);for(let t=1;t<e;t++)if(!Ai(r,n(t)))return;return Array.from(r).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;Yc.update(this,this.width,this.height,t);const e=this.chartArea,n=e.width<=0||e.height<=0;this._layers=[],bi(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,Pi(t)?t({datasetIndex:e}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,e){const n=this.getDatasetMeta(t),r={meta:n,index:t,mode:e,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",r)&&(n.controller._update(e),r.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",r))}render(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(Ml.has(this)?this.attached&&!Ml.running(this)&&Ml.start(this):(this.draw(),Mu({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 r,o;for(r=0,o=e.length;r<o;++r){const o=e[r];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,r=!n.disabled,o=this.chartArea,i={meta:t,index:t.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",i)&&(r&&ms(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(),r&&gs(e),i.cancelable=!1,this.notifyPlugins("afterDatasetDraw",i))}isPointInArea(t){return ps(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,e,n,r){const o=Ic.modes[e];return"function"==typeof o?o(this,t,n,r):[]}getDatasetMeta(t){const e=this.data.datasets[t],n=this._metasets;let r=n.filter(t=>t&&t._dataset===e).pop();return r||(r={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(r)),r}getContext(){return this.$context||(this.$context=Ds(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 r=n?"show":"hide",o=this.getDatasetMeta(t),i=o.controller._resolveAnimations(void 0,r);Mi(e)?(o.data[e].hidden=!n,this.update()):(this.setDatasetVisibility(t,n),i.update(o,{visible:n}),this.update(e=>e.datasetIndex===t?r: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(),Ml.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(),ds(t,e),this.platform.releaseContext(e),this.canvas=null,this.ctx=null),this.notifyPlugins("destroy"),delete Nu[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,r)=>{e.addEventListener(this,n,r),t[n]=r},r=(t,e,n)=>{t.offsetX=e,t.offsetY=n,this._eventHandler(t)};bi(this.options.events,t=>n(t,r))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,e=this.platform,n=(n,r)=>{e.addEventListener(this,n,r),t[n]=r},r=(n,r)=>{t[n]&&(e.removeEventListener(this,n,r),delete t[n])},o=(t,e)=>{this.canvas&&this.resize(t,e)};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)},e.isAttached(this.canvas)?a():i()}unbindEvents(){bi(this._listeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._listeners={},bi(this._responsiveListeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,e,n){const r=n?"set":"remove";let o,i,a,s;for("dataset"===e&&(o=this.getDatasetMeta(t[0].datasetIndex),o.controller["_"+r+"DatasetHoverStyle"]()),a=0,s=t.length;a<s;++a){i=t[a];const e=i&&this.getDatasetMeta(i.datasetIndex).controller;e&&e[r+"HoverStyle"](i.element,i.datasetIndex,i.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}});!vi(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 r=this.options.hover,o=(t,e)=>t.filter(t=>!e.some(e=>t.datasetIndex===e.datasetIndex&&t.index===e.index)),i=o(e,t),a=n?t:o(t,e);i.length&&this.updateHoverStyle(i,r.mode,!1),a.length&&r.mode&&this.updateHoverStyle(a,r.mode,!0)}_eventHandler(t,e){const n={event:t,replay:e,cancelable:!0,inChartArea:this.isPointInArea(t)},r=e=>(e.options.events||this.options.events).includes(t.native.type);if(!1===this.notifyPlugins("beforeEvent",n,r))return;const o=this._handleEvent(t,e,n.inChartArea);return n.cancelable=!1,this.notifyPlugins("afterEvent",n,r),(o||n.changed)&&this.render(),this}_handleEvent(t,e,n){const{_active:r=[],options:o}=this,i=e,a=this._getActiveElements(t,r,n,i),s=function(t){return"mouseup"===t.type||"click"===t.type||"contextmenu"===t.type}(t),l=function(t,e,n,r){return n&&"mouseout"!==t.type?r?e:t:null}(t,this._lastEvent,n,s);n&&(this._lastEvent=null,gi(o.onHover,[t,a,this],this),s&&gi(o.onClick,[t,a,this],this));const c=!vi(a,r);return(c||e)&&(this._active=a,this._updateHoverStyles(a,r,e)),this._lastEvent=l,c}_getActiveElements(t,e,n,r){if("mouseout"===t.type)return[];if(!n)return e;const o=this.options.hover;return this.getElementsAtEventForMode(t,o.mode,o,r)}}const Ru=()=>bi(Tu.instances,t=>t._plugins.invalidate()),Fu=!0;function Lu(t,e,n){const{startAngle:r,pixelMargin:o,x:i,y:a,outerRadius:s,innerRadius:l}=e;let c=o/s;t.beginPath(),t.arc(i,a,s,r-c,n+c),l>o?(c=o/l,t.arc(i,a,l,n+c,r-c,!0)):t.arc(i,a,o,n+Fi,r-Fi),t.closePath(),t.clip()}function ju(t,e,n,r){const o=Cs(t.options.borderRadius,["outerStart","outerEnd","innerStart","innerEnd"]);const i=(n-e)/2,a=Math.min(i,r*e/2),s=t=>{const e=(n-Math.min(i,t))*r/2;return Ji(t,0,Math.min(i,e))};return{outerStart:s(o.outerStart),outerEnd:s(o.outerEnd),innerStart:Ji(o.innerStart,0,a),innerEnd:Ji(o.innerEnd,0,a)}}function zu(t,e,n,r){return{x:n+t*Math.cos(e),y:r+t*Math.sin(e)}}function Bu(t,e,n,r,o,i){const{x:a,y:s,startAngle:l,pixelMargin:c,innerRadius:u}=e,d=Math.max(e.outerRadius+r+n-c,0),h=u>0?u+r+n+c:0;let f=0;const p=o-l;if(r){const t=((u>0?u-r:0)+(d>0?d-r:0))/2;f=(p-(0!==t?p*t/(t+r):p))/2}const m=(p-Math.max(.001,p*d-n/Ni)/d)/2,g=l+m+f,b=o-m-f,{outerStart:v,outerEnd:y,innerStart:x,innerEnd:w}=ju(e,h,d,b-g),E=d-v,S=d-y,k=g+v/E,_=b-y/S,C=h+x,O=h+w,M=g+x/C,P=b-w/O;if(t.beginPath(),i){if(t.arc(a,s,d,k,_),y>0){const e=zu(S,_,a,s);t.arc(e.x,e.y,y,_,b+Fi)}const e=zu(O,b,a,s);if(t.lineTo(e.x,e.y),w>0){const e=zu(O,P,a,s);t.arc(e.x,e.y,w,b+Fi,P+Math.PI)}if(t.arc(a,s,h,b-w/h,g+x/h,!0),x>0){const e=zu(C,M,a,s);t.arc(e.x,e.y,x,M+Math.PI,g-Fi)}const n=zu(E,g,a,s);if(t.lineTo(n.x,n.y),v>0){const e=zu(E,k,a,s);t.arc(e.x,e.y,v,g-Fi,k)}}else{t.moveTo(a,s);const e=Math.cos(k)*d+a,n=Math.sin(k)*d+s;t.lineTo(e,n);const r=Math.cos(_)*d+a,o=Math.sin(_)*d+s;t.lineTo(r,o)}t.closePath()}function Vu(t,e,n,r,o,i){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:r,y:o,startAngle:i,pixelMargin:a,fullCircles:s}=e,l=Math.max(e.outerRadius-a,0),c=e.innerRadius+a;let u;for(n&&Lu(t,e,i+Di),t.beginPath(),t.arc(r,o,c,i+Di,i,!0),u=0;u<s;++u)t.stroke();for(t.beginPath(),t.arc(r,o,l,i,i+Di),u=0;u<s;++u)t.stroke()}(t,e,c),c&&Lu(t,e,o),Bu(t,e,n,r,o,i),t.stroke())}Object.defineProperties(Tu,{defaults:{enumerable:Fu,value:ss},instances:{enumerable:Fu,value:Nu},overrides:{enumerable:Fu,value:ns},registry:{enumerable:Fu,value:Ec},version:{enumerable:Fu,value:"3.9.1"},getChart:{enumerable:Fu,value:Du},register:{enumerable:Fu,value:(...t)=>{Ec.add(...t),Ru()}},unregister:{enumerable:Fu,value:(...t)=>{Ec.remove(...t),Ru()}}});class $u extends lc{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 r=this.getProps(["x","y"],n),{angle:o,distance:i}=qi(r,{x:t,y:e}),{startAngle:a,endAngle:s,innerRadius:l,outerRadius:c,circumference:u}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],n),d=this.options.spacing/2,h=pi(u,s-a)>=Di||Qi(o,a,s),f=ta(i,l+d,c+d);return h&&f}getCenterPoint(t){const{x:e,y:n,startAngle:r,endAngle:o,innerRadius:i,outerRadius:a}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius","circumference"],t),{offset:s,spacing:l}=this.options,c=(r+o)/2,u=(i+a+l+s)/2;return{x:e+Math.cos(c)*u,y:n+Math.sin(c)*u}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){const{options:e,circumference:n}=this,r=(e.offset||0)/2,o=(e.spacing||0)/2,i=e.circular;if(this.pixelMargin="inner"===e.borderAlign?.33:0,this.fullCircles=n>Di?Math.floor(n/Di):0,0===n||this.innerRadius<0||this.outerRadius<0)return;t.save();let a=0;if(r){a=r/2;const e=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(e)*a,Math.sin(e)*a),this.circumference>=Ni&&(a=r)}t.fillStyle=e.backgroundColor,t.strokeStyle=e.borderColor;const s=function(t,e,n,r,o){const{fullCircles:i,startAngle:a,circumference:s}=e;let l=e.endAngle;if(i){Bu(t,e,n,r,a+Di,o);for(let e=0;e<i;++e)t.fill();isNaN(s)||(l=a+s%Di,s%Di===0&&(l+=Di))}return Bu(t,e,n,r,l,o),t.fill(),l}(t,this,a,o,i);Vu(t,this,a,o,s,i),t.restore()}}function Hu(t,e,n=e){t.lineCap=pi(n.borderCapStyle,e.borderCapStyle),t.setLineDash(pi(n.borderDash,e.borderDash)),t.lineDashOffset=pi(n.borderDashOffset,e.borderDashOffset),t.lineJoin=pi(n.borderJoinStyle,e.borderJoinStyle),t.lineWidth=pi(n.borderWidth,e.borderWidth),t.strokeStyle=pi(n.borderColor,e.borderColor)}function Wu(t,e,n){t.lineTo(n.x,n.y)}function Uu(t,e,n={}){const r=t.length,{start:o=0,end:i=r-1}=n,{start:a,end:s}=e,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:e.loop,ilen:c<l&&!u?r+c-l:c-l}}function Yu(t,e,n,r){const{points:o,options:i}=e,{count:a,start:s,loop:l,ilen:c}=Uu(o,n,r),u=function(t){return t.stepped?bs:t.tension||"monotone"===t.cubicInterpolationMode?vs:Wu}(i);let d,h,f,{move:p=!0,reverse:m}=r||{};for(d=0;d<=c;++d)h=o[(s+(m?c-d:d))%a],h.skip||(p?(t.moveTo(h.x,h.y),p=!1):u(t,f,h,m,i.stepped),f=h);return l&&(h=o[(s+(m?c:0))%a],u(t,f,h,m,i.stepped)),!!l}function Gu(t,e,n,r){const o=e.points,{count:i,start:a,ilen:s}=Uu(o,n,r),{move:l=!0,reverse:c}=r||{};let u,d,h,f,p,m,g=0,b=0;const v=t=>(a+(c?s-t:t))%i,y=()=>{f!==p&&(t.lineTo(g,p),t.lineTo(g,f),t.lineTo(g,m))};for(l&&(d=o[v(0)],t.moveTo(d.x,d.y)),u=0;u<=s;++u){if(d=o[v(u)],d.skip)continue;const e=d.x,n=d.y,r=0|e;r===h?(n<f?f=n:n>p&&(p=n),g=(b*g+e)/++b):(y(),t.lineTo(e,n),h=r,b=0,f=p=n),m=n}y()}function qu(t){const e=t.options,n=e.borderDash&&e.borderDash.length;return!(t._decimated||t._loop||e.tension||"monotone"===e.cubicInterpolationMode||e.stepped||n)?Gu:Yu}$u.id="arc",$u.defaults={borderAlign:"center",borderColor:"#fff",borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0},$u.defaultRoutes={backgroundColor:"backgroundColor"};const Xu="function"==typeof Path2D;function Ku(t,e,n,r){Xu&&!e.options.segment?function(t,e,n,r){let o=e._path;o||(o=e._path=new Path2D,e.path(o,n,r)&&o.closePath()),Hu(t,e.options),t.stroke(o)}(t,e,n,r):function(t,e,n,r){const{segments:o,options:i}=e,a=qu(e);for(const s of o)Hu(t,i,s.style),t.beginPath(),a(t,e,s,{start:n,end:n+r-1})&&t.closePath(),t.stroke()}(t,e,n,r)}class Zu extends lc{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 r=n.spanGaps?this._loop:this._fullLoop;Js(this._points,n,t,r,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,r=t.options.spanGaps,o=n.length;if(!o)return[];const i=!!t._loop,{start:a,end:s}=function(t,e,n,r){let o=0,i=e-1;if(n&&!r)for(;o<e&&!t[o].skip;)o++;for(;o<e&&t[o].skip;)o++;for(o%=e,n&&(i+=o);i>o&&t[i%e].skip;)i--;return i%=e,{start:o,end:i}}(n,o,i,r);return _l(t,!0===r?[{start:a,end:s,loop:i}]:function(t,e,n,r){const o=t.length,i=[];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||(r=!1,i.push({start:e%o,end:(a-1)%o,loop:r}),e=s=n.stop?a:null):(s=a,l.skip&&(e=a)),l=n}return null!==s&&i.push({start:e%o,end:s%o,loop:r}),i}(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,r=t[e],o=this.points,i=kl(this,{property:e,start:r,end:r});if(!i.length)return;const a=[],s=function(t){return t.stepped?pl:t.tension||"monotone"===t.cubicInterpolationMode?ml:fl}(n);let l,c;for(l=0,c=i.length;l<c;++l){const{start:c,end:u}=i[l],d=o[c],h=o[u];if(d===h){a.push(d);continue}const f=s(d,h,Math.abs((r-d[e])/(h[e]-d[e])),n.stepped);f[e]=t[e],a.push(f)}return 1===a.length?a[0]:a}pathSegment(t,e,n){return qu(this)(t,this,e,n)}path(t,e,n){const r=this.segments,o=qu(this);let i=this._loop;e=e||0,n=n||this.points.length-e;for(const a of r)i&=o(t,this,a,{start:e,end:e+n-1});return!!i}draw(t,e,n,r){const o=this.options||{};(this.points||[]).length&&o.borderWidth&&(t.save(),Ku(t,this,n,r),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}function Qu(t,e,n,r){const o=t.options,{[n]:i}=t.getProps([n],r);return Math.abs(e-i)<o.radius+o.hitRadius}Zu.id="line",Zu.defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0},Zu.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"},Zu.descriptors={_scriptable:!0,_indexable:t=>"borderDash"!==t&&"fill"!==t};class Ju extends lc{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 r=this.options,{x:o,y:i}=this.getProps(["x","y"],n);return Math.pow(t-o,2)+Math.pow(e-i,2)<Math.pow(r.hitRadius+r.radius,2)}inXRange(t,e){return Qu(this,t,"x",e)}inYRange(t,e){return Qu(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||!ps(this,e,this.size(n)/2)||(t.strokeStyle=n.borderColor,t.lineWidth=n.borderWidth,t.fillStyle=n.backgroundColor,hs(t,n,this.x,this.y))}getRange(){const t=this.options||{};return t.radius+t.hitRadius}}function td(t,e){const{x:n,y:r,base:o,width:i,height:a}=t.getProps(["x","y","base","width","height"],e);let s,l,c,u,d;return t.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 ed(t,e,n,r){return t?0:Ji(e,n,r)}function nd(t){const e=td(t),n=e.right-e.left,r=e.bottom-e.top,o=function(t,e,n){const r=t.options.borderWidth,o=t.borderSkipped,i=Os(r);return{t:ed(o.top,i.top,0,n),r:ed(o.right,i.right,0,e),b:ed(o.bottom,i.bottom,0,n),l:ed(o.left,i.left,0,e)}}(t,n/2,r/2),i=function(t,e,n){const{enableBorderRadius:r}=t.getProps(["enableBorderRadius"]),o=t.options.borderRadius,i=Ms(o),a=Math.min(e,n),s=t.borderSkipped,l=r||di(o);return{topLeft:ed(!l||s.top||s.left,i.topLeft,0,a),topRight:ed(!l||s.top||s.right,i.topRight,0,a),bottomLeft:ed(!l||s.bottom||s.left,i.bottomLeft,0,a),bottomRight:ed(!l||s.bottom||s.right,i.bottomRight,0,a)}}(t,n/2,r/2);return{outer:{x:e.left,y:e.top,w:n,h:r,radius:i},inner:{x:e.left+o.l,y:e.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 rd(t,e,n,r){const o=null===e,i=null===n,a=t&&!(o&&i)&&td(t,r);return a&&(o||ta(e,a.left,a.right))&&(i||ta(n,a.top,a.bottom))}function od(t,e){t.rect(e.x,e.y,e.w,e.h)}function id(t,e,n={}){const r=t.x!==n.x?-e:0,o=t.y!==n.y?-e:0,i=(t.x+t.w!==n.x+n.w?e:0)-r,a=(t.y+t.h!==n.y+n.h?e:0)-o;return{x:t.x+r,y:t.y+o,w:t.w+i,h:t.h+a,radius:t.radius}}Ju.id="point",Ju.defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0},Ju.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};class sd extends lc{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:r}}=this,{inner:o,outer:i}=nd(this),a=(s=i.radius).topLeft||s.topRight||s.bottomLeft||s.bottomRight?ws:od;var s;t.save(),i.w===o.w&&i.h===o.h||(t.beginPath(),a(t,id(i,e,o)),t.clip(),a(t,id(o,-e,i)),t.fillStyle=n,t.fill("evenodd")),t.beginPath(),a(t,id(o,e)),t.fillStyle=r,t.fill(),t.restore()}inRange(t,e,n){return rd(this,t,e,n)}inXRange(t,e){return rd(this,t,null,e)}inYRange(t,e){return rd(this,null,t,e)}getCenterPoint(t){const{x:e,y:n,base:r,horizontal:o}=this.getProps(["x","y","base","horizontal"],t);return{x:o?(e+r)/2:e,y:o?n:(n+r)/2}}getRange(t){return"x"===t?this.width/2:this.height/2}}function ld(t,e,n,r){if(r)return;let o=e[t],i=n[t];return"angle"===t&&(o=Zi(o),i=Zi(i)),{property:t,start:o,end:i}}function cd(t,e,n){for(;e>t;e--){const t=n[e];if(!isNaN(t.x)&&!isNaN(t.y))break}return e}function ud(t,e,n,r){return t&&e?r(t[n],e[n]):t?t[n]:e?e[n]:0}function dd(t,e){let n=[],r=!1;return ui(t)?(r=!0,n=t):n=function(t,e){const{x:n=null,y:r=null}=t||{},o=e.points,i=[];return e.segments.forEach(({start:t,end:e})=>{e=cd(t,e,o);const a=o[t],s=o[e];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}(t,e),n.length?new Zu({points:n,options:{tension:0},_loop:r,_fullLoop:r}):null}function hd(t){return t&&!1!==t.fill}function fd(t,e,n){let r=t[e].fill;const o=[e];let i;if(!n)return r;for(;!1!==r&&-1===o.indexOf(r);){if(!hi(r))return r;if(i=t[r],!i)return!1;if(i.visible)return r;o.push(r),r=i.fill}return!1}function pd(t,e,n){const r=function(t){const e=t.options,n=e.fill;let r=pi(n&&n.target,n);void 0===r&&(r=!!e.backgroundColor);if(!1===r||null===r)return!1;if(!0===r)return"origin";return r}(t);if(di(r))return!isNaN(r.value)&&r;let o=parseFloat(r);return hi(o)&&Math.floor(o)===o?function(t,e,n,r){"-"!==t&&"+"!==t||(n=e+n);if(n===e||n<0||n>=r)return!1;return n}(r[0],e,o,n):["origin","start","end","stack","shape"].indexOf(r)>=0&&r}function md(t,e,n){const r=[];for(let o=0;o<n.length;o++){const i=n[o],{first:a,last:s,point:l}=gd(i,e,"x");if(!(!l||a&&s))if(a)r.unshift(l);else if(t.push(l),!s)break}t.push(...r)}function gd(t,e,n){const r=t.interpolate(e,n);if(!r)return{};const o=r[n],i=t.segments,a=t.points;let s=!1,l=!1;for(let t=0;t<i.length;t++){const e=i[t],r=a[e.start][n],c=a[e.end][n];if(ta(o,r,c)){s=o===r,l=o===c;break}}return{first:s,last:l,point:r}}sd.id="bar",sd.defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0},sd.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};class vd{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,e,n){const{x:r,y:o,radius:i}=this;return e=e||{start:0,end:Di},t.arc(r,o,i,e.end,e.start,!0),!n.bounds}interpolate(t){const{x:e,y:n,radius:r}=this,o=t.angle;return{x:e+Math.cos(o)*r,y:n+Math.sin(o)*r,angle:o}}}function yd(t){const{chart:e,fill:n,line:r}=t;if(hi(n))return function(t,e){const n=t.getDatasetMeta(e),r=n&&t.isDatasetVisible(e);return r?n.dataset:null}(e,n);if("stack"===n)return function(t){const{scale:e,index:n,line:r}=t,o=[],i=r.segments,a=r.points,s=function(t,e){const n=[],r=t.getMatchingVisibleMetas("line");for(let t=0;t<r.length;t++){const o=r[t];if(o.index===e)break;o.hidden||n.unshift(o.dataset)}return n}(e,n);s.push(dd({x:null,y:e.bottom},r));for(let t=0;t<i.length;t++){const e=i[t];for(let t=e.start;t<=e.end;t++)md(o,a[t],s)}return new Zu({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,r=e.options,o=e.getLabels().length,i=r.reverse?e.max:e.min,a=function(t,e,n){let r;return r="start"===t?n:"end"===t?e.options.reverse?e.min:e.max:di(t)?t.value:e.getBaseValue(),r}(n,e,i),s=[];if(r.grid.circular){const t=e.getPointPositionForValue(0,i);return new vd({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,r=function(t,e){let n=null;return"start"===t?n=e.bottom:"end"===t?n=e.top:di(t)?n=e.getPixelForValue(t.value):e.getBasePixel&&(n=e.getBasePixel()),n}(n,e);if(hi(r)){const t=e.isHorizontal();return{x:t?r:null,y:t?null:r}}return null}(t)}(t);return o instanceof vd?o:dd(o,r)}function xd(t,e,n){const r=yd(e),{line:o,scale:i,axis:a}=e,s=o.options,l=s.fill,c=s.backgroundColor,{above:u=c,below:d=c}=l||{};r&&o.points.length&&(ms(t,n),function(t,e){const{line:n,target:r,above:o,below:i,area:a,scale:s}=e,l=n._loop?"angle":e.axis;t.save(),"x"===l&&i!==o&&(wd(t,r,a.top),Ed(t,{line:n,target:r,color:o,scale:s,property:l}),t.restore(),t.save(),wd(t,r,a.bottom));Ed(t,{line:n,target:r,color:i,scale:s,property:l}),t.restore()}(t,{line:o,target:r,above:u,below:d,area:n,scale:i,axis:a}),gs(t))}function wd(t,e,n){const{segments:r,points:o}=e;let i=!0,a=!1;t.beginPath();for(const s of r){const{start:r,end:l}=s,c=o[r],u=o[cd(r,l,o)];i?(t.moveTo(c.x,c.y),i=!1):(t.lineTo(c.x,n),t.lineTo(c.x,c.y)),a=!!e.pathSegment(t,s,{move:a}),a?t.closePath():t.lineTo(u.x,n)}t.lineTo(e.first().x,n),t.closePath(),t.clip()}function Ed(t,e){const{line:n,target:r,property:o,color:i,scale:a}=e,s=function(t,e,n){const r=t.segments,o=t.points,i=e.points,a=[];for(const t of r){let{start:r,end:s}=t;s=cd(r,s,o);const l=ld(n,o[r],o[s],t.loop);if(!e.segments){a.push({source:t,target:l,start:o[r],end:o[s]});continue}const c=kl(e,l);for(const e of c){const r=ld(n,i[e.start],i[e.end],e.loop),s=Sl(t,o,r);for(const t of s)a.push({source:t,target:e,start:{[n]:ud(l,r,"start",Math.max)},end:{[n]:ud(l,r,"end",Math.min)}})}}return a}(n,r,o);for(const{source:e,target:l,start:c,end:u}of s){const{style:{backgroundColor:s=i}={}}=e,d=!0!==r;t.save(),t.fillStyle=s,Sd(t,a,d&&ld(o,c,u)),t.beginPath();const h=!!n.pathSegment(t,e);let f;if(d){h?t.closePath():kd(t,r,u,o);const e=!!r.pathSegment(t,l,{move:h,reverse:!0});f=h&&e,f||kd(t,r,c,o)}t.closePath(),t.fill(f?"evenodd":"nonzero"),t.restore()}}function Sd(t,e,n){const{top:r,bottom:o}=e.chart.chartArea,{property:i,start:a,end:s}=n||{};"x"===i&&(t.beginPath(),t.rect(a,r,s-a,o-r),t.clip())}function kd(t,e,n,r){const o=e.interpolate(n,r);o&&t.lineTo(o.x,o.y)}var _d={id:"filler",afterDatasetsUpdate(t,e,n){const r=(t.data.datasets||[]).length,o=[];let i,a,s,l;for(a=0;a<r;++a)i=t.getDatasetMeta(a),s=i.dataset,l=null,s&&s.options&&s instanceof Zu&&(l={visible:t.isDatasetVisible(a),index:a,fill:pd(s,a,r),chart:t,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=fd(o,a,n.propagate))},beforeDraw(t,e,n){const r="beforeDraw"===n.drawTime,o=t.getSortedVisibleDatasetMetas(),i=t.chartArea;for(let e=o.length-1;e>=0;--e){const n=o[e].$filler;n&&(n.line.updateControlPoints(i,n.axis),r&&n.fill&&xd(t.ctx,n,i))}},beforeDatasetsDraw(t,e,n){if("beforeDatasetsDraw"!==n.drawTime)return;const r=t.getSortedVisibleDatasetMetas();for(let e=r.length-1;e>=0;--e){const n=r[e].$filler;hd(n)&&xd(t.ctx,n,t.chartArea)}},beforeDatasetDraw(t,e,n){const r=e.meta.$filler;hd(r)&&"beforeDatasetDraw"===n.drawTime&&xd(t.ctx,r,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const Cd=(t,e)=>{let{boxHeight:n=e,boxWidth:r=e}=t;return t.usePointStyle&&(n=Math.min(n,e),r=t.pointStyleWidth||Math.min(r,e)),{boxWidth:r,boxHeight:n,itemHeight:Math.max(e,n)}};class Od extends lc{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=gi(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,r=As(n.font),o=r.size,i=this._computeTitleHeight(),{boxWidth:a,itemHeight:s}=Cd(n,o);let l,c;e.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,t.maxWidth||this.maxWidth),this.height=Math.min(c,t.maxHeight||this.maxHeight)}_fitRows(t,e,n,r){const{ctx:o,maxWidth:i,options:{labels:{padding:a}}}=this,s=this.legendHitBoxes=[],l=this.lineWidths=[0],c=r+a;let u=t;o.textAlign="left",o.textBaseline="middle";let d=-1,h=-c;return this.legendItems.forEach((t,f)=>{const p=n+e/2+o.measureText(t.text).width;(0===f||l[l.length-1]+p+2*a>i)&&(u+=c,l[l.length-(f>0?0:1)]=0,h+=c,d++),s[f]={left:0,top:h,row:d,width:p,height:r},l[l.length-1]+=p+a}),u}_fitCols(t,e,n,r){const{ctx:o,maxHeight:i,options:{labels:{padding:a}}}=this,s=this.legendHitBoxes=[],l=this.columnSizes=[],c=i-t;let u=a,d=0,h=0,f=0,p=0;return this.legendItems.forEach((t,i)=>{const m=n+e/2+o.measureText(t.text).width;i>0&&h+r+2*a>c&&(u+=d+a,l.push({width:d,height:h}),f+=d+a,p++,d=h=0),s[i]={left:f,top:h,col:p,width:m,height:r},d=Math.max(d,m),h+=r+a}),u+=d,l.push({width:d,height:h}),u}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:e,options:{align:n,labels:{padding:r},rtl:o}}=this,i=vl(o,this.left,this.width);if(this.isHorizontal()){let o=0,a=da(n,this.left+r,this.right-this.lineWidths[o]);for(const s of e)o!==s.row&&(o=s.row,a=da(n,this.left+r,this.right-this.lineWidths[o])),s.top+=this.top+t+r,s.left=i.leftForLtr(i.x(a),s.width),a+=s.width+r}else{let o=0,a=da(n,this.top+t+r,this.bottom-this.columnSizes[o].height);for(const s of e)s.col!==o&&(o=s.col,a=da(n,this.top+t+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 t=this.ctx;ms(t,this),this._draw(),gs(t)}}_draw(){const{options:t,columnSizes:e,lineWidths:n,ctx:r}=this,{align:o,labels:i}=t,a=ss.color,s=vl(t.rtl,this.left,this.width),l=As(i.font),{color:c,padding:u}=i,d=l.size,h=d/2;let f;this.drawTitle(),r.textAlign=s.textAlign("left"),r.textBaseline="middle",r.lineWidth=.5,r.font=l.string;const{boxWidth:p,boxHeight:m,itemHeight:g}=Cd(i,d),b=this.isHorizontal(),v=this._computeTitleHeight();f=b?{x:da(o,this.left+u,this.right-n[0]),y:this.top+u+v,line:0}:{x:this.left+u,y:da(o,this.top+v+u,this.bottom-e[0].height),line:0},yl(this.ctx,t.textDirection);const y=g+u;this.legendItems.forEach((x,w)=>{r.strokeStyle=x.fontColor||c,r.fillStyle=x.fontColor||c;const E=r.measureText(x.text).width,S=s.textAlign(x.textAlign||(x.textAlign=i.textAlign)),k=p+h+E;let _=f.x,C=f.y;s.setWidth(this.width),b?w>0&&_+k+u>this.right&&(C=f.y+=y,f.line++,_=f.x=da(o,this.left+u,this.right-n[f.line])):w>0&&C+y>this.bottom&&(_=f.x=_+e[f.line].width+u,f.line++,C=f.y=da(o,this.top+v+u,this.bottom-e[f.line].height));!function(t,e,n){if(isNaN(p)||p<=0||isNaN(m)||m<0)return;r.save();const o=pi(n.lineWidth,1);if(r.fillStyle=pi(n.fillStyle,a),r.lineCap=pi(n.lineCap,"butt"),r.lineDashOffset=pi(n.lineDashOffset,0),r.lineJoin=pi(n.lineJoin,"miter"),r.lineWidth=o,r.strokeStyle=pi(n.strokeStyle,a),r.setLineDash(pi(n.lineDash,[])),i.usePointStyle){const a={radius:m*Math.SQRT2/2,pointStyle:n.pointStyle,rotation:n.rotation,borderWidth:o},l=s.xPlus(t,p/2);fs(r,a,l,e+h,i.pointStyleWidth&&p)}else{const i=e+Math.max((d-m)/2,0),a=s.leftForLtr(t,p),l=Ms(n.borderRadius);r.beginPath(),Object.values(l).some(t=>0!==t)?ws(r,{x:a,y:i,w:p,h:m,radius:l}):r.rect(a,i,p,m),r.fill(),0!==o&&r.stroke()}r.restore()}(s.x(_),C,x),_=((t,e,n,r)=>t===(r?"left":"right")?n:"center"===t?(e+n)/2:e)(S,_+p+h,b?_+k:this.right,t.rtl),function(t,e,n){ys(r,n.text,t,e+g/2,l,{strikethrough:n.hidden,textAlign:s.textAlign(n.textAlign)})}(s.x(_),C,x),b?f.x+=k+u:f.y+=y}),xl(this.ctx,t.textDirection)}drawTitle(){const t=this.options,e=t.title,n=As(e.font),r=Ps(e.padding);if(!e.display)return;const o=vl(t.rtl,this.left,this.width),i=this.ctx,a=e.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=da(t.align,u,this.right-d);else{const e=this.columnSizes.reduce((t,e)=>Math.max(t,e.height),0);c=l+da(t.align,this.top,this.bottom-e-t.labels.padding-this._computeTitleHeight())}const h=da(a,u,u+d);i.textAlign=o.textAlign(ua(a)),i.textBaseline="middle",i.strokeStyle=e.color,i.fillStyle=e.color,i.font=n.string,ys(i,e.text,h,c,n)}_computeTitleHeight(){const t=this.options.title,e=As(t.font),n=Ps(t.padding);return t.display?e.lineHeight+n.height:0}_getLegendItemAt(t,e){let n,r,o;if(ta(t,this.left,this.right)&&ta(e,this.top,this.bottom))for(o=this.legendHitBoxes,n=0;n<o.length;++n)if(r=o[n],ta(t,r.left,r.left+r.width)&&ta(e,r.top,r.top+r.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,o=((t,e)=>null!==t&&null!==e&&t.datasetIndex===e.datasetIndex&&t.index===e.index)(r,n);r&&!o&&gi(e.onLeave,[t,r,this],this),this._hoveredItem=n,n&&!o&&gi(e.onHover,[t,n,this],this)}else n&&gi(e.onClick,[t,n,this],this)}}var Md={id:"legend",_element:Od,start(t,e,n){const r=t.legend=new Od({ctx:t.ctx,options:n,chart:t});Yc.configure(t,r,n),Yc.addBox(t,r)},stop(t){Yc.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,n){const r=t.legend;Yc.configure(t,r,n),r.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 r=e.datasetIndex,o=n.chart;o.isDatasetVisible(r)?(o.hide(r),e.hidden=!0):(o.show(r),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:r,textAlign:o,color:i}}=t.legend.options;return t._getSortedDatasetMetas().map(t=>{const a=t.controller.getStyle(n?0:void 0),s=Ps(a.borderWidth);return{text:e[t.index].label,fillStyle:a.backgroundColor,fontColor:i,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:r||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 Pd={average(t){if(!t.length)return!1;let e,n,r=0,o=0,i=0;for(e=0,n=t.length;e<n;++e){const n=t[e].element;if(n&&n.hasValue()){const t=n.tooltipPosition();r+=t.x,o+=t.y,++i}}return{x:r/i,y:o/i}},nearest(t,e){if(!t.length)return!1;let n,r,o,i=e.x,a=e.y,s=Number.POSITIVE_INFINITY;for(n=0,r=t.length;n<r;++n){const r=t[n].element;if(r&&r.hasValue()){const t=Xi(e,r.getCenterPoint());t<s&&(s=t,o=r)}}if(o){const t=o.tooltipPosition();i=t.x,a=t.y}return{x:i,y:a}}};function Ad(t,e){return e&&(ui(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function Nd(t){return("string"==typeof t||t instanceof String)&&t.indexOf("\n")>-1?t.split("\n"):t}function Dd(t,e){const{element:n,datasetIndex:r,index:o}=e,i=t.getDatasetMeta(r).controller,{label:a,value:s}=i.getLabelAndValue(o);return{chart:t,label:a,parsed:i.getParsed(o),raw:t.data.datasets[r].data[o],formattedValue:s,dataset:i.getDataset(),dataIndex:o,datasetIndex:r,element:n}}function Id(t,e){const n=t.chart.ctx,{body:r,footer:o,title:i}=t,{boxWidth:a,boxHeight:s}=e,l=As(e.bodyFont),c=As(e.titleFont),u=As(e.footerFont),d=i.length,h=o.length,f=r.length,p=Ps(e.padding);let m=p.height,g=0,b=r.reduce((t,e)=>t+e.before.length+e.lines.length+e.after.length,0);if(b+=t.beforeBody.length+t.afterBody.length,d&&(m+=d*c.lineHeight+(d-1)*e.titleSpacing+e.titleMarginBottom),b){m+=f*(e.displayColors?Math.max(s,l.lineHeight):l.lineHeight)+(b-f)*l.lineHeight+(b-1)*e.bodySpacing}h&&(m+=e.footerMarginTop+h*u.lineHeight+(h-1)*e.footerSpacing);let v=0;const y=function(t){g=Math.max(g,n.measureText(t).width+v)};return n.save(),n.font=c.string,bi(t.title,y),n.font=l.string,bi(t.beforeBody.concat(t.afterBody),y),v=e.displayColors?a+2+e.boxPadding:0,bi(r,t=>{bi(t.before,y),bi(t.lines,y),bi(t.after,y)}),v=0,n.font=u.string,bi(t.footer,y),n.restore(),g+=p.width,{width:g,height:m}}function Td(t,e,n,r){const{x:o,width:i}=n,{width:a,chartArea:{left:s,right:l}}=t;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(t,e,n,r){const{x:o,width:i}=r,a=n.caretSize+n.caretPadding;return"left"===t&&o+i+a>e.width||"right"===t&&o-i-a<0||void 0}(c,t,e,n)&&(c="center"),c}function Rd(t,e,n){const r=n.yAlign||e.yAlign||function(t,e){const{y:n,height:r}=e;return n<r/2?"top":n>t.height-r/2?"bottom":"center"}(t,n);return{xAlign:n.xAlign||e.xAlign||Td(t,e,n,r),yAlign:r}}function Fd(t,e,n,r){const{caretSize:o,caretPadding:i,cornerRadius:a}=t,{xAlign:s,yAlign:l}=n,c=o+i,{topLeft:u,topRight:d,bottomLeft:h,bottomRight:f}=Ms(a);let p=function(t,e){let{x:n,width:r}=t;return"right"===e?n-=r:"center"===e&&(n-=r/2),n}(e,s);const m=function(t,e,n){let{y:r,height:o}=t;return"top"===e?r+=n:r-="bottom"===e?o+n:o/2,r}(e,l,c);return"center"===l?"left"===s?p+=c:"right"===s&&(p-=c):"left"===s?p-=Math.max(u,h)+o:"right"===s&&(p+=Math.max(d,f)+o),{x:Ji(p,0,r.width-e.width),y:Ji(m,0,r.height-e.height)}}function Ld(t,e,n){const r=Ps(n.padding);return"center"===e?t.x+t.width/2:"right"===e?t.x+t.width-r.right:t.x+r.left}function jd(t){return Ad([],Nd(t))}function zd(t,e){const n=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return n?t.override(n):t}class Bd extends lc{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()),r=n.enabled&&e.options.animation&&n.animations,o=new Il(this.chart,r);return r._cacheable&&(this._cachedAnimations=Object.freeze(o)),o}getContext(){return this.$context||(this.$context=(t=this.chart.getContext(),e=this,n=this._tooltipItems,Ds(t,{tooltip:e,tooltipItems:n,type:"tooltip"})));var t,e,n}getTitle(t,e){const{callbacks:n}=e,r=n.beforeTitle.apply(this,[t]),o=n.title.apply(this,[t]),i=n.afterTitle.apply(this,[t]);let a=[];return a=Ad(a,Nd(r)),a=Ad(a,Nd(o)),a=Ad(a,Nd(i)),a}getBeforeBody(t,e){return jd(e.callbacks.beforeBody.apply(this,[t]))}getBody(t,e){const{callbacks:n}=e,r=[];return bi(t,t=>{const e={before:[],lines:[],after:[]},o=zd(n,t);Ad(e.before,Nd(o.beforeLabel.call(this,t))),Ad(e.lines,o.label.call(this,t)),Ad(e.after,Nd(o.afterLabel.call(this,t))),r.push(e)}),r}getAfterBody(t,e){return jd(e.callbacks.afterBody.apply(this,[t]))}getFooter(t,e){const{callbacks:n}=e,r=n.beforeFooter.apply(this,[t]),o=n.footer.apply(this,[t]),i=n.afterFooter.apply(this,[t]);let a=[];return a=Ad(a,Nd(r)),a=Ad(a,Nd(o)),a=Ad(a,Nd(i)),a}_createItems(t){const e=this._active,n=this.chart.data,r=[],o=[],i=[];let a,s,l=[];for(a=0,s=e.length;a<s;++a)l.push(Dd(this.chart,e[a]));return t.filter&&(l=l.filter((e,r,o)=>t.filter(e,r,o,n))),t.itemSort&&(l=l.sort((e,r)=>t.itemSort(e,r,n))),bi(l,e=>{const n=zd(t.callbacks,e);r.push(n.labelColor.call(this,e)),o.push(n.labelPointStyle.call(this,e)),i.push(n.labelTextColor.call(this,e))}),this.labelColors=r,this.labelPointStyles=o,this.labelTextColors=i,this.dataPoints=l,l}update(t,e){const n=this.options.setContext(this.getContext()),r=this._active;let o,i=[];if(r.length){const t=Pd[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 e=this._size=Id(this,n),a=Object.assign({},t,e),s=Rd(this.chart,n,a),l=Fd(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=i,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,r){const o=this.getCaretPosition(t,n,r);e.lineTo(o.x1,o.y1),e.lineTo(o.x2,o.y2),e.lineTo(o.x3,o.y3)}getCaretPosition(t,e,n){const{xAlign:r,yAlign:o}=this,{caretSize:i,cornerRadius:a}=n,{topLeft:s,topRight:l,bottomLeft:c,bottomRight:u}=Ms(a),{x:d,y:h}=t,{width:f,height:p}=e;let m,g,b,v,y,x;return"center"===o?(y=h+p/2,"left"===r?(m=d,g=m-i,v=y+i,x=y-i):(m=d+f,g=m+i,v=y-i,x=y+i),b=m):(g="left"===r?d+Math.max(s,c)+i:"right"===r?d+f-Math.max(l,u)-i:this.caretX,"top"===o?(v=h,y=v-i,m=g-i,b=g+i):(v=h+p,y=v+i,m=g+i,b=g-i),x=v),{x1:m,x2:g,x3:b,y1:v,y2:y,y3:x}}drawTitle(t,e,n){const r=this.title,o=r.length;let i,a,s;if(o){const l=vl(n.rtl,this.x,this.width);for(t.x=Ld(this,n.titleAlign,n),e.textAlign=l.textAlign(n.titleAlign),e.textBaseline="middle",i=As(n.titleFont),a=n.titleSpacing,e.fillStyle=n.titleColor,e.font=i.string,s=0;s<o;++s)e.fillText(r[s],l.x(t.x),t.y+i.lineHeight/2),t.y+=i.lineHeight+a,s+1===o&&(t.y+=n.titleMarginBottom-a)}}_drawColorBox(t,e,n,r,o){const i=this.labelColors[n],a=this.labelPointStyles[n],{boxHeight:s,boxWidth:l,boxPadding:c}=o,u=As(o.bodyFont),d=Ld(this,"left",o),h=r.x(d),f=s<u.lineHeight?(u.lineHeight-s)/2:0,p=e.y+f;if(o.usePointStyle){const e={radius:Math.min(l,s)/2,pointStyle:a.pointStyle,rotation:a.rotation,borderWidth:1},n=r.leftForLtr(h,l)+l/2,c=p+s/2;t.strokeStyle=o.multiKeyBackground,t.fillStyle=o.multiKeyBackground,hs(t,e,n,c),t.strokeStyle=i.borderColor,t.fillStyle=i.backgroundColor,hs(t,e,n,c)}else{t.lineWidth=di(i.borderWidth)?Math.max(...Object.values(i.borderWidth)):i.borderWidth||1,t.strokeStyle=i.borderColor,t.setLineDash(i.borderDash||[]),t.lineDashOffset=i.borderDashOffset||0;const e=r.leftForLtr(h,l-c),n=r.leftForLtr(r.xPlus(h,1),l-c-2),a=Ms(i.borderRadius);Object.values(a).some(t=>0!==t)?(t.beginPath(),t.fillStyle=o.multiKeyBackground,ws(t,{x:e,y:p,w:l,h:s,radius:a}),t.fill(),t.stroke(),t.fillStyle=i.backgroundColor,t.beginPath(),ws(t,{x:n,y:p+1,w:l-2,h:s-2,radius:a}),t.fill()):(t.fillStyle=o.multiKeyBackground,t.fillRect(e,p,l,s),t.strokeRect(e,p,l,s),t.fillStyle=i.backgroundColor,t.fillRect(n,p+1,l-2,s-2))}t.fillStyle=this.labelTextColors[n]}drawBody(t,e,n){const{body:r}=this,{bodySpacing:o,bodyAlign:i,displayColors:a,boxHeight:s,boxWidth:l,boxPadding:c}=n,u=As(n.bodyFont);let d=u.lineHeight,h=0;const f=vl(n.rtl,this.x,this.width),p=function(n){e.fillText(n,f.x(t.x+h),t.y+d/2),t.y+=d+o},m=f.textAlign(i);let g,b,v,y,x,w,E;for(e.textAlign=i,e.textBaseline="middle",e.font=u.string,t.x=Ld(this,m,n),e.fillStyle=n.bodyColor,bi(this.beforeBody,p),h=a&&"right"!==m?"center"===i?l/2+c:l+2+c:0,y=0,w=r.length;y<w;++y){for(g=r[y],b=this.labelTextColors[y],e.fillStyle=b,bi(g.before,p),v=g.lines,a&&v.length&&(this._drawColorBox(e,t,y,f,n),d=Math.max(u.lineHeight,s)),x=0,E=v.length;x<E;++x)p(v[x]),d=u.lineHeight;bi(g.after,p)}h=0,d=u.lineHeight,bi(this.afterBody,p),t.y-=o}drawFooter(t,e,n){const r=this.footer,o=r.length;let i,a;if(o){const s=vl(n.rtl,this.x,this.width);for(t.x=Ld(this,n.footerAlign,n),t.y+=n.footerMarginTop,e.textAlign=s.textAlign(n.footerAlign),e.textBaseline="middle",i=As(n.footerFont),e.fillStyle=n.footerColor,e.font=i.string,a=0;a<o;++a)e.fillText(r[a],s.x(t.x),t.y+i.lineHeight/2),t.y+=i.lineHeight+n.footerSpacing}}drawBackground(t,e,n,r){const{xAlign:o,yAlign:i}=this,{x:a,y:s}=t,{width:l,height:c}=n,{topLeft:u,topRight:d,bottomLeft:h,bottomRight:f}=Ms(r.cornerRadius);e.fillStyle=r.backgroundColor,e.strokeStyle=r.borderColor,e.lineWidth=r.borderWidth,e.beginPath(),e.moveTo(a+u,s),"top"===i&&this.drawCaret(t,e,n,r),e.lineTo(a+l-d,s),e.quadraticCurveTo(a+l,s,a+l,s+d),"center"===i&&"right"===o&&this.drawCaret(t,e,n,r),e.lineTo(a+l,s+c-f),e.quadraticCurveTo(a+l,s+c,a+l-f,s+c),"bottom"===i&&this.drawCaret(t,e,n,r),e.lineTo(a+h,s+c),e.quadraticCurveTo(a,s+c,a,s+c-h),"center"===i&&"left"===o&&this.drawCaret(t,e,n,r),e.lineTo(a,s+u),e.quadraticCurveTo(a,s,a+u,s),e.closePath(),e.fill(),r.borderWidth>0&&e.stroke()}_updateAnimationTarget(t){const e=this.chart,n=this.$animations,r=n&&n.x,o=n&&n.y;if(r||o){const n=Pd[t.position].call(this,this._active,this._eventPosition);if(!n)return;const i=this._size=Id(this,t),a=Object.assign({},n,this._size),s=Rd(e,t,a),l=Fd(t,a,s,e);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(t){const e=this.options.setContext(this.getContext());let n=this.opacity;if(!n)return;this._updateAnimationTarget(e);const r={width:this.width,height:this.height},o={x:this.x,y:this.y};n=Math.abs(n)<.001?0:n;const i=Ps(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,r,e),yl(t,e.textDirection),o.y+=i.top,this.drawTitle(o,t,e),this.drawBody(o,t,e),this.drawFooter(o,t,e),xl(t,e.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,e){const n=this._active,r=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=!vi(n,r),i=this._positionChanged(r,e);(o||i)&&(this._active=r,this._eventPosition=e,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,e,n=!0){if(e&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const r=this.options,o=this._active||[],i=this._getActiveElements(t,o,e,n),a=this._positionChanged(i,t),s=e||!vi(i,o)||a;return s&&(this._active=i,(r.enabled||r.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,e))),s}_getActiveElements(t,e,n,r){const o=this.options;if("mouseout"===t.type)return[];if(!r)return e;const i=this.chart.getElementsAtEventForMode(t,o.mode,o,n);return o.reverse&&i.reverse(),i}_positionChanged(t,e){const{caretX:n,caretY:r,options:o}=this,i=Pd[o.position].call(this,t,e);return!1!==i&&(n!==i.x||r!==i.y)}}Bd.positioners=Pd;var Vd={id:"tooltip",_element:Bd,positioners:Pd,afterInit(t,e,n){n&&(t.tooltip=new Bd({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:si,title(t){if(t.length>0){const e=t[0],n=e.chart.data.labels,r=n?n.length:0;if(this&&this.options&&"dataset"===this.options.mode)return e.dataset.label||"";if(e.label)return e.label;if(r>0&&e.dataIndex<r)return n[e.dataIndex]}return""},afterTitle:si,beforeBody:si,beforeLabel:si,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 ci(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:si,afterBody:si,beforeFooter:si,footer:si,afterFooter:si}},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 $d(t,e,n,r){const o=t.indexOf(e);if(-1===o)return((t,e,n,r)=>("string"==typeof e?(n=t.push(e)-1,r.unshift({index:n,label:e})):isNaN(e)&&(n=null),n))(t,e,n,r);return o!==t.lastIndexOf(e)?n:o}class Hd extends xc{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:r}of e)t[n]===r&&t.splice(n,1);this._addedLabels=[]}super.init(t)}parse(t,e){if(ci(t))return null;const n=this.getLabels();return((t,e)=>null===t?null:Ji(Math.round(t),0,e))(e=isFinite(e)&&n[e]===t?e:$d(n,t,pi(e,t),this._addedLabels),n.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let{min:n,max:r}=this.getMinMax(!0);"ticks"===this.options.bounds&&(t||(n=0),e||(r=this.getLabels().length-1)),this.min=n,this.max=r}buildTicks(){const t=this.min,e=this.max,n=this.options.offset,r=[];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++)r.push({value:n});return r}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 Wd(t,e){const n=[],{bounds:r,step:o,min:i,max:a,precision:s,count:l,maxTicks:c,maxDigits:u,includeBounds:d}=t,h=o||1,f=c-1,{min:p,max:m}=e,g=!ci(i),b=!ci(a),v=!ci(l),y=(m-p)/(u+1);let x,w,E,S,k=Vi((m-p)/f/h)*h;if(k<1e-14&&!g&&!b)return[{value:p},{value:m}];S=Math.ceil(m/k)-Math.floor(p/k),S>f&&(k=Vi(S*k/f/h)*h),ci(s)||(x=Math.pow(10,s),k=Math.ceil(k*x)/x),"ticks"===r?(w=Math.floor(p/k)*k,E=Math.ceil(m/k)*k):(w=p,E=m),g&&b&&o&&function(t,e){const n=Math.round(t);return n-e<=t&&n+e>=t}((a-i)/o,k/1e3)?(S=Math.round(Math.min((a-i)/k,c)),k=(a-i)/S,w=i,E=a):v?(w=g?i:w,E=b?a:E,S=l-1,k=(E-w)/S):(S=(E-w)/k,S=Hi(S,Math.round(S),k/1e3)?Math.round(S):Math.ceil(S));const _=Math.max(Gi(k),Gi(w));x=Math.pow(10,ci(s)?_:s),w=Math.round(w*x)/x,E=Math.round(E*x)/x;let C=0;for(g&&(d&&w!==i?(n.push({value:i}),w<i&&C++,Hi(Math.round((w+C*k)*x)/x,i,Ud(i,y,t))&&C++):w<i&&C++);C<S;++C)n.push({value:Math.round((w+C*k)*x)/x});return b&&d&&E!==a?n.length&&Hi(n[n.length-1].value,a,Ud(a,y,t))?n[n.length-1].value=a:n.push({value:a}):b&&E!==a||n.push({value:E}),n}function Ud(t,e,{horizontal:n,minRotation:r}){const o=Ui(r),i=(n?Math.sin(o):Math.cos(o))||.001,a=.75*e*(""+t).length;return Math.min(e/i,a)}Hd.id="category",Hd.defaults={ticks:{callback:Hd.prototype.getLabelForValue}};class Yd extends xc{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 ci(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:r,max:o}=this;const i=t=>r=e?r:t,a=t=>o=n?o:t;if(t){const t=Bi(r),e=Bi(o);t<0&&e<0?a(0):t>0&&e>0&&i(0)}if(r===o){let e=1;(o>=Number.MAX_SAFE_INTEGER||r<=Number.MIN_SAFE_INTEGER)&&(e=Math.abs(.05*o)),a(o+e),t||i(r-e)}this.min=r,this.max=o}getTickLimit(){const t=this.options.ticks;let e,{maxTicksLimit:n,stepSize:r}=t;return r?(e=Math.ceil(this.max/r)-Math.floor(this.min/r)+1,e>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${r} 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 r=Wd({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&&Wi(r,this,"value"),t.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}configure(){const t=this.ticks;let e=this.min,n=this.max;if(super.configure(),this.options.offset&&t.length){const r=(n-e)/Math.max(t.length-1,1)/2;e-=r,n+=r}this._startValue=e,this._endValue=n,this._valueRange=n-e}getLabelForValue(t){return bl(t,this.chart.options.locale,this.options.ticks.format)}}class Gd extends Yd{determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=hi(t)?t:0,this.max=hi(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),e=t?this.width:this.height,n=Ui(this.options.ticks.minRotation),r=(t?Math.sin(n):Math.cos(n))||.001,o=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,o.lineHeight/r))}getPixelForValue(t){return null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}function qd(t){return 1===t/Math.pow(10,Math.floor(zi(t)))}Gd.id="linear",Gd.defaults={ticks:{callback:uc.formatters.numeric}};class Xd extends xc{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,e){const n=Yd.prototype.parse.apply(this,[t,e]);if(0!==n)return hi(n)&&n>0?n:null;this._zero=!0}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=hi(t)?Math.max(0,t):null,this.max=hi(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,r=this.max;const o=e=>n=t?n:e,i=t=>r=e?r:t,a=(t,e)=>Math.pow(10,Math.floor(zi(t))+e);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 t=this.options,e=function(t,e){const n=Math.floor(zi(e.max)),r=Math.ceil(e.max/Math.pow(10,n)),o=[];let i=fi(t.min,Math.pow(10,Math.floor(zi(e.min)))),a=Math.floor(zi(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:qd(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=fi(t.max,i);return o.push({value:c,major:qd(i)}),o}({min:this._userMin,max:this._userMax},this);return"ticks"===t.bounds&&Wi(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":bl(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=zi(t),this._valueRange=zi(this.max)-zi(t)}getPixelForValue(t){return void 0!==t&&0!==t||(t=this.min),null===t||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(zi(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const e=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+e*this._valueRange)}}function Kd(t){const e=t.ticks;if(e.display&&t.display){const t=Ps(e.backdropPadding);return pi(e.font&&e.font.size,ss.font.size)+t.height}return 0}function Zd(t,e,n){return n=ui(n)?n:[n],{w:cs(t,e.string,n),h:n.length*e.lineHeight}}function Qd(t,e,n,r,o){return t===r||t===o?{start:e-n/2,end:e+n/2}:t<r||t>o?{start:e-n,end:e}:{start:e,end:e+n}}function Jd(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),r=[],o=[],i=t._pointLabels.length,a=t.options.pointLabels,s=a.centerPointLabels?Ni/i:0;for(let l=0;l<i;l++){const i=a.setContext(t.getPointLabelContext(l));o[l]=i.padding;const c=t.getPointPosition(l,t.drawingArea+o[l],s),u=As(i.font),d=Zd(t.ctx,u,t._pointLabels[l]);r[l]=d;const h=Zi(t.getIndexAngle(l)+s),f=Math.round(Yi(h));th(n,e,h,Qd(f,c.x,d.w,0,180),Qd(f,c.y,d.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 r=[],o=t._pointLabels.length,i=t.options,a=Kd(i)/2,s=t.drawingArea,l=i.pointLabels.centerPointLabels?Ni/o:0;for(let i=0;i<o;i++){const o=t.getPointPosition(i,s+a+n[i],l),c=Math.round(Yi(Zi(o.angle+Fi))),u=e[i],d=rh(o.y,u.h,c),h=eh(c),f=nh(o.x,u.w,h);r.push({x:o.x,y:d,textAlign:h,left:f,top:d,right:f+u.w,bottom:d+u.h})}return r}(t,r,o)}function th(t,e,n,r,o){const i=Math.abs(Math.sin(n)),a=Math.abs(Math.cos(n));let s=0,l=0;r.start<e.l?(s=(e.l-r.start)/i,t.l=Math.min(t.l,e.l-s)):r.end>e.r&&(s=(r.end-e.r)/i,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 eh(t){return 0===t||180===t?"center":t<180?"left":"right"}function nh(t,e,n){return"right"===n?t-=e:"center"===n&&(t-=e/2),t}function rh(t,e,n){return 90===n||270===n?t-=e/2:(n>270||n<90)&&(t-=e),t}function oh(t,e,n,r){const{ctx:o}=t;if(n)o.arc(t.xCenter,t.yCenter,e,0,Di);else{let n=t.getPointPosition(0,e);o.moveTo(n.x,n.y);for(let i=1;i<r;i++)n=t.getPointPosition(i,e),o.lineTo(n.x,n.y)}}Xd.id="logarithmic",Xd.defaults={ticks:{callback:uc.formatters.logarithmic,major:{enabled:!0}}};class ih extends Yd{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=Ps(Kd(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=hi(t)&&!isNaN(t)?t:0,this.max=hi(e)&&!isNaN(e)?e:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/Kd(this.options))}generateTickLabels(t){Yd.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map((t,e)=>{const n=gi(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?Jd(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,e,n,r){this.xCenter+=Math.floor((t-e)/2),this.yCenter+=Math.floor((n-r)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,e,n,r))}getIndexAngle(t){return Zi(t*(Di/(this._pointLabels.length||1))+Ui(this.options.startAngle||0))}getDistanceFromCenterForValue(t){if(ci(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(ci(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 Ds(t,{label:n,index:e,type:"pointLabel"})}(this.getContext(),t,n)}}getPointPosition(t,e,n=0){const r=this.getIndexAngle(t)-Fi+n;return{x:Math.cos(r)*e+this.xCenter,y:Math.sin(r)*e+this.yCenter,angle:r}}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:r,bottom:o}=this._pointLabelItems[t];return{left:e,top:n,right:r,bottom:o}}drawBackground(){const{backgroundColor:t,grid:{circular:e}}=this.options;if(t){const n=this.ctx;n.save(),n.beginPath(),oh(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:r}=e,o=this._pointLabels.length;let i,a,s;if(e.pointLabels.display&&function(t,e){const{ctx:n,options:{pointLabels:r}}=t;for(let o=e-1;o>=0;o--){const e=r.setContext(t.getPointLabelContext(o)),i=As(e.font),{x:a,y:s,textAlign:l,left:c,top:u,right:d,bottom:h}=t._pointLabelItems[o],{backdropColor:f}=e;if(!ci(f)){const t=Ms(e.borderRadius),r=Ps(e.backdropPadding);n.fillStyle=f;const o=c-r.left,i=u-r.top,a=d-c+r.width,s=h-u+r.height;Object.values(t).some(t=>0!==t)?(n.beginPath(),ws(n,{x:o,y:i,w:a,h:s,radius:t}),n.fill()):n.fillRect(o,i,a,s)}ys(n,t._pointLabels[o],a,s+i.lineHeight/2,i,{color:e.color,textAlign:l,textBaseline:"middle"})}}(this,o),r.display&&this.ticks.forEach((t,e)=>{if(0!==e){a=this.getDistanceFromCenterForValue(t.value);!function(t,e,n,r){const o=t.ctx,i=e.circular,{color:a,lineWidth:s}=e;!i&&!r||!a||!s||n<0||(o.save(),o.strokeStyle=a,o.lineWidth=s,o.setLineDash(e.borderDash),o.lineDashOffset=e.borderDashOffset,o.beginPath(),oh(t,n,i,r),o.closePath(),o.stroke(),o.restore())}(this,r.setContext(this.getContext(e-1)),a,o)}}),n.display){for(t.save(),i=o-1;i>=0;i--){const r=n.setContext(this.getPointLabelContext(i)),{color:o,lineWidth:l}=r;l&&o&&(t.lineWidth=l,t.strokeStyle=o,t.setLineDash(r.borderDash),t.lineDashOffset=r.borderDashOffset,a=this.getDistanceFromCenterForValue(e.ticks.reverse?this.min:this.max),s=this.getPointPosition(i,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 r=this.getIndexAngle(0);let o,i;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(r),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((r,a)=>{if(0===a&&!e.reverse)return;const s=n.setContext(this.getContext(a)),l=As(s.font);if(o=this.getDistanceFromCenterForValue(this.ticks[a].value),s.showLabelBackdrop){t.font=l.string,i=t.measureText(r.label).width,t.fillStyle=s.backdropColor;const e=Ps(s.backdropPadding);t.fillRect(-i/2-e.left,-o-l.size/2-e.top,i+e.width,l.size+e.height)}ys(t,r.label,0,-o,l,{color:s.color})}),t.restore()}drawTitle(){}}ih.id="radialLinear",ih.defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:uc.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:t=>t,padding:5,centerPointLabels:!1}},ih.defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"},ih.descriptors={angleLines:{_fallback:"grid"}};const sh={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}},lh=Object.keys(sh);function ch(t,e){return t-e}function uh(t,e){if(ci(e))return null;const n=t._adapter,{parser:r,round:o,isoWeekday:i}=t._parseOpts;let a=e;return"function"==typeof r&&(a=r(a)),hi(a)||(a="string"==typeof r?n.parse(a,r):n.parse(a)),null===a?null:(o&&(a="week"!==o||!$i(i)&&!0!==i?n.startOf(a,o):n.startOf(a,"isoWeek",i)),+a)}function dh(t,e,n,r){const o=lh.length;for(let i=lh.indexOf(t);i<o-1;++i){const t=sh[lh[i]],o=t.steps?t.steps:Number.MAX_SAFE_INTEGER;if(t.common&&Math.ceil((n-e)/(o*t.size))<=r)return lh[i]}return lh[o-1]}function hh(t,e,n){if(n){if(n.length){const{lo:r,hi:o}=ea(n,e);t[n[r]>=e?n[r]:n[o]]=!0}}else t[e]=!0}function fh(t,e,n){const r=[],o={},i=e.length;let a,s;for(a=0;a<i;++a)s=e[a],o[s]=a,r.push({value:s,major:!1});return 0!==i&&n?function(t,e,n,r){const o=t._adapter,i=+o.startOf(e[0].value,r),a=e[e.length-1].value;let s,l;for(s=i;s<=a;s=+o.add(s,1,r))l=n[s],l>=0&&(e[l].major=!0);return e}(t,r,o,n):r}class ph extends xc{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={}),r=this._adapter=new Cc._date(t.adapters.date);r.init(e),Si(n.displayFormats,r.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:uh(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:r,max:o,minDefined:i,maxDefined:a}=this.getUserBounds();function s(t){i||isNaN(t.min)||(r=Math.min(r,t.min)),a||isNaN(t.max)||(o=Math.max(o,t.max))}i&&a||(s(this._getLabelBounds()),"ticks"===t.bounds&&"labels"===t.ticks.source||s(this.getMinMax(!1))),r=hi(r)&&!isNaN(r)?r:+e.startOf(Date.now(),n),o=hi(o)&&!isNaN(o)?o:+e.endOf(Date.now(),n)+1,this.min=Math.min(r,o-1),this.max=Math.max(r+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,r="labels"===n.source?this.getLabelTimestamps():this._generate();"ticks"===t.bounds&&r.length&&(this.min=this._userMin||r[0],this.max=this._userMax||r[r.length-1]);const o=this.min,i=function(t,e,n){let r=0,o=t.length;for(;r<o&&t[r]<e;)r++;for(;o>r&&t[o-1]>n;)o--;return r>0||o<t.length?t.slice(r,o):t}(r,o,this.max);return this._unit=e.unit||(n.autoSkip?dh(e.minUnit,this.min,this.max,this._getLabelCapacity(o)):function(t,e,n,r,o){for(let i=lh.length-1;i>=lh.indexOf(n);i--){const n=lh[i];if(sh[n].common&&t._adapter.diff(o,r,n)>=e-1)return n}return lh[n?lh.indexOf(n):0]}(this,i.length,e.minUnit,this.min,this.max)),this._majorUnit=n.major.enabled&&"year"!==this._unit?function(t){for(let e=lh.indexOf(t)+1,n=lh.length;e<n;++e)if(sh[lh[e]].common)return lh[e]}(this._unit):void 0,this.initOffsets(r),t.reverse&&i.reverse(),fh(this,i,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t){let e,n,r=0,o=0;this.options.offset&&t.length&&(e=this.getDecimalForValue(t[0]),r=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 i=t.length<3?.5:.25;r=Ji(r,0,i),o=Ji(o,0,i),this._offsets={start:r,end:o,factor:1/(r+1+o)}}_generate(){const t=this._adapter,e=this.min,n=this.max,r=this.options,o=r.time,i=o.unit||dh(o.minUnit,e,n,this._getLabelCapacity(e)),a=pi(o.stepSize,1),s="week"===i&&o.isoWeekday,l=$i(s)||!0===s,c={};let u,d,h=e;if(l&&(h=+t.startOf(h,"isoWeek",s)),h=+t.startOf(h,l?"day":i),t.diff(n,e,i)>1e5*a)throw new Error(e+" and "+n+" are too far apart with stepSize of "+a+" "+i);const f="data"===r.ticks.source&&this.getDataTimestamps();for(u=h,d=0;u<n;u=+t.add(u,a,i),d++)hh(c,u,f);return u!==n&&"ticks"!==r.bounds&&1!==d||hh(c,u,f),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,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[e],d=s&&c&&u&&u.major,h=this._adapter.format(t,r||(d?c:l)),f=o.ticks.callback;return f?gi(f,[h,e,n],this):h}generateTickLabels(t){let e,n,r;for(e=0,n=t.length;e<n;++e)r=t[e],r.label=this._tickFormatFunction(r.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,r=Ui(this.isHorizontal()?e.maxRotation:e.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(t){const e=this.options.time,n=e.displayFormats,r=n[e.unit]||n.millisecond,o=this._tickFormatFunction(t,0,fh(this,[t],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 t,e,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(t=0,e=r.length;t<e;++t)n=n.concat(r[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 r=this.getLabels();for(e=0,n=r.length;e<n;++e)t.push(uh(this,r[e]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return sa(t.sort(ch))}}function mh(t,e,n){let r,o,i,a,s=0,l=t.length-1;n?(e>=t[s].pos&&e<=t[l].pos&&({lo:s,hi:l}=na(t,"pos",e)),({pos:r,time:i}=t[s]),({pos:o,time:a}=t[l])):(e>=t[s].time&&e<=t[l].time&&({lo:s,hi:l}=na(t,"time",e)),({time:r,pos:i}=t[s]),({time:o,pos:a}=t[l]));const c=o-r;return c?i+(a-i)*(e-r)/c:i}ph.id="time",ph.defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",major:{enabled:!1}}};class gh extends ph{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=mh(e,this.min),this._tableRange=mh(e,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:e,max:n}=this,r=[],o=[];let i,a,s,l,c;for(i=0,a=t.length;i<a;++i)l=t[i],l>=e&&l<=n&&r.push(l);if(r.length<2)return[{time:e,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 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(mh(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const e=this._offsets,n=this.getDecimalForPixel(t)/e.factor-e.end;return mh(this._table,n*this._tableRange+this._minPos,!0)}}gh.id="timeseries",gh.defaults=ph.defaults;const bh="label";function vh(t,e){"function"==typeof t?t(e):t&&(t.current=e)}function yh(t,e){t.labels=e}function xh(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:bh;const r=[];t.datasets=e.map(e=>{const o=t.datasets.find(t=>t[n]===e[n]);return o&&e.data&&!r.includes(o)?(r.push(o),Object.assign(o,e),o):{...e}})}function wh(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:bh;const n={labels:[],datasets:[]};return yh(n,t.labels),xh(n,t.datasets,e),n}function Eh(t,e){let{height:n=150,width:r=300,redraw:o=!1,datasetIdKey:i,type:a,data:s,options:l,plugins:c=[],fallbackContent:u,updateMode:d,...h}=t;const f=ct(null),p=ct(),m=()=>{f.current&&(p.current=new Tu(f.current,{type:a,data:wh(s,i),options:l&&{...l},plugins:c}),vh(e,p.current))},g=()=>{vh(e,null),p.current&&(p.current.destroy(),p.current=null)};return ut(()=>{var t,e;!o&&p.current&&l&&(t=p.current,e=l,Object.assign(t.options,e))},[o,l]),ut(()=>{!o&&p.current&&yh(p.current.config.data,s.labels)},[o,s.labels]),ut(()=>{!o&&p.current&&s.datasets&&xh(p.current.config.data,s.datasets,i)},[o,s.datasets]),ut(()=>{p.current&&(o?(g(),setTimeout(m)):p.current.update(d))},[o,l,s.labels,s.datasets,d]),ut(()=>{p.current&&(g(),setTimeout(m))},[a]),ut(()=>(m(),()=>g()),[]),et.createElement("canvas",Object.assign({ref:f,role:"img",height:n,width:r},h),u)}const Sh=rt(Eh);Tu.register(Hd,Gd,Ju,Zu,rc,Vd,Md,_d);var kh=function(t){var e=t.xValues,n=t.yValues,r=t.dataPrefix,o=t.dataPostfix,i=t.straitsXStyle,a=t.height,s=void 0===a?40:a,l=ct(null),c=lt({datasets:[]}),u=c[0],d=c[1],h={labels:e,datasets:[{data:n}]},f=r||"",p=o||"";ut(function(){var t=l.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 r=e.createLinearGradient(0,0,0,280);r.addColorStop(0,"rgba(0, 211, 126, 0.2)"),r.addColorStop(.1,"rgba(0, 211, 126, 0.1)"),r.addColorStop(1,"rgba(0, 211, 126, 0)");var o=Xt(Xt({},h),{datasets:h.datasets.map(function(t){return Xt(Xt({},t),{backgroundColor:i?r:n,fill:!0,borderColor:i?"#00D37E":"#2E8DEE",pointRadius:0})})});d(o)}},[i,e,n]);var m={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:i?1:0,backgroundColor:i?"#ffffff":"#000000",titleColor:i?"#1B2736":"#fff",bodyColor:i?"#1B2736":"#fff",titleAlign:"center",bodyAlign:"center",titleFont:{size:14},bodyFont:{size:14},callbacks:{title:function(t){return i?"".concat(f).concat(t[0].parsed.y).concat(p):t[0].label},label:function(t){return i?t.label:"".concat(f).concat(t.parsed.y).concat(p)}}}},scales:{x:{ticks:{color:i?"#1B2736":"rgba(0, 0, 0, 0.4)",font:{weight:"500",size:13}},grid:{display:!1}},y:{ticks:{beginAtZero:!0,padding:18,maxTicksLimit:3,color:i?"#1B2736":"rgba(0, 0, 0, 0.4)",callback:function(t){return"".concat(f).concat(t).concat(p)}},grid:{display:!1,drawBorder:!1}}}};return et.createElement("div",{style:{position:"relative",height:"".concat(s,"vh"),width:"99%"}},et.createElement(Sh,{id:"chart",ref:l,type:"line",data:u,options:m}))};function _h(t){var e=t.children,n=t.activeKey,r=t.width,o=void 0===r?250:r,i=qt(t,["children","activeKey","width"]),a=eo().brand,s=e.map(function(t,e){return et.createElement(wt.TabPane,{key:e,forceRender:!0},t)}),l=e.map(function(t,e){return et.createElement(Th,{key:e,isActive:e===n,activeColor:a.primary.default})});return et.createElement(Nh,null,et.createElement(Dh,Xt({renderTabBar:function(){return et.createElement("div",null)},width:o,activeKey:n.toString(),animated:!0},i),s),et.createElement(Ih,null,l))}var Ch,Oh,Mh,Ph,Ah,Nh=ir.div(Ch||(Ch=Gt(["\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"]))),Dh=ir(wt)(Oh||(Oh=Gt(["\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")}),Ih=ir.span(Mh||(Mh=Gt(["\n display: flex;\n gap: 0.25rem;\n margin-top: 10px;\n"],["\n display: flex;\n gap: 0.25rem;\n margin-top: 10px;\n"]))),Th=ir.span(Ph||(Ph=Gt(["\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 Rh(t){var e=t.menu,n=t.children,r=t.type,o=void 0===r?"default":r,i=t.placement,a=void 0===i?"bottomLeft":i,s=t.className,l=void 0===s?"":s,c=t.trigger,u=void 0===c?["click"]:c,d=t.disabled,h=void 0!==d&&d,f=qt(t,["menu","children","type","placement","className","trigger","disabled"]),p=eo(),m=p.brand,g=p.spacing,b="\n background-color: ".concat(m.action.default,";\n color: ").concat(m.primary.contrast,";\n border: 1px solid ").concat(m.primary.contrast,";\n\n &:focus {\n background-color: ").concat(m.action.default,";\n color: ").concat(m.primary.contrast,";\n border: 1px solid ").concat(m.primary.contrast,";\n }\n\n &:active {\n background-color: ").concat(m.action.default,";\n color: ").concat(m.primary.contrast,";\n border: 1px solid ").concat(m.primary.contrast,";\n }\n\n &:hover {\n background-color: ").concat(m.action.hover,";\n color: ").concat(m.primary.contrast,";\n border: 1px solid ").concat(m.primary.contrast,";\n }\n "),v="\n cursor: auto;\n pointer-events: none;\n opacity: ".concat(m.action.disabledOpacity,";\n "),y=ir(Et.Button)(Ah||(Ah=Gt(["\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 "])),Or,Ir,b,!0===h&&v,g.md,Or,Ir,b,!0===h&&v,g.sm);if("split"===o)return et.createElement(y,Xt({className:l,menu:e,placement:a,trigger:u},f),n);var x=ct(null);return ut(function(){var t=function(t){t.cancelable&&t.preventDefault()},e=x.current;return e&&e.addEventListener("touchmove",t,{passive:!0}),function(){e&&e.removeEventListener("touchmove",t)}},[]),et.createElement(Et,Xt({menu:e,placement:a,trigger:u},f),et.createElement("div",{ref:x},n))}var Fh,Lh={exports:{}};
|
|
22
|
-
/*!
|
|
23
|
-
Copyright (c) 2018 Jed Watson.
|
|
24
|
-
Licensed under the MIT License (MIT), see
|
|
25
|
-
http://jedwatson.github.io/classnames
|
|
26
|
-
*/var jh=(Fh||(Fh=1,function(t){!function(){var e={}.hasOwnProperty;function n(){for(var t="",e=0;e<arguments.length;e++){var n=arguments[e];n&&(t=o(t,r(n)))}return t}function r(t){if("string"==typeof t||"number"==typeof t)return t;if("object"!=typeof t)return"";if(Array.isArray(t))return n.apply(null,t);if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes("[native code]"))return t.toString();var r="";for(var i in t)e.call(t,i)&&t[i]&&(r=o(r,i));return r}function o(t,e){return e?t?t+" "+e:t+e:t}t.exports?(n.default=n,t.exports=n):window.classNames=n}()}(Lh)),Lh.exports),zh=ge(jh);function Bh(){return Bh=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Bh.apply(null,arguments)}function Vh(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function $h(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function Hh(t,e){if(t){if("string"==typeof t)return Vh(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Vh(t,e):void 0}}function Wh(t){return function(t){if(Array.isArray(t))return Vh(t)}(t)||$h(t)||Hh(t)||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 Uh(t){return Uh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Uh(t)}function Yh(t){var e=function(t,e){if("object"!=Uh(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Uh(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Uh(e)?e:e+""}function Gh(t,e,n){return(e=Yh(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function qh(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function Xh(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?qh(Object(n),!0).forEach(function(e){Gh(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):qh(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function Kh(t){if(Array.isArray(t))return t}function Zh(){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 Qh(t,e){return Kh(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(t,e)||Hh(t,e)||Zh()}function Jh(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(-1!==e.indexOf(r))continue;n[r]=t[r]}return n}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],-1===e.indexOf(n)&&{}.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function tf(t){var e=tt.useRef();e.current=t;var n=tt.useCallback(function(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return null===(t=e.current)||void 0===t?void 0:t.call.apply(t,[e].concat(r))},[]);return n}function ef(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}var nf="test"!==process.env.NODE_ENV&&ef()?tt.useLayoutEffect:tt.useEffect,rf=function(t,e){var n=tt.useRef(!0);nf(function(){return t(n.current)},e),nf(function(){return n.current=!1,function(){n.current=!0}},[])},of=function(t,e){rf(function(e){if(!e)return t()},e)};function sf(t){var e=tt.useRef(!1),n=Qh(tt.useState(t),2),r=n[0],o=n[1];return tt.useEffect(function(){return e.current=!1,function(){e.current=!0}},[]),[r,function(t,n){n&&e.current||o(t)}]}function lf(t){return void 0!==t}function cf(t,e){var n=e||{},r=n.defaultValue,o=n.value,i=n.onChange,a=n.postState,s=Qh(sf(function(){return lf(o)?o:lf(r)?"function"==typeof r?r():r:"function"==typeof t?t():t}),2),l=s[0],c=s[1],u=void 0!==o?o:l,d=a?a(u):u,h=tf(i),f=Qh(sf([u]),2),p=f[0],m=f[1];return of(function(){var t=p[0];l!==t&&h(l,t)},[p]),of(function(){lf(o)||c(o)},[o]),[d,tf(function(t,e){c(t,e),m([u],e)})]}var uf={},df=[];function hf(t,e){if("production"!==process.env.NODE_ENV&&!t&&void 0!==console){var n=df.reduce(function(t,e){return e(null!=t?t:"","warning")},e);n&&console.error("Warning: ".concat(n))}}function ff(t,e){if("production"!==process.env.NODE_ENV&&!t&&void 0!==console){var n=df.reduce(function(t,e){return e(null!=t?t:"","note")},e);n&&console.warn("Note: ".concat(n))}}function pf(){uf={}}function mf(t,e,n){e||uf[n]||(t(!1,n),uf[n]=!0)}function gf(t,e){mf(hf,t,e)}function bf(t,e){mf(ff,t,e)}gf.preMessage=function(t){df.push(t)},gf.resetWarned=pf,gf.noteOnce=bf;var vf,yf=function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var t=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(t)||/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==t?void 0:t.substr(0,4))},xf={exports:{}},wf={};var Ef,Sf,kf={};
|
|
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 _f=(Sf||(Sf=1,"production"===process.env.NODE_ENV?xf.exports=function(){if(vf)return wf;vf=1;var t,e=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"),h=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen");function m(t){if("object"==typeof t&&null!==t){var p=t.$$typeof;switch(p){case e:switch(t=t.type){case r:case i:case o:case u:case d:return t;default:switch(t=t&&t.$$typeof){case l:case s:case c:case f:case h:case a:return t;default:return p}}case n:return p}}}return t=Symbol.for("react.module.reference"),wf.ContextConsumer=s,wf.ContextProvider=a,wf.Element=e,wf.ForwardRef=c,wf.Fragment=r,wf.Lazy=f,wf.Memo=h,wf.Portal=n,wf.Profiler=i,wf.StrictMode=o,wf.Suspense=u,wf.SuspenseList=d,wf.isAsyncMode=function(){return!1},wf.isConcurrentMode=function(){return!1},wf.isContextConsumer=function(t){return m(t)===s},wf.isContextProvider=function(t){return m(t)===a},wf.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},wf.isForwardRef=function(t){return m(t)===c},wf.isFragment=function(t){return m(t)===r},wf.isLazy=function(t){return m(t)===f},wf.isMemo=function(t){return m(t)===h},wf.isPortal=function(t){return m(t)===n},wf.isProfiler=function(t){return m(t)===i},wf.isStrictMode=function(t){return m(t)===o},wf.isSuspense=function(t){return m(t)===u},wf.isSuspenseList=function(t){return m(t)===d},wf.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===i||e===o||e===u||e===d||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===h||e.$$typeof===a||e.$$typeof===s||e.$$typeof===c||e.$$typeof===t||void 0!==e.getModuleId)},wf.typeOf=m,wf}():xf.exports=(Ef||(Ef=1,"production"!==process.env.NODE_ENV&&function(){var t,e=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"),h=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen");function m(t){if("object"==typeof t&&null!==t){var p=t.$$typeof;switch(p){case e:var m=t.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 f:case h:case a:return g;default:return p}}case n:return p}}}t=Symbol.for("react.module.reference");var g=s,b=a,v=e,y=c,x=r,w=f,E=h,S=n,k=i,_=o,C=u,O=d,M=!1,P=!1;kf.ContextConsumer=g,kf.ContextProvider=b,kf.Element=v,kf.ForwardRef=y,kf.Fragment=x,kf.Lazy=w,kf.Memo=E,kf.Portal=S,kf.Profiler=k,kf.StrictMode=_,kf.Suspense=C,kf.SuspenseList=O,kf.isAsyncMode=function(t){return M||(M=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1},kf.isConcurrentMode=function(t){return P||(P=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1},kf.isContextConsumer=function(t){return m(t)===s},kf.isContextProvider=function(t){return m(t)===a},kf.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},kf.isForwardRef=function(t){return m(t)===c},kf.isFragment=function(t){return m(t)===r},kf.isLazy=function(t){return m(t)===f},kf.isMemo=function(t){return m(t)===h},kf.isPortal=function(t){return m(t)===n},kf.isProfiler=function(t){return m(t)===i},kf.isStrictMode=function(t){return m(t)===o},kf.isSuspense=function(t){return m(t)===u},kf.isSuspenseList=function(t){return m(t)===d},kf.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===i||e===o||e===u||e===d||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===h||e.$$typeof===a||e.$$typeof===s||e.$$typeof===c||e.$$typeof===t||void 0!==e.getModuleId)},kf.typeOf=m}()),kf)),xf.exports);function Cf(t,e,n){var r=tt.useRef({});return"value"in r.current&&!n(r.current.condition,e)||(r.current.value=t(),r.current.condition=e),r.current.value}var Of=Symbol.for("react.element"),Mf=Symbol.for("react.transitional.element"),Pf=Symbol.for("react.fragment");function Af(t){return t&&"object"===Uh(t)&&(t.$$typeof===Of||t.$$typeof===Mf)&&t.type===Pf}var Nf=Number(dt.split(".")[0]),Df=function(t,e){"function"==typeof t?t(e):"object"===Uh(t)&&t&&"current"in t&&(t.current=e)},If=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=e.filter(Boolean);return r.length<=1?r[0]:function(t){e.forEach(function(e){Df(e,t)})}},Tf=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return Cf(function(){return If.apply(void 0,e)},e,function(t,e){return t.length!==e.length||t.every(function(t,n){return t!==e[n]})})},Rf=function(t){var e,n;if(!t)return!1;if(Ff(t)&&Nf>=19)return!0;var r=_f.isMemo(t)?t.type.type:t.type;return!!("function"!=typeof r||null!==(e=r.prototype)&&void 0!==e&&e.render||r.$$typeof===_f.ForwardRef)&&!!("function"!=typeof t||null!==(n=t.prototype)&&void 0!==n&&n.render||t.$$typeof===_f.ForwardRef)};function Ff(t){return ht(t)&&!Af(t)}var Lf=function(t){if(t&&Ff(t)){var e=t;return e.props.propertyIsEnumerable("ref")?e.props.ref:e.ref}return null},jf=function(t){var e=t.className,n=t.customizeIcon,r=t.customizeIconProps,o=t.children,i=t.onMouseDown,a=t.onClick,s="function"==typeof n?n(r):n;return tt.createElement("span",{className:e,onMouseDown:function(t){t.preventDefault(),null==i||i(t)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:a,"aria-hidden":!0},void 0!==s?s:tt.createElement("span",{className:zh(e.split(/\s+/).map(function(t){return"".concat(t,"-icon")}))},o))},zf=tt.createContext(null);function Bf(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,e=tt.useRef(null),n=tt.useRef(null);return tt.useEffect(function(){return function(){window.clearTimeout(n.current)}},[]),[function(){return e.current},function(r){(r||null===e.current)&&(e.current=r),window.clearTimeout(n.current),n.current=window.setTimeout(function(){e.current=null},t)}]}var Vf={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(t){var e=t.keyCode;if(t.altKey&&!t.ctrlKey||t.metaKey||e>=Vf.F1&&e<=Vf.F12)return!1;switch(e){case Vf.ALT:case Vf.CAPS_LOCK:case Vf.CONTEXT_MENU:case Vf.CTRL:case Vf.DOWN:case Vf.END:case Vf.ESC:case Vf.HOME:case Vf.INSERT:case Vf.LEFT:case Vf.MAC_FF_META:case Vf.META:case Vf.NUMLOCK:case Vf.NUM_CENTER:case Vf.PAGE_DOWN:case Vf.PAGE_UP:case Vf.PAUSE:case Vf.PRINT_SCREEN:case Vf.RIGHT:case Vf.SHIFT:case Vf.UP:case Vf.WIN_KEY:case Vf.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=Vf.ZERO&&t<=Vf.NINE)return!0;if(t>=Vf.NUM_ZERO&&t<=Vf.NUM_MULTIPLY)return!0;if(t>=Vf.A&&t<=Vf.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===t)return!0;switch(t){case Vf.SPACE:case Vf.QUESTION_MARK:case Vf.NUM_PLUS:case Vf.NUM_MINUS:case Vf.NUM_PERIOD:case Vf.NUM_DIVISION:case Vf.SEMICOLON:case Vf.DASH:case Vf.EQUALS:case Vf.COMMA:case Vf.PERIOD:case Vf.SLASH:case Vf.APOSTROPHE:case Vf.SINGLE_QUOTE:case Vf.OPEN_SQUARE_BRACKET:case Vf.BACKSLASH:case Vf.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};var $f="".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 Hf(t,e){return 0===t.indexOf(e)}function Wf(t){var e,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e=!1===n?{aria:!0,data:!0,attr:!0}:!0===n?{aria:!0}:Xh({},n);var r={};return Object.keys(t).forEach(function(n){(e.aria&&("role"===n||Hf(n,"aria-"))||e.data&&Hf(n,"data-")||e.attr&&$f.includes(n))&&(r[n]=t[n])}),r}function Uf(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];return et.Children.forEach(t,function(t){(null!=t||e.keepEmpty)&&(Array.isArray(t)?n=n.concat(Uf(t)):Af(t)&&t.props?n=n.concat(Uf(t.props.children,e)):n.push(t))}),n}function Yf(t){return t instanceof HTMLElement||t instanceof SVGElement}function Gf(t){var e,n=function(t){return t&&"object"===Uh(t)&&Yf(t.nativeElement)?t.nativeElement:Yf(t)?t:null}(t);return n||(t instanceof et.Component?null===(e=Kt.findDOMNode)||void 0===e?void 0:e.call(Kt,t):null)}var qf=tt.createContext(null);var Xf=function(){if("undefined"!=typeof Map)return Map;function t(t,e){var n=-1;return t.some(function(t,r){return t[0]===e&&(n=r,!0)}),n}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var n=t(this.__entries__,e),r=this.__entries__[n];return r&&r[1]},e.prototype.set=function(e,n){var r=t(this.__entries__,e);~r?this.__entries__[r][1]=n:this.__entries__.push([e,n])},e.prototype.delete=function(e){var n=this.__entries__,r=t(n,e);~r&&n.splice(r,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var n=0,r=this.__entries__;n<r.length;n++){var o=r[n];t.call(e,o[1],o[0])}},e}()}(),Kf="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,Zf="undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),Qf="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(Zf):function(t){return setTimeout(function(){return t(Date.now())},1e3/60)};var Jf=["top","right","bottom","left","width","height","size","weight"],tp="undefined"!=typeof MutationObserver,ep=function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(t,e){var n=!1,r=!1,o=0;function i(){n&&(n=!1,t()),r&&s()}function a(){Qf(i)}function s(){var t=Date.now();if(n){if(t-o<2)return;r=!0}else n=!0,r=!1,setTimeout(a,e);o=t}return s}(this.refresh.bind(this),20)}return t.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},t.prototype.removeObserver=function(t){var e=this.observers_,n=e.indexOf(t);~n&&e.splice(n,1),!e.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},t.prototype.updateObservers_=function(){var t=this.observers_.filter(function(t){return t.gatherActive(),t.hasActive()});return t.forEach(function(t){return t.broadcastActive()}),t.length>0},t.prototype.connect_=function(){Kf&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),tp?(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)},t.prototype.disconnect_=function(){Kf&&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)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,n=void 0===e?"":e;Jf.some(function(t){return!!~n.indexOf(t)})&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),np=function(t,e){for(var n=0,r=Object.keys(e);n<r.length;n++){var o=r[n];Object.defineProperty(t,o,{value:e[o],enumerable:!1,writable:!1,configurable:!0})}return t},rp=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView||Zf},op=dp(0,0,0,0);function ip(t){return parseFloat(t)||0}function sp(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.reduce(function(e,n){return e+ip(t["border-"+n+"-width"])},0)}function lp(t){var e=t.clientWidth,n=t.clientHeight;if(!e&&!n)return op;var r=rp(t).getComputedStyle(t),o=function(t){for(var e={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],i=t["padding-"+o];e[o]=ip(i)}return e}(r),i=o.left+o.right,a=o.top+o.bottom,s=ip(r.width),l=ip(r.height);if("border-box"===r.boxSizing&&(Math.round(s+i)!==e&&(s-=sp(r,"left","right")+i),Math.round(l+a)!==n&&(l-=sp(r,"top","bottom")+a)),!function(t){return t===rp(t).document.documentElement}(t)){var c=Math.round(s+i)-e,u=Math.round(l+a)-n;1!==Math.abs(c)&&(s-=c),1!==Math.abs(u)&&(l-=u)}return dp(o.left,o.top,s,l)}var cp="undefined"!=typeof SVGGraphicsElement?function(t){return t instanceof rp(t).SVGGraphicsElement}:function(t){return t instanceof rp(t).SVGElement&&"function"==typeof t.getBBox};function up(t){return Kf?cp(t)?function(t){var e=t.getBBox();return dp(0,0,e.width,e.height)}(t):lp(t):op}function dp(t,e,n,r){return{x:t,y:e,width:n,height:r}}var hp=function(){function t(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=dp(0,0,0,0),this.target=t}return t.prototype.isActive=function(){var t=up(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},t}(),fp=function(t,e){var n=function(t){var e=t.x,n=t.y,r=t.width,o=t.height,i="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,a=Object.create(i.prototype);return np(a,{x:e,y:n,width:r,height:o,top:n,right:e+r,bottom:o+n,left:e}),a}(e);np(this,{target:t,contentRect:n})},pp=function(){function t(t,e,n){if(this.activeObservations_=[],this.observations_=new Xf,"function"!=typeof t)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=e,this.callbackCtx_=n}return t.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof rp(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)||(e.set(t,new hp(t)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof rp(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)&&(e.delete(t),e.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(e){e.isActive()&&t.activeObservations_.push(e)})},t.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,e=this.activeObservations_.map(function(t){return new fp(t.target,t.broadcastRect())});this.callback_.call(t,e,t),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t}(),mp="undefined"!=typeof WeakMap?new WeakMap:new Xf,gp=function t(e){if(!(this instanceof t))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=ep.getInstance(),r=new pp(e,n,this);mp.set(this,r)};["observe","unobserve","disconnect"].forEach(function(t){gp.prototype[t]=function(){var e;return(e=mp.get(this))[t].apply(e,arguments)}});var bp=void 0!==Zf.ResizeObserver?Zf.ResizeObserver:gp,vp=new Map;function yp(t){t.forEach(function(t){var e,n=t.target;null===(e=vp.get(n))||void 0===e||e.forEach(function(t){return t(n)})})}var xp=new bp(yp);function wp(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ep(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Yh(r.key),r)}}function Sp(t,e,n){return e&&Ep(t.prototype,e),n&&Ep(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function kp(t,e){return kp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},kp(t,e)}function _p(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&kp(t,e)}function Cp(t){return Cp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Cp(t)}function Op(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(Op=function(){return!!t})()}function Mp(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Pp(t){var e=Op();return function(){var n,r=Cp(t);if(e){var o=Cp(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"==Uh(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Mp(t)}(this,n)}}process.env.NODE_ENV,process.env.NODE_ENV;var Ap=function(){_p(e,tt.Component);var t=Pp(e);function e(){return wp(this,e),t.apply(this,arguments)}return Sp(e,[{key:"render",value:function(){return this.props.children}}]),e}();function Np(t,e){var n=t.children,r=t.disabled,o=tt.useRef(null),i=tt.useRef(null),a=tt.useContext(qf),s="function"==typeof n,l=s?n(o):n,c=tt.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),u=!s&&tt.isValidElement(l)&&Rf(l),d=u?Lf(l):null,h=Tf(d,o),f=function(){var t;return Gf(o.current)||(o.current&&"object"===Uh(o.current)?Gf(null===(t=o.current)||void 0===t?void 0:t.nativeElement):null)||Gf(i.current)};tt.useImperativeHandle(e,function(){return f()});var p=tt.useRef(t);p.current=t;var m=tt.useCallback(function(t){var e=p.current,n=e.onResize,r=e.data,o=t.getBoundingClientRect(),i=o.width,s=o.height,l=t.offsetWidth,u=t.offsetHeight,d=Math.floor(i),h=Math.floor(s);if(c.current.width!==d||c.current.height!==h||c.current.offsetWidth!==l||c.current.offsetHeight!==u){var f={width:d,height:h,offsetWidth:l,offsetHeight:u};c.current=f;var m=l===Math.round(i)?i:l,g=u===Math.round(s)?s:u,b=Xh(Xh({},f),{},{offsetWidth:m,offsetHeight:g});null==a||a(b,t,r),n&&Promise.resolve().then(function(){n(b,t)})}},[]);return tt.useEffect(function(){var t=f();return t&&!r&&function(t,e){vp.has(t)||(vp.set(t,new Set),xp.observe(t)),vp.get(t).add(e)}(t,m),function(){return function(t,e){vp.has(t)&&(vp.get(t).delete(e),vp.get(t).size||(xp.unobserve(t),vp.delete(t)))}(t,m)}},[o.current,r]),tt.createElement(Ap,{ref:i},u?tt.cloneElement(l,{ref:h}):l)}var Dp=tt.forwardRef(Np);"production"!==process.env.NODE_ENV&&(Dp.displayName="SingleObserver");function Ip(t,e){var n=t.children,r="function"==typeof n?[n]:Uf(n);return"production"!==process.env.NODE_ENV&&(r.length>1?hf(!1,"Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead."):0===r.length&&hf(!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 tt.createElement(Dp,Bh({},t,{key:o,ref:0===r?e:void 0}),n)})}var Tp=tt.forwardRef(Ip);"production"!==process.env.NODE_ENV&&(Tp.displayName="ResizeObserver"),Tp.Collection=function(t){var e=t.children,n=t.onBatchResize,r=tt.useRef(0),o=tt.useRef([]),i=tt.useContext(qf),a=tt.useCallback(function(t,e,a){r.current+=1;var s=r.current;o.current.push({size:t,element:e,data:a}),Promise.resolve().then(function(){s===r.current&&(null==n||n(o.current),o.current=[])}),null==i||i(t,e,a)},[n,i]);return tt.createElement(qf.Provider,{value:a},e)};var Rp=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Fp=void 0;function Lp(t,e){var n=t.prefixCls,r=t.invalidate,o=t.item,i=t.renderItem,a=t.responsive,s=t.responsiveDisabled,l=t.registerSize,c=t.itemKey,u=t.className,d=t.style,h=t.children,f=t.display,p=t.order,m=t.component,g=void 0===m?"div":m,b=Jh(t,Rp),v=a&&!f;function y(t){l(c,t)}tt.useEffect(function(){return function(){y(null)}},[]);var x,w=i&&o!==Fp?i(o,{index:p}):h;r||(x={opacity:v?0:1,height:v?0:Fp,overflowY:v?"hidden":Fp,order:a?p:Fp,pointerEvents:v?"none":Fp,position:v?"absolute":Fp});var E={};v&&(E["aria-hidden"]=!0);var S=tt.createElement(g,Bh({className:zh(!r&&n,u),style:Xh(Xh({},x),d)},E,b,{ref:e}),w);return a&&(S=tt.createElement(Tp,{onResize:function(t){y(t.offsetWidth)},disabled:s},S)),S}var jp=tt.forwardRef(Lp);jp.displayName="Item";var zp=function(t){return+setTimeout(t,16)},Bp=function(t){return clearTimeout(t)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(zp=function(t){return window.requestAnimationFrame(t)},Bp=function(t){return window.cancelAnimationFrame(t)});var Vp=0,$p=new Map;function Hp(t){$p.delete(t)}var Wp=function(t){var e=Vp+=1;return function n(r){if(0===r)Hp(e),t();else{var o=zp(function(){n(r-1)});$p.set(e,o)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),e};function Up(){var t=tt.useRef(null);return function(e){t.current||(t.current=[],function(t){if("undefined"==typeof MessageChannel)Wp(t);else{var e=new MessageChannel;e.port1.onmessage=function(){return t()},e.port2.postMessage(void 0)}}(function(){Zt(function(){t.current.forEach(function(t){t()}),t.current=null})})),t.current.push(e)}}function Yp(t,e){var n=Qh(tt.useState(e),2),r=n[0],o=n[1];return[r,tf(function(e){t(function(){o(e)})})]}Wp.cancel=function(t){var e=$p.get(t);return Hp(t),Bp(e)},"production"!==process.env.NODE_ENV&&(Wp.ids=function(){return $p});var Gp=et.createContext(null),qp=["component"],Xp=["className"],Kp=["className"],Zp=function(t,e){var n=tt.useContext(Gp);if(!n){var r=t.component,o=void 0===r?"div":r,i=Jh(t,qp);return tt.createElement(o,Bh({},i,{ref:e}))}var a=n.className,s=Jh(n,Xp),l=t.className,c=Jh(t,Kp);return tt.createElement(Gp.Provider,{value:null},tt.createElement(jp,Bh({ref:e,className:zh(a,l)},s,c)))},Qp=tt.forwardRef(Zp);Qp.displayName="RawItem";var Jp=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","prefix","suffix","component","itemComponent","onVisibleChange"],tm="responsive",em="invalidate";function nm(t){return"+ ".concat(t.length," ...")}function rm(t,e){var n=t.prefixCls,r=void 0===n?"rc-overflow":n,o=t.data,i=void 0===o?[]:o,a=t.renderItem,s=t.renderRawItem,l=t.itemKey,c=t.itemWidth,u=void 0===c?10:c,d=t.ssr,h=t.style,f=t.className,p=t.maxCount,m=t.renderRest,g=t.renderRawRest,b=t.prefix,v=t.suffix,y=t.component,x=void 0===y?"div":y,w=t.itemComponent,E=t.onVisibleChange,S=Jh(t,Jp),k="full"===d,_=Up(),C=Qh(Yp(_,null),2),O=C[0],M=C[1],P=O||0,A=Qh(Yp(_,new Map),2),N=A[0],D=A[1],I=Qh(Yp(_,0),2),T=I[0],R=I[1],F=Qh(Yp(_,0),2),L=F[0],j=F[1],z=Qh(Yp(_,0),2),B=z[0],V=z[1],$=Qh(Yp(_,0),2),H=$[0],W=$[1],U=Qh(lt(null),2),Y=U[0],G=U[1],q=Qh(lt(null),2),X=q[0],K=q[1],Z=tt.useMemo(function(){return null===X&&k?Number.MAX_SAFE_INTEGER:X||0},[X,O]),Q=Qh(lt(!1),2),J=Q[0],et=Q[1],nt="".concat(r,"-item"),rt=Math.max(T,L),ot=p===tm,it=i.length&&ot,at=p===em,st=it||"number"==typeof p&&i.length>p,ct=ft(function(){var t=i;return it?t=null===O&&k?i:i.slice(0,Math.min(i.length,P/u)):"number"==typeof p&&(t=i.slice(0,p)),t},[i,u,O,p,it]),ut=ft(function(){return it?i.slice(Z+1):i.slice(ct.length)},[i,ct,it,Z]),dt=pt(function(t,e){var n;return"function"==typeof l?l(t):null!==(n=l&&(null==t?void 0:t[l]))&&void 0!==n?n:e},[l]),ht=pt(a||function(t){return t},[a]);function mt(t,e,n){(X!==t||void 0!==e&&e!==Y)&&(K(t),n||(et(t<i.length-1),null==E||E(t)),void 0!==e&&G(e))}function gt(t,e){D(function(n){var r=new Map(n);return null===e?r.delete(t):r.set(t,e),r})}function bt(t){return N.get(dt(ct[t],t))}rf(function(){if(P&&"number"==typeof rt&&ct){var t=B+H,e=ct.length,n=e-1;if(!e)return void mt(0,null);for(var r=0;r<e;r+=1){var o=bt(r);if(k&&(o=o||0),void 0===o){mt(r-1,void 0,!0);break}if(t+=o,0===n&&t<=P||r===n-1&&t+bt(n)<=P){mt(n,null);break}if(t+rt>P){mt(r-1,t-o-H+L);break}}v&&bt(0)+H>P&&G(null)}},[P,N,L,B,H,dt,ct]);var vt=J&&!!ut.length,yt={};null!==Y&&it&&(yt={position:"absolute",left:Y,top:0});var xt={prefixCls:nt,responsive:it,component:w,invalidate:at},wt=s?function(t,e){var n=dt(t,e);return tt.createElement(Gp.Provider,{key:n,value:Xh(Xh({},xt),{},{order:e,item:t,itemKey:n,registerSize:gt,display:e<=Z})},s(t,e))}:function(t,e){var n=dt(t,e);return tt.createElement(jp,Bh({},xt,{order:e,key:n,item:t,renderItem:ht,itemKey:n,registerSize:gt,display:e<=Z}))},Et={order:vt?Z:Number.MAX_SAFE_INTEGER,className:"".concat(nt,"-rest"),registerSize:function(t,e){j(e),R(L)},display:vt},St=m||nm,kt=g?tt.createElement(Gp.Provider,{value:Xh(Xh({},xt),Et)},g(ut)):tt.createElement(jp,Bh({},xt,Et),"function"==typeof St?St(ut):St),_t=tt.createElement(x,Bh({className:zh(!at&&r,f),style:h,ref:e},S),b&&tt.createElement(jp,Bh({},xt,{responsive:ot,responsiveDisabled:!it,order:-1,className:"".concat(nt,"-prefix"),registerSize:function(t,e){V(e)},display:!0}),b),ct.map(wt),st?kt:null,v&&tt.createElement(jp,Bh({},xt,{responsive:ot,responsiveDisabled:!it,order:Z,className:"".concat(nt,"-suffix"),registerSize:function(t,e){W(e)},display:!0,style:yt}),v));return ot?tt.createElement(Tp,{onResize:function(t,e){M(e.clientWidth)},disabled:!it},_t):_t}var om=tt.forwardRef(rm);om.displayName="Overflow",om.Item=Qp,om.RESPONSIVE=tm,om.INVALIDATE=em;var im=function(t,e){var n,r=t.prefixCls,o=t.id,i=t.inputElement,a=t.disabled,s=t.tabIndex,l=t.autoFocus,c=t.autoComplete,u=t.editable,d=t.activeDescendantId,h=t.value,f=t.maxLength,p=t.onKeyDown,m=t.onMouseDown,g=t.onChange,b=t.onPaste,v=t.onCompositionStart,y=t.onCompositionEnd,x=t.open,w=t.attrs,E=i||tt.createElement("input",null),S=E,k=S.ref,_=S.props,C=_.onKeyDown,O=_.onChange,M=_.onMouseDown,P=_.onCompositionStart,A=_.onCompositionEnd,N=_.style;return hf(!("maxLength"in E.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),E=tt.cloneElement(E,Xh(Xh(Xh({type:"search"},_),{},{id:o,ref:If(e,k),disabled:a,tabIndex:s,autoComplete:c||"off",autoFocus:l,className:zh("".concat(r,"-selection-search-input"),null===(n=E)||void 0===n||null===(n=n.props)||void 0===n?void 0:n.className),role:"combobox","aria-expanded":x||!1,"aria-haspopup":"listbox","aria-owns":"".concat(o,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(o,"_list"),"aria-activedescendant":x?d:void 0},w),{},{value:u?h:"",maxLength:f,readOnly:!u,unselectable:u?null:"on",style:Xh(Xh({},N),{},{opacity:u?null:0}),onKeyDown:function(t){p(t),C&&C(t)},onMouseDown:function(t){m(t),M&&M(t)},onChange:function(t){g(t),O&&O(t)},onCompositionStart:function(t){v(t),P&&P(t)},onCompositionEnd:function(t){y(t),A&&A(t)},onPaste:b}))},sm=tt.forwardRef(im);function lm(t){return Array.isArray(t)?t:void 0!==t?[t]:[]}"production"!==process.env.NODE_ENV&&(sm.displayName="Input");var cm="undefined"!=typeof window&&window.document&&window.document.documentElement,um="test"!==process.env.NODE_ENV&&cm;function dm(t){return["string","number"].includes(Uh(t))}function hm(t){var e=void 0;return t&&(dm(t.title)?e=t.title.toString():dm(t.label)&&(e=t.label.toString())),e}function fm(t){var e;return null!==(e=t.key)&&void 0!==e?e:t.value}var pm=function(t){t.preventDefault(),t.stopPropagation()},mm=function(t){var e,n,r=t.id,o=t.prefixCls,i=t.values,a=t.open,s=t.searchValue,l=t.autoClearSearchValue,c=t.inputRef,u=t.placeholder,d=t.disabled,h=t.mode,f=t.showSearch,p=t.autoFocus,m=t.autoComplete,g=t.activeDescendantId,b=t.tabIndex,v=t.removeIcon,y=t.maxTagCount,x=t.maxTagTextLength,w=t.maxTagPlaceholder,E=void 0===w?function(t){return"+ ".concat(t.length," ...")}:w,S=t.tagRender,k=t.onToggleOpen,_=t.onRemove,C=t.onInputChange,O=t.onInputPaste,M=t.onInputKeyDown,P=t.onInputMouseDown,A=t.onInputCompositionStart,N=t.onInputCompositionEnd,D=tt.useRef(null),I=Qh(lt(0),2),T=I[0],R=I[1],F=Qh(lt(!1),2),L=F[0],j=F[1],z="".concat(o,"-selection"),B=a||"multiple"===h&&!1===l||"tags"===h?s:"",V="tags"===h||"multiple"===h&&!1===l||f&&(a||L);e=function(){R(D.current.scrollWidth)},n=[B],um?tt.useLayoutEffect(e,n):tt.useEffect(e,n);var $=function(t,e,n,r,o){return tt.createElement("span",{title:hm(t),className:zh("".concat(z,"-item"),Gh({},"".concat(z,"-item-disabled"),n))},tt.createElement("span",{className:"".concat(z,"-item-content")},e),r&&tt.createElement(jf,{className:"".concat(z,"-item-remove"),onMouseDown:pm,onClick:o,customizeIcon:v},"×"))},H=function(t,e,n,r,o,i){return tt.createElement("span",{onMouseDown:function(t){pm(t),k(!a)}},S({label:e,value:t,disabled:n,closable:r,onClose:o,isMaxTag:!!i}))},W=tt.createElement("div",{className:"".concat(z,"-search"),style:{width:T},onFocus:function(){j(!0)},onBlur:function(){j(!1)}},tt.createElement(sm,{ref:c,open:a,prefixCls:o,id:r,inputElement:null,disabled:d,autoFocus:p,autoComplete:m,editable:V,activeDescendantId:g,value:B,onKeyDown:M,onMouseDown:P,onChange:C,onPaste:O,onCompositionStart:A,onCompositionEnd:N,tabIndex:b,attrs:Wf(t,!0)}),tt.createElement("span",{ref:D,className:"".concat(z,"-search-mirror"),"aria-hidden":!0},B," ")),U=tt.createElement(om,{prefixCls:"".concat(z,"-overflow"),data:i,renderItem:function(t){var e=t.disabled,n=t.label,r=t.value,o=!d&&!e,i=n;if("number"==typeof x&&("string"==typeof n||"number"==typeof n)){var a=String(i);a.length>x&&(i="".concat(a.slice(0,x),"..."))}var s=function(e){e&&e.stopPropagation(),_(t)};return"function"==typeof S?H(r,i,e,o,s):$(t,i,e,o,s)},renderRest:function(t){var e="function"==typeof E?E(t):E;return"function"==typeof S?H(void 0,e,!1,!1,void 0,!0):$({title:e},e,!1)},suffix:W,itemKey:fm,maxCount:y});return tt.createElement(tt.Fragment,null,U,!i.length&&!B&&tt.createElement("span",{className:"".concat(z,"-placeholder")},u))},gm=function(t){var e=t.inputElement,n=t.prefixCls,r=t.id,o=t.inputRef,i=t.disabled,a=t.autoFocus,s=t.autoComplete,l=t.activeDescendantId,c=t.mode,u=t.open,d=t.values,h=t.placeholder,f=t.tabIndex,p=t.showSearch,m=t.searchValue,g=t.activeValue,b=t.maxLength,v=t.onInputKeyDown,y=t.onInputMouseDown,x=t.onInputChange,w=t.onInputPaste,E=t.onInputCompositionStart,S=t.onInputCompositionEnd,k=t.title,_=Qh(tt.useState(!1),2),C=_[0],O=_[1],M="combobox"===c,P=M||p,A=d[0],N=m||"";M&&g&&!C&&(N=g),tt.useEffect(function(){M&&O(!1)},[M,g]);var D=!("combobox"!==c&&!u&&!p)&&!!N,I=void 0===k?hm(A):k,T=tt.useMemo(function(){return A?null:tt.createElement("span",{className:"".concat(n,"-selection-placeholder"),style:D?{visibility:"hidden"}:void 0},h)},[A,D,h,n]);return tt.createElement(tt.Fragment,null,tt.createElement("span",{className:"".concat(n,"-selection-search")},tt.createElement(sm,{ref:o,prefixCls:n,id:r,open:u,inputElement:e,disabled:i,autoFocus:a,autoComplete:s,editable:P,activeDescendantId:l,value:N,onKeyDown:v,onMouseDown:y,onChange:function(t){O(!0),x(t)},onPaste:w,onCompositionStart:E,onCompositionEnd:S,tabIndex:f,attrs:Wf(t,!0),maxLength:M?b:void 0})),!M&&A?tt.createElement("span",{className:"".concat(n,"-selection-item"),title:I,style:D?{visibility:"hidden"}:void 0},A.label):null,T)},bm=function(t,e){var n=ct(null),r=ct(!1),o=t.prefixCls,i=t.open,a=t.mode,s=t.showSearch,l=t.tokenWithEnter,c=t.disabled,u=t.autoClearSearchValue,d=t.onSearch,h=t.onSearchSubmit,f=t.onToggleOpen,p=t.onInputKeyDown,m=t.domRef;tt.useImperativeHandle(e,function(){return{focus:function(t){n.current.focus(t)},blur:function(){n.current.blur()}}});var g=Qh(Bf(0),2),b=g[0],v=g[1],y=ct(null),x=function(t){!1!==d(t,!0,r.current)&&f(!0)},w={inputRef:n,onInputKeyDown:function(t){var e,n=t.which;n!==Vf.UP&&n!==Vf.DOWN||t.preventDefault(),p&&p(t),n!==Vf.ENTER||"tags"!==a||r.current||i||null==h||h(t.target.value),e=n,[Vf.ESC,Vf.SHIFT,Vf.BACKSPACE,Vf.TAB,Vf.WIN_KEY,Vf.ALT,Vf.META,Vf.WIN_KEY_RIGHT,Vf.CTRL,Vf.SEMICOLON,Vf.EQUALS,Vf.CAPS_LOCK,Vf.CONTEXT_MENU,Vf.F1,Vf.F2,Vf.F3,Vf.F4,Vf.F5,Vf.F6,Vf.F7,Vf.F8,Vf.F9,Vf.F10,Vf.F11,Vf.F12].includes(e)||f(!0)},onInputMouseDown:function(){v(!0)},onInputChange:function(t){var e=t.target.value;if(l&&y.current&&/[\r\n]/.test(y.current)){var n=y.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");e=e.replace(n,y.current)}y.current=null,x(e)},onInputPaste:function(t){var e=t.clipboardData,n=null==e?void 0:e.getData("text");y.current=n||""},onInputCompositionStart:function(){r.current=!0},onInputCompositionEnd:function(t){r.current=!1,"combobox"!==a&&x(t.target.value)}},E="multiple"===a||"tags"===a?tt.createElement(mm,Bh({},t,w)):tt.createElement(gm,Bh({},t,w));return tt.createElement("div",{ref:m,className:"".concat(o,"-selector"),onClick:function(t){t.target!==n.current&&(void 0!==document.body.style.msTouchAction?setTimeout(function(){n.current.focus()}):n.current.focus())},onMouseDown:function(t){var e=b();t.target===n.current||e||"combobox"===a&&c||t.preventDefault(),("combobox"===a||s&&e)&&i||(i&&!1!==u&&d("",!0,!1),f())}},E)},vm=tt.forwardRef(bm);function ym(t){return ym="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ym(t)}function xm(t){var e=function(t,e){if("object"!=ym(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=ym(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==ym(e)?e:e+""}function wm(t,e,n){return(e=xm(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Em(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function Sm(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Em(Object(n),!0).forEach(function(e){wm(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Em(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function km(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function _m(t,e){if(t){if("string"==typeof t)return km(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?km(t,e):void 0}}function Cm(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(t,e)||_m(t,e)||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 Om(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function Mm(t,e){if(t){if("string"==typeof t)return Om(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Om(t,e):void 0}}function Pm(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(t,e)||Mm(t,e)||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&&(vm.displayName="Selector");var Am=tt.createContext(null);function Nm(t){return function(t){if(Array.isArray(t))return Om(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Mm(t)||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 Dm=[];var Im="data-rc-order",Tm="data-rc-priority",Rm=new Map;function Fm(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).mark;return t?t.startsWith("data-")?t:"data-".concat(t):"rc-util-key"}function Lm(t){return t.attachTo?t.attachTo:document.querySelector("head")||document.body}function jm(t){return Array.from((Rm.get(t)||t).children).filter(function(t){return"STYLE"===t.tagName})}function zm(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!ef())return null;var n=e.csp,r=e.prepend,o=e.priority,i=void 0===o?0:o,a=function(t){return"queue"===t?"prependQueue":t?"prepend":"append"}(r),s="prependQueue"===a,l=document.createElement("style");l.setAttribute(Im,a),s&&i&&l.setAttribute(Tm,"".concat(i)),null!=n&&n.nonce&&(l.nonce=null==n?void 0:n.nonce),l.innerHTML=t;var c=Lm(e),u=c.firstChild;if(r){if(s){var d=(e.styles||jm(c)).filter(function(t){if(!["prepend","prependQueue"].includes(t.getAttribute(Im)))return!1;var e=Number(t.getAttribute(Tm)||0);return i>=e});if(d.length)return c.insertBefore(l,d[d.length-1].nextSibling),l}c.insertBefore(l,u)}else c.appendChild(l);return l}function Bm(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Lm(e);return(e.styles||jm(n)).find(function(n){return n.getAttribute(Fm(e))===t})}function Vm(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Bm(t,e);n&&Lm(e).removeChild(n)}function $m(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Lm(n),o=jm(r),i=Xh(Xh({},n),{},{styles:o});!function(t,e){var n=Rm.get(t);if(!n||!function(t,e){if(!t)return!1;if(t.contains)return t.contains(e);for(var n=e;n;){if(n===t)return!0;n=n.parentNode}return!1}(document,n)){var r=zm("",e),o=r.parentNode;Rm.set(t,o),t.removeChild(r)}}(r,i);var a=Bm(e,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!==t&&(a.innerHTML=t),a}var u=zm(t,i);return u.setAttribute(Fm(i),e),u}function Hm(t){return"undefined"!=typeof document&&t&&t instanceof Element?function(t){var e="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=e;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",t){var a=getComputedStyle(t);i.scrollbarColor=a.scrollbarColor,i.scrollbarWidth=a.scrollbarWidth;var s=getComputedStyle(t,"::-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,";"):"";$m("\n#".concat(e,"::-webkit-scrollbar {\n").concat(u,"\n").concat(d,"\n}"),e)}catch(t){console.error(t),r=l,o=c}}document.body.appendChild(n);var h=t&&r&&!isNaN(r)?r:n.offsetWidth-n.clientWidth,f=t&&o&&!isNaN(o)?o:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),Vm(e),{width:h,height:f}}(t):{width:0,height:0}}var Wm="rc-util-locker-".concat(Date.now()),Um=0;function Ym(t){var e=!!t,n=Pm(tt.useState(function(){return Um+=1,"".concat(Wm,"_").concat(Um)}),1)[0];rf(function(){if(e){var t=Hm(document.body).width,r=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;$m("\nhtml body {\n overflow-y: hidden;\n ".concat(r?"width: calc(100% - ".concat(t,"px);"):"","\n}"),n)}else Vm(n);return function(){Vm(n)}},[e,n])}var Gm=!1;var qm=function(t){return!1!==t&&(ef()&&t?"string"==typeof t?document.querySelector(t):"function"==typeof t?t():t:null)},Xm=tt.forwardRef(function(t,e){var n=t.open,r=t.autoLock,o=t.getContainer,i=t.debug,a=t.autoDestroy,s=void 0===a||a,l=t.children,c=Pm(tt.useState(n),2),u=c[0],d=c[1],h=u||n;"production"!==process.env.NODE_ENV&&gf(ef()||!n,"Portal only work in client side. Please call 'useEffect' to show Portal instead default render in SSR."),tt.useEffect(function(){(s||n)&&d(n)},[n,s]);var f=Pm(tt.useState(function(){return qm(o)}),2),p=f[0],m=f[1];tt.useEffect(function(){var t=qm(o);m(null!=t?t:null)});var g=function(t,e){var n=Pm(tt.useState(function(){if(!ef())return null;var t=document.createElement("div");return"production"!==process.env.NODE_ENV&&e&&t.setAttribute("data-debug",e),t}),1)[0],r=tt.useRef(!1),o=tt.useContext(Am),i=Pm(tt.useState(Dm),2),a=i[0],s=i[1],l=o||(r.current?void 0:function(t){s(function(e){return[t].concat(Nm(e))})});function c(){n.parentElement||document.body.appendChild(n),r.current=!0}function u(){var t;null===(t=n.parentElement)||void 0===t||t.removeChild(n),r.current=!1}return rf(function(){return t?o?o(c):c():u(),u},[t]),rf(function(){a.length&&(a.forEach(function(t){return t()}),s(Dm))},[a]),[n,l]}(h&&!p,i),b=Pm(g,2),v=b[0],y=b[1],x=null!=p?p:v;Ym(r&&n&&ef()&&(x===v||x===document.body));var w=null;l&&Rf(l)&&e&&(w=l.ref);var E=Tf(w,e);if(!h||!ef()||void 0===p)return null;var S,k=!1===x||("boolean"==typeof S&&(Gm=S),Gm),_=l;return e&&(_=tt.cloneElement(l,{ref:E})),tt.createElement(Am.Provider,{value:y},k?_:Qt(_,x))});function Km(t){var e;return null==t||null===(e=t.getRootNode)||void 0===e?void 0:e.call(t)}function Zm(t){return function(t){return Km(t)instanceof ShadowRoot}(t)?Km(t):null}"production"!==process.env.NODE_ENV&&(Xm.displayName="Portal");var Qm=0,Jm=Xh({},tt).useId,tg=Jm?function(t){var e=Jm();return t||("test"===process.env.NODE_ENV?"test-id":e)}:function(t){var e=Qh(tt.useState("ssr-id"),2),n=e[0],r=e[1];return tt.useEffect(function(){var t=Qm;Qm+=1,r("rc_unique_".concat(t))},[]),t||("test"===process.env.NODE_ENV?"test-id":n)};function eg(){return eg=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},eg.apply(null,arguments)}var ng=["children"],rg=tt.createContext({});function og(t){var e=t.children,n=Jh(t,ng);return tt.createElement(rg.Provider,{value:n},e)}var ig=function(){_p(e,tt.Component);var t=Pp(e);function e(){return wp(this,e),t.apply(this,arguments)}return Sp(e,[{key:"render",value:function(){return this.props.children}}]),e}();function sg(t,e){for(var n=t,r=0;r<e.length;r+=1){if(null==n)return;n=n[e[r]]}return n}function lg(t){return Kh(t)||$h(t)||Hh(t)||Zh()}function cg(t,e,n,r){if(!e.length)return n;var o,i=lg(e),a=i[0],s=i.slice(1);return o=t||"number"!=typeof a?Array.isArray(t)?Wh(t):Xh({},t):[],r&&void 0===n&&1===s.length?delete o[a][s[0]]:o[a]=cg(o[a],s,n,r),o}function ug(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return e.length&&r&&void 0===n&&!sg(t,e.slice(0,-1))?t:cg(t,e,n,r)}function dg(t){return Array.isArray(t)?[]:{}}var hg="undefined"==typeof Reflect?Object.keys:Reflect.ownKeys;function fg(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=dg(e[0]);return e.forEach(function(t){!function e(n,o){var i,a=new Set(o),s=sg(t,n),l=Array.isArray(s);if(l||"object"===Uh(i=s)&&null!==i&&Object.getPrototypeOf(i)===Object.prototype){if(!a.has(s)){a.add(s);var c=sg(r,n);l?r=ug(r,n,[]):c&&"object"===Uh(c)||(r=ug(r,n,dg(s))),hg(s).forEach(function(t){e([].concat(Wh(n),[t]),a)})}}else r=ug(r,n,s)}([])}),r}var pg="none",mg="appear",gg="enter",bg="leave",vg="none",yg="prepare",xg="start",wg="active",Eg="end",Sg="prepared";function kg(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit".concat(t)]="webkit".concat(e),n["Moz".concat(t)]="moz".concat(e),n["ms".concat(t)]="MS".concat(e),n["O".concat(t)]="o".concat(e.toLowerCase()),n}var _g=function(t,e){var n={animationend:kg("Animation","AnimationEnd"),transitionend:kg("Transition","TransitionEnd")};return t&&("AnimationEvent"in e||delete n.animationend.animation,"TransitionEvent"in e||delete n.transitionend.transition),n}(ef(),"undefined"!=typeof window?window:{}),Cg={};if(ef()){var Og=document.createElement("div");Cg=Og.style}var Mg={};function Pg(t){if(Mg[t])return Mg[t];var e=_g[t];if(e)for(var n=Object.keys(e),r=n.length,o=0;o<r;o+=1){var i=n[o];if(Object.prototype.hasOwnProperty.call(e,i)&&i in Cg)return Mg[t]=e[i],Mg[t]}return""}var Ag=Pg("animationend"),Ng=Pg("transitionend"),Dg=!(!Ag||!Ng),Ig=Ag||"animationend",Tg=Ng||"transitionend";function Rg(t,e){if(!t)return null;if("object"===Uh(t)){var n=e.replace(/-\w/g,function(t){return t[1].toUpperCase()});return t[n]}return"".concat(t,"-").concat(e)}var Fg=ef()?mt:ut,Lg=[yg,xg,wg,Eg],jg=[yg,Sg],zg=!1;function Bg(t){return t===wg||t===Eg}var Vg=function(t,e,n){var r=Qh(sf(vg),2),o=r[0],i=r[1],a=function(){var t=tt.useRef(null);function e(){Wp.cancel(t.current)}return tt.useEffect(function(){return function(){e()}},[]),[function n(r){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;e();var i=Wp(function(){o<=1?r({isCanceled:function(){return i!==t.current}}):n(r,o-1)});t.current=i},e]}(),s=Qh(a,2),l=s[0],c=s[1];var u=e?jg:Lg;return Fg(function(){if(o!==vg&&o!==Eg){var t=u.indexOf(o),e=u[t+1],r=n(o);r===zg?i(e,!0):e&&l(function(t){function n(){t.isCanceled()||i(e,!0)}!0===r?n():Promise.resolve(r).then(n)})}},[t,o]),tt.useEffect(function(){return function(){c()}},[]),[function(){i(yg,!0)},o]};function $g(t,e,n,r){var o,i,a,s=r.motionEnter,l=void 0===s||s,c=r.motionAppear,u=void 0===c||c,d=r.motionLeave,h=void 0===d||d,f=r.motionDeadline,p=r.motionLeaveImmediately,m=r.onAppearPrepare,g=r.onEnterPrepare,b=r.onLeavePrepare,v=r.onAppearStart,y=r.onEnterStart,x=r.onLeaveStart,w=r.onAppearActive,E=r.onEnterActive,S=r.onLeaveActive,k=r.onAppearEnd,_=r.onEnterEnd,C=r.onLeaveEnd,O=r.onVisibleChanged,M=Qh(sf(),2),P=M[0],A=M[1],N=(o=pg,i=Qh(tt.useReducer(function(t){return t+1},0),2)[1],a=tt.useRef(o),[tf(function(){return a.current}),tf(function(t){a.current="function"==typeof t?t(a.current):t,i()})]),D=Qh(N,2),I=D[0],T=D[1],R=Qh(sf(null),2),F=R[0],L=R[1],j=I(),z=ct(!1),B=ct(null);function V(){return n()}var $=ct(!1);function H(){T(pg),L(null,!0)}var W=tf(function(t){var e=I();if(e!==pg){var n=V();if(!t||t.deadline||t.target===n){var r,o=$.current;e===mg&&o?r=null==k?void 0:k(n,t):e===gg&&o?r=null==_?void 0:_(n,t):e===bg&&o&&(r=null==C?void 0:C(n,t)),o&&!1!==r&&H()}}}),U=function(t){var e=ct();function n(e){e&&(e.removeEventListener(Tg,t),e.removeEventListener(Ig,t))}return tt.useEffect(function(){return function(){n(e.current)}},[]),[function(r){e.current&&e.current!==r&&n(e.current),r&&r!==e.current&&(r.addEventListener(Tg,t),r.addEventListener(Ig,t),e.current=r)},n]}(W),Y=Qh(U,1)[0],G=function(t){switch(t){case mg:return Gh(Gh(Gh({},yg,m),xg,v),wg,w);case gg:return Gh(Gh(Gh({},yg,g),xg,y),wg,E);case bg:return Gh(Gh(Gh({},yg,b),xg,x),wg,S);default:return{}}},q=tt.useMemo(function(){return G(j)},[j]),X=Qh(Vg(j,!t,function(t){if(t===yg){var e=q[yg];return e?e(V()):zg}var n;Z in q&&L((null===(n=q[Z])||void 0===n?void 0:n.call(q,V(),null))||null);return Z===wg&&j!==pg&&(Y(V()),f>0&&(clearTimeout(B.current),B.current=setTimeout(function(){W({deadline:!0})},f))),Z===Sg&&H(),true}),2),K=X[0],Z=X[1],Q=Bg(Z);$.current=Q;var J=ct(null);Fg(function(){if(!z.current||J.current!==e){A(e);var n,r=z.current;z.current=!0,!r&&e&&u&&(n=mg),r&&e&&l&&(n=gg),(r&&!e&&h||!r&&p&&!e&&h)&&(n=bg);var o=G(n);n&&(t||o[yg])?(T(n),K()):T(pg),J.current=e}},[e]),ut(function(){(j===mg&&!u||j===gg&&!l||j===bg&&!h)&&T(pg)},[u,l,h]),ut(function(){return function(){z.current=!1,clearTimeout(B.current)}},[]);var et=tt.useRef(!1);ut(function(){P&&(et.current=!0),void 0!==P&&j===pg&&((et.current||P)&&(null==O||O(P)),et.current=!0)},[P,j]);var nt=F;return q[yg]&&Z===xg&&(nt=Xh({transition:"none"},nt)),[j,Z,nt,null!=P?P:e]}var Hg=function(t){var e=t;"object"===Uh(t)&&(e=t.transitionSupport);var n=tt.forwardRef(function(t,n){var r=t.visible,o=void 0===r||r,i=t.removeOnLeave,a=void 0===i||i,s=t.forceRender,l=t.children,c=t.motionName,u=t.leavedClassName,d=t.eventProps,h=function(t,n){return!(!t.motionName||!e||!1===n)}(t,tt.useContext(rg).motion),f=ct(),p=ct();var m=Qh($g(h,o,function(){try{return f.current instanceof HTMLElement?f.current:Gf(p.current)}catch(t){return null}},t),4),g=m[0],b=m[1],v=m[2],y=m[3],x=tt.useRef(y);y&&(x.current=!0);var w,E=tt.useCallback(function(t){f.current=t,Df(n,t)},[n]),S=Xh(Xh({},d),{},{visible:o});if(l)if(g===pg)w=y?l(Xh({},S),E):!a&&x.current&&u?l(Xh(Xh({},S),{},{className:u}),E):s||!a&&!u?l(Xh(Xh({},S),{},{style:{display:"none"}}),E):null;else{var k;b===yg?k="prepare":Bg(b)?k="active":b===xg&&(k="start");var _=Rg(c,"".concat(g,"-").concat(k));w=l(Xh(Xh({},S),{},{className:zh(Rg(c,g),Gh(Gh({},_,_&&k),c,"string"==typeof c)),style:v}),E)}else w=null;tt.isValidElement(w)&&Rf(w)&&(Lf(w)||(w=tt.cloneElement(w,{ref:E})));return tt.createElement(ig,{ref:p},w)});return n.displayName="CSSMotion",n}(Dg),Wg="add",Ug="keep",Yg="remove",Gg="removed";function qg(t){var e;return Xh(Xh({},e=t&&"object"===Uh(t)&&"key"in t?t:{key:t}),{},{key:String(e.key)})}function Xg(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(qg)}var Kg=["component","children","onVisibleChanged","onAllRemoved"],Zg=["status"],Qg=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Jg(t){var e=t.prefixCls,n=t.align,r=t.arrow,o=t.arrowPos,i=r||{},a=i.className,s=i.content,l=o.x,c=void 0===l?0:l,u=o.y,d=void 0===u?0:u,h=tt.useRef();if(!n||!n.points)return null;var f={position:"absolute"};if(!1!==n.autoArrow){var p=n.points[0],m=n.points[1],g=p[0],b=p[1],v=m[0],y=m[1];g!==v&&["t","b"].includes(g)?"t"===g?f.top=0:f.bottom=0:f.top=d,b!==y&&["l","r"].includes(b)?"l"===b?f.left=0:f.right=0:f.left=c}return tt.createElement("div",{ref:h,className:zh("".concat(e,"-arrow"),a),style:f},s)}function tb(t){var e=t.prefixCls,n=t.open,r=t.zIndex,o=t.mask,i=t.motion;return o?tt.createElement(Hg,eg({},i,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(t){var n=t.className;return tt.createElement("div",{style:{zIndex:r},className:zh("".concat(e,"-mask"),n)})}):null}!function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Hg,n=function(){_p(n,tt.Component);var t=Pp(n);function n(){var e;wp(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return Gh(Mp(e=t.call.apply(t,[this].concat(o))),"state",{keyEntities:[]}),Gh(Mp(e),"removeKey",function(t){e.setState(function(e){return{keyEntities:e.keyEntities.map(function(e){return e.key!==t?e:Xh(Xh({},e),{},{status:Gg})})}},function(){0===e.state.keyEntities.filter(function(t){return t.status!==Gg}).length&&e.props.onAllRemoved&&e.props.onAllRemoved()})}),e}return Sp(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=Jh(r,Kg),l=o||tt.Fragment,c={};return Qg.forEach(function(t){c[t]=s[t],delete s[t]}),delete s.keys,tt.createElement(l,s,n.map(function(n,r){var o=n.status,s=Jh(n,Zg),l=o===Wg||o===Ug;return tt.createElement(e,Bh({},c,{key:s.key,visible:l,eventProps:s,onVisibleChanged:function(e){null==a||a(e,{key:s.key}),e||t.removeKey(s.key)}}),function(t,e){return i(Xh(Xh({},t),{},{index:r}),e)})}))}}],[{key:"getDerivedStateFromProps",value:function(t,e){var n=t.keys,r=e.keyEntities,o=Xg(n),i=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,o=e.length,i=Xg(t),a=Xg(e);i.forEach(function(t){for(var e=!1,i=r;i<o;i+=1){var s=a[i];if(s.key===t.key){r<i&&(n=n.concat(a.slice(r,i).map(function(t){return Xh(Xh({},t),{},{status:Wg})})),r=i),n.push(Xh(Xh({},s),{},{status:Ug})),r+=1,e=!0;break}}e||n.push(Xh(Xh({},t),{},{status:Yg}))}),r<o&&(n=n.concat(a.slice(r).map(function(t){return Xh(Xh({},t),{},{status:Wg})})));var s={};return n.forEach(function(t){var e=t.key;s[e]=(s[e]||0)+1}),Object.keys(s).filter(function(t){return s[t]>1}).forEach(function(t){(n=n.filter(function(e){var n=e.key,r=e.status;return n!==t||r!==Yg})).forEach(function(e){e.key===t&&(e.status=Ug)})}),n}(r,o);return{keyEntities:i.filter(function(t){var e=r.find(function(e){var n=e.key;return t.key===n});return!e||e.status!==Gg||t.status!==Yg})}}}]),n}();Gh(n,"defaultProps",{component:"div"})}(Dg);var eb=tt.memo(function(t){return t.children},function(t,e){return e.cache});"production"!==process.env.NODE_ENV&&(eb.displayName="PopupContent");var nb=tt.forwardRef(function(t,e){var n=t.popup,r=t.className,o=t.prefixCls,i=t.style,a=t.target,s=t.onVisibleChanged,l=t.open,c=t.keepDom,u=t.fresh,d=t.onClick,h=t.mask,f=t.arrow,p=t.arrowPos,m=t.align,g=t.motion,b=t.maskMotion,v=t.forceRender,y=t.getPopupContainer,x=t.autoDestroy,w=t.portal,E=t.zIndex,S=t.onMouseEnter,k=t.onMouseLeave,_=t.onPointerEnter,C=t.onPointerDownCapture,O=t.ready,M=t.offsetX,P=t.offsetY,A=t.offsetR,N=t.offsetB,D=t.onAlign,I=t.onPrepare,T=t.stretch,R=t.targetWidth,F=t.targetHeight,L="function"==typeof n?n():n,j=l||c,z=(null==y?void 0:y.length)>0,B=Cm(tt.useState(!y||!z),2),V=B[0],$=B[1];if(rf(function(){!V&&z&&a&&$(!0)},[V,z,a]),!V)return null;var H="auto",W={left:"-1000vw",top:"-1000vh",right:H,bottom:H};if(O||!l){var U,Y=m.points,G=m.dynamicInset||(null===(U=m._experimental)||void 0===U?void 0:U.dynamicInset),q=G&&"r"===Y[0][1],X=G&&"b"===Y[0][0];q?(W.right=A,W.left=H):(W.left=M,W.right=H),X?(W.bottom=N,W.top=H):(W.top=P,W.bottom=H)}var K={};return T&&(T.includes("height")&&F?K.height=F:T.includes("minHeight")&&F&&(K.minHeight=F),T.includes("width")&&R?K.width=R:T.includes("minWidth")&&R&&(K.minWidth=R)),l||(K.pointerEvents="none"),tt.createElement(w,{open:v||j,getContainer:y&&function(){return y(a)},autoDestroy:x},tt.createElement(tb,{prefixCls:o,open:l,zIndex:E,mask:h,motion:b}),tt.createElement(Tp,{onResize:D,disabled:!l},function(t){return tt.createElement(Hg,eg({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:v,leavedClassName:"".concat(o,"-hidden")},g,{onAppearPrepare:I,onEnterPrepare:I,visible:l,onVisibleChanged:function(t){var e;null==g||null===(e=g.onVisibleChanged)||void 0===e||e.call(g,t),s(t)}}),function(n,a){var s=n.className,c=n.style,h=zh(o,s,r);return tt.createElement("div",{ref:If(t,e,a),className:h,style:Sm(Sm(Sm(Sm({"--arrow-x":"".concat(p.x||0,"px"),"--arrow-y":"".concat(p.y||0,"px")},W),K),c),{},{boxSizing:"border-box",zIndex:E},i),onMouseEnter:S,onMouseLeave:k,onPointerEnter:_,onClick:d,onPointerDownCapture:C},f&&tt.createElement(Jg,{prefixCls:o,arrow:f,arrowPos:p,align:m}),tt.createElement(eb,{cache:!l&&!u},L))})}))});"production"!==process.env.NODE_ENV&&(nb.displayName="Popup");var rb=tt.forwardRef(function(t,e){var n=t.children,r=t.getTriggerDOMNode,o=Rf(n),i=tt.useCallback(function(t){Df(e,r?r(t):t)},[r]),a=Tf(i,Lf(n));return o?tt.cloneElement(n,{ref:a}):n});"production"!==process.env.NODE_ENV&&(rb.displayName="TriggerWrapper");var ob=tt.createContext(null);function ib(t){return t?Array.isArray(t)?t:[t]:[]}function sb(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(arguments.length>2?arguments[2]:void 0)?t[0]===e[0]:t[0]===e[0]&&t[1]===e[1]}function lb(t,e,n,r){return e||(n?{motionName:"".concat(t,"-").concat(n)}:r?{motionName:r}:null)}function cb(t){return t.ownerDocument.defaultView}function ub(t){for(var e=[],n=null==t?void 0:t.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=cb(n).getComputedStyle(n);[o.overflowX,o.overflowY,o.overflow].some(function(t){return r.includes(t)})&&e.push(n),n=n.parentElement}return e}function db(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(t)?e:t}function hb(t){return db(parseFloat(t),0)}function fb(t,e){var n=Sm({},t);return(e||[]).forEach(function(t){if(!(t instanceof HTMLBodyElement||t instanceof HTMLHtmlElement)){var e=cb(t).getComputedStyle(t),r=e.overflow,o=e.overflowClipMargin,i=e.borderTopWidth,a=e.borderBottomWidth,s=e.borderLeftWidth,l=e.borderRightWidth,c=t.getBoundingClientRect(),u=t.offsetHeight,d=t.clientHeight,h=t.offsetWidth,f=t.clientWidth,p=hb(i),m=hb(a),g=hb(s),b=hb(l),v=db(Math.round(c.width/h*1e3)/1e3),y=db(Math.round(c.height/u*1e3)/1e3),x=(h-f-g-b)*v,w=(u-d-p-m)*y,E=p*y,S=m*y,k=g*v,_=b*v,C=0,O=0;if("clip"===r){var M=hb(o);C=M*v,O=M*y}var P=c.x+k-C,A=c.y+E-O,N=P+c.width+2*C-k-_-x,D=A+c.height+2*O-E-S-w;n.left=Math.max(n.left,P),n.top=Math.max(n.top,A),n.right=Math.min(n.right,N),n.bottom=Math.min(n.bottom,D)}}),n}function pb(t){var e="".concat(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),n=e.match(/^(.*)\%$/);return n?t*(parseFloat(n[1])/100):parseFloat(e)}function mb(t,e){var n=Cm(e||[],2),r=n[0],o=n[1];return[pb(t.width,r),pb(t.height,o)]}function gb(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[t[0],t[1]]}function vb(t,e){var n,r=e[0],o=e[1];return n="t"===r?t.y:"b"===r?t.y+t.height:t.y+t.height/2,{x:"l"===o?t.x:"r"===o?t.x+t.width:t.x+t.width/2,y:n}}function yb(t,e){var n={t:"b",b:"t",l:"r",r:"l"};return t.map(function(t,r){return r===e?n[t]||"c":t}).join("")}function xb(t,e,n,r,o,i,a){var s=Cm(tt.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],c=s[1],u=tt.useRef(0),d=tt.useMemo(function(){return e?ub(e):[]},[e]),h=tt.useRef({});t||(h.current={});var f=tf(function(){if(e&&n&&t){var s,l,u,f,p,m=e,g=m.ownerDocument,b=cb(m),v=b.getComputedStyle(m).position,y=m.style.left,x=m.style.top,w=m.style.right,E=m.style.bottom,S=m.style.overflow,k=Sm(Sm({},o[r]),i),_=g.createElement("div");if(null===(s=m.parentElement)||void 0===s||s.appendChild(_),_.style.left="".concat(m.offsetLeft,"px"),_.style.top="".concat(m.offsetTop,"px"),_.style.position=v,_.style.height="".concat(m.offsetHeight,"px"),_.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))p={x:n[0],y:n[1],width:0,height:0};else{var C,O,M=n.getBoundingClientRect();M.x=null!==(C=M.x)&&void 0!==C?C:M.left,M.y=null!==(O=M.y)&&void 0!==O?O:M.top,p={x:M.x,y:M.y,width:M.width,height:M.height}}var P=m.getBoundingClientRect(),A=b.getComputedStyle(m),N=A.height,D=A.width;P.x=null!==(l=P.x)&&void 0!==l?l:P.left,P.y=null!==(u=P.y)&&void 0!==u?u:P.top;var I=g.documentElement,T=I.clientWidth,R=I.clientHeight,F=I.scrollWidth,L=I.scrollHeight,j=I.scrollTop,z=I.scrollLeft,B=P.height,V=P.width,$=p.height,H=p.width,W={left:0,top:0,right:T,bottom:R},U={left:-z,top:-j,right:F-z,bottom:L-j},Y=k.htmlRegion,G="visible",q="visibleFirst";"scroll"!==Y&&Y!==q&&(Y=G);var X=Y===q,K=fb(U,d),Z=fb(W,d),Q=Y===G?Z:K,J=X?Z:Q;m.style.left="auto",m.style.top="auto",m.style.right="0",m.style.bottom="0";var tt=m.getBoundingClientRect();m.style.left=y,m.style.top=x,m.style.right=w,m.style.bottom=E,m.style.overflow=S,null===(f=m.parentElement)||void 0===f||f.removeChild(_);var et=db(Math.round(V/parseFloat(D)*1e3)/1e3),nt=db(Math.round(B/parseFloat(N)*1e3)/1e3);if(0===et||0===nt||Yf(n)&&!function(t){if(!t)return!1;if(t instanceof Element){if(t.offsetParent)return!0;if(t.getBBox){var e=t.getBBox(),n=e.width,r=e.height;if(n||r)return!0}if(t.getBoundingClientRect){var o=t.getBoundingClientRect(),i=o.width,a=o.height;if(i||a)return!0}}return!1}(n))return;var rt=k.offset,ot=k.targetOffset,it=Cm(mb(P,rt),2),at=it[0],st=it[1],lt=Cm(mb(p,ot),2),ct=lt[0],ut=lt[1];p.x-=ct,p.y-=ut;var dt=Cm(k.points||[],2),ht=dt[0],ft=gb(dt[1]),pt=gb(ht),mt=vb(p,ft),gt=vb(P,pt),bt=Sm({},k),vt=mt.x-gt.x+at,yt=mt.y-gt.y+st;function he(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Q,r=P.x+t,o=P.y+e,i=r+V,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 xt,wt,Et,St,kt=he(vt,yt),_t=he(vt,yt,Z),Ct=vb(p,["t","l"]),Ot=vb(P,["t","l"]),Mt=vb(p,["b","r"]),Pt=vb(P,["b","r"]),At=k.overflow||{},Nt=At.adjustX,Dt=At.adjustY,It=At.shiftX,Tt=At.shiftY,Rt=function(t){return"boolean"==typeof t?t:t>=0};function fe(){xt=P.y+yt,wt=xt+B,Et=P.x+vt,St=Et+V}fe();var Ft=Rt(Dt),Lt=pt[0]===ft[0];if(Ft&&"t"===pt[0]&&(wt>J.bottom||h.current.bt)){var jt=yt;Lt?jt-=B-$:jt=Ct.y-Pt.y-st;var zt=he(vt,jt),Bt=he(vt,jt,Z);zt>kt||zt===kt&&(!X||Bt>=_t)?(h.current.bt=!0,yt=jt,st=-st,bt.points=[yb(pt,0),yb(ft,0)]):h.current.bt=!1}if(Ft&&"b"===pt[0]&&(xt<J.top||h.current.tb)){var Vt=yt;Lt?Vt+=B-$:Vt=Mt.y-Ot.y-st;var $t=he(vt,Vt),Ht=he(vt,Vt,Z);$t>kt||$t===kt&&(!X||Ht>=_t)?(h.current.tb=!0,yt=Vt,st=-st,bt.points=[yb(pt,0),yb(ft,0)]):h.current.tb=!1}var Wt=Rt(Nt),Ut=pt[1]===ft[1];if(Wt&&"l"===pt[1]&&(St>J.right||h.current.rl)){var Yt=vt;Ut?Yt-=V-H:Yt=Ct.x-Pt.x-at;var Gt=he(Yt,yt),qt=he(Yt,yt,Z);Gt>kt||Gt===kt&&(!X||qt>=_t)?(h.current.rl=!0,vt=Yt,at=-at,bt.points=[yb(pt,1),yb(ft,1)]):h.current.rl=!1}if(Wt&&"r"===pt[1]&&(Et<J.left||h.current.lr)){var Xt=vt;Ut?Xt+=V-H:Xt=Mt.x-Ot.x-at;var Kt=he(Xt,yt),Zt=he(Xt,yt,Z);Kt>kt||Kt===kt&&(!X||Zt>=_t)?(h.current.lr=!0,vt=Xt,at=-at,bt.points=[yb(pt,1),yb(ft,1)]):h.current.lr=!1}fe();var Qt=!0===It?0:It;"number"==typeof Qt&&(Et<Z.left&&(vt-=Et-Z.left-at,p.x+H<Z.left+Qt&&(vt+=p.x-Z.left+H-Qt)),St>Z.right&&(vt-=St-Z.right-at,p.x>Z.right-Qt&&(vt+=p.x-Z.right+Qt)));var Jt=!0===Tt?0:Tt;"number"==typeof Jt&&(xt<Z.top&&(yt-=xt-Z.top-st,p.y+$<Z.top+Jt&&(yt+=p.y-Z.top+$-Jt)),wt>Z.bottom&&(yt-=wt-Z.bottom-st,p.y>Z.bottom-Jt&&(yt+=p.y-Z.bottom+Jt)));var te=P.x+vt,ee=te+V,ne=P.y+yt,re=ne+B,oe=p.x,ie=oe+H,ae=p.y,se=ae+$,le=(Math.max(te,oe)+Math.min(ee,ie))/2-te,ce=(Math.max(ne,ae)+Math.min(re,se))/2-ne;null==a||a(e,bt);var ue=tt.right-P.x-(vt+P.width),de=tt.bottom-P.y-(yt+P.height);1===et&&(vt=Math.floor(vt),ue=Math.floor(ue)),1===nt&&(yt=Math.floor(yt),de=Math.floor(de)),c({ready:!0,offsetX:vt/et,offsetY:yt/nt,offsetR:ue/et,offsetB:de/nt,arrowX:le/et,arrowY:ce/nt,scaleX:et,scaleY:nt,align:bt})}}),p=function(){c(function(t){return Sm(Sm({},t),{},{ready:!1})})};return rf(p,[r]),rf(function(){t||p()},[t]),[l.ready,l.offsetX,l.offsetY,l.offsetR,l.offsetB,l.arrowX,l.arrowY,l.scaleX,l.scaleY,l.align,function(){u.current+=1;var t=u.current;Promise.resolve().then(function(){u.current===t&&f()})}]}function wb(t){return function(t){if(Array.isArray(t))return km(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||_m(t)||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 Eb=["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 Sb=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Xm,e=tt.forwardRef(function(e,n){var r=e.prefixCls,o=void 0===r?"rc-trigger-popup":r,i=e.children,a=e.action,s=void 0===a?"hover":a,l=e.showAction,c=e.hideAction,u=e.popupVisible,d=e.defaultPopupVisible,h=e.onPopupVisibleChange,f=e.afterPopupVisibleChange,p=e.mouseEnterDelay,m=e.mouseLeaveDelay,g=void 0===m?.1:m,b=e.focusDelay,v=e.blurDelay,y=e.mask,x=e.maskClosable,w=void 0===x||x,E=e.getPopupContainer,S=e.forceRender,k=e.autoDestroy,_=e.destroyPopupOnHide,C=e.popup,O=e.popupClassName,M=e.popupStyle,P=e.popupPlacement,A=e.builtinPlacements,N=void 0===A?{}:A,D=e.popupAlign,I=e.zIndex,T=e.stretch,R=e.getPopupClassNameFromAlign,F=e.fresh,L=e.alignPoint,j=e.onPopupClick,z=e.onPopupAlign,B=e.arrow,V=e.popupMotion,$=e.maskMotion,H=e.popupTransitionName,W=e.popupAnimation,U=e.maskTransitionName,Y=e.maskAnimation,G=e.className,q=e.getTriggerDOMNode,X=function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(-1!==e.indexOf(r))continue;n[r]=t[r]}return n}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],-1===e.indexOf(n)&&{}.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(e,Eb),K=k||_||!1,Z=Cm(tt.useState(!1),2),Q=Z[0],J=Z[1];rf(function(){J(yf())},[]);var et=tt.useRef({}),nt=tt.useContext(ob),rt=tt.useMemo(function(){return{registerSubPopup:function(t,e){et.current[t]=e,null==nt||nt.registerSubPopup(t,e)}}},[nt]),ot=tg(),it=Cm(tt.useState(null),2),at=it[0],st=it[1],lt=tt.useRef(null),ct=tf(function(t){lt.current=t,Yf(t)&&at!==t&&st(t),null==nt||nt.registerSubPopup(ot,t)}),ut=Cm(tt.useState(null),2),dt=ut[0],ht=ut[1],ft=tt.useRef(null),pt=tf(function(t){Yf(t)&&dt!==t&&(ht(t),ft.current=t)}),mt=tt.Children.only(i),gt=(null==mt?void 0:mt.props)||{},bt={},vt=tf(function(t){var e,n,r=dt;return(null==r?void 0:r.contains(t))||(null===(e=Zm(r))||void 0===e?void 0:e.host)===t||t===r||(null==at?void 0:at.contains(t))||(null===(n=Zm(at))||void 0===n?void 0:n.host)===t||t===at||Object.values(et.current).some(function(e){return(null==e?void 0:e.contains(t))||t===e})}),yt=lb(o,V,W,H),xt=lb(o,$,Y,U),wt=Cm(tt.useState(d||!1),2),Et=wt[0],St=wt[1],kt=null!=u?u:Et,_t=tf(function(t){void 0===u&&St(t)});rf(function(){St(u||!1)},[u]);var Ct=tt.useRef(kt);Ct.current=kt;var Ot=tt.useRef([]);Ot.current=[];var Mt=tf(function(t){var e;_t(t),(null!==(e=Ot.current[Ot.current.length-1])&&void 0!==e?e:kt)!==t&&(Ot.current.push(t),null==h||h(t))}),Pt=tt.useRef(),At=function(){clearTimeout(Pt.current)},Nt=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;At(),0===e?Mt(t):Pt.current=setTimeout(function(){Mt(t)},1e3*e)};tt.useEffect(function(){return At},[]);var Dt=Cm(tt.useState(!1),2),It=Dt[0],Tt=Dt[1];rf(function(t){t&&!kt||Tt(!0)},[kt]);var Rt=Cm(tt.useState(null),2),Ft=Rt[0],Lt=Rt[1],jt=Cm(tt.useState(null),2),zt=jt[0],Bt=jt[1],Vt=function(t){Bt([t.clientX,t.clientY])},$t=Cm(xb(kt,at,L&&null!==zt?zt:dt,P,N,D,z),11),Ht=$t[0],Wt=$t[1],Ut=$t[2],Yt=$t[3],Gt=$t[4],qt=$t[5],Xt=$t[6],Kt=$t[7],Zt=$t[8],Qt=$t[9],Jt=$t[10],te=function(t,e,n,r){return tt.useMemo(function(){var o=ib(null!=n?n:e),i=ib(null!=r?r:e),a=new Set(o),s=new Set(i);return t&&(a.has("hover")&&(a.delete("hover"),a.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[a,s]},[t,e,n,r])}(Q,s,l,c),ee=Cm(te,2),ne=ee[0],re=ee[1],oe=ne.has("click"),ie=re.has("click")||re.has("contextMenu"),ae=tf(function(){It||Jt()});!function(t,e,n,r,o){rf(function(){if(t&&e&&n){var i=n,a=ub(e),s=ub(i),l=cb(i),c=new Set([l].concat(wb(a),wb(s)));function u(){r(),o()}return c.forEach(function(t){t.addEventListener("scroll",u,{passive:!0})}),l.addEventListener("resize",u,{passive:!0}),r(),function(){c.forEach(function(t){t.removeEventListener("scroll",u),l.removeEventListener("resize",u)})}}},[t,e,n])}(kt,dt,at,ae,function(){Ct.current&&L&&ie&&Nt(!1)}),rf(function(){ae()},[zt,P]),rf(function(){!kt||null!=N&&N[P]||ae()},[JSON.stringify(D)]);var se=tt.useMemo(function(){var t=function(t,e,n,r){for(var o=n.points,i=Object.keys(t),a=0;a<i.length;a+=1){var s,l=i[a];if(sb(null===(s=t[l])||void 0===s?void 0:s.points,o,r))return"".concat(e,"-placement-").concat(l)}return""}(N,o,Qt,L);return zh(t,null==R?void 0:R(Qt))},[Qt,R,N,o,L]);tt.useImperativeHandle(n,function(){return{nativeElement:ft.current,popupElement:lt.current,forceAlign:ae}});var le=Cm(tt.useState(0),2),ce=le[0],ue=le[1],de=Cm(tt.useState(0),2),he=de[0],fe=de[1],pe=function(){if(T&&dt){var t=dt.getBoundingClientRect();ue(t.width),fe(t.height)}};function me(t,e,n,r){bt[t]=function(o){var i;null==r||r(o),Nt(e,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=gt[t])||void 0===i||i.call.apply(i,[gt,o].concat(s))}}rf(function(){Ft&&(Jt(),Ft(),Lt(null))},[Ft]),(oe||ie)&&(bt.onClick=function(t){var e;Ct.current&&ie?Nt(!1):!Ct.current&&oe&&(Vt(t),Nt(!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===(e=gt.onClick)||void 0===e||e.call.apply(e,[gt,t].concat(r))});var ge,be,ve=function(t,e,n,r,o,i,a,s){var l=tt.useRef(t);l.current=t;var c=tt.useRef(!1);return tt.useEffect(function(){if(e&&r&&(!o||i)){var t=function(){c.current=!1},u=function(t){var e;!l.current||a((null===(e=t.composedPath)||void 0===e||null===(e=e.call(t))||void 0===e?void 0:e[0])||t.target)||c.current||s(!1)},d=cb(r);d.addEventListener("pointerdown",t,!0),d.addEventListener("mousedown",u,!0),d.addEventListener("contextmenu",u,!0);var h,f,p=Zm(n);return p&&(p.addEventListener("mousedown",u,!0),p.addEventListener("contextmenu",u,!0)),"production"!==process.env.NODE_ENV&&hf((null==n||null===(h=n.getRootNode)||void 0===h?void 0:h.call(n))===(null===(f=r.getRootNode)||void 0===f?void 0:f.call(r)),"trigger element and popup element should in same shadow root."),function(){d.removeEventListener("pointerdown",t,!0),d.removeEventListener("mousedown",u,!0),d.removeEventListener("contextmenu",u,!0),p&&(p.removeEventListener("mousedown",u,!0),p.removeEventListener("contextmenu",u,!0))}}},[e,n,r,o,i]),function(){c.current=!0}}(kt,ie,dt,at,y,w,vt,Nt),ye=ne.has("hover"),xe=re.has("hover");ye&&(me("onMouseEnter",!0,p,function(t){Vt(t)}),me("onPointerEnter",!0,p,function(t){Vt(t)}),ge=function(t){(kt||It)&&null!=at&&at.contains(t.target)&&Nt(!0,p)},L&&(bt.onMouseMove=function(t){var e;null===(e=gt.onMouseMove)||void 0===e||e.call(gt,t)})),xe&&(me("onMouseLeave",!1,g),me("onPointerLeave",!1,g),be=function(){Nt(!1,g)}),ne.has("focus")&&me("onFocus",!0,b),re.has("focus")&&me("onBlur",!1,v),ne.has("contextMenu")&&(bt.onContextMenu=function(t){var e;Ct.current&&re.has("contextMenu")?Nt(!1):(Vt(t),Nt(!0)),t.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===(e=gt.onContextMenu)||void 0===e||e.call.apply(e,[gt,t].concat(r))}),G&&(bt.className=zh(gt.className,G));var we=tt.useRef(!1);we.current||(we.current=S||kt||It);var Ee=Sm(Sm({},gt),bt),Se={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach(function(t){X[t]&&(Se[t]=function(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];null===(e=Ee[t])||void 0===e||e.call.apply(e,[Ee].concat(r)),X[t].apply(X,r)})});var ke=tt.cloneElement(mt,Sm(Sm({},Ee),Se)),_e={x:qt,y:Xt},Ce=B?Sm({},!0!==B?B:{}):null;return tt.createElement(tt.Fragment,null,tt.createElement(Tp,{disabled:!kt,ref:pt,onResize:function(){pe(),ae()}},tt.createElement(rb,{getTriggerDOMNode:q},ke)),we.current&&tt.createElement(ob.Provider,{value:rt},tt.createElement(nb,{portal:t,ref:ct,prefixCls:o,popup:C,className:zh(O,se),style:M,target:dt,onMouseEnter:ge,onMouseLeave:be,onPointerEnter:ge,zIndex:I,open:kt,keepDom:It,fresh:F,onClick:j,onPointerDownCapture:ve,mask:y,motion:yt,maskMotion:xt,onVisibleChanged:function(t){Tt(!1),Jt(),null==f||f(t)},onPrepare:function(){return new Promise(function(t){pe(),Lt(function(){return t})})},forceRender:S,autoDestroy:K,getPopupContainer:E,align:Qt,arrow:Ce,arrowPos:_e,ready:Ht,offsetX:Wt,offsetY:Ut,offsetR:Yt,offsetB:Gt,onAlign:ae,stretch:T,targetWidth:ce/Kt,targetHeight:he/Zt})))});return"production"!==process.env.NODE_ENV&&(e.displayName="Trigger"),e}(Xm),kb=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],_b=function(t,e){var n=t.prefixCls;t.disabled;var r=t.visible,o=t.children,i=t.popupElement,a=t.animation,s=t.transitionName,l=t.dropdownStyle,c=t.dropdownClassName,u=t.direction,d=void 0===u?"ltr":u,h=t.placement,f=t.builtinPlacements,p=t.dropdownMatchSelectWidth,m=t.dropdownRender,g=t.dropdownAlign,b=t.getPopupContainer,v=t.empty,y=t.getTriggerDOMNode,x=t.onPopupVisibleChange,w=t.onPopupMouseEnter,E=Jh(t,kb),S="".concat(n,"-dropdown"),k=i;m&&(k=m(i));var _=tt.useMemo(function(){return f||function(t){var e=!0===t?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:e,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:e,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:e,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:e,adjustY:1},htmlRegion:"scroll"}}}(p)},[f,p]),C=a?"".concat(S,"-").concat(a):s,O="number"==typeof p,M=tt.useMemo(function(){return O?null:!1===p?"minWidth":"width"},[p,O]),P=l;O&&(P=Xh(Xh({},P),{},{width:p}));var A=tt.useRef(null);return tt.useImperativeHandle(e,function(){return{getPopupElement:function(){var t;return null===(t=A.current)||void 0===t?void 0:t.popupElement}}}),tt.createElement(Sb,Bh({},E,{showAction:x?["click"]:[],hideAction:x?["click"]:[],popupPlacement:h||("rtl"===d?"bottomRight":"bottomLeft"),builtinPlacements:_,prefixCls:S,popupTransitionName:C,popup:tt.createElement("div",{onMouseEnter:w},k),ref:A,stretch:M,popupAlign:g,popupVisible:r,getPopupContainer:b,popupClassName:zh(c,Gh({},"".concat(S,"-empty"),v)),popupStyle:P,getTriggerDOMNode:y,onPopupVisibleChange:x}),o)},Cb=tt.forwardRef(_b);function Ob(t,e){var n,r=t.key;return"value"in t&&(n=t.value),null!=r?r:void 0!==n?n:"rc-index-key-".concat(e)}function Mb(t){return void 0!==t&&!Number.isNaN(t)}function Pb(t,e){var n=t||{},r=n.label||(e?"children":"label");return{label:r,value:n.value||"value",options:n.options||"options",groupLabel:n.groupLabel||r}}function Ab(t){var e=Xh({},t);return"props"in e||Object.defineProperty(e,"props",{get:function(){return gf(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),e}}),e}"production"!==process.env.NODE_ENV&&(Cb.displayName="SelectTrigger");var Nb=tt.createContext(null);function Db(t){var e=t.visible,n=t.values;if(!e)return null;return tt.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(n.slice(0,50).map(function(t){var e=t.label,n=t.value;return["number","string"].includes(Uh(e))?e:n}).join(", ")),n.length>50?", ...":null)}var Ib=["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"],Tb=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],Rb=function(t){return"tags"===t||"multiple"===t},Fb=tt.forwardRef(function(t,e){var n,r=t.id,o=t.prefixCls,i=t.className,a=t.showSearch,s=t.tagRender,l=t.direction,c=t.omitDomProps,u=t.displayValues,d=t.onDisplayValuesChange,h=t.emptyOptions,f=t.notFoundContent,p=void 0===f?"Not Found":f,m=t.onClear,g=t.mode,b=t.disabled,v=t.loading,y=t.getInputElement,x=t.getRawInputElement,w=t.open,E=t.defaultOpen,S=t.onDropdownVisibleChange,k=t.activeValue,_=t.onActiveValueChange,C=t.activeDescendantId,O=t.searchValue,M=t.autoClearSearchValue,P=t.onSearch,A=t.onSearchSplit,N=t.tokenSeparators,D=t.allowClear,I=t.suffixIcon,T=t.clearIcon,R=t.OptionList,F=t.animation,L=t.transitionName,j=t.dropdownStyle,z=t.dropdownClassName,B=t.dropdownMatchSelectWidth,V=t.dropdownRender,$=t.dropdownAlign,H=t.placement,W=t.builtinPlacements,U=t.getPopupContainer,Y=t.showAction,G=void 0===Y?[]:Y,q=t.onFocus,X=t.onBlur,K=t.onKeyUp,Z=t.onKeyDown,Q=t.onMouseDown,J=Jh(t,Ib),nt=Rb(g),rt=(void 0!==a?a:nt)||"combobox"===g,ot=Xh({},J);Tb.forEach(function(t){delete ot[t]}),null==c||c.forEach(function(t){delete ot[t]});var it=Qh(tt.useState(!1),2),at=it[0],st=it[1];tt.useEffect(function(){st(yf())},[]);var lt=tt.useRef(null),ct=tt.useRef(null),ut=tt.useRef(null),dt=tt.useRef(null),ht=tt.useRef(null),ft=tt.useRef(!1),pt=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,e=Qh(tt.useState(!1),2),n=e[0],r=e[1],o=tt.useRef(null),i=function(){window.clearTimeout(o.current)};return tt.useEffect(function(){return i},[]),[n,function(e,n){i(),o.current=window.setTimeout(function(){r(e),n&&n()},t)},i]}(),mt=Qh(pt,3),gt=mt[0],bt=mt[1],vt=mt[2];tt.useImperativeHandle(e,function(){var t,e;return{focus:null===(t=dt.current)||void 0===t?void 0:t.focus,blur:null===(e=dt.current)||void 0===e?void 0:e.blur,scrollTo:function(t){var e;return null===(e=ht.current)||void 0===e?void 0:e.scrollTo(t)},nativeElement:lt.current||ct.current}});var yt=tt.useMemo(function(){var t;if("combobox"!==g)return O;var e=null===(t=u[0])||void 0===t?void 0:t.value;return"string"==typeof e||"number"==typeof e?String(e):""},[O,g,u]),xt="combobox"===g&&"function"==typeof y&&y()||null,wt="function"==typeof x&&x(),Et=Tf(ct,null==wt||null===(n=wt.props)||void 0===n?void 0:n.ref),St=Qh(tt.useState(!1),2),kt=St[0],_t=St[1];rf(function(){_t(!0)},[]);var Ct=Qh(cf(!1,{defaultValue:E,value:w}),2),Ot=Ct[0],Mt=Ct[1],Pt=!!kt&&Ot,At=!p&&h;(b||At&&Pt&&"combobox"===g)&&(Pt=!1);var Nt=!At&&Pt,Dt=tt.useCallback(function(t){var e=void 0!==t?t:!Pt;b||(Mt(e),Pt!==e&&(null==S||S(e)))},[b,Pt,Mt,S]),It=tt.useMemo(function(){return(N||[]).some(function(t){return["\n","\r\n"].includes(t)})},[N]),Tt=tt.useContext(Nb)||{},Rt=Tt.maxCount,Ft=Tt.rawValues,Lt=function(t,e,n){if(!(nt&&Mb(Rt)&&(null==Ft?void 0:Ft.size)>=Rt)){var r=!0,o=t;null==_||_(null);var i=function(t,e,n){if(!e||!e.length)return null;var r=!1,o=function t(e,n){var o=lg(n),i=o[0],a=o.slice(1);if(!i)return[e];var s=e.split(i);return r=r||s.length>1,s.reduce(function(e,n){return[].concat(Wh(e),Wh(t(n,a)))},[]).filter(Boolean)}(t,e);return r?void 0!==n?o.slice(0,n):o:null}(t,N,Mb(Rt)?Rt-Ft.size:void 0),a=n?null:i;return"combobox"!==g&&a&&(o="",null==A||A(a),Dt(!1),r=!1),P&&yt!==o&&P(o,{source:e?"typing":"effect"}),r}};tt.useEffect(function(){Pt||nt||"combobox"===g||Lt("",!1,!1)},[Pt]),tt.useEffect(function(){Ot&&b&&Mt(!1),b&&!ft.current&&bt(!1)},[b]);var jt=Qh(Bf(),2),zt=jt[0],Bt=jt[1],Vt=tt.useRef(!1),$t=tt.useRef(!1),Ht=[];tt.useEffect(function(){return function(){Ht.forEach(function(t){return clearTimeout(t)}),Ht.splice(0,Ht.length)}},[]);var Wt,Ut=Qh(tt.useState({}),2)[1];wt&&(Wt=function(t){Dt(t)}),function(t,e,n,r){var o=tt.useRef(null);o.current={open:e,triggerOpen:n,customizedTrigger:r},tt.useEffect(function(){function e(e){var n;if(null===(n=o.current)||void 0===n||!n.customizedTrigger){var r=e.target;r.shadowRoot&&e.composed&&(r=e.composedPath()[0]||r),o.current.open&&t().filter(function(t){return t}).every(function(t){return!t.contains(r)&&t!==r})&&o.current.triggerOpen(!1)}}return window.addEventListener("mousedown",e),function(){return window.removeEventListener("mousedown",e)}},[])}(function(){var t;return[lt.current,null===(t=ut.current)||void 0===t?void 0:t.getPopupElement()]},Nt,Dt,!!wt);var Yt,Gt=tt.useMemo(function(){return Xh(Xh({},t),{},{notFoundContent:p,open:Pt,triggerOpen:Nt,id:r,showSearch:rt,multiple:nt,toggleOpen:Dt})},[t,p,Nt,Pt,r,rt,nt,Dt]),qt=!!I||v;qt&&(Yt=tt.createElement(jf,{className:zh("".concat(o,"-arrow"),Gh({},"".concat(o,"-arrow-loading"),v)),customizeIcon:I,customizeIconProps:{loading:v,searchValue:yt,open:Pt,focused:gt,showSearch:rt}}));var Xt,Kt=function(t,e,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,l=et.useMemo(function(){return"object"===Uh(r)?r.clearIcon:o||void 0},[r,o]);return{allowClear:et.useMemo(function(){return!(i||!r||!n.length&&!a||"combobox"===s&&""===a)},[r,i,n.length,a,s]),clearIcon:et.createElement(jf,{className:"".concat(t,"-clear"),onMouseDown:e,customizeIcon:l},"×")}}(o,function(){var t;null==m||m(),null===(t=dt.current)||void 0===t||t.focus(),d([],{type:"clear",values:u}),Lt("",!1,!1)},u,D,T,b,yt,g),Zt=Kt.allowClear,Qt=Kt.clearIcon,Jt=tt.createElement(R,{ref:ht}),te=zh(o,i,Gh(Gh(Gh(Gh(Gh(Gh(Gh(Gh(Gh(Gh({},"".concat(o,"-focused"),gt),"".concat(o,"-multiple"),nt),"".concat(o,"-single"),!nt),"".concat(o,"-allow-clear"),D),"".concat(o,"-show-arrow"),qt),"".concat(o,"-disabled"),b),"".concat(o,"-loading"),v),"".concat(o,"-open"),Pt),"".concat(o,"-customize-input"),xt),"".concat(o,"-show-search"),rt)),ee=tt.createElement(Cb,{ref:ut,disabled:b,prefixCls:o,visible:Nt,popupElement:Jt,animation:F,transitionName:L,dropdownStyle:j,dropdownClassName:z,direction:l,dropdownMatchSelectWidth:B,dropdownRender:V,dropdownAlign:$,placement:H,builtinPlacements:W,getPopupContainer:U,empty:h,getTriggerDOMNode:function(t){return ct.current||t},onPopupVisibleChange:Wt,onPopupMouseEnter:function(){Ut({})}},wt?tt.cloneElement(wt,{ref:Et}):tt.createElement(vm,Bh({},t,{domRef:ct,prefixCls:o,inputElement:xt,ref:dt,id:r,showSearch:rt,autoClearSearchValue:M,mode:g,activeDescendantId:C,tagRender:s,values:u,open:Pt,onToggleOpen:Dt,activeValue:k,searchValue:yt,onSearch:Lt,onSearchSubmit:function(t){t&&t.trim()&&P(t,{source:"submit"})},onRemove:function(t){var e=u.filter(function(e){return e!==t});d(e,{type:"remove",values:[t]})},tokenWithEnter:It})));return Xt=wt?ee:tt.createElement("div",Bh({className:te},ot,{ref:lt,onMouseDown:function(t){var e,n=t.target,r=null===(e=ut.current)||void 0===e?void 0:e.getPopupElement();if(r&&r.contains(n)){var o=setTimeout(function(){var t,e=Ht.indexOf(o);-1!==e&&Ht.splice(e,1),vt(),at||r.contains(document.activeElement)||null===(t=dt.current)||void 0===t||t.focus()});Ht.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==Q||Q.apply(void 0,[t].concat(a))},onKeyDown:function(t){var e,n=zt(),r=t.key,o="Enter"===r;if(o&&("combobox"!==g&&t.preventDefault(),Pt||Dt(!0)),Bt(!!yt),"Backspace"===r&&!n&&nt&&!yt&&u.length){for(var i=Wh(u),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&&d(i,{type:"remove",values:[a]})}for(var c=arguments.length,h=new Array(c>1?c-1:0),f=1;f<c;f++)h[f-1]=arguments[f];!Pt||o&&Vt.current||null===(e=ht.current)||void 0===e||e.onKeyDown.apply(e,[t].concat(h)),o&&(Vt.current=!0),null==Z||Z.apply(void 0,[t].concat(h))},onKeyUp:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var o;Pt&&(null===(o=ht.current)||void 0===o||o.onKeyUp.apply(o,[t].concat(n))),"Enter"===t.key&&(Vt.current=!1),null==K||K.apply(void 0,[t].concat(n))},onFocus:function(){bt(!0),b||(q&&!$t.current&&q.apply(void 0,arguments),G.includes("focus")&&Dt(!0)),$t.current=!0},onBlur:function(){ft.current=!0,bt(!1,function(){$t.current=!1,ft.current=!1,Dt(!1)}),b||(yt&&("tags"===g?P(yt,{source:"submit"}):"multiple"===g&&P("",{source:"blur"})),X&&X.apply(void 0,arguments))}}),tt.createElement(Db,{visible:gt&&!Pt,values:u}),ee,Yt,Zt&&Qt),tt.createElement(zf.Provider,{value:Gt},Xt)});"production"!==process.env.NODE_ENV&&(Fb.displayName="BaseSelect");var Lb=function(){return null};Lb.isSelectOptGroup=!0;var jb=function(){return null};function zb(t,e){var n=Object.assign({},t);return Array.isArray(e)&&e.forEach(function(t){delete n[t]}),n}jb.isSelectOption=!0;var Bb=tt.forwardRef(function(t,e){var n=t.height,r=t.offsetY,o=t.offsetX,i=t.children,a=t.prefixCls,s=t.onInnerResize,l=t.innerProps,c=t.rtl,u=t.extra,d={},h={display:"flex",flexDirection:"column"};return void 0!==r&&(d={height:n,position:"relative",overflow:"hidden"},h=Xh(Xh({},h),{},Gh(Gh(Gh(Gh(Gh({transform:"translateY(".concat(r,"px)")},c?"marginRight":"marginLeft",-o),"position","absolute"),"left",0),"right",0),"top",0))),tt.createElement("div",{style:d},tt.createElement(Tp,{onResize:function(t){t.offsetHeight&&s&&s()}},tt.createElement("div",Bh({style:h,className:zh(Gh({},"".concat(a,"-holder-inner"),a)),ref:e},l),i,u)))});function Vb(t){var e=t.children,n=t.setRef,r=tt.useCallback(function(t){n(t)},[]);return tt.cloneElement(e,{ref:r})}function $b(t,e,n){var r=Qh(tt.useState(t),2),o=r[0],i=r[1],a=Qh(tt.useState(null),2),s=a[0],l=a[1];return tt.useEffect(function(){var r=function(t,e,n){var r,o,i=t.length,a=e.length;if(0===i&&0===a)return null;i<a?(r=t,o=e):(r=e,o=t);var s={__EMPTY_ITEM__:!0};function l(t){return void 0!==t?n(t):s}for(var c=null,u=1!==Math.abs(i-a),d=0;d<o.length;d+=1){var h=l(r[d]);if(h!==l(o[d])){c=d,u=u||h!==l(o[d+1]);break}}return null===c?null:{index:c,multiple:u}}(o||[],t||[],e);void 0!==(null==r?void 0:r.index)&&(null==n||n(r.index),l(t[r.index])),i(t)},[t]),[s]}Bb.displayName="Filler";var Hb="object"===("undefined"==typeof navigator?"undefined":Uh(navigator))&&/Firefox/i.test(navigator.userAgent),Wb=function(t,e,n,r){var o=ct(!1),i=ct(null);var a=ct({top:t,bottom:e,left:n,right:r});return a.current.top=t,a.current.bottom=e,a.current.left=n,a.current.right=r,function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=t?e<0&&a.current.left||e>0&&a.current.right:e<0&&a.current.top||e>0&&a.current.bottom;return n&&r?(clearTimeout(i.current),o.current=!1):r&&!o.current||(clearTimeout(i.current),o.current=!0,i.current=setTimeout(function(){o.current=!1},50)),!o.current&&r}};function Ub(t,e,n,r,o,i,a){var s=ct(0),l=ct(null),c=ct(null),u=ct(!1),d=Wb(e,n,r,o);var h=ct(null),f=ct(null);return[function(e){if(t){Wp.cancel(f.current),f.current=Wp(function(){h.current=null},2);var n=e.deltaX,r=e.deltaY,o=e.shiftKey,p=n,m=r;("sx"===h.current||!h.current&&o&&r&&!n)&&(p=r,m=0,h.current="sx");var g=Math.abs(p),b=Math.abs(m);null===h.current&&(h.current=i&&g>b?"x":"y"),"y"===h.current?function(t,e){if(Wp.cancel(l.current),!d(!1,e)){var n=t;n._virtualHandled||(n._virtualHandled=!0,s.current+=e,c.current=e,Hb||n.preventDefault(),l.current=Wp(function(){var t=u.current?10:1;a(s.current*t,!1),s.current=0}))}}(e,m):function(t,e){a(e,!0),Hb||t.preventDefault()}(e,p)}},function(e){t&&(u.current=e.detail===c.current)}]}var Yb=function(){function t(){wp(this,t),Gh(this,"maps",void 0),Gh(this,"id",0),Gh(this,"diffRecords",new Map),this.maps=Object.create(null)}return Sp(t,[{key:"set",value:function(t,e){this.diffRecords.set(t,this.maps[t]),this.maps[t]=e,this.id+=1}},{key:"get",value:function(t){return this.maps[t]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),t}();function Gb(t){var e=parseFloat(t);return isNaN(e)?0:e}var qb=14/15;function Xb(t){return Math.floor(Math.pow(t,.5))}function Kb(t,e){return("touches"in t?t.touches[0]:t)[e?"pageX":"pageY"]-window[e?"scrollX":"scrollY"]}var Zb=tt.forwardRef(function(t,e){var n=t.prefixCls,r=t.rtl,o=t.scrollOffset,i=t.scrollRange,a=t.onStartMove,s=t.onStopMove,l=t.onScroll,c=t.horizontal,u=t.spinSize,d=t.containerSize,h=t.style,f=t.thumbStyle,p=t.showScrollBar,m=Qh(tt.useState(!1),2),g=m[0],b=m[1],v=Qh(tt.useState(null),2),y=v[0],x=v[1],w=Qh(tt.useState(null),2),E=w[0],S=w[1],k=!r,_=tt.useRef(),C=tt.useRef(),O=Qh(tt.useState(p),2),M=O[0],P=O[1],A=tt.useRef(),N=function(){!0!==p&&!1!==p&&(clearTimeout(A.current),P(!0),A.current=setTimeout(function(){P(!1)},3e3))},D=i-d||0,I=d-u||0,T=tt.useMemo(function(){return 0===o||0===D?0:o/D*I},[o,D,I]),R=tt.useRef({top:T,dragging:g,pageY:y,startTop:E});R.current={top:T,dragging:g,pageY:y,startTop:E};var F=function(t){b(!0),x(Kb(t,c)),S(R.current.top),a(),t.stopPropagation(),t.preventDefault()};tt.useEffect(function(){var t=function(t){t.preventDefault()},e=_.current,n=C.current;return e.addEventListener("touchstart",t,{passive:!1}),n.addEventListener("touchstart",F,{passive:!1}),function(){e.removeEventListener("touchstart",t),n.removeEventListener("touchstart",F)}},[]);var L=tt.useRef();L.current=D;var j=tt.useRef();j.current=I,tt.useEffect(function(){if(g){var t,e=function(e){var n=R.current,r=n.dragging,o=n.pageY,i=n.startTop;Wp.cancel(t);var a=_.current.getBoundingClientRect(),s=d/(c?a.width:a.height);if(r){var u=(Kb(e,c)-o)*s,h=i;!k&&c?h-=u:h+=u;var f=L.current,p=j.current,m=p?h/p:0,g=Math.ceil(m*f);g=Math.max(g,0),g=Math.min(g,f),t=Wp(function(){l(g,c)})}},n=function(){b(!1),s()};return window.addEventListener("mousemove",e,{passive:!0}),window.addEventListener("touchmove",e,{passive:!0}),window.addEventListener("mouseup",n,{passive:!0}),window.addEventListener("touchend",n,{passive:!0}),function(){window.removeEventListener("mousemove",e),window.removeEventListener("touchmove",e),window.removeEventListener("mouseup",n),window.removeEventListener("touchend",n),Wp.cancel(t)}}},[g]),tt.useEffect(function(){return N(),function(){clearTimeout(A.current)}},[o]),tt.useImperativeHandle(e,function(){return{delayHidden:N}});var z="".concat(n,"-scrollbar"),B={position:"absolute",visibility:M?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 c?(Object.assign(B,{height:8,left:0,right:0,bottom:0}),Object.assign(V,Gh({height:"100%",width:u},k?"left":"right",T))):(Object.assign(B,Gh({width:8,top:0,bottom:0},k?"right":"left",0)),Object.assign(V,{width:"100%",height:u,top:T})),tt.createElement("div",{ref:_,className:zh(z,Gh(Gh(Gh({},"".concat(z,"-horizontal"),c),"".concat(z,"-vertical"),!c),"".concat(z,"-visible"),M)),style:Xh(Xh({},B),h),onMouseDown:function(t){t.stopPropagation(),t.preventDefault()},onMouseMove:N},tt.createElement("div",{ref:C,className:zh("".concat(z,"-thumb"),Gh({},"".concat(z,"-thumb-moving"),g)),style:Xh(Xh({},V),f),onMouseDown:F}))});"production"!==process.env.NODE_ENV&&(Zb.displayName="ScrollBar");function Qb(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=t/(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)*t;return isNaN(e)&&(e=0),e=Math.max(e,20),Math.floor(e)}var Jb=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],tv=[],ev={overflowY:"auto",overflowAnchor:"none"};function nv(t,e){var n=t.prefixCls,r=void 0===n?"rc-virtual-list":n,o=t.className,i=t.height,a=t.itemHeight,s=t.fullHeight,l=void 0===s||s,c=t.style,u=t.data,d=t.children,h=t.itemKey,f=t.virtual,p=t.direction,m=t.scrollWidth,g=t.component,b=void 0===g?"div":g,v=t.onScroll,y=t.onVirtualScroll,x=t.onVisibleChange,w=t.innerProps,E=t.extraRender,S=t.styles,k=t.showScrollBar,_=void 0===k?"optional":k,C=Jh(t,Jb),O=tt.useCallback(function(t){return"function"==typeof h?h(t):null==t?void 0:t[h]},[h]),M=function(t,e,n){var r=Qh(tt.useState(0),2),o=r[0],i=r[1],a=ct(new Map),s=ct(new Yb),l=ct(0);function c(){l.current+=1}function u(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];c();var e=function(){var t=!1;a.current.forEach(function(e,n){if(e&&e.offsetParent){var r=e.offsetHeight,o=getComputedStyle(e),i=o.marginTop,a=o.marginBottom,l=r+Gb(i)+Gb(a);s.current.get(n)!==l&&(s.current.set(n,l),t=!0)}}),t&&i(function(t){return t+1})};if(t)e();else{l.current+=1;var n=l.current;Promise.resolve().then(function(){n===l.current&&e()})}}return ut(function(){return c},[]),[function(r,o){var i=t(r),s=a.current.get(i);o?(a.current.set(i,o),u()):a.current.delete(i),!s!=!o&&(o?null==e||e(r):null==n||n(r))},u,s.current,o]}(O,null,null),P=Qh(M,4),A=P[0],N=P[1],D=P[2],I=P[3],T=!(!1===f||!i||!a),R=tt.useMemo(function(){return Object.values(D.maps).reduce(function(t,e){return t+e},0)},[D.id,D.maps]),F=T&&u&&(Math.max(a*u.length,R)>i||!!m),L="rtl"===p,j=zh(r,Gh({},"".concat(r,"-rtl"),L),o),z=u||tv,B=ct(),V=ct(),$=ct(),H=Qh(lt(0),2),W=H[0],U=H[1],Y=Qh(lt(0),2),G=Y[0],q=Y[1],X=Qh(lt(!1),2),K=X[0],Z=X[1],Q=function(){Z(!0)},J=function(){Z(!1)},et={getKey:O};function nt(t){U(function(e){var n=function(t){var e=t;Number.isNaN(Et.current)||(e=Math.min(e,Et.current));return e=Math.max(e,0),e}("function"==typeof t?t(e):t);return B.current.scrollTop=n,n})}var rt=ct({start:0,end:z.length}),ot=ct(),it=Qh($b(z,O),1)[0];ot.current=it;var at=tt.useMemo(function(){if(!T)return{scrollHeight:void 0,start:0,end:z.length-1,offset:void 0};var t;if(!F)return{scrollHeight:(null===(t=V.current)||void 0===t?void 0:t.offsetHeight)||0,start:0,end:z.length-1,offset:void 0};for(var e,n,r,o=0,s=z.length,l=0;l<s;l+=1){var c=z[l],u=O(c),d=D.get(u),h=o+(void 0===d?a:d);h>=W&&void 0===e&&(e=l,n=o),h>W+i&&void 0===r&&(r=l),o=h}return void 0===e&&(e=0,n=0,r=Math.ceil(i/a)),void 0===r&&(r=z.length-1),{scrollHeight:o,start:e,end:r=Math.min(r+1,z.length-1),offset:n}},[F,T,W,z,I,i]),st=at.scrollHeight,dt=at.start,ht=at.end,ft=at.offset;rt.current.start=dt,rt.current.end=ht,tt.useLayoutEffect(function(){var t=D.getRecord();if(1===t.size){var e=Array.from(t.keys())[0],n=t.get(e),r=z[dt];if(r&&void 0===n)if(O(r)===e){var o=D.get(e)-a;nt(function(t){return t+o})}}D.resetRecord()},[st]);var pt=Qh(tt.useState({width:0,height:i}),2),mt=pt[0],gt=pt[1],bt=ct(),vt=ct(),yt=tt.useMemo(function(){return Qb(mt.width,m)},[mt.width,m]),xt=tt.useMemo(function(){return Qb(mt.height,st)},[mt.height,st]),wt=st-i,Et=ct(wt);Et.current=wt;var St=W<=0,kt=W>=wt,_t=G<=0,Ct=G>=m,Ot=Wb(St,kt,_t,Ct),Mt=function(){return{x:L?-G:G,y:W}},Pt=ct(Mt()),At=tf(function(t){if(y){var e=Xh(Xh({},Mt()),t);Pt.current.x===e.x&&Pt.current.y===e.y||(y(e),Pt.current=e)}});function Nt(t,e){var n=t;e?(Jt(function(){q(n)}),At()):nt(n)}var Dt=function(t){var e=t,n=m?m-mt.width:0;return e=Math.max(e,0),e=Math.min(e,n)},It=tf(function(t,e){e?(Jt(function(){q(function(e){return Dt(e+(L?-t:t))})}),At()):nt(function(e){return e+t})}),Tt=Qh(Ub(T,St,kt,_t,Ct,!!m,It),2),Rt=Tt[0],Ft=Tt[1];!function(t,e,n){var r,o=ct(!1),i=ct(0),a=ct(0),s=ct(null),l=ct(null),c=function(t){if(o.current){var e=Math.ceil(t.touches[0].pageX),r=Math.ceil(t.touches[0].pageY),s=i.current-e,c=a.current-r,u=Math.abs(s)>Math.abs(c);u?i.current=e:a.current=r;var d=n(u,u?s:c,!1,t);d&&t.preventDefault(),clearInterval(l.current),d&&(l.current=setInterval(function(){u?s*=qb:c*=qb;var t=Math.floor(u?s:c);(!n(u,t,!0)||Math.abs(t)<=.1)&&clearInterval(l.current)},16))}},u=function(){o.current=!1,r()},d=function(t){r(),1!==t.touches.length||o.current||(o.current=!0,i.current=Math.ceil(t.touches[0].pageX),a.current=Math.ceil(t.touches[0].pageY),s.current=t.target,s.current.addEventListener("touchmove",c,{passive:!1}),s.current.addEventListener("touchend",u,{passive:!0}))};r=function(){s.current&&(s.current.removeEventListener("touchmove",c),s.current.removeEventListener("touchend",u))},rf(function(){return t&&e.current.addEventListener("touchstart",d,{passive:!0}),function(){var t;null===(t=e.current)||void 0===t||t.removeEventListener("touchstart",d),r(),clearInterval(l.current)}},[t])}(T,B,function(t,e,n,r){var o=r;return!Ot(t,e,n)&&((!o||!o._virtualHandled)&&(o&&(o._virtualHandled=!0),Rt({preventDefault:function(){},deltaX:t?e:0,deltaY:t?0:e}),!0))}),function(t,e,n){tt.useEffect(function(){var r=e.current;if(t&&r){var o,i,a=!1,s=function(){Wp.cancel(o)},l=function t(){s(),o=Wp(function(){n(i),t()})},c=function(){a=!1,s()},u=function(t){if(!t.target.draggable&&0===t.button){var e=t;e._virtualHandled||(e._virtualHandled=!0,a=!0)}},d=function(t){if(a){var e=Kb(t,!1),n=r.getBoundingClientRect(),o=n.top,c=n.bottom;e<=o?(i=-Xb(o-e),l()):e>=c?(i=Xb(e-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()}}},[t])}(F,B,function(t){nt(function(e){return e+t})}),rf(function(){function t(t){var e=St&&t.detail<0,n=kt&&t.detail>0;!T||e||n||t.preventDefault()}var e=B.current;return e.addEventListener("wheel",Rt,{passive:!1}),e.addEventListener("DOMMouseScroll",Ft,{passive:!0}),e.addEventListener("MozMousePixelScroll",t,{passive:!1}),function(){e.removeEventListener("wheel",Rt),e.removeEventListener("DOMMouseScroll",Ft),e.removeEventListener("MozMousePixelScroll",t)}},[T,St,kt]),rf(function(){if(m){var t=Dt(G);q(t),At({x:t})}},[mt.width,m]);var Lt=function(){var t,e;null===(t=bt.current)||void 0===t||t.delayHidden(),null===(e=vt.current)||void 0===e||e.delayHidden()},jt=function(t,e,n,r,o,i,a,s){var l=tt.useRef(),c=Qh(tt.useState(null),2),u=c[0],d=c[1];return rf(function(){if(u&&u.times<10){if(!t.current)return void d(function(t){return Xh({},t)});i();var s=u.targetAlign,l=u.originAlign,c=u.index,h=u.offset,f=t.current.clientHeight,p=!1,m=s,g=null;if(f){for(var b=s||l,v=0,y=0,x=0,w=Math.min(e.length-1,c),E=0;E<=w;E+=1){var S=o(e[E]);y=v;var k=n.get(S);v=x=y+(void 0===k?r:k)}for(var _="top"===b?h:f-h,C=w;C>=0;C-=1){var O=o(e[C]),M=n.get(O);if(void 0===M){p=!0;break}if((_-=M)<=0)break}switch(b){case"top":g=y-h;break;case"bottom":g=x-f+h;break;default:var P=t.current.scrollTop;y<P?m="top":x>P+f&&(m="bottom")}null!==g&&a(g),g!==u.lastTop&&(p=!0)}p&&d(Xh(Xh({},u),{},{times:u.times+1,targetAlign:m,lastTop:g}))}else"production"!==process.env.NODE_ENV&&10===(null==u?void 0:u.times)&&gf(!1,"Seems `scrollTo` with `rc-virtual-list` reach the max limitation. Please fire issue for us. Thanks.")},[u,t.current]),function(t){if(null!=t){if(Wp.cancel(l.current),"number"==typeof t)a(t);else if(t&&"object"===Uh(t)){var n,r=t.align;n="index"in t?t.index:e.findIndex(function(e){return o(e)===t.key});var i=t.offset;d({times:0,index:n,offset:void 0===i?0:i,originAlign:r})}}else s()}}(B,z,D,a,O,function(){return N(!0)},nt,Lt);tt.useImperativeHandle(e,function(){return{nativeElement:$.current,getScrollInfo:Mt,scrollTo:function(t){var e;(e=t)&&"object"===Uh(e)&&("left"in e||"top"in e)?(void 0!==t.left&&q(Dt(t.left)),jt(t.top)):jt(t)}}}),rf(function(){if(x){var t=z.slice(dt,ht+1);x(t,z)}},[dt,ht,z]);var zt=function(t,e,n,r){var o=Qh(tt.useMemo(function(){return[new Map,[]]},[t,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=t.length,d=a.length;d<u;d+=1){var h,f=t[d],p=e(f);i.set(p,d);var m=null!==(h=n.get(p))&&void 0!==h?h:r;if(a[d]=(a[d-1]||0)+m,p===o&&(l=d),p===s&&(c=d),void 0!==l&&void 0!==c)break}return{top:a[l-1]||0,bottom:a[c]}}}(z,O,D,a),Bt=null==E?void 0:E({start:dt,end:ht,virtual:F,offsetX:G,offsetY:ft,rtl:L,getSize:zt}),Vt=function(t,e,n,r,o,i,a,s){var l=s.getKey;return t.slice(e,n+1).map(function(t,n){var s=a(t,e+n,{style:{width:r},offsetX:o}),c=l(t);return tt.createElement(Vb,{key:c,setRef:function(e){return i(t,e)}},s)})}(z,dt,ht,m,G,A,d,et),$t=null;i&&($t=Xh(Gh({},l?"height":"maxHeight",i),ev),T&&($t.overflowY="hidden",m&&($t.overflowX="hidden"),K&&($t.pointerEvents="none")));var Ht={};return L&&(Ht.dir="rtl"),tt.createElement("div",Bh({ref:$,style:Xh(Xh({},c),{},{position:"relative"}),className:j},Ht,C),tt.createElement(Tp,{onResize:function(t){gt({width:t.offsetWidth,height:t.offsetHeight})}},tt.createElement(b,{className:"".concat(r,"-holder"),style:$t,ref:B,onScroll:function(t){var e=t.currentTarget.scrollTop;e!==W&&nt(e),null==v||v(t),At()},onMouseEnter:Lt},tt.createElement(Bb,{prefixCls:r,height:st,offsetX:G,offsetY:ft,scrollWidth:m,onInnerResize:N,ref:V,innerProps:w,rtl:L,extra:Bt},Vt))),F&&st>i&&tt.createElement(Zb,{ref:bt,prefixCls:r,scrollOffset:W,scrollRange:st,rtl:L,onScroll:Nt,onStartMove:Q,onStopMove:J,spinSize:xt,containerSize:mt.height,style:null==S?void 0:S.verticalScrollBar,thumbStyle:null==S?void 0:S.verticalScrollBarThumb,showScrollBar:_}),F&&m>mt.width&&tt.createElement(Zb,{ref:vt,prefixCls:r,scrollOffset:G,scrollRange:m,rtl:L,onScroll:Nt,onStartMove:Q,onStopMove:J,spinSize:yt,containerSize:mt.width,horizontal:!0,style:null==S?void 0:S.horizontalScrollBar,thumbStyle:null==S?void 0:S.horizontalScrollBarThumb,showScrollBar:_}))}var rv=tt.forwardRef(nv);rv.displayName="List";var ov=["disabled","title","children","style","className"];function iv(t){return"string"==typeof t||"number"==typeof t}var sv=function(t,e){var n=tt.useContext(zf),r=n.prefixCls,o=n.id,i=n.open,a=n.multiple,s=n.mode,l=n.searchValue,c=n.toggleOpen,u=n.notFoundContent,d=n.onPopupScroll,h=tt.useContext(Nb),f=h.maxCount,p=h.flattenOptions,m=h.onActiveValue,g=h.defaultActiveFirstOption,b=h.onSelect,v=h.menuItemSelectedIcon,y=h.rawValues,x=h.fieldNames,w=h.virtual,E=h.direction,S=h.listHeight,k=h.listItemHeight,_=h.optionRender,C="".concat(r,"-item"),O=Cf(function(){return p},[i,p],function(t,e){return e[0]&&t[1]!==e[1]}),M=tt.useRef(null),P=tt.useMemo(function(){return a&&Mb(f)&&(null==y?void 0:y.size)>=f},[a,f,null==y?void 0:y.size]),A=function(t){t.preventDefault()},N=function(t){var e;null===(e=M.current)||void 0===e||e.scrollTo("number"==typeof t?{index:t}:t)},D=function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=O.length,r=0;r<n;r+=1){var o=(t+r*e+n)%n,i=O[o]||{},a=i.group,s=i.data;if(!(a||null!=s&&s.disabled||P))return o}return-1},I=Qh(tt.useState(function(){return D(0)}),2),T=I[0],R=I[1],F=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];R(t);var n={source:e?"keyboard":"mouse"},r=O[t];r?m(r.value,t,n):m(null,-1,n)};ut(function(){F(!1!==g?D(0):-1)},[O.length,l]);var L=tt.useCallback(function(t){return y.has(t)&&"combobox"!==s},[s,Wh(y).toString(),y.size]);ut(function(){var t,e=setTimeout(function(){if(!a&&i&&1===y.size){var t=Array.from(y)[0],e=O.findIndex(function(e){return e.data.value===t});-1!==e&&(F(e),N(e))}});i&&(null===(t=M.current)||void 0===t||t.scrollTo(void 0));return function(){return clearTimeout(e)}},[i,l]);var j=function(t){void 0!==t&&b(t,{selected:!y.has(t)}),a||c(!1)};if(tt.useImperativeHandle(e,function(){return{onKeyDown:function(t){var e=t.which,n=t.ctrlKey;switch(e){case Vf.N:case Vf.P:case Vf.UP:case Vf.DOWN:var r=0;if(e===Vf.UP?r=-1:e===Vf.DOWN?r=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&n&&(e===Vf.N?r=1:e===Vf.P&&(r=-1)),0!==r){var o=D(T+r,r);N(o),F(o,!0)}break;case Vf.ENTER:var a,s=O[T];!s||null!=s&&null!==(a=s.data)&&void 0!==a&&a.disabled||P?j(void 0):j(s.value),i&&t.preventDefault();break;case Vf.ESC:c(!1),i&&t.stopPropagation()}},onKeyUp:function(){},scrollTo:function(t){N(t)}}}),0===O.length)return tt.createElement("div",{role:"listbox",id:"".concat(o,"_list"),className:"".concat(C,"-empty"),onMouseDown:A},u);var z=Object.keys(x).map(function(t){return x[t]}),B=function(t){return t.label};function V(t,e){return{role:t.group?"presentation":"option",id:"".concat(o,"_list_").concat(e)}}var $=function(t){var e=O[t];if(!e)return null;var n=e.data||{},r=n.value,o=e.group,i=Wf(n,!0),a=B(e);return e?tt.createElement("div",Bh({"aria-label":"string"!=typeof a||o?null:a},i,{key:t},V(e,t),{"aria-selected":L(r)}),r):null},H={role:"listbox",id:"".concat(o,"_list")};return tt.createElement(tt.Fragment,null,w&&tt.createElement("div",Bh({},H,{style:{height:0,width:0,overflow:"hidden"}}),$(T-1),$(T),$(T+1)),tt.createElement(rv,{itemKey:"key",ref:M,data:O,height:S,itemHeight:k,fullHeight:!1,onMouseDown:A,onScroll:d,virtual:w,direction:E,innerProps:w?null:H},function(t,e){var n=t.group,r=t.groupOption,o=t.data,i=t.label,a=t.value,s=o.key;if(n){var l,c=null!==(l=o.title)&&void 0!==l?l:iv(i)?i.toString():void 0;return tt.createElement("div",{className:zh(C,"".concat(C,"-group"),o.className),title:c},void 0!==i?i:s)}var u=o.disabled,d=o.title;o.children;var h=o.style,f=o.className,p=zb(Jh(o,ov),z),m=L(a),g=u||!m&&P,b="".concat(C,"-option"),y=zh(C,b,f,Gh(Gh(Gh(Gh({},"".concat(b,"-grouped"),r),"".concat(b,"-active"),T===e&&!g),"".concat(b,"-disabled"),g),"".concat(b,"-selected"),m)),x=B(t),E=!v||"function"==typeof v||m,S="number"==typeof x?x:x||a,k=iv(S)?S.toString():void 0;return void 0!==d&&(k=d),tt.createElement("div",Bh({},Wf(p),w?{}:V(t,e),{"aria-selected":m,className:y,title:k,onMouseMove:function(){T===e||g||F(e)},onClick:function(){g||j(a)},style:h}),tt.createElement("div",{className:"".concat(b,"-content")},"function"==typeof _?_(t,{index:e}):S),tt.isValidElement(v)||m,E&&tt.createElement(jf,{className:"".concat(C,"-option-state"),customizeIcon:v,customizeIconProps:{value:a,disabled:g,isSelected:m}},m?"✓":null))}))},lv=tt.forwardRef(sv);"production"!==process.env.NODE_ENV&&(lv.displayName="OptionList");function cv(t,e){return lm(t).join("").toUpperCase().includes(e)}var uv=0,dv="test"!==process.env.NODE_ENV&&ef();function hv(t){var e=Qh(tt.useState(),2),n=e[0],r=e[1];return tt.useEffect(function(){var t;r("rc_select_".concat((dv?(t=uv,uv+=1):t="TEST_OR_SSR",t)))},[]),t||n}var fv=["children","value"],pv=["children"];function mv(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return Uf(t).map(function(t,n){if(!tt.isValidElement(t)||!t.type)return null;var r=t,o=r.type.isSelectOptGroup,i=r.key,a=r.props,s=a.children,l=Jh(a,pv);return e||!o?function(t){var e=t,n=e.key,r=e.props,o=r.children,i=r.value;return Xh({key:n,value:void 0!==i?i:n,children:o},Jh(r,fv))}(t):Xh(Xh({key:"__RC_SELECT_GRP__".concat(null===i?n:i,"__"),label:i},l),{},{options:mv(s)})}).filter(function(t){return t})}function gv(t){var e=tt.useRef();e.current=t;var n=tt.useCallback(function(){return e.current.apply(e,arguments)},[]);return n}var bv=["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"],vv=["inputValue"];var yv=tt.forwardRef(function(t,e){var n=t.id,r=t.mode,o=t.prefixCls,i=void 0===o?"rc-select":o,a=t.backfill,s=t.fieldNames,l=t.inputValue,c=t.searchValue,u=t.onSearch,d=t.autoClearSearchValue,h=void 0===d||d,f=t.onSelect,p=t.onDeselect,m=t.dropdownMatchSelectWidth,g=void 0===m||m,b=t.filterOption,v=t.filterSort,y=t.optionFilterProp,x=t.optionLabelProp,w=t.options,E=t.optionRender,S=t.children,k=t.defaultActiveFirstOption,_=t.menuItemSelectedIcon,C=t.virtual,O=t.direction,M=t.listHeight,P=void 0===M?200:M,A=t.listItemHeight,N=void 0===A?20:A,D=t.labelRender,I=t.value,T=t.defaultValue,R=t.labelInValue,F=t.onChange,L=t.maxCount,j=Jh(t,bv),z=hv(n),B=Rb(r),V=!(w||!S),$=tt.useMemo(function(){return(void 0!==b||"combobox"!==r)&&b},[b,r]),H=tt.useMemo(function(){return Pb(s,V)},[JSON.stringify(s),V]),W=Qh(cf("",{value:void 0!==c?c:l,postState:function(t){return t||""}}),2),U=W[0],Y=W[1],G=function(t,e,n,r,o){return tt.useMemo(function(){var i=t;!t&&(i=mv(e));var a=new Map,s=new Map,l=function(t,e,n){n&&"string"==typeof n&&t.set(e[n],e)};return function t(e){for(var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],c=0;c<e.length;c+=1){var u=e[c];!u[n.options]||i?(a.set(u[n.value],u),l(s,u,n.label),l(s,u,r),l(s,u,o)):t(u[n.options],!0)}}(i),{options:i,valueOptions:a,labelOptions:s}},[t,e,n,r,o])}(w,S,H,y,x),q=G.valueOptions,X=G.labelOptions,K=G.options,Z=tt.useCallback(function(t){return lm(t).map(function(t){var e,n,r,o,i,a;(function(t){return!t||"object"!==Uh(t)})(t)?e=t:(r=t.key,n=t.label,e=null!==(a=t.value)&&void 0!==a?a:r);var s,l=q.get(e);if(l&&(void 0===n&&(n=null==l?void 0:l[x||H.label]),void 0===r&&(r=null!==(s=null==l?void 0:l.key)&&void 0!==s?s:e),o=null==l?void 0:l.disabled,i=null==l?void 0:l.title,"production"!==process.env.NODE_ENV&&!x)){var c=null==l?void 0:l[H.label];void 0===c||tt.isValidElement(c)||tt.isValidElement(n)||c===n||gf(!1,"`label` of `value` is not same as `label` in Select options.")}return{label:n,value:e,key:r,disabled:o,title:i}})},[H,x,q]),Q=Qh(cf(T,{value:I}),2),J=Q[0],et=Q[1],nt=tt.useMemo(function(){var t,e=Z(B&&null===J?[]:J);return"combobox"===r&&function(t){return!t&&0!==t}(null===(t=e[0])||void 0===t?void 0:t.value)?[]:e},[J,Z,r,B]),rt=function(t,e){var n=tt.useRef({values:new Map,options:new Map});return[tt.useMemo(function(){var r=n.current,o=r.values,i=r.options,a=t.map(function(t){var e;return void 0===t.label?Xh(Xh({},t),{},{label:null===(e=o.get(t.value))||void 0===e?void 0:e.label}):t}),s=new Map,l=new Map;return a.forEach(function(t){s.set(t.value,t),l.set(t.value,e.get(t.value)||i.get(t.value))}),n.current.values=s,n.current.options=l,a},[t,e]),tt.useCallback(function(t){return e.get(t)||n.current.options.get(t)},[e])]}(nt,q),ot=Qh(rt,2),it=ot[0],at=ot[1],st=tt.useMemo(function(){if(!r&&1===it.length){var t=it[0];if(null===t.value&&(null===t.label||void 0===t.label))return[]}return it.map(function(t){var e;return Xh(Xh({},t),{},{label:null!==(e="function"==typeof D?D(t):t.label)&&void 0!==e?e:t.value})})},[r,it,D]),lt=tt.useMemo(function(){return new Set(it.map(function(t){return t.value}))},[it]);tt.useEffect(function(){if("combobox"===r){var t,e=null===(t=it[0])||void 0===t?void 0:t.value;Y(function(t){return null!=t}(e)?String(e):"")}},[it]);var ct=gv(function(t,e){var n=null!=e?e:t;return Gh(Gh({},H.value,t),H.label,n)}),ut=function(t,e,n,r,o){return tt.useMemo(function(){if(!n||!1===r)return t;var i=e.options,a=e.label,s=e.value,l=[],c="function"==typeof r,u=n.toUpperCase(),d=c?r:function(t,e){return o?cv(e[o],u):e[i]?cv(e["children"!==a?a:"label"],u):cv(e[s],u)},h=c?function(t){return Ab(t)}:function(t){return t};return t.forEach(function(t){if(t[i])if(d(n,h(t)))l.push(t);else{var e=t[i].filter(function(t){return d(n,h(t))});e.length&&l.push(Xh(Xh({},t),{},Gh({},i,e)))}else d(n,h(t))&&l.push(t)}),l},[t,r,o,n,e])}(tt.useMemo(function(){if("tags"!==r)return K;var t=Wh(K);return Wh(it).sort(function(t,e){return t.value<e.value?-1:1}).forEach(function(e){var n=e.value;(function(t){return q.has(t)})(n)||t.push(ct(n,e.label))}),t},[ct,K,q,it,r]),H,U,$,y),dt=tt.useMemo(function(){return"tags"!==r||!U||ut.some(function(t){return t[y||"value"]===U})||ut.some(function(t){return t[H.value]===U})?ut:[ct(U)].concat(Wh(ut))},[ct,y,r,ut,U,H]),ht=function t(e){return Wh(e).sort(function(t,e){return v(t,e,{searchValue:U})}).map(function(e){return Array.isArray(e.options)?Xh(Xh({},e),{},{options:e.options.length>0?t(e.options):e.options}):e})},ft=tt.useMemo(function(){return v?ht(dt):dt},[dt,v,U]),pt=tt.useMemo(function(){return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.fieldNames,r=e.childrenAsData,o=[],i=Pb(n,!1),a=i.label,s=i.value,l=i.options,c=i.groupLabel;return function t(e,n){Array.isArray(e)&&e.forEach(function(e){if(n||!(l in e)){var i=e[s];o.push({key:Ob(e,o.length),groupOption:n,data:e,label:e[a],value:i})}else{var u=e[c];void 0===u&&r&&(u=e.label),o.push({key:Ob(e,o.length),group:!0,data:e,label:u}),t(e[l],!0)}})}(t,!1),o}(ft,{fieldNames:H,childrenAsData:V})},[ft,H,V]),mt=function(t){var e=Z(t);if(et(e),F&&(e.length!==it.length||e.some(function(t,e){var n;return(null===(n=it[e])||void 0===n?void 0:n.value)!==(null==t?void 0:t.value)}))){var n=R?e:e.map(function(t){return t.value}),r=e.map(function(t){return Ab(at(t.value))});F(B?n:n[0],B?r:r[0])}},gt=Qh(tt.useState(null),2),bt=gt[0],vt=gt[1],yt=Qh(tt.useState(0),2),xt=yt[0],wt=yt[1],Et=void 0!==k?k:"combobox"!==r,St=tt.useCallback(function(t,e){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).source,o=void 0===n?"keyboard":n;wt(e),a&&"combobox"===r&&null!==t&&"keyboard"===o&&vt(String(t))},[a,r]),kt=function(t,e,n){var r=function(){var e,n=at(t);return[R?{label:null==n?void 0:n[H.label],value:t,key:null!==(e=null==n?void 0:n.key)&&void 0!==e?e:t}:t,Ab(n)]};if(e&&f){var o=Qh(r(),2),i=o[0],a=o[1];f(i,a)}else if(!e&&p&&"clear"!==n){var s=Qh(r(),2),l=s[0],c=s[1];p(l,c)}},_t=gv(function(t,e){var n,o=!B||e.selected;n=o?B?[].concat(Wh(it),[t]):[t]:it.filter(function(e){return e.value!==t}),mt(n),kt(t,o),"combobox"===r?vt(""):Rb&&!h||(Y(""),vt(""))}),Ct=tt.useMemo(function(){var t=!1!==C&&!1!==g;return Xh(Xh({},G),{},{flattenOptions:pt,onActiveValue:St,defaultActiveFirstOption:Et,onSelect:_t,menuItemSelectedIcon:_,rawValues:lt,fieldNames:H,virtual:t,direction:O,listHeight:P,listItemHeight:N,childrenAsData:V,maxCount:L,optionRender:E})},[L,G,pt,St,Et,_t,_,lt,H,C,g,O,P,N,V,E]);return"production"!==process.env.NODE_ENV&&(function(t){var e=t.mode,n=t.options,r=t.children,o=t.backfill,i=t.allowClear,a=t.placeholder,s=t.getInputElement,l=t.showSearch,c=t.onSearch,u=t.defaultOpen,d=t.autoFocus,h=t.labelInValue,f=t.value,p=t.inputValue,m=t.optionLabelProp,g=Rb(e),b=void 0!==l?l:g||"combobox"===e,v=n||mv(r);if(gf("tags"!==e||v.every(function(t){return!t.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),("tags"===e||"combobox"===e)&&gf(!v.some(function(t){return t.options?t.options.some(function(t){return"number"==typeof("value"in t?t.value:t.key)}):"number"==typeof("value"in t?t.value:t.key)}),"`value` of Option should not use number type when `mode` is `tags` or `combobox`."),gf("combobox"!==e||!m,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),gf("combobox"===e||!o,"`backfill` only works with `combobox` mode."),gf("combobox"===e||!s,"`getInputElement` only work with `combobox` mode."),bf("combobox"!==e||!s||!i||!a,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),c&&!b&&"combobox"!==e&&"tags"!==e&&gf(!1,"`onSearch` should work with `showSearch` instead of use alone."),bf(!u||d,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),null!=f){var y=lm(f);gf(!h||y.every(function(t){return"object"===Uh(t)&&("key"in t||"value"in t)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),gf(!g||Array.isArray(f),"`value` should be array when `mode` is `multiple` or `tags`")}if(r){var x=null;Uf(r).some(function(t){if(!tt.isValidElement(t)||!t.type)return!1;var e=t.type;return!e.isSelectOption&&(e.isSelectOptGroup?!Uf(t.props.children).every(function(e){return!(tt.isValidElement(e)&&t.type&&!e.type.isSelectOption&&(x=e.type,1))}):(x=e,!0))}),x&&gf(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(x.displayName||x.name||x,"`.")),gf(void 0===p,"`inputValue` is deprecated, please use `searchValue` instead.")}}(t),function(t,e){t&&function t(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==e?void 0:e.value])return gf(!1,"`value` in Select options should not be `null`."),!0;if(!r&&Array.isArray(i[null==e?void 0:e.options])&&t(i[null==e?void 0:e.options],!0))break}}(t)}(K,H)),tt.createElement(Nb.Provider,{value:Ct},tt.createElement(Fb,Bh({},j,{id:z,prefixCls:i,ref:e,omitDomProps:vv,mode:r,displayValues:st,onDisplayValuesChange:function(t,e){mt(t);var n=e.type,r=e.values;"remove"!==n&&"clear"!==n||r.forEach(function(t){kt(t.value,!1,n)})},direction:O,searchValue:U,onSearch:function(t,e){if(Y(t),vt(null),"submit"!==e.source)"blur"!==e.source&&("combobox"===r&&mt(t),null==u||u(t));else{var n=(t||"").trim();if(n){var o=Array.from(new Set([].concat(Wh(lt),[n])));mt(o),kt(n,!0),Y("")}}},autoClearSearchValue:h,onSearchSplit:function(t){var e=t;"tags"!==r&&(e=t.map(function(t){var e=X.get(t);return null==e?void 0:e.value}).filter(function(t){return void 0!==t}));var n=Array.from(new Set([].concat(Wh(lt),Wh(e))));mt(n),n.forEach(function(t){kt(t,!0)})},dropdownMatchSelectWidth:g,OptionList:lv,emptyOptions:!pt.length,activeValue:bt,activeDescendantId:"".concat(z,"_list_").concat(xt)})))});"production"!==process.env.NODE_ENV&&(yv.displayName="Select");var xv=yv;function wv(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=new Set;return function t(e,o){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,a=r.has(e);if(gf(!a,"Warning: There may be circular references"),a)return!1;if(e===o)return!0;if(n&&i>1)return!1;r.add(e);var s=i+1;if(Array.isArray(e)){if(!Array.isArray(o)||e.length!==o.length)return!1;for(var l=0;l<e.length;l++)if(!t(e[l],o[l],s))return!1;return!0}if(e&&o&&"object"===Uh(e)&&"object"===Uh(o)){var c=Object.keys(e);return c.length===Object.keys(o).length&&c.every(function(n){return t(e[n],o[n],s)})}return!1}(t,e)}xv.Option=jb,xv.OptGroup=Lb;function Ev(t){return t.join("%")}var Sv=function(){function t(e){wp(this,t),Gh(this,"instanceId",void 0),Gh(this,"cache",new Map),Gh(this,"extracted",new Set),this.instanceId=e}return Sp(t,[{key:"get",value:function(t){return this.opGet(Ev(t))}},{key:"opGet",value:function(t){return this.cache.get(t)||null}},{key:"update",value:function(t,e){return this.opUpdate(Ev(t),e)}},{key:"opUpdate",value:function(t,e){var n=e(this.cache.get(t));null===n?this.cache.delete(t):this.cache.set(t,n)}}]),t}(),kv="data-token-hash",_v="data-css-hash",Cv="__cssinjs_instance__";var Ov=tt.createContext({hashPriority:"low",cache:function(){var t=Math.random().toString(12).slice(2);if("undefined"!=typeof document&&document.head&&document.body){var e=document.body.querySelectorAll("style[".concat(_v,"]"))||[],n=document.head.firstChild;Array.from(e).forEach(function(e){e[Cv]=e[Cv]||t,e[Cv]===t&&document.head.insertBefore(e,n)});var r={};Array.from(document.querySelectorAll("style[".concat(_v,"]"))).forEach(function(e){var n,o=e.getAttribute(_v);r[o]?e[Cv]===t&&(null===(n=e.parentNode)||void 0===n||n.removeChild(e)):r[o]=!0})}return new Sv(t)}(),defaultCache:!0}),Mv=Ov;var Pv=function(){function t(){wp(this,t),Gh(this,"cache",void 0),Gh(this,"keys",void 0),Gh(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return Sp(t,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(t){var e,n,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o={map:this.cache};return t.forEach(function(t){var e;o?o=null===(e=o)||void 0===e||null===(e=e.map)||void 0===e?void 0:e.get(t):o=void 0}),null!==(e=o)&&void 0!==e&&e.value&&r&&(o.value[1]=this.cacheCallTimes++),null===(n=o)||void 0===n?void 0:n.value}},{key:"get",value:function(t){var e;return null===(e=this.internalGet(t,!0))||void 0===e?void 0:e[0]}},{key:"has",value:function(t){return!!this.internalGet(t)}},{key:"set",value:function(e,n){var r=this;if(!this.has(e)){if(this.size()+1>t.MAX_CACHE_SIZE+t.MAX_CACHE_OFFSET){var o=this.keys.reduce(function(t,e){var n=Qh(t,2)[1];return r.internalGet(e)[1]<n?[e,r.internalGet(e)[1]]:t},[this.keys[0],this.cacheCallTimes]),i=Qh(o,1)[0];this.delete(i)}this.keys.push(e)}var a=this.cache;e.forEach(function(t,o){if(o===e.length-1)a.set(t,{value:[n,r.cacheCallTimes++]});else{var i=a.get(t);i?i.map||(i.map=new Map):a.set(t,{map:new Map}),a=a.get(t).map}})}},{key:"deleteByPath",value:function(t,e){var n,r=t.get(e[0]);if(1===e.length)return r.map?t.set(e[0],{map:r.map}):t.delete(e[0]),null===(n=r.value)||void 0===n?void 0:n[0];var o=this.deleteByPath(r.map,e.slice(1));return r.map&&0!==r.map.size||r.value||t.delete(e[0]),o}},{key:"delete",value:function(t){if(this.has(t))return this.keys=this.keys.filter(function(e){return!function(t,e){if(t.length!==e.length)return!1;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}(e,t)}),this.deleteByPath(this.cache,t)}}]),t}();Gh(Pv,"MAX_CACHE_SIZE",20),Gh(Pv,"MAX_CACHE_OFFSET",5);var Av=0,Nv=function(){function t(e){wp(this,t),Gh(this,"derivatives",void 0),Gh(this,"id",void 0),this.derivatives=Array.isArray(e)?e:[e],this.id=Av,0===e.length&&hf(e.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),Av+=1}return Sp(t,[{key:"getDerivativeToken",value:function(t){return this.derivatives.reduce(function(e,n){return n(t,e)},void 0)}}]),t}(),Dv=new Pv;function Iv(t){var e=Array.isArray(t)?t:[t];return Dv.has(e)||Dv.set(e,new Nv(e)),Dv.get(e)}var Tv=new WeakMap,Rv={};var Fv=new WeakMap;function Lv(t){var e=Fv.get(t)||"";return e||(Object.keys(t).forEach(function(n){var r=t[n];e+=n,r instanceof Nv?e+=r.id:r&&"object"===Uh(r)?e+=Lv(r):e+=r}),e=me(e),Fv.set(t,e)),e}function jv(t,e){return me("".concat(e,"_").concat(Lv(t)))}var zv=ef();function Bv(t){return"number"==typeof t?"".concat(t,"px"):t}function Vv(t,e,n){if(arguments.length>4&&void 0!==arguments[4]&&arguments[4])return t;var r=Xh(Xh({},arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}),{},Gh(Gh({},kv,e),_v,n)),o=Object.keys(r).map(function(t){var e=r[t];return e?"".concat(t,'="').concat(e,'"'):null}).filter(function(t){return t}).join(" ");return"<style ".concat(o,">").concat(t,"</style>")}var $v=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"--".concat(e?"".concat(e,"-"):"").concat(t).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()},Hv=function(t,e,n){return Object.keys(t).length?".".concat(e).concat(null!=n&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(t).map(function(t){var e=Qh(t,2),n=e[0],r=e[1];return"".concat(n,":").concat(r,";")}).join(""),"}"):""},Wv=function(t,e,n){var r={},o={};return Object.entries(t).forEach(function(t){var e,i,a=Qh(t,2),s=a[0],l=a[1];if(null!=n&&null!==(e=n.preserve)&&void 0!==e&&e[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=$v(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,Hv(r,e,{scope:null==n?void 0:n.scope})]},Uv=Xh({},tt).useInsertionEffect,Yv=Uv?function(t,e,n){return Uv(function(){return t(),e()},n)}:function(t,e,n){tt.useMemo(t,n),rf(function(){return e(!0)},n)},Gv=void 0!==Xh({},tt).useInsertionEffect?function(t){var e=[],n=!1;return tt.useEffect(function(){return n=!1,function(){n=!0,e.length&&e.forEach(function(t){return t()})}},t),function(t){n?"production"!==process.env.NODE_ENV&&hf(!1,"[Ant Design CSS-in-JS] You are registering a cleanup function after unmount, which will not have any effect."):e.push(t)}}:function(){return function(t){t()}};var qv=!1;var Xv="production"===process.env.NODE_ENV?function(){return!1}:function(){return qv};if("production"!==process.env.NODE_ENV&&"undefined"!=typeof module&&module&&module.hot&&"undefined"!=typeof window){var Kv="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:null;if(Kv&&"function"==typeof Kv.webpackHotUpdate){var Zv=Kv.webpackHotUpdate;Kv.webpackHotUpdate=function(){return qv=!0,setTimeout(function(){qv=!1},0),Zv.apply(void 0,arguments)}}}function Qv(t,e,n,r,o){var i=tt.useContext(Mv).cache,a=Ev([t].concat(Wh(e))),s=Gv([a]),l=Xv(),c=function(t){i.opUpdate(a,function(e){var o=Qh(e||[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 t?t(u):u})};tt.useMemo(function(){c()},[a]);var u=i.opGet(a);"production"===process.env.NODE_ENV||u||(c(),u=i.opGet(a));var d=u[1];return Yv(function(){null==o||o(d)},function(t){return c(function(e){var n=Qh(e,2),r=n[0],i=n[1];return t&&0===r&&(null==o||o(d)),[r+1,i]}),function(){i.opUpdate(a,function(e){var n=Qh(e||[],2),o=n[0],l=void 0===o?0:o,c=n[1];return 0===l-1?(s(function(){!t&&i.opGet(a)||null==r||r(c,!1)}),null):[l-1,c]})}},[a]),d}var Jv={},ty="production"!==process.env.NODE_ENV?"css-dev-only-do-not-override":"css",ey=new Map;function ny(t,e){ey.set(t,(ey.get(t)||0)-1);var n=new Set;ey.forEach(function(t,e){t<=0&&n.add(e)}),ey.size-n.size>0&&n.forEach(function(t){!function(t,e){"undefined"!=typeof document&&document.querySelectorAll("style[".concat(kv,'="').concat(t,'"]')).forEach(function(t){var n;t[Cv]===e&&(null===(n=t.parentNode)||void 0===n||n.removeChild(t))})}(t,e),ey.delete(t)})}var ry="token";function oy(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=gt(Mv),o=r.cache.instanceId,i=r.container,a=n.salt,s=void 0===a?"":a,l=n.override,c=void 0===l?Jv:l,u=n.formatToken,d=n.getComputedToken,h=n.cssVar,f=function(t,e){for(var n=Tv,r=0;r<e.length;r+=1){var o=e[r];n.has(o)||n.set(o,new WeakMap),n=n.get(o)}return n.has(Rv)||n.set(Rv,t()),n.get(Rv)}(function(){return Object.assign.apply(Object,[{}].concat(Wh(e)))},e),p=Lv(f),m=Lv(c),g=h?Lv(h):"",b=Qv(ry,[s,t.id,p,m,g],function(){var e,n=d?d(f,c,t):function(t,e,n,r){var o=Xh(Xh({},n.getDerivativeToken(t)),e);return r&&(o=r(o)),o}(f,c,t,u),r=Xh({},n),o="";if(h){var i=Qh(Wv(n,h.key,{prefix:h.prefix,ignore:h.ignore,unitless:h.unitless,preserve:h.preserve}),2);n=i[0],o=i[1]}var a=jv(n,s);n._tokenKey=a,r._tokenKey=jv(r,s);var l=null!==(e=null==h?void 0:h.key)&&void 0!==e?e:a;n._themeKey=l,function(t){ey.set(t,(ey.get(t)||0)+1)}(l);var p="".concat(ty,"-").concat(me(a));return n._hashId=p,[n,p,r,o,(null==h?void 0:h.key)||""]},function(t){ny(t[0]._themeKey,o)},function(t){var e=Qh(t,4),n=e[0],r=e[3];if(h&&r){var a=$m(r,me("css-variables-".concat(n._themeKey)),{mark:_v,prepend:"queue",attachTo:i,priority:-999});a[Cv]=o,a.setAttribute(kv,n._themeKey)}});return b}var iy,sy={exports:{}};var ly=(iy||(iy=1,function(t){var e="-ms-",n="-moz-",r="-webkit-",o="comm",i="rule",a="decl",s="@page",l="@media",c="@import",u="@charset",d="@viewport",h="@supports",f="@document",p="@namespace",m="@keyframes",g="@font-face",b="@counter-style",v="@font-feature-values",y="@layer",x="@scope",w=Math.abs,E=String.fromCharCode,S=Object.assign;function k(t,e){return 45^P(t,0)?(((e<<2^P(t,0))<<2^P(t,1))<<2^P(t,2))<<2^P(t,3):0}function _(t){return t.trim()}function C(t,e){return(t=e.exec(t))?t[0]:t}function O(t,e,n){return t.replace(e,n)}function M(t,e,n){return t.indexOf(e,n)}function P(t,e){return 0|t.charCodeAt(e)}function A(t,e,n){return t.slice(e,n)}function N(t){return t.length}function D(t){return t.length}function I(t,e){return e.push(t),t}function T(t,e){return t.map(e).join("")}function R(t,e){return t.filter(function(t){return!C(t,e)})}function F(e,n,r,o,i,a,s,l){return{value:e,root:n,parent:r,type:o,props:i,children:a,line:t.line,column:t.column,length:s,return:"",siblings:l}}function L(t,e){return S(F("",null,null,"",null,null,0,t.siblings),t,{length:-t.length},e)}function j(t){for(;t.root;)t=L(t.root,{children:[t]});I(t,t.siblings)}function z(){return t.character}function B(){return t.character=t.position>0?P(t.characters,--t.position):0,t.column--,10===t.character&&(t.column=1,t.line--),t.character}function V(){return t.character=t.position<t.length?P(t.characters,t.position++):0,t.column++,10===t.character&&(t.column=1,t.line++),t.character}function $(){return P(t.characters,t.position)}function H(){return t.position}function W(e,n){return A(t.characters,e,n)}function U(t){switch(t){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 Y(e){return t.line=t.column=1,t.length=N(t.characters=e),t.position=0,[]}function G(e){return t.characters="",e}function q(e){return _(W(t.position-1,J(91===e?e+2:40===e?e+1:e)))}function X(t){return G(Z(Y(t)))}function K(e){for(;(t.character=$())&&t.character<33;)V();return U(e)>2||U(t.character)>3?"":" "}function Z(e){for(;V();)switch(U(t.character)){case 0:I(et(t.position-1),e);break;case 2:I(q(t.character),e);break;default:I(E(t.character),e)}return e}function Q(e,n){for(;--n&&V()&&!(t.character<48||t.character>102||t.character>57&&t.character<65||t.character>70&&t.character<97););return W(e,H()+(n<6&&32==$()&&32==V()))}function J(e){for(;V();)switch(t.character){case e:return t.position;case 34:case 39:34!==e&&39!==e&&J(t.character);break;case 40:41===e&&J(e);break;case 92:V()}return t.position}function tt(e,n){for(;V()&&e+t.character!==57&&(e+t.character!==84||47!==$()););return"/*"+W(n,t.position-1)+"*"+E(47===e?e:V())}function et(e){for(;!U($());)V();return W(e,t.position)}function nt(t){return G(rt("",null,null,null,[""],t=Y(t),0,[0],t))}function rt(t,e,n,r,o,i,a,s,l){for(var c=0,u=0,d=a,h=0,f=0,p=0,m=1,g=1,b=1,v=0,y="",x=o,S=i,k=r,_=y;g;)switch(p=v,v=V()){case 40:if(108!=p&&58==P(_,d-1)){-1!=M(_+=O(q(v),"&","&\f"),"&\f",w(c?s[c-1]:0))&&(b=-1);break}case 34:case 39:case 91:_+=q(v);break;case 9:case 10:case 13:case 32:_+=K(p);break;case 92:_+=Q(H()-1,7);continue;case 47:switch($()){case 42:case 47:I(it(tt(V(),H()),e,n,l),l),5!=U(p||1)&&5!=U($()||1)||!N(_)||" "===A(_,-1,void 0)||(_+=" ");break;default:_+="/"}break;case 123*m:s[c++]=N(_)*b;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:-1==b&&(_=O(_,/\f/g,"")),f>0&&(N(_)-d||0===m&&47===p)&&I(f>32?at(_+";",r,n,d-1,l):at(O(_," ","")+";",r,n,d-2,l),l);break;case 59:_+=";";default:if(I(k=ot(_,e,n,c,u,o,s,y,x=[],S=[],d,i),i),123===v)if(0===u)rt(_,e,k,k,x,i,d,s,S);else{switch(h){case 99:if(110===P(_,3))break;case 108:if(97===P(_,2))break;default:u=0;case 100:case 109:case 115:}u?rt(t,k,k,r&&I(ot(t,k,k,0,0,o,s,y,o,x=[],d,S),S),o,S,d,s,r?x:S):rt(_,k,k,k,[""],S,0,s,S)}}c=u=f=0,m=b=1,y=_="",d=a;break;case 58:d=1+N(_),f=p;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==B())continue;switch(_+=E(v),v*m){case 38:b=u>0?1:(_+="\f",-1);break;case 44:s[c++]=(N(_)-1)*b,b=1;break;case 64:45===$()&&(_+=q(V())),h=$(),u=d=N(y=_+=et(H())),v++;break;case 45:45===p&&2==N(_)&&(m=0)}}return i}function ot(t,e,n,r,o,a,s,l,c,u,d,h){for(var f=o-1,p=0===o?a:[""],m=D(p),g=0,b=0,v=0;g<r;++g)for(var y=0,x=A(t,f+1,f=w(b=s[g])),E=t;y<m;++y)(E=_(b>0?p[y]+" "+x:O(x,/&\f/g,p[y])))&&(c[v++]=E);return F(t,e,n,0===o?i:l,c,u,d,h)}function it(t,e,n,r){return F(t,e,n,o,E(z()),A(t,2,-2),0,r)}function at(t,e,n,r,o){return F(t,e,n,a,A(t,0,r),A(t,r+1,-1),r,o)}function st(t,o,i){switch(k(t,o)){case 5103:return r+"print-"+t+t;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+t+t;case 4855:return r+t.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+t;case 4789:return n+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return r+t+n+t+e+t+t;case 5936:switch(P(t,o+11)){case 114:return r+t+e+O(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return r+t+e+O(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return r+t+e+O(t,/[svh]\w+-[tblr]{2}/,"lr")+t}case 6828:case 4268:case 2903:return r+t+e+t+t;case 6165:return r+t+e+"flex-"+t+t;case 5187:return r+t+O(t,/(\w+).+(:[^]+)/,r+"box-$1$2"+e+"flex-$1$2")+t;case 5443:return r+t+e+"flex-item-"+O(t,/flex-|-self/g,"")+(C(t,/flex-|baseline/)?"":e+"grid-row-"+O(t,/flex-|-self/g,""))+t;case 4675:return r+t+e+"flex-line-pack"+O(t,/align-content|flex-|-self/g,"")+t;case 5548:return r+t+e+O(t,"shrink","negative")+t;case 5292:return r+t+e+O(t,"basis","preferred-size")+t;case 6060:return r+"box-"+O(t,"-grow","")+r+t+e+O(t,"grow","positive")+t;case 4554:return r+O(t,/([^-])(transform)/g,"$1"+r+"$2")+t;case 6187:return O(O(O(t,/(zoom-|grab)/,r+"$1"),/(image-set)/,r+"$1"),t,"")+t;case 5495:case 3959:return O(t,/(image-set\([^]*)/,r+"$1$`$1");case 4968:return O(O(t,/(.+:)(flex-)?(.*)/,r+"box-pack:$3"+e+"flex-pack:$3"),/space-between/,"justify")+r+t+t;case 4200:if(!C(t,/flex-|baseline/))return e+"grid-column-align"+A(t,o)+t;break;case 2592:case 3360:return e+O(t,"template-","")+t;case 4384:case 3616:return i&&i.some(function(t,e){return o=e,C(t.props,/grid-\w+-end/)})?~M(t+(i=i[o].value),"span",0)?t:e+O(t,"-start","")+t+e+"grid-row-span:"+(~M(i,"span",0)?C(i,/\d+/):+C(i,/\d+/)-+C(t,/\d+/))+";":e+O(t,"-start","")+t;case 4896:case 4128:return i&&i.some(function(t){return C(t.props,/grid-\w+-start/)})?t:e+O(O(t,"-end","-span"),"span ","")+t;case 4095:case 3583:case 4068:case 2532:return O(t,/(.+)-inline(.+)/,r+"$1$2")+t;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(N(t)-1-o>6)switch(P(t,o+1)){case 109:if(45!==P(t,o+4))break;case 102:return O(t,/(.+:)(.+)-([^]+)/,"$1"+r+"$2-$3$1"+n+(108==P(t,o+3)?"$3":"$2-$3"))+t;case 115:return~M(t,"stretch",0)?st(O(t,"stretch","fill-available"),o,i)+t:t}break;case 5152:case 5920:return O(t,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(n,r,o,i,a,s,l){return e+r+":"+o+l+(i?e+r+"-span:"+(a?s:+s-+o)+l:"")+t});case 4949:if(121===P(t,o+6))return O(t,":",":"+r)+t;break;case 6444:switch(P(t,45===P(t,14)?18:11)){case 120:return O(t,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+r+(45===P(t,14)?"inline-":"")+"box$3$1"+r+"$2$3$1"+e+"$2box$3")+t;case 100:return O(t,":",":"+e)+t}break;case 5719:case 2647:case 2135:case 3927:case 2391:return O(t,"scroll-","scroll-snap-")+t}return t}function lt(t,e){for(var n="",r=0;r<t.length;r++)n+=e(t[r],r,t,e)||"";return n}function ct(t,e,n,r){switch(t.type){case y:if(t.children.length)break;case c:case p:case a:return t.return=t.return||t.value;case o:return"";case m:return t.return=t.value+"{"+lt(t.children,r)+"}";case i:if(!N(t.value=t.props.join(",")))return""}return N(n=lt(t.children,r))?t.return=t.value+"{"+n+"}":""}function ut(t){var e=D(t);return function(n,r,o,i){for(var a="",s=0;s<e;s++)a+=t[s](n,r,o,i)||"";return a}}function dt(t){return function(e){e.root||(e=e.return)&&t(e)}}function ht(t,o,s,l){if(t.length>-1&&!t.return)switch(t.type){case a:return void(t.return=st(t.value,t.length,s));case m:return lt([L(t,{value:O(t.value,"@","@"+r)})],l);case i:if(t.length)return T(s=t.props,function(o){switch(C(o,l=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":j(L(t,{props:[O(o,/:(read-\w+)/,":"+n+"$1")]})),j(L(t,{props:[o]})),S(t,{props:R(s,l)});break;case"::placeholder":j(L(t,{props:[O(o,/:(plac\w+)/,":"+r+"input-$1")]})),j(L(t,{props:[O(o,/:(plac\w+)/,":"+n+"$1")]})),j(L(t,{props:[O(o,/:(plac\w+)/,e+"input-$1")]})),j(L(t,{props:[o]})),S(t,{props:R(s,l)})}return""})}}function ft(t){t.type===i&&(t.props=t.props.map(function(e){return T(X(e),function(e,n,r){switch(P(e,0)){case 12:return A(e,1,N(e));case 0:case 40:case 43:case 62:case 126:return e;case 58:"global"===r[++n]&&(r[n]="",r[++n]="\f"+A(r[n],n=1,-1));case 32:return 1===n?"":e;default:switch(n){case 0:return t=e,D(r)>1?"":e;case n=D(r)-1:case 2:return 2===n?e+t+t:e+t;default:return e}}})}))}t.line=1,t.column=1,t.length=0,t.position=0,t.character=0,t.characters="",t.CHARSET=u,t.COMMENT=o,t.COUNTER_STYLE=b,t.DECLARATION=a,t.DOCUMENT=f,t.FONT_FACE=g,t.FONT_FEATURE_VALUES=v,t.IMPORT=c,t.KEYFRAMES=m,t.LAYER=y,t.MEDIA=l,t.MOZ=n,t.MS=e,t.NAMESPACE=p,t.PAGE=s,t.RULESET=i,t.SCOPE=x,t.SUPPORTS=h,t.VIEWPORT=d,t.WEBKIT=r,t.abs=w,t.alloc=Y,t.append=I,t.assign=S,t.caret=H,t.char=z,t.charat=P,t.combine=T,t.comment=it,t.commenter=tt,t.compile=nt,t.copy=L,t.dealloc=G,t.declaration=at,t.delimit=q,t.delimiter=J,t.escaping=Q,t.filter=R,t.from=E,t.hash=k,t.identifier=et,t.indexof=M,t.lift=j,t.match=C,t.middleware=ut,t.namespace=ft,t.next=V,t.node=F,t.parse=rt,t.peek=$,t.prefix=st,t.prefixer=ht,t.prev=B,t.replace=O,t.ruleset=ot,t.rulesheet=dt,t.serialize=lt,t.sizeof=D,t.slice=W,t.stringify=ct,t.strlen=N,t.substr=A,t.token=U,t.tokenize=X,t.tokenizer=Z,t.trim=_,t.whitespace=K,Object.defineProperty(t,"__esModule",{value:!0})}(sy.exports)),sy.exports);function cy(t,e){var n=e.path,r=e.parentSelectors;gf(!1,"[Ant Design CSS-in-JS] ".concat(n?"Error in ".concat(n,": "):"").concat(t).concat(r.length?" Selector: ".concat(r.join(" | ")):""))}var uy,dy=function(t,e,n){if("content"===t){("string"!=typeof e||-1===["normal","none","initial","inherit","unset"].indexOf(e)&&!/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/.test(e)&&(e.charAt(0)!==e.charAt(e.length-1)||'"'!==e.charAt(0)&&"'"!==e.charAt(0)))&&cy("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(e,"\"'`."),n)}},hy=function(t,e,n){"animation"===t&&n.hashId&&"none"!==e&&cy("You seem to be using hashed animation '".concat(e,"', in which case 'animationName' with Keyframe as value is recommended."),n)},fy="data-ant-cssinjs-cache-path",py="_FILE_STYLE__",my=!0;function gy(t){return function(){if(!uy&&(uy={},ef())){var t=document.createElement("div");t.className=fy,t.style.position="fixed",t.style.visibility="hidden",t.style.top="-9999px",document.body.appendChild(t);var e=getComputedStyle(t).content||"";(e=e.replace(/^"/,"").replace(/"$/,"")).split(";").forEach(function(t){var e=Qh(t.split(":"),2),n=e[0],r=e[1];uy[n]=r});var n,r=document.querySelector("style[".concat(fy,"]"));r&&(my=!1,null===(n=r.parentNode)||void 0===n||n.removeChild(r)),document.body.removeChild(t)}}(),!!uy[t]}var by="_skip_check_",vy="_multi_value_";function yy(t){return ly.serialize(ly.compile(t),ly.stringify).replace(/\{%%%\:[^;];}/g,";")}function xy(t,e,n){if(!e)return t;var r=".".concat(e),o="low"===n?":where(".concat(r,")"):r;return t.split(",").map(function(t){var e,n=t.trim().split(/\s+/),r=n[0]||"",i=(null===(e=r.match(/^\w+/))||void 0===e?void 0:e[0])||"";return[r="".concat(i).concat(o).concat(r.slice(i.length))].concat(Wh(n.slice(1))).join(" ")}).join(",")}var wy=function t(e){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,h=void 0===d?[]:d,f=n.linters,p=void 0===f?[]:f,m="",g={};function b(e){var r=e.getName(s);if(!g[r]){var o=Qh(t(e.style,n,{root:!1,parentSelectors:a}),1)[0];g[r]="@keyframes ".concat(e.getName(s)).concat(o)}}var v=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.forEach(function(e){Array.isArray(e)?t(e,n):e&&n.push(e)}),n}(Array.isArray(e)?e:[e]);return v.forEach(function(e){var r="string"!=typeof e||o?e:{};if("string"==typeof r)m+="".concat(r,"\n");else if(r._keyframe)b(r);else{var l=h.reduce(function(t,e){var n;return(null==e||null===(n=e.visit)||void 0===n?void 0:n.call(e,t))||t},r);Object.keys(l).forEach(function(e){var r=l[e];if("object"!==Uh(r)||!r||"animationName"===e&&r._keyframe||function(t){return"object"===Uh(t)&&t&&(by in t||vy in t)}(r)){var d;function S(t,e){"production"===process.env.NODE_ENV||"object"===Uh(r)&&null!=r&&r[by]||[dy,hy].concat(Wh(p)).forEach(function(n){return n(t,e,{path:c,hashId:s,parentSelectors:a})});var n=t.replace(/[A-Z]/g,function(t){return"-".concat(t.toLowerCase())}),o=e;ke[t]||"number"!=typeof o||0===o||(o="".concat(o,"px")),"animationName"===t&&null!=e&&e._keyframe&&(b(e),o=e.getName(s)),m+="".concat(n,":").concat(o,";")}var h=null!==(d=null==r?void 0:r.value)&&void 0!==d?d:r;"object"===Uh(r)&&null!=r&&r[vy]&&Array.isArray(h)?h.forEach(function(t){S(e,t)}):S(e,h)}else{var f=!1,v=e.trim(),y=!1;(o||i)&&s?v.startsWith("@")?f=!0:v=xy("&"===v?"":e,s,u):!o||s||"&"!==v&&""!==v||(v="",y=!0);var x=Qh(t(r,n,{root:y,injectHash:f,parentSelectors:[].concat(Wh(a),[v])}),2),w=x[0],E=x[1];g=Xh(Xh({},g),E),m+="".concat(v).concat(w)}})}}),o?l&&(m&&(m="@layer ".concat(l.name," {").concat(m,"}")),l.dependencies&&(g["@layer ".concat(l.name)]=l.dependencies.map(function(t){return"@layer ".concat(t,", ").concat(l.name,";")}).join("\n"))):m="{".concat(m,"}"),[m,g]};function Ey(t,e){return me("".concat(t.join("%")).concat(e))}function Sy(){return null}var ky="style";function _y(t,e){var n=t.token,r=t.path,o=t.hashId,i=t.layer,a=t.nonce,s=t.clientOnly,l=t.order,c=void 0===l?0:l,u=tt.useContext(Mv),d=u.autoClear,h=u.mock,f=u.defaultCache,p=u.hashPriority,m=u.container,g=u.ssrInline,b=u.transformers,v=u.linters,y=u.cache,x=u.layer,w=n._tokenKey,E=[w];x&&E.push("layer"),E.push.apply(E,Wh(r));var S=zv;"production"!==process.env.NODE_ENV&&void 0!==h&&(S="client"===h);var k=Qv(ky,E,function(){var t=E.join("|");if(gy(t)){var n=function(t){var e=uy[t],n=null;if(e&&ef())if(my)n=py;else{var r=document.querySelector("style[".concat(_v,'="').concat(uy[t],'"]'));r?n=r.innerHTML:delete uy[t]}return[n,e]}(t),a=Qh(n,2),l=a[0],u=a[1];if(l)return[l,w,u,{},s,c]}var d=e(),h=Qh(wy(d,{hashId:o,hashPriority:p,layer:x?i:void 0,path:r.join("-"),transformers:b,linters:v}),2),f=h[0],m=h[1],g=yy(f),y=Ey(E,g);return[g,w,y,m,s,c]},function(t,e){var n=Qh(t,3)[2];(e||d)&&zv&&Vm(n,{mark:_v,attachTo:m})},function(t){var e=Qh(t,4),n=e[0];e[1];var r=e[2],o=e[3];if(S&&n!==py){var i={mark:_v,prepend:!x&&"queue",attachTo:m,priority:c},s="function"==typeof a?a():a;s&&(i.csp={nonce:s});var l=[],u=[];Object.keys(o).forEach(function(t){t.startsWith("@layer")?l.push(t):u.push(t)}),l.forEach(function(t){$m(yy(o[t]),"_layer-".concat(t),Xh(Xh({},i),{},{prepend:!0}))});var d=$m(n,r,i);d[Cv]=y.instanceId,d.setAttribute(kv,w),"production"!==process.env.NODE_ENV&&d.setAttribute("data-cache-path",E.join("|")),u.forEach(function(t){$m(yy(o[t]),"_effect-".concat(t),i)})}}),_=Qh(k,3),C=_[0],O=_[1],M=_[2];return function(t){var e;return e=g&&!S&&f?tt.createElement("style",Bh({},Gh(Gh({},kv,O),_v,M),{dangerouslySetInnerHTML:{__html:C}})):tt.createElement(Sy,null),tt.createElement(tt.Fragment,null,e,t)}}var Cy="cssVar";Gh(Gh(Gh({},ky,function(t,e,n){var r=Qh(t,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,h={"data-rc-order":"prependQueue","data-rc-priority":"".concat(c)};return d=Vv(o,i,a,h,u),s&&Object.keys(s).forEach(function(t){if(!e[t]){e[t]=!0;var n=Vv(yy(s[t]),i,"_effect-".concat(t),h,u);t.startsWith("@layer")?d=n+d:d+=n}}),[c,a,d]}),ry,function(t,e,n){var r=Qh(t,5),o=r[2],i=r[3],a=r[4],s=(n||{}).plain;if(!i)return null;var l=o._tokenKey;return[-999,l,Vv(i,a,l,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},s)]}),Cy,function(t,e,n){var r=Qh(t,4),o=r[1],i=r[2],a=r[3],s=(n||{}).plain;if(!o)return null;return[-999,i,Vv(o,a,i,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},s)]});var Oy=function(){function t(e,n){wp(this,t),Gh(this,"name",void 0),Gh(this,"style",void 0),Gh(this,"_keyframe",!0),this.name=e,this.style=n}return Sp(t,[{key:"getName",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t?"".concat(t,"-").concat(this.name):this.name}}]),t}();function My(t){return t.notSplit=!0,t}My(["borderTop","borderBottom"]),My(["borderTop"]),My(["borderBottom"]),My(["borderLeft","borderRight"]),My(["borderLeft"]),My(["borderRight"]);function Py(t){return Py="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Py(t)}function Ay(t){var e=function(t,e){if("object"!=Py(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Py(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Py(e)?e:e+""}function Ny(t,e,n){return(e=Ay(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const Dy=Math.round;function Iy(t,e){const n=t.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(t=>parseFloat(t));for(let t=0;t<3;t+=1)r[t]=e(r[t]||0,n[t]||"",t);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const Ty=(t,e,n)=>0===n?t:t/100;function Ry(t,e){const n=e||255;return t>n?n:t<0?0:t}class Fy{constructor(t){function e(e){return e[0]in t&&e[1]in t&&e[2]in t}if(Ny(this,"isValid",!0),Ny(this,"r",0),Ny(this,"g",0),Ny(this,"b",0),Ny(this,"a",1),Ny(this,"_h",void 0),Ny(this,"_s",void 0),Ny(this,"_l",void 0),Ny(this,"_v",void 0),Ny(this,"_max",void 0),Ny(this,"_min",void 0),Ny(this,"_brightness",void 0),t)if("string"==typeof t){const n=t.trim();function r(t){return n.startsWith(t)}/^#?[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(t instanceof Fy)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(e("rgb"))this.r=Ry(t.r),this.g=Ry(t.g),this.b=Ry(t.b),this.a="number"==typeof t.a?Ry(t.a,1):1;else if(e("hsl"))this.fromHsl(t);else{if(!e("hsv"))throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t));this.fromHsv(t)}else;}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){const e=this.toHsv();return e.h=t,this._c(e)}getLuminance(){function t(t){const e=t/255;return e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)}return.2126*t(this.r)+.7152*t(this.g)+.0722*t(this.b)}getHue(){if(void 0===this._h){const t=this.getMax()-this.getMin();this._h=0===t?0:Dy(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/t+2:(this.r-this.g)/t+4))}return this._h}getSaturation(){if(void 0===this._s){const t=this.getMax()-this.getMin();this._s=0===t?0:t/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(t=10){const e=this.getHue(),n=this.getSaturation();let r=this.getLightness()-t/100;return r<0&&(r=0),this._c({h:e,s:n,l:r,a:this.a})}lighten(t=10){const e=this.getHue(),n=this.getSaturation();let r=this.getLightness()+t/100;return r>1&&(r=1),this._c({h:e,s:n,l:r,a:this.a})}mix(t,e=50){const n=this._c(t),r=e/100,o=t=>(n[t]-this[t])*r+this[t],i={r:Dy(o("r")),g:Dy(o("g")),b:Dy(o("b")),a:Dy(100*o("a"))/100};return this._c(i)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const e=this._c(t),n=this.a+e.a*(1-this.a),r=t=>Dy((this[t]*this.a+e[t]*e.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(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#";const e=(this.r||0).toString(16);t+=2===e.length?e:"0"+e;const n=(this.g||0).toString(16);t+=2===n.length?n:"0"+n;const r=(this.b||0).toString(16);if(t+=2===r.length?r:"0"+r,"number"==typeof this.a&&this.a>=0&&this.a<1){const e=Dy(255*this.a).toString(16);t+=2===e.length?e:"0"+e}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),e=Dy(100*this.getSaturation()),n=Dy(100*this.getLightness());return 1!==this.a?`hsla(${t},${e}%,${n}%,${this.a})`:`hsl(${t},${e}%,${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(t,e,n){const r=this.clone();return r[t]=Ry(e,n),r}_c(t){return new this.constructor(t)}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(t){const e=t.replace("#","");function n(t,n){return parseInt(e[t]+e[n||t],16)}e.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=e[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=e[6]?n(6,7)/255:1)}fromHsl({h:t,s:e,l:n,a:r}){if(this._h=t%360,this._s=e,this._l=n,this.a="number"==typeof r?r:1,e<=0){const t=Dy(255*n);this.r=t,this.g=t,this.b=t}let o=0,i=0,a=0;const s=t/60,l=(1-Math.abs(2*n-1))*e,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=Dy(255*(o+u)),this.g=Dy(255*(i+u)),this.b=Dy(255*(a+u))}fromHsv({h:t,s:e,v:n,a:r}){this._h=t%360,this._s=e,this._v=n,this.a="number"==typeof r?r:1;const o=Dy(255*n);if(this.r=o,this.g=o,this.b=o,e<=0)return;const i=t/60,a=Math.floor(i),s=i-a,l=Dy(n*(1-e)*255),c=Dy(n*(1-e*s)*255),u=Dy(n*(1-e*(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(t){const e=Iy(t,Ty);this.fromHsv({h:e[0],s:e[1],v:e[2],a:e[3]})}fromHslString(t){const e=Iy(t,Ty);this.fromHsl({h:e[0],s:e[1],l:e[2],a:e[3]})}fromRgbString(t){const e=Iy(t,(t,e)=>e.includes("%")?Dy(t/100*255):t);this.r=e[0],this.g=e[1],this.b=e[2],this.a=e[3]}}var Ly=[{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 jy(t,e,n){var r;return(r=Math.round(t.h)>=60&&Math.round(t.h)<=240?n?Math.round(t.h)-2*e:Math.round(t.h)+2*e:n?Math.round(t.h)+2*e:Math.round(t.h)-2*e)<0?r+=360:r>=360&&(r-=360),r}function zy(t,e,n){return 0===t.h&&0===t.s?t.s:((r=n?t.s-.16*e:4===e?t.s+.16:t.s+.05*e)>1&&(r=1),n&&5===e&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(100*r)/100);var r}function By(t,e,n){var r;return r=n?t.v+.05*e:t.v-.15*e,r=Math.max(0,Math.min(1,r)),Math.round(100*r)/100}function Vy(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=new Fy(t),o=r.toHsv(),i=5;i>0;i-=1){var a=new Fy({h:jy(o,i,!0),s:zy(o,i,!0),v:By(o,i,!0)});n.push(a)}n.push(r);for(var s=1;s<=4;s+=1){var l=new Fy({h:jy(o,s),s:zy(o,s),v:By(o,s)});n.push(l)}return"dark"===e.theme?Ly.map(function(t){var r=t.index,o=t.amount;return new Fy(e.backgroundColor||"#141414").mix(n[r],o).toHexString()}):n.map(function(t){return t.toHexString()})}var $y={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"},Hy=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];Hy.primary=Hy[5];var Wy=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];Wy.primary=Wy[5];var Uy=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];Uy.primary=Uy[5];var Yy=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];Yy.primary=Yy[5];var Gy=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];Gy.primary=Gy[5];var qy=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];qy.primary=qy[5];var Xy=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];Xy.primary=Xy[5];var Ky=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];Ky.primary=Ky[5];var Zy=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Zy.primary=Zy[5];var Qy=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];Qy.primary=Qy[5];var Jy=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];Jy.primary=Jy[5];var tx=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];tx.primary=tx[5];var ex=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];ex.primary=ex[5];var nx={red:Hy,volcano:Wy,orange:Uy,gold:Yy,yellow:Gy,lime:qy,green:Xy,cyan:Ky,blue:Zy,geekblue:Qy,purple:Jy,magenta:tx,grey:ex};const rx={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 ox=Object.assign(Object.assign({},rx),{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 ix(t,e){(function(t){return"string"==typeof t&&-1!==t.indexOf(".")&&1===parseFloat(t)})(t)&&(t="100%");var n=function(t){return"string"==typeof t&&-1!==t.indexOf("%")}(t);return t=360===e?t:Math.min(e,Math.max(0,parseFloat(t))),n&&(t=parseInt(String(t*e),10)/100),Math.abs(t-e)<1e-6?1:t=360===e?(t<0?t%e+e:t%e)/parseFloat(String(e)):t%e/parseFloat(String(e))}function sx(t){return Math.min(1,Math.max(0,t))}function lx(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function cx(t){return t<=1?"".concat(100*Number(t),"%"):t}function ux(t){return 1===t.length?"0"+t:String(t)}function dx(t,e,n){t=ix(t,255),e=ix(e,255),n=ix(n,255);var r=Math.max(t,e,n),o=Math.min(t,e,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 t:i=(e-n)/l+(e<n?6:0);break;case e:i=(n-t)/l+2;break;case n:i=(t-e)/l+4}i/=6}return{h:i,s:a,l:s}}function hx(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*n*(e-t):n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function fx(t,e,n){t=ix(t,255),e=ix(e,255),n=ix(n,255);var r=Math.max(t,e,n),o=Math.min(t,e,n),i=0,a=r,s=r-o,l=0===r?0:s/r;if(r===o)i=0;else{switch(r){case t:i=(e-n)/s+(e<n?6:0);break;case e:i=(n-t)/s+2;break;case n:i=(t-e)/s+4}i/=6}return{h:i,s:l,v:a}}function px(t,e,n,r){var o=[ux(Math.round(t).toString(16)),ux(Math.round(e).toString(16)),ux(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 mx(t){return Math.round(255*parseFloat(t)).toString(16)}function gx(t){return bx(t)/255}function bx(t){return parseInt(t,16)}var vx={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 yx(t){var e={r:0,g:0,b:0},n=1,r=null,o=null,i=null,a=!1,s=!1;return"string"==typeof t&&(t=function(t){if(t=t.trim().toLowerCase(),0===t.length)return!1;var e=!1;if(vx[t])t=vx[t],e=!0;else if("transparent"===t)return{r:0,g:0,b:0,a:0,format:"name"};var n=Sx.rgb.exec(t);if(n)return{r:n[1],g:n[2],b:n[3]};if(n=Sx.rgba.exec(t),n)return{r:n[1],g:n[2],b:n[3],a:n[4]};if(n=Sx.hsl.exec(t),n)return{h:n[1],s:n[2],l:n[3]};if(n=Sx.hsla.exec(t),n)return{h:n[1],s:n[2],l:n[3],a:n[4]};if(n=Sx.hsv.exec(t),n)return{h:n[1],s:n[2],v:n[3]};if(n=Sx.hsva.exec(t),n)return{h:n[1],s:n[2],v:n[3],a:n[4]};if(n=Sx.hex8.exec(t),n)return{r:bx(n[1]),g:bx(n[2]),b:bx(n[3]),a:gx(n[4]),format:e?"name":"hex8"};if(n=Sx.hex6.exec(t),n)return{r:bx(n[1]),g:bx(n[2]),b:bx(n[3]),format:e?"name":"hex"};if(n=Sx.hex4.exec(t),n)return{r:bx(n[1]+n[1]),g:bx(n[2]+n[2]),b:bx(n[3]+n[3]),a:gx(n[4]+n[4]),format:e?"name":"hex8"};if(n=Sx.hex3.exec(t),n)return{r:bx(n[1]+n[1]),g:bx(n[2]+n[2]),b:bx(n[3]+n[3]),format:e?"name":"hex"};return!1}(t)),"object"==typeof t&&(kx(t.r)&&kx(t.g)&&kx(t.b)?(e=function(t,e,n){return{r:255*ix(t,255),g:255*ix(e,255),b:255*ix(n,255)}}(t.r,t.g,t.b),a=!0,s="%"===String(t.r).substr(-1)?"prgb":"rgb"):kx(t.h)&&kx(t.s)&&kx(t.v)?(r=cx(t.s),o=cx(t.v),e=function(t,e,n){t=6*ix(t,360),e=ix(e,100),n=ix(n,100);var r=Math.floor(t),o=t-r,i=n*(1-e),a=n*(1-o*e),s=n*(1-(1-o)*e),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]}}(t.h,r,o),a=!0,s="hsv"):kx(t.h)&&kx(t.s)&&kx(t.l)&&(r=cx(t.s),i=cx(t.l),e=function(t,e,n){var r,o,i;if(t=ix(t,360),e=ix(e,100),n=ix(n,100),0===e)o=n,i=n,r=n;else{var a=n<.5?n*(1+e):n+e-n*e,s=2*n-a;r=hx(s,a,t+1/3),o=hx(s,a,t),i=hx(s,a,t-1/3)}return{r:255*r,g:255*o,b:255*i}}(t.h,r,i),a=!0,s="hsl"),Object.prototype.hasOwnProperty.call(t,"a")&&(n=t.a)),n=lx(n),{ok:a,format:t.format||s,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.b,0)),a:n}}var xx="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),wx="[\\s|\\(]+(".concat(xx,")[,|\\s]+(").concat(xx,")[,|\\s]+(").concat(xx,")\\s*\\)?"),Ex="[\\s|\\(]+(".concat(xx,")[,|\\s]+(").concat(xx,")[,|\\s]+(").concat(xx,")[,|\\s]+(").concat(xx,")\\s*\\)?"),Sx={CSS_UNIT:new RegExp(xx),rgb:new RegExp("rgb"+wx),rgba:new RegExp("rgba"+Ex),hsl:new RegExp("hsl"+wx),hsla:new RegExp("hsla"+Ex),hsv:new RegExp("hsv"+wx),hsva:new RegExp("hsva"+Ex),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 kx(t){return Boolean(Sx.CSS_UNIT.exec(String(t)))}var _x=function(){function t(e,n){var r;if(void 0===e&&(e=""),void 0===n&&(n={}),e instanceof t)return e;"number"==typeof e&&(e=function(t){return{r:t>>16,g:(65280&t)>>8,b:255&t}}(e)),this.originalInput=e;var o=yx(e);this.originalInput=e,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 t.prototype.isDark=function(){return this.getBrightness()<128},t.prototype.isLight=function(){return!this.isDark()},t.prototype.getBrightness=function(){var t=this.toRgb();return(299*t.r+587*t.g+114*t.b)/1e3},t.prototype.getLuminance=function(){var t=this.toRgb(),e=t.r/255,n=t.g/255,r=t.b/255;return.2126*(e<=.03928?e/12.92:Math.pow((e+.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))},t.prototype.getAlpha=function(){return this.a},t.prototype.setAlpha=function(t){return this.a=lx(t),this.roundA=Math.round(100*this.a)/100,this},t.prototype.isMonochrome=function(){return 0===this.toHsl().s},t.prototype.toHsv=function(){var t=fx(this.r,this.g,this.b);return{h:360*t.h,s:t.s,v:t.v,a:this.a}},t.prototype.toHsvString=function(){var t=fx(this.r,this.g,this.b),e=Math.round(360*t.h),n=Math.round(100*t.s),r=Math.round(100*t.v);return 1===this.a?"hsv(".concat(e,", ").concat(n,"%, ").concat(r,"%)"):"hsva(".concat(e,", ").concat(n,"%, ").concat(r,"%, ").concat(this.roundA,")")},t.prototype.toHsl=function(){var t=dx(this.r,this.g,this.b);return{h:360*t.h,s:t.s,l:t.l,a:this.a}},t.prototype.toHslString=function(){var t=dx(this.r,this.g,this.b),e=Math.round(360*t.h),n=Math.round(100*t.s),r=Math.round(100*t.l);return 1===this.a?"hsl(".concat(e,", ").concat(n,"%, ").concat(r,"%)"):"hsla(".concat(e,", ").concat(n,"%, ").concat(r,"%, ").concat(this.roundA,")")},t.prototype.toHex=function(t){return void 0===t&&(t=!1),px(this.r,this.g,this.b,t)},t.prototype.toHexString=function(t){return void 0===t&&(t=!1),"#"+this.toHex(t)},t.prototype.toHex8=function(t){return void 0===t&&(t=!1),function(t,e,n,r,o){var i=[ux(Math.round(t).toString(16)),ux(Math.round(e).toString(16)),ux(Math.round(n).toString(16)),ux(mx(r))];return o&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))&&i[3].startsWith(i[3].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}(this.r,this.g,this.b,this.a,t)},t.prototype.toHex8String=function(t){return void 0===t&&(t=!1),"#"+this.toHex8(t)},t.prototype.toHexShortString=function(t){return void 0===t&&(t=!1),1===this.a?this.toHexString(t):this.toHex8String(t)},t.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},t.prototype.toRgbString=function(){var t=Math.round(this.r),e=Math.round(this.g),n=Math.round(this.b);return 1===this.a?"rgb(".concat(t,", ").concat(e,", ").concat(n,")"):"rgba(".concat(t,", ").concat(e,", ").concat(n,", ").concat(this.roundA,")")},t.prototype.toPercentageRgb=function(){var t=function(t){return"".concat(Math.round(100*ix(t,255)),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},t.prototype.toPercentageRgbString=function(){var t=function(t){return Math.round(100*ix(t,255))};return 1===this.a?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},t.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var t="#"+px(this.r,this.g,this.b,!1),e=0,n=Object.entries(vx);e<n.length;e++){var r=n[e],o=r[0];if(t===r[1])return o}return!1},t.prototype.toString=function(t){var e=Boolean(t);t=null!=t?t:this.format;var n=!1,r=this.a<1&&this.a>=0;return e||!r||!t.startsWith("hex")&&"name"!==t?("rgb"===t&&(n=this.toRgbString()),"prgb"===t&&(n=this.toPercentageRgbString()),"hex"!==t&&"hex6"!==t||(n=this.toHexString()),"hex3"===t&&(n=this.toHexString(!0)),"hex4"===t&&(n=this.toHex8String(!0)),"hex8"===t&&(n=this.toHex8String()),"name"===t&&(n=this.toName()),"hsl"===t&&(n=this.toHslString()),"hsv"===t&&(n=this.toHsvString()),n||this.toHexString()):"name"===t&&0===this.a?this.toName():this.toRgbString()},t.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},t.prototype.clone=function(){return new t(this.toString())},t.prototype.lighten=function(e){void 0===e&&(e=10);var n=this.toHsl();return n.l+=e/100,n.l=sx(n.l),new t(n)},t.prototype.brighten=function(e){void 0===e&&(e=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-e/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-e/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-e/100*255))),new t(n)},t.prototype.darken=function(e){void 0===e&&(e=10);var n=this.toHsl();return n.l-=e/100,n.l=sx(n.l),new t(n)},t.prototype.tint=function(t){return void 0===t&&(t=10),this.mix("white",t)},t.prototype.shade=function(t){return void 0===t&&(t=10),this.mix("black",t)},t.prototype.desaturate=function(e){void 0===e&&(e=10);var n=this.toHsl();return n.s-=e/100,n.s=sx(n.s),new t(n)},t.prototype.saturate=function(e){void 0===e&&(e=10);var n=this.toHsl();return n.s+=e/100,n.s=sx(n.s),new t(n)},t.prototype.greyscale=function(){return this.desaturate(100)},t.prototype.spin=function(e){var n=this.toHsl(),r=(n.h+e)%360;return n.h=r<0?360+r:r,new t(n)},t.prototype.mix=function(e,n){void 0===n&&(n=50);var r=this.toRgb(),o=new t(e).toRgb(),i=n/100;return new t({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})},t.prototype.analogous=function(e,n){void 0===e&&(e=6),void 0===n&&(n=30);var r=this.toHsl(),o=360/n,i=[this];for(r.h=(r.h-(o*e>>1)+720)%360;--e;)r.h=(r.h+o)%360,i.push(new t(r));return i},t.prototype.complement=function(){var e=this.toHsl();return e.h=(e.h+180)%360,new t(e)},t.prototype.monochromatic=function(e){void 0===e&&(e=6);for(var n=this.toHsv(),r=n.h,o=n.s,i=n.v,a=[],s=1/e;e--;)a.push(new t({h:r,s:o,v:i})),i=(i+s)%1;return a},t.prototype.splitcomplement=function(){var e=this.toHsl(),n=e.h;return[this,new t({h:(n+72)%360,s:e.s,l:e.l}),new t({h:(n+216)%360,s:e.s,l:e.l})]},t.prototype.onBackground=function(e){var n=this.toRgb(),r=new t(e).toRgb(),o=n.a+r.a*(1-n.a);return new t({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})},t.prototype.triad=function(){return this.polyad(3)},t.prototype.tetrad=function(){return this.polyad(4)},t.prototype.polyad=function(e){for(var n=this.toHsl(),r=n.h,o=[this],i=360/e,a=1;a<e;a++)o.push(new t({h:(r+a*i)%360,s:n.s,l:n.l}));return o},t.prototype.equals=function(e){return this.toRgbString()===new t(e).toRgbString()},t}();var Cx=t=>{let e=t,n=t,r=t,o=t;return t<6&&t>=5?e=t+1:t<16&&t>=6?e=t+2:t>=16&&(e=16),t<7&&t>=5?n=4:t<8&&t>=7?n=5:t<14&&t>=8?n=6:t<16&&t>=14?n=7:t>=16&&(n=8),t<6&&t>=2?r=1:t>=6&&(r=2),t>4&&t<8?o=4:t>=8&&(o=6),{borderRadius:t,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:e,borderRadiusOuter:o}};var Ox=t=>{const{controlHeight:e}=t;return{controlHeightSM:.75*e,controlHeightXS:.5*e,controlHeightLG:1.25*e}};var Mx=t=>{const e=function(t){const e=new Array(10).fill(null).map((e,n)=>{const r=n-1,o=t*Math.pow(Math.E,r/5),i=n>1?Math.floor(o):Math.ceil(o);return 2*Math.floor(i/2)});return e[1]=t,e.map(t=>{return{size:t,lineHeight:(e=t,(e+8)/e)};var e})}(t),n=e.map(t=>t.size),r=e.map(t=>t.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 Px=(t,e)=>new _x(t).setAlpha(e).toRgbString(),Ax=(t,e)=>new _x(t).darken(e).toHexString(),Nx=t=>{const e=Vy(t);return{1:e[0],2:e[1],3:e[2],4:e[3],5:e[4],6:e[5],7:e[6],8:e[4],9:e[5],10:e[6]}},Dx=(t,e)=>{const n=t||"#fff",r=e||"#000";return{colorBgBase:n,colorTextBase:r,colorText:Px(r,.88),colorTextSecondary:Px(r,.65),colorTextTertiary:Px(r,.45),colorTextQuaternary:Px(r,.25),colorFill:Px(r,.15),colorFillSecondary:Px(r,.06),colorFillTertiary:Px(r,.04),colorFillQuaternary:Px(r,.02),colorBgSolid:Px(r,1),colorBgSolidHover:Px(r,.75),colorBgSolidActive:Px(r,.95),colorBgLayout:Ax(n,4),colorBgContainer:Ax(n,0),colorBgElevated:Ax(n,0),colorBgSpotlight:Px(r,.85),colorBgBlur:"transparent",colorBorder:Ax(n,15),colorBorderSecondary:Ax(n,6)}};const Ix=Iv(function(t){$y.pink=$y.magenta,nx.pink=nx.magenta;const e=Object.keys(rx).map(e=>{const n=t[e]===$y[e]?nx[e]:Vy(t[e]);return new Array(10).fill(1).reduce((t,r,o)=>(t[`${e}-${o+1}`]=n[o],t[`${e}${o+1}`]=n[o],t),{})}).reduce((t,e)=>t=Object.assign(Object.assign({},t),e),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},t),e),function(t,e){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=e;const{colorSuccess:o,colorWarning:i,colorError:a,colorInfo:s,colorPrimary:l,colorBgBase:c,colorTextBase:u}=t,d=n(l),h=n(o),f=n(i),p=n(a),m=n(s),g=r(c,u),b=n(t.colorLink||t.colorInfo),v=new _x(p[1]).mix(new _x(p[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:h[1],colorSuccessBgHover:h[2],colorSuccessBorder:h[3],colorSuccessBorderHover:h[4],colorSuccessHover:h[4],colorSuccess:h[6],colorSuccessActive:h[7],colorSuccessTextHover:h[8],colorSuccessText:h[9],colorSuccessTextActive:h[10],colorErrorBg:p[1],colorErrorBgHover:p[2],colorErrorBgFilledHover:v,colorErrorBgActive:p[3],colorErrorBorder:p[3],colorErrorBorderHover:p[4],colorErrorHover:p[5],colorError:p[6],colorErrorActive:p[7],colorErrorTextHover:p[8],colorErrorText:p[9],colorErrorTextActive:p[10],colorWarningBg:f[1],colorWarningBgHover:f[2],colorWarningBorder:f[3],colorWarningBorderHover:f[4],colorWarningHover:f[4],colorWarning:f[6],colorWarningActive:f[7],colorWarningTextHover:f[8],colorWarningText:f[9],colorWarningTextActive:f[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:b[4],colorLink:b[6],colorLinkActive:b[7],colorBgMask:new _x("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}(t,{generateColorPalettes:Nx,generateNeutralColorPalettes:Dx})),Mx(t.fontSize)),function(t){const{sizeUnit:e,sizeStep:n}=t;return{sizeXXL:e*(n+8),sizeXL:e*(n+4),sizeLG:e*(n+2),sizeMD:e*(n+1),sizeMS:e*n,size:e*n,sizeSM:e*(n-1),sizeXS:e*(n-2),sizeXXS:e*(n-3)}}(t)),Ox(t)),function(t){const{motionUnit:e,motionBase:n,borderRadius:r,lineWidth:o}=t;return Object.assign({motionDurationFast:`${(n+e).toFixed(1)}s`,motionDurationMid:`${(n+2*e).toFixed(1)}s`,motionDurationSlow:`${(n+3*e).toFixed(1)}s`,lineWidthBold:o+1},Cx(r))}(t))}),Tx={token:ox,override:{override:ox},hashed:!0},Rx=et.createContext(Tx);function Fx(t){return t>=0&&t<=255}function Lx(t,e){const{r:n,g:r,b:o,a:i}=new _x(t).toRgb();if(i<1)return t;const{r:a,g:s,b:l}=new _x(e).toRgb();for(let t=.01;t<=1;t+=.01){const e=Math.round((n-a*(1-t))/t),i=Math.round((r-s*(1-t))/t),c=Math.round((o-l*(1-t))/t);if(Fx(e)&&Fx(i)&&Fx(c))return new _x({r:e,g:i,b:c,a:Math.round(100*t)/100}).toRgbString()}return new _x({r:n,g:r,b:o,a:1}).toRgbString()}var jx=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n};function zx(t){const{override:e}=t,n=jx(t,["override"]),r=Object.assign({},e);Object.keys(ox).forEach(t=>{delete r[t]});const o=Object.assign(Object.assign({},n),r),i=1200,a=1600;if(!1===o.motion){const t="0s";o.motionDurationFast=t,o.motionDurationMid=t,o.motionDurationSlow=t}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:Lx(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:Lx(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:Lx(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:Lx(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 _x("rgba(0, 0, 0, 0.16)").toRgbString()},\n 0 3px 6px 0 ${new _x("rgba(0, 0, 0, 0.12)").toRgbString()},\n 0 5px 12px 4px ${new _x("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 Bx=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n};const Vx={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},$x={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},Hx={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},Wx=(t,e,n)=>{const r=n.getDerivativeToken(t),{override:o}=e,i=Bx(e,["override"]);let a=Object.assign(Object.assign({},r),{override:o});return a=zx(a),i&&Object.entries(i).forEach(t=>{let[e,n]=t;const{theme:r}=n,o=Bx(n,["theme"]);let i=o;r&&(i=Wx(Object.assign(Object.assign({},a),o),{override:o},r)),a[e]=i}),a};function Ux(){const{token:t,hashed:e,theme:n,override:r,cssVar:o}=et.useContext(Rx),i=`5.21.6-${e||""}`,a=n||Ix,[s,l,c]=oy(a,[ox,t],{salt:i,override:r,getComputedToken:Wx,formatToken:zx,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:Vx,ignore:$x,preserve:Hx}});return[a,c,e?l:"",s,o]}function Yx(){}let Gx=null;let qx=Yx;"production"!==process.env.NODE_ENV&&(qx=(t,e,n)=>{gf(t,`[antd: ${e}] ${n}`),"test"===process.env.NODE_ENV&&(Gx=null,pf())});const Xx=tt.createContext({}),Kx="production"!==process.env.NODE_ENV?t=>{const{strict:e}=tt.useContext(Xx),n=(n,r,o)=>{if(!n)if(!1===e&&"deprecated"===r){const e=Gx;Gx||(Gx={}),Gx[t]=Gx[t]||[],Gx[t].includes(o||"")||Gx[t].push(o||""),e||console.warn("[antd] There exists deprecated usage in your code:",Gx)}else"production"!==process.env.NODE_ENV&&qx(n,t,o)};return n.deprecated=(t,e,r,o)=>{n(t,"deprecated",`\`${e}\` is deprecated. Please use \`${r}\` instead.${o?` ${o}`:""}`)},n}:()=>{const t=()=>{};return t.deprecated=Yx,t};var Zx=qx;const Qx=et.createContext(void 0);"production"!==process.env.NODE_ENV&&(Qx.displayName="zIndexContext");var Jx=Qx;const tw=100,ew={Modal:tw,Drawer:tw,Popover:tw,Popconfirm:tw,Tooltip:tw,Tour:tw,FloatButton:tw},nw={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};const rw=(t,e)=>{const[,n]=Ux(),r=et.useContext(Jx),o=function(t){return t in ew}(t);let i;if(void 0!==e)i=[e,e];else{let a=null!=r?r:0;a+=o?(r?0:n.zIndexPopupBase)+ew[t]:nw[t],i=[void 0===r?e:a,a]}if("production"!==process.env.NODE_ENV){const r=Kx(t),o=n.zIndexPopupBase+1100,a=i[0]||0;"production"!==process.env.NODE_ENV&&r(void 0!==e||a<=o,"usage","`zIndex` is over design token `zIndexPopupBase` too much. It may cause unexpected override.")}return i};var ow=nt({}),iw=nt(void 0);function sw(t){return sw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sw(t)}function lw(t){var e=function(t,e){if("object"!=sw(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=sw(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==sw(e)?e:e+""}function cw(t,e,n){return(e=lw(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function uw(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function dw(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?uw(Object(n),!0).forEach(function(e){cw(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):uw(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var hw=dw(dw({},{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 fw={placeholder:"Select time",rangePlaceholder:["Start time","End time"]};const pw={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"]},hw),timePickerLocale:Object.assign({},fw)};const mw="${label} is not a valid ${type}";var gw={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:pw,TimePicker:fw,Calendar:pw,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:mw,method:mw,array:mw,object:mw,number:mw,date:mw,boolean:mw,integer:mw,float:mw,regexp:mw,email:mw,url:mw,hex:mw},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({},gw.Modal);let bw=[];const vw=()=>bw.reduce((t,e)=>Object.assign(Object.assign({},t),e),gw.Modal);var yw=nt(void 0);var xw=(t,e)=>{const n=tt.useContext(yw),r=tt.useMemo(()=>{var r;const o=e||gw[t],i=null!==(r=null==n?void 0:n[t])&&void 0!==r?r:{};return Object.assign(Object.assign({},"function"==typeof o?o():o),i||{})},[t,e,n]);return[r,tt.useMemo(()=>{const t=null==n?void 0:n.locale;return(null==n?void 0:n.exist)&&!t?gw.locale:t},[n])]};const ww="internalMark",Ew=t=>{const{locale:e={},children:n,_ANT_MARK__:r}=t;if("production"!==process.env.NODE_ENV){const t=Kx("LocaleProvider");"production"!==process.env.NODE_ENV&&t(r===ww,"deprecated","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale")}tt.useEffect(()=>{const t=function(t){if(t){const e=Object.assign({},t);return bw.push(e),vw(),()=>{bw=bw.filter(t=>t!==e),vw()}}Object.assign({},gw.Modal)}(null==e?void 0:e.Modal);return t},[e]);const o=tt.useMemo(()=>Object.assign(Object.assign({},e),{exist:!0}),[e]);return tt.createElement(yw.Provider,{value:o},n)};"production"!==process.env.NODE_ENV&&(Ew.displayName="LocaleProvider");var Sw=Ew;const kw="ant",_w="anticon",Cw=["outlined","borderless","filled"],Ow=tt.createContext({getPrefixCls:(t,e)=>e||(t?`${kw}-${t}`:kw),iconPrefixCls:_w}),Mw=`-ant-${Date.now()}-${Math.random()}`;function Pw(t,e){const n=function(t,e){const n={},r=(t,e)=>{let n=t.clone();return n=(null==e?void 0:e(n))||n,n.toRgbString()},o=(t,e)=>{const o=new _x(t),i=Vy(o.toRgbString());n[`${e}-color`]=r(o),n[`${e}-color-disabled`]=i[1],n[`${e}-color-hover`]=i[4],n[`${e}-color-active`]=i[6],n[`${e}-color-outline`]=o.clone().setAlpha(.2).toRgbString(),n[`${e}-color-deprecated-bg`]=i[0],n[`${e}-color-deprecated-border`]=i[2]};if(e.primaryColor){o(e.primaryColor,"primary");const t=new _x(e.primaryColor),i=Vy(t.toRgbString());i.forEach((t,e)=>{n[`primary-${e+1}`]=t}),n["primary-color-deprecated-l-35"]=r(t,t=>t.lighten(35)),n["primary-color-deprecated-l-20"]=r(t,t=>t.lighten(20)),n["primary-color-deprecated-t-20"]=r(t,t=>t.tint(20)),n["primary-color-deprecated-t-50"]=r(t,t=>t.tint(50)),n["primary-color-deprecated-f-12"]=r(t,t=>t.setAlpha(.12*t.getAlpha()));const a=new _x(i[0]);n["primary-color-active-deprecated-f-30"]=r(a,t=>t.setAlpha(.3*t.getAlpha())),n["primary-color-active-deprecated-d-02"]=r(a,t=>t.darken(2))}return e.successColor&&o(e.successColor,"success"),e.warningColor&&o(e.warningColor,"warning"),e.errorColor&&o(e.errorColor,"error"),e.infoColor&&o(e.infoColor,"info"),`\n :root {\n ${Object.keys(n).map(e=>`--${t}-${e}: ${n[e]};`).join("\n")}\n }\n `.trim()}(t,e);ef()?$m(n,`${Mw}-dynamic-theme`):"production"!==process.env.NODE_ENV&&Zx(!1,"ConfigProvider","SSR do not support dynamic theme with css variables.")}const Aw=tt.createContext(!1),Nw=t=>{let{children:e,disabled:n}=t;const r=tt.useContext(Aw);return tt.createElement(Aw.Provider,{value:null!=n?n:r},e)};var Dw=Aw;const Iw=tt.createContext(void 0),Tw=t=>{let{children:e,size:n}=t;const r=tt.useContext(Iw);return tt.createElement(Iw.Provider,{value:n||r},e)};var Rw=Iw;function Fw(t){return Fw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fw(t)}function Lw(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function jw(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Lw(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Lw(t,e):void 0}}(t,e)||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 zw(t){var e=function(t,e){if("object"!=Fw(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Fw(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Fw(e)?e:e+""}function Bw(t,e,n){return(e=zw(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Vw(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function $w(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Vw(Object(n),!0).forEach(function(e){Bw(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Vw(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function Hw(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ww(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,zw(r.key),r)}}function Uw(t,e,n){return e&&Ww(t.prototype,e),n&&Ww(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function Yw(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Gw(t,e){return Gw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Gw(t,e)}function qw(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Gw(t,e)}function Xw(t){return Xw=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Xw(t)}function Kw(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(Kw=function(){return!!t})()}function Zw(t){var e=Kw();return function(){var n,r=Xw(t);if(e){var o=Xw(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"==Fw(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Yw(t)}(this,n)}}var Qw=Uw(function t(){Hw(this,t)}),Jw="CALC_UNIT",tE=new RegExp(Jw,"g");function eE(t){return"number"==typeof t?"".concat(t).concat(Jw):t}var nE=function(){qw(e,Qw);var t=Zw(e);function e(n,r){var o;Hw(this,e),Bw(Yw(o=t.call(this)),"result",""),Bw(Yw(o),"unitlessCssVar",void 0),Bw(Yw(o),"lowPriority",void 0);var i=Fw(n);return o.unitlessCssVar=r,n instanceof e?o.result="(".concat(n.result,")"):"number"===i?o.result=eE(n):"string"===i&&(o.result=n),o}return Uw(e,[{key:"add",value:function(t){return t instanceof e?this.result="".concat(this.result," + ").concat(t.getResult()):"number"!=typeof t&&"string"!=typeof t||(this.result="".concat(this.result," + ").concat(eE(t))),this.lowPriority=!0,this}},{key:"sub",value:function(t){return t instanceof e?this.result="".concat(this.result," - ").concat(t.getResult()):"number"!=typeof t&&"string"!=typeof t||(this.result="".concat(this.result," - ").concat(eE(t))),this.lowPriority=!0,this}},{key:"mul",value:function(t){return this.lowPriority&&(this.result="(".concat(this.result,")")),t instanceof e?this.result="".concat(this.result," * ").concat(t.getResult(!0)):"number"!=typeof t&&"string"!=typeof t||(this.result="".concat(this.result," * ").concat(t)),this.lowPriority=!1,this}},{key:"div",value:function(t){return this.lowPriority&&(this.result="(".concat(this.result,")")),t instanceof e?this.result="".concat(this.result," / ").concat(t.getResult(!0)):"number"!=typeof t&&"string"!=typeof t||(this.result="".concat(this.result," / ").concat(t)),this.lowPriority=!1,this}},{key:"getResult",value:function(t){return this.lowPriority||t?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(t){var e=this,n=(t||{}).unit,r=!0;return"boolean"==typeof n?r=n:Array.from(this.unitlessCssVar).some(function(t){return e.result.includes(t)})&&(r=!1),this.result=this.result.replace(tE,r?"px":""),void 0!==this.lowPriority?"calc(".concat(this.result,")"):this.result}}]),e}(),rE=function(){qw(e,Qw);var t=Zw(e);function e(n){var r;return Hw(this,e),Bw(Yw(r=t.call(this)),"result",0),n instanceof e?r.result=n.result:"number"==typeof n&&(r.result=n),r}return Uw(e,[{key:"add",value:function(t){return t instanceof e?this.result+=t.result:"number"==typeof t&&(this.result+=t),this}},{key:"sub",value:function(t){return t instanceof e?this.result-=t.result:"number"==typeof t&&(this.result-=t),this}},{key:"mul",value:function(t){return t instanceof e?this.result*=t.result:"number"==typeof t&&(this.result*=t),this}},{key:"div",value:function(t){return t instanceof e?this.result/=t.result:"number"==typeof t&&(this.result/=t),this}},{key:"equal",value:function(){return this.result}}]),e}(),oE=function(t,e){return"".concat([e,t.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function iE(t,e,n,r){var o=$w({},e[t]);null!=r&&r.deprecatedTokens&&r.deprecatedTokens.forEach(function(e){var n,r=jw(e,2),i=r[0],a=r[1];("production"!==process.env.NODE_ENV&&gf(!(null!=o&&o[i]),"Component Token `".concat(String(i),"` of ").concat(String(t)," 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=$w($w({},n),o);return Object.keys(i).forEach(function(t){i[t]===e[t]&&delete i[t]}),i}var sE="production"!==process.env.NODE_ENV||"undefined"!=typeof CSSINJS_STATISTIC,lE=!0;function cE(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];if(!sE)return Object.assign.apply(Object,[{}].concat(e));lE=!1;var r={};return e.forEach(function(t){"object"===Fw(t)&&Object.keys(t).forEach(function(e){Object.defineProperty(r,e,{configurable:!0,enumerable:!0,get:function(){return t[e]}})})}),lE=!0,r}var uE={};function dE(){}function hE(t,e,n){var r;return"function"==typeof n?n(cE(e,null!==(r=e[t])&&void 0!==r?r:{})):null!=n?n:{}}var fE=function(){function t(){Hw(this,t),Bw(this,"map",new Map),Bw(this,"objectIDMap",new WeakMap),Bw(this,"nextID",0),Bw(this,"lastAccessBeat",new Map),Bw(this,"accessBeat",0)}return Uw(t,[{key:"set",value:function(t,e){this.clear();var n=this.getCompositeKey(t);this.map.set(n,e),this.lastAccessBeat.set(n,Date.now())}},{key:"get",value:function(t){var e=this.getCompositeKey(t),n=this.map.get(e);return this.lastAccessBeat.set(e,Date.now()),this.accessBeat+=1,n}},{key:"getCompositeKey",value:function(t){var e=this;return t.map(function(t){return t&&"object"===Fw(t)?"obj_".concat(e.getObjectID(t)):"".concat(Fw(t),"_").concat(t)}).join("|")}},{key:"getObjectID",value:function(t){if(this.objectIDMap.has(t))return this.objectIDMap.get(t);var e=this.nextID;return this.objectIDMap.set(t,e),this.nextID+=1,e}},{key:"clear",value:function(){var t=this;if(this.accessBeat>1e4){var e=Date.now();this.lastAccessBeat.forEach(function(n,r){e-n>6e5&&(t.map.delete(r),t.lastAccessBeat.delete(r))}),this.accessBeat=0}}}]),t}(),pE=new fE;var mE=function(){return{}};const gE={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},bE=function(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{boxSizing:"border-box",margin:0,padding:0,color:t.colorText,fontSize:t.fontSize,lineHeight:t.lineHeight,listStyle:"none",fontFamily:e?"inherit":t.fontFamily}},vE=t=>({a:{color:t.colorLink,textDecoration:t.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${t.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:t.colorLinkHover},"&:active":{color:t.colorLinkActive},"&:active, &:hover":{textDecoration:t.linkHoverDecoration,outline:0},"&:focus":{textDecoration:t.linkFocusDecoration,outline:0},"&[disabled]":{color:t.colorTextDisabled,cursor:"not-allowed"}}});var yE=(t,e)=>{const[n,r]=Ux();return _y({theme:n,token:r,hashId:"",path:["ant-design-icons",t],nonce:()=>null==e?void 0:e.nonce,layer:{name:"antd"}},()=>[{[`.${t}`]: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"}}),{[`.${t} .${t}-icon`]:{display:"block"}})}])};const{genStyleHooks:xE,genComponentStyleHook:wE,genSubStyleComponent:EE}=function(t){var e=t.useCSP,n=void 0===e?mE:e,r=t.useToken,o=t.usePrefix,i=t.getResetStyles,a=t.getCommonStyle,s=t.getCompUnitless;function l(e,s,l){var c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},u=Array.isArray(e)?e:[e,e],d=jw(u,1)[0],h=u.join("-"),f=t.layer||{name:"antd"};return function(t){var e,u,p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,m=r(),g=m.theme,b=m.realToken,v=m.hashId,y=m.token,x=m.cssVar,w=o(),E=w.rootPrefixCls,S=w.iconPrefixCls,k=n(),_=x?"css":"js",C=(e=function(){var t=new Set;return x&&Object.keys(c.unitless||{}).forEach(function(e){t.add($v(e,x.prefix)),t.add($v(e,oE(d,x.prefix)))}),function(t,e){var n="css"===t?nE:rE;return function(t){return new n(t,e)}}(_,t)},u=[_,d,null==x?void 0:x.prefix],et.useMemo(function(){var t=pE.get(u);if(t)return t;var n=e();return pE.set(u,n),n},u)),O=function(t){return"js"===t?{max:Math.max,min:Math.min}:{max:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return"max(".concat(e.map(function(t){return Bv(t)}).join(","),")")},min:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return"min(".concat(e.map(function(t){return Bv(t)}).join(","),")")}}}(_),M=O.max,P=O.min,A={theme:g,token:y,hashId:v,nonce:function(){return k.nonce},clientOnly:c.clientOnly,layer:f,order:c.order||-999};"function"==typeof i&&_y($w($w({},A),{},{clientOnly:!1,path:["Shared",E]}),function(){return i(y,{prefix:{rootPrefixCls:E,iconPrefixCls:S},csp:k})});var N=_y($w($w({},A),{},{path:[h,t,S]}),function(){if(!1===c.injectStyle)return[];var e=function(t){var e,n=t,r=dE;return sE&&"undefined"!=typeof Proxy&&(e=new Set,n=new Proxy(t,{get:function(t,n){var r;return lE&&(null===(r=e)||void 0===r||r.add(n)),t[n]}}),r=function(t,n){var r;uE[t]={global:Array.from(e),component:$w($w({},null===(r=uE[t])||void 0===r?void 0:r.component),n)}}),{token:n,keys:e,flush:r}}(y),n=e.token,r=e.flush,o=hE(d,b,l),i=".".concat(t),u=iE(d,b,o,{deprecatedTokens:c.deprecatedTokens});x&&o&&"object"===Fw(o)&&Object.keys(o).forEach(function(t){o[t]="var(".concat($v(t,oE(d,x.prefix)),")")});var h=cE(n,{componentCls:i,prefixCls:t,iconCls:".".concat(S),antCls:".".concat(E),calc:C,max:M,min:P},x?o:u),f=s(h,{hashId:v,prefixCls:t,rootPrefixCls:E,iconPrefixCls:S});r(d,u);var m="function"==typeof a?a(h,t,p,c.resetFont):null;return[!1===c.resetStyle?null:m,f]});return[N,v]}}return{genStyleHooks:function(t,e,n,o){var i=Array.isArray(t)?t[0]:t;function a(t){return"".concat(String(i)).concat(t.slice(0,1).toUpperCase()).concat(t.slice(1))}var c=(null==o?void 0:o.unitless)||{},u=$w($w({},"function"==typeof s?s(t):{}),{},Bw({},a("zIndexPopup"),!0));Object.keys(c).forEach(function(t){u[a(t)]=c[t]});var d=$w($w({},o),{},{unitless:u,prefixToken:a}),h=l(t,e,n,d),f=function(t,e,n){var o=n.unitless,i=n.injectStyle,a=void 0===i||i,s=n.prefixToken,l=n.ignore,c=function(i){var a=i.rootCls,c=i.cssVar,u=void 0===c?{}:c,d=r().realToken;return function(t,e){var n=t.key,r=t.prefix,o=t.unitless,i=t.ignore,a=t.token,s=t.scope,l=void 0===s?"":s,c=gt(Mv),u=c.cache.instanceId,d=c.container,h=a._tokenKey,f=[].concat(Wh(t.path),[n,l,h]),p=Qv(Cy,f,function(){var t=e(),a=Qh(Wv(t,n,{prefix:r,unitless:o,ignore:i,scope:l}),2),s=a[0],c=a[1];return[s,c,Ey(f,c),n]},function(t){var e=Qh(t,3)[2];zv&&Vm(e,{mark:_v,attachTo:d})},function(t){var e=Qh(t,3),r=e[1],o=e[2];if(r){var i=$m(r,o,{mark:_v,prepend:"queue",attachTo:d,priority:-999});i[Cv]=u,i.setAttribute(kv,n)}})}({path:[t],prefix:u.prefix,key:u.key,unitless:o,ignore:l,token:d,scope:a},function(){var r=hE(t,d,e),o=iE(t,d,r,{deprecatedTokens:null==n?void 0:n.deprecatedTokens});return Object.keys(r).forEach(function(t){o[s(t)]=o[t],delete o[t]}),o}),null},u=function(e){var n=r().cssVar;return[function(r){return a&&n?et.createElement(et.Fragment,null,et.createElement(c,{rootCls:e,cssVar:n,component:t}),r):r},null==n?void 0:n.key]};return u}(i,n,d);return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,n=jw(h(t,e),2)[1],r=jw(f(e),2);return[r[0],n,r[1]]}},genSubStyleComponent:function(t,e,n){var r=l(t,e,n,$w({resetStyle:!1,order:-998},arguments.length>3&&void 0!==arguments[3]?arguments[3]:{})),o=function(t){var e=t.prefixCls,n=t.rootCls;return r(e,void 0===n?e:n),null};return"production"!==process.env.NODE_ENV&&(o.displayName="SubStyle_".concat(String(Array.isArray(t)?t.join("."):t))),o},genComponentStyleHook:l}}({usePrefix:()=>{const{getPrefixCls:t,iconPrefixCls:e}=gt(Ow);return{rootPrefixCls:t(),iconPrefixCls:e}},useToken:()=>{const[t,e,n,r,o]=Ux();return{theme:t,realToken:e,hashId:n,token:r,cssVar:o}},useCSP:()=>{const{csp:t,iconPrefixCls:e}=gt(Ow);return yE(e,t),null!=t?t:{}},getResetStyles:t=>[{"&":vE(t)}],getCommonStyle:(t,e,n,r)=>{const o=`[class^="${e}"], [class*=" ${e}"]`,i=n?`.${n}`:o,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return!1!==r&&(s={fontFamily:t.fontFamily,fontSize:t.fontSize}),{[i]:Object.assign(Object.assign(Object.assign({},s),a),{[o]:a})}},getCompUnitless:()=>Vx}),SE=Object.assign({},tt),{useId:kE}=SE;var _E=void 0===kE?()=>"":kE;function CE(t){const{children:e}=t,[,n]=Ux(),{motion:r}=n,o=tt.useRef(!1);return o.current=o.current||!1===r,o.current?tt.createElement(og,{motion:r},e):e}const OE=tt.memo(t=>{let{dropdownMatchSelectWidth:e}=t;return Kx("ConfigProvider").deprecated(void 0===e,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null});"production"!==process.env.NODE_ENV&&(OE.displayName="PropWarning");var ME="production"!==process.env.NODE_ENV?OE:()=>null,PE=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n};let AE=!1;process.env.NODE_ENV;const NE=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let DE;const IE=t=>{const{children:e,csp:n,autoInsertSpaceInButton:r,alert:o,anchor:i,form:a,locale:s,componentSize:l,direction:c,space:u,splitter:d,virtual:h,dropdownMatchSelectWidth:f,popupMatchSelectWidth:p,popupOverflow:m,legacyLocale:g,parentContext:b,iconPrefixCls:v,theme:y,componentDisabled:x,segmented:w,statistic:E,spin:S,calendar:k,carousel:_,cascader:C,collapse:O,typography:M,checkbox:P,descriptions:A,divider:N,drawer:D,skeleton:I,steps:T,image:R,layout:F,list:L,mentions:j,modal:z,progress:B,result:V,slider:$,breadcrumb:H,menu:W,pagination:U,input:Y,textArea:G,empty:q,badge:X,radio:K,rate:Z,switch:Q,transfer:J,avatar:et,message:nt,tag:rt,table:ot,card:it,tabs:at,timeline:st,timePicker:lt,upload:ct,notification:ut,tree:dt,colorPicker:ht,datePicker:ft,rangePicker:pt,flex:mt,wave:gt,dropdown:bt,warning:vt,tour:yt,floatButtonGroup:xt,variant:wt,inputNumber:Et,treeSelect:St}=t,kt=tt.useCallback((e,n)=>{const{prefixCls:r}=t;if(n)return n;const o=r||b.getPrefixCls("");return e?`${o}-${e}`:o},[b.getPrefixCls,t.prefixCls]),_t=v||b.iconPrefixCls||_w,Ct=n||b.csp;yE(_t,Ct);const Ot=function(t,e,n){var r,o;const i=Kx("ConfigProvider"),a=t||{},s=!1!==a.inherit&&e?e:Object.assign(Object.assign({},Tx),{hashed:null!==(r=null==e?void 0:e.hashed)&&void 0!==r?r:Tx.hashed,cssVar:null==e?void 0:e.cssVar}),l=_E();if("production"!==process.env.NODE_ENV){const t=a.cssVar||s.cssVar,e=!!("object"==typeof a.cssVar&&(null===(o=a.cssVar)||void 0===o?void 0:o.key)||l);"production"!==process.env.NODE_ENV&&i(!t||e,"breaking","Missing key in `cssVar` config. Please upgrade to React 18 or set `cssVar.key` manually in each ConfigProvider inside `cssVar` enabled ConfigProvider.")}return Cf(()=>{var r,o;if(!t)return e;const i=Object.assign({},s.components);Object.keys(t.components||{}).forEach(e=>{i[e]=Object.assign(Object.assign({},i[e]),t.components[e])});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],(t,e)=>t.some((t,n)=>!wv(t,e[n],!0)))}(y,b.theme,{prefixCls:kt("")});"production"!==process.env.NODE_ENV&&(AE=AE||!!Ot);const Mt={csp:Ct,autoInsertSpaceInButton:r,alert:o,anchor:i,locale:s||g,direction:c,space:u,splitter:d,virtual:h,popupMatchSelectWidth:null!=p?p:f,popupOverflow:m,getPrefixCls:kt,iconPrefixCls:_t,theme:Ot,segmented:w,statistic:E,spin:S,calendar:k,carousel:_,cascader:C,collapse:O,typography:M,checkbox:P,descriptions:A,divider:N,drawer:D,skeleton:I,steps:T,image:R,input:Y,textArea:G,layout:F,list:L,mentions:j,modal:z,progress:B,result:V,slider:$,breadcrumb:H,menu:W,pagination:U,empty:q,badge:X,radio:K,rate:Z,switch:Q,transfer:J,avatar:et,message:nt,tag:rt,table:ot,card:it,tabs:at,timeline:st,timePicker:lt,upload:ct,notification:ut,tree:dt,colorPicker:ht,datePicker:ft,rangePicker:pt,flex:mt,wave:gt,dropdown:bt,warning:vt,tour:yt,floatButtonGroup:xt,variant:wt,inputNumber:Et,treeSelect:St};if("production"!==process.env.NODE_ENV){Kx("ConfigProvider")(!("autoInsertSpaceInButton"in t),"deprecated","`autoInsertSpaceInButton` is deprecated. Please use `{ button: { autoInsertSpace: boolean }}` instead.")}const Pt=Object.assign({},b);Object.keys(Mt).forEach(t=>{void 0!==Mt[t]&&(Pt[t]=Mt[t])}),NE.forEach(e=>{const n=t[e];n&&(Pt[e]=n)}),void 0!==r&&(Pt.button=Object.assign({autoInsertSpace:r},Pt.button));const At=Cf(()=>Pt,Pt,(t,e)=>{const n=Object.keys(t),r=Object.keys(e);return n.length!==r.length||n.some(n=>t[n]!==e[n])}),Nt=tt.useMemo(()=>({prefixCls:_t,csp:Ct}),[_t,Ct]);let Dt=tt.createElement(tt.Fragment,null,tt.createElement(ME,{dropdownMatchSelectWidth:f}),e);const It=tt.useMemo(()=>{var t,e,n,r;return fg((null===(t=gw.Form)||void 0===t?void 0:t.defaultValidateMessages)||{},(null===(n=null===(e=At.locale)||void 0===e?void 0:e.Form)||void 0===n?void 0:n.defaultValidateMessages)||{},(null===(r=At.form)||void 0===r?void 0:r.validateMessages)||{},(null==a?void 0:a.validateMessages)||{})},[At,null==a?void 0:a.validateMessages]);Object.keys(It).length>0&&(Dt=tt.createElement(iw.Provider,{value:It},Dt)),s&&(Dt=tt.createElement(Sw,{locale:s,_ANT_MARK__:ww},Dt)),(_t||Ct)&&(Dt=tt.createElement(ow.Provider,{value:Nt},Dt)),l&&(Dt=tt.createElement(Tw,{size:l},Dt)),Dt=tt.createElement(CE,null,Dt);const Tt=tt.useMemo(()=>{const t=Ot||{},{algorithm:e,token:n,components:r,cssVar:o}=t,i=PE(t,["algorithm","token","components","cssVar"]),a=e&&(!Array.isArray(e)||e.length>0)?Iv(e):Ix,s={};Object.entries(r||{}).forEach(t=>{let[e,n]=t;const r=Object.assign({},n);"algorithm"in r&&(!0===r.algorithm?r.theme=a:(Array.isArray(r.algorithm)||"function"==typeof r.algorithm)&&(r.theme=Iv(r.algorithm)),delete r.algorithm),s[e]=r});const l=Object.assign(Object.assign({},ox),n);return Object.assign(Object.assign({},i),{theme:a,token:l,components:s,override:Object.assign({override:l},s),cssVar:o})},[Ot]);return y&&(Dt=tt.createElement(Rx.Provider,{value:Tt},Dt)),At.warning&&(Dt=tt.createElement(Xx.Provider,{value:At.warning},Dt)),void 0!==x&&(Dt=tt.createElement(Nw,{disabled:x},Dt)),tt.createElement(Ow.Provider,{value:At},Dt)},TE=t=>{const e=tt.useContext(Ow),n=tt.useContext(yw);return tt.createElement(IE,Object.assign({parentContext:e,legacyLocale:n},t))};TE.ConfigContext=Ow,TE.SizeContext=Rw,TE.config=t=>{const{prefixCls:e,iconPrefixCls:n,theme:r,holderRender:o}=t;void 0!==e&&(DE=e),r&&function(t){return Object.keys(t).some(t=>t.endsWith("Color"))}(r)&&("production"!==process.env.NODE_ENV&&Zx(!1,"ConfigProvider","`config` of css variable theme is not work in v5. Please use new `theme` config instead."),Pw(DE||kw,r))},TE.useConfig=function(){return{componentDisabled:gt(Dw),componentSize:gt(Rw)}},Object.defineProperty(TE,"SizeContext",{get:()=>("production"!==process.env.NODE_ENV&&Zx(!1,"ConfigProvider","ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."),Rw)}),"production"!==process.env.NODE_ENV&&(TE.displayName="ConfigProvider");const RE=(t,e,n)=>void 0!==n?n:`${t}-${e}`;var FE=(t,e,n,r)=>function(t){return e=>tt.createElement(TE,{theme:{token:{motion:!1,zIndexPopupBase:0}}},tt.createElement(t,Object.assign({},e)))}(o=>{const{prefixCls:i,style:a}=o,s=tt.useRef(null),[l,c]=tt.useState(0),[u,d]=tt.useState(0),[h,f]=cf(!1,{value:o.open}),{getPrefixCls:p}=tt.useContext(Ow),m=p(e||"select",i);tt.useEffect(()=>{if(f(!0),"undefined"!=typeof ResizeObserver){const t=new ResizeObserver(t=>{const e=t[0].target;c(e.offsetHeight+8),d(e.offsetWidth)}),e=setInterval(()=>{var r;const o=n?`.${n(m)}`:`.${m}-dropdown`,i=null===(r=s.current)||void 0===r?void 0:r.querySelector(o);i&&(clearInterval(e),t.observe(i))},10);return()=>{clearInterval(e),t.disconnect()}}},[]);let g=Object.assign(Object.assign({},o),{style:Object.assign(Object.assign({},a),{margin:0}),open:h,visible:h,getPopupContainer:()=>s.current});r&&(g=r(g));const b={paddingBottom:l,position:"relative",minWidth:u};return tt.createElement("div",{ref:s,style:b},tt.createElement(t,Object.assign({},g)))});const LE=()=>{const[,t]=Ux(),[e]=xw("Empty"),n=new _x(t.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return tt.createElement("svg",{style:n,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},tt.createElement("title",null,(null==e?void 0:e.description)||"Empty"),tt.createElement("g",{fill:"none",fillRule:"evenodd"},tt.createElement("g",{transform:"translate(24 31.67)"},tt.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),tt.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"}),tt.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)"}),tt.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"}),tt.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"})),tt.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"}),tt.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},tt.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),tt.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))};"production"!==process.env.NODE_ENV&&(LE.displayName="EmptyImage");var jE=LE;const zE=()=>{const[,t]=Ux(),[e]=xw("Empty"),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:o,colorBgContainer:i}=t,{borderColor:a,shadowColor:s,contentColor:l}=ft(()=>({borderColor:new _x(n).onBackground(i).toHexShortString(),shadowColor:new _x(r).onBackground(i).toHexShortString(),contentColor:new _x(o).onBackground(i).toHexShortString()}),[n,r,o,i]);return tt.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},tt.createElement("title",null,(null==e?void 0:e.description)||"Empty"),tt.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},tt.createElement("ellipse",{fill:s,cx:"32",cy:"33",rx:"32",ry:"7"}),tt.createElement("g",{fillRule:"nonzero",stroke:a},tt.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"}),tt.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:l}))))};"production"!==process.env.NODE_ENV&&(zE.displayName="SimpleImage");var BE=zE;const VE=t=>{const{componentCls:e,margin:n,marginXS:r,marginXL:o,fontSize:i,lineHeight:a}=t;return{[e]:{marginInline:r,fontSize:i,lineHeight:a,textAlign:"center",[`${e}-image`]:{height:t.emptyImgHeight,marginBottom:r,opacity:t.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${e}-description`]:{color:t.colorTextDescription},[`${e}-footer`]:{marginTop:n},"&-normal":{marginBlock:o,color:t.colorTextDescription,[`${e}-description`]:{color:t.colorTextDescription},[`${e}-image`]:{height:t.emptyImgHeightMD}},"&-small":{marginBlock:r,color:t.colorTextDescription,[`${e}-image`]:{height:t.emptyImgHeightSM}}}}};var $E=xE("Empty",t=>{const{componentCls:e,controlHeightLG:n,calc:r}=t,o=cE(t,{emptyImgCls:`${e}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return[VE(o)]}),HE=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n};const WE=tt.createElement(jE,null),UE=tt.createElement(BE,null),YE=t=>{var{className:e,rootClassName:n,prefixCls:r,image:o=WE,description:i,children:a,imageStyle:s,style:l}=t,c=HE(t,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:u,direction:d,empty:h}=tt.useContext(Ow),f=u("empty",r),[p,m,g]=$E(f),[b]=xw("Empty"),v=void 0!==i?i:null==b?void 0:b.description,y="string"==typeof v?v:"empty";let x=null;return x="string"==typeof o?tt.createElement("img",{alt:y,src:o}):o,p(tt.createElement("div",Object.assign({className:zh(m,g,f,null==h?void 0:h.className,{[`${f}-normal`]:o===UE,[`${f}-rtl`]:"rtl"===d},e,n),style:Object.assign(Object.assign({},null==h?void 0:h.style),l)},c),tt.createElement("div",{className:`${f}-image`,style:s},x),v&&tt.createElement("div",{className:`${f}-description`},v),a&&tt.createElement("div",{className:`${f}-footer`},a)))};YE.PRESENTED_IMAGE_DEFAULT=WE,YE.PRESENTED_IMAGE_SIMPLE=UE,"production"!==process.env.NODE_ENV&&(YE.displayName="Empty");var GE=YE;var qE=t=>{const{componentName:e}=t,{getPrefixCls:n}=gt(Ow),r=n("empty");switch(e){case"Table":case"List":return et.createElement(GE,{image:GE.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return et.createElement(GE,{image:GE.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case"Table.filter":return null;default:return et.createElement(GE,null)}};var XE=t=>{const[,,,,e]=Ux();return e?`${t}-css-var`:""};var KE=t=>{const e=et.useContext(Rw);return et.useMemo(()=>t?"string"==typeof t?null!=t?t:e:t instanceof Function?t(e):e:e,[t,e])};function ZE(){return ZE=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},ZE.apply(null,arguments)}function QE(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(-1!==e.indexOf(r))continue;n[r]=t[r]}return n}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],-1===e.indexOf(n)&&{}.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function JE(t,e){this.v=t,this.k=e}function tS(t,e,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}tS=function(t,e,n,r){function i(e,n){tS(t,e,function(t){return this._invoke(e,n,t)})}e?o?o(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(i("next",0),i("throw",1),i("return",2))},tS(t,e,n,r)}function eS(){
|
|
36
|
-
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
|
|
37
|
-
var t,e,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 tS(c,"_invoke",function(n,r,o){var i,s,l,c=0,u=o||[],d=!1,h={p:0,n:0,v:t,a:f,f:f.bind(t,4),d:function(e,n){return i=e,s=0,l=t,h.n=n,a}};function f(n,r){for(s=n,l=r,e=0;!d&&c&&!o&&e<u.length;e++){var o,i=u[e],f=h.p,p=i[2];n>3?(o=p===r)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=t):i[0]<=f&&((o=n<2&&f<i[1])?(s=0,h.v=r,h.n=i[1]):f<p&&(o=n<3||i[0]>r||r>p)&&(i[4]=n,i[5]=r,h.n=p,s=0))}if(o||n>1)return a;throw d=!0,r}return function(o,u,p){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,p),s=u,l=p;(e=s<2?t:l)||!d;){i||(s?s<3?(s>1&&(h.n=-1),f(s,l)):h.n=l:h.v=l);try{if(c=2,i){if(s||(o="next"),e=i[o]){if(!(e=e.call(i,l)))throw TypeError("iterator result is not an object");if(!e.done)return e;l=e.value,s<2&&(s=0)}else 1===s&&(e=i.return)&&e.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=t}else if((e=(d=h.n<0)?l:n.call(r,h))!==a)break}catch(e){i=t,s=1,l=e}finally{c=1}}return{value:e,done:d}}}(n,o,i),!0),c}var a={};function s(){}function l(){}function c(){}e=Object.getPrototypeOf;var u=[][r]?e(e([][r]())):(tS(e={},r,function(){return this}),e),d=c.prototype=s.prototype=Object.create(u);function h(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,c):(t.__proto__=c,tS(t,o,"GeneratorFunction")),t.prototype=Object.create(d),t}return l.prototype=c,tS(d,"constructor",c),tS(c,"constructor",l),l.displayName="GeneratorFunction",tS(c,o,"GeneratorFunction"),tS(d),tS(d,o,"Generator"),tS(d,r,function(){return this}),tS(d,"toString",function(){return"[object Generator]"}),(eS=function(){return{w:i,m:h}})()}function nS(t,e){function n(r,o,i,a){try{var s=t[r](o),l=s.value;return l instanceof JE?e.resolve(l.v).then(function(t){n("next",t,i,a)},function(t){n("throw",t,i,a)}):e.resolve(l).then(function(t){s.value=t,i(s)},function(t){return n("throw",t,i,a)})}catch(t){a(t)}}var r;this.next||(tS(nS.prototype),tS(nS.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),tS(this,"_invoke",function(t,o,i){function a(){return new e(function(e,r){n(t,i,e,r)})}return r=r?r.then(a,a):a()},!0)}function rS(t,e,n,r,o){return new nS(eS().w(t,e,n,r),o||Promise)}function oS(t,e,n,r,o){var i=rS(t,e,n,r,o);return i.next().then(function(t){return t.done?t.value:i.next()})}function iS(t){var e=Object(t),n=[];for(var r in e)n.unshift(r);return function t(){for(;n.length;)if((r=n.pop())in e)return t.value=r,t.done=!1,t;return t.done=!0,t}}function sS(t){return sS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sS(t)}function lS(t){if(null!=t){var e=t["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length))return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}throw new TypeError(sS(t)+" is not iterable")}function cS(){var t=eS(),e=t.m(cS),n=(Object.getPrototypeOf?Object.getPrototypeOf(e):e.__proto__).constructor;function r(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===n||"GeneratorFunction"===(e.displayName||e.name))}var o={throw:1,return:2,break:3,continue:3};function i(t){var e,n;return function(r){e||(e={stop:function(){return n(r.a,2)},catch:function(){return r.v},abrupt:function(t,e){return n(r.a,o[t],e)},delegateYield:function(t,o,i){return e.resultName=o,n(r.d,lS(t),i)},finish:function(t){return n(r.f,t)}},n=function(t,n,o){r.p=e.prev,r.n=e.next;try{return t(n,o)}finally{e.next=r.n}}),e.resultName&&(e[e.resultName]=r.v,e.resultName=void 0),e.sent=r.v,e.next=r.n;try{return t.call(this,e)}finally{r.p=e.prev,r.n=e.next}}}return(cS=function(){return{wrap:function(e,n,r,o){return t.w(i(e),n,r,o&&o.reverse())},isGeneratorFunction:r,mark:t.m,awrap:function(t,e){return new JE(t,e)},AsyncIterator:nS,async:function(t,e,n,o,a){return(r(e)?rS:oS)(i(t),e,n,o,a)},keys:iS,values:lS}})()}function uS(t,e,n,r,o,i,a){try{var s=t[i](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(r,o)}function dS(t){return function(){var e=this,n=arguments;return new Promise(function(r,o){var i=t.apply(e,n);function a(t){uS(i,r,o,a,s,"next",t)}function s(t){uS(i,r,o,a,s,"throw",t)}a(void 0)})}}function hS(t){var e=function(t,e){if("object"!=sS(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=sS(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==sS(e)?e:e+""}function fS(t,e,n){return(e=hS(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function pS(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function mS(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?pS(Object(n),!0).forEach(function(e){fS(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):pS(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function gS(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function bS(t,e){if(t){if("string"==typeof t)return gS(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?gS(t,e):void 0}}function vS(t){return function(t){if(Array.isArray(t))return gS(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||bS(t)||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 yS(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function xS(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,hS(r.key),r)}}function wS(t,e,n){return e&&xS(t.prototype,e),n&&xS(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function ES(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function SS(t,e){return SS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},SS(t,e)}function kS(t){return kS=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},kS(t)}function _S(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(_S=function(){return!!t})()}function CS(t){var e=_S();return function(){var n,r=kS(t);if(e){var o=kS(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"==sS(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return ES(t)}(this,n)}}var OS="RC_FORM_INTERNAL_HOOKS",MS=function(){gf(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},PS=tt.createContext({getFieldValue:MS,getFieldsValue:MS,getFieldError:MS,getFieldWarning:MS,getFieldsError:MS,isFieldsTouched:MS,isFieldTouched:MS,isFieldValidating:MS,isFieldsValidating:MS,resetFields:MS,setFields:MS,setFieldValue:MS,setFieldsValue:MS,validateFields:MS,submit:MS,getInternalHooks:function(){return MS(),{dispatch:MS,initEntityValue:MS,registerField:MS,useSubscribe:MS,setInitialValues:MS,destroyForm:MS,setCallbacks:MS,registerWatch:MS,getFields:MS,setValidateMessages:MS,setPreserve:MS,getInitialValue:MS}}}),AS=tt.createContext(null);function NS(t){return null==t?[]:Array.isArray(t)?t:[t]}function DS(t){return DS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},DS(t)}function IS(t){var e=function(t,e){if("object"!=DS(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=DS(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==DS(e)?e:e+""}function TS(t,e,n){return(e=IS(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function RS(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function FS(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?RS(Object(n),!0).forEach(function(e){TS(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):RS(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function LS(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function jS(t){return function(t){if(Array.isArray(t))return LS(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return LS(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?LS(t,e):void 0}}(t)||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 zS(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function BS(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,IS(r.key),r)}}function VS(t,e,n){return e&&BS(t.prototype,e),n&&BS(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function $S(){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 t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var HS=$S();function WS(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function US(t,e){return US=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},US(t,e)}function YS(t){return YS=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},YS(t)}function GS(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(GS=function(){return!!t})()}function qS(t){var e=GS();return function(){var n,r=YS(t);if(e){var o=YS(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"==DS(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return WS(t)}(this,n)}}function XS(t){var e="function"==typeof Map?new Map:void 0;return XS=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}}(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return function(t,e,n){if(GS())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,e);var o=new(t.bind.apply(t,r));return n&&US(o,n.prototype),o}(t,arguments,YS(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),US(n,t)},XS(t)}var KS=/%[sdj%]/g,ZS=function(){};function QS(t){if(!t||!t.length)return null;var e={};return t.forEach(function(t){var n=t.field;e[n]=e[n]||[],e[n].push(t)}),e}function JS(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var o=0,i=n.length;return"function"==typeof t?t.apply(null,n):"string"==typeof t?t.replace(KS,function(t){if("%%"===t)return"%";if(o>=i)return t;switch(t){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch(t){return"[Circular]"}break;default:return t}}):t}function tk(t,e){return null==t||(!("array"!==e||!Array.isArray(t)||t.length)||!(!function(t){return"string"===t||"url"===t||"hex"===t||"email"===t||"date"===t||"pattern"===t||"tel"===t}(e)||"string"!=typeof t||t))}function ek(t,e,n){var r=0,o=t.length;!function i(a){if(a&&a.length)n(a);else{var s=r;r+=1,s<o?e(t[s],i):n([])}}([])}"undefined"!=typeof process&&process.env&&"production"!==process.env.NODE_ENV&&"undefined"!=typeof window&&"undefined"!=typeof document&&(ZS=function(t,e){"undefined"!=typeof console&&console.warn&&"undefined"==typeof ASYNC_VALIDATOR_NO_WARNING&&e.every(function(t){return"string"==typeof t})&&console.warn(t,e)});var nk=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&US(t,e)}(e,XS(Error));var t=qS(e);function e(n,r){var o;return zS(this,e),TS(WS(o=t.call(this,"Async Validation Error")),"errors",void 0),TS(WS(o),"fields",void 0),o.errors=n,o.fields=r,o}return VS(e)}();function rk(t,e,n,r,o){if(e.first){var i=new Promise(function(e,i){var a=function(t){var e=[];return Object.keys(t).forEach(function(n){e.push.apply(e,jS(t[n]||[]))}),e}(t);ek(a,n,function(t){return r(t),t.length?i(new nk(t,QS(t))):e(o)})});return i.catch(function(t){return t}),i}var a=!0===e.firstFields?Object.keys(t):e.firstFields||[],s=Object.keys(t),l=s.length,c=0,u=[],d=new Promise(function(e,i){var d=function(t){if(u.push.apply(u,t),++c===l)return r(u),u.length?i(new nk(u,QS(u))):e(o)};s.length||(r(u),e(o)),s.forEach(function(e){var r=t[e];-1!==a.indexOf(e)?ek(r,n,d):function(t,e,n){var r=[],o=0,i=t.length;function a(t){r.push.apply(r,jS(t||[])),++o===i&&n(r)}t.forEach(function(t){e(t,a)})}(r,n,d)})});return d.catch(function(t){return t}),d}function ok(t,e){return function(n){var r,o;return r=t.fullFields?function(t,e){for(var n=t,r=0;r<e.length;r++){if(null==n)return n;n=n[e[r]]}return n}(e,t.fullFields):e[n.field||t.fullField],(o=n)&&void 0!==o.message?(n.field=n.field||t.fullField,n.fieldValue=r,n):{message:"function"==typeof n?n():n,fieldValue:r,field:n.field||t.fullField}}}function ik(t,e){if(e)for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];"object"===DS(r)&&"object"===DS(t[n])?t[n]=FS(FS({},t[n]),r):t[n]=r}return t}var sk,lk="enum",ck=function(t,e,n,r,o,i){!t.required||n.hasOwnProperty(t.field)&&!tk(e,i||t.type)||r.push(JS(o.messages.required,t.fullField))},uk=/^(([^<>()\[\]\\.,;:\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,}))$/,dk=/^(\+[0-9]{1,3}[-\s\u2011]?)?(\([0-9]{1,4}\)[-\s\u2011]?)?([0-9]+[-\s\u2011]?)*[0-9]+$/,hk=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,fk={integer:function(t){return fk.number(t)&&parseInt(t,10)===t},float:function(t){return fk.number(t)&&!fk.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch(t){return!1}},date:function(t){return"function"==typeof t.getTime&&"function"==typeof t.getMonth&&"function"==typeof t.getYear&&!isNaN(t.getTime())},number:function(t){return!isNaN(t)&&"number"==typeof t},object:function(t){return"object"===DS(t)&&!fk.array(t)},method:function(t){return"function"==typeof t},email:function(t){return"string"==typeof t&&t.length<=320&&!!t.match(uk)},tel:function(t){return"string"==typeof t&&t.length<=32&&!!t.match(dk)},url:function(t){return"string"==typeof t&&t.length<=2048&&!!t.match(function(){if(sk)return sk;var t="[a-fA-F\\d:]",e=function(e){return e&&e.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(t,")|(?<=").concat(t,")(?=\\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(t){return t&&t.exact?a:new RegExp("(?:".concat(e(t)).concat(n).concat(e(t),")|(?:").concat(e(t)).concat(i).concat(e(t),")"),"g")};c.v4=function(t){return t&&t.exact?s:new RegExp("".concat(e(t)).concat(n).concat(e(t)),"g")},c.v6=function(t){return t&&t.exact?l:new RegExp("".concat(e(t)).concat(i).concat(e(t)),"g")};var u=c.v4().source,d=c.v6().source,h="(?:".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 sk=new RegExp("(?:^".concat(h,"$)"),"i")}())},hex:function(t){return"string"==typeof t&&!!t.match(hk)}},pk={required:ck,whitespace:function(t,e,n,r,o){(/^\s+$/.test(e)||""===e)&&r.push(JS(o.messages.whitespace,t.fullField))},type:function(t,e,n,r,o){if(t.required&&void 0===e)ck(t,e,n,r,o);else{var i=t.type;["integer","float","array","regexp","object","method","email","tel","number","date","url","hex"].indexOf(i)>-1?fk[i](e)||r.push(JS(o.messages.types[i],t.fullField,t.type)):i&&DS(e)!==t.type&&r.push(JS(o.messages.types[i],t.fullField,t.type))}},range:function(t,e,n,r,o){var i="number"==typeof t.len,a="number"==typeof t.min,s="number"==typeof t.max,l=e,c=null,u="number"==typeof e,d="string"==typeof e,h=Array.isArray(e);if(u?c="number":d?c="string":h&&(c="array"),!c)return!1;h&&(l=e.length),d&&(l=e.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),i?l!==t.len&&r.push(JS(o.messages[c].len,t.fullField,t.len)):a&&!s&&l<t.min?r.push(JS(o.messages[c].min,t.fullField,t.min)):s&&!a&&l>t.max?r.push(JS(o.messages[c].max,t.fullField,t.max)):a&&s&&(l<t.min||l>t.max)&&r.push(JS(o.messages[c].range,t.fullField,t.min,t.max))},enum:function(t,e,n,r,o){t[lk]=Array.isArray(t[lk])?t[lk]:[],-1===t[lk].indexOf(e)&&r.push(JS(o.messages[lk],t.fullField,t[lk].join(", ")))},pattern:function(t,e,n,r,o){if(t.pattern)if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(e)||r.push(JS(o.messages.pattern.mismatch,t.fullField,e,t.pattern));else if("string"==typeof t.pattern){new RegExp(t.pattern).test(e)||r.push(JS(o.messages.pattern.mismatch,t.fullField,e,t.pattern))}}},mk=function(t,e,n,r,o){var i=t.type,a=[];if(t.required||!t.required&&r.hasOwnProperty(t.field)){if(tk(e,i)&&!t.required)return n();pk.required(t,e,r,a,o,i),tk(e,i)||pk.type(t,e,r,a,o)}n(a)},gk={string:function(t,e,n,r,o){var i=[];if(t.required||!t.required&&r.hasOwnProperty(t.field)){if(tk(e,"string")&&!t.required)return n();pk.required(t,e,r,i,o,"string"),tk(e,"string")||(pk.type(t,e,r,i,o),pk.range(t,e,r,i,o),pk.pattern(t,e,r,i,o),!0===t.whitespace&&pk.whitespace(t,e,r,i,o))}n(i)},method:function(t,e,n,r,o){var i=[];if(t.required||!t.required&&r.hasOwnProperty(t.field)){if(tk(e)&&!t.required)return n();pk.required(t,e,r,i,o),void 0!==e&&pk.type(t,e,r,i,o)}n(i)},number:function(t,e,n,r,o){var i=[];if(t.required||!t.required&&r.hasOwnProperty(t.field)){if(""===e&&(e=void 0),tk(e)&&!t.required)return n();pk.required(t,e,r,i,o),void 0!==e&&(pk.type(t,e,r,i,o),pk.range(t,e,r,i,o))}n(i)},boolean:function(t,e,n,r,o){var i=[];if(t.required||!t.required&&r.hasOwnProperty(t.field)){if(tk(e)&&!t.required)return n();pk.required(t,e,r,i,o),void 0!==e&&pk.type(t,e,r,i,o)}n(i)},regexp:function(t,e,n,r,o){var i=[];if(t.required||!t.required&&r.hasOwnProperty(t.field)){if(tk(e)&&!t.required)return n();pk.required(t,e,r,i,o),tk(e)||pk.type(t,e,r,i,o)}n(i)},integer:function(t,e,n,r,o){var i=[];if(t.required||!t.required&&r.hasOwnProperty(t.field)){if(tk(e)&&!t.required)return n();pk.required(t,e,r,i,o),void 0!==e&&(pk.type(t,e,r,i,o),pk.range(t,e,r,i,o))}n(i)},float:function(t,e,n,r,o){var i=[];if(t.required||!t.required&&r.hasOwnProperty(t.field)){if(tk(e)&&!t.required)return n();pk.required(t,e,r,i,o),void 0!==e&&(pk.type(t,e,r,i,o),pk.range(t,e,r,i,o))}n(i)},array:function(t,e,n,r,o){var i=[];if(t.required||!t.required&&r.hasOwnProperty(t.field)){if(null==e&&!t.required)return n();pk.required(t,e,r,i,o,"array"),null!=e&&(pk.type(t,e,r,i,o),pk.range(t,e,r,i,o))}n(i)},object:function(t,e,n,r,o){var i=[];if(t.required||!t.required&&r.hasOwnProperty(t.field)){if(tk(e)&&!t.required)return n();pk.required(t,e,r,i,o),void 0!==e&&pk.type(t,e,r,i,o)}n(i)},enum:function(t,e,n,r,o){var i=[];if(t.required||!t.required&&r.hasOwnProperty(t.field)){if(tk(e)&&!t.required)return n();pk.required(t,e,r,i,o),void 0!==e&&pk.enum(t,e,r,i,o)}n(i)},pattern:function(t,e,n,r,o){var i=[];if(t.required||!t.required&&r.hasOwnProperty(t.field)){if(tk(e,"string")&&!t.required)return n();pk.required(t,e,r,i,o),tk(e,"string")||pk.pattern(t,e,r,i,o)}n(i)},date:function(t,e,n,r,o){var i=[];if(t.required||!t.required&&r.hasOwnProperty(t.field)){if(tk(e,"date")&&!t.required)return n();var a;if(pk.required(t,e,r,i,o),!tk(e,"date"))a=e instanceof Date?e:new Date(e),pk.type(t,a,r,i,o),a&&pk.range(t,a.getTime(),r,i,o)}n(i)},url:mk,hex:mk,email:mk,tel:mk,required:function(t,e,n,r,o){var i=[],a=Array.isArray(e)?"array":DS(e);pk.required(t,e,r,i,o,a),n(i)},any:function(t,e,n,r,o){var i=[];if(t.required||!t.required&&r.hasOwnProperty(t.field)){if(tk(e)&&!t.required)return n();pk.required(t,e,r,i,o)}n(i)}},bk=function(){function t(e){zS(this,t),TS(this,"rules",null),TS(this,"_messages",HS),this.define(e)}return VS(t,[{key:"define",value:function(t){var e=this;if(!t)throw new Error("Cannot configure a schema with no rules");if("object"!==DS(t)||Array.isArray(t))throw new Error("Rules must be an object");this.rules={},Object.keys(t).forEach(function(n){var r=t[n];e.rules[n]=Array.isArray(r)?r:[r]})}},{key:"messages",value:function(t){return t&&(this._messages=ik($S(),t)),this._messages}},{key:"validate",value:function(e){var n=this,r=e,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===HS&&(a=$S()),ik(a,o.messages),o.messages=a}else o.messages=this.messages();var s={};(o.keys||Object.keys(this.rules)).forEach(function(t){var o=n.rules[t],i=r[t];o.forEach(function(o){var a=o;"function"==typeof a.transform&&(r===e&&(r=FS({},r)),null!=(i=r[t]=a.transform(i))&&(a.type=a.type||(Array.isArray(i)?"array":DS(i)))),(a="function"==typeof a?{validator:a}:FS({},a)).validator=n.getValidationMethod(a),a.validator&&(a.field=t,a.fullField=a.fullField||t,a.type=n.getType(a),s[t]=s[t]||[],s[t].push({rule:a,value:i,source:r,field:t}))})});var l={};return rk(s,o,function(e,n){var i,a=e.rule,s=!("object"!==a.type&&"array"!==a.type||"object"!==DS(a.fields)&&"object"!==DS(a.defaultField));function c(t,e){return FS(FS({},e),{},{fullField:"".concat(a.fullField,".").concat(t),fullFields:a.fullFields?[].concat(jS(a.fullFields),[t]):[t]})}function u(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],u=Array.isArray(i)?i:[i];!o.suppressWarning&&u.length&&t.warning("async-validator:",u),u.length&&void 0!==a.message&&null!==a.message&&(u=[].concat(a.message));var d=u.map(ok(a,r));if(o.first&&d.length)return l[a.field]=1,n(d);if(s){if(a.required&&!e.value)return void 0!==a.message?d=[].concat(a.message).map(ok(a,r)):o.error&&(d=[o.error(a,JS(o.messages.required,a.field))]),n(d);var h={};a.defaultField&&Object.keys(e.value).map(function(t){h[t]=a.defaultField}),h=FS(FS({},h),e.rule.fields);var f={};Object.keys(h).forEach(function(t){var e=h[t],n=Array.isArray(e)?e:[e];f[t]=n.map(c.bind(null,t))});var p=new t(f);p.messages(o.messages),e.rule.options&&(e.rule.options.messages=o.messages,e.rule.options.error=o.error),p.validate(e.value,e.rule.options||o,function(t){var e=[];d&&d.length&&e.push.apply(e,jS(d)),t&&t.length&&e.push.apply(e,jS(t)),n(e.length?e:null)})}else n(d)}if(s=s&&(a.required||!a.required&&e.value),a.field=e.field,a.asyncValidator)i=a.asyncValidator(a,e.value,u,e.source,o);else if(a.validator){try{i=a.validator(a,e.value,u,e.source,o)}catch(t){var d,h;null===(d=(h=console).error)||void 0===d||d.call(h,t),o.suppressValidatorError||setTimeout(function(){throw t},0),u(t.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(t){return u(t)})},function(t){!function(t){var e=[],n={};function o(t){var n;Array.isArray(t)?e=(n=e).concat.apply(n,jS(t)):e.push(t)}for(var a=0;a<t.length;a++)o(t[a]);e.length?(n=QS(e),i(e,n)):i(null,r)}(t)},r)}},{key:"getType",value:function(t){if(void 0===t.type&&t.pattern instanceof RegExp&&(t.type="pattern"),"function"!=typeof t.validator&&t.type&&!gk.hasOwnProperty(t.type))throw new Error(JS("Unknown rule type %s",t.type));return t.type||"string"}},{key:"getValidationMethod",value:function(t){if("function"==typeof t.validator)return t.validator;var e=Object.keys(t),n=e.indexOf("message");return-1!==n&&e.splice(n,1),1===e.length&&"required"===e[0]?gk.required:gk[this.getType(t)]||void 0}}]),t}();TS(bk,"register",function(t,e){if("function"!=typeof e)throw new Error("Cannot register a validator by type, validator is not a function");gk[t]=e}),TS(bk,"warning",ZS),TS(bk,"messages",HS),TS(bk,"validators",gk);var vk="'${name}' is not a valid ${type}",yk={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:vk,method:vk,array:vk,object:vk,number:vk,date:vk,boolean:vk,integer:vk,float:vk,regexp:vk,email:vk,url:vk,hex:vk},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}"}},xk=bk;function wk(t,e){return t.replace(/\\?\$\{\w+\}/g,function(t){if(t.startsWith("\\"))return t.slice(1);var n=t.slice(2,-1);return e[n]})}var Ek="CODE_LOGIC_ERROR";function Sk(t,e,n,r,o){return kk.apply(this,arguments)}function kk(){return kk=dS(cS().mark(function t(e,n,r,o,i){var a,s,l,c,u,d,h,f,p;return cS().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return delete(a=mS({},r)).ruleIndex,xk.warning=function(){},a.validator&&(s=a.validator,a.validator=function(){try{return s.apply(void 0,arguments)}catch(t){return console.error(t),Promise.reject(Ek)}}),l=null,a&&"array"===a.type&&a.defaultField&&(l=a.defaultField,delete a.defaultField),c=new xk(fS({},e,[a])),u=fg(yk,o.validateMessages),c.messages(u),d=[],t.prev=10,t.next=13,Promise.resolve(c.validate(fS({},e,n),mS({},o)));case 13:t.next=18;break;case 15:t.prev=15,t.t0=t.catch(10),t.t0.errors&&(d=t.t0.errors.map(function(t,e){var n=t.message,r=n===Ek?u.default:n;return tt.isValidElement(r)?tt.cloneElement(r,{key:"error_".concat(e)}):r}));case 18:if(d.length||!l){t.next=23;break}return t.next=21,Promise.all(n.map(function(t,n){return Sk("".concat(e,".").concat(n),t,l,o,i)}));case 21:return h=t.sent,t.abrupt("return",h.reduce(function(t,e){return[].concat(vS(t),vS(e))},[]));case 23:return f=mS(mS({},r),{},{name:e,enum:(r.enum||[]).join(", ")},i),p=d.map(function(t){return"string"==typeof t?wk(t,f):t}),t.abrupt("return",p);case 26:case"end":return t.stop()}},t,null,[[10,15]])})),kk.apply(this,arguments)}function _k(t,e,n,r,o,i){var a,s=t.join("."),l=n.map(function(t,e){var n=t.validator,r=mS(mS({},t),{},{ruleIndex:e});return n&&(r.validator=function(t,e,r){var o=!1,i=n(t,e,function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];Promise.resolve().then(function(){gf(!o,"Your validator function has already return a promise. `callback` will be ignored."),o||r.apply(void 0,e)})});gf(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(t){r(t||" ")})}),r}).sort(function(t,e){var n=t.warningOnly,r=t.ruleIndex,o=e.warningOnly,i=e.ruleIndex;return!!n==!!o?r-i:n?1:-1});if(!0===o)a=new Promise(function(){var t=dS(cS().mark(function t(n,o){var a,c,u;return cS().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:a=0;case 1:if(!(a<l.length)){t.next=12;break}return c=l[a],t.next=5,Sk(s,e,c,r,i);case 5:if(!(u=t.sent).length){t.next=9;break}return o([{errors:u,rule:c}]),t.abrupt("return");case 9:a+=1,t.next=1;break;case 12:n([]);case 13:case"end":return t.stop()}},t)}));return function(e,n){return t.apply(this,arguments)}}());else{var c=l.map(function(t){return Sk(s,e,t,r,i).then(function(e){return{errors:e,rule:t}})});a=(o?function(t){return Ok.apply(this,arguments)}(c):function(t){return Ck.apply(this,arguments)}(c)).then(function(t){return Promise.reject(t)})}return a.catch(function(t){return t}),a}function Ck(){return(Ck=dS(cS().mark(function t(e){return cS().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",Promise.all(e).then(function(t){var e;return(e=[]).concat.apply(e,vS(t))}));case 1:case"end":return t.stop()}},t)}))).apply(this,arguments)}function Ok(){return Ok=dS(cS().mark(function t(e){var n;return cS().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n=0,t.abrupt("return",new Promise(function(t){e.forEach(function(r){r.then(function(r){r.errors.length&&t([r]),(n+=1)===e.length&&t([])})})}));case 2:case"end":return t.stop()}},t)})),Ok.apply(this,arguments)}function Mk(t){return NS(t)}function Pk(t,e){var n={};return e.forEach(function(e){var r=sg(t,e);n=ug(n,e,r)}),n}function Ak(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return t&&t.some(function(t){return Nk(e,t,n)})}function Nk(t,e){return!(!t||!e)&&(!(!(arguments.length>2&&void 0!==arguments[2]&&arguments[2])&&t.length!==e.length)&&e.every(function(e,n){return t[n]===e}))}function Dk(t){var e=arguments.length<=1?void 0:arguments[1];return e&&e.target&&"object"===sS(e.target)&&t in e.target?e.target[t]:e}function Ik(t,e,n){var r=t.length;if(e<0||e>=r||n<0||n>=r)return t;var o=t[e],i=e-n;return i>0?[].concat(vS(t.slice(0,n)),[o],vS(t.slice(n,e)),vS(t.slice(e+1,r))):i<0?[].concat(vS(t.slice(0,e)),vS(t.slice(e+1,n+1)),[o],vS(t.slice(n+1,r))):t}var Tk=["name"],Rk=[];function Fk(t,e,n,r,o,i){return"function"==typeof t?t(e,n,"source"in i?{source:i.source}:{}):r!==o}var Lk=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&SS(t,e)}(e,tt.Component);var t=CS(e);function e(n){var r;(yS(this,e),fS(ES(r=t.call(this,n)),"state",{resetCount:0}),fS(ES(r),"cancelRegisterFunc",null),fS(ES(r),"mounted",!1),fS(ES(r),"touched",!1),fS(ES(r),"dirty",!1),fS(ES(r),"validatePromise",void 0),fS(ES(r),"prevValidating",void 0),fS(ES(r),"errors",Rk),fS(ES(r),"warnings",Rk),fS(ES(r),"cancelRegister",function(){var t=r.props,e=t.preserve,n=t.isListField,o=t.name;r.cancelRegisterFunc&&r.cancelRegisterFunc(n,e,Mk(o)),r.cancelRegisterFunc=null}),fS(ES(r),"getNamePath",function(){var t=r.props,e=t.name,n=t.fieldContext.prefixName;return void 0!==e?[].concat(vS(void 0===n?[]:n),vS(e)):[]}),fS(ES(r),"getRules",function(){var t=r.props,e=t.rules,n=void 0===e?[]:e,o=t.fieldContext;return n.map(function(t){return"function"==typeof t?t(o):t})}),fS(ES(r),"refresh",function(){r.mounted&&r.setState(function(t){return{resetCount:t.resetCount+1}})}),fS(ES(r),"metaCache",null),fS(ES(r),"triggerMetaEvent",function(t){var e=r.props.onMetaChange;if(e){var n=mS(mS({},r.getMeta()),{},{destroy:t});wv(r.metaCache,n)||e(n),r.metaCache=n}else r.metaCache=null}),fS(ES(r),"onStoreChange",function(t,e,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(t),h=r.getValue(c),f=e&&Ak(e,u);switch("valueUpdate"!==n.type||"external"!==n.source||wv(d,h)||(r.touched=!0,r.dirty=!0,r.validatePromise=null,r.errors=Rk,r.warnings=Rk,r.triggerMetaEvent()),n.type){case"reset":if(!e||f)return r.touched=!1,r.dirty=!1,r.validatePromise=void 0,r.errors=Rk,r.warnings=Rk,r.triggerMetaEvent(),null==l||l(),void r.refresh();break;case"remove":if(i&&Fk(i,t,c,d,h,n))return void r.reRender();break;case"setField":var p=n.data;if(f)return"touched"in p&&(r.touched=p.touched),"validating"in p&&!("originRCField"in p)&&(r.validatePromise=p.validating?Promise.resolve([]):null),"errors"in p&&(r.errors=p.errors||Rk),"warnings"in p&&(r.warnings=p.warnings||Rk),r.dirty=!0,r.triggerMetaEvent(),void r.reRender();if("value"in p&&Ak(e,u,!0))return void r.reRender();if(i&&!u.length&&Fk(i,t,c,d,h,n))return void r.reRender();break;case"dependenciesUpdate":if(s.map(Mk).some(function(t){return Ak(n.relatedFields,t)}))return void r.reRender();break;default:if(f||(!s.length||u.length||i)&&Fk(i,t,c,d,h,n))return void r.reRender()}!0===i&&r.reRender()}),fS(ES(r),"validateRules",function(t){var e=r.getNamePath(),n=r.getValue(),o=t||{},i=o.triggerName,a=o.validateOnly,s=void 0!==a&&a,l=Promise.resolve().then(dS(cS().mark(function o(){var a,s,c,u,d,h,f;return cS().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,h=r.getRules(),i&&(h=h.filter(function(t){return t}).filter(function(t){var e=t.validateTrigger;return!e||NS(e).includes(i)})),!d||!i){o.next=10;break}return o.next=8,new Promise(function(t){setTimeout(t,d)});case 8:if(r.validatePromise===l){o.next=10;break}return o.abrupt("return",[]);case 10:return(f=_k(e,n,h,t,c,u)).catch(function(t){return t}).then(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Rk;if(r.validatePromise===l){var e;r.validatePromise=null;var n=[],o=[];null===(e=t.forEach)||void 0===e||e.call(t,function(t){var e=t.rule.warningOnly,r=t.errors,i=void 0===r?Rk:r;e?o.push.apply(o,vS(i)):n.push.apply(n,vS(i))}),r.errors=n,r.warnings=o,r.triggerMetaEvent(),r.reRender()}}),o.abrupt("return",f);case 13:case"end":return o.stop()}},o)})));return s||(r.validatePromise=l,r.dirty=!0,r.errors=Rk,r.warnings=Rk,r.triggerMetaEvent(),r.reRender()),l}),fS(ES(r),"isFieldValidating",function(){return!!r.validatePromise}),fS(ES(r),"isFieldTouched",function(){return r.touched}),fS(ES(r),"isFieldDirty",function(){return!(!r.dirty&&void 0===r.props.initialValue)||void 0!==(0,r.props.fieldContext.getInternalHooks(OS).getInitialValue)(r.getNamePath())}),fS(ES(r),"getErrors",function(){return r.errors}),fS(ES(r),"getWarnings",function(){return r.warnings}),fS(ES(r),"isListField",function(){return r.props.isListField}),fS(ES(r),"isList",function(){return r.props.isList}),fS(ES(r),"isPreserve",function(){return r.props.preserve}),fS(ES(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}}),fS(ES(r),"getOnlyChild",function(t){if("function"==typeof t){var e=r.getMeta();return mS(mS({},r.getOnlyChild(t(r.getControlled(),e,r.props.fieldContext))),{},{isFunction:!0})}var n=Uf(t);return 1===n.length&&tt.isValidElement(n[0])?{child:n[0],isFunction:!1}:{child:n,isFunction:!1}}),fS(ES(r),"getValue",function(t){var e=r.props.fieldContext.getFieldsValue,n=r.getNamePath();return sg(t||e(!0),n)}),fS(ES(r),"getControlled",function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=r.props,n=e.name,o=e.trigger,i=e.validateTrigger,a=e.getValueFromEvent,s=e.normalize,l=e.valuePropName,c=e.getValueProps,u=e.fieldContext,d=void 0!==i?i:u.validateTrigger,h=r.getNamePath(),f=u.getInternalHooks,p=u.getFieldsValue,m=f(OS).dispatch,g=r.getValue(),b=c||function(t){return fS({},l,t)},v=t[o],y=void 0!==n?b(g):{};"production"!==process.env.NODE_ENV&&y&&Object.keys(y).forEach(function(t){gf("function"!=typeof y[t],"It's not recommended to generate dynamic function prop by `getValueProps`. Please pass it to child component directly (prop: ".concat(t,")"))});var x=mS(mS({},t),y);return x[o]=function(){var t;r.touched=!0,r.dirty=!0,r.triggerMetaEvent();for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];t=a?a.apply(void 0,n):Dk.apply(void 0,[l].concat(n)),s&&(t=s(t,g,p(!0))),m({type:"updateValue",namePath:h,value:t}),v&&v.apply(void 0,n)},NS(d||[]).forEach(function(t){var e=x[t];x[t]=function(){e&&e.apply(void 0,arguments);var n=r.props.rules;n&&n.length&&m({type:"validateField",namePath:h,triggerName:t})}}),x}),n.fieldContext)&&(0,(0,n.fieldContext.getInternalHooks)(OS).initEntityValue)(ES(r));return r}return wS(e,[{key:"componentDidMount",value:function(){var t=this.props,e=t.shouldUpdate,n=t.fieldContext;if(this.mounted=!0,n){var r=(0,n.getInternalHooks)(OS).registerField;this.cancelRegisterFunc=r(this)}!0===e&&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 t,e=this.state.resetCount,n=this.props.children,r=this.getOnlyChild(n),o=r.child;return r.isFunction?t=o:tt.isValidElement(o)?t=tt.cloneElement(o,this.getControlled(o.props)):(gf(!o,"`children` of Field is not validate ReactElement."),t=o),tt.createElement(tt.Fragment,{key:e},t)}}]),e}();function jk(t){var e=t.name,n=QE(t,Tk),r=tt.useContext(PS),o=tt.useContext(AS),i=void 0!==e?Mk(e):void 0,a="keep";return n.isListField||(a="_".concat((i||[]).join("_"))),"production"!==process.env.NODE_ENV&&!1===n.preserve&&n.isListField&&i.length<=1&&gf(!1,"`preserve` should not apply on Form.List fields."),tt.createElement(Lk,ZE({key:a,name:i,isListField:!!o},n,{fieldContext:r}))}function zk(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(t,e)||bS(t,e)||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.")}()}fS(Lk,"contextType",PS),fS(Lk,"defaultProps",{trigger:"onChange",valuePropName:"value"});var Bk="__@field_split__";function Vk(t){return t.map(function(t){return"".concat(sS(t),":").concat(t)}).join(Bk)}var $k=function(){function t(){yS(this,t),fS(this,"kvs",new Map)}return wS(t,[{key:"set",value:function(t,e){this.kvs.set(Vk(t),e)}},{key:"get",value:function(t){return this.kvs.get(Vk(t))}},{key:"update",value:function(t,e){var n=e(this.get(t));n?this.set(t,n):this.delete(t)}},{key:"delete",value:function(t){this.kvs.delete(Vk(t))}},{key:"map",value:function(t){return vS(this.kvs.entries()).map(function(e){var n=zk(e,2),r=n[0],o=n[1],i=r.split(Bk);return t({key:i.map(function(t){var e=zk(t.match(/^([^:]*):(.*)$/),3),n=e[1],r=e[2];return"number"===n?Number(r):r}),value:o})})}},{key:"toJSON",value:function(){var t={};return this.map(function(e){var n=e.key,r=e.value;return t[n.join(".")]=r,null}),t}}]),t}(),Hk=["name"],Wk=wS(function t(e){var n=this;yS(this,t),fS(this,"formHooked",!1),fS(this,"forceRootUpdate",void 0),fS(this,"subscribable",!0),fS(this,"store",{}),fS(this,"fieldEntities",[]),fS(this,"initialValues",{}),fS(this,"callbacks",{}),fS(this,"validateMessages",null),fS(this,"preserve",null),fS(this,"lastValidatePromise",null),fS(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}}),fS(this,"getInternalHooks",function(t){return t===OS?(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}):(gf(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),fS(this,"useSubscribe",function(t){n.subscribable=t}),fS(this,"prevWithoutPreserves",null),fS(this,"setInitialValues",function(t,e){if(n.initialValues=t||{},e){var r,o=fg(t,n.store);null===(r=n.prevWithoutPreserves)||void 0===r||r.map(function(e){var n=e.key;o=ug(o,n,sg(t,n))}),n.prevWithoutPreserves=null,n.updateStore(o)}}),fS(this,"destroyForm",function(t){if(t)n.updateStore({});else{var e=new $k;n.getFieldEntities(!0).forEach(function(t){n.isMergedPreserve(t.isPreserve())||e.set(t.getNamePath(),!0)}),n.prevWithoutPreserves=e}}),fS(this,"getInitialValue",function(t){var e=sg(n.initialValues,t);return t.length?fg(e):e}),fS(this,"setCallbacks",function(t){n.callbacks=t}),fS(this,"setValidateMessages",function(t){n.validateMessages=t}),fS(this,"setPreserve",function(t){n.preserve=t}),fS(this,"watchList",[]),fS(this,"registerWatch",function(t){return n.watchList.push(t),function(){n.watchList=n.watchList.filter(function(e){return e!==t})}}),fS(this,"notifyWatch",function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(n.watchList.length){var e=n.getFieldsValue(),r=n.getFieldsValue(!0);n.watchList.forEach(function(n){n(e,r,t)})}}),fS(this,"timeoutId",null),fS(this,"warningUnhooked",function(){"production"===process.env.NODE_ENV||n.timeoutId||"undefined"==typeof window||(n.timeoutId=setTimeout(function(){n.timeoutId=null,n.formHooked||gf(!1,"Instance created by `useForm` is not connected to any Form element. Forget to pass `form` prop?")}))}),fS(this,"updateStore",function(t){n.store=t}),fS(this,"getFieldEntities",function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?n.fieldEntities.filter(function(t){return t.getNamePath().length}):n.fieldEntities}),fS(this,"getFieldsMap",function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=new $k;return n.getFieldEntities(t).forEach(function(t){var n=t.getNamePath();e.set(n,t)}),e}),fS(this,"getFieldEntitiesForNamePathList",function(t){if(!t)return n.getFieldEntities(!0);var e=n.getFieldsMap(!0);return t.map(function(t){var n=Mk(t);return e.get(n)||{INVALIDATE_NAME_PATH:Mk(t)}})}),fS(this,"getFieldsValue",function(t,e){var r,o,i;if(n.warningUnhooked(),!0===t||Array.isArray(t)?(r=t,o=e):t&&"object"===sS(t)&&(i=t.strict,o=t.filter),!0===r&&!o)return n.store;var a=n.getFieldEntitiesForNamePathList(Array.isArray(r)?r:null),s=[];return a.forEach(function(t){var e,n,a,l,c="INVALIDATE_NAME_PATH"in t?t.INVALIDATE_NAME_PATH:t.getNamePath();if(i){if(null!==(a=(l=t).isList)&&void 0!==a&&a.call(l))return}else if(!r&&null!==(e=(n=t).isListField)&&void 0!==e&&e.call(n))return;if(o){var u="getMeta"in t?t.getMeta():null;o(u)&&s.push(c)}else s.push(c)}),Pk(n.store,s.map(Mk))}),fS(this,"getFieldValue",function(t){n.warningUnhooked();var e=Mk(t);return sg(n.store,e)}),fS(this,"getFieldsError",function(t){return n.warningUnhooked(),n.getFieldEntitiesForNamePathList(t).map(function(e,n){return e&&!("INVALIDATE_NAME_PATH"in e)?{name:e.getNamePath(),errors:e.getErrors(),warnings:e.getWarnings()}:{name:Mk(t[n]),errors:[],warnings:[]}})}),fS(this,"getFieldError",function(t){n.warningUnhooked();var e=Mk(t);return n.getFieldsError([e])[0].errors}),fS(this,"getFieldWarning",function(t){n.warningUnhooked();var e=Mk(t);return n.getFieldsError([e])[0].warnings}),fS(this,"isFieldsTouched",function(){n.warningUnhooked();for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var o,i=e[0],a=e[1],s=!1;0===e.length?o=null:1===e.length?Array.isArray(i)?(o=i.map(Mk),s=!1):(o=null,s=i):(o=i.map(Mk),s=a);var l=n.getFieldEntities(!0),c=function(t){return t.isFieldTouched()};if(!o)return s?l.every(function(t){return c(t)||t.isList()}):l.some(c);var u=new $k;o.forEach(function(t){u.set(t,[])}),l.forEach(function(t){var e=t.getNamePath();o.forEach(function(n){n.every(function(t,n){return e[n]===t})&&u.update(n,function(e){return[].concat(vS(e),[t])})})});var d=function(t){return t.some(c)},h=u.map(function(t){return t.value});return s?h.every(d):h.some(d)}),fS(this,"isFieldTouched",function(t){return n.warningUnhooked(),n.isFieldsTouched([t])}),fS(this,"isFieldsValidating",function(t){n.warningUnhooked();var e=n.getFieldEntities();if(!t)return e.some(function(t){return t.isFieldValidating()});var r=t.map(Mk);return e.some(function(t){var e=t.getNamePath();return Ak(r,e)&&t.isFieldValidating()})}),fS(this,"isFieldValidating",function(t){return n.warningUnhooked(),n.isFieldsValidating([t])}),fS(this,"resetWithFieldInitialValue",function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=new $k,r=n.getFieldEntities(!0);r.forEach(function(t){var n=t.props.initialValue,r=t.getNamePath();if(void 0!==n){var o=e.get(r)||new Set;o.add({entity:t,value:n}),e.set(r,o)}});var o;t.entities?o=t.entities:t.namePathList?(o=[],t.namePathList.forEach(function(t){var n,r=e.get(t);r&&(n=o).push.apply(n,vS(vS(r).map(function(t){return t.entity})))})):o=r,o.forEach(function(r){if(void 0!==r.props.initialValue){var o=r.getNamePath();if(void 0!==n.getInitialValue(o))gf(!1,"Form already set 'initialValues' with path '".concat(o.join("."),"'. Field can not overwrite it."));else{var i=e.get(o);if(i&&i.size>1)gf(!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()||t.skipExist&&void 0!==a||n.updateStore(ug(n.store,o,vS(i)[0].value))}}}})}),fS(this,"resetFields",function(t){n.warningUnhooked();var e=n.store;if(!t)return n.updateStore(fg(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(e,null,{type:"reset"}),void n.notifyWatch();var r=t.map(Mk);r.forEach(function(t){var e=n.getInitialValue(t);n.updateStore(ug(n.store,t,e))}),n.resetWithFieldInitialValue({namePathList:r}),n.notifyObservers(e,r,{type:"reset"}),n.notifyWatch(r)}),fS(this,"setFields",function(t){n.warningUnhooked();var e=n.store,r=[];t.forEach(function(t){var o=t.name,i=QE(t,Hk),a=Mk(o);r.push(a),"value"in i&&n.updateStore(ug(n.store,a,i.value)),n.notifyObservers(e,[a],{type:"setField",data:t})}),n.notifyWatch(r)}),fS(this,"getFields",function(){return n.getFieldEntities(!0).map(function(t){var e=t.getNamePath(),r=mS(mS({},t.getMeta()),{},{name:e,value:n.getFieldValue(e)});return Object.defineProperty(r,"originRCField",{value:!0}),r})}),fS(this,"initEntityValue",function(t){var e=t.props.initialValue;if(void 0!==e){var r=t.getNamePath();void 0===sg(n.store,r)&&n.updateStore(ug(n.store,r,e))}}),fS(this,"isMergedPreserve",function(t){var e=void 0!==t?t:n.preserve;return null==e||e}),fS(this,"registerField",function(t){n.fieldEntities.push(t);var e=t.getNamePath();if(n.notifyWatch([e]),void 0!==t.props.initialValue){var r=n.store;n.resetWithFieldInitialValue({entities:[t],skipExist:!0}),n.notifyObservers(r,[t.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(e){return e!==t}),!n.isMergedPreserve(o)&&(!r||i.length>1)){var a=r?void 0:n.getInitialValue(e);if(e.length&&n.getFieldValue(e)!==a&&n.fieldEntities.every(function(t){return!Nk(t.getNamePath(),e)})){var s=n.store;n.updateStore(ug(s,e,a,!0)),n.notifyObservers(s,[e],{type:"remove"}),n.triggerDependenciesUpdate(s,e)}}n.notifyWatch([e])}}),fS(this,"dispatch",function(t){switch(t.type){case"updateValue":var e=t.namePath,r=t.value;n.updateValue(e,r);break;case"validateField":var o=t.namePath,i=t.triggerName;n.validateFields([o],{triggerName:i})}}),fS(this,"notifyObservers",function(t,e,r){if(n.subscribable){var o=mS(mS({},r),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(n){(0,n.onStoreChange)(t,e,o)})}else n.forceRootUpdate()}),fS(this,"triggerDependenciesUpdate",function(t,e){var r=n.getDependencyChildrenFields(e);return r.length&&n.validateFields(r),n.notifyObservers(t,r,{type:"dependenciesUpdate",relatedFields:[e].concat(vS(r))}),r}),fS(this,"updateValue",function(t,e){var r=Mk(t),o=n.store;n.updateStore(ug(n.store,r,e)),n.notifyObservers(o,[r],{type:"valueUpdate",source:"internal"}),n.notifyWatch([r]);var i=n.triggerDependenciesUpdate(o,r),a=n.callbacks.onValuesChange;a&&a(Pk(n.store,[r]),n.getFieldsValue());n.triggerOnFieldsChange([r].concat(vS(i)))}),fS(this,"setFieldsValue",function(t){n.warningUnhooked();var e=n.store;if(t){var r=fg(n.store,t);n.updateStore(r)}n.notifyObservers(e,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),fS(this,"setFieldValue",function(t,e){n.setFields([{name:t,value:e}])}),fS(this,"getDependencyChildrenFields",function(t){var e=new Set,r=[],o=new $k;n.getFieldEntities().forEach(function(t){(t.props.dependencies||[]).forEach(function(e){var n=Mk(e);o.update(n,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Set;return e.add(t),e})})});return function t(n){(o.get(n)||new Set).forEach(function(n){if(!e.has(n)){e.add(n);var o=n.getNamePath();n.isFieldDirty()&&o.length&&(r.push(o),t(o))}})}(t),r}),fS(this,"triggerOnFieldsChange",function(t,e){var r=n.callbacks.onFieldsChange;if(r){var o=n.getFields();if(e){var i=new $k;e.forEach(function(t){var e=t.name,n=t.errors;i.set(e,n)}),o.forEach(function(t){t.errors=i.get(t.name)||t.errors})}var a=o.filter(function(e){var n=e.name;return Ak(t,n)});a.length&&r(a,o)}}),fS(this,"validateFields",function(t,e){var r,o;n.warningUnhooked(),Array.isArray(t)||"string"==typeof t||"string"==typeof e?(r=t,o=e):o=t;var i=!!r,a=i?r.map(Mk):[],s=[],l=String(Date.now()),c=new Set,u=o||{},d=u.recursive,h=u.dirty;n.getFieldEntities(!0).forEach(function(t){if(i||a.push(t.getNamePath()),t.props.rules&&t.props.rules.length&&(!h||t.isFieldDirty())){var e=t.getNamePath();if(c.add(e.join(l)),!i||Ak(a,e,d)){var r=t.validateRules(mS({validateMessages:mS(mS({},yk),n.validateMessages)},o));s.push(r.then(function(){return{name:e,errors:[],warnings:[]}}).catch(function(t){var n,r=[],o=[];return null===(n=t.forEach)||void 0===n||n.call(t,function(t){var e=t.rule.warningOnly,n=t.errors;e?o.push.apply(o,vS(n)):r.push.apply(r,vS(n))}),r.length?Promise.reject({name:e,errors:r,warnings:o}):{name:e,errors:r,warnings:o}}))}}});var f=function(t){var e=!1,n=t.length,r=[];return t.length?new Promise(function(o,i){t.forEach(function(t,a){t.catch(function(t){return e=!0,t}).then(function(t){n-=1,r[a]=t,n>0||(e&&i(r),o(r))})})}):Promise.resolve([])}(s);n.lastValidatePromise=f,f.catch(function(t){return t}).then(function(t){var e=t.map(function(t){return t.name});n.notifyObservers(n.store,e,{type:"validateFinish"}),n.triggerOnFieldsChange(e,t)});var p=f.then(function(){return n.lastValidatePromise===f?Promise.resolve(n.getFieldsValue(a)):Promise.reject([])}).catch(function(t){var e=t.filter(function(t){return t&&t.errors.length});return Promise.reject({values:n.getFieldsValue(a),errorFields:e,outOfDate:n.lastValidatePromise!==f})});p.catch(function(t){return t});var m=a.filter(function(t){return c.has(t.join(l))});return n.triggerOnFieldsChange(m),p}),fS(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(t){var e=n.callbacks.onFinish;if(e)try{e(t)}catch(t){console.error(t)}}).catch(function(t){var e=n.callbacks.onFinishFailed;e&&e(t)})}),this.forceRootUpdate=e});function Uk(t){var e=tt.useRef(),n=zk(tt.useState({}),2)[1];if(!e.current)if(t)e.current=t;else{var r=new Wk(function(){n({})});e.current=r.getForm()}return[e.current]}var Yk=tt.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),Gk=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],qk=function(t,e){var n=t.name,r=t.initialValues,o=t.fields,i=t.form,a=t.preserve,s=t.children,l=t.component,c=void 0===l?"form":l,u=t.validateMessages,d=t.validateTrigger,h=void 0===d?"onChange":d,f=t.onValuesChange,p=t.onFieldsChange,m=t.onFinish,g=t.onFinishFailed,b=t.clearOnDestroy,v=QE(t,Gk),y=tt.useRef(null),x=tt.useContext(Yk),w=zk(Uk(i),1)[0],E=w.getInternalHooks(OS),S=E.useSubscribe,k=E.setInitialValues,_=E.setCallbacks,C=E.setValidateMessages,O=E.setPreserve,M=E.destroyForm;tt.useImperativeHandle(e,function(){return mS(mS({},w),{},{nativeElement:y.current})}),tt.useEffect(function(){return x.registerForm(n,w),function(){x.unregisterForm(n)}},[x,w,n]),C(mS(mS({},x.validateMessages),u)),_({onValuesChange:f,onFieldsChange:function(t){if(x.triggerFormChange(n,t),p){for(var e=arguments.length,r=new Array(e>1?e-1:0),o=1;o<e;o++)r[o-1]=arguments[o];p.apply(void 0,[t].concat(r))}},onFinish:function(t){x.triggerFormFinish(n,t),m&&m(t)},onFinishFailed:g}),O(a);var P,A=tt.useRef(null);k(r,!A.current),A.current||(A.current=!0),tt.useEffect(function(){return function(){return M(b)}},[]);var N="function"==typeof s;N?P=s(w.getFieldsValue(!0),w):P=s;S(!N);var D=tt.useRef();tt.useEffect(function(){(function(t,e){if(t===e)return!0;if(!t&&e||t&&!e)return!1;if(!t||!e||"object"!==sS(t)||"object"!==sS(e))return!1;var n=Object.keys(t),r=Object.keys(e);return vS(new Set([].concat(n,r))).every(function(n){var r=t[n],o=e[n];return"function"==typeof r&&"function"==typeof o||r===o})})(D.current||[],o||[])||w.setFields(o||[]),D.current=o},[o,w]);var I=tt.useMemo(function(){return mS(mS({},w),{},{validateTrigger:h})},[w,h]),T=tt.createElement(AS.Provider,{value:null},tt.createElement(PS.Provider,{value:I},P));return!1===c?T:tt.createElement(c,ZE({},v,{ref:y,onSubmit:function(t){t.preventDefault(),t.stopPropagation(),w.submit()},onReset:function(t){var e;t.preventDefault(),w.resetFields(),null===(e=v.onReset)||void 0===e||e.call(v,t)}}),T)};function Xk(t){try{return JSON.stringify(t)}catch(t){return Math.random()}}var Kk="production"!==process.env.NODE_ENV?function(t){var e=t.join("__RC_FIELD_FORM_SPLIT__");gf(ct(e).current===e,"`useWatch` is not support dynamic `namePath`. Please provide static instead.")}:function(){};var Zk=tt.forwardRef(qk);Zk.FormProvider=function(t){var e=t.validateMessages,n=t.onFormChange,r=t.onFormFinish,o=t.children,i=tt.useContext(Yk),a=tt.useRef({});return tt.createElement(Yk.Provider,{value:mS(mS({},i),{},{validateMessages:mS(mS({},i.validateMessages),e),triggerFormChange:function(t,e){n&&n(t,{changedFields:e,forms:a.current}),i.triggerFormChange(t,e)},triggerFormFinish:function(t,e){r&&r(t,{values:e,forms:a.current}),i.triggerFormFinish(t,e)},registerForm:function(t,e){t&&(a.current=mS(mS({},a.current),{},fS({},t,e))),i.registerForm(t,e)},unregisterForm:function(t){var e=mS({},a.current);delete e[t],a.current=e,i.unregisterForm(t)}})},o)},Zk.Field=jk,Zk.List=function(t){var e=t.name,n=t.initialValue,r=t.children,o=t.rules,i=t.validateTrigger,a=t.isListField,s=tt.useContext(PS),l=tt.useContext(AS),c=tt.useRef({keys:[],id:0}).current,u=tt.useMemo(function(){var t=Mk(s.prefixName)||[];return[].concat(vS(t),vS(Mk(e)))},[s.prefixName,e]),d=tt.useMemo(function(){return mS(mS({},s),{},{prefixName:u})},[s,u]),h=tt.useMemo(function(){return{getKey:function(t){var e=u.length,n=t[e];return[c.keys[n],t.slice(e+1)]}}},[u]);return"function"!=typeof r?(gf(!1,"Form.List only accepts function as children."),null):tt.createElement(AS.Provider,{value:h},tt.createElement(PS.Provider,{value:d},tt.createElement(jk,{name:[],shouldUpdate:function(t,e,n){return"internal"!==n.source&&t!==e},rules:o,validateTrigger:i,initialValue:n,isList:!0,isListField:null!=a?a:!!l},function(t,e){var n=t.value,o=void 0===n?[]:n,i=t.onChange,a=s.getFieldValue,l=function(){return a(u||[])||[]},d={add:function(t,e){var n=l();e>=0&&e<=n.length?(c.keys=[].concat(vS(c.keys.slice(0,e)),[c.id],vS(c.keys.slice(e))),i([].concat(vS(n.slice(0,e)),[t],vS(n.slice(e))))):("production"!==process.env.NODE_ENV&&(e<0||e>n.length)&&gf(!1,"The second parameter of the add function should be a valid positive number."),c.keys=[].concat(vS(c.keys),[c.id]),i([].concat(vS(n),[t]))),c.id+=1},remove:function(t){var e=l(),n=new Set(Array.isArray(t)?t:[t]);n.size<=0||(c.keys=c.keys.filter(function(t,e){return!n.has(e)}),i(e.filter(function(t,e){return!n.has(e)})))},move:function(t,e){if(t!==e){var n=l();t<0||t>=n.length||e<0||e>=n.length||(c.keys=Ik(c.keys,t,e),i(Ik(n,t,e)))}}},h=o||[];return Array.isArray(h)||(h=[],"production"!==process.env.NODE_ENV&&gf(!1,"Current value of '".concat(u.join(" > "),"' is not an array type."))),r(h.map(function(t,e){var n=c.keys[e];return void 0===n&&(c.keys[e]=c.id,n=c.keys[e],c.id+=1),{name:e,key:n,isListField:!0}}),d,e)})))},Zk.useForm=Uk,Zk.useWatch=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=e[0],o=e[1],i=void 0===o?{}:o,a=function(t){return t&&!!t._init}(i)?{form:i}:i,s=a.form,l=zk(lt(),2),c=l[0],u=l[1],d=ft(function(){return Xk(c)},[c]),h=ct(d);h.current=d;var f=gt(PS),p=s||f,m=p&&p._init;"production"!==process.env.NODE_ENV&&gf(2===e.length&&!s||m,"useWatch requires a form instance since it can not auto detect from context.");var g=Mk(r),b=ct(g);return b.current=g,Kk(g),ut(function(){if(m){var t=p.getFieldsValue,e=(0,p.getInternalHooks)(OS).registerWatch,n=function(t,e){var n=a.preserve?e:t;return"function"==typeof r?r(n):sg(n,b.current)},o=e(function(t,e){var r=n(t,e),o=Xk(r);h.current!==o&&(h.current=o,u(r))}),i=n(t(),t(!0));return c!==i&&u(i),o}},[m]),c};const Qk=tt.createContext({});"production"!==process.env.NODE_ENV&&(Qk.displayName="FormItemInputContext");const Jk=nt(void 0);var t_=function(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;var r,o;const{variant:i,[t]:a}=gt(Ow),s=gt(Jk),l=null==a?void 0:a.variant;let c;c=void 0!==e?e:!1===n?"borderless":null!==(o=null!==(r=null!=s?s:l)&&void 0!==r?r:i)&&void 0!==o?o:"outlined";return[c,Cw.includes(c)]};const e_=tt.createContext(null);function n_(t,e){return t||(t=>{const e={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:"scroll"===t?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},e),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},e),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},e),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},e),{points:["br","tr"],offset:[0,-4]})}})(e)}function r_(t,e,n){const{focusElCls:r,focus:o,borderElCls:i}=n,a=i?"> *":"",s=["hover",o?"focus":null,"active"].filter(Boolean).map(t=>`&:${t} ${a}`).join(",");return{[`&-item:not(${e}-last-item)`]:{marginInlineEnd:t.calc(t.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[s]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}function o_(t,e,n){const{borderElCls:r}=n,o=r?`> ${r}`:"";return{[`&-item:not(${e}-first-item):not(${e}-last-item) ${o}`]:{borderRadius:0},[`&-item:not(${e}-last-item)${e}-first-item`]:{[`& ${o}, &${t}-sm ${o}, &${t}-lg ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${e}-first-item)${e}-last-item`]:{[`& ${o}, &${t}-sm ${o}, &${t}-lg ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function i_(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{focus:!0};const{componentCls:n}=t,r=`${n}-compact`;return{[r]:Object.assign(Object.assign({},r_(t,r,e)),o_(n,r,e))}}const s_=t=>({animationDuration:t,animationFillMode:"both"}),l_=t=>({animationDuration:t,animationFillMode:"both"}),c_=function(t,e,n,r){const o=arguments.length>4&&void 0!==arguments[4]&&arguments[4]?"&":"";return{[`\n ${o}${t}-enter,\n ${o}${t}-appear\n `]:Object.assign(Object.assign({},s_(r)),{animationPlayState:"paused"}),[`${o}${t}-leave`]:Object.assign(Object.assign({},l_(r)),{animationPlayState:"paused"}),[`\n ${o}${t}-enter${t}-enter-active,\n ${o}${t}-appear${t}-appear-active\n `]:{animationName:e,animationPlayState:"running"},[`${o}${t}-leave${t}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},u_=new Oy("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),d_=new Oy("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),h_=new Oy("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),f_=new Oy("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),p_=new Oy("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),m_=new Oy("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),g_={"move-up":{inKeyframes:new Oy("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 Oy("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:u_,outKeyframes:d_},"move-left":{inKeyframes:h_,outKeyframes:f_},"move-right":{inKeyframes:p_,outKeyframes:m_}},b_=(t,e)=>{const{antCls:n}=t,r=`${n}-${e}`,{inKeyframes:o,outKeyframes:i}=g_[e];return[c_(r,o,i,t.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{opacity:0,animationTimingFunction:t.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:t.motionEaseInOutCirc}}]},v_=new Oy("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),y_=new Oy("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),x_=new Oy("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),w_=new Oy("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),E_=new Oy("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),S_=new Oy("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),k_=new Oy("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),__=new Oy("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),C_={"slide-up":{inKeyframes:v_,outKeyframes:y_},"slide-down":{inKeyframes:x_,outKeyframes:w_},"slide-left":{inKeyframes:E_,outKeyframes:S_},"slide-right":{inKeyframes:k_,outKeyframes:__}},O_=(t,e)=>{const{antCls:n}=t,r=`${n}-${e}`,{inKeyframes:o,outKeyframes:i}=C_[e];return[c_(r,o,i,t.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:t.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:t.motionEaseInQuint}}]},M_=t=>{const{optionHeight:e,optionFontSize:n,optionLineHeight:r,optionPadding:o}=t;return{position:"relative",display:"block",minHeight:e,padding:o,color:t.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}};var P_=t=>{const{antCls:e,componentCls:n}=t,r=`${n}-item`,o=`&${e}-slide-up-enter${e}-slide-up-enter-active`,i=`&${e}-slide-up-appear${e}-slide-up-appear-active`,a=`&${e}-slide-up-leave${e}-slide-up-leave-active`,s=`${n}-dropdown-placement-`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},bE(t)),{position:"absolute",top:-9999,zIndex:t.zIndexPopup,boxSizing:"border-box",padding:t.paddingXXS,overflow:"hidden",fontSize:t.fontSize,fontVariant:"initial",backgroundColor:t.colorBgElevated,borderRadius:t.borderRadiusLG,outline:"none",boxShadow:t.boxShadowSecondary,[`\n ${o}${s}bottomLeft,\n ${i}${s}bottomLeft\n `]:{animationName:v_},[`\n ${o}${s}topLeft,\n ${i}${s}topLeft,\n ${o}${s}topRight,\n ${i}${s}topRight\n `]:{animationName:x_},[`${a}${s}bottomLeft`]:{animationName:y_},[`\n ${a}${s}topLeft,\n ${a}${s}topRight\n `]:{animationName:w_},"&-hidden":{display:"none"},[r]:Object.assign(Object.assign({},M_(t)),{cursor:"pointer",transition:`background ${t.motionDurationSlow} ease`,borderRadius:t.borderRadiusSM,"&-group":{color:t.colorTextDescription,fontSize:t.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},gE),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:t.optionActiveBg},[`&-selected:not(${r}-option-disabled)`]:{color:t.optionSelectedColor,fontWeight:t.optionSelectedFontWeight,backgroundColor:t.optionSelectedBg,[`${r}-option-state`]:{color:t.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:t.colorBgContainerDisabled},color:t.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:t.calc(t.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},M_(t)),{color:t.colorTextDisabled})}),"&-rtl":{direction:"rtl"}})},O_(t,"slide-up"),O_(t,"slide-down"),b_(t,"move-up"),b_(t,"move-down")]};const A_=t=>{const{componentCls:e,iconCls:n,borderRadiusSM:r,motionDurationSlow:o,paddingXS:i,multipleItemColorDisabled:a,multipleItemBorderColorDisabled:s,colorIcon:l,colorIconHover:c,INTERNAL_FIXED_ITEM_MARGIN:u}=t,d=`${e}-selection-overflow`;return{[d]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${e}-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:t.calc(u).mul(2).equal(),paddingInlineStart:i,paddingInlineEnd:t.calc(i).div(2).equal(),[`${e}-disabled&`]:{color:a,borderColor:s,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:t.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}})}}}},N_=(t,e)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:r}=t,o=`${n}-selection-overflow`,i=t.multipleSelectItemHeight,a=(t=>{const{multipleSelectItemHeight:e,selectHeight:n,lineWidth:r}=t;return t.calc(n).sub(e).div(2).sub(r).equal()})(t),s=e?`${n}-${e}`:"",l=(t=>{const{multipleSelectItemHeight:e,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:o}=t,i=t.max(t.calc(n).sub(r).equal(),0);return{basePadding:i,containerPadding:t.max(t.calc(i).sub(o).equal(),0),itemHeight:Bv(e),itemLineHeight:Bv(t.calc(e).sub(t.calc(t.lineWidth).mul(2)).equal())}})(t);return{[`${n}-multiple${s}`]:Object.assign(Object.assign({},A_(t)),{[`${n}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",height:"100%",paddingInline:l.basePadding,paddingBlock:l.containerPadding,borderRadius:t.borderRadius,[`${n}-disabled&`]:{background:t.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${Bv(r)} 0`,lineHeight:Bv(i),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:l.itemHeight,lineHeight:Bv(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:t.calc(t.inputPaddingHorizontalBase).sub(a).equal(),"\n &-input,\n &-mirror\n ":{height:i,fontFamily:t.fontFamily,lineHeight:Bv(i),transition:`all ${t.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:t.inputPaddingHorizontalBase,insetInlineEnd:t.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${t.motionDurationSlow}`}})}};function D_(t,e){const{componentCls:n}=t,r=e?`${n}-${e}`:"",o={[`${n}-multiple${r}`]:{fontSize:t.fontSize,[`${n}-selector`]:{[`${n}-show-search&`]:{cursor:"text"}},[`\n &${n}-show-arrow ${n}-selector,\n &${n}-allow-clear ${n}-selector\n `]:{paddingInlineEnd:t.calc(t.fontSizeIcon).add(t.controlPaddingHorizontal).equal()}}};return[N_(t,e),o]}var I_=t=>{const{componentCls:e}=t,n=cE(t,{selectHeight:t.controlHeightSM,multipleSelectItemHeight:t.multipleItemHeightSM,borderRadius:t.borderRadiusSM,borderRadiusSM:t.borderRadiusXS}),r=cE(t,{fontSize:t.fontSizeLG,selectHeight:t.controlHeightLG,multipleSelectItemHeight:t.multipleItemHeightLG,borderRadius:t.borderRadiusLG,borderRadiusSM:t.borderRadius});return[D_(t),D_(n,"sm"),{[`${e}-multiple${e}-sm`]:{[`${e}-selection-placeholder`]:{insetInline:t.calc(t.controlPaddingHorizontalSM).sub(t.lineWidth).equal()},[`${e}-selection-search`]:{marginInlineStart:2}}},D_(r,"lg")]};function T_(t,e){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:o,fontSizeIcon:i}=t,a=t.calc(t.controlHeight).sub(t.calc(t.lineWidth).mul(2)).equal(),s=t.calc(r).add(i).equal(),l=e?`${n}-${e}`:"";return{[`${n}-single${l}`]:{fontSize:t.fontSize,height:t.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},bE(t,!0)),{display:"flex",borderRadius:o,[`${n}-selection-search`]:{position:"absolute",top:0,insetInlineStart:r,insetInlineEnd:Bv(s),bottom:0,"&-input":{width:"100%",WebkitAppearance:"textfield"}},[`\n ${n}-selection-item,\n ${n}-selection-placeholder\n `]:{padding:0,lineHeight:Bv(a),transition:`all ${t.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:t.showArrowPaddingInlineEnd},[`&${n}-open ${n}-selection-item`]:{color:t.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",padding:`0 ${Bv(r)}`,[`${n}-selection-search-input`]:{height:a},"&:after":{lineHeight:Bv(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 ${Bv(r)}`,"&:after":{display:"none"}}}}}}}function R_(t){const{componentCls:e}=t,n=t.calc(t.controlPaddingHorizontalSM).sub(t.lineWidth).equal();return[T_(t),T_(cE(t,{controlHeight:t.controlHeightSM,borderRadius:t.borderRadiusSM}),"sm"),{[`${e}-single${e}-sm`]:{[`&:not(${e}-customize-input)`]:{[`${e}-selection-search`]:{insetInlineStart:n,insetInlineEnd:n},[`${e}-selector`]:{padding:`0 ${Bv(n)}`},[`&${e}-show-arrow ${e}-selection-search`]:{insetInlineEnd:t.calc(n).add(t.calc(t.fontSize).mul(1.5)).equal()},[`\n &${e}-show-arrow ${e}-selection-item,\n &${e}-show-arrow ${e}-selection-placeholder\n `]:{paddingInlineEnd:t.calc(t.fontSize).mul(1.5).equal()}}}},T_(cE(t,{controlHeight:t.singleItemHeightLG,fontSize:t.fontSizeLG,borderRadius:t.borderRadiusLG}),"lg")]}const F_=(t,e)=>{const{componentCls:n,antCls:r,controlOutlineWidth:o}=t;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${Bv(t.lineWidth)} ${t.lineType} ${e.borderColor}`,background:t.selectorBg},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:e.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:e.activeBorderColor,boxShadow:`0 0 0 ${Bv(o)} ${e.activeOutlineColor}`,outline:0}}}},L_=(t,e)=>({[`&${t.componentCls}-status-${e.status}`]:Object.assign({},F_(t,e))}),j_=t=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},F_(t,{borderColor:t.colorBorder,hoverBorderHover:t.hoverBorderColor,activeBorderColor:t.activeBorderColor,activeOutlineColor:t.activeOutlineColor})),L_(t,{status:"error",borderColor:t.colorError,hoverBorderHover:t.colorErrorHover,activeBorderColor:t.colorError,activeOutlineColor:t.colorErrorOutline})),L_(t,{status:"warning",borderColor:t.colorWarning,hoverBorderHover:t.colorWarningHover,activeBorderColor:t.colorWarning,activeOutlineColor:t.colorWarningOutline})),{[`&${t.componentCls}-disabled`]:{[`&:not(${t.componentCls}-customize-input) ${t.componentCls}-selector`]:{background:t.colorBgContainerDisabled,color:t.colorTextDisabled}},[`&${t.componentCls}-multiple ${t.componentCls}-selection-item`]:{background:t.multipleItemBg,border:`${Bv(t.lineWidth)} ${t.lineType} ${t.multipleItemBorderColor}`}})}),z_=(t,e)=>{const{componentCls:n,antCls:r}=t;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:e.bg,border:`${Bv(t.lineWidth)} ${t.lineType} transparent`,color:e.color},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{background:e.hoverBg},[`${n}-focused& ${n}-selector`]:{background:t.selectorBg,borderColor:e.activeBorderColor,outline:0}}}},B_=(t,e)=>({[`&${t.componentCls}-status-${e.status}`]:Object.assign({},z_(t,e))}),V_=t=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},z_(t,{bg:t.colorFillTertiary,hoverBg:t.colorFillSecondary,activeBorderColor:t.activeBorderColor,color:t.colorText})),B_(t,{status:"error",bg:t.colorErrorBg,hoverBg:t.colorErrorBgHover,activeBorderColor:t.colorError,color:t.colorError})),B_(t,{status:"warning",bg:t.colorWarningBg,hoverBg:t.colorWarningBgHover,activeBorderColor:t.colorWarning,color:t.colorWarning})),{[`&${t.componentCls}-disabled`]:{[`&:not(${t.componentCls}-customize-input) ${t.componentCls}-selector`]:{borderColor:t.colorBorder,background:t.colorBgContainerDisabled,color:t.colorTextDisabled}},[`&${t.componentCls}-multiple ${t.componentCls}-selection-item`]:{background:t.colorBgContainer,border:`${Bv(t.lineWidth)} ${t.lineType} ${t.colorSplit}`}})}),$_=t=>({"&-borderless":{[`${t.componentCls}-selector`]:{background:"transparent",borderColor:"transparent"},[`&${t.componentCls}-disabled`]:{[`&:not(${t.componentCls}-customize-input) ${t.componentCls}-selector`]:{color:t.colorTextDisabled}},[`&${t.componentCls}-multiple ${t.componentCls}-selection-item`]:{background:t.multipleItemBg,border:`${Bv(t.lineWidth)} ${t.lineType} ${t.multipleItemBorderColor}`},[`&${t.componentCls}-status-error`]:{[`${t.componentCls}-selection-item`]:{color:t.colorError}},[`&${t.componentCls}-status-warning`]:{[`${t.componentCls}-selection-item`]:{color:t.colorWarning}}}});var H_=t=>({[t.componentCls]:Object.assign(Object.assign(Object.assign({},j_(t)),V_(t)),$_(t))});const W_=t=>{const{componentCls:e}=t;return{position:"relative",transition:`all ${t.motionDurationMid} ${t.motionEaseInOut}`,input:{cursor:"pointer"},[`${e}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${e}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},U_=t=>{const{componentCls:e}=t;return{[`${e}-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"}}}},Y_=t=>{const{antCls:e,componentCls:n,inputPaddingHorizontalBase:r,iconCls:o}=t;return{[n]:Object.assign(Object.assign({},bE(t)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},W_(t)),U_(t)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},gE),{[`> ${e}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},gE),{flex:1,color:t.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:t.fontSizeIcon,marginTop:t.calc(t.fontSizeIcon).mul(-1).div(2).equal(),color:t.colorTextQuaternary,fontSize:t.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${t.motionDurationSlow} ease`,[o]:{verticalAlign:"top",transition:`transform ${t.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:t.fontSizeIcon,height:t.fontSizeIcon,marginTop:t.calc(t.fontSizeIcon).mul(-1).div(2).equal(),color:t.colorTextQuaternary,fontSize:t.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${t.motionDurationMid} ease, opacity ${t.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:t.colorTextTertiary}},[`&:hover ${n}-clear`]:{opacity:1,background:t.colorBgBase,borderRadius:"50%"}}),[`${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:t.calc(r).add(t.fontSize).add(t.paddingXS).equal()}}}},G_=t=>{const{componentCls:e}=t;return[{[e]:{[`&${e}-in-form-item`]:{width:"100%"}}},Y_(t),R_(t),I_(t),P_(t),{[`${e}-rtl`]:{direction:"rtl"}},i_(t,{borderElCls:`${e}-selector`,focusElCls:`${e}-focused`})]};var q_=xE("Select",(t,e)=>{let{rootPrefixCls:n}=e;const r=cE(t,{rootPrefixCls:n,inputPaddingHorizontalBase:t.calc(t.paddingSM).sub(1).equal(),multipleSelectItemHeight:t.multipleItemHeight,selectHeight:t.controlHeight});return[G_(r),H_(r)]},t=>{const{fontSize:e,lineHeight:n,lineWidth:r,controlHeight:o,controlHeightSM:i,controlHeightLG:a,paddingXXS:s,controlPaddingHorizontal:l,zIndexPopupBase:c,colorText:u,fontWeightStrong:d,controlItemBgActive:h,controlItemBgHover:f,colorBgContainer:p,colorFillSecondary:m,colorBgContainerDisabled:g,colorTextDisabled:b,colorPrimaryHover:v,colorPrimary:y,controlOutline:x}=t,w=2*s,E=2*r,S=Math.min(o-w,o-E),k=Math.min(i-w,i-E),_=Math.min(a-w,a-E);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(s/2),zIndexPopup:c+50,optionSelectedColor:u,optionSelectedFontWeight:d,optionSelectedBg:h,optionActiveBg:f,optionPadding:`${(o-e*n)/2}px ${l}px`,optionFontSize:e,optionLineHeight:n,optionHeight:o,selectorBg:p,clearBg:p,singleItemHeightLG:a,multipleItemBg:m,multipleItemBorderColor:"transparent",multipleItemHeight:S,multipleItemHeightSM:k,multipleItemHeightLG:_,multipleSelectorBgDisabled:g,multipleItemColorDisabled:b,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(1.25*t.fontSize),hoverBorderColor:v,activeBorderColor:y,activeOutlineColor:x}},{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});function X_(){return X_=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},X_.apply(null,arguments)}var K_={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 Z_(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function Q_(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Z_(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Z_(t,e):void 0}}(t,e)||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 J_(t){return J_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},J_(t)}function tC(t){var e=function(t,e){if("object"!=J_(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=J_(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==J_(e)?e:e+""}function eC(t,e,n){return(e=tC(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function nC(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(-1!==e.indexOf(r))continue;n[r]=t[r]}return n}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],-1===e.indexOf(n)&&{}.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function rC(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function oC(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?rC(Object(n),!0).forEach(function(e){eC(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):rC(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function iC(t){return"object"===J_(t)&&"string"==typeof t.name&&"string"==typeof t.theme&&("object"===J_(t.icon)||"function"==typeof t.icon)}function sC(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(t).reduce(function(e,n){var r,o=t[n];if("class"===n)e.className=o,delete e.class;else delete e[n],e[(r=n,r.replace(/-(.)/g,function(t,e){return e.toUpperCase()}))]=o;return e},{})}function lC(t,e,n){return n?et.createElement(t.tag,oC(oC({key:e},sC(t.attrs)),n),(t.children||[]).map(function(n,r){return lC(n,"".concat(e,"-").concat(t.tag,"-").concat(r))})):et.createElement(t.tag,oC({key:e},sC(t.attrs)),(t.children||[]).map(function(n,r){return lC(n,"".concat(e,"-").concat(t.tag,"-").concat(r))}))}function cC(t){return Vy(t)[0]}function uC(t){return t?Array.isArray(t)?t:[t]:[]}var dC=["icon","className","onClick","style","primaryColor","secondaryColor"],hC={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var fC=function(t){var e,n,r,o,i,a,s,l,c=t.icon,u=t.className,d=t.onClick,h=t.style,f=t.primaryColor,p=t.secondaryColor,m=nC(t,dC),g=tt.useRef(),b=hC;if(f&&(b={primaryColor:f,secondaryColor:p||cC(f)}),e=g,n=gt(ow),r=n.csp,o=n.prefixCls,i=n.layer,a="\n.anticon {\n display: inline-flex;\n align-items: center;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n",o&&(a=a.replace(/anticon/g,o)),i&&(a="@layer ".concat(i," {\n").concat(a,"\n}")),ut(function(){var t=Zm(e.current);$m(a,"@ant-design-icons",{prepend:!i,csp:r,attachTo:t})},[]),s=iC(c),l="icon should be icon definiton, but got ".concat(c),gf(s,"[@ant-design/icons] ".concat(l)),!iC(c))return null;var v=c;return v&&"function"==typeof v.icon&&(v=oC(oC({},v),{},{icon:v.icon(b.primaryColor,b.secondaryColor)})),lC(v.icon,"svg-".concat(v.name),oC(oC({className:u,onClick:d,style:h,"data-icon":v.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},m),{},{ref:g}))};fC.displayName="IconReact",fC.getTwoToneColors=function(){return oC({},hC)},fC.setTwoToneColors=function(t){var e=t.primaryColor,n=t.secondaryColor;hC.primaryColor=e,hC.secondaryColor=n||cC(e),hC.calculated=!!n};var pC=fC;function mC(t){var e=Q_(uC(t),2),n=e[0],r=e[1];return pC.setTwoToneColors({primaryColor:n,secondaryColor:r})}var gC=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];mC(Zy.primary);var bC=tt.forwardRef(function(t,e){var n=t.className,r=t.icon,o=t.spin,i=t.rotate,a=t.tabIndex,s=t.onClick,l=t.twoToneColor,c=nC(t,gC),u=tt.useContext(ow),d=u.prefixCls,h=void 0===d?"anticon":d,f=u.rootClassName,p=zh(f,h,eC(eC({},"".concat(h,"-").concat(r.name),!!r.name),"".concat(h,"-spin"),!!o||"loading"===r.name),n),m=a;void 0===m&&s&&(m=-1);var g=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,b=Q_(uC(l),2),v=b[0],y=b[1];return tt.createElement("span",X_({role:"img","aria-label":r.name},c,{ref:e,tabIndex:m,onClick:s,className:p}),tt.createElement(pC,{icon:r,primaryColor:v,secondaryColor:y,style:g}))});bC.displayName="AntdIcon",bC.getTwoToneColor=function(){var t=pC.getTwoToneColors();return t.calculated?[t.primaryColor,t.secondaryColor]:t.primaryColor},bC.setTwoToneColor=mC;var vC=bC,yC=function(t,e){return tt.createElement(vC,X_({},t,{ref:e,icon:K_}))},xC=tt.forwardRef(yC);"production"!==process.env.NODE_ENV&&(xC.displayName="CheckOutlined");var wC={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"},EC=function(t,e){return tt.createElement(vC,X_({},t,{ref:e,icon:wC}))},SC=tt.forwardRef(EC);"production"!==process.env.NODE_ENV&&(SC.displayName="CloseCircleFilled");var kC={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"},_C=function(t,e){return tt.createElement(vC,X_({},t,{ref:e,icon:kC}))},CC=tt.forwardRef(_C);"production"!==process.env.NODE_ENV&&(CC.displayName="CloseOutlined");var OC={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"},MC=function(t,e){return tt.createElement(vC,X_({},t,{ref:e,icon:OC}))},PC=tt.forwardRef(MC);"production"!==process.env.NODE_ENV&&(PC.displayName="DownOutlined");var AC={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"},NC=function(t,e){return tt.createElement(vC,X_({},t,{ref:e,icon:AC}))},DC=tt.forwardRef(NC);"production"!==process.env.NODE_ENV&&(DC.displayName="LoadingOutlined");var IC={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"},TC=function(t,e){return tt.createElement(vC,X_({},t,{ref:e,icon:IC}))},RC=tt.forwardRef(TC);"production"!==process.env.NODE_ENV&&(RC.displayName="SearchOutlined");var FC=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n};const LC="SECRET_COMBOBOX_MODE_DO_NOT_USE",jC=(t,e)=>{var n;const{prefixCls:r,bordered:o,className:i,rootClassName:a,getPopupContainer:s,popupClassName:l,dropdownClassName:c,listHeight:u=256,placement:d,listItemHeight:h,size:f,disabled:p,notFoundContent:m,status:g,builtinPlacements:b,dropdownMatchSelectWidth:v,popupMatchSelectWidth:y,direction:x,style:w,allowClear:E,variant:S,dropdownStyle:k,transitionName:_,tagRender:C,maxCount:O}=t,M=FC(t,["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:P,getPrefixCls:A,renderEmpty:N,direction:D,virtual:I,popupMatchSelectWidth:T,popupOverflow:R,select:F}=tt.useContext(Ow),[,L]=Ux(),j=null!=h?h:null==L?void 0:L.controlHeight,z=A("select",r),B=A(),V=null!=x?x:D,{compactSize:$,compactItemClassnames:H}=((t,e)=>{const n=tt.useContext(e_),r=tt.useMemo(()=>{if(!n)return"";const{compactDirection:r,isFirstItem:o,isLastItem:i}=n,a="vertical"===r?"-vertical-":"-";return zh(`${t}-compact${a}item`,{[`${t}-compact${a}first-item`]:o,[`${t}-compact${a}last-item`]:i,[`${t}-compact${a}item-rtl`]:"rtl"===e})},[t,e,n]);return{compactSize:null==n?void 0:n.compactSize,compactDirection:null==n?void 0:n.compactDirection,compactItemClassnames:r}})(z,V),[W,U]=t_("select",S,o),Y=XE(z),[G,q,X]=q_(z,Y),K=tt.useMemo(()=>{const{mode:e}=t;if("combobox"!==e)return e===LC?"combobox":e},[t.mode]),Z="multiple"===K||"tags"===K,Q=function(t,e){return void 0!==e?e:null!==t}(t.suffixIcon,t.showArrow),J=null!==(n=null!=y?y:v)&&void 0!==n?n:T,{status:et,hasFeedback:nt,isFormItemInput:rt,feedbackIcon:ot}=tt.useContext(Qk),it=((t,e)=>e||t)(et,g);let at;at=void 0!==m?m:"combobox"===K?null:(null==N?void 0:N("Select"))||tt.createElement(qE,{componentName:"Select"});const{suffixIcon:st,itemIcon:lt,removeIcon:ct,clearIcon:ut}=function(t){let{suffixIcon:e,clearIcon:n,menuItemSelectedIcon:r,removeIcon:o,loading:i,multiple:a,hasFeedback:s,prefixCls:l,showSuffixIcon:c,feedbackIcon:u,showArrow:d,componentName:h}=t;"production"!==process.env.NODE_ENV&&Kx(h).deprecated(!n,"clearIcon","allowClear={{ clearIcon: React.ReactNode }}");const f=null!=n?n:tt.createElement(SC,null),p=t=>null!==e||s||d?tt.createElement(tt.Fragment,null,!1!==c&&t,s&&u):null;let m=null;if(void 0!==e)m=p(e);else if(i)m=p(tt.createElement(DC,{spin:!0}));else{const t=`${l}-suffix`;m=e=>{let{open:n,showSearch:r}=e;return p(n&&r?tt.createElement(RC,{className:t}):tt.createElement(PC,{className:t}))}}let g=null;g=void 0!==r?r:a?tt.createElement(xC,null):null;let b=null;return b=void 0!==o?o:tt.createElement(CC,null),{clearIcon:f,suffixIcon:m,itemIcon:g,removeIcon:b}}(Object.assign(Object.assign({},M),{multiple:Z,hasFeedback:nt,feedbackIcon:ot,showSuffixIcon:Q,prefixCls:z,componentName:"Select"})),dt=!0===E?{clearIcon:ut}:E,ht=zb(M,["suffixIcon","itemIcon"]),ft=zh(l||c,{[`${z}-dropdown-${V}`]:"rtl"===V},a,X,Y,q),pt=KE(t=>{var e;return null!==(e=null!=f?f:$)&&void 0!==e?e:t}),mt=tt.useContext(Dw),gt=null!=p?p:mt,bt=zh({[`${z}-lg`]:"large"===pt,[`${z}-sm`]:"small"===pt,[`${z}-rtl`]:"rtl"===V,[`${z}-${W}`]:U,[`${z}-in-form-item`]:rt},function(t,e,n){return zh({[`${t}-status-success`]:"success"===e,[`${t}-status-warning`]:"warning"===e,[`${t}-status-error`]:"error"===e,[`${t}-status-validating`]:"validating"===e,[`${t}-has-feedback`]:n})}(z,it,nt),H,null==F?void 0:F.className,i,a,X,Y,q),vt=tt.useMemo(()=>void 0!==d?d:"rtl"===V?"bottomRight":"bottomLeft",[d,V]);if("production"!==process.env.NODE_ENV){const e=Kx("Select");e.deprecated(!c,"dropdownClassName","popupClassName"),e.deprecated(void 0===v,"dropdownMatchSelectWidth","popupMatchSelectWidth"),"production"!==process.env.NODE_ENV&&e(!("showArrow"in t),"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."),e.deprecated(!("bordered"in t),"bordered","variant"),"production"!==process.env.NODE_ENV&&e(!(void 0!==O&&!Z),"usage","`maxCount` only works with mode `multiple` or `tags`")}const[yt]=rw("SelectLike",null==k?void 0:k.zIndex);return G(tt.createElement(xv,Object.assign({ref:e,virtual:I,showSearch:null==F?void 0:F.showSearch},ht,{style:Object.assign(Object.assign({},null==F?void 0:F.style),w),dropdownMatchSelectWidth:J,transitionName:RE(B,"slide-up",_),builtinPlacements:n_(b,R),listHeight:u,listItemHeight:j,mode:K,prefixCls:z,placement:vt,direction:V,suffixIcon:st,menuItemSelectedIcon:lt,removeIcon:ct,allowClear:dt,notFoundContent:at,className:bt,getPopupContainer:s||P,dropdownClassName:ft,disabled:gt,dropdownStyle:Object.assign(Object.assign({},k),{zIndex:yt}),maxCount:Z?O:void 0,tagRender:Z?C:void 0})))};"production"!==process.env.NODE_ENV&&(jC.displayName="Select");const zC=tt.forwardRef(jC),BC=FE(zC);zC.SECRET_COMBOBOX_MODE_DO_NOT_USE=LC,zC.Option=jb,zC.OptGroup=Lb,zC._InternalPanelDoNotUseOrYouWillBeFired=BC,"production"!==process.env.NODE_ENV&&(zC.displayName="Select");var VC=zC;function $C(t){var e=t.children,n=t.placement,r=void 0===n?"bottomRight":n,o=t.overlayClassName,i=void 0===o?XC:o,a=t.arrowPointAtCenter,s=void 0===a||a,l=t.trigger,c=void 0===l?"hover":l,u=t.color,d=t.title,h=t.content,f=t.mouseEnterDelay,p=void 0===f?0:f,m=t.mouseLeaveDelay,g=void 0===m?0:m,b=t.isNew,v=void 0!==b&&b,y=t.actionTitle,x=t.dismissTitle,w=t.maxWidth,E=t.onAction,S=t.onDismiss,k=w?{maxWidth:w}:void 0;return et.createElement(St,{overlayClassName:i,arrowPointAtCenter:s,trigger:c,color:u,placement:r,overlayStyle:k,title:et.createElement(KC,null,d&&et.createElement(Yo,{style:{fontSize:Zr.P1,marginBottom:"16px",color:Wr.text.white}},d,!0===v&&et.createElement(QC,null,"New")),h,(y||x)&&et.createElement(ZC,null,et.createElement(tO,{onClick:function(t){t.preventDefault(),S&&S()}},x),et.createElement(JC,{onClick:function(t){t.preventDefault(),E&&E()}},y))),mouseEnterDelay:p,mouseLeaveDelay:g},e)}var HC,WC,UC,YC,GC,qC,XC=mn(HC||(HC=Gt(["\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"])),kr,Zr.P1,Kr.REGULAR,Wr.text.white,Wr.brand.primary.contrast,wr,Wr.brand.primary.contrast),KC=ir.div(WC||(WC=Gt(["\n line-height: 22px;\n"],["\n line-height: 22px;\n"]))),ZC=ir.div(UC||(UC=Gt(["\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"]))),QC=ir.span(YC||(YC=Gt(["\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"])),qn.G400,Wr.text.white,Zr.SMALL,Kr.BOLD),JC=ir.a(GC||(GC=Gt(["\n font-weight: ",";\n color: ",";\n &:hover {\n color: ",";\n }\n"],["\n font-weight: ",";\n color: ",";\n &:hover {\n color: ",";\n }\n"])),Kr.BOLD,Wr.brand.action.default,Wr.brand.action.hover),tO=ir.a(qC||(qC=Gt(["\n font-weight: ",";\n color: ",";\n &:hover {\n color: ",";\n }\n"],["\n font-weight: ",";\n color: ",";\n &:hover {\n color: ",";\n }\n"])),Kr.BOLD,Wr.text.white,Wr.text.white);Ur('@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 eO={xs:16,s:20,m:24,l:32,xl:40,xxl:48},nO=function(t){var e=t.icon,n=t.size,r=void 0===n?"m":n,o=t.fill,i=void 0===o?0:o,a=t.color,s=void 0===a?Zn.BLACK:a,l=t.className,c=void 0===l?"":l,u=t.style,d="string"==typeof r?eO[r]:r,h=Xt({fontVariationSettings:"'FILL' ".concat(i,", 'wght' 400"),fontSize:d,color:s},u);return et.createElement("span",{className:"material-symbols-rounded ".concat(c),style:h,translate:"no"},e)},rO={positive:"check",critical:"cancel",warning:"timer",info:"info",neutral:"timer"},oO={sm:"xs",lg:"s"},iO={positive:{base:Wr.color.surface.subduePositive,text:Wr.color.status.positive,icon:Wr.color.status.positive,border:Wr.color.status.positive},critical:{base:Wr.color.surface.subdueCritical,text:Wr.color.status.critical,icon:Wr.color.status.critical,border:Wr.color.status.critical},warning:{base:Wr.color.surface.subdueWarning,text:Wr.color.status.warning,icon:Wr.color.status.warning,border:Wr.color.status.warning},info:{base:Wr.color.surface.SubdueInfo,text:Wr.color.status.info,icon:Wr.color.status.info,border:Wr.color.status.info},neutral:{base:Zn.G100,text:Wr.color.base.onNeutralSecondary,icon:Wr.color.base.onNeutralSecondary,border:Wr.color.base.line}},sO={positive:{base:Wr.color.status.positive,text:Wr.color.base.onContainer,icon:"",border:Wr.color.status.positive},neutral:{base:Wr.color.surface.disabledSurface,text:Wr.color.surface.disabledOnSurface,icon:"",border:Wr.color.base.line}},lO={positive:{base:Wr.color.surface.subduePositive,text:Wr.color.status.positive,icon:Wr.color.status.positive,border:Wr.color.status.positive},disabled:{base:Wr.color.surface.disabledSurface,text:Wr.color.surface.disabledOnSurface,icon:Wr.color.surface.disabledOnSurface,border:Wr.color.base.line},neutral:{base:Wr.color.surface.neutral,text:Wr.color.base.onNeutralSecondary,icon:Wr.color.base.onNeutralSecondary,border:Wr.color.base.line}};function cO(t,e,n){switch(e){case"outlined":default:return iO[t][n];case"filled":return sO[t][n];case"removable":return lO[t][n]}}function uO(t){var e=t.type,n=t.children,r=t.showIcon,o=void 0!==r&&r,i=t.size,a=void 0===i?"sm":i,s=t.variant,l=void 0===s?"outlined":s,c=t.onClick;return et.createElement(yO,{type:e,size:a,variant:l,onClick:"removable"!==l?c:void 0},o&&"disabled"!==e&&et.createElement(nO,{icon:rO[e],size:oO[a],color:cO(e,l,"icon")}),et.createElement(xn.Body,{size:a,color:cO(e,l,"text")},n),"removable"===l&&et.createElement(vO,{onMouseDown:function(t){t.preventDefault(),t.stopPropagation()},onClick:function(t){t.preventDefault(),t.stopPropagation(),null==c||c()},type:"tertiary",icon:et.createElement(nO,{icon:"close",size:oO[a],color:cO(e,l,"icon")})}))}var dO,hO,fO,pO,mO,gO,bO,vO=ir(fo)(dO||(dO=Gt(["\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"]))),yO=ir.div(hO||(hO=Gt(["\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,r=void 0===n?"outlined":n,o=t.size,i=void 0===o?"sm":o,a=t.onClick;return"\n border-radius: ".concat("removable"===r?"999px":"4px",";\n min-height: ").concat("sm"===i?"24px":"32px",";\n background-color: ").concat(e&&r?cO(e,r,"base"):"transparent",";\n border: 1px solid ").concat(e&&r?cO(e,r,"border"):"transparent",";\n padding-inline: ").concat("removable"===r?"12px":"8px",";\n cursor: ").concat(a?"pointer":"default",";\n\n")}(t)}),xO=ir.div(fO||(fO=Gt(["\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"]))),wO=ir.div(pO||(pO=Gt(["\n display: flex;\n align-items: center;\n gap: 8px;\n"],["\n display: flex;\n align-items: center;\n gap: 8px;\n"]))),EO=ir.div(mO||(mO=Gt(["\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"]))),SO="\n .ant-select-selection-placeholder {\n height: 100% !important;\n display: flex;\n align-items: center;\n \n span {\n color: ".concat(Wr.color.component.placeholderInput," !important;\n }\n }\n"),kO="\n .ant-select-selection-item {\n display: flex !important;\n align-items: center !important;\n color: ".concat(Wr.color.base.onNeutral," !important;\n }\n"),_O="\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(Wr.color.base.onNeutral," !important;\n }\n }\n"),CO=ir(kt)(gO||(gO=Gt(["\n ","\n ","\n ","\n ","\n ","\n ","\n"],["\n ","\n ","\n ","\n ","\n ","\n ","\n"])),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?Wr.color.surface.disabledSurface:Wr.color.surface.neutral," !important;\n\n border: 1px solid ").concat(t.error?Wr.color.status.critical:Wr.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(Wr.color.base.onNeutral,"20 !important;\n border: 1px solid ").concat(t.error?Wr.color.status.critical:Wr.color.base.primary2," !important;\n "),"\n }\n")}(t)},SO,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)},kO,_O),OO="\n .rc-virtual-list-holder-inner {\n gap: 4px;\n }\n .ant-select-item {\n color: ".concat(Wr.color.base.onNeutral," !important;\n padding: 12px !important;\n }\n"),MO="\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(Wr.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"),PO="\n .ant-select-item:hover {\n background: ".concat(Wr.color.interactive.hoverSurface," !important;\n }\n \n .ant-select-item:active {\n background: ").concat(Wr.color.interactive.pressedSurface," !important;\n }\n"),AO="\n .ant-select-item-option-disabled,\n .ant-select-item-option-disabled:hover {\n background: ".concat(Wr.color.surface.disabledSurface," !important;\n span { \n color: ").concat(Wr.color.surface.disabledOnSurface," !important;\n }\n }\n"),NO=ir.div(bO||(bO=Gt(["\n ","\n ","\n ","\n ","\n"],["\n ","\n ","\n ","\n ","\n"])),OO,MO,PO,AO),DO={padding:0,borderRadius:"12px"},IO={sm:"md",lg:"lg"},TO={sm:"md",lg:"lg"},RO=function(t){return et.createElement(et.Fragment,null,t&&et.createElement(xn.Body,{color:Wr.color.base.onNeutralSecondary,size:"sm"},t),et.createElement(nO,{icon:"keyboard_arrow_down"}))},FO=function(t,e){return e?et.createElement(xn.Body,{size:IO[t]},e):null},LO=function(t,e,n){return"multiple"===t?function(t){var r=t.label,o=t.onClose;return et.createElement(uO,{type:e?"disabled":"positive",variant:"removable",size:n,onClick:e?void 0:o},r)}:void 0},jO=function(t){var e=t.children,n=t.disabled,r=void 0!==n&&n,o=t.size,i=void 0===o?"sm":o,a=t.mode,s=t.label,l=t.labelTooltip,c=t.selectRef,u=t.placeholder,d=t.error,h=void 0!==d&&d,f=t.secondaryText,p=t.helperText,m=t.options,g=qt(t,["children","disabled","size","mode","label","labelTooltip","selectRef","placeholder","error","secondaryText","helperText","options"]),b=ct(null),v=c||b;return et.createElement(EO,null,s&&function(t,e){return t?et.createElement(xO,null,et.createElement(xn.Body,{size:"md"},t),e?et.createElement($C,{placement:"top",title:"I'm Tooltip Component",content:e},et.createElement("span",null,et.createElement(nO,{icon:"info",size:"xs"}))):null):null}(s,l),et.createElement(CO,Xt({disabled:r,mode:a,ref:v,$size:i,$mode:a},g,{error:h,dropdownRender:function(t){return et.createElement(NO,{$size:i},et.createElement(xn.Body,{size:"sm"===i?"md":"lg"},t))},dropdownStyle:DO,suffixIcon:RO(f),placeholder:FO(i,u),showArrow:!0,tagRender:LO(a,r,i),maxTagCount:999}),m?function(t,e){return t.map(function(t){var n=t.value,r=t.label,o=t.icon,i=t.disabled;return et.createElement(VC.Option,{key:n,value:n,disabled:i},et.createElement(wO,null,o&&et.createElement(o,{style:{width:"16px",height:"16px"}}),et.createElement(xn.Body,{size:TO[e]},r)))})}(m,i):e),function(t){return t?et.createElement(xn.Body,{color:Wr.color.base.onNeutralSecondary,size:"sm"},t):null}(p))};jO.Option=kt.Option;var zO=function(t,e){var n=e.iconSrc,r=void 0===n?null:n,o=e.extraText,i=void 0===o?"":o,a=e.extraAction,s=void 0===a?function(){}:a,l=e.isAddItemBarVisible,c=void 0===l||l,u=e.topContent,d=e.bottomContent,h=e.actionContent;return et.createElement(UO,null,u,t,h||function(t){var e=t.iconSrc,n=void 0===e?null:e,r=t.extraText,o=void 0===r?"":r,i=t.extraAction,a=void 0===i?function(){}:i,s=t.isAddItemBarVisible;return void 0===s||s?et.createElement(GO,{onMouseDown:function(){a()}},n?et.createElement(YO,{src:n}):et.createElement(zt,null),o):null}({iconSrc:r,extraText:i,extraAction:s,isAddItemBarVisible:c}),d)},BO=function(t){var e=t.className,n=void 0===e?"":e,r=t.children,o=t.disabled,i=void 0!==o&&o,a=t.mode,s=t.label,l=t.iconSrc,c=void 0===l?"":l,u=t.extraText,d=void 0===u?"":u,h=t.extraAction,f=void 0===h?function(){}:h,p=t.isAddItemBarVisible,m=void 0===p||p,g=t.topContent,b=void 0===g?null:g,v=t.bottomContent,y=void 0===v?null:v,x=t.actionContent,w=void 0===x?null:x,E=qt(t,["className","children","disabled","mode","label","iconSrc","extraText","extraAction","isAddItemBarVisible","topContent","bottomContent","actionContent"]);return et.createElement(jO,Xt({className:n,disabled:i,mode:a,label:s,dropdownRender:function(t){return zO(t,{iconSrc:c,extraText:d,extraAction:f,isAddItemBarVisible:m,topContent:b,bottomContent:y,actionContent:w})}},E),r)};BO.Option=jO.Option;var VO,$O,HO,WO,UO=ir.div(VO||(VO=Gt(["\n padding-top: 15px;\n"],["\n padding-top: 15px;\n"]))),YO=ir.img($O||($O=Gt(["\n margin-right: 5px;\n"],["\n margin-right: 5px;\n"]))),GO=ir(Uo)(HO||(HO=Gt(["\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"]))),qO=mn(WO||(WO=Gt(["\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"])),mo,Zr.P1,Xn.R400,Xn.R400,Xn.R400,Xn.R300,Xn.R100,Xn.R300,Xn.R100,Xn.R300,Xn.R200,Xn.R200,Xn.R100,Xn.R400,Xn.R100,Xn.R300),XO=function(t){var e=t.className,n=void 0===e?"":e,r=t.children,o=qt(t,["className","children"]);return et.createElement(_t,Xt({className:pn(qO,n)},o),r)};function KO(t,e,n,r){void 0===e&&(e="large");var o=vo[e],i=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(mo,";\n font-size: ").concat(Zr.P1,";\n color: ").concat(t.color.base.onNeutral,";\n line-height: 17px;\n height: ").concat(i,";\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(i,";\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(i,";\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(i,";\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(i,";\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(i,";\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-addon:not(:last-child) {\n font-family: ").concat(mo,";\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(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(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(mo,";\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(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(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(r?"\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 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(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 border-left: 0;\n }\n & .ant-input-group > .ant-input-affix-wrapper:last-child {\n border-left: 0;\n }\n "):"","\n ")}function ZO(t){var e=t.text,n=t.error,r=eo();if(!e)return null;var o=n?r.color.status.critical:r.color.component.helperInput;return et.createElement(xn.Body,{size:"sm",style:{color:o,marginTop:4}},e)}function QO(t){var e=t.label,n=t.required,r=t.optional,o=t.showInfoIcon,i=t.infoText,a=t.onInfoClick,s=eo();return e?et.createElement(tM,null,et.createElement(xn.Body,{size:"sm",style:{color:s.color.base.onNeutral}},e,n&&et.createElement("span",{style:{color:s.error.text,marginLeft:2}},"*")),r&&et.createElement(xn.Body,{size:"sm",style:{color:s.color.base.onNeutralSecondary}},"Optional"),o&&i&&et.createElement($C,{content:i,placement:"top"},et.createElement("span",{role:"button",tabIndex:0,"aria-label":"More information",onClick:a,onKeyDown:function(t){"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),null==a||a())},style:{display:"inline-flex",cursor:"pointer"}},et.createElement(Bt,{style:{width:16,height:16}}))),o&&!i&&et.createElement("span",{role:"button",tabIndex:0,"aria-label":"More information",onClick:a,onKeyDown:function(t){"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),null==a||a())},style:{display:"inline-flex",cursor:"pointer"}},et.createElement(Bt,{style:{width:16,height:16}}))):null}XO.Item=function(t){var e=t.className,n=void 0===e?"":e,r=qt(t,["className"]);return et.createElement(_t.Item,Xt({className:pn(qO,n)},r))},XO.useForm=_t.useForm;var JO,tM=ir.div(JO||(JO=Gt(["\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"]))),eM=function(t){var e=t.addonBefore,n=t.addonAfter,r=t.placeholder,o=void 0===r?"":r,i=t.disabled,a=void 0!==i&&i,s=t.disabledAddon,l=void 0!==s&&s,c=t.className,u=void 0===c?"":c,d=t.label,h=t.required,f=t.optional,p=void 0!==f&&f,m=t.size,g=void 0===m?"large":m,b=t.helperText,v=t.error,y=t.showInfoIcon,x=t.infoText,w=t.onInfoClick,E=qt(t,["addonBefore","addonAfter","placeholder","disabled","disabledAddon","className","label","required","optional","size","helperText","error","showInfoIcon","infoText","onInfoClick"]),S=KO(eo(),g,v,l);return et.createElement("div",null,et.createElement(QO,{label:d,required:h,optional:p,showInfoIcon:y,infoText:x,onInfoClick:w}),et.createElement(Ct,Xt({className:"".concat(mn(S)," ").concat(u),addonBefore:e,addonAfter:n,placeholder:o,disabled:a},E)),et.createElement(ZO,{text:b,error:v}))};eM.Password=function(t){var e=t.addonBefore,n=void 0===e?"":e,r=t.placeholder,o=void 0===r?"":r,i=t.disabled,a=void 0!==i&&i,s=t.className,l=void 0===s?"":s,c=t.label,u=t.required,d=t.optional,h=void 0!==d&&d,f=t.size,p=void 0===f?"large":f,m=t.helperText,g=t.error,b=t.showInfoIcon,v=t.infoText,y=t.onInfoClick,x=qt(t,["addonBefore","placeholder","disabled","className","label","required","optional","size","helperText","error","showInfoIcon","infoText","onInfoClick"]),w=KO(eo(),p,g);return et.createElement("div",null,et.createElement(QO,{label:c,required:u,optional:h,showInfoIcon:b,infoText:v,onInfoClick:y}),et.createElement(Ct.Password,Xt({className:"".concat(mn(w)," ").concat(l),addonBefore:n,placeholder:o,disabled:a,visibilityToggle:!0},x)),et.createElement(ZO,{text:m,error:g}))},eM.Search=function(t){var e=t.addonBefore,n=void 0===e?"":e,r=t.placeholder,o=void 0===r?"":r,i=t.className,a=void 0===i?"":i,s=t.onChange,l=t.onSearch,c=t.size,u=void 0===c?"large":c,d=t.helperText,h=t.error,f=qt(t,["addonBefore","placeholder","className","onChange","onSearch","size","helperText","error"]),p=eo(),m="".concat(KO(p,u,h),"\n & .ant-input-group-addon:not(:last-child) {\n background-color: ").concat(p.color.surface.neutral,";\n padding: ").concat("string"==typeof n?"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 et.createElement("div",null,et.createElement(Ct,Xt({placeholder:o,addonBefore:n,onChange:s,onKeyDown:l,className:"".concat(mn(m)," ").concat(a),prefix:et.createElement("span",{onClick:l,style:{display:"flex",cursor:l?"pointer":"default"}},et.createElement(nO,{icon:"search",size:"small"===u?"xs":"m",color:p.color.base.onNeutral}))},f)),et.createElement(ZO,{text:d,error:h}))},eM.TextArea=function(t){var e=t.className,n=void 0===e?"":e,r=t.label,o=t.required,i=void 0!==o&&o,a=t.optional,s=void 0!==a&&a,l=t.size,c=void 0===l?"large":l,u=t.helperText,d=t.error,h=t.showInfoIcon,f=t.infoText,p=t.onInfoClick,m=qt(t,["className","label","required","optional","size","helperText","error","showInfoIcon","infoText","onInfoClick"]),g=eo(),b=d?g.color.status.critical:g.color.base.line,v=vo[c],y=v.borderRadius,x=v.padding,w="".concat(KO(g,c,d),"\n &.ant-input {\n min-height: 72px;\n height: auto;\n resize: none;\n border-radius: ").concat(y," !important;\n border-color: ").concat(b,";\n padding: ").concat(x,";\n &:hover:not(:disabled):not(.ant-input-disabled) { border-color: ").concat(d?g.color.status.critical:g.color.base.primary2," !important; }\n &:focus {\n border-color: ").concat(g.color.base.primary2,";\n box-shadow: none;\n }\n &:disabled {\n color: ").concat(g.color.base.onNeutral," !important;\n -webkit-text-fill-color: ").concat(g.color.base.onNeutral," !important;\n background-color: ").concat(g.color.surface.disabledSurface,";\n border-color: ").concat(g.color.base.line,";\n &::placeholder {\n color: ").concat(g.color.surface.disabledOnSurface," !important;\n -webkit-text-fill-color: ").concat(g.color.surface.disabledOnSurface," !important;\n }\n &:hover { border-color: ").concat(g.color.base.line," !important; }\n }\n }\n ");return et.createElement("div",null,et.createElement(QO,{label:r,required:i,optional:s,showInfoIcon:h,infoText:f,onInfoClick:p}),et.createElement(Ct.TextArea,Xt({className:"".concat(mn(w)," ").concat(n)},m)),et.createElement(ZO,{text:u,error:d}))},eM.Group=Ct.Group;var nM,rM,oM,iM,sM,lM,cM,uM,dM,hM,fM,pM,mM,gM,bM,vM,yM,xM,wM,EM,SM,kM,_M=function(t){var e=t.buttonText,n=t.onButtonClick,r=t.prefix,o=t.placeholder,i=t.value,a=t.defaultValue,s=t.onChange,l=t.disabled,c=void 0!==l&&l,u=t.disabledInput,d=void 0!==u&&u,h=t.disabledPrefix,f=void 0!==h&&h,p=t.staticPrefix,m=void 0!==p&&p,g=t.error,b=void 0!==g&&g,v=t.className,y=eo(),x=c||d,w=c||f,E=b?y.color.status.critical:y.color.base.line,S=y.color.base.line;return et.createElement(AM,{className:v},r&&et.createElement(NM,{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},r),et.createElement(DM,{type:"text",placeholder:o,value:i,defaultValue:a,onChange:s,disabled:x,borderColor:E,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:!!r,isDisabled:x}),et.createElement(IM,{type:"button",onClick:n,disabled:c||b,bgColor:y.color.base.primary,disabledBgColor:y.color.surface.disabledSurface,textColor:y.color.base.onNeutral,disabledTextColor:y.color.surface.disabledOnSurface,isDisabled:c||b},e))},CM=vo.large,OM=CM.height,MM=CM.borderRadius,PM=CM.padding,AM=ir.div(nM||(nM=Gt(["\n display: flex;\n height: ",";\n width: 100%;\n position: relative;\n"],["\n display: flex;\n height: ",";\n width: 100%;\n position: relative;\n"])),OM),NM=ir.div(rM||(rM=Gt(["\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},MM,MM,function(t){return t.bgColor},function(t){return t.textColor},mo,Zr.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}),DM=ir.input(oM||(oM=Gt(["\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"])),PM,function(t){return t.borderColor},function(t){return t.hasPrefix?"0":"".concat(MM," 0 0 ").concat(MM)},mo,Zr.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}),IM=ir.button(iM||(iM=Gt(["\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"])),MM,MM,function(t){return t.isDisabled?t.disabledBgColor:t.bgColor},function(t){return t.isDisabled?t.disabledTextColor:t.textColor},mo,Zr.P1,function(t){return t.isDisabled?"not-allowed":"pointer"},function(t){return t.isDisabled?1:.9}),TM=function(t){var e=t.onClose,n=t.icon,r=t.title,o=t.children,i=t.footer,a=t.disabledCloseIcon,s=t.className,l=eo().neutral;return et.createElement(VM,{className:s},(n||r||!a)&&et.createElement(RM,{hasIcon:Boolean(n)},et.createElement(jM,null,et.createElement(zM,null,n,et.createElement(Ho,null,r||"")),!a&&et.createElement(BM,{onClick:function(){return e()}},et.createElement(Lt,{color:l.text,width:18}))),et.createElement(Ko,null)),et.createElement(FM,null,o),i&&et.createElement(LM,null,i))},RM=ir.div(sM||(sM=Gt(["\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 "},Vr,Vr),FM=ir(Uo)(lM||(lM=Gt(["\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"])),Br,Vr,Vr,Vr),LM=ir.div(cM||(cM=Gt(["\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"])),Vr,jr,jr),jM=ir.div(uM||(uM=Gt(["\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"]))),zM=ir.div(dM||(dM=Gt(["\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"]))),BM=ir.div(hM||(hM=Gt(["\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"]))),VM=ir.div(fM||(fM=Gt(["\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"]))),$M=document.body,HM=function(t){var e=eo().neutral,n=lt(document.createElement("div"))[0];return ut(function(){return $M.appendChild(n),function(){$M.removeChild(n)}},[n]),Kt.createPortal(et.createElement(UM,{open:t.open},t.open&&et.createElement(jn,{styles:Fn(pM||(pM=Gt(["\n body {\n overflow: hidden;\n position: fixed;\n }\n "],["\n body {\n overflow: hidden;\n position: fixed;\n }\n "])))}),et.createElement("div",{className:"".concat(mn(mM||(mM=Gt(["\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)},et.createElement(YM,{hasIcon:Boolean(t.icon)},et.createElement(XM,null,et.createElement(KM,null,t.icon,et.createElement(Ho,null,t.title)),!t.disabledCloseIcon&&et.createElement(ZM,{onClick:function(){return t.onClose()}},et.createElement(Lt,{color:e.text,width:18}))),et.createElement(Ko,null)),et.createElement(GM,null,t.children),et.createElement(qM,null,t.footer))),n)},WM=Bn(gM||(gM=Gt(["\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"]))),UM=ir.div(vM||(vM=Gt(["\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&&Fn(bM||(bM=Gt(["\n display: block;\n animation: "," 0.3s ease;\n "],["\n display: block;\n animation: "," 0.3s ease;\n "])),WM)}),YM=ir.div(yM||(yM=Gt(["\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 "},Vr,Vr),GM=ir.div(xM||(xM=Gt(["\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"])),Br,Vr,Vr,Vr),qM=ir.div(wM||(wM=Gt(["\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"])),Vr,jr,jr),XM=ir.div(EM||(EM=Gt(["\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"]))),KM=ir.div(SM||(SM=Gt(["\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"]))),ZM=ir.div(kM||(kM=Gt(["\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"])));function QM(t){var e=t.current,n=t.pageSize,r=t.total,o=t.onChange,i=t.showSizeChanger,a=t.onShowSizeChange,s=t.pageSizeOptions,l="\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(Zn.G200,";\n }\n\n & > .ant-pagination-item {\n height: 36px;\n line-height: 36px;\n min-width: 36px;\n font-family: ").concat(mo,";\n border-radius: 5px;\n border: 1px solid ").concat(Zn.G200,";\n margin-right: 5px;\n transition: 0.3s all;\n }\n\n & > .ant-pagination-item-active {\n border-color: ").concat(Qn.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 et.createElement(Ot,{className:"".concat(mn(l)),current:e,pageSize:n,total:r,onChange:o,showSizeChanger:i,onShowSizeChange:a,pageSizeOptions:s})}var JM={Group:function(t){return et.createElement(Mt.Group,Xt({size:"large",onChange:t.onChange},t))},Button:function(t){var e=t.children,n=t.disabled,r=qt(t,["children","disabled"]),o=eo().brand,i="\n &.ant-radio-button-wrapper {\n ".concat(n?"":"color: ".concat(Zn.BLACK," !important;"),"\n -webkit-font-smoothing: antialiased !important;\n display: block !important;\n width: 100% !important;\n font-family: ").concat(mo," !important;\n font-weight: 400 !important;\n border-radius: 5px !important;\n border: 1px solid ").concat(Zn.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(n?"":"\n border-color: ".concat(o.primary.default," !important;\n color: ").concat(Zn.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(o.primary.default," !important;\n color: ").concat(o.primary.default," !important;\n\n circle {\n transition: all 0.3s !important;\n }\n\n circle.center {\n fill: ").concat(Je.S500," !important;\n }\n\n circle.border {\n stroke: ").concat(o.primary.default," !important;\n }\n }\n\n &.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):active {\n border-color: ").concat(o.primary.default," !important;\n color: ").concat(o.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(Zn.BLACK," !important;\n }\n ");return et.createElement(Mt.Button,Xt({className:mn(i),disabled:n},r),et.createElement("div",{style:{display:"flex",height:"100%",alignItems:"center"}},et.createElement("div",{style:{width:"20px",height:"20px",lineHeight:"20px",marginRight:"11px"}},et.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},et.createElement("circle",{className:"border",cx:"10",cy:"10",r:"9.5",stroke:"#E8E8E8"}),et.createElement("circle",{className:"center",cx:"10",cy:"10",r:"7",fill:"rgba(0, 0, 0, 0)"}))),e))}};function tP(t){var e=t.format,n=void 0===e?"DD-MM-YYYY":e,r=t.size,o=void 0===r?"large":r,i=qt(t,["format","size"]),a=eo(),s=vo[o],l=s.height,c=s.borderRadius,u=s.padding,d="\n -webkit-font-smoothing: antialiased;\n height: ".concat(l," !important;\n\n &.ant-picker {\n border-radius: ").concat(c," !important;\n border-color: ").concat(a.color.base.line," !important;\n padding: ").concat(u," !important;\n transition: 0.3s all ease !important;\n\n &:hover {\n border-color: ").concat(a.color.base.primary2," !important;\n }\n\n &.ant-picker-focused {\n border-color: ").concat(a.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(a.color.base.primary2," !important;\n }\n }\n\n\n &.ant-picker > .ant-picker-input {\n font-family: ").concat(mo," !important;\n font-style: normal !important;\n font-weight: normal !important;\n font-size: 14px !important;\n line-height: 22px !important;\n color: ").concat(a.color.base.onNeutral," !important;\n }\n\n & .ant-picker-input > input {\n color: ").concat(a.color.base.onNeutral," !important;\n }\n\n & .ant-picker-input > input::placeholder {\n color: ").concat(a.color.component.placeholderInput," !important;\n }\n "),h="\n .ant-picker-cell.ant-picker-cell-in-view.ant-picker-cell-range-end > .ant-picker-cell-inner {\n background-color: ".concat(a.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(a.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(a.color.interactive.selected," !important;\n }\n\n &.ant-picker-cell-range-end::before {\n background-color: ").concat(a.color.interactive.selected," !important;\n }\n\n &.ant-picker-cell-range-start::before {\n background-color: ").concat(a.color.interactive.selected," !important;\n }\n }\n ");return et.createElement(Pt.RangePicker,Xt({className:"".concat(mn(d)),format:n,popupClassName:mn(h)},i))}var eP,nP,rP=ir("div")(eP||(eP=Gt(["\n display: ",";\n "," {\n display: ",";\n }\n"],["\n display: ",";\n "," {\n display: ",";\n }\n"])),function(t){return"lg"===t.only?"block":"none"},wr,function(t){return"lg"===t.only?"none":"block"}),oP=function(t){var e=t.className,n=qt(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(Or,"\n ").concat(Lr,"\n }\n \n & .ant-steps-item-process > .ant-steps-item-container > .ant-steps-item-content > .ant-steps-item-title {\n ").concat(Or,"\n ").concat(Fr,"\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(Or,"\n ").concat(Lr,"\n color: #777777;\n }\n ");return et.createElement(At,Xt({},n,{className:pn(mn(r),e)}))};oP.Step=function(t){var e=qt(t,[]),n=mn(nP||(nP=Gt(["\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 et.createElement(At.Step,Xt({className:pn(n)},e))};var iP,sP,lP,cP,uP,dP,hP=function(t){var e=t.current,n=t.steps,r=t.desktopNote,o=ct(null),i=eo(),a=i.brand,s=i.success,l=i.neutral;ut(function(){var t=o.current;null!==t&&(t.scrollLeft=120*e)},[e]);var c=ir.div(iP||(iP=Gt(["\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 "])),l.border,l.background),u=ir.div(sP||(sP=Gt(["\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 "])),l.emphasis,function(t){return t.current===t.index?"\n background: ".concat(a.primary.default,";\n "):t.current>t.index?"\n background: ".concat(s.emphasis,";\n "):""}),d=ir.div(lP||(lP=Gt(["\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 "])),l.emphasis),h=ir.div(cP||(cP=Gt(["\n padding-right: 16px;\n width: 1px;\n white-space: nowrap;\n "],["\n padding-right: 16px;\n width: 1px;\n white-space: nowrap;\n "]))),f=ir(Uo)(uP||(uP=Gt(["\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 et.createElement(et.Fragment,null,et.createElement(rP,{only:"sm"},et.createElement("div",{style:{padding:"30px",width:"266px"}},et.createElement(oP,{progressDot:!0,current:e,direction:"vertical",style:{marginBottom:"34px"}},n.map(function(t,e){return et.createElement(oP.Step,{key:"desktop-".concat(t,"-").concat(e),title:t})})),r)),et.createElement(rP,{only:"lg",ref:o},et.createElement(c,null,et.createElement(h,null,n.map(function(t,r){return et.createElement("span",{key:"mobile-".concat(t,"-").concat(r)},et.createElement(f,{inactive:e<r,current:e===r},et.createElement(u,{index:r,current:e}),t),r!==n.length-1&&et.createElement(d,null))})))))},fP=mn(dP||(dP=Gt(["\n -webkit-font-smoothing: antialiased;\n font-family: ",";\n color: ",";\n"],["\n -webkit-font-smoothing: antialiased;\n font-family: ",";\n color: ",";\n"])),mo,Ze.DEFAULT),pP=function(t){var e=t.className,n=t.emptyText,r=qt(t,["className","emptyText"]);return et.createElement(Nt,Xt({className:pn(fP,e),locale:{emptyText:n}},r))},mP=function(t){var e=t.children,n=qt(t,["children"]),r=eo().brand,o="\n font-family: ".concat(mo,";\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 et.createElement(wt,Xt({className:"".concat(mn(o))},n),e)};mP.TabPane=wt.TabPane;var gP=function(t){var e=t.initialSeconds,n=t.blinkActivationSeconds,r=t.shouldRepeat,o=t.onTimesUp,i=t.children,a=lt(!1),s=a[0],l=a[1],c=lt(e),u=c[0],d=c[1],h=lt(void 0),f=h[0],p=h[1],m=lt(!0),g=m[0],b=m[1],v=Date.now()+1e3*u;return ut(function(){g&&(p(setInterval(function(){var t=(new Date).getTime(),e=v-t,r=Math.ceil(e/1e3);r>=0&&d(r),n&&r<=n&&l(!0)},1e3)),b(!1))},[g]),ut(function(){u<=0&&void 0!==f&&(clearInterval(f),p(void 0),l(!1),o&&o(),r&&(d(e),b(!0)))},[f,u]),i(s,u)};function bP(t){var e=t.disabled,n=void 0!==e&&e,r=t.label,o=t.required,i=void 0!==o&&o,a=t.optional,s=void 0!==a&&a,l=t.size,c=void 0===l?"large":l,u=t.error,d=void 0!==u&&u,h=t.helperText,f=t.showInfoIcon,p=t.onInfoClick,m=qt(t,["disabled","label","required","optional","size","error","helperText","showInfoIcon","onInfoClick"]),g=eo(),b=vo[c],v=b.height,y=b.borderRadius,x=b.padding,w=d?g.color.status.critical:g.color.base.line,E="\n -webkit-font-smoothing: antialiased;\n height: ".concat(v," !important;\n width: 100% !important;\n\n ").concat(n?"\n pointer-events: none !important;\n ":"","\n\n &.ant-picker {\n border-radius: ").concat(y," !important;\n border-color: ").concat(w," !important;\n padding: ").concat(x," !important;\n transition: 0.3s all ease !important;\n\n &:hover {\n border-color: ").concat(g.color.base.primary2," !important;\n }\n\n &.ant-picker-focused {\n border-color: ").concat(g.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(mo," !important;\n font-style: normal !important;\n font-weight: normal !important;\n font-size: 14px !important;\n line-height: 22px !important;\n color: ").concat(g.color.base.onNeutral," !important;\n\n & .ant-picker-input > input !important;\n font-size: 14px !important;\n color: ").concat(g.color.base.onNeutral," !important;\n\n & .ant-picker-input > input::placeholder !important;\n font-size: 14px !important;\n color: ").concat(g.color.component.placeholderInput," !important;\n\n &.ant-picker.ant-picker-disabled !important;\n background: ").concat(g.color.surface.disabledSurface," !important;\n border: 1px solid ").concat(g.color.base.line," !important;\n\n & .ant-picker-input > input[disabled] !important;\n color: ").concat(g.color.base.onNeutral," !important;\n -webkit-text-fill-color: ").concat(g.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(g.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(g.color.base.primary2," !important;\n }\n }\n "),S="\n .ant-picker-cell-in-view.ant-picker-cell-selected .ant-picker-cell-inner{\n background-color: ".concat(g.color.base.primary2," !important;\n }\n "),k=et.createElement(nO,{icon:"date_range",size:"m",color:g.color.base.onNeutral});return et.createElement("div",null,et.createElement(QO,{label:r,required:i,optional:s,showInfoIcon:f,onInfoClick:p}),et.createElement(Pt,Xt({className:"".concat(mn(E)),popupClassName:mn(S),disabled:n,suffixIcon:k,format:"DD-MM-YYYY"},m)),et.createElement(ZO,{text:h,error:d}))}var vP,yP,xP,wP,EP,SP,kP,_P,CP,OP,MP,PP,AP,NP,DP,IP,TP,RP,FP,LP={Group:function(t){var e=t.className,n=void 0===e?"":e,r=qt(t,["className"]),o="\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(Wr.brand.line.base," !important;\n border-radius: 5px !important;\n\n &:hover {\n border: 1px solid ").concat(Wr.brand.primary.default," !important;\n }\n\n &:focus-within {\n border: 1px solid ").concat(Wr.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(Wr.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(Zn.BLACK," !important;\n font-family: ").concat(mo," !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(Wr.brand.primary.illustration," !important;\n border-color: ").concat(Wr.brand.primary.default," !important;\n }\n\n & .ant-checkbox-inner {\n border-radius: 5px !important;\n border: 1px solid ").concat(Wr.brand.primary.default," !important;\n }\n ");return et.createElement(Dt.Group,Xt({className:"".concat(mn(o)," ").concat(n)},r))}},jP=function(t){var e=t.title,n=void 0===e?"No results found":e,r=t.subtitle,o=t.info,i=t.svgUniqueId,a=void 0===i?"randomString":i;return et.createElement(zP,null,et.createElement(It,{image:et.createElement(Vt,{id:a,height:80,width:130}),imageStyle:{marginBottom:10,display:"block",margin:"auto"},description:!1}),n&&et.createElement(BP,null,n),r&&et.createElement(VP,null,r),o&&et.createElement($P,null,o))},zP=ir.div(vP||(vP=Gt(["\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"]))),BP=ir(Yo)(yP||(yP=Gt(["\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"]))),VP=ir(Uo)(xP||(xP=Gt(["\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"])),tn.S500),$P=ir(Uo)(wP||(wP=Gt(["\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"])),Ze.DEFAULT),HP=function(t){var e=t.typographyType,n=void 0===e?"body":e,r=t.size,o=void 0===r?"md":r,i=t.textContent,a=t.children,s=t.href,l=t.target,c=t.rel,u=t.isUnderlined,d=void 0===u||u,h=t.icon,f=t.iconPlacement,p=void 0===f?"left":f,m=t.onClick,g=qt(t,["typographyType","size","textContent","children","href","target","rel","isUnderlined","icon","iconPlacement","onClick"]),b=ir.a(EP||(EP=Gt(["\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 "])),h?"flex":"inline-flex",Wr.color.base.link,d?"underline":"none",Wr.color.base.link,d?"underline":"none",Wr.color.base.link),v=h&&"left"===p,y=h&&"right"===p,x=i||a;return et.createElement(b,Xt({href:s,target:l,rel:c,onClick:m},g),v&&h,"body"===n&&et.createElement(xn.Body,{size:o,color:Wr.color.base.link},x),"label"===n&&et.createElement(xn.Label,{size:o,color:Wr.color.base.link},x),y&&h)},WP=function(t){var e=t.title,n=t.children,r=eo(),o=r.spacing,i=r.neutral,a=ir.div(SP||(SP=Gt(["\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 "])),o.sm,o.md,i.background);return et.createElement(a,null,et.createElement(Yo,{style:{marginBottom:o.sm}},e),n)},UP=function(t){var e=t.title,n=t.children,r=Array.isArray(n)&&n.length>1,o=ir.div(kP||(kP=Gt(["\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 "])),Wr.color.surface.subduePositive),i=ir.div(_P||(_P=Gt(["\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 "])),Wr.color.status.positive,e?"5px":"0px");return et.createElement(o,null,et.createElement(i,null,et.createElement(xn.Label,{size:"md"},e),r?et.createElement(xn.Body,{size:"md",style:{scrollbarWidth:"none"}},et.createElement("ol",{style:{margin:0,paddingLeft:"20px"}},n.map(function(t,e){return et.createElement("li",{key:e},t)}))):et.createElement(xn.Body,{size:"md",style:{scrollbarWidth:"none"}},n)))},YP=function(t){var e=t.withIcon,n=void 0!==e&&e,r=t.children,o=t.type,i=void 0===o?"primary":o,a=qt(t,["withIcon","children","type"]),s=eo(),l=s.brand,c=s.spacing,u="\n color: ".concat(Wr.color.base.primary,";\n background: ").concat(l.primary.background,";\n "),d="\n color: ".concat(Wr.color.status.positive,";\n background: ").concat(Wr.color.surface.subduePositive,";\n "),h="\n color: ".concat(Wr.color.status.warning,";\n background: ").concat(Wr.color.surface.subdueWarning,";\n "),f="\n color: ".concat(Wr.color.status.critical,";\n background: ").concat(Wr.color.surface.subdueCritical,";\n "),p="\n color: ".concat(Wr.color.base.onNeutral,"};\n background: ").concat(Wr.color.surface.SubdueInfo,";\n "),m=ir.div(CP||(CP=Gt(["\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 "])),c.sm,function(){switch(i){case"primary":default:return u;case"success":return d;case"warning":return h;case"error":return f;case"notification":return p}}()),g=mn(OP||(OP=Gt(["\n display: block;\n margin: 1px 6px auto 0;\n "],["\n display: block;\n margin: 1px 6px auto 0;\n "])));return et.createElement(m,Xt({},a),n&&("primary"===i?et.createElement($t,{style:{minHeight:"18px",minWidth:"18px"},color:l.primary.emphasis,className:pn(g)}):"success"===i?et.createElement(Ht,{style:{minHeight:"18px",minWidth:"18px"},color:Wr.color.status.positive,className:pn(g)}):"warning"===i?et.createElement(Wt,{style:{minHeight:"18px",minWidth:"18px"},color:Wr.color.status.warning,className:pn(g)}):"error"===i?et.createElement(Ut,{style:{minHeight:"18px",minWidth:"18px"},color:Wr.color.status.critical,className:pn(g)}):"notification"===i?et.createElement($t,{style:{minHeight:"18px",minWidth:"18px"},color:Wr.color.status.info,className:pn(g)}):et.createElement(et.Fragment,null)),et.createElement(xn.Body,{size:"md"},r))},GP={Title:ir(Wo)(MP||(MP=Gt(["\n color: #1b2736;\n margin-bottom: 5px;\n "],["\n color: #1b2736;\n margin-bottom: 5px;\n "]))),Subtitle:ir(Uo)(PP||(PP=Gt(["\n color: #777777;\n margin-bottom: 5px;\n "],["\n color: #777777;\n margin-bottom: 5px;\n "]))),Row:ir.div(AP||(AP=Gt(["\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 "])),wr),Left:ir.div(NP||(NP=Gt(["\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 "])),wr),Right:ir.div(DP||(DP=Gt(["\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 "])),wr)};var qP,XP,KP,ZP,QP,JP,tA,eA,nA,rA,oA,iA,sA,lA,cA=function(){if(FP)return RP;FP=1;var t=(TP||(TP=1,IP=function(){var t=document.getSelection();if(!t.rangeCount)return function(){};for(var e=document.activeElement,n=[],r=0;r<t.rangeCount;r++)n.push(t.getRangeAt(r));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()}}),IP),e={"text/plain":"Text","text/html":"Url",default:"Text"};return RP=function(n,r){var o,i,a,s,l,c,u=!1;r||(r={}),o=r.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(),r.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 i=e[r.format]||e.default;window.clipboardData.setData(i,n)}else t.clipboardData.clearData(),t.clipboardData.setData(r.format,n);r.onCopy&&(t.preventDefault(),r.onCopy(t.clipboardData))}),document.body.appendChild(c),s.selectNodeContents(c),l.addRange(s),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");u=!0}catch(t){o&&console.error("unable to copy using execCommand: ",t),o&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(r.format||"text",n),r.onCopy&&r.onCopy(window.clipboardData),u=!0}catch(t){o&&console.error("unable to copy using clipboardData: ",t),o&&console.error("falling back to prompt"),i=function(t){var e=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return t.replace(/#{\s*key\s*}/g,e)}("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},RP}(),uA=ge(cA),dA=ir.div(qP||(qP=Gt(["\n display: flex;\n flex-direction: column;\n gap: 4px;\n"],["\n display: flex;\n flex-direction: column;\n gap: 4px;\n"]))),hA=ir.div(XP||(XP=Gt(["\n display: flex;\n align-items: center;\n gap: 4px;\n"],["\n display: flex;\n align-items: center;\n gap: 4px;\n"]))),fA=ir.div(KP||(KP=Gt(["\n display: flex;\n align-items: center;\n"],["\n display: flex;\n align-items: center;\n"]))),pA=ir.div(ZP||(ZP=Gt(["\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"}),mA=ir.div(QP||(QP=Gt(["\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"])),Wr.color.surface.disabledSurface,Wr.color.base.line),gA=ir.div(JP||(JP=Gt(["\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"]))),bA=ir.div(tA||(tA=Gt(["\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"])),Wr.color.base.onNeutral,function(t){return t.isBankAddress?"auto":"48px"},function(t){return t.isBankAddress?"break-word":"break-all"}),vA=ir(yt)(eA||(eA=Gt(["\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"])),Wr.color.base.line,Wr.color.surface.neutral,Or,Wr.brand.primary.default),yA=function(t){var e=t.value,n=t.allowCopy,r=void 0===n||n,o=t.valueToCopy,i=void 0===o?e:o,a=t.isBankAddress,s=void 0!==a&&a,l=t.showCopyIcon,c=void 0===l||l,u=t.icon,d=t.iconSize,h=t.labelText,f=t.labelTooltip,p=t.helperText,m=t.helperTextType,g=t.onButtonClick;return et.createElement(dA,null,et.createElement(hA,null,h&&et.createElement(xn.Body,{size:"md",color:Wr.color.base.onNeutral},h),f&&et.createElement(fA,null,f)),et.createElement(mA,null,et.createElement(gA,null,u&&et.createElement(pA,{iconSize:d},u),et.createElement(xn.Body,{size:"lg"},et.createElement(bA,{isBankAddress:s},e))),r&&et.createElement(vA,{onClick:function(){void 0!==g&&g(),uA(i)}},c?et.createElement(Yt,null):et.createElement(xn.Label,{size:"md",color:Wr.brand.primary.default},"Copy"))),p&&et.createElement(xn.Body,{size:"sm",color:"error"===m?Wr.color.status.critical:Wr.color.base.onNeutralSecondary},p))},xA=function(t){var e=t.title,n=t.subtitle,r=t.content,o=t.fallbackContent,i=t.backgroundColor,a=eo(),s=a.neutral,l=a.text,c=ir.div(nA||(nA=Gt(["\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 "])),kr,s.bluish),u=ir.div(rA||(rA=Gt(["\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 "])),kr,wr,function(t){return t.backgroundColor||s.background}),d=ir.div(oA||(oA=Gt(["\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 "])),kr,l.default,Mr),h=ir.div(iA||(iA=Gt(["\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 "])),l.default,Nr);return et.createElement(u,{backgroundColor:i},et.createElement(c,null,e),et.createElement(d,null,n),et.createElement(h,null,r),o)},wA=function(t){var e=t.size,n=qt(t,["size"]),r=eo().brand,o=mn(sA||(sA=Gt(["\n & .ant-spin-dot-item {\n background-color: ",";\n }\n "],["\n & .ant-spin-dot-item {\n background-color: ",";\n }\n "])),r.primary.default);return et.createElement(Tt,Xt({className:pn(o),size:e},n))},EA=function(t){var e=t.label,n=t.amount,r=t.type,o=void 0===r?"default":r,i=t.height,a=void 0===i?91:i,s=t.width,l=void 0===s?230:s,c=t.isInverted,u=void 0!==c&&c,d=t.icon,h=ir(Vo)(lA||(lA=Gt(["\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 l?"".concat(l,"px"):l,a,d&&"\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 et.createElement(h,{type:o},d&&d,et.createElement("div",null,et.createElement(Uo,{style:{marginBottom:u?"0":"5px"}},e),et.createElement($o,{style:{marginBottom:u?"5px":"0"}},n)))},SA=function(t){var e=t.className,n=qt(t,["className"]);return et.createElement(Rt,Xt({},n,{className:pn(mn("\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 "),e)}))};function kA(t){var e=t.index,n=t.primaryProps,r=t.size,o=t.skipProps,i=t.step,a=t.tooltipProps,s=t.backProps,l=i.title,c=i.content,u=i.data;return et.createElement(TA,{role:a.role},et.createElement(RA,null,et.createElement(FA,null,et.createElement(xn.Label,{size:"md"},l),et.createElement(LA,{role:o.role,onClick:o.onClick},et.createElement(nO,{icon:"close",size:"m"}))),et.createElement(xn.Body,{size:"md"},c)),et.createElement(jA,null,et.createElement(zA,null,Array.from({length:r},function(t,n){return 0===e&&!0===(null==u?void 0:u.skipZeroIndex)?et.createElement(et.Fragment,null):et.createElement(BA,{key:n,isActive:n===e})})),et.createElement($A,null,s&&et.createElement(VA,{typographyType:"label",size:"md",role:null==s?void 0:s.role,isDisabled:0===e,onClick:s.onClick,isUnderlined:!1},"Back"),et.createElement(HP,{typographyType:"label",size:"md",role:n.role,onClick:n.onClick,isUnderlined:!1},"Next"))))}SA.Item=Rt.Item;var _A,CA,OA,MA,PA,AA,NA,DA,IA,TA=ir.div(_A||(_A=Gt(["\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"])),Wr.color.surface.secondaryNeutral),RA=ir.div(CA||(CA=Gt(["\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"])),Wr.color.base.onNeutral),FA=ir.div(OA||(OA=Gt(["\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"]))),LA=ir(HP)(MA||(MA=Gt(["\n text-decoration: none !important;\n"],["\n text-decoration: none !important;\n"]))),jA=ir.div(PA||(PA=Gt(["\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"]))),zA=ir.div(AA||(AA=Gt(["\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"]))),BA=ir.span(NA||(NA=Gt(["\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(Wr.color.base.primary3):"".concat(Wr.color.surface.disabledOnSurface)}),VA=ir(HP)(DA||(DA=Gt(["\n h5 {\n color: ",";\n }\n pointer-events: ",";\n"],["\n h5 {\n color: ",";\n }\n pointer-events: ",";\n"])),function(t){return t.isDisabled?"".concat(Wr.color.surface.disabledOnSurface):"".concat(Wr.color.base.link)},function(t){return t.isDisabled?"none":"auto"}),$A=ir.div(IA||(IA=Gt(["\n display: flex;\n gap: 8px;\n"],["\n display: flex;\n gap: 8px;\n"])));function HA(t){var e=t||{},n=e.arrowColor,r=void 0===n?Wr.color.surface.secondaryNeutral:n,o=e.arrowLength,i=void 0===o?8:o,a=e.arrowSpread;return{floaterProps:{styles:{arrow:{length:i,spread:void 0===a?16:a,color:r}}}}}var WA,UA,YA,GA,qA=et.createContext({setModal:function(){return null},resetModal:function(){return null}}),XA=document.body,KA=function(t){var e=t.modal,n=lt(document.createElement("div"))[0];n.setAttribute("id","modal-root"),ut(function(){return XA.appendChild(n),function(){XA.removeChild(n)}},[n]);var r=et.createElement(jn,{styles:Fn(WA||(WA=Gt(["\n body {\n overflow: hidden;\n }\n "],["\n body {\n overflow: hidden;\n }\n "])))});return Kt.createPortal(et.createElement(tN,{open:!!e},!!e&&r,e),n)},ZA=function(t){var e=t.children,n=lt(),r=n[0],o=n[1],i=pt(function(){o(void 0)},[o]);return et.createElement(qA.Provider,{value:{resetModal:i,setModal:o}},e,et.createElement(KA,{modal:r}))},QA=function(){var t=et.useContext(qA);if(void 0===t)throw new Error("useModal must be used within a UserProvider");return t},JA=Bn(UA||(UA=Gt(["\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"]))),tN=ir.div(GA||(GA=Gt(["\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&&Fn(YA||(YA=Gt(["\n display: block;\n animation: "," 0.3s ease;\n "],["\n display: block;\n animation: "," 0.3s ease;\n "])),JA)});export{Qo as Accordion,po as ActionButton,Zo as ActionCard,yr as Alert,te as AntdConfigProvider,er as BACKGROUND_COLORS,Gn as BLUE_COLORS,ii as BadgeIcon,YP as Banner,fo as Button,Vo as Card,_h as Carousel,kh as Chart,LP as Checkbox,kA as Coachmark,WP as ContentBreakdown,yA as CopyBox,wr as DESKTOP_BREAKPOINT,bP as DatePicker,HM as DeprecatedModal,Ko as Divider,Rh as Dropdown,BO as DynamicSelect,xr as EXTRA_LARGE_DESKTOP_BREAKPOINT,jP as EmptyData,xA as ErrorPage,go as FALLBACK_FONT,Zr as FONT_SIZE,Kr as FONT_WEIGHT,XO as Form,qn as GREEN_COLORS,$o as H1,Ho as H2,Wo as H3,qo as H4,rP as Hidden,Jn as ICON_COLORS,eM as Input,_M as InputWithButton,Er as LAPTOP_BREAKPOINT,bo as LINE_HEIGHT,HP as Link,Qn as MAIN_COLORS,mo as MAIN_FONT,nO as MaterialSymbols,TM as Modal,ZA as ModalProvider,Zn as NEUTRAL_COLORS,UP as Note,Uo as P1,Yo as P1Bold,QM as Pagination,Xn as RED_COLORS,JM as Radio,tP as RangePicker,GP as Section,jO as Select,Go as SmallP,wA as Spin,hP as Steps,EA as SummaryCard,Sr as TABLET_BREAKPOINT,tr as TEXT_COLORS,pP as Table,mP as Tabs,uO as Tag,to as ThemeProvider,SA as Timeline,gP as Timer,$C as Tooltip,xn as Typography,Kn as YELLOW_COLORS,HA as getCoachmarkJoyrideConfig,Wr as straitsXTheme,QA as useModal,eo as useTheme,Hr as xfersTheme};
|
|
21
|
+
*/var xl=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],a=e.duration;o.forEach(i=>i({chart:t,initial:e.initial,numSteps:a,currentStep:Math.min(n-e.start,a)}))}_refresh(){this._request||(this._running=!0,this._request=Ja.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 a,r=o.length-1,s=!1;for(;r>=0;--r)a=o[r],a._active?(a._total>n.duration&&(n.duration=a._total),a.tick(t),s=!0):(o[r]=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 yl="transparent",vl={boolean:(t,e,n)=>n>.5?e:t,color(t,e,n){const i=Ur(t||yl),o=i.valid&&Ur(e||yl);return o&&o.valid?o.mix(i,n).hexString():e},number:(t,e,n)=>t+(e-t)*n};class _l{constructor(t,e,n,i){const o=e[n];i=_s([t.to,i,o,t.from]);const a=_s([t.from,o,i]);this._active=!0,this._fn=t.fn||vl[t.type||typeof a],this._easing=lr[t.easing]||lr.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=a,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,a=this._duration-o;this._start=n,this._duration=Math.floor(Math.max(a,t.duration)),this._total+=o,this._loop=!!t.loop,this._to=_s([t.to,e,i,t.from]),this._from=_s([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,a=this._loop,r=this._to;let s;if(this._active=o!==r&&(a||e<n),!this._active)return this._target[i]=r,void this._notify(!0);e<0?this._target[i]=o:(s=e/n%2,s=a&&s>1?2-s:s,s=this._easing(Math.min(1,Math.max(0,s))),this._target[i]=this._fn(o,r,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]()}}Zr.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 wl=Object.keys(Zr.animation);Zr.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>"onProgress"!==t&&"onComplete"!==t&&"fn"!==t}),Zr.set("animations",{colors:{type:"color",properties:["color","borderColor","backgroundColor"]},numbers:{type:"number",properties:["x","y","borderWidth","radius","tension"]}}),Zr.describe("animations",{_fallback:"animation"}),Zr.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 kl{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(t){if(!ta(t))return;const e=this._properties;Object.getOwnPropertyNames(t).forEach(n=>{const i=t[n];if(!ta(i))return;const o={};for(const t of wl)o[t]=i[t];(Qo(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={}),a=Object.keys(e),r=Date.now();let s;for(s=a.length-1;s>=0;--s){const l=a[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,r);continue}d.cancel()}h&&h.duration?(o[l]=d=new _l(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?(xl.add(this._chart,n),!0):void 0}}function Sl(t,e){const n=t&&t.options||{},i=n.reverse,o=void 0===n.min?e:0,a=void 0===n.max?e:0;return{start:i?a:o,end:i?o:a}}function El(t,e){const n=[],i=t._getSortedDatasetMetas(e);let o,a;for(o=0,a=i.length;o<a;++o)n.push(i[o].index);return n}function Ml(t,e,n,i={}){const o=t.keys,a="single"===i.mode;let r,s,l,c;if(null!==e){for(r=0,s=o.length;r<s;++r){if(l=+o[r],l===n){if(i.all)continue;break}c=t.values[l],ea(c)&&(a||0===e||Aa(e)===Aa(c))&&(e+=c)}return e}}function Dl(t,e){const n=t&&t.options.stacked;return n||void 0===n&&void 0!==e.stack}function Cl(t,e,n){const i=t[e]||(t[e]={});return i[n]||(i[n]={})}function Ol(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 Tl(t,e){const{chart:n,_cachedMeta:i}=t,o=n._stacks||(n._stacks={}),{iScale:a,vScale:r,index:s}=i,l=a.axis,c=r.axis,d=function(t,e,n){return`${t.id}.${e.id}.${n.stack||n.type}`}(a,r,i),h=e.length;let u;for(let t=0;t<h;++t){const n=e[t],{[l]:a,[c]:h}=n;u=(n._stacks||(n._stacks={}))[c]=Cl(o,d,a),u[s]=h,u._top=Ol(u,r,!0,i.type),u._bottom=Ol(u,r,!1,i.type)}}function Al(t,e){const n=t.scales;return Object.keys(n).filter(t=>n[t].axis===e).shift()}function Pl(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 Rl=t=>"reset"===t||"none"===t,Ll=(t,e)=>e?t:Object.assign({},t);class Il{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=Dl(t.vScale,t),this.addElements()}updateIndex(t){this.index!==t&&Pl(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=ia(n.xAxisID,Al(t,"x")),a=e.yAxisID=ia(n.yAxisID,Al(t,"y")),r=e.rAxisID=ia(n.rAxisID,Al(t,"r")),s=e.indexAxis,l=e.iAxisID=i(s,o,a,r),c=e.vAxisID=i(s,a,o,r);e.xScale=this.getScaleForId(o),e.yScale=this.getScaleForId(a),e.rScale=this.getScaleForId(r),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&&Za(this._data,this),t._stacked&&Pl(t)}_dataCheck(){const t=this.getDataset(),e=t.data||(t.data=[]),n=this._data;if(ta(e))this._data=function(t){const e=Object.keys(t),n=new Array(e.length);let i,o,a;for(i=0,o=e.length;i<o;++i)a=e[i],n[i]={x:a,y:t[a]};return n}(e);else if(n!==e){if(n){Za(n,this);const t=this._cachedMeta;Pl(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]}}),qa.forEach(t=>{const e="_onData"+xa(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=Dl(e.vScale,e),e.stack!==n.stack&&(i=!0,Pl(e),e.stack=n.stack),this._resyncElements(t),(i||o!==e._stacked)&&Tl(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:a}=n,r=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=Qo(i[t])?this.parseArrayData(n,i,t,e):ta(i[t])?this.parseObjectData(n,i,t,e):this.parsePrimitiveData(n,i,t,e);const o=()=>null===l[r]||h&&l[r]<h[r];for(s=0;s<e;++s)n._parsed[s+t]=l=c[s],d&&(o()&&(d=!1),h=l);n._sorted=d}a&&Tl(this,c)}parsePrimitiveData(t,e,n,i){const{iScale:o,vScale:a}=t,r=o.axis,s=a.axis,l=o.getLabels(),c=o===a,d=new Array(i);let h,u,p;for(h=0,u=i;h<u;++h)p=h+n,d[h]={[r]:c||o.parse(l[p],p),[s]:a.parse(e[p],p)};return d}parseArrayData(t,e,n,i){const{xScale:o,yScale:a}=t,r=new Array(i);let s,l,c,d;for(s=0,l=i;s<l;++s)c=s+n,d=e[c],r[s]={x:o.parse(d[0],c),y:a.parse(d[1],c)};return r}parseObjectData(t,e,n,i){const{xScale:o,yScale:a}=t,{xAxisKey:r="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(ga(u,r),h),y:a.parse(ga(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,a=e[t.axis];return Ml({keys:El(i,!0),values:e._stacks[t.axis]},a,o.index,{mode:n})}updateRangeFromParsed(t,e,n,i){const o=n[e.axis];let a=null===o?NaN:o;const r=i&&n._stacks[e.axis];i&&r&&(i.values=r,a=Ml(i,o,this._cachedMeta.index)),t.min=Math.min(t.min,a),t.max=Math.max(t.max,a)}getMinMax(t,e){const n=this._cachedMeta,i=n._parsed,o=n._sorted&&t===n.iScale,a=i.length,r=this._getOtherScale(t),s=((t,e,n)=>t&&!e.hidden&&e._stacked&&{keys:El(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}}(r);let h,u;function p(){u=i[h];const e=u[r.axis];return!ea(u[t.axis])||c>e||d<e}for(h=0;h<a&&(p()||(this.updateRangeFromParsed(l,t,u,s),!o));++h);if(o)for(h=a-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,a;for(i=0,o=e.length;i<o;++i)a=e[i][t.axis],ea(a)&&n.push(a);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 ta(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}}(ia(this.options.clip,function(t,e,n){if(!1===n)return!1;const i=Sl(t,n),o=Sl(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,a=[],r=this._drawStart||0,s=this._drawCount||i.length-r,l=this.options.drawActiveElementsOnTop;let c;for(n.dataset&&n.dataset.draw(t,o,r,s),c=r;c<r+s;++c){const e=i[c];e.hidden||(e.active&&l?a.push(e):e.draw(t,o))}for(c=0;c<a.length;++c)a[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 ws(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 ws(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,a=t+"-"+e,r=o[a],s=this.enableOptionSharing&&ya(n);if(r)return Ll(r,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(Zr.elements[t]),p=l.resolveNamedOptions(h,u,()=>this.getContext(n,i),d);return p.$shared&&(p.$shared=s,o[a]=Object.freeze(Ll(p,s))),p}_resolveAnimations(t,e,n){const i=this.chart,o=this._cachedDataOpts,a=`animation-${e}`,r=o[a];if(r)return r;let s;if(!1!==i.options.animation){const i=this.chart.config,o=i.datasetAnimationScopeKeys(this._type,e),a=i.getOptionScopes(this.getDataset(),o);s=i.createResolver(a,this.getContext(t,n,e))}const l=new kl(i,s&&s.animations);return s&&s._cacheable&&(o[a]=Object.freeze(l)),l}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,e){return!e||Rl(t)||this.chart._animationsDisabled}_getSharedOptions(t,e){const n=this.resolveDataElementOptions(t,e),i=this._sharedOptions,o=this.getSharedOptions(n),a=this.includeOptions(e,o)||o!==i;return this.updateSharedOptions(o,e,n),{sharedOptions:o,includeOptions:a}}updateElement(t,e,n,i){Rl(i)?Object.assign(t,n):this._resolveAnimations(e,i).update(t,n)}updateSharedOptions(t,e,n){t&&!Rl(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,a=Math.min(o,i);a&&this.parse(0,a),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,a=t+e;let r;const s=t=>{for(t.length+=e,r=t.length-1;r>=a;r--)t[r]=t[r-e]};for(s(o),r=t;r<a;++r)o[r]=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&&Pl(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 Nl(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=Ka(i.sort((t,e)=>t-e))}return t._cache.$bar}(e,t.type);let i,o,a,r,s=e._length;const l=()=>{32767!==a&&-32768!==a&&(ya(r)&&(s=Math.min(s,Math.abs(a-r)||s)),r=a)};for(i=0,o=n.length;i<o;++i)a=e.getPixelForValue(n[i]),l();for(r=void 0,i=0,o=e.ticks.length;i<o;++i)a=e.getPixelForTick(i),l();return s}function Fl(t,e,n,i){return Qo(t)?function(t,e,n,i){const o=n.parse(t[0],i),a=n.parse(t[1],i),r=Math.min(o,a),s=Math.max(o,a);let l=r,c=s;Math.abs(r)>Math.abs(s)&&(l=s,c=r),e[n.axis]=c,e._custom={barStart:l,barEnd:c,start:o,end:a,min:r,max:s}}(t,e,n,i):e[n.axis]=n.parse(t,i),e}function zl(t,e,n,i){const o=t.iScale,a=t.vScale,r=o.getLabels(),s=o===a,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(r[c],c),l.push(Fl(u,h,a,c));return l}function Bl(t){return t&&void 0!==t.barStart&&void 0!==t.barEnd}function Yl(t,e,n,i){let o=e.borderSkipped;const a={};if(!o)return void(t.borderSkipped=a);if(!0===o)return void(t.borderSkipped={top:!0,right:!0,bottom:!0,left:!0});const{start:r,end:s,reverse:l,top:c,bottom:d}=function(t){let e,n,i,o,a;return t.horizontal?(e=t.base>t.x,n="left",i="right"):(e=t.base<t.y,n="bottom",i="top"),e?(o="end",a="start"):(o="start",a="end"),{start:n,end:i,reverse:e,top:o,bottom:a}}(t);"middle"===o&&n&&(t.enableBorderRadius=!0,(n._top||0)===i?o=c:(n._bottom||0)===i?o=d:(a[Vl(d,r,s,l)]=!0,o=c)),a[Vl(o,r,s,l)]=!0,t.borderSkipped=a}function Vl(t,e,n,i){var o,a,r;return i?(r=n,t=Hl(t=(o=t)===(a=e)?r:o===r?a:o,n,e)):t=Hl(t,e,n),t}function Hl(t,e,n){return"start"===t?e:"end"===t?n:t}function Wl(t,{inflateAmount:e},n){t.inflateAmount="auto"===e?1===n?.33:0:e}Il.defaults={},Il.prototype.datasetElementType=null,Il.prototype.dataElementType=null;class Ul extends Il{parsePrimitiveData(t,e,n,i){return zl(t,e,n,i)}parseArrayData(t,e,n,i){return zl(t,e,n,i)}parseObjectData(t,e,n,i){const{iScale:o,vScale:a}=t,{xAxisKey:r="x",yAxisKey:s="y"}=this._parsing,l="x"===o.axis?r:s,c="x"===a.axis?r: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(ga(f,l),h),d.push(Fl(ga(f,c),p,a,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),a=o._custom,r=Bl(a)?"["+a.start+", "+a.end+"]":""+i.getLabelForValue(o[i.axis]);return{label:""+n.getLabelForValue(o[n.axis]),value:r}}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:a,_cachedMeta:{vScale:r}}=this,s=r.getBasePixel(),l=r.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||Jo(e[r.axis])?{base:s,head:s}:this._calculateBarValuePixels(u),p=this._calculateBarIndexPixels(u,c),f=(e._stacks||{})[r.axis],m={horizontal:l,base:n.base,enableBorderRadius:!f||Bl(e._custom)||a===f._top||a===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&&(m.options=d||this.resolveDataElementOptions(u,t[u].active?"active":i));const g=m.options||t[u].options;Yl(m,g,f,a),Wl(m,g,c.ratio),this.updateElement(t[u],u,m,i)}}_getStacks(t,e){const{iScale:n}=this._cachedMeta,i=n.getMatchingVisibleMetas(this._type).filter(t=>t.controller.options.grouped),o=n.options.stacked,a=[],r=t=>{const n=t.controller.getParsed(e),i=n&&n[t.vScale.axis];if(Jo(i)||isNaN(i))return!0};for(const n of i)if((void 0===e||!r(n))&&((!1===o||-1===a.indexOf(n.stack)||void 0===o&&void 0===n.stack)&&a.push(n.stack),n.index===t))break;return a.length||a.push(void 0),a}_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,a;for(o=0,a=e.data.length;o<a;++o)i.push(n.getPixelForValue(this.getParsed(o)[n.axis],o));const r=t.barThickness;return{min:r||Nl(e),pixels:i,start:n._startPixel,end:n._endPixel,stackCount:this._getStackCount(),scale:n,grouped:t.grouped,ratio:r?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:e,_stacked:n},options:{base:i,minBarLength:o}}=this,a=i||0,r=this.getParsed(t),s=r._custom,l=Bl(s);let c,d,h=r[e.axis],u=0,p=n?this.applyStack(e,r,n):h;p!==h&&(u=p-h,p=h),l&&(h=s.barStart,p=s.barEnd-s.barStart,0!==h&&Aa(h)!==Aa(s.barEnd)&&(u=0),u+=h);const f=Jo(i)||l?u:i;let m=e.getPixelForValue(f);if(c=this.chart.getDataVisibility(t)?e.getPixelForValue(u+p):m,d=c-m,Math.abs(d)<o){d=function(t,e,n){return 0!==t?Aa(t):(e.isHorizontal()?1:-1)*(e.min>=n?1:-1)}(d,e,a)*o,h===a&&(m-=d/2);const t=e.getPixelForDecimal(0),n=e.getPixelForDecimal(1),i=Math.min(t,n),r=Math.max(t,n);m=Math.max(Math.min(m,r),i),c=m+d}if(m===e.getPixelForValue(a)){const t=Aa(d)*e.getLineWidthForValue(a)/2;m+=t,d-=t}return{size:d,base:m,head:c,center:c+d/2}}_calculateBarIndexPixels(t,e){const n=e.scale,i=this.options,o=i.skipNull,a=ia(i.maxBarThickness,1/0);let r,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,a=o[t];let r=t>0?o[t-1]:null,s=t<o.length-1?o[t+1]:null;const l=n.categoryPercentage;null===r&&(r=a-(null===s?e.end-e.start:s-a)),null===s&&(s=a+a-r);const c=a-(a-Math.min(r,s))/2*l;return{chunk:Math.abs(s-r)/2*l/i,ratio:n.barPercentage,start:c}}(t,e,i,n):function(t,e,n,i){const o=n.barThickness;let a,r;return Jo(o)?(a=e.min*n.categoryPercentage,r=n.barPercentage):(a=o*i,r=1),{chunk:a/i,ratio:r,start:e.pixels[t]-a/2}}(t,e,i,n),c=this._getStackIndex(this.index,this._cachedMeta.stack,o?t:void 0);r=l.start+l.chunk*c+l.chunk/2,s=Math.min(a,l.chunk*l.ratio)}else r=n.getPixelForValue(this.getParsed(t)[n.axis],t),s=Math.min(a,e.min*e.ratio);return{base:r-s/2,head:r+s/2,center:r,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)}}Ul.id="bar",Ul.defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}},Ul.overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};class jl extends Il{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=ia(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=ia(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),a=n.getLabelForValue(o.x),r=i.getLabelForValue(o.y),s=o._custom;return{label:e.label,value:"("+a+", "+r+(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:a,vScale:r}=this._cachedMeta,{sharedOptions:s,includeOptions:l}=this._getSharedOptions(e,i),c=a.axis,d=r.axis;for(let h=e;h<e+n;h++){const e=t[h],n=!o&&this.getParsed(h),u={},p=u[c]=o?a.getPixelForDecimal(.5):a.getPixelForValue(n[c]),f=u[d]=o?r.getBasePixel():r.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+=ia(n&&n._custom,o),i}}jl.id="bubble",jl.defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}},jl.overrides={scales:{x:{type:"linear"},y:{type:"linear"}},plugins:{tooltip:{callbacks:{title:()=>""}}}};class Gl extends Il{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,a,r=t=>+n[t];if(ta(n[t])){const{key:t="value"}=this._parsing;r=e=>+ga(n[e],t)}for(o=t,a=t+e;o<a;++o)i._parsed[o]=r(o)}}_getRotation(){return Na(this.options.rotation-90)}_getCircumference(){return Na(this.options.circumference)}_getRotationExtents(){let t=ka,e=-ka;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(),a=i._getCircumference();t=Math.min(t,o),e=Math.max(e,o+a)}return{rotation:t,circumference:e-t}}update(t){const e=this.chart,{chartArea:n}=e,i=this._cachedMeta,o=i.data,a=this.getMaxBorderWidth()+this.getMaxOffset(o)+this.options.spacing,r=Math.max((Math.min(n.width,n.height)-a)/2,0),s=Math.min((l=this.options.cutout,c=r,"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:m,offsetY:g}=function(t,e,n){let i=1,o=1,a=0,r=0;if(e<ka){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)=>Wa(t,s,l,!0)?1:Math.max(e,e*n,i,i*n),f=(t,e,i)=>Wa(t,s,l,!0)?-1:Math.min(e,e*n,i,i*n),m=p(0,c,h),g=p(Da,d,u),b=f(wa,c,h),x=f(wa+Da,d,u);i=(m-b)/2,o=(g-x)/2,a=-(m+b)/2,r=-(g+x)/2}return{ratioX:i,ratioY:o,offsetX:a,offsetY:r}}(u,h,s),b=(n.width-a)/p,x=(n.height-a)/f,y=Math.max(Math.min(b,x)/2,0),v=oa(this.options.radius,y),_=(v-Math.max(v*s,0))/this._getVisibleDatasetWeightTotal();this.offsetX=m*v,this.offsetY=g*v,i.total=this.calculateTotal(),this.outerRadius=v-_*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/ka)}updateElements(t,e,n,i){const o="reset"===i,a=this.chart,r=a.chartArea,s=a.options.animation,l=(r.left+r.right)/2,c=(r.top+r.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 m,g=this._getRotation();for(m=0;m<e;++m)g+=this._circumference(m,o);for(m=e;m<e+n;++m){const e=this._circumference(m,o),n=t[m],a={x:l+this.offsetX,y:c+this.offsetY,startAngle:g,endAngle:g+e,circumference:e,outerRadius:u,innerRadius:h};f&&(a.options=p||this.resolveDataElementOptions(m,n.active?"active":i)),g+=e,this.updateElement(n,m,a,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)?ka*(Math.abs(t)/e):0}getLabelAndValue(t){const e=this._cachedMeta,n=this.chart,i=n.data.labels||[],o=sl(e._parsed[t],n.options.locale);return{label:i[t]||"",value:o}}getMaxBorderWidth(t){let e=0;const n=this.chart;let i,o,a,r,s;if(!t)for(i=0,o=n.data.datasets.length;i<o;++i)if(n.isDatasetVisible(i)){a=n.getDatasetMeta(i),t=a.data,r=a.controller;break}if(!t)return 0;for(i=0,o=t.length;i<o;++i)s=r.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(ia(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}Gl.id="doughnut",Gl.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"},Gl.descriptors={_scriptable:t=>"spacing"!==t,_indexable:t=>"spacing"!==t},Gl.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 Qo(e)?(e=e.slice(),e[0]+=n):e+=n,e}}}}};class $l extends Il{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const e=this._cachedMeta,{dataset:n,data:i=[],_dataset:o}=e,a=this.chart._animationsDisabled;let{start:r,count:s}=nr(e,i,a);this._drawStart=r,this._drawCount=s,ir(e)&&(r=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:!a,options:l},t),this.updateElements(i,r,s,t)}updateElements(t,e,n,i){const o="reset"===i,{iScale:a,vScale:r,_stacked:s,_dataset:l}=this._cachedMeta,{sharedOptions:c,includeOptions:d}=this._getSharedOptions(e,i),h=a.axis,u=r.axis,{spanGaps:p,segment:f}=this.options,m=Ra(p)?p:Number.POSITIVE_INFINITY,g=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=g?e:{},y=Jo(n[u]),v=x[h]=a.getPixelForValue(n[h],p),_=x[u]=o||y?r.getBasePixel():r.getPixelForValue(s?this.applyStack(r,n,s):n[u],p);x.skip=isNaN(v)||isNaN(_)||y,x.stop=p>0&&Math.abs(n[h]-b[h])>m,f&&(x.parsed=n,x.raw=l.data[p]),d&&(x.options=c||this.resolveDataElementOptions(p,e.active?"active":i)),g||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)),a=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(n,o,a)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}$l.id="line",$l.defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1},$l.overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};class Xl extends Il{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=sl(e._parsed[t].r,n.options.locale);return{label:i[t]||"",value:o}}parseObjectData(t,e,n,i){return Ns.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),a=(o-Math.max(n.cutoutPercentage?o/100*n.cutoutPercentage:1,0))/t.getVisibleDatasetCount();this.outerRadius=o-a*this.index,this.innerRadius=this.outerRadius-a}updateElements(t,e,n,i){const o="reset"===i,a=this.chart,r=a.options.animation,s=this._cachedMeta.rScale,l=s.xCenter,c=s.yCenter,d=s.getIndexAngle(0)-.5*wa;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),m=a.getDataVisibility(h)?s.getDistanceFromCenterForValue(this.getParsed(h).r):0;u=f,o&&(r.animateScale&&(m=0),r.animateRotate&&(n=f=d));const g={x:l,y:c,innerRadius:0,outerRadius:m,startAngle:n,endAngle:f,options:this.resolveDataElementOptions(h,e.active?"active":i)};this.updateElement(e,h,g,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)?Na(this.resolveDataElementOptions(t,e).angle||n):0}}Xl.id="polarArea",Xl.defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0},Xl.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 ql extends Gl{}ql.id="pie",ql.defaults={cutout:0,rotation:0,circumference:360,radius:"100%"};class Zl extends Il{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 Ns.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 a={_loop:!0,_fullLoop:o.length===i.length,options:e};this.updateElement(n,void 0,a,t)}this.updateElements(i,0,i.length,t)}updateElements(t,e,n,i){const o=this._cachedMeta.rScale,a="reset"===i;for(let r=e;r<e+n;r++){const e=t[r],n=this.resolveDataElementOptions(r,e.active?"active":i),s=o.getPointPositionForValue(r,this.getParsed(r).r),l=a?o.xCenter:s.x,c=a?o.yCenter:s.y,d={x:l,y:c,angle:s.angle,skip:isNaN(l)||isNaN(c),options:n};this.updateElement(e,r,d,i)}}}Zl.id="radar",Zl.defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}},Zl.overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};class Kl{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 Ra(this.x)&&Ra(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}}Kl.defaults={},Kl.defaultRoutes=void 0;const Jl={values:t=>Qo(t)?t:""+t,numeric(t,e,n){if(0===t)return"0";const i=this.chart.options.locale;let o,a=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"),a=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 r=Ta(Math.abs(a)),s=Math.max(Math.min(-1*Math.floor(r),20),0),l={notation:o,minimumFractionDigits:s,maximumFractionDigits:s};return Object.assign(l,this.options.ticks.format),sl(t,i,l)},logarithmic(t,e,n){if(0===t)return"0";const i=t/Math.pow(10,Math.floor(Ta(t)));return 1===i||2===i||5===i?Jl.numeric.call(this,t,e,n):""}};var Ql={formatters:Jl};function tc(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):[],a=o.length,r=o[0],s=o[a-1],l=[];if(a>i)return function(t,e,n,i){let o,a=0,r=n[0];for(i=Math.ceil(i),o=0;o<t.length;o++)o===r&&(e.push(t[o]),a++,r=n[a*i])}(e,l,o,a/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 a=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=a.length-1;t<e;t++){const e=a[t];if(e>o)return e}return Math.max(o,1)}(o,e,i);if(a>0){let t,n;const i=a>1?Math.round((s-r)/(a-1)):null;for(ec(e,l,c,Jo(i)?0:r-i,r),t=0,n=a-1;t<n;t++)ec(e,l,c,o[t],o[t+1]);return ec(e,l,c,s,Jo(i)?e.length:s+i),l}return ec(e,l,c),l}function ec(t,e,n,i,o){const a=ia(i,0),r=Math.min(ia(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=a;c<0;)d++,c=Math.round(a+d*n);for(l=Math.max(a,0);l<r;l++)l===c&&(e.push(t[l]),d++,c=Math.round(a+d*n))}Zr.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:Ql.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),Zr.route("scale.ticks","color","","color"),Zr.route("scale.grid","color","","borderColor"),Zr.route("scale.grid","borderColor","","borderColor"),Zr.route("scale.title","color","","color"),Zr.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&"callback"!==t&&"parser"!==t,_indexable:t=>"borderDash"!==t&&"tickBorderDash"!==t}),Zr.describe("scales",{_fallback:"scale"}),Zr.describe("scale.ticks",{_scriptable:t=>"backdropPadding"!==t&&"callback"!==t,_indexable:t=>"backdropPadding"!==t});const nc=(t,e,n)=>"top"===e||"left"===e?t[e]+n:t[e]-n;function ic(t,e){const n=[],i=t.length/e,o=t.length;let a=0;for(;a<o;a+=i)n.push(t[Math.floor(a)]);return n}function oc(t,e,n){const i=t.ticks.length,o=Math.min(e,i-1),a=t._startPixel,r=t._endPixel,s=1e-6;let l,c=t.getPixelForTick(o);if(!(n&&(l=1===i?Math.max(c-a,r-c):0===e?(t.getPixelForTick(1)-c)/2:(c-t.getPixelForTick(o-1))/2,c+=o<e?l:-l,c<a-s||c>r+s)))return c}function rc(t){return t.drawTicks?t.tickLength:0}function sc(t,e){if(!t.display)return 0;const n=vs(t.font,e),i=ys(t.padding);return(Qo(t.text)?t.text.length:1)*n.lineHeight+i.height}function lc(t,e,n){let i=tr(t);return(n&&"right"!==e||!n&&"right"===e)&&(i=(t=>"left"===t?"right":"right"===t?"left":t)(i)),i}class cc extends Kl{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=na(t,Number.POSITIVE_INFINITY),e=na(e,Number.NEGATIVE_INFINITY),n=na(n,Number.POSITIVE_INFINITY),i=na(i,Number.NEGATIVE_INFINITY),{min:na(t,n),max:na(e,i),minDefined:ea(t),maxDefined:ea(e)}}getMinMax(t){let e,{min:n,max:i,minDefined:o,maxDefined:a}=this.getUserBounds();if(o&&a)return{min:n,max:i};const r=this.getMatchingVisibleMetas();for(let s=0,l=r.length;s<l;++s)e=r[s].controller.getMinMax(this,t),o||(n=Math.min(n,e.min)),a||(i=Math.max(i,e.max));return n=a&&n>i?i:n,i=o&&n>i?n:i,{min:na(n,na(i,n)),max:na(i,na(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(){ra(this.options.beforeUpdate,[this])}update(t,e,n){const{beginAtZero:i,grace:o,ticks:a}=this.options,r=a.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,a=oa(e,(o-i)/2),r=(t,e)=>n&&0===t?0:t+e;return{min:r(i,-Math.abs(a)),max:r(o,a)}}(this,o,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const s=r<this.ticks.length;this._convertTicksToLabels(s?ic(this.ticks,r):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),a.display&&(a.autoSkip||"auto"===a.source)&&(this.ticks=tc(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(){ra(this.options.afterUpdate,[this])}beforeSetDimensions(){ra(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(){ra(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),ra(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){ra(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=ra(e.callback,[o.value,n,t],this)}afterTickToLabelConversion(){ra(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){ra(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,e=t.ticks,n=this.ticks.length,i=e.minRotation||0,o=e.maxRotation;let a,r,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=Ua(this.chart.width-d,0,this.maxWidth);a=t.offset?this.maxWidth/n:u/(n-1),d+6>a&&(a=u/(n-(t.offset?.5:1)),r=this.maxHeight-rc(t.grid)-e.padding-sc(t.title,this.chart.options.font),s=Math.sqrt(d*d+h*h),l=Fa(Math.min(Math.asin(Ua((c.highest.height+6)/a,-1,1)),Math.asin(Ua(r/s,-1,1))-Math.asin(Ua(h/s,-1,1)))),l=Math.max(i,Math.min(o,l))),this.labelRotation=l}afterCalculateLabelRotation(){ra(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){ra(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:e,options:{ticks:n,title:i,grid:o}}=this,a=this._isVisible(),r=this.isHorizontal();if(a){const a=sc(i,e.options.font);if(r?(t.width=this.maxWidth,t.height=rc(o)+a):(t.height=this.maxHeight,t.width=rc(o)+a),n.display&&this.ticks.length){const{first:e,last:i,widest:o,highest:a}=this._getLabelSizes(),s=2*n.padding,l=Na(this.labelRotation),c=Math.cos(l),d=Math.sin(l);if(r){const e=n.mirror?0:d*o.width+c*a.height;t.height=Math.min(this.maxHeight,t.height+e+s)}else{const e=n.mirror?0:c*o.width+d*a.height;t.width=Math.min(this.maxWidth,t.width+e+s)}this._calculatePadding(e,i,d,c)}}this._handleMargins(),r?(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:a},position:r}=this.options,s=0!==this.labelRotation,l="top"!==r&&"x"===this.axis;if(this.isHorizontal()){const r=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-r+a)*this.width/(this.width-r),0),this.paddingRight=Math.max((h-c+a)*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+a,this.paddingBottom=i+a}}_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(){ra(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++)Jo(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=ic(n,e)),this._labelSizes=t=this._computeLabelSizes(n,n.length)}return t}_computeLabelSizes(t,e){const{ctx:n,_longestTextCache:i}=this,o=[],a=[];let r,s,l,c,d,h,u,p,f,m,g,b=0,x=0;for(r=0;r<e;++r){if(c=t[r].label,d=this._resolveTickFontOptions(r),n.font=h=d.string,u=i[h]=i[h]||{data:{},gc:[]},p=d.lineHeight,f=m=0,Jo(c)||Qo(c)){if(Qo(c))for(s=0,l=c.length;s<l;++s)g=c[s],Jo(g)||Qo(g)||(f=Kr(n,u.data,u.gc,f,g),m+=p)}else f=Kr(n,u.data,u.gc,f,c),m=p;o.push(f),a.push(m),b=Math.max(f,b),x=Math.max(m,x)}!function(t,e){sa(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 y=o.indexOf(b),v=a.indexOf(x),_=t=>({width:o[t]||0,height:a[t]||0});return{first:_(0),last:_(e-1),widest:_(y),highest:_(v),widths:o,heights:a}}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 Ua(this._alignToPixels?Qr(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 ws(t,{tick:n,index:e,type:"tick"})}(this.getContext(),t,n))}return this.$context||(this.$context=ws(this.chart.getContext(),{scale:this,type:"scale"}))}_tickSize(){const t=this.options.ticks,e=Na(this.labelRotation),n=Math.abs(Math.cos(e)),i=Math.abs(Math.sin(e)),o=this._getLabelSizes(),a=t.autoSkipPadding||0,r=o?o.widest.width+a:0,s=o?o.highest.height+a:0;return this.isHorizontal()?s*n>r*i?r/n:s/i:s*i<r*n?s/n:r/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:a}=i,r=o.offset,s=this.isHorizontal(),l=this.ticks.length+(r?1:0),c=rc(o),d=[],h=o.setContext(this.getContext()),u=h.drawBorder?h.borderWidth:0,p=u/2,f=function(t){return Qr(n,t,u)};let m,g,b,x,y,v,_,w,k,S,E,M;if("top"===a)m=f(this.bottom),v=this.bottom-c,w=m-p,S=f(t.top)+p,M=t.bottom;else if("bottom"===a)m=f(this.top),S=t.top,M=f(t.bottom)-p,v=m+p,w=this.top+c;else if("left"===a)m=f(this.right),y=this.right-c,_=m-p,k=f(t.left)+p,E=t.right;else if("right"===a)m=f(this.left),k=t.left,E=f(t.right)-p,y=m+p,_=this.left+c;else if("x"===e){if("center"===a)m=f((t.top+t.bottom)/2+.5);else if(ta(a)){const t=Object.keys(a)[0],e=a[t];m=f(this.chart.scales[t].getPixelForValue(e))}S=t.top,M=t.bottom,v=m+p,w=v+c}else if("y"===e){if("center"===a)m=f((t.left+t.right)/2);else if(ta(a)){const t=Object.keys(a)[0],e=a[t];m=f(this.chart.scales[t].getPixelForValue(e))}y=m-p,_=y-c,k=t.left,E=t.right}const D=ia(i.ticks.maxTicksLimit,l),C=Math.max(1,Math.ceil(l/D));for(g=0;g<l;g+=C){const t=o.setContext(this.getContext(g)),e=t.lineWidth,i=t.color,a=t.borderDash||[],l=t.borderDashOffset,c=t.tickWidth,h=t.tickColor,u=t.tickBorderDash||[],p=t.tickBorderDashOffset;b=oc(this,g,r),void 0!==b&&(x=Qr(n,b,e),s?y=_=k=E=x:v=w=S=M=x,d.push({tx1:y,ty1:v,tx2:_,ty2:w,x1:k,y1:S,x2:E,y2:M,width:e,color:i,borderDash:a,borderDashOffset:l,tickWidth:c,tickColor:h,tickBorderDash:u,tickBorderDashOffset:p}))}return this._ticksLength=l,this._borderValue=m,d}_computeLabelItems(t){const e=this.axis,n=this.options,{position:i,ticks:o}=n,a=this.isHorizontal(),r=this.ticks,{align:s,crossAlign:l,padding:c,mirror:d}=o,h=rc(n.grid),u=h+c,p=d?-c:u,f=-Na(this.labelRotation),m=[];let g,b,x,y,v,_,w,k,S,E,M,D,C="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,v=t.x}else if("right"===i){const t=this._getYAxisLabelAlignment(h);w=t.textAlign,v=t.x}else if("x"===e){if("center"===i)_=(t.top+t.bottom)/2+u;else if(ta(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)v=(t.left+t.right)/2-u;else if(ta(i)){const t=Object.keys(i)[0],e=i[t];v=this.chart.scales[t].getPixelForValue(e)}w=this._getYAxisLabelAlignment(h).textAlign}"y"===e&&("start"===s?C="top":"end"===s&&(C="bottom"));const O=this._getLabelSizes();for(g=0,b=r.length;g<b;++g){x=r[g],y=x.label;const t=o.setContext(this.getContext(g));k=this.getPixelForTick(g)+o.labelOffset,S=this._resolveTickFontOptions(g),E=S.lineHeight,M=Qo(y)?y.length:1;const e=M/2,n=t.color,s=t.textStrokeColor,c=t.textStrokeWidth;let h,u=w;if(a?(v=k,"inner"===w&&(u=g===b-1?this.options.reverse?"left":"right":0===g?this.options.reverse?"right":"left":"center"),D="top"===i?"near"===l||0!==f?-M*E+E/2:"center"===l?-O.highest.height/2-e*E+E:-O.highest.height+E/2:"near"===l||0!==f?E/2:"center"===l?O.highest.height/2-e*E:O.highest.height-M*E,d&&(D*=-1)):(_=k,D=(1-M)*E/2),t.showLabelBackdrop){const e=ys(t.backdropPadding),n=O.heights[g],i=O.widths[g];let o=_+D-e.top,a=v-e.left;switch(C){case"middle":o-=n/2;break;case"bottom":o-=n}switch(w){case"center":a-=i/2;break;case"right":a-=i}h={left:a,top:o,width:i+e.width,height:n+e.height,color:t.backdropColor}}m.push({rotation:f,label:y,font:S,color:n,strokeColor:s,strokeWidth:c,textOffset:D,textAlign:u,textBaseline:C,translation:[v,_],backdrop:h})}return m}_getXAxisLabelAlignment(){const{position:t,ticks:e}=this.options;if(-Na(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,a=t+o,r=this._getLabelSizes().widest.width;let s,l;return"left"===e?i?(l=this.right+o,"near"===n?s="left":"center"===n?(s="center",l+=r/2):(s="right",l+=r)):(l=this.right-a,"near"===n?s="right":"center"===n?(s="center",l-=r/2):(s="left",l=this.left)):"right"===e?i?(l=this.left+o,"near"===n?s="right":"center"===n?(s="center",l-=r/2):(s="left",l-=r)):(l=this.left+a,"near"===n?s="left":"center"===n?(s="center",l+=r/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:a}=this;e&&(t.save(),t.fillStyle=e,t.fillRect(n,i,o,a),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,a;const r=(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,a=i.length;o<a;++o){const t=i[o];e.drawOnChartArea&&r({x:t.x1,y:t.y1},{x:t.x2,y:t.y2},t),e.drawTicks&&r({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 a=n.setContext(this.getContext(0)).lineWidth,r=this._borderValue;let s,l,c,d;this.isHorizontal()?(s=Qr(t,this.left,o)-o/2,l=Qr(t,this.right,a)+a/2,c=d=r):(c=Qr(t,this.top,o)-o/2,d=Qr(t,this.bottom,a)+a/2,s=l=r),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&&os(e,n);const i=this._labelItems||(this._labelItems=this._computeLabelItems(t));let o,a;for(o=0,a=i.length;o<a;++o){const t=i[o],n=t.font,a=t.label;t.backdrop&&(e.fillStyle=t.backdrop.color,e.fillRect(t.backdrop.left,t.backdrop.top,t.backdrop.width,t.backdrop.height)),cs(e,a,0,t.textOffset,n,t)}n&&rs(e)}drawTitle(){const{ctx:t,options:{position:e,title:n,reverse:i}}=this;if(!n.display)return;const o=vs(n.font),a=ys(n.padding),r=n.align;let s=o.lineHeight/2;"bottom"===e||"center"===e||ta(e)?(s+=a.bottom,Qo(n.text)&&(s+=o.lineHeight*(n.text.length-1))):s+=a.top;const{titleX:l,titleY:c,maxWidth:d,rotation:h}=function(t,e,n,i){const{top:o,left:a,bottom:r,right:s,chart:l}=t,{chartArea:c,scales:d}=l;let h,u,p,f=0;const m=r-o,g=s-a;if(t.isHorizontal()){if(u=er(i,a,s),ta(n)){const t=Object.keys(n)[0],i=n[t];p=d[t].getPixelForValue(i)+m-e}else p="center"===n?(c.bottom+c.top)/2+m-e:nc(t,n,e);h=s-a}else{if(ta(n)){const t=Object.keys(n)[0],i=n[t];u=d[t].getPixelForValue(i)-g+e}else u="center"===n?(c.left+c.right)/2-g+e:nc(t,n,e);p=er(i,r,o),f="left"===n?-Da:Da}return{titleX:u,titleY:p,maxWidth:h,rotation:f}}(this,s,e,r);cs(t,n.text,0,0,o,{color:n.color,maxWidth:d,rotation:h,textAlign:lc(r,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=ia(t.grid&&t.grid.z,-1);return this._isVisible()&&this.draw===cc.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,a;for(o=0,a=e.length;o<a;++o){const a=e[o];a[n]!==this.id||t&&a.type!==t||i.push(a)}return i}_resolveTickFontOptions(t){return vs(this.options.ticks.setContext(this.getContext(t)).font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class dc{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,a=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=ua(Object.create(null),[n?Zr.get(n):{},Zr.get(e),t.defaults]);Zr.set(e,i),t.defaultRoutes&&function(t,e){Object.keys(e).forEach(n=>{const i=n.split("."),o=i.pop(),a=[t].concat(i).join("."),r=e[n].split("."),s=r.pop(),l=r.join(".");Zr.route(a,o,l,s)})}(e,t.defaultRoutes);t.descriptors&&Zr.describe(e,t.descriptors)}(t,a,n),this.override&&Zr.override(t.id,t.overrides)),a}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 Zr[i]&&(delete Zr[i][n],this.override&&delete Gr[n])}}var hc=new class{constructor(){this.controllers=new dc(Il,"datasets",!0),this.elements=new dc(Kl,"elements"),this.plugins=new dc(Object,"plugins"),this.scales=new dc(cc,"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):sa(e,e=>{const i=n||this._getRegistryForType(e);this._exec(t,i,e)})})}_exec(t,e,n){const i=xa(t);ra(n["before"+i],[],n),e[t](n),ra(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 uc extends Il{update(t){const e=this._cachedMeta,{data:n=[]}=e,i=this.chart._animationsDisabled;let{start:o,count:a}=nr(e,n,i);if(this._drawStart=o,this._drawCount=a,ir(e)&&(o=0,a=n.length),this.options.showLine){const{dataset:o,_dataset:a}=e;o._chart=this.chart,o._datasetIndex=this.index,o._decimated=!!a._decimated,o.points=n;const r=this.resolveDatasetElementOptions(t);r.segment=this.options.segment,this.updateElement(o,void 0,{animated:!i,options:r},t)}this.updateElements(n,o,a,t)}addElements(){const{showLine:t}=this.options;!this.datasetElementType&&t&&(this.datasetElementType=hc.getElement("line")),super.addElements()}updateElements(t,e,n,i){const o="reset"===i,{iScale:a,vScale:r,_stacked:s,_dataset:l}=this._cachedMeta,c=this.resolveDataElementOptions(e,i),d=this.getSharedOptions(c),h=this.includeOptions(i,d),u=a.axis,p=r.axis,{spanGaps:f,segment:m}=this.options,g=Ra(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:{},y=Jo(n[p]),v=f[u]=a.getPixelForValue(n[u],c),_=f[p]=o||y?r.getBasePixel():r.getPixelForValue(s?this.applyStack(r,n,s):n[p],c);f.skip=isNaN(v)||isNaN(_)||y,f.stop=c>0&&Math.abs(n[u]-x[u])>g,m&&(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)),a=e[e.length-1].size(this.resolveDataElementOptions(e.length-1));return Math.max(i,o,a)/2}}function pc(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}uc.id="scatter",uc.defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1},uc.overrides={interaction:{mode:"point"},plugins:{tooltip:{callbacks:{title:()=>"",label:t=>"("+t.label+", "+t.formattedValue+")"}}},scales:{x:{type:"linear"},y:{type:"linear"}}};class fc{constructor(t){this.options=t||{}}init(t){}formats(){return pc()}parse(t,e){return pc()}format(t,e){return pc()}add(t,e,n){return pc()}diff(t,e,n){return pc()}startOf(t,e,n){return pc()}endOf(t,e){return pc()}}fc.override=function(t){Object.assign(fc.prototype,t)};var mc={_date:fc};function gc(t,e,n,i){const{controller:o,data:a,_sorted:r}=t,s=o._cachedMeta.iScale;if(s&&e===s.axis&&"r"!==e&&r&&a.length){const t=s._reversePixels?Xa:$a;if(!i)return t(a,e,n);if(o._sharedOptions){const i=a[0],o="function"==typeof i.getRange&&i.getRange(e);if(o){const i=t(a,e,n-o),r=t(a,e,n+o);return{lo:i.lo,hi:r.hi}}}}return{lo:0,hi:a.length-1}}function xc(t,e,n,i,o){const a=t.getSortedVisibleDatasetMetas(),r=n[e];for(let t=0,n=a.length;t<n;++t){const{index:n,data:s}=a[t],{lo:l,hi:c}=gc(a[t],e,r,o);for(let t=l;t<=c;++t){const e=s[t];e.skip||i(e,n,t)}}}function yc(t,e,n,i,o){const a=[];if(!o&&!t.isPointInArea(e))return a;return xc(t,n,e,function(n,r,s){(o||is(n,t.chartArea,0))&&n.inRange(e.x,e.y,i)&&a.push({element:n,datasetIndex:r,index:s})},!0),a}function vc(t,e,n,i,o,a){let r=[];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,a=n?Math.abs(t.y-i.y):0;return Math.sqrt(Math.pow(o,2)+Math.pow(a,2))}}(n);let l=Number.POSITIVE_INFINITY;return xc(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(!(!!a||t.isPointInArea(u))&&!h)return;const p=s(e,u);p<l?(r=[{element:n,datasetIndex:c,index:d}],l=p):p===l&&r.push({element:n,datasetIndex:c,index:d})}),r}function _c(t,e,n,i,o,a){return a||t.isPointInArea(e)?"r"!==n||i?vc(t,e,n,i,o,a):function(t,e,n,i){let o=[];return xc(t,n,e,function(t,n,a){const{startAngle:r,endAngle:s}=t.getProps(["startAngle","endAngle"],i),{angle:l}=Ba(t,{x:e.x,y:e.y});Wa(l,r,s)&&o.push({element:t,datasetIndex:n,index:a})}),o}(t,e,n,o):[]}function wc(t,e,n,i,o){const a=[],r="x"===n?"inXRange":"inYRange";let s=!1;return xc(t,n,e,(t,i,l)=>{t[r](e[n],o)&&(a.push({element:t,datasetIndex:i,index:l}),s=s||t.inRange(e.x,e.y,o))}),i&&!s?[]:a}var kc={evaluateInteractionItems:xc,modes:{index(t,e,n,i){const o=Zs(e,t),a=n.axis||"x",r=n.includeInvisible||!1,s=n.intersect?yc(t,o,a,i,r):_c(t,o,a,!1,i,r),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=Zs(e,t),a=n.axis||"xy",r=n.includeInvisible||!1;let s=n.intersect?yc(t,o,a,i,r):_c(t,o,a,!1,i,r);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)=>yc(t,Zs(e,t),n.axis||"xy",i,n.includeInvisible||!1),nearest(t,e,n,i){const o=Zs(e,t),a=n.axis||"xy",r=n.includeInvisible||!1;return _c(t,o,a,n.intersect,i,r)},x:(t,e,n,i)=>wc(t,Zs(e,t),"x",n.intersect,i),y:(t,e,n,i)=>wc(t,Zs(e,t),"y",n.intersect,i)}};const Sc=["left","top","right","bottom"];function Ec(t,e){return t.filter(t=>t.pos===e)}function Mc(t,e){return t.filter(t=>-1===Sc.indexOf(t.pos)&&t.box.axis===e)}function Dc(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 Cc(t,e){const n=function(t){const e={};for(const n of t){const{stack:t,pos:i,stackWeight:o}=n;if(!t||!Sc.includes(i))continue;const a=e[t]||(e[t]={count:0,placed:0,weight:0,size:0});a.count++,a.weight+=o}return e}(t),{vBoxMaxWidth:i,hBoxMaxHeight:o}=e;let a,r,s;for(a=0,r=t.length;a<r;++a){s=t[a];const{fullSize:r}=s.box,l=n[s.stack],c=l&&s.stackWeight/l.weight;s.horizontal?(s.width=c?c*i:r&&e.availableWidth,s.height=o):(s.width=i,s.height=c?c*o:r&&e.availableHeight)}return n}function Oc(t,e,n,i){return Math.max(t[n],e[n])+Math.max(t[i],e[i])}function Tc(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 Ac(t,e,n,i){const{pos:o,box:a}=n,r=t.maxPadding;if(!ta(o)){n.size&&(t[o]-=n.size);const e=i[n.stack]||{size:0,count:1};e.size=Math.max(e.size,n.horizontal?a.height:a.width),n.size=e.size/e.count,t[o]+=n.size}a.getPadding&&Tc(r,a.getPadding());const s=Math.max(0,e.outerWidth-Oc(r,t,"left","right")),l=Math.max(0,e.outerHeight-Oc(r,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 Pc(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 Rc(t,e,n,i){const o=[];let a,r,s,l,c,d;for(a=0,r=t.length,c=0;a<r;++a){s=t[a],l=s.box,l.update(s.width||e.w,s.height||e.h,Pc(s.horizontal,e));const{same:r,other:h}=Ac(e,n,s,i);c|=r&&o.length,d=d||h,l.fullSize||o.push(s)}return c&&Rc(o,e,n,i)||d}function Lc(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 Ic(t,e,n,i){const o=n.padding;let{x:a,y:r}=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,a=l.size||t.height;ya(l.start)&&(r=l.start),t.fullSize?Lc(t,o.left,r,n.outerWidth-o.right-o.left,a):Lc(t,e.left+l.placed,r,i,a),l.start=r,l.placed+=i,r=t.bottom}else{const i=e.h*c,r=l.size||t.width;ya(l.start)&&(a=l.start),t.fullSize?Lc(t,a,o.top,r,n.outerHeight-o.bottom-o.top):Lc(t,a,e.top+l.placed,r,i),l.start=a,l.placed+=i,a=t.right}}e.x=a,e.y=r}Zr.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}});var Nc={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=ys(t.options.layout.padding),a=Math.max(e-o.width,0),r=Math.max(n-o.height,0),s=function(t){const e=function(t){const e=[];let n,i,o,a,r,s;for(n=0,i=(t||[]).length;n<i;++n)o=t[n],({position:a,options:{stack:r,stackWeight:s=1}}=o),e.push({index:n,box:o,pos:a,horizontal:o.isHorizontal(),weight:o.weight,stack:r&&a+r,stackWeight:s});return e}(t),n=Dc(e.filter(t=>t.box.fullSize),!0),i=Dc(Ec(e,"left"),!0),o=Dc(Ec(e,"right")),a=Dc(Ec(e,"top"),!0),r=Dc(Ec(e,"bottom")),s=Mc(e,"x"),l=Mc(e,"y");return{fullSize:n,leftAndTop:i.concat(a),rightAndBottom:o.concat(l).concat(r).concat(s),chartArea:Ec(e,"chartArea"),vertical:i.concat(o).concat(l),horizontal:a.concat(r).concat(s)}}(t.boxes),l=s.vertical,c=s.horizontal;sa(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:a,availableHeight:r,vBoxMaxWidth:a/2/d,hBoxMaxHeight:r/2}),u=Object.assign({},o);Tc(u,ys(i));const p=Object.assign({maxPadding:u,w:a,h:r,x:o.left,y:o.top},o),f=Cc(l.concat(c),h);Rc(s.fullSize,p,h,f),Rc(l,p,h,f),Rc(c,p,h,f)&&Rc(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),Ic(s.leftAndTop,p,h,f),p.x+=p.w,p.y+=p.h,Ic(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},sa(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 Fc{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 zc extends Fc{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const Bc="$chartjs",Yc={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Vc=t=>null===t||""===t;const Hc=!!tl&&{passive:!0};function Wc(t,e,n){t.canvas.removeEventListener(e,n,Hc)}function Uc(t,e){for(const n of t)if(n===e||n.contains(e))return!0}function jc(t,e,n){const i=t.canvas,o=new MutationObserver(t=>{let e=!1;for(const n of t)e=e||Uc(n.addedNodes,i),e=e&&!Uc(n.removedNodes,i);e&&n()});return o.observe(document,{childList:!0,subtree:!0}),o}function Gc(t,e,n){const i=t.canvas,o=new MutationObserver(t=>{let e=!1;for(const n of t)e=e||Uc(n.removedNodes,i),e=e&&!Uc(n.addedNodes,i);e&&n()});return o.observe(document,{childList:!0,subtree:!0}),o}const $c=new Map;let Xc=0;function qc(){const t=window.devicePixelRatio;t!==Xc&&(Xc=t,$c.forEach((e,n)=>{n.currentDevicePixelRatio!==t&&e()}))}function Zc(t,e,n){const i=t.canvas,o=i&&js(i);if(!o)return;const a=Qa((t,e)=>{const i=o.clientWidth;n(t,e),i<o.clientWidth&&n()},window),r=new ResizeObserver(t=>{const e=t[0],n=e.contentRect.width,i=e.contentRect.height;0===n&&0===i||a(n,i)});return r.observe(o),function(t,e){$c.size||window.addEventListener("resize",qc),$c.set(t,e)}(t,a),r}function Kc(t,e,n){n&&n.disconnect(),"resize"===e&&function(t){$c.delete(t),$c.size||window.removeEventListener("resize",qc)}(t)}function Jc(t,e,n){const i=t.canvas,o=Qa(e=>{null!==t.ctx&&n(function(t,e){const n=Yc[t.type]||t.type,{x:i,y:o}=Zs(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,Hc)}(i,e,o),o}class Qc extends Fc{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[Bc]={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",Vc(o)){const e=el(t,"width");void 0!==e&&(t.width=e)}if(Vc(i))if(""===t.style.height)t.height=t.width/(e||2);else{const e=el(t,"height");void 0!==e&&(t.height=e)}}(t,e),n):null}releaseContext(t){const e=t.canvas;if(!e[Bc])return!1;const n=e[Bc].initial;["height","width"].forEach(t=>{const i=n[t];Jo(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[Bc],!0}addEventListener(t,e,n){this.removeEventListener(t,e);const i=t.$proxies||(t.$proxies={}),o={attach:jc,detach:Gc,resize:Zc}[e]||Jc;i[e]=o(t,e,n)}removeEventListener(t,e){const n=t.$proxies||(t.$proxies={}),i=n[e];if(!i)return;({attach:Kc,detach:Kc,resize:Kc}[e]||Wc)(t,e,i),n[e]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,n,i){return Js(t,e,n,i)}isAttached(t){const e=js(t);return!(!e||!e.isConnected)}}class td{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),a=this._notify(o,t,e,n);return"afterDestroy"===e&&(this._notify(o,t,"stop"),this._notify(this._init,t,"uninstall")),a}_notify(t,e,n,i){i=i||{};for(const o of t){const t=o.plugin;if(!1===ra(t[n],[e,i,o.options],t)&&i.cancelable)return!1}return!0}invalidate(){Jo(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=ia(n.options&&n.options.plugins,{}),o=function(t){const e={},n=[],i=Object.keys(hc.plugins.items);for(let t=0;t<i.length;t++)n.push(hc.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 a=[],r=t.getContext();for(const s of e){const e=s.id,l=ed(i[e],o);null!==l&&a.push({plugin:s,options:nd(t.config,{plugin:s,local:n[e]},l,r)})}return a}(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 ed(t,e){return e||!1!==t?!0===t?{}:t:null}function nd(t,{plugin:e,local:n},i,o){const a=t.pluginScopeKeys(e),r=t.getOptionScopes(i,a);return n&&e.defaults&&r.push(e.defaults),t.createResolver(r,o,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function id(t,e){const n=Zr.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||n.indexAxis||"x"}function od(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 rd(t){const e=t.options||(t.options={});e.plugins=ia(e.plugins,{}),e.scales=function(t,e){const n=Gr[t.type]||{scales:{}},i=e.scales||{},o=id(t.type,e),a=Object.create(null),r=Object.create(null);return Object.keys(i).forEach(t=>{const e=i[t];if(!ta(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=od(t,e),l=function(t,e){return t===e?"_index_":"_value_"}(s,o),c=n.scales||{};a[s]=a[s]||t,r[t]=pa(Object.create(null),[{axis:s},e,c[s],c[l]])}),t.data.datasets.forEach(n=>{const o=n.type||t.type,s=n.indexAxis||id(o,e),l=(Gr[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"]||a[e]||e;r[o]=r[o]||Object.create(null),pa(r[o],[{axis:e},i[o],l[t]])})}),Object.keys(r).forEach(t=>{const e=r[t];pa(e,[Zr.scales[e.type],Zr.scale])}),r}(t,e)}function sd(t){return(t=t||{}).datasets=t.datasets||[],t.labels=t.labels||[],t}const ld=new Map,cd=new Set;function dd(t,e){let n=ld.get(t);return n||(n=e(),ld.set(t,n),cd.add(n)),n}const hd=(t,e,n)=>{const i=ga(e,n);void 0!==i&&t.add(i)};class ud{constructor(t){this._config=function(t){return(t=t||{}).data=sd(t.data),rd(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=sd(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(),rd(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return dd(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,e){return dd(`${t}.transition.${e}`,()=>[[`datasets.${t}.transitions.${e}`,`transitions.${e}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,e){return dd(`${t}-${e}`,()=>[[`datasets.${t}.elements.${e}`,`datasets.${t}`,`elements.${e}`,""]])}pluginScopeKeys(t){const e=t.id;return dd(`${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,a=this._cachedScopes(t,n),r=a.get(e);if(r)return r;const s=new Set;e.forEach(e=>{t&&(s.add(t),e.forEach(e=>hd(s,t,e))),e.forEach(t=>hd(s,i,t)),e.forEach(t=>hd(s,Gr[o]||{},t)),e.forEach(t=>hd(s,Zr,t)),e.forEach(t=>hd(s,$r,t))});const l=Array.from(s);return 0===l.length&&l.push(Object.create(null)),cd.has(e)&&a.set(e,l),l}chartOptionScopes(){const{options:t,type:e}=this;return[t,Gr[e]||{},Zr.datasets[e]||{},{type:e},Zr,$r]}resolveNamedOptions(t,e,n,i=[""]){const o={$shared:!0},{resolver:a,subPrefixes:r}=pd(this._resolverCache,t,i);let s=a;if(function(t,e){const{isScriptable:n,isIndexable:i}=Es(t);for(const o of e){const e=n(o),a=i(o),r=(a||e)&&t[o];if(e&&(va(r)||fd(r))||a&&Qo(r))return!0}return!1}(a,e)){o.$shared=!1;s=Ss(a,n=va(n)?n():n,this.createResolver(t,n,r))}for(const t of e)o[t]=s[t];return o}createResolver(t,e,n=[""],i){const{resolver:o}=pd(this._resolverCache,t,n);return ta(e)?Ss(o,e,void 0,i):o}}function pd(t,e,n){let i=t.get(e);i||(i=new Map,t.set(e,i));const o=n.join();let a=i.get(o);if(!a){a={resolver:ks(e,n),subPrefixes:n.filter(t=>!t.toLowerCase().includes("hover"))},i.set(o,a)}return a}const fd=t=>ta(t)&&Object.getOwnPropertyNames(t).reduce((e,n)=>e||va(t[n]),!1);const md=["top","bottom","left","right","chartArea"];function gd(t,e){return"top"===t||"bottom"===t||-1===md.indexOf(t)&&"x"===e}function xd(t,e){return function(n,i){return n[t]===i[t]?n[e]-i[e]:n[t]-i[t]}}function yd(t){const e=t.chart,n=e.options.animation;e.notifyPlugins("afterRender"),ra(n&&n.onComplete,[t],e)}function vd(t){const e=t.chart,n=e.options.animation;ra(n&&n.onProgress,[t],e)}function _d(t){return Us()&&"string"==typeof t?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const wd={},kd=t=>{const e=_d(t);return Object.values(wd).filter(t=>t.canvas===e).pop()};function Sd(t,e,n){const i=Object.keys(t);for(const o of i){const i=+o;if(i>=e){const a=t[o];delete t[o],(n>0||i>e)&&(t[i+n]=a)}}}class Ed{constructor(t,e){const n=this.config=new ud(e),i=_d(t),o=kd(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 a=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||function(t){return!Us()||"undefined"!=typeof OffscreenCanvas&&t instanceof OffscreenCanvas?zc:Qc}(i)),this.platform.updateConfig(n);const r=this.platform.acquireContext(i,a.aspectRatio),s=r&&r.canvas,l=s&&s.height,c=s&&s.width;this.id=Ko(),this.ctx=r,this.canvas=s,this.width=c,this.height=l,this._options=a,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 td,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),a.resizeDelay||0),this._dataChanges=[],wd[this.id]=this,r&&s?(xl.listen(this,"complete",yd),xl.listen(this,"progress",vd),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 Jo(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():Qs(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return ts(this.canvas,this.ctx),this}stop(){return xl.stop(this),this}resize(t,e){xl.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,a=this.platform.getMaximumSize(i,t,e,o),r=n.devicePixelRatio||this.platform.getDevicePixelRatio(),s=this.width?"resize":"attach";this.width=a.width,this.height=a.height,this._aspectRatio=this.aspectRatio,Qs(this,r,!0)&&(this.notifyPlugins("resize",{size:a}),ra(n.onResize,[this,a],this),this.attached&&this._doResize(s)&&this.render())}ensureScalesHaveIDs(){sa(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=od(t,n),o="r"===i,a="x"===i;return{options:n,dposition:o?"chartArea":a?"bottom":"left",dtype:o?"radialLinear":a?"category":"linear"}}))),sa(o,e=>{const o=e.options,a=o.id,r=od(a,o),s=ia(o.type,e.dtype);void 0!==o.position&&gd(o.position,r)===gd(e.dposition)||(o.position=e.dposition),i[a]=!0;let l=null;if(a in n&&n[a].type===s)l=n[a];else{l=new(hc.getScale(s))({id:a,type:s,ctx:this.ctx,chart:this}),n[l.id]=l}l.init(o,t)}),sa(i,(t,e)=>{t||delete n[e]}),sa(n,t=>{Nc.configure(this,t,t.options),Nc.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(xd("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 a=i.type||this.config.type;if(o.type&&o.type!==a&&(this._destroyDatasetMeta(n),o=this.getDatasetMeta(n)),o.type=a,o.indexAxis=i.indexAxis||id(a,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=hc.getController(a),{datasetElementType:i,dataElementType:r}=Zr.datasets[a];Object.assign(e.prototype,{dataElementType:hc.getElement(r),datasetElementType:i&&hc.getElement(i)}),o.controller=new e(this,n),t.push(o.controller)}}return this._updateMetasets(),t}_resetElements(){sa(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 a=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),a=Math.max(+e.getMaxOverflow(),a)}a=this._minPadding=n.layout.autoPadding?a:0,this._updateLayout(a),i||sa(o,t=>{t.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(xd("z","_idx"));const{_active:r,_lastEvent:s}=this;s?this._eventHandler(s,!0):r.length&&this._updateHoverStyles(r,r,!0),this.render()}_updateScales(){sa(this.scales,t=>{Nc.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,e=new Set(Object.keys(this._listeners)),n=new Set(t.events);_a(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){Sd(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(!_a(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;Nc.update(this,this.width,this.height,t);const e=this.chartArea,n=e.width<=0||e.height<=0;this._layers=[],sa(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,va(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})&&(xl.has(this)?this.attached&&!xl.running(this)&&xl.start(this):(this.draw(),yd({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,a={meta:t,index:t.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",a)&&(i&&os(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&&rs(e),a.cancelable=!1,this.notifyPlugins("afterDatasetDraw",a))}isPointInArea(t){return is(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,e,n,i){const o=kc.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=ws(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),a=o.controller._resolveAnimations(void 0,i);ya(e)?(o.data[e].hidden=!n,this.update()):(this.setDatasetVisibility(t,n),a.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(),xl.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(),ts(t,e),this.platform.releaseContext(e),this.canvas=null,this.ctx=null),this.notifyPlugins("destroy"),delete wd[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)};sa(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 a;const r=()=>{i("attach",r),this.attached=!0,this.resize(),n("resize",o),n("detach",a)};a=()=>{this.attached=!1,i("resize",o),this._stop(),this._resize(0,0),n("attach",r)},e.isAttached(this.canvas)?r():a()}unbindEvents(){sa(this._listeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._listeners={},sa(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,a,r,s;for("dataset"===e&&(o=this.getDatasetMeta(t[0].datasetIndex),o.controller["_"+i+"DatasetHoverStyle"]()),r=0,s=t.length;r<s;++r){a=t[r];const e=a&&this.getDatasetMeta(a.datasetIndex).controller;e&&e[i+"HoverStyle"](a.element,a.datasetIndex,a.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}});!la(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)),a=o(e,t),r=n?t:o(t,e);a.length&&this.updateHoverStyle(a,i.mode,!1),r.length&&i.mode&&this.updateHoverStyle(r,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,a=e,r=this._getActiveElements(t,i,n,a),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,ra(o.onHover,[t,r,this],this),s&&ra(o.onClick,[t,r,this],this));const c=!la(r,i);return(c||e)&&(this._active=r,this._updateHoverStyles(r,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 Md=()=>sa(Ed.instances,t=>t._plugins.invalidate()),Dd=!0;function Cd(t,e,n){const{startAngle:i,pixelMargin:o,x:a,y:r,outerRadius:s,innerRadius:l}=e;let c=o/s;t.beginPath(),t.arc(a,r,s,i-c,n+c),l>o?(c=o/l,t.arc(a,r,l,n+c,i-c,!0)):t.arc(a,r,o,n+Da,i-Da),t.closePath(),t.clip()}function Od(t,e,n,i){const o=gs(t.options.borderRadius,["outerStart","outerEnd","innerStart","innerEnd"]);const a=(n-e)/2,r=Math.min(a,i*e/2),s=t=>{const e=(n-Math.min(a,t))*i/2;return Ua(t,0,Math.min(a,e))};return{outerStart:s(o.outerStart),outerEnd:s(o.outerEnd),innerStart:Ua(o.innerStart,0,r),innerEnd:Ua(o.innerEnd,0,r)}}function Td(t,e,n,i){return{x:n+t*Math.cos(e),y:i+t*Math.sin(e)}}function Ad(t,e,n,i,o,a){const{x:r,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 m=(f-Math.max(.001,f*h-n/wa)/h)/2,g=l+m+p,b=o-m-p,{outerStart:x,outerEnd:y,innerStart:v,innerEnd:_}=Od(e,u,h,b-g),w=h-x,k=h-y,S=g+x/w,E=b-y/k,M=u+v,D=u+_,C=g+v/M,O=b-_/D;if(t.beginPath(),a){if(t.arc(r,s,h,S,E),y>0){const e=Td(k,E,r,s);t.arc(e.x,e.y,y,E,b+Da)}const e=Td(D,b,r,s);if(t.lineTo(e.x,e.y),_>0){const e=Td(D,O,r,s);t.arc(e.x,e.y,_,b+Da,O+Math.PI)}if(t.arc(r,s,u,b-_/u,g+v/u,!0),v>0){const e=Td(M,C,r,s);t.arc(e.x,e.y,v,C+Math.PI,g-Da)}const n=Td(w,g,r,s);if(t.lineTo(n.x,n.y),x>0){const e=Td(w,S,r,s);t.arc(e.x,e.y,x,g-Da,S)}}else{t.moveTo(r,s);const e=Math.cos(S)*h+r,n=Math.sin(S)*h+s;t.lineTo(e,n);const i=Math.cos(E)*h+r,o=Math.sin(E)*h+s;t.lineTo(i,o)}t.closePath()}function Pd(t,e,n,i,o,a){const{options:r}=e,{borderWidth:s,borderJoinStyle:l}=r,c="inner"===r.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:a,pixelMargin:r,fullCircles:s}=e,l=Math.max(e.outerRadius-r,0),c=e.innerRadius+r;let d;for(n&&Cd(t,e,a+ka),t.beginPath(),t.arc(i,o,c,a+ka,a,!0),d=0;d<s;++d)t.stroke();for(t.beginPath(),t.arc(i,o,l,a,a+ka),d=0;d<s;++d)t.stroke()}(t,e,c),c&&Cd(t,e,o),Ad(t,e,n,i,o,a),t.stroke())}Object.defineProperties(Ed,{defaults:{enumerable:Dd,value:Zr},instances:{enumerable:Dd,value:wd},overrides:{enumerable:Dd,value:Gr},registry:{enumerable:Dd,value:hc},version:{enumerable:Dd,value:"3.9.1"},getChart:{enumerable:Dd,value:kd},register:{enumerable:Dd,value:(...t)=>{hc.add(...t),Md()}},unregister:{enumerable:Dd,value:(...t)=>{hc.remove(...t),Md()}}});class Rd extends Kl{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:a}=Ba(i,{x:t,y:e}),{startAngle:r,endAngle:s,innerRadius:l,outerRadius:c,circumference:d}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],n),h=this.options.spacing/2,u=ia(d,s-r)>=ka||Wa(o,r,s),p=ja(a,l+h,c+h);return u&&p}getCenterPoint(t){const{x:e,y:n,startAngle:i,endAngle:o,innerRadius:a,outerRadius:r}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius","circumference"],t),{offset:s,spacing:l}=this.options,c=(i+o)/2,d=(a+r+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,a=e.circular;if(this.pixelMargin="inner"===e.borderAlign?.33:0,this.fullCircles=n>ka?Math.floor(n/ka):0,0===n||this.innerRadius<0||this.outerRadius<0)return;t.save();let r=0;if(i){r=i/2;const e=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(e)*r,Math.sin(e)*r),this.circumference>=wa&&(r=i)}t.fillStyle=e.backgroundColor,t.strokeStyle=e.borderColor;const s=function(t,e,n,i,o){const{fullCircles:a,startAngle:r,circumference:s}=e;let l=e.endAngle;if(a){Ad(t,e,n,i,r+ka,o);for(let e=0;e<a;++e)t.fill();isNaN(s)||(l=r+s%ka,s%ka===0&&(l+=ka))}return Ad(t,e,n,i,l,o),t.fill(),l}(t,this,r,o,a);Pd(t,this,r,o,s,a),t.restore()}}function Ld(t,e,n=e){t.lineCap=ia(n.borderCapStyle,e.borderCapStyle),t.setLineDash(ia(n.borderDash,e.borderDash)),t.lineDashOffset=ia(n.borderDashOffset,e.borderDashOffset),t.lineJoin=ia(n.borderJoinStyle,e.borderJoinStyle),t.lineWidth=ia(n.borderWidth,e.borderWidth),t.strokeStyle=ia(n.borderColor,e.borderColor)}function Id(t,e,n){t.lineTo(n.x,n.y)}function Nd(t,e,n={}){const i=t.length,{start:o=0,end:a=i-1}=n,{start:r,end:s}=e,l=Math.max(o,r),c=Math.min(a,s),d=o<r&&a<r||o>s&&a>s;return{count:i,start:l,loop:e.loop,ilen:c<l&&!d?i+c-l:c-l}}function Fd(t,e,n,i){const{points:o,options:a}=e,{count:r,start:s,loop:l,ilen:c}=Nd(o,n,i),d=function(t){return t.stepped?ss:t.tension||"monotone"===t.cubicInterpolationMode?ls:Id}(a);let h,u,p,{move:f=!0,reverse:m}=i||{};for(h=0;h<=c;++h)u=o[(s+(m?c-h:h))%r],u.skip||(f?(t.moveTo(u.x,u.y),f=!1):d(t,p,u,m,a.stepped),p=u);return l&&(u=o[(s+(m?c:0))%r],d(t,p,u,m,a.stepped)),!!l}function zd(t,e,n,i){const o=e.points,{count:a,start:r,ilen:s}=Nd(o,n,i),{move:l=!0,reverse:c}=i||{};let d,h,u,p,f,m,g=0,b=0;const x=t=>(r+(c?s-t:t))%a,y=()=>{p!==f&&(t.lineTo(g,f),t.lineTo(g,p),t.lineTo(g,m))};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),g=(b*g+e)/++b):(y(),t.lineTo(e,n),u=i,b=0,p=f=n),m=n}y()}function Bd(t){const e=t.options,n=e.borderDash&&e.borderDash.length;return!(t._decimated||t._loop||e.tension||"monotone"===e.cubicInterpolationMode||e.stepped||n)?zd:Fd}Rd.id="arc",Rd.defaults={borderAlign:"center",borderColor:"#fff",borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0},Rd.defaultRoutes={backgroundColor:"backgroundColor"};const Yd="function"==typeof Path2D;function Vd(t,e,n,i){Yd&&!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()),Ld(t,e.options),t.stroke(o)}(t,e,n,i):function(t,e,n,i){const{segments:o,options:a}=e,r=Bd(e);for(const s of o)Ld(t,a,s.style),t.beginPath(),r(t,e,s,{start:n,end:n+i-1})&&t.closePath(),t.stroke()}(t,e,n,i)}class Hd extends Kl{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;Ws(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 a=!!t._loop,{start:r,end:s}=function(t,e,n,i){let o=0,a=e-1;if(n&&!i)for(;o<e&&!t[o].skip;)o++;for(;o<e&&t[o].skip;)o++;for(o%=e,n&&(a+=o);a>o&&t[a%e].skip;)a--;return a%=e,{start:o,end:a}}(n,o,a,i);return ml(t,!0===i?[{start:r,end:s,loop:a}]:function(t,e,n,i){const o=t.length,a=[];let r,s=e,l=t[e];for(r=e+1;r<=n;++r){const n=t[r%o];n.skip||n.stop?l.skip||(i=!1,a.push({start:e%o,end:(r-1)%o,loop:i}),e=s=n.stop?r:null):(s=r,l.skip&&(e=r)),l=n}return null!==s&&a.push({start:e%o,end:s%o,loop:i}),a}(n,r,s<r?s+o:s,!!t._fullLoop&&0===r&&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,a=fl(this,{property:e,start:i,end:i});if(!a.length)return;const r=[],s=function(t){return t.stepped?il:t.tension||"monotone"===t.cubicInterpolationMode?ol:nl}(n);let l,c;for(l=0,c=a.length;l<c;++l){const{start:c,end:d}=a[l],h=o[c],u=o[d];if(h===u){r.push(h);continue}const p=s(h,u,Math.abs((i-h[e])/(u[e]-h[e])),n.stepped);p[e]=t[e],r.push(p)}return 1===r.length?r[0]:r}pathSegment(t,e,n){return Bd(this)(t,this,e,n)}path(t,e,n){const i=this.segments,o=Bd(this);let a=this._loop;e=e||0,n=n||this.points.length-e;for(const r of i)a&=o(t,this,r,{start:e,end:e+n-1});return!!a}draw(t,e,n,i){const o=this.options||{};(this.points||[]).length&&o.borderWidth&&(t.save(),Vd(t,this,n,i),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}function Wd(t,e,n,i){const o=t.options,{[n]:a}=t.getProps([n],i);return Math.abs(e-a)<o.radius+o.hitRadius}Hd.id="line",Hd.defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0},Hd.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"},Hd.descriptors={_scriptable:!0,_indexable:t=>"borderDash"!==t&&"fill"!==t};class Ud extends Kl{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:a}=this.getProps(["x","y"],n);return Math.pow(t-o,2)+Math.pow(e-a,2)<Math.pow(i.hitRadius+i.radius,2)}inXRange(t,e){return Wd(this,t,"x",e)}inYRange(t,e){return Wd(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||!is(this,e,this.size(n)/2)||(t.strokeStyle=n.borderColor,t.lineWidth=n.borderWidth,t.fillStyle=n.backgroundColor,es(t,n,this.x,this.y))}getRange(){const t=this.options||{};return t.radius+t.hitRadius}}function jd(t,e){const{x:n,y:i,base:o,width:a,height:r}=t.getProps(["x","y","base","width","height"],e);let s,l,c,d,h;return t.horizontal?(h=r/2,s=Math.min(n,o),l=Math.max(n,o),c=i-h,d=i+h):(h=a/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 Gd(t,e,n,i){return t?0:Ua(e,n,i)}function $d(t){const e=jd(t),n=e.right-e.left,i=e.bottom-e.top,o=function(t,e,n){const i=t.options.borderWidth,o=t.borderSkipped,a=bs(i);return{t:Gd(o.top,a.top,0,n),r:Gd(o.right,a.right,0,e),b:Gd(o.bottom,a.bottom,0,n),l:Gd(o.left,a.left,0,e)}}(t,n/2,i/2),a=function(t,e,n){const{enableBorderRadius:i}=t.getProps(["enableBorderRadius"]),o=t.options.borderRadius,a=xs(o),r=Math.min(e,n),s=t.borderSkipped,l=i||ta(o);return{topLeft:Gd(!l||s.top||s.left,a.topLeft,0,r),topRight:Gd(!l||s.top||s.right,a.topRight,0,r),bottomLeft:Gd(!l||s.bottom||s.left,a.bottomLeft,0,r),bottomRight:Gd(!l||s.bottom||s.right,a.bottomRight,0,r)}}(t,n/2,i/2);return{outer:{x:e.left,y:e.top,w:n,h:i,radius:a},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,a.topLeft-Math.max(o.t,o.l)),topRight:Math.max(0,a.topRight-Math.max(o.t,o.r)),bottomLeft:Math.max(0,a.bottomLeft-Math.max(o.b,o.l)),bottomRight:Math.max(0,a.bottomRight-Math.max(o.b,o.r))}}}}function Xd(t,e,n,i){const o=null===e,a=null===n,r=t&&!(o&&a)&&jd(t,i);return r&&(o||ja(e,r.left,r.right))&&(a||ja(n,r.top,r.bottom))}function qd(t,e){t.rect(e.x,e.y,e.w,e.h)}function Zd(t,e,n={}){const i=t.x!==n.x?-e:0,o=t.y!==n.y?-e:0,a=(t.x+t.w!==n.x+n.w?e:0)-i,r=(t.y+t.h!==n.y+n.h?e:0)-o;return{x:t.x+i,y:t.y+o,w:t.w+a,h:t.h+r,radius:t.radius}}Ud.id="point",Ud.defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0},Ud.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};class Kd extends Kl{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:a}=$d(this),r=(s=a.radius).topLeft||s.topRight||s.bottomLeft||s.bottomRight?hs:qd;var s;t.save(),a.w===o.w&&a.h===o.h||(t.beginPath(),r(t,Zd(a,e,o)),t.clip(),r(t,Zd(o,-e,a)),t.fillStyle=n,t.fill("evenodd")),t.beginPath(),r(t,Zd(o,e)),t.fillStyle=i,t.fill(),t.restore()}inRange(t,e,n){return Xd(this,t,e,n)}inXRange(t,e){return Xd(this,t,null,e)}inYRange(t,e){return Xd(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 Jd(t,e,n,i){if(i)return;let o=e[t],a=n[t];return"angle"===t&&(o=Ha(o),a=Ha(a)),{property:t,start:o,end:a}}function Qd(t,e,n){for(;e>t;e--){const t=n[e];if(!isNaN(t.x)&&!isNaN(t.y))break}return e}function th(t,e,n,i){return t&&e?i(t[n],e[n]):t?t[n]:e?e[n]:0}function eh(t,e){let n=[],i=!1;return Qo(t)?(i=!0,n=t):n=function(t,e){const{x:n=null,y:i=null}=t||{},o=e.points,a=[];return e.segments.forEach(({start:t,end:e})=>{e=Qd(t,e,o);const r=o[t],s=o[e];null!==i?(a.push({x:r.x,y:i}),a.push({x:s.x,y:i})):null!==n&&(a.push({x:n,y:r.y}),a.push({x:n,y:s.y}))}),a}(t,e),n.length?new Hd({points:n,options:{tension:0},_loop:i,_fullLoop:i}):null}function nh(t){return t&&!1!==t.fill}function ih(t,e,n){let i=t[e].fill;const o=[e];let a;if(!n)return i;for(;!1!==i&&-1===o.indexOf(i);){if(!ea(i))return i;if(a=t[i],!a)return!1;if(a.visible)return i;o.push(i),i=a.fill}return!1}function oh(t,e,n){const i=function(t){const e=t.options,n=e.fill;let i=ia(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(ta(i))return!isNaN(i.value)&&i;let o=parseFloat(i);return ea(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 rh(t,e,n){const i=[];for(let o=0;o<n.length;o++){const a=n[o],{first:r,last:s,point:l}=sh(a,e,"x");if(!(!l||r&&s))if(r)i.unshift(l);else if(t.push(l),!s)break}t.push(...i)}function sh(t,e,n){const i=t.interpolate(e,n);if(!i)return{};const o=i[n],a=t.segments,r=t.points;let s=!1,l=!1;for(let t=0;t<a.length;t++){const e=a[t],i=r[e.start][n],c=r[e.end][n];if(ja(o,i,c)){s=o===i,l=o===c;break}}return{first:s,last:l,point:i}}Kd.id="bar",Kd.defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0},Kd.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};class lh{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,e,n){const{x:i,y:o,radius:a}=this;return e=e||{start:0,end:ka},t.arc(i,o,a,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 ch(t){const{chart:e,fill:n,line:i}=t;if(ea(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=[],a=i.segments,r=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(eh({x:null,y:e.bottom},i));for(let t=0;t<a.length;t++){const e=a[t];for(let t=e.start;t<=e.end;t++)rh(o,r[t],s)}return new Hd({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,a=i.reverse?e.max:e.min,r=function(t,e,n){let i;return i="start"===t?n:"end"===t?e.options.reverse?e.min:e.max:ta(t)?t.value:e.getBaseValue(),i}(n,e,a),s=[];if(i.grid.circular){const t=e.getPointPositionForValue(0,a);return new lh({x:t.x,y:t.y,radius:e.getDistanceFromCenterForValue(r)})}for(let t=0;t<o;++t)s.push(e.getPointPositionForValue(t,r));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:ta(t)?n=e.getPixelForValue(t.value):e.getBasePixel&&(n=e.getBasePixel()),n}(n,e);if(ea(i)){const t=e.isHorizontal();return{x:t?i:null,y:t?null:i}}return null}(t)}(t);return o instanceof lh?o:eh(o,i)}function dh(t,e,n){const i=ch(e),{line:o,scale:a,axis:r}=e,s=o.options,l=s.fill,c=s.backgroundColor,{above:d=c,below:h=c}=l||{};i&&o.points.length&&(os(t,n),function(t,e){const{line:n,target:i,above:o,below:a,area:r,scale:s}=e,l=n._loop?"angle":e.axis;t.save(),"x"===l&&a!==o&&(hh(t,i,r.top),uh(t,{line:n,target:i,color:o,scale:s,property:l}),t.restore(),t.save(),hh(t,i,r.bottom));uh(t,{line:n,target:i,color:a,scale:s,property:l}),t.restore()}(t,{line:o,target:i,above:d,below:h,area:n,scale:a,axis:r}),rs(t))}function hh(t,e,n){const{segments:i,points:o}=e;let a=!0,r=!1;t.beginPath();for(const s of i){const{start:i,end:l}=s,c=o[i],d=o[Qd(i,l,o)];a?(t.moveTo(c.x,c.y),a=!1):(t.lineTo(c.x,n),t.lineTo(c.x,c.y)),r=!!e.pathSegment(t,s,{move:r}),r?t.closePath():t.lineTo(d.x,n)}t.lineTo(e.first().x,n),t.closePath(),t.clip()}function uh(t,e){const{line:n,target:i,property:o,color:a,scale:r}=e,s=function(t,e,n){const i=t.segments,o=t.points,a=e.points,r=[];for(const t of i){let{start:i,end:s}=t;s=Qd(i,s,o);const l=Jd(n,o[i],o[s],t.loop);if(!e.segments){r.push({source:t,target:l,start:o[i],end:o[s]});continue}const c=fl(e,l);for(const e of c){const i=Jd(n,a[e.start],a[e.end],e.loop),s=pl(t,o,i);for(const t of s)r.push({source:t,target:e,start:{[n]:th(l,i,"start",Math.max)},end:{[n]:th(l,i,"end",Math.min)}})}}return r}(n,i,o);for(const{source:e,target:l,start:c,end:d}of s){const{style:{backgroundColor:s=a}={}}=e,h=!0!==i;t.save(),t.fillStyle=s,ph(t,r,h&&Jd(o,c,d)),t.beginPath();const u=!!n.pathSegment(t,e);let p;if(h){u?t.closePath():fh(t,i,d,o);const e=!!i.pathSegment(t,l,{move:u,reverse:!0});p=u&&e,p||fh(t,i,c,o)}t.closePath(),t.fill(p?"evenodd":"nonzero"),t.restore()}}function ph(t,e,n){const{top:i,bottom:o}=e.chart.chartArea,{property:a,start:r,end:s}=n||{};"x"===a&&(t.beginPath(),t.rect(r,i,s-r,o-i),t.clip())}function fh(t,e,n,i){const o=e.interpolate(n,i);o&&t.lineTo(o.x,o.y)}var mh={id:"filler",afterDatasetsUpdate(t,e,n){const i=(t.data.datasets||[]).length,o=[];let a,r,s,l;for(r=0;r<i;++r)a=t.getDatasetMeta(r),s=a.dataset,l=null,s&&s.options&&s instanceof Hd&&(l={visible:t.isDatasetVisible(r),index:r,fill:oh(s,r,i),chart:t,axis:a.controller.options.indexAxis,scale:a.vScale,line:s}),a.$filler=l,o.push(l);for(r=0;r<i;++r)l=o[r],l&&!1!==l.fill&&(l.fill=ih(o,r,n.propagate))},beforeDraw(t,e,n){const i="beforeDraw"===n.drawTime,o=t.getSortedVisibleDatasetMetas(),a=t.chartArea;for(let e=o.length-1;e>=0;--e){const n=o[e].$filler;n&&(n.line.updateControlPoints(a,n.axis),i&&n.fill&&dh(t.ctx,n,a))}},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;nh(n)&&dh(t.ctx,n,t.chartArea)}},beforeDatasetDraw(t,e,n){const i=e.meta.$filler;nh(i)&&"beforeDatasetDraw"===n.drawTime&&dh(t.ctx,i,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const gh=(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 bh extends Kl{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=ra(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=vs(n.font),o=i.size,a=this._computeTitleHeight(),{boxWidth:r,itemHeight:s}=gh(n,o);let l,c;e.font=i.string,this.isHorizontal()?(l=this.maxWidth,c=this._fitRows(a,o,r,s)+10):(c=this.maxHeight,l=this._fitCols(a,o,r,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:a,options:{labels:{padding:r}}}=this,s=this.legendHitBoxes=[],l=this.lineWidths=[0],c=i+r;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*r>a)&&(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+r}),d}_fitCols(t,e,n,i){const{ctx:o,maxHeight:a,options:{labels:{padding:r}}}=this,s=this.legendHitBoxes=[],l=this.columnSizes=[],c=a-t;let d=r,h=0,u=0,p=0,f=0;return this.legendItems.forEach((t,a)=>{const m=n+e/2+o.measureText(t.text).width;a>0&&u+i+2*r>c&&(d+=h+r,l.push({width:h,height:u}),p+=h+r,f++,h=u=0),s[a]={left:p,top:u,col:f,width:m,height:i},h=Math.max(h,m),u+=i+r}),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,a=ll(o,this.left,this.width);if(this.isHorizontal()){let o=0,r=er(n,this.left+i,this.right-this.lineWidths[o]);for(const s of e)o!==s.row&&(o=s.row,r=er(n,this.left+i,this.right-this.lineWidths[o])),s.top+=this.top+t+i,s.left=a.leftForLtr(a.x(r),s.width),r+=s.width+i}else{let o=0,r=er(n,this.top+t+i,this.bottom-this.columnSizes[o].height);for(const s of e)s.col!==o&&(o=s.col,r=er(n,this.top+t+i,this.bottom-this.columnSizes[o].height)),s.top=r,s.left+=this.left+i,s.left=a.leftForLtr(a.x(s.left),s.width),r+=s.height+i}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const t=this.ctx;os(t,this),this._draw(),rs(t)}}_draw(){const{options:t,columnSizes:e,lineWidths:n,ctx:i}=this,{align:o,labels:a}=t,r=Zr.color,s=ll(t.rtl,this.left,this.width),l=vs(a.font),{color:c,padding:d}=a,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:m,itemHeight:g}=gh(a,h),b=this.isHorizontal(),x=this._computeTitleHeight();p=b?{x:er(o,this.left+d,this.right-n[0]),y:this.top+d+x,line:0}:{x:this.left+d,y:er(o,this.top+x+d,this.bottom-e[0].height),line:0},cl(this.ctx,t.textDirection);const y=g+d;this.legendItems.forEach((v,_)=>{i.strokeStyle=v.fontColor||c,i.fillStyle=v.fontColor||c;const w=i.measureText(v.text).width,k=s.textAlign(v.textAlign||(v.textAlign=a.textAlign)),S=f+u+w;let E=p.x,M=p.y;s.setWidth(this.width),b?_>0&&E+S+d>this.right&&(M=p.y+=y,p.line++,E=p.x=er(o,this.left+d,this.right-n[p.line])):_>0&&M+y>this.bottom&&(E=p.x=E+e[p.line].width+d,p.line++,M=p.y=er(o,this.top+x+d,this.bottom-e[p.line].height));!function(t,e,n){if(isNaN(f)||f<=0||isNaN(m)||m<0)return;i.save();const o=ia(n.lineWidth,1);if(i.fillStyle=ia(n.fillStyle,r),i.lineCap=ia(n.lineCap,"butt"),i.lineDashOffset=ia(n.lineDashOffset,0),i.lineJoin=ia(n.lineJoin,"miter"),i.lineWidth=o,i.strokeStyle=ia(n.strokeStyle,r),i.setLineDash(ia(n.lineDash,[])),a.usePointStyle){const r={radius:m*Math.SQRT2/2,pointStyle:n.pointStyle,rotation:n.rotation,borderWidth:o},l=s.xPlus(t,f/2);ns(i,r,l,e+u,a.pointStyleWidth&&f)}else{const a=e+Math.max((h-m)/2,0),r=s.leftForLtr(t,f),l=xs(n.borderRadius);i.beginPath(),Object.values(l).some(t=>0!==t)?hs(i,{x:r,y:a,w:f,h:m,radius:l}):i.rect(r,a,f,m),i.fill(),0!==o&&i.stroke()}i.restore()}(s.x(E),M,v),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){cs(i,n.text,t,e+g/2,l,{strikethrough:n.hidden,textAlign:s.textAlign(n.textAlign)})}(s.x(E),M,v),b?p.x+=S+d:p.y+=y}),dl(this.ctx,t.textDirection)}drawTitle(){const t=this.options,e=t.title,n=vs(e.font),i=ys(e.padding);if(!e.display)return;const o=ll(t.rtl,this.left,this.width),a=this.ctx,r=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=er(t.align,d,this.right-h);else{const e=this.columnSizes.reduce((t,e)=>Math.max(t,e.height),0);c=l+er(t.align,this.top,this.bottom-e-t.labels.padding-this._computeTitleHeight())}const u=er(r,d,d+h);a.textAlign=o.textAlign(tr(r)),a.textBaseline="middle",a.strokeStyle=e.color,a.fillStyle=e.color,a.font=n.string,cs(a,e.text,u,c,n)}_computeTitleHeight(){const t=this.options.title,e=vs(t.font),n=ys(t.padding);return t.display?e.lineHeight+n.height:0}_getLegendItemAt(t,e){let n,i,o;if(ja(t,this.left,this.right)&&ja(e,this.top,this.bottom))for(o=this.legendHitBoxes,n=0;n<o.length;++n)if(i=o[n],ja(t,i.left,i.left+i.width)&&ja(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 i=this._hoveredItem,o=((t,e)=>null!==t&&null!==e&&t.datasetIndex===e.datasetIndex&&t.index===e.index)(i,n);i&&!o&&ra(e.onLeave,[t,i,this],this),this._hoveredItem=n,n&&!o&&ra(e.onHover,[t,n,this],this)}else n&&ra(e.onClick,[t,n,this],this)}}var xh={id:"legend",_element:bh,start(t,e,n){const i=t.legend=new bh({ctx:t.ctx,options:n,chart:t});Nc.configure(t,i,n),Nc.addBox(t,i)},stop(t){Nc.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,n){const i=t.legend;Nc.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:a}}=t.legend.options;return t._getSortedDatasetMetas().map(t=>{const r=t.controller.getStyle(n?0:void 0),s=ys(r.borderWidth);return{text:e[t.index].label,fillStyle:r.backgroundColor,fontColor:a,hidden:!t.visible,lineCap:r.borderCapStyle,lineDash:r.borderDash,lineDashOffset:r.borderDashOffset,lineJoin:r.borderJoinStyle,lineWidth:(s.width+s.height)/4,strokeStyle:r.borderColor,pointStyle:i||r.pointStyle,rotation:r.rotation,textAlign:o||r.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 yh={average(t){if(!t.length)return!1;let e,n,i=0,o=0,a=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,++a}}return{x:i/a,y:o/a}},nearest(t,e){if(!t.length)return!1;let n,i,o,a=e.x,r=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=Ya(e,i.getCenterPoint());t<s&&(s=t,o=i)}}if(o){const t=o.tooltipPosition();a=t.x,r=t.y}return{x:a,y:r}}};function vh(t,e){return e&&(Qo(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function _h(t){return("string"==typeof t||t instanceof String)&&t.indexOf("\n")>-1?t.split("\n"):t}function wh(t,e){const{element:n,datasetIndex:i,index:o}=e,a=t.getDatasetMeta(i).controller,{label:r,value:s}=a.getLabelAndValue(o);return{chart:t,label:r,parsed:a.getParsed(o),raw:t.data.datasets[i].data[o],formattedValue:s,dataset:a.getDataset(),dataIndex:o,datasetIndex:i,element:n}}function kh(t,e){const n=t.chart.ctx,{body:i,footer:o,title:a}=t,{boxWidth:r,boxHeight:s}=e,l=vs(e.bodyFont),c=vs(e.titleFont),d=vs(e.footerFont),h=a.length,u=o.length,p=i.length,f=ys(e.padding);let m=f.height,g=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&&(m+=h*c.lineHeight+(h-1)*e.titleSpacing+e.titleMarginBottom),b){m+=p*(e.displayColors?Math.max(s,l.lineHeight):l.lineHeight)+(b-p)*l.lineHeight+(b-1)*e.bodySpacing}u&&(m+=e.footerMarginTop+u*d.lineHeight+(u-1)*e.footerSpacing);let x=0;const y=function(t){g=Math.max(g,n.measureText(t).width+x)};return n.save(),n.font=c.string,sa(t.title,y),n.font=l.string,sa(t.beforeBody.concat(t.afterBody),y),x=e.displayColors?r+2+e.boxPadding:0,sa(i,t=>{sa(t.before,y),sa(t.lines,y),sa(t.after,y)}),x=0,n.font=d.string,sa(t.footer,y),n.restore(),g+=f.width,{width:g,height:m}}function Sh(t,e,n,i){const{x:o,width:a}=n,{width:r,chartArea:{left:s,right:l}}=t;let c="center";return"center"===i?c=o<=(s+l)/2?"left":"right":o<=a/2?c="left":o>=r-a/2&&(c="right"),function(t,e,n,i){const{x:o,width:a}=i,r=n.caretSize+n.caretPadding;return"left"===t&&o+a+r>e.width||"right"===t&&o-a-r<0||void 0}(c,t,e,n)&&(c="center"),c}function Eh(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||Sh(t,e,n,i),yAlign:i}}function Mh(t,e,n,i){const{caretSize:o,caretPadding:a,cornerRadius:r}=t,{xAlign:s,yAlign:l}=n,c=o+a,{topLeft:d,topRight:h,bottomLeft:u,bottomRight:p}=xs(r);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 m=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:Ua(f,0,i.width-e.width),y:Ua(m,0,i.height-e.height)}}function Dh(t,e,n){const i=ys(n.padding);return"center"===e?t.x+t.width/2:"right"===e?t.x+t.width-i.right:t.x+i.left}function Ch(t){return vh([],_h(t))}function Oh(t,e){const n=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return n?t.override(n):t}class Th extends Kl{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 kl(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,ws(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]),a=n.afterTitle.apply(this,[t]);let r=[];return r=vh(r,_h(i)),r=vh(r,_h(o)),r=vh(r,_h(a)),r}getBeforeBody(t,e){return Ch(e.callbacks.beforeBody.apply(this,[t]))}getBody(t,e){const{callbacks:n}=e,i=[];return sa(t,t=>{const e={before:[],lines:[],after:[]},o=Oh(n,t);vh(e.before,_h(o.beforeLabel.call(this,t))),vh(e.lines,o.label.call(this,t)),vh(e.after,_h(o.afterLabel.call(this,t))),i.push(e)}),i}getAfterBody(t,e){return Ch(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]),a=n.afterFooter.apply(this,[t]);let r=[];return r=vh(r,_h(i)),r=vh(r,_h(o)),r=vh(r,_h(a)),r}_createItems(t){const e=this._active,n=this.chart.data,i=[],o=[],a=[];let r,s,l=[];for(r=0,s=e.length;r<s;++r)l.push(wh(this.chart,e[r]));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))),sa(l,e=>{const n=Oh(t.callbacks,e);i.push(n.labelColor.call(this,e)),o.push(n.labelPointStyle.call(this,e)),a.push(n.labelTextColor.call(this,e))}),this.labelColors=i,this.labelPointStyles=o,this.labelTextColors=a,this.dataPoints=l,l}update(t,e){const n=this.options.setContext(this.getContext()),i=this._active;let o,a=[];if(i.length){const t=yh[n.position].call(this,i,this._eventPosition);a=this._createItems(n),this.title=this.getTitle(a,n),this.beforeBody=this.getBeforeBody(a,n),this.body=this.getBody(a,n),this.afterBody=this.getAfterBody(a,n),this.footer=this.getFooter(a,n);const e=this._size=kh(this,n),r=Object.assign({},t,e),s=Eh(this.chart,n,r),l=Mh(n,r,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=a,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:a,cornerRadius:r}=n,{topLeft:s,topRight:l,bottomLeft:c,bottomRight:d}=xs(r),{x:h,y:u}=t,{width:p,height:f}=e;let m,g,b,x,y,v;return"center"===o?(y=u+f/2,"left"===i?(m=h,g=m-a,x=y+a,v=y-a):(m=h+p,g=m+a,x=y-a,v=y+a),b=m):(g="left"===i?h+Math.max(s,c)+a:"right"===i?h+p-Math.max(l,d)-a:this.caretX,"top"===o?(x=u,y=x-a,m=g-a,b=g+a):(x=u+f,y=x+a,m=g+a,b=g-a),v=x),{x1:m,x2:g,x3:b,y1:x,y2:y,y3:v}}drawTitle(t,e,n){const i=this.title,o=i.length;let a,r,s;if(o){const l=ll(n.rtl,this.x,this.width);for(t.x=Dh(this,n.titleAlign,n),e.textAlign=l.textAlign(n.titleAlign),e.textBaseline="middle",a=vs(n.titleFont),r=n.titleSpacing,e.fillStyle=n.titleColor,e.font=a.string,s=0;s<o;++s)e.fillText(i[s],l.x(t.x),t.y+a.lineHeight/2),t.y+=a.lineHeight+r,s+1===o&&(t.y+=n.titleMarginBottom-r)}}_drawColorBox(t,e,n,i,o){const a=this.labelColors[n],r=this.labelPointStyles[n],{boxHeight:s,boxWidth:l,boxPadding:c}=o,d=vs(o.bodyFont),h=Dh(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:r.pointStyle,rotation:r.rotation,borderWidth:1},n=i.leftForLtr(u,l)+l/2,c=f+s/2;t.strokeStyle=o.multiKeyBackground,t.fillStyle=o.multiKeyBackground,es(t,e,n,c),t.strokeStyle=a.borderColor,t.fillStyle=a.backgroundColor,es(t,e,n,c)}else{t.lineWidth=ta(a.borderWidth)?Math.max(...Object.values(a.borderWidth)):a.borderWidth||1,t.strokeStyle=a.borderColor,t.setLineDash(a.borderDash||[]),t.lineDashOffset=a.borderDashOffset||0;const e=i.leftForLtr(u,l-c),n=i.leftForLtr(i.xPlus(u,1),l-c-2),r=xs(a.borderRadius);Object.values(r).some(t=>0!==t)?(t.beginPath(),t.fillStyle=o.multiKeyBackground,hs(t,{x:e,y:f,w:l,h:s,radius:r}),t.fill(),t.stroke(),t.fillStyle=a.backgroundColor,t.beginPath(),hs(t,{x:n,y:f+1,w:l-2,h:s-2,radius:r}),t.fill()):(t.fillStyle=o.multiKeyBackground,t.fillRect(e,f,l,s),t.strokeRect(e,f,l,s),t.fillStyle=a.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:a,displayColors:r,boxHeight:s,boxWidth:l,boxPadding:c}=n,d=vs(n.bodyFont);let h=d.lineHeight,u=0;const p=ll(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},m=p.textAlign(a);let g,b,x,y,v,_,w;for(e.textAlign=a,e.textBaseline="middle",e.font=d.string,t.x=Dh(this,m,n),e.fillStyle=n.bodyColor,sa(this.beforeBody,f),u=r&&"right"!==m?"center"===a?l/2+c:l+2+c:0,y=0,_=i.length;y<_;++y){for(g=i[y],b=this.labelTextColors[y],e.fillStyle=b,sa(g.before,f),x=g.lines,r&&x.length&&(this._drawColorBox(e,t,y,p,n),h=Math.max(d.lineHeight,s)),v=0,w=x.length;v<w;++v)f(x[v]),h=d.lineHeight;sa(g.after,f)}u=0,h=d.lineHeight,sa(this.afterBody,f),t.y-=o}drawFooter(t,e,n){const i=this.footer,o=i.length;let a,r;if(o){const s=ll(n.rtl,this.x,this.width);for(t.x=Dh(this,n.footerAlign,n),t.y+=n.footerMarginTop,e.textAlign=s.textAlign(n.footerAlign),e.textBaseline="middle",a=vs(n.footerFont),e.fillStyle=n.footerColor,e.font=a.string,r=0;r<o;++r)e.fillText(i[r],s.x(t.x),t.y+a.lineHeight/2),t.y+=a.lineHeight+n.footerSpacing}}drawBackground(t,e,n,i){const{xAlign:o,yAlign:a}=this,{x:r,y:s}=t,{width:l,height:c}=n,{topLeft:d,topRight:h,bottomLeft:u,bottomRight:p}=xs(i.cornerRadius);e.fillStyle=i.backgroundColor,e.strokeStyle=i.borderColor,e.lineWidth=i.borderWidth,e.beginPath(),e.moveTo(r+d,s),"top"===a&&this.drawCaret(t,e,n,i),e.lineTo(r+l-h,s),e.quadraticCurveTo(r+l,s,r+l,s+h),"center"===a&&"right"===o&&this.drawCaret(t,e,n,i),e.lineTo(r+l,s+c-p),e.quadraticCurveTo(r+l,s+c,r+l-p,s+c),"bottom"===a&&this.drawCaret(t,e,n,i),e.lineTo(r+u,s+c),e.quadraticCurveTo(r,s+c,r,s+c-u),"center"===a&&"left"===o&&this.drawCaret(t,e,n,i),e.lineTo(r,s+d),e.quadraticCurveTo(r,s,r+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=yh[t.position].call(this,this._active,this._eventPosition);if(!n)return;const a=this._size=kh(this,t),r=Object.assign({},n,this._size),s=Eh(e,t,r),l=Mh(t,r,s,e);i._to===l.x&&o._to===l.y||(this.xAlign=s.xAlign,this.yAlign=s.yAlign,this.width=a.width,this.height=a.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 a=ys(e.padding),r=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;e.enabled&&r&&(t.save(),t.globalAlpha=n,this.drawBackground(o,t,i,e),cl(t,e.textDirection),o.y+=a.top,this.drawTitle(o,t,e),this.drawBody(o,t,e),this.drawFooter(o,t,e),dl(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=!la(n,i),a=this._positionChanged(i,e);(o||a)&&(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||[],a=this._getActiveElements(t,o,e,n),r=this._positionChanged(a,t),s=e||!la(a,o)||r;return s&&(this._active=a,(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 a=this.chart.getElementsAtEventForMode(t,o.mode,o,n);return o.reverse&&a.reverse(),a}_positionChanged(t,e){const{caretX:n,caretY:i,options:o}=this,a=yh[o.position].call(this,t,e);return!1!==a&&(n!==a.x||i!==a.y)}}Th.positioners=yh;var Ah={id:"tooltip",_element:Th,positioners:yh,afterInit(t,e,n){n&&(t.tooltip=new Th({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:Zo,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:Zo,beforeBody:Zo,beforeLabel:Zo,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 Jo(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:Zo,afterBody:Zo,beforeFooter:Zo,footer:Zo,afterFooter:Zo}},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 Ph(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 Rh extends cc{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(Jo(t))return null;const n=this.getLabels();return((t,e)=>null===t?null:Ua(Math.round(t),0,e))(e=isFinite(e)&&n[e]===t?e:Ph(n,t,ia(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 Lh(t,e){const n=[],{bounds:i,step:o,min:a,max:r,precision:s,count:l,maxTicks:c,maxDigits:d,includeBounds:h}=t,u=o||1,p=c-1,{min:f,max:m}=e,g=!Jo(a),b=!Jo(r),x=!Jo(l),y=(m-f)/(d+1);let v,_,w,k,S=Pa((m-f)/p/u)*u;if(S<1e-14&&!g&&!b)return[{value:f},{value:m}];k=Math.ceil(m/S)-Math.floor(f/S),k>p&&(S=Pa(k*S/p/u)*u),Jo(s)||(v=Math.pow(10,s),S=Math.ceil(S*v)/v),"ticks"===i?(_=Math.floor(f/S)*S,w=Math.ceil(m/S)*S):(_=f,w=m),g&&b&&o&&function(t,e){const n=Math.round(t);return n-e<=t&&n+e>=t}((r-a)/o,S/1e3)?(k=Math.round(Math.min((r-a)/S,c)),S=(r-a)/k,_=a,w=r):x?(_=g?a:_,w=b?r:w,k=l-1,S=(w-_)/k):(k=(w-_)/S,k=La(k,Math.round(k),S/1e3)?Math.round(k):Math.ceil(k));const E=Math.max(za(S),za(_));v=Math.pow(10,Jo(s)?E:s),_=Math.round(_*v)/v,w=Math.round(w*v)/v;let M=0;for(g&&(h&&_!==a?(n.push({value:a}),_<a&&M++,La(Math.round((_+M*S)*v)/v,a,Ih(a,y,t))&&M++):_<a&&M++);M<k;++M)n.push({value:Math.round((_+M*S)*v)/v});return b&&h&&w!==r?n.length&&La(n[n.length-1].value,r,Ih(r,y,t))?n[n.length-1].value=r:n.push({value:r}):b&&w!==r||n.push({value:w}),n}function Ih(t,e,{horizontal:n,minRotation:i}){const o=Na(i),a=(n?Math.sin(o):Math.cos(o))||.001,r=.75*e*(""+t).length;return Math.min(e/a,r)}Rh.id="category",Rh.defaults={ticks:{callback:Rh.prototype.getLabelForValue}};class Nh extends cc{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 Jo(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 a=t=>i=e?i:t,r=t=>o=n?o:t;if(t){const t=Aa(i),e=Aa(o);t<0&&e<0?r(0):t>0&&e>0&&a(0)}if(i===o){let e=1;(o>=Number.MAX_SAFE_INTEGER||i<=Number.MIN_SAFE_INTEGER)&&(e=Math.abs(.05*o)),r(o+e),t||a(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=Lh({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&&Ia(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 sl(t,this.chart.options.locale,this.options.ticks.format)}}class Fh extends Nh{determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=ea(t)?t:0,this.max=ea(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),e=t?this.width:this.height,n=Na(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 zh(t){return 1===t/Math.pow(10,Math.floor(Ta(t)))}Fh.id="linear",Fh.defaults={ticks:{callback:Ql.formatters.numeric}};class Bh extends cc{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,e){const n=Nh.prototype.parse.apply(this,[t,e]);if(0!==n)return ea(n)&&n>0?n:null;this._zero=!0}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=ea(t)?Math.max(0,t):null,this.max=ea(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,a=t=>i=e?i:t,r=(t,e)=>Math.pow(10,Math.floor(Ta(t))+e);n===i&&(n<=0?(o(1),a(10)):(o(r(n,-1)),a(r(i,1)))),n<=0&&o(r(i,-1)),i<=0&&a(r(n,1)),this._zero&&this.min!==this._suggestedMin&&n===r(this.min,0)&&o(r(n,-1)),this.min=n,this.max=i}buildTicks(){const t=this.options,e=function(t,e){const n=Math.floor(Ta(e.max)),i=Math.ceil(e.max/Math.pow(10,n)),o=[];let a=na(t.min,Math.pow(10,Math.floor(Ta(e.min)))),r=Math.floor(Ta(a)),s=Math.floor(a/Math.pow(10,r)),l=r<0?Math.pow(10,Math.abs(r)):1;do{o.push({value:a,major:zh(a)}),++s,10===s&&(s=1,++r,l=r>=0?1:l),a=Math.round(s*Math.pow(10,r)*l)/l}while(r<n||r===n&&s<i);const c=na(t.max,a);return o.push({value:c,major:zh(a)}),o}({min:this._userMin,max:this._userMax},this);return"ticks"===t.bounds&&Ia(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":sl(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=Ta(t),this._valueRange=Ta(this.max)-Ta(t)}getPixelForValue(t){return void 0!==t&&0!==t||(t=this.min),null===t||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(Ta(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const e=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+e*this._valueRange)}}function Yh(t){const e=t.ticks;if(e.display&&t.display){const t=ys(e.backdropPadding);return ia(e.font&&e.font.size,Zr.font.size)+t.height}return 0}function Vh(t,e,n){return n=Qo(n)?n:[n],{w:Jr(t,e.string,n),h:n.length*e.lineHeight}}function Hh(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 Wh(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=[],a=t._pointLabels.length,r=t.options.pointLabels,s=r.centerPointLabels?wa/a:0;for(let l=0;l<a;l++){const a=r.setContext(t.getPointLabelContext(l));o[l]=a.padding;const c=t.getPointPosition(l,t.drawingArea+o[l],s),d=vs(a.font),h=Vh(t.ctx,d,t._pointLabels[l]);i[l]=h;const u=Ha(t.getIndexAngle(l)+s),p=Math.round(Fa(u));Uh(n,e,u,Hh(p,c.x,h.w,0,180),Hh(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,a=t.options,r=Yh(a)/2,s=t.drawingArea,l=a.pointLabels.centerPointLabels?wa/o:0;for(let a=0;a<o;a++){const o=t.getPointPosition(a,s+r+n[a],l),c=Math.round(Fa(Ha(o.angle+Da))),d=e[a],h=$h(o.y,d.h,c),u=jh(c),p=Gh(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 Uh(t,e,n,i,o){const a=Math.abs(Math.sin(n)),r=Math.abs(Math.cos(n));let s=0,l=0;i.start<e.l?(s=(e.l-i.start)/a,t.l=Math.min(t.l,e.l-s)):i.end>e.r&&(s=(i.end-e.r)/a,t.r=Math.max(t.r,e.r+s)),o.start<e.t?(l=(e.t-o.start)/r,t.t=Math.min(t.t,e.t-l)):o.end>e.b&&(l=(o.end-e.b)/r,t.b=Math.max(t.b,e.b+l))}function jh(t){return 0===t||180===t?"center":t<180?"left":"right"}function Gh(t,e,n){return"right"===n?t-=e:"center"===n&&(t-=e/2),t}function $h(t,e,n){return 90===n||270===n?t-=e/2:(n>270||n<90)&&(t-=e),t}function Xh(t,e,n,i){const{ctx:o}=t;if(n)o.arc(t.xCenter,t.yCenter,e,0,ka);else{let n=t.getPointPosition(0,e);o.moveTo(n.x,n.y);for(let a=1;a<i;a++)n=t.getPointPosition(a,e),o.lineTo(n.x,n.y)}}Bh.id="logarithmic",Bh.defaults={ticks:{callback:Ql.formatters.logarithmic,major:{enabled:!0}}};class qh extends Nh{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=ys(Yh(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=ea(t)&&!isNaN(t)?t:0,this.max=ea(e)&&!isNaN(e)?e:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/Yh(this.options))}generateTickLabels(t){Nh.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map((t,e)=>{const n=ra(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?Wh(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 Ha(t*(ka/(this._pointLabels.length||1))+Na(this.options.startAngle||0))}getDistanceFromCenterForValue(t){if(Jo(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(Jo(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 ws(t,{label:n,index:e,type:"pointLabel"})}(this.getContext(),t,n)}}getPointPosition(t,e,n=0){const i=this.getIndexAngle(t)-Da+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(),Xh(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 a,r,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)),a=vs(e.font),{x:r,y:s,textAlign:l,left:c,top:d,right:h,bottom:u}=t._pointLabelItems[o],{backdropColor:p}=e;if(!Jo(p)){const t=xs(e.borderRadius),i=ys(e.backdropPadding);n.fillStyle=p;const o=c-i.left,a=d-i.top,r=h-c+i.width,s=u-d+i.height;Object.values(t).some(t=>0!==t)?(n.beginPath(),hs(n,{x:o,y:a,w:r,h:s,radius:t}),n.fill()):n.fillRect(o,a,r,s)}cs(n,t._pointLabels[o],r,s+a.lineHeight/2,a,{color:e.color,textAlign:l,textBaseline:"middle"})}}(this,o),i.display&&this.ticks.forEach((t,e)=>{if(0!==e){r=this.getDistanceFromCenterForValue(t.value);!function(t,e,n,i){const o=t.ctx,a=e.circular,{color:r,lineWidth:s}=e;!a&&!i||!r||!s||n<0||(o.save(),o.strokeStyle=r,o.lineWidth=s,o.setLineDash(e.borderDash),o.lineDashOffset=e.borderDashOffset,o.beginPath(),Xh(t,n,a,i),o.closePath(),o.stroke(),o.restore())}(this,i.setContext(this.getContext(e-1)),r,o)}}),n.display){for(t.save(),a=o-1;a>=0;a--){const i=n.setContext(this.getPointLabelContext(a)),{color:o,lineWidth:l}=i;l&&o&&(t.lineWidth=l,t.strokeStyle=o,t.setLineDash(i.borderDash),t.lineDashOffset=i.borderDashOffset,r=this.getDistanceFromCenterForValue(e.ticks.reverse?this.min:this.max),s=this.getPointPosition(a,r),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,a;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(i),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((i,r)=>{if(0===r&&!e.reverse)return;const s=n.setContext(this.getContext(r)),l=vs(s.font);if(o=this.getDistanceFromCenterForValue(this.ticks[r].value),s.showLabelBackdrop){t.font=l.string,a=t.measureText(i.label).width,t.fillStyle=s.backdropColor;const e=ys(s.backdropPadding);t.fillRect(-a/2-e.left,-o-l.size/2-e.top,a+e.width,l.size+e.height)}cs(t,i.label,0,-o,l,{color:s.color})}),t.restore()}drawTitle(){}}qh.id="radialLinear",qh.defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Ql.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:t=>t,padding:5,centerPointLabels:!1}},qh.defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"},qh.descriptors={angleLines:{_fallback:"grid"}};const Zh={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}},Kh=Object.keys(Zh);function Jh(t,e){return t-e}function Qh(t,e){if(Jo(e))return null;const n=t._adapter,{parser:i,round:o,isoWeekday:a}=t._parseOpts;let r=e;return"function"==typeof i&&(r=i(r)),ea(r)||(r="string"==typeof i?n.parse(r,i):n.parse(r)),null===r?null:(o&&(r="week"!==o||!Ra(a)&&!0!==a?n.startOf(r,o):n.startOf(r,"isoWeek",a)),+r)}function tu(t,e,n,i){const o=Kh.length;for(let a=Kh.indexOf(t);a<o-1;++a){const t=Zh[Kh[a]],o=t.steps?t.steps:Number.MAX_SAFE_INTEGER;if(t.common&&Math.ceil((n-e)/(o*t.size))<=i)return Kh[a]}return Kh[o-1]}function eu(t,e,n){if(n){if(n.length){const{lo:i,hi:o}=Ga(n,e);t[n[i]>=e?n[i]:n[o]]=!0}}else t[e]=!0}function nu(t,e,n){const i=[],o={},a=e.length;let r,s;for(r=0;r<a;++r)s=e[r],o[s]=r,i.push({value:s,major:!1});return 0!==a&&n?function(t,e,n,i){const o=t._adapter,a=+o.startOf(e[0].value,i),r=e[e.length-1].value;let s,l;for(s=a;s<=r;s=+o.add(s,1,i))l=n[s],l>=0&&(e[l].major=!0);return e}(t,i,o,n):i}class iu extends cc{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 mc._date(t.adapters.date);i.init(e),pa(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:Qh(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:a,maxDefined:r}=this.getUserBounds();function s(t){a||isNaN(t.min)||(i=Math.min(i,t.min)),r||isNaN(t.max)||(o=Math.max(o,t.max))}a&&r||(s(this._getLabelBounds()),"ticks"===t.bounds&&"labels"===t.ticks.source||s(this.getMinMax(!1))),i=ea(i)&&!isNaN(i)?i:+e.startOf(Date.now(),n),o=ea(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,a=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?tu(e.minUnit,this.min,this.max,this._getLabelCapacity(o)):function(t,e,n,i,o){for(let a=Kh.length-1;a>=Kh.indexOf(n);a--){const n=Kh[a];if(Zh[n].common&&t._adapter.diff(o,i,n)>=e-1)return n}return Kh[n?Kh.indexOf(n):0]}(this,a.length,e.minUnit,this.min,this.max)),this._majorUnit=n.major.enabled&&"year"!==this._unit?function(t){for(let e=Kh.indexOf(t)+1,n=Kh.length;e<n;++e)if(Zh[Kh[e]].common)return Kh[e]}(this._unit):void 0,this.initOffsets(i),t.reverse&&a.reverse(),nu(this,a,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 a=t.length<3?.5:.25;i=Ua(i,0,a),o=Ua(o,0,a),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,a=o.unit||tu(o.minUnit,e,n,this._getLabelCapacity(e)),r=ia(o.stepSize,1),s="week"===a&&o.isoWeekday,l=Ra(s)||!0===s,c={};let d,h,u=e;if(l&&(u=+t.startOf(u,"isoWeek",s)),u=+t.startOf(u,l?"day":a),t.diff(n,e,a)>1e5*r)throw new Error(e+" and "+n+" are too far apart with stepSize of "+r+" "+a);const p="data"===i.ticks.source&&this.getDataTimestamps();for(d=u,h=0;d<n;d=+t.add(d,r,a),h++)eu(c,d,p);return d!==n&&"ticks"!==i.bounds&&1!==h||eu(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,a=o.time.displayFormats,r=this._unit,s=this._majorUnit,l=r&&a[r],c=s&&a[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?ra(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=Na(this.isHorizontal()?e.maxRotation:e.minRotation),o=Math.cos(i),a=Math.sin(i),r=this._resolveTickFontOptions(0).size;return{w:n*o+r*a,h:n*a+r*o}}_getLabelCapacity(t){const e=this.options.time,n=e.displayFormats,i=n[e.unit]||n.millisecond,o=this._tickFormatFunction(t,0,nu(this,[t],this._majorUnit),i),a=this._getLabelSize(o),r=Math.floor(this.isHorizontal()?this.width/a.w:this.height/a.h)-1;return r>0?r: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(Qh(this,i[e]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return Ka(t.sort(Jh))}}function ou(t,e,n){let i,o,a,r,s=0,l=t.length-1;n?(e>=t[s].pos&&e<=t[l].pos&&({lo:s,hi:l}=$a(t,"pos",e)),({pos:i,time:a}=t[s]),({pos:o,time:r}=t[l])):(e>=t[s].time&&e<=t[l].time&&({lo:s,hi:l}=$a(t,"time",e)),({time:i,pos:a}=t[s]),({time:o,pos:r}=t[l]));const c=o-i;return c?a+(r-a)*(e-i)/c:a}iu.id="time",iu.defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",major:{enabled:!1}}};class ru extends iu{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=ou(e,this.min),this._tableRange=ou(e,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:e,max:n}=this,i=[],o=[];let a,r,s,l,c;for(a=0,r=t.length;a<r;++a)l=t[a],l>=e&&l<=n&&i.push(l);if(i.length<2)return[{time:e,pos:0},{time:n,pos:1}];for(a=0,r=i.length;a<r;++a)c=i[a+1],s=i[a-1],l=i[a],Math.round((c+s)/2)!==l&&o.push({time:l,pos:a/(r-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(ou(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const e=this._offsets,n=this.getDecimalForPixel(t)/e.factor-e.end;return ou(this._table,n*this._tableRange+this._minPos,!0)}}ru.id="timeseries",ru.defaults=iu.defaults;const su="label";function lu(t,e){"function"==typeof t?t(e):t&&(t.current=e)}function cu(t,e){t.labels=e}function du(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:su;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 hu(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:su;const n={labels:[],datasets:[]};return cu(n,t.labels),du(n,t.datasets,e),n}function uu(t,e){let{height:n=150,width:i=300,redraw:o=!1,datasetIdKey:a,type:r,data:s,options:l,plugins:c=[],fallbackContent:d,updateMode:h,...u}=t;const p=lt(null),f=lt(),m=()=>{p.current&&(f.current=new Ed(p.current,{type:r,data:hu(s,a),options:l&&{...l},plugins:c}),lu(e,f.current))},g=()=>{lu(e,null),f.current&&(f.current.destroy(),f.current=null)};return ct(()=>{var t,e;!o&&f.current&&l&&(t=f.current,e=l,Object.assign(t.options,e))},[o,l]),ct(()=>{!o&&f.current&&cu(f.current.config.data,s.labels)},[o,s.labels]),ct(()=>{!o&&f.current&&s.datasets&&du(f.current.config.data,s.datasets,a)},[o,s.datasets]),ct(()=>{f.current&&(o?(g(),setTimeout(m)):f.current.update(h))},[o,l,s.labels,s.datasets,h]),ct(()=>{f.current&&(g(),setTimeout(m))},[r]),ct(()=>(m(),()=>g()),[]),tt.createElement("canvas",Object.assign({ref:p,role:"img",height:n,width:i},u),d)}const pu=nt(uu);Ed.register(Rh,Fh,Ud,Hd,$l,Ah,xh,mh);var fu=function(t){var e=t.xValues,n=t.yValues,i=t.dataPrefix,o=t.dataPostfix,a=t.straitsXStyle,r=t.height,s=void 0===r?40:r,l=lt(null),c=st({datasets:[]}),d=c[0],h=c[1],u={labels:e,datasets:[{data:n}]},p=i||"",f=o||"";ct(function(){var t=l.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 i=e.createLinearGradient(0,0,0,280);i.addColorStop(0,"rgba(0, 211, 126, 0.2)"),i.addColorStop(.1,"rgba(0, 211, 126, 0.1)"),i.addColorStop(1,"rgba(0, 211, 126, 0)");var o=Wt(Wt({},u),{datasets:u.datasets.map(function(t){return Wt(Wt({},t),{backgroundColor:a?i:n,fill:!0,borderColor:a?"#00D37E":"#2E8DEE",pointRadius:0})})});h(o)}},[a,e,n]);var m={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:a?1:0,backgroundColor:a?"#ffffff":"#000000",titleColor:a?"#1B2736":"#fff",bodyColor:a?"#1B2736":"#fff",titleAlign:"center",bodyAlign:"center",titleFont:{size:14},bodyFont:{size:14},callbacks:{title:function(t){return a?"".concat(p).concat(t[0].parsed.y).concat(f):t[0].label},label:function(t){return a?t.label:"".concat(p).concat(t.parsed.y).concat(f)}}}},scales:{x:{ticks:{color:a?"#1B2736":"rgba(0, 0, 0, 0.4)",font:{weight:"500",size:13}},grid:{display:!1}},y:{ticks:{beginAtZero:!0,padding:18,maxTicksLimit:3,color:a?"#1B2736":"rgba(0, 0, 0, 0.4)",callback:function(t){return"".concat(p).concat(t).concat(f)}},grid:{display:!1,drawBorder:!1}}}};return tt.createElement("div",{style:{position:"relative",height:"".concat(s,"vh"),width:"99%"}},tt.createElement(pu,{id:"chart",ref:l,type:"line",data:d,options:m}))};function mu(t){var e=t.children,n=t.activeKey,i=t.width,o=void 0===i?250:i,a=Ht(t,["children","activeKey","width"]),r=ji().brand,s=e.map(function(t,e){return tt.createElement(mt.TabPane,{key:e,forceRender:!0},t)}),l=e.map(function(t,e){return tt.createElement(Su,{key:e,isActive:e===n,activeColor:r.primary.default})});return tt.createElement(_u,null,tt.createElement(wu,Wt({renderTabBar:function(){return tt.createElement("div",null)},width:o,activeKey:n.toString(),animated:!0},a),s),tt.createElement(ku,null,l))}var gu,bu,xu,yu,vu,_u=qn.div(gu||(gu=Vt(["\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"]))),wu=qn(mt)(bu||(bu=Vt(["\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")}),ku=qn.span(xu||(xu=Vt(["\n display: flex;\n gap: 0.25rem;\n margin-top: 10px;\n"],["\n display: flex;\n gap: 0.25rem;\n margin-top: 10px;\n"]))),Su=qn.span(yu||(yu=Vt(["\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 Eu(t){var e=t.menu,n=t.children,i=t.type,o=void 0===i?"default":i,a=t.placement,r=void 0===a?"bottomLeft":a,s=t.className,l=void 0===s?"":s,c=t.trigger,d=void 0===c?["click"]:c,h=t.disabled,u=void 0!==h&&h,p=Ht(t,["menu","children","type","placement","className","trigger","disabled"]),f=ji(),m=f.brand,g=f.spacing,b="\n background-color: ".concat(m.action.default,";\n color: ").concat(m.primary.contrast,";\n border: 1px solid ").concat(m.primary.contrast,";\n\n &:focus {\n background-color: ").concat(m.action.default,";\n color: ").concat(m.primary.contrast,";\n border: 1px solid ").concat(m.primary.contrast,";\n }\n\n &:active {\n background-color: ").concat(m.action.default,";\n color: ").concat(m.primary.contrast,";\n border: 1px solid ").concat(m.primary.contrast,";\n }\n\n &:hover {\n background-color: ").concat(m.action.hover,";\n color: ").concat(m.primary.contrast,";\n border: 1px solid ").concat(m.primary.contrast,";\n }\n "),x="\n cursor: auto;\n pointer-events: none;\n opacity: ".concat(m.action.disabledOpacity,";\n "),y=qn(gt.Button)(vu||(vu=Vt(["\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 "])),bi,ki,b,!0===u&&x,g.md,bi,ki,b,!0===u&&x,g.sm);if("split"===o)return tt.createElement(y,Wt({className:l,menu:e,placement:r,trigger:d},p),n);var v=lt(null);return ct(function(){var t=function(t){t.cancelable&&t.preventDefault()},e=v.current;return e&&e.addEventListener("touchmove",t,{passive:!0}),function(){e&&e.removeEventListener("touchmove",t)}},[]),tt.createElement(gt,Wt({menu:e,placement:r,trigger:d},p),tt.createElement("div",{ref:v},n))}function Mu(t){var e=t.children,n=t.placement,i=void 0===n?"bottomRight":n,o=t.overlayClassName,a=void 0===o?Ru:o,r=t.arrowPointAtCenter,s=void 0===r||r,l=t.trigger,c=void 0===l?"hover":l,d=t.color,h=t.title,u=t.content,p=t.mouseEnterDelay,f=void 0===p?0:p,m=t.mouseLeaveDelay,g=void 0===m?0:m,b=t.isNew,x=void 0!==b&&b,y=t.actionTitle,v=t.dismissTitle,_=t.maxWidth,w=t.onAction,k=t.onDismiss,S=_?{maxWidth:_}:void 0;return tt.createElement(bt,{overlayClassName:a,arrowPointAtCenter:s,trigger:c,color:d,placement:i,overlayStyle:S,title:tt.createElement(Lu,null,h&&tt.createElement(No,{style:{fontSize:Vi.P1,marginBottom:"16px",color:Li.text.white}},h,!0===x&&tt.createElement(Nu,null,"New")),u,(y||v)&&tt.createElement(Iu,null,tt.createElement(zu,{onClick:function(t){t.preventDefault(),k&&k()}},v),tt.createElement(Fu,{onClick:function(t){t.preventDefault(),w&&w()}},y))),mouseEnterDelay:f,mouseLeaveDelay:g},e)}var Du,Cu,Ou,Tu,Au,Pu,Ru=on(Du||(Du=Vt(["\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"])),fi,Vi.P1,Yi.REGULAR,Li.text.white,Li.brand.primary.contrast,hi,Li.brand.primary.contrast),Lu=qn.div(Cu||(Cu=Vt(["\n line-height: 22px;\n"],["\n line-height: 22px;\n"]))),Iu=qn.div(Ou||(Ou=Vt(["\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"]))),Nu=qn.span(Tu||(Tu=Vt(["\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"])),zn.G400,Li.text.white,Vi.SMALL,Yi.BOLD),Fu=qn.a(Au||(Au=Vt(["\n font-weight: ",";\n color: ",";\n &:hover {\n color: ",";\n }\n"],["\n font-weight: ",";\n color: ",";\n &:hover {\n color: ",";\n }\n"])),Yi.BOLD,Li.brand.action.default,Li.brand.action.hover),zu=qn.a(Pu||(Pu=Vt(["\n font-weight: ",";\n color: ",";\n &:hover {\n color: ",";\n }\n"],["\n font-weight: ",";\n color: ",";\n &:hover {\n color: ",";\n }\n"])),Yi.BOLD,Li.text.white,Li.text.white);Ii('@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 Bu={xs:16,s:20,m:24,l:32,xl:40,xxl:48},Yu=function(t){var e=t.icon,n=t.size,i=void 0===n?"m":n,o=t.fill,a=void 0===o?0:o,r=t.color,s=void 0===r?Vn.BLACK:r,l=t.className,c=void 0===l?"":l,d=t.style,h="string"==typeof i?Bu[i]:i,u=Wt({fontVariationSettings:"'FILL' ".concat(a,", 'wght' 400"),fontSize:h,color:s},d);return tt.createElement("span",{className:"material-symbols-rounded ".concat(c),style:u,translate:"no"},e)},Vu={positive:"check",critical:"cancel",warning:"timer",info:"info",neutral:"timer"},Hu={sm:"xs",lg:"s"},Wu={positive:{base:Li.color.surface.subduePositive,text:Li.color.status.positive,icon:Li.color.status.positive,border:Li.color.status.positive},critical:{base:Li.color.surface.subdueCritical,text:Li.color.status.critical,icon:Li.color.status.critical,border:Li.color.status.critical},warning:{base:Li.color.surface.subdueWarning,text:Li.color.status.warning,icon:Li.color.status.warning,border:Li.color.status.warning},info:{base:Li.color.surface.SubdueInfo,text:Li.color.status.info,icon:Li.color.status.info,border:Li.color.status.info},neutral:{base:Vn.G100,text:Li.color.base.onNeutralSecondary,icon:Li.color.base.onNeutralSecondary,border:Li.color.base.line}},Uu={positive:{base:Li.color.status.positive,text:Li.color.base.onContainer,icon:"",border:Li.color.status.positive},neutral:{base:Li.color.surface.disabledSurface,text:Li.color.surface.disabledOnSurface,icon:"",border:Li.color.base.line}},ju={positive:{base:Li.color.surface.subduePositive,text:Li.color.status.positive,icon:Li.color.status.positive,border:Li.color.status.positive},disabled:{base:Li.color.surface.disabledSurface,text:Li.color.surface.disabledOnSurface,icon:Li.color.surface.disabledOnSurface,border:Li.color.base.line},neutral:{base:Li.color.surface.neutral,text:Li.color.base.onNeutralSecondary,icon:Li.color.base.onNeutralSecondary,border:Li.color.base.line}};function Gu(t,e,n){switch(e){case"outlined":default:return Wu[t][n];case"filled":return Uu[t][n];case"removable":return ju[t][n]}}function $u(t){var e=t.type,n=t.children,i=t.showIcon,o=void 0!==i&&i,a=t.size,r=void 0===a?"sm":a,s=t.variant,l=void 0===s?"outlined":s,c=t.onClick;return tt.createElement(np,{type:e,size:r,variant:l,onClick:"removable"!==l?c:void 0},o&&"disabled"!==e&&tt.createElement(Yu,{icon:Vu[e],size:Hu[r],color:Gu(e,l,"icon")}),tt.createElement(dn.Body,{size:r,color:Gu(e,l,"text")},n),"removable"===l&&tt.createElement(ep,{onMouseDown:function(t){t.preventDefault(),t.stopPropagation()},onClick:function(t){t.preventDefault(),t.stopPropagation(),null==c||c()},type:"tertiary",icon:tt.createElement(Yu,{icon:"close",size:Hu[r],color:Gu(e,l,"icon")})}))}var Xu,qu,Zu,Ku,Ju,Qu,tp,ep=qn(eo)(Xu||(Xu=Vt(["\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"]))),np=qn.div(qu||(qu=Vt(["\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,a=void 0===o?"sm":o,r=t.onClick;return"\n border-radius: ".concat("removable"===i?"999px":"4px",";\n min-height: ").concat("sm"===a?"24px":"32px",";\n background-color: ").concat(e&&i?Gu(e,i,"base"):"transparent",";\n border: 1px solid ").concat(e&&i?Gu(e,i,"border"):"transparent",";\n padding-inline: ").concat("removable"===i?"12px":"8px",";\n cursor: ").concat(r?"pointer":"default",";\n\n")}(t)}),ip=qn.div(Zu||(Zu=Vt(["\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"]))),op=qn.div(Ku||(Ku=Vt(["\n display: flex;\n align-items: center;\n gap: 8px;\n"],["\n display: flex;\n align-items: center;\n gap: 8px;\n"]))),rp=qn.div(Ju||(Ju=Vt(["\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"]))),sp="\n .ant-select-selection-placeholder {\n display: flex;\n align-items: center;\n \n span {\n color: ".concat(Li.color.component.placeholderInput," !important;\n }\n }\n"),lp="\n .ant-select-selection-item {\n display: flex !important;\n align-items: center !important;\n color: ".concat(Li.color.base.onNeutral," !important;\n }\n\n &.ant-select-open .ant-select-selection-item {\n color: ").concat(Li.color.base.onNeutral," !important;\n }\n"),cp="\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(Li.color.base.onNeutral," !important;\n }\n }\n"),dp=qn(xt)(Qu||(Qu=Vt(["\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"])),Li.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?Li.color.surface.disabledSurface:Li.color.surface.neutral," !important;\n\n border: 1px solid ").concat(t.error?Li.color.status.critical:Li.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(Li.color.base.onNeutral,"20 !important;\n border: 1px solid ").concat(t.error?Li.color.status.critical:Li.color.base.primary2," !important;\n "),"\n }\n")}(t)},sp,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)},lp,cp),hp="\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(Li.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"),up="\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(Li.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"),pp="\n .ant-select-item:hover {\n background: ".concat(Li.color.interactive.hoverSurface," !important;\n }\n \n .ant-select-item:active {\n background: ").concat(Li.color.interactive.pressedSurface," !important;\n }\n"),fp="\n .ant-select-item-option-disabled,\n .ant-select-item-option-disabled:hover {\n background: ".concat(Li.color.surface.disabledSurface," !important;\n span { \n color: ").concat(Li.color.surface.disabledOnSurface," !important;\n }\n }\n"),mp=qn.div(tp||(tp=Vt(["\n ","\n ","\n ","\n ","\n padding-bottom: 8px;\n"],["\n ","\n ","\n ","\n ","\n padding-bottom: 8px;\n"])),hp,up,pp,fp),gp={padding:0,paddingBottom:"4px",borderRadius:"12px"},bp={sm:"md",lg:"lg"},xp={sm:"md",lg:"lg"},yp=function(t){return tt.createElement(tt.Fragment,null,t&&tt.createElement(dn.Body,{color:Li.color.base.onNeutralSecondary,size:"sm"},t),tt.createElement(Yu,{icon:"keyboard_arrow_down"}))},vp=function(t,e){return e?tt.createElement(dn.Body,{size:bp[t]},e):null},_p=function(t,e,n){return"multiple"===t?function(t){var i=t.label,o=t.onClose;return tt.createElement($u,{type:e?"disabled":"positive",variant:"removable",size:n,onClick:e?void 0:o},i)}:void 0},wp=function(t){var e=t.children,n=t.disabled,i=void 0!==n&&n,o=t.size,a=void 0===o?"sm":o,r=t.mode,s=t.label,l=t.labelTooltip,c=t.selectRef,d=t.placeholder,h=t.error,u=void 0!==h&&h,p=t.secondaryText,f=t.helperText,m=t.options,g=Ht(t,["children","disabled","size","mode","label","labelTooltip","selectRef","placeholder","error","secondaryText","helperText","options"]),b=lt(null),x=c||b;return tt.createElement(rp,null,s&&function(t,e){return t?tt.createElement(ip,null,tt.createElement(dn.Body,{size:"md"},t),e?tt.createElement(Mu,{placement:"top",title:"I'm Tooltip Component",content:e},tt.createElement("span",null,tt.createElement(Yu,{icon:"info",size:"xs"}))):null):null}(s,l),tt.createElement(dp,Wt({disabled:i,mode:r,ref:x,$size:a,$mode:r,getPopupContainer:function(){return document.body}},g,{error:u,dropdownRender:function(t){return tt.createElement(mp,{$size:a},tt.createElement(dn.Body,{size:"sm"===a?"md":"lg"},t))},dropdownStyle:gp,suffixIcon:yp(p),placeholder:vp(a,d),showArrow:!0,tagRender:_p(r,i,a),maxTagCount:999}),m?function(t,e){return t.map(function(t){var n=t.value,i=t.label,o=t.icon,a=t.disabled;return tt.createElement(xt.Option,{key:n,value:n,disabled:a},tt.createElement(op,null,o&&tt.createElement(o,{style:{width:"16px",height:"16px"}}),tt.createElement(dn.Body,{size:xp[e]},i)))})}(m,a):e),function(t){return t?tt.createElement(dn.Body,{color:Li.color.base.onNeutralSecondary,size:"sm"},t):null}(f))};wp.Option=xt.Option;var kp=function(t,e){var n=e.iconSrc,i=void 0===n?null:n,o=e.extraText,a=void 0===o?"":o,r=e.extraAction,s=void 0===r?function(){}:r,l=e.isAddItemBarVisible,c=void 0===l||l,d=e.topContent,h=e.bottomContent,u=e.actionContent;return tt.createElement(Op,null,d,t,u||function(t){var e=t.iconSrc,n=void 0===e?null:e,i=t.extraText,o=void 0===i?"":i,a=t.extraAction,r=void 0===a?function(){}:a,s=t.isAddItemBarVisible;return void 0===s||s?tt.createElement(Ap,{onMouseDown:function(){r()}},n?tt.createElement(Tp,{src:n}):tt.createElement(Rt,null),o):null}({iconSrc:i,extraText:a,extraAction:s,isAddItemBarVisible:c}),h)},Sp=function(t){var e=t.className,n=void 0===e?"":e,i=t.children,o=t.disabled,a=void 0!==o&&o,r=t.mode,s=t.label,l=t.iconSrc,c=void 0===l?"":l,d=t.extraText,h=void 0===d?"":d,u=t.extraAction,p=void 0===u?function(){}:u,f=t.isAddItemBarVisible,m=void 0===f||f,g=t.topContent,b=void 0===g?null:g,x=t.bottomContent,y=void 0===x?null:x,v=t.actionContent,_=void 0===v?null:v,w=Ht(t,["className","children","disabled","mode","label","iconSrc","extraText","extraAction","isAddItemBarVisible","topContent","bottomContent","actionContent"]);return tt.createElement(wp,Wt({className:n,disabled:a,mode:r,label:s,dropdownRender:function(t){return kp(t,{iconSrc:c,extraText:h,extraAction:p,isAddItemBarVisible:m,topContent:b,bottomContent:y,actionContent:_})}},w),i)};Sp.Option=wp.Option;var Ep,Mp,Dp,Cp,Op=qn.div(Ep||(Ep=Vt(["\n padding-top: 15px;\n"],["\n padding-top: 15px;\n"]))),Tp=qn.img(Mp||(Mp=Vt(["\n margin-right: 5px;\n"],["\n margin-right: 5px;\n"]))),Ap=qn(Io)(Dp||(Dp=Vt(["\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"]))),Pp=on(Cp||(Cp=Vt(["\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"])),io,Vi.P1,Bn.R400,Bn.R400,Bn.R400,Bn.R300,Bn.R100,Bn.R300,Bn.R100,Bn.R300,Bn.R200,Bn.R200,Bn.R100,Bn.R400,Bn.R100,Bn.R300),Rp=function(t){var e=t.className,n=void 0===e?"":e,i=t.children,o=Ht(t,["className","children"]);return tt.createElement(yt,Wt({className:nn(Pp,n)},o),i)};function Lp(t,e,n,i){void 0===e&&(e="large");var o=so[e],a=o.height,r=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(io,";\n font-size: ").concat(Vi.P1,";\n color: ").concat(t.color.base.onNeutral,";\n line-height: 17px;\n height: ").concat(a,";\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(r," !important;\n border-color: ").concat(l,";\n height: ").concat(a,";\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(r," ").concat(r," 0 !important;\n border-color: ").concat(l,";\n height: ").concat(a,";\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(r," 0 0 ").concat(r," !important;\n border-color: ").concat(l,";\n height: ").concat(a,";\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(r," !important;\n border-color: ").concat(l,";\n height: ").concat(a,";\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(a,";\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(r," ").concat(r," 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(r," 0 0 ").concat(r," !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(io,";\n color: ").concat(t.color.base.onNeutral,";\n background-color: ").concat(t.color.surface.neutral,";\n border-top-left-radius: ").concat(r," !important;\n border-bottom-left-radius: ").concat(r," !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(io,";\n color: ").concat(t.color.base.onNeutral,";\n background-color: ").concat(t.color.surface.neutral,";\n border-top-right-radius: ").concat(r," !important;\n border-bottom-right-radius: ").concat(r," !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 Ip(t){var e=t.text,n=t.error,i=ji();if(!e)return null;var o=n?i.color.status.critical:i.color.component.helperInput;return tt.createElement(dn.Body,{size:"sm",style:{color:o,marginTop:4}},e)}function Np(t){var e=t.label,n=t.required,i=t.optional,o=t.showInfoIcon,a=t.infoText,r=t.onInfoClick,s=ji();return e?tt.createElement(zp,null,tt.createElement(dn.Body,{size:"sm",style:{color:s.color.base.onNeutral}},e,n&&tt.createElement("span",{style:{color:s.error.text,marginLeft:2}},"*")),i&&tt.createElement(dn.Body,{size:"sm",style:{color:s.color.base.onNeutralSecondary}},"Optional"),o&&a&&tt.createElement(Mu,{content:a,placement:"top"},tt.createElement("span",{role:"button",tabIndex:0,"aria-label":"More information",onClick:r,onKeyDown:function(t){"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),null==r||r())},style:{display:"inline-flex",cursor:"pointer"}},tt.createElement(Lt,{style:{width:16,height:16}}))),o&&!a&&tt.createElement("span",{role:"button",tabIndex:0,"aria-label":"More information",onClick:r,onKeyDown:function(t){"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),null==r||r())},style:{display:"inline-flex",cursor:"pointer"}},tt.createElement(Lt,{style:{width:16,height:16}}))):null}Rp.Item=function(t){var e=t.className,n=void 0===e?"":e,i=Ht(t,["className"]);return tt.createElement(yt.Item,Wt({className:nn(Pp,n)},i))},Rp.useForm=yt.useForm;var Fp,zp=qn.div(Fp||(Fp=Vt(["\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"]))),Bp=function(t){var e=t.addonBefore,n=t.addonAfter,i=t.placeholder,o=void 0===i?"":i,a=t.disabled,r=void 0!==a&&a,s=t.disabledAddon,l=void 0!==s&&s,c=t.className,d=void 0===c?"":c,h=t.label,u=t.required,p=t.optional,f=void 0!==p&&p,m=t.size,g=void 0===m?"large":m,b=t.helperText,x=t.error,y=t.showInfoIcon,v=t.infoText,_=t.onInfoClick,w=Ht(t,["addonBefore","addonAfter","placeholder","disabled","disabledAddon","className","label","required","optional","size","helperText","error","showInfoIcon","infoText","onInfoClick"]),k=Lp(ji(),g,x,l);return tt.createElement("div",null,tt.createElement(Np,{label:h,required:u,optional:f,showInfoIcon:y,infoText:v,onInfoClick:_}),tt.createElement(vt,Wt({className:"".concat(on(k)," ").concat(d),addonBefore:e,addonAfter:n,placeholder:o,disabled:r},w)),tt.createElement(Ip,{text:b,error:x}))};Bp.Password=function(t){var e=t.addonBefore,n=void 0===e?"":e,i=t.placeholder,o=void 0===i?"":i,a=t.disabled,r=void 0!==a&&a,s=t.className,l=void 0===s?"":s,c=t.label,d=t.required,h=t.optional,u=void 0!==h&&h,p=t.size,f=void 0===p?"large":p,m=t.helperText,g=t.error,b=t.showInfoIcon,x=t.infoText,y=t.onInfoClick,v=Ht(t,["addonBefore","placeholder","disabled","className","label","required","optional","size","helperText","error","showInfoIcon","infoText","onInfoClick"]),_=Lp(ji(),f,g);return tt.createElement("div",null,tt.createElement(Np,{label:c,required:d,optional:u,showInfoIcon:b,infoText:x,onInfoClick:y}),tt.createElement(vt.Password,Wt({className:"".concat(on(_)," ").concat(l),addonBefore:n,placeholder:o,disabled:r,visibilityToggle:!0},v)),tt.createElement(Ip,{text:m,error:g}))},Bp.Search=function(t){var e=t.addonBefore,n=void 0===e?"":e,i=t.placeholder,o=void 0===i?"":i,a=t.className,r=void 0===a?"":a,s=t.onChange,l=t.onSearch,c=t.size,d=void 0===c?"large":c,h=t.helperText,u=t.error,p=Ht(t,["addonBefore","placeholder","className","onChange","onSearch","size","helperText","error"]),f=ji(),m="".concat(Lp(f,d,u),"\n & .ant-input-group-addon:not(:last-child) {\n background-color: ").concat(f.color.surface.neutral,";\n padding: ").concat("string"==typeof n?"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 tt.createElement("div",null,tt.createElement(vt,Wt({placeholder:o,addonBefore:n,onChange:s,onKeyDown:l,className:"".concat(on(m)," ").concat(r),prefix:tt.createElement("span",{onClick:l,style:{display:"flex",cursor:l?"pointer":"default"}},tt.createElement(Yu,{icon:"search",size:"small"===d?"xs":"m",color:f.color.base.onNeutral}))},p)),tt.createElement(Ip,{text:h,error:u}))},Bp.TextArea=function(t){var e=t.className,n=void 0===e?"":e,i=t.label,o=t.required,a=void 0!==o&&o,r=t.optional,s=void 0!==r&&r,l=t.size,c=void 0===l?"large":l,d=t.helperText,h=t.error,u=t.showInfoIcon,p=t.infoText,f=t.onInfoClick,m=Ht(t,["className","label","required","optional","size","helperText","error","showInfoIcon","infoText","onInfoClick"]),g=ji(),b=h?g.color.status.critical:g.color.base.line,x=so[c],y=x.borderRadius,v=x.padding,_="".concat(Lp(g,c,h),"\n &.ant-input {\n min-height: 72px;\n height: auto;\n resize: none;\n border-radius: ").concat(y," !important;\n border-color: ").concat(b,";\n padding: ").concat(v,";\n &:hover:not(:disabled):not(.ant-input-disabled) { border-color: ").concat(h?g.color.status.critical:g.color.base.primary2," !important; }\n &:focus {\n border-color: ").concat(g.color.base.primary2,";\n box-shadow: none;\n }\n &:disabled {\n color: ").concat(g.color.base.onNeutral," !important;\n -webkit-text-fill-color: ").concat(g.color.base.onNeutral," !important;\n background-color: ").concat(g.color.surface.disabledSurface,";\n border-color: ").concat(g.color.base.line,";\n &::placeholder {\n color: ").concat(g.color.surface.disabledOnSurface," !important;\n -webkit-text-fill-color: ").concat(g.color.surface.disabledOnSurface," !important;\n }\n &:hover { border-color: ").concat(g.color.base.line," !important; }\n }\n }\n ");return tt.createElement("div",null,tt.createElement(Np,{label:i,required:a,optional:s,showInfoIcon:u,infoText:p,onInfoClick:f}),tt.createElement(vt.TextArea,Wt({className:"".concat(on(_)," ").concat(n)},m)),tt.createElement(Ip,{text:d,error:h}))},Bp.Group=vt.Group;var Yp,Vp,Hp,Wp,Up,jp,Gp,$p,Xp,qp,Zp,Kp,Jp,Qp,tf,ef,nf,of,rf,sf,lf,cf,df,hf,uf,pf,ff,mf,gf,xf,yf,vf,_f,wf=function(t){var e=t.buttonText,n=t.onButtonClick,i=t.prefix,o=t.placeholder,a=t.value,r=t.defaultValue,s=t.onChange,l=t.disabled,c=void 0!==l&&l,d=t.disabledInput,h=void 0!==d&&d,u=t.disabledPrefix,p=void 0!==u&&u,f=t.staticPrefix,m=void 0!==f&&f,g=t.error,b=void 0!==g&&g,x=t.className,y=ji(),v=c||h,_=c||p,w=b?y.color.status.critical:y.color.base.line,k=y.color.base.line;return tt.createElement(Df,{className:x},i&&tt.createElement(Cf,{borderColor:k,bgColor:_?y.color.surface.disabledSurface:m?y.color.surface.secondaryNeutral:y.color.surface.neutral,hoverBgColor:_?y.color.surface.disabledSurface:y.color.interactive.hoverSurface,textColor:_?y.color.surface.disabledOnSurface:y.color.base.onNeutral,isDisabled:_},i),tt.createElement(Of,{type:"text",placeholder:o,value:a,defaultValue:r,onChange:s,disabled:v,borderColor:w,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:v}),tt.createElement(Tf,{type:"button",onClick:n,disabled:c||b,bgColor:y.color.base.primary,disabledBgColor:y.color.surface.disabledSurface,textColor:y.color.base.onNeutral,disabledTextColor:y.color.surface.disabledOnSurface,isDisabled:c||b},e))},kf=so.large,Sf=kf.height,Ef=kf.borderRadius,Mf=kf.padding,Df=qn.div(Yp||(Yp=Vt(["\n display: flex;\n height: ",";\n width: 100%;\n position: relative;\n"],["\n display: flex;\n height: ",";\n width: 100%;\n position: relative;\n"])),Sf),Cf=qn.div(Vp||(Vp=Vt(["\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},Ef,Ef,function(t){return t.bgColor},function(t){return t.textColor},io,Vi.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}),Of=qn.input(Hp||(Hp=Vt(["\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"])),Mf,function(t){return t.borderColor},function(t){return t.hasPrefix?"0":"".concat(Ef," 0 0 ").concat(Ef)},io,Vi.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}),Tf=qn.button(Wp||(Wp=Vt(["\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"])),Ef,Ef,function(t){return t.isDisabled?t.disabledBgColor:t.bgColor},function(t){return t.isDisabled?t.disabledTextColor:t.textColor},io,Vi.P1,function(t){return t.isDisabled?"not-allowed":"pointer"},function(t){return t.isDisabled?1:.9}),Af={small:"400px",medium:"600px"},Pf=qn.div(Up||(Up=Vt(["\n width: calc(100vw - 32px);\n max-width: ",";\n background: white;\n box-shadow:\n 0px 20px 24px -4px rgba(10, 13, 18, 0.08),\n 0px 8px 8px -4px rgba(10, 13, 18, 0.03);\n border-radius: 12px;\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: ",";\n background: white;\n box-shadow:\n 0px 20px 24px -4px rgba(10, 13, 18, 0.08),\n 0px 8px 8px -4px rgba(10, 13, 18, 0.03);\n border-radius: 12px;\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"])),function(t){return Af[t.modalSize]}),Rf=qn.div(jp||(jp=Vt(["\n padding: 16px ",";\n"],["\n padding: 16px ",";\n"])),Ti),Lf=qn.div(Gp||(Gp=Vt(["\n display: flex;\n align-items: center;\n gap: 12px;\n padding-top: 4px;\n padding-bottom: 16px;\n border-bottom: 1px solid #d8d8d8;\n"],["\n display: flex;\n align-items: center;\n gap: 12px;\n padding-top: 4px;\n padding-bottom: 16px;\n border-bottom: 1px solid #d8d8d8;\n"]))),If=qn.h2($p||($p=Vt(["\n flex: 1 0 0;\n min-width: 0;\n margin: 0;\n font-family: ",";\n font-weight: 700;\n font-size: 20px;\n line-height: 1;\n color: #002b2a;\n"],["\n flex: 1 0 0;\n min-width: 0;\n margin: 0;\n font-family: ",";\n font-weight: 700;\n font-size: 20px;\n line-height: 1;\n color: #002b2a;\n"])),mi),Nf=qn.div(Xp||(Xp=Vt(["\n display: flex;\n justify-content: flex-end;\n align-items: center;\n padding: 16px ",";\n height: 56px;\n box-sizing: border-box;\n"],["\n display: flex;\n justify-content: flex-end;\n align-items: center;\n padding: 16px ",";\n height: 56px;\n box-sizing: border-box;\n"])),Ti),Ff=qn.div(qp||(qp=Vt(["\n display: flex;\n flex-direction: column;\n align-items: center;\n padding: 0 ",";\n"],["\n display: flex;\n flex-direction: column;\n align-items: center;\n padding: 0 ",";\n"])),Ti),zf=qn.div(Zp||(Zp=Vt(["\n width: 160px;\n height: 160px;\n display: flex;\n align-items: center;\n justify-content: center;\n"],["\n width: 160px;\n height: 160px;\n display: flex;\n align-items: center;\n justify-content: center;\n"]))),Bf=qn.h2(Kp||(Kp=Vt(["\n margin: 16px 0 0;\n font-family: ",";\n font-weight: 700;\n font-size: 20px;\n line-height: 1.3;\n color: #002b2a;\n text-align: center;\n width: 100%;\n"],["\n margin: 16px 0 0;\n font-family: ",";\n font-weight: 700;\n font-size: 20px;\n line-height: 1.3;\n color: #002b2a;\n text-align: center;\n width: 100%;\n"])),mi),Yf=qn.div(Jp||(Jp=Vt(["\n padding: 40px "," 0;\n overflow: hidden;\n\n img {\n width: 100%;\n display: block;\n border-radius: 8px;\n }\n"],["\n padding: 40px "," 0;\n overflow: hidden;\n\n img {\n width: 100%;\n display: block;\n border-radius: 8px;\n }\n"])),Ti),Vf=qn.div(Qp||(Qp=Vt(["\n padding: 16px ",";\n text-align: center;\n"],["\n padding: 16px ",";\n text-align: center;\n"])),Ti),Hf=qn.h2(tf||(tf=Vt(["\n margin: 0;\n font-family: ",";\n font-weight: 700;\n font-size: 20px;\n line-height: 1.3;\n color: #002b2a;\n"],["\n margin: 0;\n font-family: ",";\n font-weight: 700;\n font-size: 20px;\n line-height: 1.3;\n color: #002b2a;\n"])),mi),Wf=qn.div(ef||(ef=Vt(["\n padding: 0 "," 16px;\n font-family: ",";\n font-size: 14px;\n line-height: 1.4;\n color: #002b2a;\n"],["\n padding: 0 "," 16px;\n font-family: ",";\n font-size: 14px;\n line-height: 1.4;\n color: #002b2a;\n"])),Ti,fi),Uf=qn.div(nf||(nf=Vt(["\n background: #f6f7f9;\n display: flex;\n gap: 16px;\n padding: ",";\n\n > * {\n flex: 1 0 0;\n }\n"],["\n background: #f6f7f9;\n display: flex;\n gap: 16px;\n padding: ",";\n\n > * {\n flex: 1 0 0;\n }\n"])),Ti),jf=qn.div(of||(of=Vt(["\n cursor: pointer;\n flex-shrink: 0;\n"],["\n cursor: pointer;\n flex-shrink: 0;\n"]))),Gf=function(t){var e=t.onClose,n=t.variant,i=void 0===n?"default":n,o=t.size,a=void 0===o?"small":o,r=t.title,s=t.children,l=t.footer,c=t.disabledCloseIcon,d=t.className,h=t.illustration,u=t.headerImage,p=ji().neutral,f="newFeature"===i?"medium":a,m=!c&&tt.createElement(jf,{onClick:function(){return e()}},tt.createElement(At,{color:p.text,width:18}));return tt.createElement(Pf,{modalSize:f,className:d},function(){switch(i){case"illustration":return tt.createElement(tt.Fragment,null,tt.createElement(Nf,null,m),tt.createElement(Ff,null,h&&tt.createElement(zf,null,h),r&&tt.createElement(Bf,null,r)));case"newFeature":return tt.createElement(tt.Fragment,null,u&&tt.createElement(Yf,null,u),r&&tt.createElement(Vf,null,tt.createElement(Hf,null,r)));default:return(r||!c)&&tt.createElement(Rf,null,tt.createElement(Lf,null,tt.createElement(If,null,r||""),m))}}(),tt.createElement(Wf,null,s),l&&tt.createElement(Uf,null,l))},$f=function(t){var e=t.label,n=t.value,i=t.variant,o=void 0===i?"small":i;return tt.createElement(Zf,null,tt.createElement(Kf,{variant:o},e),tt.createElement(Jf,{variant:o},n))},Xf=function(t){var e=t.items,n=t.className;return tt.createElement(qf,{className:n},e.map(function(t,e){return tt.createElement($f,Wt({key:e},t))}))},qf=qn.div(rf||(rf=Vt(["\n display: flex;\n flex-direction: column;\n gap: 12px;\n"],["\n display: flex;\n flex-direction: column;\n gap: 12px;\n"]))),Zf=qn.div(sf||(sf=Vt(["\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"]))),Kf=qn.span(lf||(lf=Vt(["\n font-family: ",";\n font-weight: ",";\n font-size: ",";\n line-height: 1;\n color: ",";\n"],["\n font-family: ",";\n font-weight: ",";\n font-size: ",";\n line-height: 1;\n color: ",";\n"])),function(t){return"large"===t.variant?mi:fi},function(t){return"large"===t.variant?700:400},function(t){return"large"===t.variant?"20px":"14px"},function(t){return"large"===t.variant?"#002b2a":"#505454"}),Jf=qn.span(cf||(cf=Vt(["\n font-family: ",";\n font-weight: ",";\n font-size: ",";\n line-height: 1;\n color: #002b2a;\n"],["\n font-family: ",";\n font-weight: ",";\n font-size: ",";\n line-height: 1;\n color: #002b2a;\n"])),function(t){return"large"===t.variant?mi:fi},function(t){return"large"===t.variant?700:400},function(t){return"large"===t.variant?"20px":"14px"}),Qf=document.body,tm=function(t){var e=ji().neutral,n=st(document.createElement("div"))[0];return ct(function(){return Qf.appendChild(n),function(){Qf.removeChild(n)}},[n]),Ut.createPortal(tt.createElement(nm,{open:t.open},t.open&&tt.createElement(Cn,{styles:Mn(df||(df=Vt(["\n body {\n overflow: hidden;\n position: fixed;\n }\n "],["\n body {\n overflow: hidden;\n position: fixed;\n }\n "])))}),tt.createElement("div",{className:"".concat(on(hf||(hf=Vt(["\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)},tt.createElement(im,{hasIcon:Boolean(t.icon)},tt.createElement(sm,null,tt.createElement(lm,null,t.icon,tt.createElement(Ro,null,t.title)),!t.disabledCloseIcon&&tt.createElement(cm,{onClick:function(){return t.onClose()}},tt.createElement(At,{color:e.text,width:18}))),tt.createElement(Yo,null)),tt.createElement(om,null,t.children),tt.createElement(rm,null,t.footer))),n)},em=Tn(uf||(uf=Vt(["\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"]))),nm=qn.div(ff||(ff=Vt(["\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&&Mn(pf||(pf=Vt(["\n display: block;\n animation: "," 0.3s ease;\n "],["\n display: block;\n animation: "," 0.3s ease;\n "])),em)}),im=qn.div(mf||(mf=Vt(["\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 "},Ai,Ai),om=qn.div(gf||(gf=Vt(["\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"])),Ti,Ai,Ai,Ai),rm=qn.div(xf||(xf=Vt(["\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"])),Ai,Ci,Ci),sm=qn.div(yf||(yf=Vt(["\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"]))),lm=qn.div(vf||(vf=Vt(["\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"]))),cm=qn.div(_f||(_f=Vt(["\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"])));function dm(t){var e=t.current,n=t.pageSize,i=t.total,o=t.onChange,a=t.showSizeChanger,r=t.onShowSizeChange,s=t.pageSizeOptions,l="\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(Vn.G200,";\n }\n\n & > .ant-pagination-item {\n height: 36px;\n line-height: 36px;\n min-width: 36px;\n font-family: ").concat(io,";\n border-radius: 5px;\n border: 1px solid ").concat(Vn.G200,";\n margin-right: 5px;\n transition: 0.3s all;\n }\n\n & > .ant-pagination-item-active {\n border-color: ").concat(Hn.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 tt.createElement(_t,{className:"".concat(on(l)),current:e,pageSize:n,total:i,onChange:o,showSizeChanger:a,onShowSizeChange:r,pageSizeOptions:s})}var hm,um={Group:function(t){return tt.createElement(wt.Group,Wt({size:"large",onChange:t.onChange},t))},Button:function(t){var e=t.children,n=t.disabled,i=Ht(t,["children","disabled"]),o=ji().brand,a="\n &.ant-radio-button-wrapper {\n ".concat(n?"":"color: ".concat(Vn.BLACK," !important;"),"\n -webkit-font-smoothing: antialiased !important;\n display: block !important;\n width: 100% !important;\n font-family: ").concat(io," !important;\n font-weight: 400 !important;\n border-radius: 5px !important;\n border: 1px solid ").concat(Vn.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(n?"":"\n border-color: ".concat(o.primary.default," !important;\n color: ").concat(Vn.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(o.primary.default," !important;\n color: ").concat(o.primary.default," !important;\n\n circle {\n transition: all 0.3s !important;\n }\n\n circle.center {\n fill: ").concat(We.S500," !important;\n }\n\n circle.border {\n stroke: ").concat(o.primary.default," !important;\n }\n }\n\n &.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):active {\n border-color: ").concat(o.primary.default," !important;\n color: ").concat(o.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(Vn.BLACK," !important;\n }\n ");return tt.createElement(wt.Button,Wt({className:on(a),disabled:n},i),tt.createElement("div",{style:{display:"flex",height:"100%",alignItems:"center"}},tt.createElement("div",{style:{width:"20px",height:"20px",lineHeight:"20px",marginRight:"11px"}},tt.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},tt.createElement("circle",{className:"border",cx:"10",cy:"10",r:"9.5",stroke:"#E8E8E8"}),tt.createElement("circle",{className:"center",cx:"10",cy:"10",r:"7",fill:"rgba(0, 0, 0, 0)"}))),e))}},pm={},fm={exports:{}};function mm(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 gm,bm={exports:{}};function xm(){return gm||(gm=1,(t=bm).exports=function(){var e,n;function i(){return e.apply(null,arguments)}function o(t){e=t}function a(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function r(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 m(){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 g(t){return null==t._pf&&(t._pf=m()),t._pf}function b(t){if(null==t._isValid){var e=g(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(g(e),t):g(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 y=i.momentProperties=[];function v(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=g(e)),l(e._locale)||(t._locale=e._locale),y.length>0)for(n=0;n<y.length;n++)l(o=e[i=y[n]])||(t[i]=o);return t}var _=!1;function w(t){v(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 M(t,e,n){var i,o=Math.min(t.length,e.length),a=Math.abs(t.length-e.length),r=0;for(i=0;i<o;i++)(n&&t[i]!==e[i]||!n&&E(t[i])!==E(e[i]))&&r++;return r+a}function D(t){!1===i.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function C(t,e){var n=!0;return p(function(){if(null!=i.deprecationHandler&&i.deprecationHandler(null,t),n){for(var o,a=[],r=0;r<arguments.length;r++){if(o="","object"==typeof arguments[r]){for(var s in o+="\n["+r+"] ",arguments[0])o+=s+": "+arguments[0][s]+", ";o=o.slice(0,-2)}else o=arguments[r];a.push(o)}D(t+"\nArguments: "+Array.prototype.slice.call(a).join("")+"\n"+(new Error).stack),n=!1}return e.apply(this,arguments)},e)}var O,T={};function A(t,e){null!=i.deprecationHandler&&i.deprecationHandler(t,e),T[t]||(D(e),T[t]=!0)}function P(t){return t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function R(t){var e,n;for(n in t)P(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 L(t,e){var n,i=p({},t);for(n in e)u(e,n)&&(r(t[n])&&r(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)&&r(t[n])&&(i[n]=p({},i[n]));return i}function I(t){null!=t&&this.set(t)}i.suppressDeprecationWarnings=!1,i.deprecationHandler=null,O=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 P(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 Y="Invalid date";function V(){return this._invalidDate}var H="%d",W=/\d{1,2}/;function U(t){return this._ordinal.replace("%d",t)}var j={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 P(o)?o(t,e,n,i):o.replace(/%d/i,t)}function $(t,e){var n=this._relativeTime[t>0?"future":"past"];return P(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={},at={};function rt(t,e,n,i){var o=i;"string"==typeof i&&(o=function(){return this[i]()}),t&&(at[t]=o),e&&(at[e[0]]=function(){return et(o.apply(this,arguments),e[1],e[2])}),n&&(at[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++)at[i[e]]?i[e]=at[i[e]]:i[e]=st(i[e]);return function(e){var o,a="";for(o=0;o<n;o++)a+=P(i[o])?i[o].call(e,t):i[o];return a}}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}/,mt=/[+-]?\d{6}/,gt=/\d\d?/,bt=/\d\d\d\d?/,xt=/\d\d\d\d\d\d?/,yt=/\d{1,3}/,vt=/\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,Mt=/[+-]?\d+(\.\d{1,3})?/,Dt=/[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,Ct={};function Ot(t,e,n){Ct[t]=P(e)?e:function(t,i){return t&&n?n:e}}function Tt(t,e){return u(Ct,t)?Ct[t](e._strict,e._locale):new RegExp(At(t))}function At(t){return Pt(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,n,i,o){return e||n||i||o}))}function Pt(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var Rt={};function Lt(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++)Rt[t[n]]=i}function It(t,e){Lt(t,function(t,n,i,o){i._w=i._w||{},e(t,i._w,i,o)})}function Nt(t,e,n){null!=e&&u(Rt,t)&&Rt[t](e,n._a,n,t)}var Ft=0,zt=1,Bt=2,Yt=3,Vt=4,Ht=5,Wt=6,Ut=7,jt=8;function Gt(t){return $t(t)?366:365}function $t(t){return t%4==0&&t%100!=0||t%400==0}rt("Y",0,0,function(){var t=this.year();return t<=9999?""+t:"+"+t}),rt(0,["YY",2],0,function(){return this.year()%100}),rt(0,["YYYY",4],0,"year"),rt(0,["YYYYY",5],0,"year"),rt(0,["YYYYYY",6,!0],0,"year"),q("year","y"),Q("year",1),Ot("Y",kt),Ot("YY",gt,ut),Ot("YYYY",vt,ft),Ot("YYYYY",_t,mt),Ot("YYYYYY",_t,mt),Lt(["YYYYY","YYYYYY"],Ft),Lt("YYYY",function(t,e){e[Ft]=2===t.length?i.parseTwoDigitYear(t):E(t)}),Lt("YY",function(t,e){e[Ft]=i.parseTwoDigitYear(t)}),Lt("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 P(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(P(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},rt("M",["MM",2],"Mo",function(){return this.month()+1}),rt("MMM",0,0,function(t){return this.localeData().monthsShort(this,t)}),rt("MMMM",0,0,function(t){return this.localeData().months(this,t)}),q("month","M"),Q("month",8),Ot("M",gt),Ot("MM",gt,ut),Ot("MMM",function(t,e){return e.monthsShortRegex(t)}),Ot("MMMM",function(t,e){return e.monthsRegex(t)}),Lt(["M","MM"],function(t,e){e[zt]=E(t)-1}),Lt(["MMM","MMMM"],function(t,e,n,i){var o=n._locale.monthsParse(t,i,n._strict);null!=o?e[zt]=o:g(n).invalidMonth=t});var oe=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,ae="January_February_March_April_May_June_July_August_September_October_November_December".split("_");function re(t,e){return t?a(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||oe).test(e)?"format":"standalone"][t.month()]:a(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?a(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[oe.test(e)?"format":"standalone"][t.month()]:a(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function ce(t,e,n){var i,o,a,r=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)a=f([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(a,"").toLocaleLowerCase();return n?"MMM"===e?-1!==(o=Xt.call(this._shortMonthsParse,r))?o:null:-1!==(o=Xt.call(this._longMonthsParse,r))?o:null:"MMM"===e?-1!==(o=Xt.call(this._shortMonthsParse,r))||-1!==(o=Xt.call(this._longMonthsParse,r))?o:null:-1!==(o=Xt.call(this._longMonthsParse,r))||-1!==(o=Xt.call(this._shortMonthsParse,r))?o:null}function de(t,e,n){var i,o,a;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]||(a="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),this._monthsParse[i]=new RegExp(a.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=Dt;function me(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 ge=Dt;function be(t){return this._monthsParseExact?(u(this,"_monthsRegex")||xe.call(this),t?this._monthsStrictRegex:this._monthsRegex):(u(this,"_monthsRegex")||(this._monthsRegex=ge),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)}function xe(){function t(t,e){return e.length-t.length}var e,n,i=[],o=[],a=[];for(e=0;e<12;e++)n=f([2e3,e]),i.push(this.monthsShort(n,"")),o.push(this.months(n,"")),a.push(this.months(n,"")),a.push(this.monthsShort(n,""));for(i.sort(t),o.sort(t),a.sort(t),e=0;e<12;e++)i[e]=Pt(i[e]),o[e]=Pt(o[e]);for(e=0;e<24;e++)a[e]=Pt(a[e]);this._monthsRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+i.join("|")+")","i")}function ye(t,e,n,i,o,a,r){var s;return t<100&&t>=0?(s=new Date(t+400,e,n,i,o,a,r),isFinite(s.getFullYear())&&s.setFullYear(t)):s=new Date(t,e,n,i,o,a,r),s}function ve(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+ve(t,0,i).getUTCDay()-e)%7+i-1}function we(t,e,n,i,o){var a,r,s=1+7*(e-1)+(7+n-i)%7+_e(t,i,o);return s<=0?r=Gt(a=t-1)+s:s>Gt(t)?(a=t+1,r=s-Gt(t)):(a=t,r=s),{year:a,dayOfYear:r}}function ke(t,e,n){var i,o,a=_e(t.year(),e,n),r=Math.floor((t.dayOfYear()-a-1)/7)+1;return r<1?i=r+Se(o=t.year()-1,e,n):r>Se(t.year(),e,n)?(i=r-Se(t.year(),e,n),o=t.year()+1):(o=t.year(),i=r),{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}rt("w",["ww",2],"wo","week"),rt("W",["WW",2],"Wo","isoWeek"),q("week","w"),q("isoWeek","W"),Q("week",5),Q("isoWeek",5),Ot("w",gt),Ot("ww",gt,ut),Ot("W",gt),Ot("WW",gt,ut),It(["w","ww","W","WW"],function(t,e,n,i){e[i.substr(0,1)]=E(t)});var Me={dow:0,doy:6};function De(){return this._week.dow}function Ce(){return this._week.doy}function Oe(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")}function Te(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 Pe(t,e){return"string"==typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}function Re(t,e){return t.slice(e,7).concat(t.slice(0,e))}rt("d",0,"do","day"),rt("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),rt("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),rt("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),rt("e",0,0,"weekday"),rt("E",0,0,"isoWeekday"),q("day","d"),q("weekday","e"),q("isoWeekday","E"),Q("day",11),Q("weekday",11),Q("isoWeekday",11),Ot("d",gt),Ot("e",gt),Ot("E",gt),Ot("dd",function(t,e){return e.weekdaysMinRegex(t)}),Ot("ddd",function(t,e){return e.weekdaysShortRegex(t)}),Ot("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:g(n).invalidWeekday=t}),It(["d","e","E"],function(t,e,n,i){e[i]=E(t)});var Le="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_");function Ie(t,e){var n=a(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?"format":"standalone"];return!0===t?Re(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?Re(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?Re(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin}function Ye(t,e,n){var i,o,a,r=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)a=f([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(a,"").toLocaleLowerCase();return n?"dddd"===e?-1!==(o=Xt.call(this._weekdaysParse,r))?o:null:"ddd"===e?-1!==(o=Xt.call(this._shortWeekdaysParse,r))?o:null:-1!==(o=Xt.call(this._minWeekdaysParse,r))?o:null:"dddd"===e?-1!==(o=Xt.call(this._weekdaysParse,r))||-1!==(o=Xt.call(this._shortWeekdaysParse,r))||-1!==(o=Xt.call(this._minWeekdaysParse,r))?o:null:"ddd"===e?-1!==(o=Xt.call(this._shortWeekdaysParse,r))||-1!==(o=Xt.call(this._weekdaysParse,r))||-1!==(o=Xt.call(this._minWeekdaysParse,r))?o:null:-1!==(o=Xt.call(this._minWeekdaysParse,r))||-1!==(o=Xt.call(this._weekdaysParse,r))||-1!==(o=Xt.call(this._shortWeekdaysParse,r))?o:null}function Ve(t,e,n){var i,o,a;if(this._weekdaysParseExact)return Ye.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]||(a="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[i]=new RegExp(a.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 Ue(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var e=Pe(t,this.localeData());return this.day(this.day()%7?e:e-7)}return this.day()||7}var je=Dt;function Ge(t){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Ke.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(u(this,"_weekdaysRegex")||(this._weekdaysRegex=je),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)}var $e=Dt;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=Dt;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,a,r=[],s=[],l=[],c=[];for(e=0;e<7;e++)n=f([2e3,1]).day(e),i=this.weekdaysMin(n,""),o=this.weekdaysShort(n,""),a=this.weekdays(n,""),r.push(i),s.push(o),l.push(a),c.push(i),c.push(o),c.push(a);for(r.sort(t),s.sort(t),l.sort(t),c.sort(t),e=0;e<7;e++)s[e]=Pt(s[e]),l[e]=Pt(l[e]),c[e]=Pt(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("^("+r.join("|")+")","i")}function Je(){return this.hours()%12||12}function Qe(){return this.hours()||24}function tn(t,e){rt(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)}rt("H",["HH",2],0,"hour"),rt("h",["hh",2],0,Je),rt("k",["kk",2],0,Qe),rt("hmm",0,0,function(){return""+Je.apply(this)+et(this.minutes(),2)}),rt("hmmss",0,0,function(){return""+Je.apply(this)+et(this.minutes(),2)+et(this.seconds(),2)}),rt("Hmm",0,0,function(){return""+this.hours()+et(this.minutes(),2)}),rt("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),Ot("a",en),Ot("A",en),Ot("H",gt),Ot("h",gt),Ot("k",gt),Ot("HH",gt,ut),Ot("hh",gt,ut),Ot("kk",gt,ut),Ot("hmm",bt),Ot("hmmss",xt),Ot("Hmm",bt),Ot("Hmmss",xt),Lt(["H","HH"],Yt),Lt(["k","kk"],function(t,e,n){var i=E(t);e[Yt]=24===i?0:i}),Lt(["a","A"],function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t}),Lt(["h","hh"],function(t,e,n){e[Yt]=E(t),g(n).bigHour=!0}),Lt("hmm",function(t,e,n){var i=t.length-2;e[Yt]=E(t.substr(0,i)),e[Vt]=E(t.substr(i)),g(n).bigHour=!0}),Lt("hmmss",function(t,e,n){var i=t.length-4,o=t.length-2;e[Yt]=E(t.substr(0,i)),e[Vt]=E(t.substr(i,2)),e[Ht]=E(t.substr(o)),g(n).bigHour=!0}),Lt("Hmm",function(t,e,n){var i=t.length-2;e[Yt]=E(t.substr(0,i)),e[Vt]=E(t.substr(i))}),Lt("Hmmss",function(t,e,n){var i=t.length-4,o=t.length-2;e[Yt]=E(t.substr(0,i)),e[Vt]=E(t.substr(i,2)),e[Ht]=E(t.substr(o))});var on=/[ap]\.?m?\.?/i;function an(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"}var rn,sn=Kt("Hours",!0),ln={calendar:N,longDateFormat:z,invalidDate:Y,ordinal:H,dayOfMonthOrdinalParse:W,relativeTime:j,months:ae,monthsShort:se,week:Me,weekdays:Le,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,a=0;a<t.length;){for(e=(o=hn(t[a]).split("-")).length,n=(n=hn(t[a+1]))?n.split("-"):null;e>0;){if(i=pn(o.slice(0,e).join("-")))return i;if(n&&n.length>=e&&M(o,n,!0)>=e-1)break;e--}a++}return rn}function pn(e){var n=null;if(!cn[e]&&t&&t.exports)try{n=rn._abbr,mm("./locale/"+e),fn(n)}catch(t){}return cn[e]}function fn(t,e){var n;return t&&((n=l(e)?bn(t):mn(t,e))?rn=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),rn._abbr}function mn(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(L(i,e)),dn[t]&&dn[t].forEach(function(t){mn(t.name,t.config)}),fn(t),cn[t]}return delete cn[t],null}function gn(t,e){if(null!=e){var n,i,o=ln;null!=(i=pn(t))&&(o=i._config),(n=new I(e=L(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 rn;if(!a(t)){if(e=pn(t))return e;t=[t]}return un(t)}function xn(){return O(cn)}function yn(t){var e,n=t._a;return n&&-2===g(t).overflow&&(e=n[zt]<0||n[zt]>11?zt:n[Bt]<1||n[Bt]>ie(n[Ft],n[zt])?Bt:n[Yt]<0||n[Yt]>24||24===n[Yt]&&(0!==n[Vt]||0!==n[Ht]||0!==n[Wt])?Yt:n[Vt]<0||n[Vt]>59?Vt:n[Ht]<0||n[Ht]>59?Ht:n[Wt]<0||n[Wt]>999?Wt:-1,g(t)._overflowDayOfYear&&(e<Ft||e>Bt)&&(e=Bt),g(t)._overflowWeeks&&-1===e&&(e=Ut),g(t)._overflowWeekday&&-1===e&&(e=jt),g(t).overflow=e),t}function vn(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,a,r=[];if(!t._d){for(i=_n(t),t._w&&null==t._a[Bt]&&null==t._a[zt]&&kn(t),null!=t._dayOfYear&&(a=vn(t._a[Ft],i[Ft]),(t._dayOfYear>Gt(a)||0===t._dayOfYear)&&(g(t)._overflowDayOfYear=!0),n=ve(a,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]=r[e]=i[e];for(;e<7;e++)t._a[e]=r[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[Yt]&&0===t._a[Vt]&&0===t._a[Ht]&&0===t._a[Wt]&&(t._nextDay=!0,t._a[Yt]=0),t._d=(t._useUTC?ve:ye).apply(null,r),o=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[Yt]=24),t._w&&void 0!==t._w.d&&t._w.d!==o&&(g(t).weekdayMismatch=!0)}}function kn(t){var e,n,i,o,a,r,s,l;if(null!=(e=t._w).GG||null!=e.W||null!=e.E)a=1,r=4,n=vn(e.GG,t._a[Ft],ke(Xn(),1,4).year),i=vn(e.W,1),((o=vn(e.E,1))<1||o>7)&&(l=!0);else{a=t._locale._week.dow,r=t._locale._week.doy;var c=ke(Xn(),a,r);n=vn(e.gg,t._a[Ft],c.year),i=vn(e.w,c.week),null!=e.d?((o=e.d)<0||o>6)&&(l=!0):null!=e.e?(o=e.e+a,(e.e<0||e.e>6)&&(l=!0)):o=a}i<1||i>Se(n,a,r)?g(t)._overflowWeeks=!0:null!=l?g(t)._overflowWeekday=!0:(s=we(n,i,o,a,r),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)?)?$/,Mn=/Z|[+-]\d\d(?::?\d\d)?/,Dn=[["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}/]],Cn=[["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/]],On=/^\/?Date\((\-?\d+)/i;function Tn(t){var e,n,i,o,a,r,s=t._i,l=Sn.exec(s)||En.exec(s);if(l){for(g(t).iso=!0,e=0,n=Dn.length;e<n;e++)if(Dn[e][1].exec(l[1])){o=Dn[e][0],i=!1!==Dn[e][2];break}if(null==o)return void(t._isValid=!1);if(l[3]){for(e=0,n=Cn.length;e<n;e++)if(Cn[e][1].exec(l[3])){a=(l[2]||" ")+Cn[e][0];break}if(null==a)return void(t._isValid=!1)}if(!i&&null!=a)return void(t._isValid=!1);if(l[4]){if(!Mn.exec(l[4]))return void(t._isValid=!1);r="Z"}t._f=o+(a||"")+(r||""),Yn(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 Pn(t,e,n,i,o,a){var r=[Rn(t),se.indexOf(e),parseInt(n,10),parseInt(i,10),parseInt(o,10)];return a&&r.push(parseInt(a,10)),r}function Rn(t){var e=parseInt(t,10);return e<=49?2e3+e:e<=999?1900+e:e}function Ln(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()||(g(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(Ln(t._i));if(e){var n=Pn(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=ve.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),g(t).rfc2822=!0}else t._isValid=!1}function Bn(t){var e=On.exec(t._i);null===e?(Tn(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 Yn(t){if(t._f!==i.ISO_8601)if(t._f!==i.RFC_2822){t._a=[],g(t).empty=!0;var e,n,o,a,r,s=""+t._i,l=s.length,c=0;for(o=dt(t._f,t._locale).match(nt)||[],e=0;e<o.length;e++)a=o[e],(n=(s.match(Tt(a,t))||[])[0])&&((r=s.substr(0,s.indexOf(n))).length>0&&g(t).unusedInput.push(r),s=s.slice(s.indexOf(n)+n.length),c+=n.length),at[a]?(n?g(t).empty=!1:g(t).unusedTokens.push(a),Nt(a,n,t)):t._strict&&!n&&g(t).unusedTokens.push(a);g(t).charsLeftOver=l-c,s.length>0&&g(t).unusedInput.push(s),t._a[Yt]<=12&&!0===g(t).bigHour&&t._a[Yt]>0&&(g(t).bigHour=void 0),g(t).parsedDateParts=t._a.slice(0),g(t).meridiem=t._meridiem,t._a[Yt]=Vn(t._locale,t._a[Yt],t._meridiem),wn(t),yn(t)}else zn(t);else Tn(t)}function Vn(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,a;if(0===t._f.length)return g(t).invalidFormat=!0,void(t._d=new Date(NaN));for(o=0;o<t._f.length;o++)a=0,e=v({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[o],Yn(e),b(e)&&(a+=g(e).charsLeftOver,a+=10*g(e).unusedTokens.length,g(e).score=a,(null==i||a<i)&&(i=a,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 Un(t){var e=new w(yn(jn(t)));return e._nextDay&&(e.add(1,"d"),e._nextDay=void 0),e}function jn(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(yn(e)):(d(e)?t._d=e:a(n)?Hn(t):n?Yn(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):a(e)?(t._a=h(e.slice(0),function(t){return parseInt(t,10)}),wn(t)):r(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),(r(t)&&s(t)||a(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,Un(l)}function Xn(t,e,n,i){return $n(t,e,n,i,!1)}i.createFromInputFallback=C("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=C("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=C("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&&a(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 Mi(NaN)}function ai(t){var e=K(t),n=e.year||0,i=e.quarter||0,o=e.month||0,a=e.week||e.isoWeek||0,r=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=+r+7*a,this._months=+o+3*i+12*n,this._data={},this._locale=bn(),this._bubble()}function ri(t){return t instanceof ai}function si(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function li(t,e){rt(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",""),Ot("Z",Et),Ot("ZZ",Et),Lt(["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,a=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"),a!==t&&(!e||this._changeInProgress?Ai(this,Mi(t-a,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,i.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?a:ui(this)}function fi(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()}function mi(t){return this.utcOffset(0,t)}function gi(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 yi(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function vi(){if(!l(this._isDSTShifted))return this._isDSTShifted;var t={};if(v(t,this),(t=jn(t))._a){var e=t._isUTC?f(t._a):Xn(t._a);this._isDSTShifted=this.isValid()&&M(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 Mi(t,e){var n,i,o,a=t,r=null;return ri(t)?a={ms:t._milliseconds,d:t._days,M:t._months}:c(t)?(a={},e?a[e]=t:a.milliseconds=t):(r=Si.exec(t))?(n="-"===r[1]?-1:1,a={y:0,d:E(r[Bt])*n,h:E(r[Yt])*n,m:E(r[Vt])*n,s:E(r[Ht])*n,ms:E(si(1e3*r[Wt]))*n}):(r=Ei.exec(t))?(n="-"===r[1]?-1:1,a={y:Di(r[2],n),M:Di(r[3],n),w:Di(r[4],n),d:Di(r[5],n),h:Di(r[6],n),m:Di(r[7],n),s:Di(r[8],n)}):null==a?a={}:"object"==typeof a&&("from"in a||"to"in a)&&(o=Oi(Xn(a.from),Xn(a.to)),(a={}).ms=o.milliseconds,a.M=o.months),i=new ai(a),ri(t)&&u(t,"_locale")&&(i._locale=t._locale),i}function Di(t,e){var n=t&&parseFloat(t.replace(",","."));return(isNaN(n)?0:n)*e}function Ci(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 Oi(t,e){var n;return t.isValid()&&e.isValid()?(e=hi(e,t),t.isBefore(e)?n=Ci(t,e):((n=Ci(e,t)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Ti(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,Mi(n="string"==typeof n?+n:n,i),t),this}}function Ai(t,e,n,o){var a=e._milliseconds,r=si(e._days),s=si(e._months);t.isValid()&&(o=null==o||o,s&&he(t,Jt(t,"Month")+s*n),r&&Qt(t,"Date",Jt(t,"Date")+r*n),a&&t._d.setTime(t._d.valueOf()+a*n),o&&i.updateOffset(t,r||s))}Mi.fn=ai.prototype,Mi.invalid=oi;var Pi=Ti(1,"add"),Ri=Ti(-1,"subtract");function Li(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"),a=i.calendarFormat(this,o)||"sameElse",r=e&&(P(e[a])?e[a].call(this,n):e[a]);return this.format(r||this.localeData().calendar(a,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),a=k(e)?e:Xn(e);return!!(this.isValid()&&o.isValid()&&a.isValid())&&("("===(i=i||"()")[0]?this.isAfter(o,n):!this.isBefore(o,n))&&(")"===i[1]?this.isBefore(a,n):!this.isAfter(a,n))}function Yi(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 Vi(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,a;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":a=Ui(this,i)/12;break;case"month":a=Ui(this,i);break;case"quarter":a=Ui(this,i)/3;break;case"second":a=(this-i)/1e3;break;case"minute":a=(this-i)/6e4;break;case"hour":a=(this-i)/36e5;break;case"day":a=(this-i-o)/864e5;break;case"week":a=(this-i-o)/6048e5;break;default:a=this-i}return n?a:S(a)}function Ui(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 ji(){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"):P(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",a=e+'[")]';return this.format(n+i+o+a)}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())?Mi({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())?Mi({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=C("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,ao=3506328*oo;function ro(t,e){return(t%e+e)%e}function so(t,e,n){return t<100&&t>=0?new Date(t+400,e,n)-ao:new Date(t,e,n).valueOf()}function lo(t,e,n){return t<100&&t>=0?Date.UTC(t+400,e,n)-ao: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-=ro(e+(this._isUTC?0:this.utcOffset()*io),oo);break;case"minute":e=this._d.valueOf(),e-=ro(e,io);break;case"second":e=this._d.valueOf(),e-=ro(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-ro(e+(this._isUTC?0:this.utcOffset()*io),oo)-1;break;case"minute":e=this._d.valueOf(),e+=io-ro(e,io)-1;break;case"second":e=this._d.valueOf(),e+=no-ro(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 mo(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]}function go(){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 yo(){return p({},g(this))}function vo(){return g(this).overflow}function _o(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function wo(t,e){rt(0,[t,t.length],0,e)}function ko(t){return Do.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function So(t){return Do.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)}function Eo(){return Se(this.year(),1,4)}function Mo(){var t=this.localeData()._week;return Se(this.year(),t.dow,t.doy)}function Do(t,e,n,i,o){var a;return null==t?ke(this,i,o).year:(e>(a=Se(t,i,o))&&(e=a),Co.call(this,t,e,n,i,o))}function Co(t,e,n,i,o){var a=we(t,e,n,i,o),r=ve(a.year,0,a.dayOfYear);return this.year(r.getUTCFullYear()),this.month(r.getUTCMonth()),this.date(r.getUTCDate()),this}function Oo(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)}rt(0,["gg",2],0,function(){return this.weekYear()%100}),rt(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),Ot("G",kt),Ot("g",kt),Ot("GG",gt,ut),Ot("gg",gt,ut),Ot("GGGG",vt,ft),Ot("gggg",vt,ft),Ot("GGGGG",_t,mt),Ot("ggggg",_t,mt),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)}),rt("Q",0,"Qo","quarter"),q("quarter","Q"),Q("quarter",7),Ot("Q",ht),Lt("Q",function(t,e){e[zt]=3*(E(t)-1)}),rt("D",["DD",2],"Do","date"),q("date","D"),Q("date",9),Ot("D",gt),Ot("DD",gt,ut),Ot("Do",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient}),Lt(["D","DD"],Bt),Lt("Do",function(t,e){e[Bt]=E(t.match(gt)[0])});var To=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")}rt("DDD",["DDDD",3],"DDDo","dayOfYear"),q("dayOfYear","DDD"),Q("dayOfYear",4),Ot("DDD",yt),Ot("DDDD",pt),Lt(["DDD","DDDD"],function(t,e,n){n._dayOfYear=E(t)}),rt("m",["mm",2],0,"minute"),q("minute","m"),Q("minute",14),Ot("m",gt),Ot("mm",gt,ut),Lt(["m","mm"],Vt);var Po=Kt("Minutes",!1);rt("s",["ss",2],0,"second"),q("second","s"),Q("second",15),Ot("s",gt),Ot("ss",gt,ut),Lt(["s","ss"],Ht);var Ro,Lo=Kt("Seconds",!1);for(rt("S",0,0,function(){return~~(this.millisecond()/100)}),rt(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),rt(0,["SSS",3],0,"millisecond"),rt(0,["SSSS",4],0,function(){return 10*this.millisecond()}),rt(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),rt(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),rt(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),rt(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),rt(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),q("millisecond","ms"),Q("millisecond",16),Ot("S",yt,ht),Ot("SS",yt,ut),Ot("SSS",yt,pt),Ro="SSSS";Ro.length<=9;Ro+="S")Ot(Ro,wt);function Io(t,e){e[Wt]=E(1e3*("0."+t))}for(Ro="S";Ro.length<=9;Ro+="S")Lt(Ro,Io);var No=Kt("Milliseconds",!1);function Fo(){return this._isUTC?"UTC":""}function zo(){return this._isUTC?"Coordinated Universal Time":""}rt("z",0,0,"zoneAbbr"),rt("zz",0,0,"zoneName");var Bo=w.prototype;function Yo(t){return Xn(1e3*t)}function Vo(){return Xn.apply(null,arguments).parseZone()}function Ho(t){return t}Bo.add=Pi,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=vo,Bo.isAfter=Fi,Bo.isBefore=zi,Bo.isBetween=Bi,Bo.isSame=Yi,Bo.isSameOrAfter=Vi,Bo.isSameOrBefore=Hi,Bo.isValid=xo,Bo.lang=to,Bo.locale=Qi,Bo.localeData=eo,Bo.max=Zn,Bo.min=qn,Bo.parsingFlags=yo,Bo.set=ee,Bo.startOf=co,Bo.subtract=Ri,Bo.toArray=mo,Bo.toObject=go,Bo.toDate=fo,Bo.toISOString=Gi,Bo.inspect=$i,Bo.toJSON=bo,Bo.toString=ji,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=Oo,Bo.month=ue,Bo.daysInMonth=pe,Bo.week=Bo.weeks=Oe,Bo.isoWeek=Bo.isoWeeks=Te,Bo.weeksInYear=Mo,Bo.isoWeeksInYear=Eo,Bo.date=To,Bo.day=Bo.days=He,Bo.weekday=We,Bo.isoWeekday=Ue,Bo.dayOfYear=Ao,Bo.hour=Bo.hours=sn,Bo.minute=Bo.minutes=Po,Bo.second=Bo.seconds=Lo,Bo.millisecond=Bo.milliseconds=No,Bo.utcOffset=pi,Bo.utc=mi,Bo.local=gi,Bo.parseZone=bi,Bo.hasAlignedHourOffset=xi,Bo.isDST=yi,Bo.isLocal=_i,Bo.isUtcOffset=wi,Bo.isUtc=ki,Bo.isUTC=ki,Bo.zoneAbbr=Fo,Bo.zoneName=zo,Bo.dates=C("dates accessor is deprecated. Use date instead.",To),Bo.months=C("months accessor is deprecated. Use month instead",ue),Bo.years=C("years accessor is deprecated. Use year instead",qt),Bo.zone=C("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",fi),Bo.isDSTShifted=C("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",vi);var Wo=I.prototype;function Uo(t,e,n,i){var o=bn(),a=f().set(i,e);return o[n](a,t)}function jo(t,e,n){if(c(t)&&(e=t,t=void 0),t=t||"",null!=e)return Uo(t,e,n,"month");var i,o=[];for(i=0;i<12;i++)o[i]=Uo(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,a=bn(),r=t?a._week.dow:0;if(null!=n)return Uo(e,(n+r)%7,i,"day");var s=[];for(o=0;o<7;o++)s[o]=Uo(e,(o+r)%7,i,"day");return s}function $o(t,e){return jo(t,e,"months")}function Xo(t,e){return jo(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=V,Wo.ordinal=U,Wo.preparse=Ho,Wo.postformat=Ho,Wo.relativeTime=G,Wo.pastFuture=$,Wo.set=R,Wo.months=re,Wo.monthsShort=le,Wo.monthsParse=de,Wo.monthsRegex=be,Wo.monthsShortRegex=me,Wo.week=Ee,Wo.firstDayOfYear=Ce,Wo.firstDayOfWeek=De,Wo.weekdays=Ie,Wo.weekdaysMin=Be,Wo.weekdaysShort=Fe,Wo.weekdaysParse=Ve,Wo.weekdaysRegex=Ge,Wo.weekdaysShortRegex=Xe,Wo.weekdaysMinRegex=Ze,Wo.isPM=nn,Wo.meridiem=an,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=C("moment.lang is deprecated. Use moment.locale instead.",fn),i.langData=C("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 ta(t,e,n,i){var o=Mi(e,n);return t._milliseconds+=i*o._milliseconds,t._days+=i*o._days,t._months+=i*o._months,t._bubble()}function ea(t,e){return ta(this,t,e,1)}function na(t,e){return ta(this,t,e,-1)}function ia(t){return t<0?Math.floor(t):Math.ceil(t)}function oa(){var t,e,n,i,o,a=this._milliseconds,r=this._days,s=this._months,l=this._data;return a>=0&&r>=0&&s>=0||a<=0&&r<=0&&s<=0||(a+=864e5*ia(ra(s)+r),r=0,s=0),l.milliseconds=a%1e3,t=S(a/1e3),l.seconds=t%60,e=S(t/60),l.minutes=e%60,n=S(e/60),l.hours=n%24,r+=S(n/24),s+=o=S(aa(r)),r-=ia(ra(o)),i=S(s/12),s%=12,l.days=r,l.months=s,l.years=i,this}function aa(t){return 4800*t/146097}function ra(t){return 146097*t/4800}function sa(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+aa(e),t){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(e=this._days+Math.round(ra(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 la(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*E(this._months/12):NaN}function ca(t){return function(){return this.as(t)}}var da=ca("ms"),ha=ca("s"),ua=ca("m"),pa=ca("h"),fa=ca("d"),ma=ca("w"),ga=ca("M"),ba=ca("Q"),xa=ca("y");function ya(){return Mi(this)}function va(t){return t=Z(t),this.isValid()?this[t+"s"]():NaN}function _a(t){return function(){return this.isValid()?this._data[t]:NaN}}var wa=_a("milliseconds"),ka=_a("seconds"),Sa=_a("minutes"),Ea=_a("hours"),Ma=_a("days"),Da=_a("months"),Ca=_a("years");function Oa(){return S(this.days()/7)}var Ta=Math.round,Aa={ss:44,s:45,m:45,h:22,d:26,M:11};function Pa(t,e,n,i,o){return o.relativeTime(e||1,!!n,t,i)}function Ra(t,e,n){var i=Mi(t).abs(),o=Ta(i.as("s")),a=Ta(i.as("m")),r=Ta(i.as("h")),s=Ta(i.as("d")),l=Ta(i.as("M")),c=Ta(i.as("y")),d=o<=Aa.ss&&["s",o]||o<Aa.s&&["ss",o]||a<=1&&["m"]||a<Aa.m&&["mm",a]||r<=1&&["h"]||r<Aa.h&&["hh",r]||s<=1&&["d"]||s<Aa.d&&["dd",s]||l<=1&&["M"]||l<Aa.M&&["MM",l]||c<=1&&["y"]||["yy",c];return d[2]=e,d[3]=+t>0,d[4]=n,Pa.apply(null,d)}function La(t){return void 0===t?Ta:"function"==typeof t&&(Ta=t,!0)}function Ia(t,e){return void 0!==Aa[t]&&(void 0===e?Aa[t]:(Aa[t]=e,"s"===t&&(Aa.ss=e-1),!0))}function Na(t){if(!this.isValid())return this.localeData().invalidDate();var e=this.localeData(),n=Ra(this,!t,e);return t&&(n=e.pastFuture(+this,n)),e.postformat(n)}var Fa=Math.abs;function za(t){return(t>0)-(t<0)||+t}function Ba(){if(!this.isValid())return this.localeData().invalidDate();var t,e,n=Fa(this._milliseconds)/1e3,i=Fa(this._days),o=Fa(this._months);t=S(n/60),e=S(t/60),n%=60,t%=60;var a=S(o/12),r=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=za(this._months)!==za(h)?"-":"",f=za(this._days)!==za(h)?"-":"",m=za(this._milliseconds)!==za(h)?"-":"";return u+"P"+(a?p+a+"Y":"")+(r?p+r+"M":"")+(s?f+s+"D":"")+(l||c||d?"T":"")+(l?m+l+"H":"")+(c?m+c+"M":"")+(d?m+d+"S":"")}var Ya=ai.prototype;return Ya.isValid=ii,Ya.abs=Qo,Ya.add=ea,Ya.subtract=na,Ya.as=sa,Ya.asMilliseconds=da,Ya.asSeconds=ha,Ya.asMinutes=ua,Ya.asHours=pa,Ya.asDays=fa,Ya.asWeeks=ma,Ya.asMonths=ga,Ya.asQuarters=ba,Ya.asYears=xa,Ya.valueOf=la,Ya._bubble=oa,Ya.clone=ya,Ya.get=va,Ya.milliseconds=wa,Ya.seconds=ka,Ya.minutes=Sa,Ya.hours=Ea,Ya.days=Ma,Ya.weeks=Oa,Ya.months=Da,Ya.years=Ca,Ya.humanize=Na,Ya.toISOString=Ba,Ya.toString=Ba,Ya.toJSON=Ba,Ya.locale=Qi,Ya.localeData=eo,Ya.toIsoString=C("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Ba),Ya.lang=to,rt("X",0,0,"unix"),rt("x",0,0,"valueOf"),Ot("x",kt),Ot("X",Mt),Lt("X",function(t,e,n){n._d=new Date(1e3*parseFloat(t,10))}),Lt("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=Yo,i.months=$o,i.isDate=d,i.locale=fn,i.invalid=x,i.duration=Mi,i.isMoment=k,i.weekdays=qo,i.parseZone=Vo,i.localeData=bn,i.isDuration=ri,i.monthsShort=Xo,i.weekdaysMin=Ko,i.defineLocale=mn,i.updateLocale=gn,i.locales=xn,i.weekdaysShort=Zo,i.normalizeUnits=Z,i.relativeTimeRounding=La,i.relativeTimeThreshold=Ia,i.calendarFormat=Li,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}()),bm.exports;var t}var ym,vm,_m={};var wm=function(){if(vm)return pm;vm=1;var t,e=(hm||(hm=1,(t=fm).exports=function(t){return t&&t.__esModule?t:{default:t}},t.exports.__esModule=!0,t.exports.default=t.exports),fm.exports).default;Object.defineProperty(pm,"__esModule",{value:!0}),pm.default=void 0;var n=e(xm()),i=function(){if(ym)return _m;ym=1,Object.defineProperty(_m,"__esModule",{value:!0}),_m.call=r,_m.default=void 0,_m.note=o,_m.noteOnce=l,_m.preMessage=void 0,_m.resetWarned=a,_m.warning=i,_m.warningOnce=s;var t={},e=[],n=_m.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 a(){t={}}function r(e,n,i){n||t[i]||(e(!1,i),t[i]=!0)}function s(t,e){r(i,t,e)}function l(t,e){r(o,t,e)}return s.preMessage=n,s.resetWarned=a,s.noteOnce=l,_m.default=s,_m}(),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 a=[],r=0;r<o.length;r+=1){var s=o[r],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("")):a.push(s.replace(/o/g,""))}var h=(0,n.default)(l,s,t,!0);if(h.isValid())return h}for(var u=0;u<a.length;u+=1){var p=(0,n.default)(e,a[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 pm.default=o,pm}(),km=re(wm),Sm=kt.generatePicker(km);function Em(t){var e=t.format,n=void 0===e?"DD-MM-YYYY":e,i=t.size,o=void 0===i?"large":i,a=Ht(t,["format","size"]),r=ji(),s=so[o],l=s.height,c=s.borderRadius,d=s.padding,h="\n -webkit-font-smoothing: antialiased;\n height: ".concat(l," !important;\n\n &.ant-picker {\n border-radius: ").concat(c," !important;\n border-color: ").concat(r.color.base.line," !important;\n padding: ").concat(d," !important;\n transition: 0.3s all ease !important;\n\n &:hover {\n border-color: ").concat(r.color.base.primary2," !important;\n }\n\n &.ant-picker-focused {\n border-color: ").concat(r.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(r.color.base.primary2," !important;\n }\n }\n\n\n &.ant-picker > .ant-picker-input {\n font-family: ").concat(io," !important;\n font-style: normal !important;\n font-weight: normal !important;\n font-size: 14px !important;\n line-height: 22px !important;\n color: ").concat(r.color.base.onNeutral," !important;\n }\n\n & .ant-picker-input > input {\n color: ").concat(r.color.base.onNeutral," !important;\n }\n\n & .ant-picker-input > input::placeholder {\n color: ").concat(r.color.component.placeholderInput," !important;\n }\n "),u="\n .ant-picker-cell.ant-picker-cell-in-view.ant-picker-cell-range-end > .ant-picker-cell-inner {\n background-color: ".concat(r.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(r.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(r.color.interactive.selected," !important;\n }\n\n &.ant-picker-cell-range-end::before {\n background-color: ").concat(r.color.interactive.selected," !important;\n }\n\n &.ant-picker-cell-range-start::before {\n background-color: ").concat(r.color.interactive.selected," !important;\n }\n }\n ");return tt.createElement(Sm.RangePicker,Wt({className:"".concat(on(h)),format:n,popupClassName:on(u)},a))}var Mm,Dm,Cm=qn("div")(Mm||(Mm=Vt(["\n display: ",";\n "," {\n display: ",";\n }\n"],["\n display: ",";\n "," {\n display: ",";\n }\n"])),function(t){return"lg"===t.only?"block":"none"},hi,function(t){return"lg"===t.only?"none":"block"}),Om=function(t){var e=t.className,n=Ht(t,["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(bi,"\n ").concat(Di,"\n }\n \n & .ant-steps-item-process > .ant-steps-item-container > .ant-steps-item-content > .ant-steps-item-title {\n ").concat(bi,"\n ").concat(Mi,"\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(bi,"\n ").concat(Di,"\n color: #777777;\n }\n ");return tt.createElement(St,Wt({},n,{className:nn(on(i),e)}))};Om.Step=function(t){var e=Ht(t,[]),n=on(Dm||(Dm=Vt(["\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 tt.createElement(St.Step,Wt({className:nn(n)},e))};var Tm,Am,Pm,Rm,Lm,Im,Nm=function(t){var e=t.current,n=t.steps,i=t.desktopNote,o=lt(null),a=ji(),r=a.brand,s=a.success,l=a.neutral;ct(function(){var t=o.current;null!==t&&(t.scrollLeft=120*e)},[e]);var c=qn.div(Tm||(Tm=Vt(["\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 "])),l.border,l.background),d=qn.div(Am||(Am=Vt(["\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 "])),l.emphasis,function(t){return t.current===t.index?"\n background: ".concat(r.primary.default,";\n "):t.current>t.index?"\n background: ".concat(s.emphasis,";\n "):""}),h=qn.div(Pm||(Pm=Vt(["\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 "])),l.emphasis),u=qn.div(Rm||(Rm=Vt(["\n padding-right: 16px;\n width: 1px;\n white-space: nowrap;\n "],["\n padding-right: 16px;\n width: 1px;\n white-space: nowrap;\n "]))),p=qn(Io)(Lm||(Lm=Vt(["\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 tt.createElement(tt.Fragment,null,tt.createElement(Cm,{only:"sm"},tt.createElement("div",{style:{padding:"30px",width:"266px"}},tt.createElement(Om,{progressDot:!0,current:e,direction:"vertical",style:{marginBottom:"34px"}},n.map(function(t,e){return tt.createElement(Om.Step,{key:"desktop-".concat(t,"-").concat(e),title:t})})),i)),tt.createElement(Cm,{only:"lg",ref:o},tt.createElement(c,null,tt.createElement(u,null,n.map(function(t,i){return tt.createElement("span",{key:"mobile-".concat(t,"-").concat(i)},tt.createElement(p,{inactive:e<i,current:e===i},tt.createElement(d,{index:i,current:e}),t),i!==n.length-1&&tt.createElement(h,null))})))))},Fm=on(Im||(Im=Vt(["\n -webkit-font-smoothing: antialiased;\n font-family: ",";\n color: ",";\n"],["\n -webkit-font-smoothing: antialiased;\n font-family: ",";\n color: ",";\n"])),io,Ve.DEFAULT),zm=function(t){var e=t.className,n=t.emptyText,i=Ht(t,["className","emptyText"]);return tt.createElement(Et,Wt({className:nn(Fm,e),locale:{emptyText:n}},i))},Bm=function(t){var e=t.children,n=Ht(t,["children"]),i=ji().brand,o="\n font-family: ".concat(io,";\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 tt.createElement(mt,Wt({className:"".concat(on(o))},n),e)};Bm.TabPane=mt.TabPane;var Ym=function(t){var e=t.initialSeconds,n=t.blinkActivationSeconds,i=t.shouldRepeat,o=t.onTimesUp,a=t.children,r=st(!1),s=r[0],l=r[1],c=st(e),d=c[0],h=c[1],u=st(void 0),p=u[0],f=u[1],m=st(!0),g=m[0],b=m[1],x=Date.now()+1e3*d;return ct(function(){g&&(f(setInterval(function(){var t=(new Date).getTime(),e=x-t,i=Math.ceil(e/1e3);i>=0&&h(i),n&&i<=n&&l(!0)},1e3)),b(!1))},[g]),ct(function(){d<=0&&void 0!==p&&(clearInterval(p),f(void 0),l(!1),o&&o(),i&&(h(e),b(!0)))},[p,d]),a(s,d)};function Vm(t){var e=t.disabled,n=void 0!==e&&e,i=t.label,o=t.required,a=void 0!==o&&o,r=t.optional,s=void 0!==r&&r,l=t.size,c=void 0===l?"large":l,d=t.error,h=void 0!==d&&d,u=t.helperText,p=t.showInfoIcon,f=t.onInfoClick,m=Ht(t,["disabled","label","required","optional","size","error","helperText","showInfoIcon","onInfoClick"]),g=ji(),b=so[c],x=b.height,y=b.borderRadius,v=b.padding,_=h?g.color.status.critical:g.color.base.line,w="\n -webkit-font-smoothing: antialiased;\n height: ".concat(x," !important;\n width: 100% !important;\n\n ").concat(n?"\n pointer-events: none !important;\n ":"","\n\n &.ant-picker {\n border-radius: ").concat(y," !important;\n border-color: ").concat(_," !important;\n padding: ").concat(v," !important;\n transition: 0.3s all ease !important;\n\n &:hover {\n border-color: ").concat(g.color.base.primary2," !important;\n }\n\n &.ant-picker-focused {\n border-color: ").concat(g.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(io," !important;\n font-style: normal !important;\n font-weight: normal !important;\n font-size: 14px !important;\n line-height: 22px !important;\n color: ").concat(g.color.base.onNeutral," !important;\n }\n\n & .ant-picker-input > input {\n font-size: 14px !important;\n color: ").concat(g.color.base.onNeutral," !important;\n }\n\n & .ant-picker-input > input::placeholder {\n font-size: 14px !important;\n color: ").concat(g.color.component.placeholderInput," !important;\n }\n\n &.ant-picker.ant-picker-disabled {\n background: ").concat(g.color.surface.disabledSurface," !important;\n border: 1px solid ").concat(g.color.base.line," !important;\n }\n\n & .ant-picker-input > input[disabled] {\n color: ").concat(g.color.base.onNeutral," !important;\n -webkit-text-fill-color: ").concat(g.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(g.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(g.color.base.primary2," !important;\n }\n }\n "),k="\n .ant-picker-cell-in-view.ant-picker-cell-selected .ant-picker-cell-inner {\n background-color: ".concat(g.color.base.primary2," !important;\n }\n "),S=tt.createElement(Yu,{icon:"date_range",size:"m",color:g.color.base.onNeutral});return tt.createElement("div",null,tt.createElement(Np,{label:i,required:a,optional:s,showInfoIcon:p,onInfoClick:f}),tt.createElement(kt,Wt({className:"".concat(on(w)),popupClassName:on(k),disabled:n,suffixIcon:S,format:"DD-MM-YYYY"},m)),tt.createElement(Ip,{text:u,error:h}))}var Hm,Wm,Um,jm,Gm,$m,Xm,qm,Zm,Km,Jm,Qm,tg,eg,ng,ig,og,rg,sg,lg={Group:function(t){var e=t.className,n=void 0===e?"":e,i=Ht(t,["className"]),o="\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(Li.brand.line.base," !important;\n border-radius: 5px !important;\n\n &:hover {\n border: 1px solid ").concat(Li.brand.primary.default," !important;\n }\n\n &:focus-within {\n border: 1px solid ").concat(Li.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(Li.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(Vn.BLACK," !important;\n font-family: ").concat(io," !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(Li.brand.primary.illustration," !important;\n border-color: ").concat(Li.brand.primary.default," !important;\n }\n\n & .ant-checkbox-inner {\n border-radius: 5px !important;\n border: 1px solid ").concat(Li.brand.primary.default," !important;\n }\n ");return tt.createElement(Mt.Group,Wt({className:"".concat(on(o)," ").concat(n)},i))}},cg=function(t){var e=t.title,n=void 0===e?"No results found":e,i=t.subtitle,o=t.info,a=t.svgUniqueId,r=void 0===a?"randomString":a;return tt.createElement(dg,null,tt.createElement(Dt,{image:tt.createElement(It,{id:r,height:80,width:130}),imageStyle:{marginBottom:10,display:"block",margin:"auto"},description:!1}),n&&tt.createElement(hg,null,n),i&&tt.createElement(ug,null,i),o&&tt.createElement(pg,null,o))},dg=qn.div(Hm||(Hm=Vt(["\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"]))),hg=qn(No)(Wm||(Wm=Vt(["\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"]))),ug=qn(Io)(Um||(Um=Vt(["\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"])),Ue.S500),pg=qn(Io)(jm||(jm=Vt(["\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"])),Ve.DEFAULT),fg=function(t){var e=t.typographyType,n=void 0===e?"body":e,i=t.size,o=void 0===i?"md":i,a=t.textContent,r=t.children,s=t.href,l=t.target,c=t.rel,d=t.isUnderlined,h=void 0===d||d,u=t.icon,p=t.iconPlacement,f=void 0===p?"left":p,m=t.onClick,g=Ht(t,["typographyType","size","textContent","children","href","target","rel","isUnderlined","icon","iconPlacement","onClick"]),b=qn.a(Gm||(Gm=Vt(["\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 "])),u?"flex":"inline-flex",Li.color.base.link,h?"underline":"none",Li.color.base.link,h?"underline":"none",Li.color.base.link),x=u&&"left"===f,y=u&&"right"===f,v=a||r;return tt.createElement(b,Wt({href:s,target:l,rel:c,onClick:m},g),x&&u,"body"===n&&tt.createElement(dn.Body,{size:o,color:Li.color.base.link},v),"label"===n&&tt.createElement(dn.Label,{size:o,color:Li.color.base.link},v),y&&u)},mg=function(t){var e=t.title,n=t.children,i=ji(),o=i.spacing,a=i.neutral,r=qn.div($m||($m=Vt(["\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 "])),o.sm,o.md,a.background);return tt.createElement(r,null,tt.createElement(No,{style:{marginBottom:o.sm}},e),n)},gg=function(t){var e=t.title,n=t.children,i=Array.isArray(n)&&n.length>1,o=qn.div(Xm||(Xm=Vt(["\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 "])),Li.color.surface.subduePositive),a=qn.div(qm||(qm=Vt(["\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 "])),Li.color.status.positive,e?"5px":"0px");return tt.createElement(o,null,tt.createElement(a,null,tt.createElement(dn.Label,{size:"md"},e),i?tt.createElement(dn.Body,{size:"md",style:{scrollbarWidth:"none"}},tt.createElement("ol",{style:{margin:0,paddingLeft:"20px"}},n.map(function(t,e){return tt.createElement("li",{key:e},t)}))):tt.createElement(dn.Body,{size:"md",style:{scrollbarWidth:"none"}},n)))},bg=function(t){var e=t.withIcon,n=void 0!==e&&e,i=t.children,o=t.type,a=void 0===o?"primary":o,r=Ht(t,["withIcon","children","type"]),s=ji(),l=s.brand,c=s.spacing,d="\n color: ".concat(Li.color.base.primary,";\n background: ").concat(l.primary.background,";\n "),h="\n color: ".concat(Li.color.status.positive,";\n background: ").concat(Li.color.surface.subduePositive,";\n "),u="\n color: ".concat(Li.color.status.warning,";\n background: ").concat(Li.color.surface.subdueWarning,";\n "),p="\n color: ".concat(Li.color.status.critical,";\n background: ").concat(Li.color.surface.subdueCritical,";\n "),f="\n color: ".concat(Li.color.base.onNeutral,"};\n background: ").concat(Li.color.surface.SubdueInfo,";\n "),m=qn.div(Zm||(Zm=Vt(["\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 "])),c.sm,function(){switch(a){case"primary":default:return d;case"success":return h;case"warning":return u;case"error":return p;case"notification":return f}}()),g=on(Km||(Km=Vt(["\n display: block;\n margin: 1px 6px auto 0;\n "],["\n display: block;\n margin: 1px 6px auto 0;\n "])));return tt.createElement(m,Wt({},r),n&&("primary"===a?tt.createElement(Nt,{style:{minHeight:"18px",minWidth:"18px"},color:l.primary.emphasis,className:nn(g)}):"success"===a?tt.createElement(Ft,{style:{minHeight:"18px",minWidth:"18px"},color:Li.color.status.positive,className:nn(g)}):"warning"===a?tt.createElement(zt,{style:{minHeight:"18px",minWidth:"18px"},color:Li.color.status.warning,className:nn(g)}):"error"===a?tt.createElement(Bt,{style:{minHeight:"18px",minWidth:"18px"},color:Li.color.status.critical,className:nn(g)}):"notification"===a?tt.createElement(Nt,{style:{minHeight:"18px",minWidth:"18px"},color:Li.color.status.info,className:nn(g)}):tt.createElement(tt.Fragment,null)),tt.createElement(dn.Body,{size:"md"},i))},xg={Title:qn(Lo)(Jm||(Jm=Vt(["\n color: #1b2736;\n margin-bottom: 5px;\n "],["\n color: #1b2736;\n margin-bottom: 5px;\n "]))),Subtitle:qn(Io)(Qm||(Qm=Vt(["\n color: #777777;\n margin-bottom: 5px;\n "],["\n color: #777777;\n margin-bottom: 5px;\n "]))),Row:qn.div(tg||(tg=Vt(["\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 "])),hi),Left:qn.div(eg||(eg=Vt(["\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 "])),hi),Right:qn.div(ng||(ng=Vt(["\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 "])),hi)};var yg,vg,_g,wg,kg,Sg,Eg,Mg,Dg,Cg,Og,Tg,Ag,Pg,Rg=re(function(){if(sg)return rg;sg=1;var t=og?ig:(og=1,ig=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 rg=function(n,i){var o,a,r,s,l,c,d=!1;i||(i={}),o=i.debug||!1;try{if(r=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 a=e[i.format]||e.default;window.clipboardData.setData(a,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"),a=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(a,n)}}finally{l&&("function"==typeof l.removeRange?l.removeRange(s):l.removeAllRanges()),c&&document.body.removeChild(c),r()}return d}}()),Lg=qn.div(yg||(yg=Vt(["\n display: flex;\n flex-direction: column;\n gap: 4px;\n"],["\n display: flex;\n flex-direction: column;\n gap: 4px;\n"]))),Ig=qn.div(vg||(vg=Vt(["\n display: flex;\n align-items: center;\n gap: 4px;\n"],["\n display: flex;\n align-items: center;\n gap: 4px;\n"]))),Ng=qn.div(_g||(_g=Vt(["\n display: flex;\n align-items: center;\n"],["\n display: flex;\n align-items: center;\n"]))),Fg=qn.div(wg||(wg=Vt(["\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"}),zg=qn.div(kg||(kg=Vt(["\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"])),Li.color.surface.disabledSurface,Li.color.base.line),Bg=qn.div(Sg||(Sg=Vt(["\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"]))),Yg=qn.div(Eg||(Eg=Vt(["\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"])),Li.color.base.onNeutral,function(t){return t.isBankAddress?"auto":"48px"},function(t){return t.isBankAddress?"break-word":"break-all"}),Vg=qn(pt)(Mg||(Mg=Vt(["\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"])),Li.color.base.line,Li.color.surface.neutral,bi,Li.brand.primary.default),Hg=function(t){var e=t.value,n=t.allowCopy,i=void 0===n||n,o=t.valueToCopy,a=void 0===o?e:o,r=t.isBankAddress,s=void 0!==r&&r,l=t.showCopyIcon,c=void 0===l||l,d=t.icon,h=t.iconSize,u=t.labelText,p=t.labelTooltip,f=t.helperText,m=t.helperTextType,g=t.onButtonClick;return tt.createElement(Lg,null,tt.createElement(Ig,null,u&&tt.createElement(dn.Body,{size:"md",color:Li.color.base.onNeutral},u),p&&tt.createElement(Ng,null,p)),tt.createElement(zg,null,tt.createElement(Bg,null,d&&tt.createElement(Fg,{iconSize:h},d),tt.createElement(dn.Body,{size:"lg"},tt.createElement(Yg,{isBankAddress:s},e))),i&&tt.createElement(Vg,{onClick:function(){void 0!==g&&g(),Rg(a)}},c?tt.createElement(Yt,null):tt.createElement(dn.Label,{size:"md",color:Li.brand.primary.default},"Copy"))),f&&tt.createElement(dn.Body,{size:"sm",color:"error"===m?Li.color.status.critical:Li.color.base.onNeutralSecondary},f))},Wg=function(t){var e=t.title,n=t.subtitle,i=t.content,o=t.fallbackContent,a=t.backgroundColor,r=ji(),s=r.neutral,l=r.text,c=qn.div(Dg||(Dg=Vt(["\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 "])),fi,s.bluish),d=qn.div(Cg||(Cg=Vt(["\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 "])),fi,hi,function(t){return t.backgroundColor||s.background}),h=qn.div(Og||(Og=Vt(["\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 "])),fi,l.default,xi),u=qn.div(Tg||(Tg=Vt(["\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 "])),l.default,_i);return tt.createElement(d,{backgroundColor:a},tt.createElement(c,null,e),tt.createElement(h,null,n),tt.createElement(u,null,i),o)},Ug=function(t){var e=t.size,n=Ht(t,["size"]),i=ji().brand,o=on(Ag||(Ag=Vt(["\n & .ant-spin-dot-item {\n background-color: ",";\n }\n "],["\n & .ant-spin-dot-item {\n background-color: ",";\n }\n "])),i.primary.default);return tt.createElement(Ct,Wt({className:nn(o),size:e},n))},jg=function(t){var e=t.label,n=t.amount,i=t.type,o=void 0===i?"default":i,a=t.height,r=void 0===a?91:a,s=t.width,l=void 0===s?230:s,c=t.isInverted,d=void 0!==c&&c,h=t.icon,u=qn(Ao)(Pg||(Pg=Vt(["\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 l?"".concat(l,"px"):l,r,h&&"\n & > .ant-card-body {\n display: flex !important;\n flex-direction: row !important;\n align-items: center !important;\n }\n ",d&&"\n & > .ant-card-body > div {\n display: flex !important;\n flex-direction: column-reverse !important;\n }\n ");return tt.createElement(u,{type:o},h&&h,tt.createElement("div",null,tt.createElement(Io,{style:{marginBottom:d?"0":"5px"}},e),tt.createElement(Po,{style:{marginBottom:d?"5px":"0"}},n)))},Gg=function(t){var e=t.className,n=Ht(t,["className"]);return tt.createElement(Ot,Wt({},n,{className:nn(on("\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 "),e)}))};function $g(t){var e=t.index,n=t.primaryProps,i=t.size,o=t.skipProps,a=t.step,r=t.tooltipProps,s=t.backProps,l=a.title,c=a.content,d=a.data;return tt.createElement(ib,{role:r.role},tt.createElement(ob,null,tt.createElement(rb,null,tt.createElement(dn.Label,{size:"md"},l),tt.createElement(sb,{role:o.role,onClick:o.onClick},tt.createElement(Yu,{icon:"close",size:"m"}))),tt.createElement(dn.Body,{size:"md"},c)),tt.createElement(lb,null,tt.createElement(cb,null,Array.from({length:i},function(t,n){return 0===e&&!0===(null==d?void 0:d.skipZeroIndex)?tt.createElement(tt.Fragment,null):tt.createElement(db,{key:n,isActive:n===e})})),tt.createElement(ub,null,s&&tt.createElement(hb,{typographyType:"label",size:"md",role:null==s?void 0:s.role,isDisabled:0===e,onClick:s.onClick,isUnderlined:!1},"Back"),tt.createElement(fg,{typographyType:"label",size:"md",role:n.role,onClick:n.onClick,isUnderlined:!1},"Next"))))}Gg.Item=Ot.Item;var Xg,qg,Zg,Kg,Jg,Qg,tb,eb,nb,ib=qn.div(Xg||(Xg=Vt(["\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"])),Li.color.surface.secondaryNeutral),ob=qn.div(qg||(qg=Vt(["\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"])),Li.color.base.onNeutral),rb=qn.div(Zg||(Zg=Vt(["\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"]))),sb=qn(fg)(Kg||(Kg=Vt(["\n text-decoration: none !important;\n"],["\n text-decoration: none !important;\n"]))),lb=qn.div(Jg||(Jg=Vt(["\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"]))),cb=qn.div(Qg||(Qg=Vt(["\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"]))),db=qn.span(tb||(tb=Vt(["\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(Li.color.base.primary3):"".concat(Li.color.surface.disabledOnSurface)}),hb=qn(fg)(eb||(eb=Vt(["\n h5 {\n color: ",";\n }\n pointer-events: ",";\n"],["\n h5 {\n color: ",";\n }\n pointer-events: ",";\n"])),function(t){return t.isDisabled?"".concat(Li.color.surface.disabledOnSurface):"".concat(Li.color.base.link)},function(t){return t.isDisabled?"none":"auto"}),ub=qn.div(nb||(nb=Vt(["\n display: flex;\n gap: 8px;\n"],["\n display: flex;\n gap: 8px;\n"])));function pb(t){var e=t||{},n=e.arrowColor,i=void 0===n?Li.color.surface.secondaryNeutral:n,o=e.arrowLength,a=void 0===o?8:o,r=e.arrowSpread;return{floaterProps:{styles:{arrow:{length:a,spread:void 0===r?16:r,color:i}}}}}var fb,mb,gb,xb,yb=tt.createContext({setModal:function(){return null},resetModal:function(){return null}}),vb=document.body,_b=function(t){var e=t.modal,n=st(document.createElement("div"))[0];n.setAttribute("id","modal-root"),ct(function(){return vb.appendChild(n),function(){vb.removeChild(n)}},[n]);var i=tt.createElement(Cn,{styles:Mn(fb||(fb=Vt(["\n body {\n overflow: hidden;\n }\n "],["\n body {\n overflow: hidden;\n }\n "])))});return Ut.createPortal(tt.createElement(Eb,{open:!!e},!!e&&i,e),n)},wb=function(t){var e=t.children,n=st(),i=n[0],o=n[1],a=dt(function(){o(void 0)},[o]);return tt.createElement(yb.Provider,{value:{resetModal:a,setModal:o}},e,tt.createElement(_b,{modal:i}))},kb=function(){var t=tt.useContext(yb);if(void 0===t)throw new Error("useModal must be used within a UserProvider");return t},Sb=Tn(mb||(mb=Vt(["\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"]))),Eb=qn.div(xb||(xb=Vt(["\n position: fixed;\n width: 100vw;\n height: 100%;\n background: rgba(5, 21, 19, 0.7);\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(5, 21, 19, 0.7);\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&&Mn(gb||(gb=Vt(["\n display: block;\n animation: "," 0.3s ease;\n "],["\n display: block;\n animation: "," 0.3s ease;\n "])),Sb)});export{Ho as Accordion,no as ActionButton,Vo as ActionCard,ci as Alert,jt as AntdConfigProvider,jn as BACKGROUND_COLORS,Fn as BLUE_COLORS,qo as BadgeIcon,bg as Banner,eo as Button,Ao as Card,mu as Carousel,fu as Chart,lg as Checkbox,$g as Coachmark,mg as ContentBreakdown,Hg as CopyBox,hi as DESKTOP_BREAKPOINT,Vm as DatePicker,tm as DeprecatedModal,Xf as DialogItems,Yo as Divider,Eu as Dropdown,Sp as DynamicSelect,di as EXTRA_LARGE_DESKTOP_BREAKPOINT,cg as EmptyData,Wg as ErrorPage,oo as FALLBACK_FONT,Vi as FONT_SIZE,Yi as FONT_WEIGHT,Rp as Form,zn as GREEN_COLORS,Po as H1,Ro as H2,Lo as H3,zo as H4,Cm as Hidden,Wn as ICON_COLORS,Bp as Input,wf as InputWithButton,ui as LAPTOP_BREAKPOINT,ro as LINE_HEIGHT,fg as Link,Hn as MAIN_COLORS,io as MAIN_FONT,Yu as MaterialSymbols,Gf as Modal,wb as ModalProvider,Vn as NEUTRAL_COLORS,gg as Note,Io as P1,No as P1Bold,dm as Pagination,Bn as RED_COLORS,um as Radio,Em as RangePicker,xg as Section,wp as Select,Fo as SmallP,Ug as Spin,Nm as Steps,jg as SummaryCard,pi as TABLET_BREAKPOINT,Un as TEXT_COLORS,zm as Table,Bm as Tabs,$u as Tag,Ui as ThemeProvider,Gg as Timeline,Ym as Timer,Mu as Tooltip,dn as Typography,Yn as YELLOW_COLORS,pb as getCoachmarkJoyrideConfig,Li as straitsXTheme,kb as useModal,ji as useTheme,Ri as xfersTheme};
|
|
38
22
|
//# sourceMappingURL=index.js.map
|