r Zt=i(53076),Jt=i(39181);const Xt=Jt.d`
<svg width="11" height="12" viewBox="0 0 11 12" fill="none" xmlns="http://www.w3.org/2000/svg">
    <path d="M10.6396 5.9V6.6H5.73965V11.5H5.03965V6.6H0.139648V5.9H5.03965V1H5.73965V5.9H10.6396Z" fill-opacity="0.83"/>
</svg>
`,Yt=Jt.d`
<svg width="15" height="15" viewBox="0 0 15 15" fill="none" xmlns="http://www.w3.org/2000/svg">
    <path fill-rule="evenodd" clip-rule="evenodd" d="M7.5 9C7.5 9.6933 7.26483 10.3316 6.8699 10.8397L9.63862 13.6084C9.7851 13.7548 9.7851 13.9923 9.63862 14.1387C9.49215 14.2852 9.25477 14.2852 9.1083 14.1387L6.33956 11.37C5.83156 11.7649 5.19324 12 4.5 12C2.84314 12 1.5 10.6568 1.5 9C1.5 7.34314 2.84314 6 4.5 6C6.15686 6 7.5 7.34314 7.5 9ZM4.5 11.25C5.74264 11.25 6.75 10.2427 6.75 9C6.75 7.75732 5.74264 6.75 4.5 6.75C3.25736 6.75 2.25 7.75732 2.25 9C2.25 10.2427 3.25736 11.25 4.5 11.25Z" fill-opacity="0.83"/>
    <path fill-rule="evenodd" clip-rule="evenodd" d="M4.125 2.25C3.9179 2.25 3.75 2.41789 3.75 2.625V5.32501C3.48915 5.37796 3.23812 5.45799 3 5.56203V2.625C3 2.00368 3.50368 1.5 4.125 1.5H7.93935C8.2377 1.5 8.52383 1.61853 8.7348 1.82951L11.6705 4.76516C11.8815 4.97614 12 5.26229 12 5.56066V12.375C12 12.9963 11.4963 13.5 10.875 13.5H10.4349C10.3808 13.3459 10.2922 13.2013 10.169 13.078L9.8409 12.75H10.875C11.0821 12.75 11.25 12.5821 11.25 12.375V6H8.625C8.0037 6 7.5 5.49632 7.5 4.875V2.25H4.125ZM8.25 2.40533V4.875C8.25 5.0821 8.41792 5.25 8.625 5.25H11.0947L8.25 2.40533Z" fill-opacity="0.83"/>
</svg>
`,Kt=Jt.d`
<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
    <path d="M0.408617 0.146409C0.231148 0.323878 0.215019 0.601582 0.360216 0.797273L0.408617 0.853339L3.09766 3.54238C1.81665 4.44181 0.859238 5.78516 0.461411 7.37443C0.394374 7.64223 0.557134 7.9137 0.82494 7.98075C1.09275 8.04773 1.3642 7.88504 1.43124 7.61717C1.78413 6.20745 2.65569 5.02506 3.81743 4.26195L5.02355 5.46817C4.55199 5.94905 4.26121 6.60789 4.26121 7.33457C4.26121 8.80701 5.45482 10.0006 6.92721 10.0006C7.65396 10.0006 8.31273 9.70978 8.79368 9.23823L12.7389 13.1836C12.9341 13.3788 13.2506 13.3788 13.4458 13.1836C13.6233 13.0062 13.6394 12.7284 13.4942 12.5327L13.4458 12.4767L9.37113 8.40158L9.37193 8.40057L8.57207 7.60217L6.65928 5.68978L6.66061 5.68925L4.74027 3.77094L4.74109 3.76973L3.98576 3.01624L1.11555 0.146409C0.920336 -0.0488029 0.603829 -0.0488029 0.408617 0.146409ZM5.73024 6.17546L8.08639 8.53161C7.78646 8.82207 7.3777 9.00083 6.92721 9.00083C6.00697 9.00083 5.26096 8.25481 5.26096 7.33457C5.26096 6.88409 5.43974 6.47532 5.73024 6.17546ZM6.92721 2.33275C6.26051 2.33275 5.61361 2.43144 5.00175 2.61601L5.82622 3.43994C6.18333 3.36937 6.55157 3.3325 6.92721 3.3325C9.54196 3.3325 11.7993 5.1189 12.4239 7.62024C12.4908 7.88804 12.7622 8.05093 13.03 7.98408C13.2979 7.91716 13.4608 7.64583 13.3939 7.37796C12.6587 4.43404 10.0034 2.33275 6.92721 2.33275ZM7.05698 4.67169L9.59055 7.20487C9.5227 5.83395 8.42497 4.73725 7.05698 4.67169Z" fill-opacity="0.83"/>
</svg>
`,te=Jt.d`
    <svg width="17" height="17" viewBox="0 0 17 17" xmlns="http://www.w3.org/2000/svg">
        <path d="M0.0242728 5.88266C0.393563 4.74053 1.00191 3.69213 1.80461 2.80364C1.94035 2.65339 2.15331 2.59984 2.34397 2.66802L4.26225 3.35392C4.78233 3.53977 5.35459 3.26883 5.54045 2.74875C5.55872 2.69762 5.5728 2.64507 5.58253 2.59173L5.94799 0.585725C5.98432 0.386273 6.1375 0.228505 6.3358 0.186297C6.91599 0.0628015 7.51086 0 8.11354 0C8.71584 0 9.31037 0.0627251 9.89022 0.186072C10.0885 0.228241 10.2416 0.38591 10.2781 0.585286L10.6445 2.59165C10.7436 3.13497 11.2644 3.4951 11.8077 3.39601C11.8611 3.38627 11.9137 3.37219 11.9647 3.35395L13.8831 2.66802C14.0738 2.59984 14.2867 2.65339 14.4225 2.80364C15.2252 3.69213 15.8335 4.74053 16.2028 5.88266C16.2651 6.07534 16.205 6.28658 16.0507 6.41764L14.4958 7.73773C14.0748 8.0952 14.0233 8.72627 14.3808 9.14726C14.416 9.18865 14.4544 9.22712 14.4958 9.26225L16.0507 10.5824C16.205 10.7134 16.2651 10.9247 16.2028 11.1173C15.8335 12.2595 15.2252 13.3079 14.4225 14.1964C14.2867 14.3466 14.0738 14.4002 13.8831 14.332L11.9648 13.6461C11.4447 13.4602 10.8725 13.7312 10.6866 14.2512C10.6684 14.3024 10.6543 14.3549 10.6445 14.4085L10.2781 16.4147C10.2416 16.6141 10.0885 16.7718 9.89022 16.8139C9.31037 16.9373 8.71584 17 8.11354 17C7.51086 17 6.91599 16.9372 6.3358 16.8137C6.1375 16.7715 5.98432 16.6137 5.94799 16.4143L5.58254 14.4084C5.48346 13.865 4.96268 13.5049 4.41936 13.604C4.36593 13.6137 4.31339 13.6278 4.26234 13.6461L2.34397 14.332C2.15331 14.4002 1.94035 14.3466 1.80461 14.1964C1.00191 13.3079 0.393563 12.2595 0.0242728 11.1173C-0.038028 10.9247 0.0220447 10.7134 0.176415 10.5824L1.73126 9.26227C2.15225 8.9048 2.20374 8.27373 1.84627 7.85274C1.81112 7.81135 1.77265 7.77288 1.73128 7.73775L0.176415 6.41764C0.0220447 6.28658 -0.038028 6.07534 0.0242728 5.88266ZM1.08482 5.87709L2.37852 6.97546C2.46131 7.04576 2.53824 7.12269 2.60854 7.20548C3.32348 8.04746 3.2205 9.3096 2.37849 10.0246L1.08482 11.1229C1.37687 11.9051 1.79832 12.6322 2.32976 13.2751L3.92574 12.7044C4.02802 12.6679 4.1331 12.6397 4.23995 12.6202C5.3266 12.422 6.36815 13.1423 6.56633 14.229L6.8703 15.8975C7.27817 15.9655 7.69353 16 8.11354 16C8.53327 16 8.94834 15.9656 9.35595 15.8976L9.66076 14.2289C9.68025 14.1221 9.7084 14.017 9.74495 13.9147C10.1167 12.8746 11.2612 12.3327 12.3014 12.7044L13.8973 13.2751C14.4288 12.6322 14.8502 11.9051 15.1423 11.1229L13.8486 10.0245C13.7658 9.95424 13.6888 9.87731 13.6185 9.79452C12.9036 8.95254 13.0066 7.6904 13.8486 6.97544L15.1423 5.87709C14.8502 5.09486 14.4288 4.36783 13.8973 3.72494L12.3013 4.29559C12.1991 4.33214 12.094 4.3603 11.9871 4.37979C10.9005 4.57796 9.85893 3.8577 9.66078 2.77119L9.35595 1.10235C8.94834 1.03443 8.53327 1 8.11354 1C7.69353 1 7.27817 1.03448 6.8703 1.10249L6.56632 2.77105C6.54683 2.87791 6.51867 2.98299 6.48212 3.08527C6.11042 4.12542 4.96589 4.6673 3.92565 4.29556L2.32976 3.72494C1.79832 4.36783 1.37687 5.09486 1.08482 5.87709ZM5.61354 8.5C5.61354 7.11929 6.73283 6 8.11354 6C9.49425 6 10.6135 7.11929 10.6135 8.5C10.6135 9.88071 9.49425 11 8.11354 11C6.73283 11 5.61354 9.88071 5.61354 8.5ZM6.61354 8.5C6.61354 9.32843 7.28511 10 8.11354 10C8.94197 10 9.61354 9.32843 9.61354 8.5C9.61354 7.67157 8.94197 7 8.11354 7C7.28511 7 6.61354 7.67157 6.61354 8.5Z" fill-opacity="0.83"/>
    </svg>
`;var ee=i(57905),ie=i(68651),ne=i(27019),re=i(53046),oe=i(32804);const ae=Jt.d`
    <svg width="43" height="40" viewBox="0 0 43 40" fill="none" xmlns="http://www.w3.org/2000/svg">
        <path d="M36.85 16.7299L26.56 27.1099C25.96 27.7099 26.23 28.7599 27.07 28.9699L41.2 32.7199C42.04 32.9299 42.79 32.1799 42.58 31.3399L38.74 17.2399C38.47 16.3999 37.45 16.0999 36.85 16.7299Z" fill="url(#paint0_linear_2648_189070)"/>
        <path d="M6.90998 4.97011L0.789984 18.2601C0.429984 19.0401 1.05998 19.9101 1.89998 19.8501L16.45 18.5001C17.32 18.4101 17.77 17.4501 17.26 16.7301L8.82998 4.79011C8.31998 4.07011 7.26998 4.19011 6.90998 4.97011Z" fill="url(#paint1_linear_2648_189070)"/>
        <path d="M18.55 6.82992L0.879971 33.0199C-0.170029 34.5499 0.849972 36.6499 2.70997 36.7999L34.24 39.0199C36.1 39.1399 37.39 37.2199 36.58 35.5399L22.72 7.12992C21.91 5.44992 19.6 5.29992 18.55 6.82992Z" fill="#FFD590"/>
        <path d="M19.15 28.1299C18.49 28.0699 17.98 27.4999 18.04 26.8399L18.91 14.5699C18.97 13.9099 19.54 13.3999 20.2 13.4599C20.86 13.5199 21.37 14.0899 21.31 14.7499L20.44 27.0199C20.38 27.6799 19.81 28.1599 19.15 28.1299Z" fill="white"/>
        <path d="M18.97 32.3299C19.7156 32.3299 20.32 31.7255 20.32 30.9799C20.32 30.2343 19.7156 29.6299 18.97 29.6299C18.2244 29.6299 17.62 30.2343 17.62 30.9799C17.62 31.7255 18.2244 32.3299 18.97 32.3299Z" fill="white"/>
        <path d="M5.37999 13.3101C4.74999 13.4901 4.08999 13.1301 3.90999 12.4701L1.44999 3.80011C1.26999 3.17011 1.62999 2.51011 2.28999 2.33011C2.91999 2.15011 3.57999 2.51011 3.75999 3.17011L6.21999 11.8401C6.36999 12.4701 6.00999 13.1301 5.37999 13.3101Z" fill="#28C2D1"/>
        <path d="M6.16 17.4202C6.90558 17.4202 7.51 16.8158 7.51 16.0702C7.51 15.3246 6.90558 14.7202 6.16 14.7202C5.41441 14.7202 4.81 15.3246 4.81 16.0702C4.81 16.8158 5.41441 17.4202 6.16 17.4202Z" fill="#28C2D1"/>
        <path d="M38.23 23.7801C37.6 23.6001 37.24 22.9101 37.42 22.2801L40 13.6701C40.18 13.0401 40.87 12.6801 41.5 12.8601C42.13 13.0401 42.49 13.7301 42.31 14.3601L39.7 23.0001C39.52 23.6301 38.86 23.9901 38.23 23.7801Z" fill="#3E8EED"/>
        <path d="M37.39 27.8899C38.1356 27.8899 38.74 27.2855 38.74 26.5399C38.74 25.7944 38.1356 25.1899 37.39 25.1899C36.6444 25.1899 36.04 25.7944 36.04 26.5399C36.04 27.2855 36.6444 27.8899 37.39 27.8899Z" fill="#3E8EED"/>
        <path d="M5.37999 13.3101C4.74999 13.4901 4.08999 13.1301 3.90999 12.4701L1.44999 3.80011C1.26999 3.17011 1.62999 2.51011 2.28999 2.33011C2.91999 2.15011 3.57999 2.51011 3.75999 3.17011L6.21999 11.8401C6.36999 12.4701 6.00999 13.1301 5.37999 13.3101Z" fill="#28C2D1"/>
        <path d="M6.16 17.4202C6.90558 17.4202 7.51 16.8158 7.51 16.0702C7.51 15.3246 6.90558 14.7202 6.16 14.7202C5.41441 14.7202 4.81 15.3246 4.81 16.0702C4.81 16.8158 5.41441 17.4202 6.16 17.4202Z" fill="#28C2D1"/>
        <path d="M23.6199 3.62002C23.4399 3.92002 23.4999 4.28002 23.7399 4.52002C23.7699 4.55002 23.8299 4.61002 23.8899 4.61002C24.2499 4.82002 24.6999 4.70002 24.8799 4.37002L25.8099 2.81002C25.8999 2.63002 25.9299 2.45002 25.8999 2.24002C25.8699 2.09002 25.7799 1.94002 25.6599 1.85002C25.6299 1.82002 25.5999 1.82002 25.5699 1.79002C25.2099 1.58002 24.7599 1.70002 24.5799 2.03002L23.6199 3.62002Z" fill="#E1DFDD"/>
        <path d="M26.4699 6.94997C26.4999 7.00997 26.5599 7.09997 26.6199 7.15997C26.8599 7.36997 27.1899 7.42997 27.4599 7.27997L29.02 6.49997C29.2 6.40997 29.32 6.25997 29.38 6.07997C29.44 5.89997 29.44 5.68997 29.35 5.50997C29.29 5.41997 29.23 5.32997 29.14 5.26997C29.08 5.20997 28.99 5.17997 28.93 5.14997C28.75 5.08997 28.5399 5.08997 28.3599 5.17997L26.7999 5.95997C26.6199 6.04997 26.4999 6.19997 26.4399 6.37997C26.3799 6.58997 26.3799 6.76997 26.4699 6.94997Z" fill="#E1DFDD"/>
        <path d="M19.9599 2.96003C19.9899 3.11003 20.0499 3.26003 20.1699 3.38003C20.3199 3.53003 20.5599 3.62003 20.7699 3.59003C21.1599 3.53003 21.4599 3.17003 21.3999 2.75003L21.1299 0.830028C21.0999 0.650028 21.0099 0.470028 20.8599 0.350028C20.7099 0.230028 20.4999 0.170028 20.2899 0.200028C19.8999 0.260028 19.5999 0.620028 19.6599 1.04003L19.9599 2.96003Z" fill="#E1DFDD"/>
        <defs>
        <linearGradient id="paint0_linear_2648_189070" x1="25.6335" y1="27.4622" x2="36.7598" y2="25.1467" gradientUnits="userSpaceOnUse">
        <stop offset="0.000984252" stop-color="#72ACF1"/>
        <stop offset="1" stop-color="#A7CBF6"/>
        </linearGradient>
        <linearGradient id="paint1_linear_2648_189070" x1="16.2682" y1="18.896" x2="7.94881" y2="13.9166" gradientUnits="userSpaceOnUse">
        <stop offset="0.000984252" stop-color="#7BDDEF"/>
        <stop offset="1" stop-color="#C3F2F4"/>
        </linearGradient>
        </defs>
    </svg>

`;const se=re.i`
    .widget-unavailable-section {
        display: flex;
        padding: 0px 46px;
        padding-top: 25px;
        font-size: ${oe.cSu};
    }

    .widget-unavailable-content {
        padding-inline-start: 16px;
    }
`;var le=i(16339),ce=i(51223),de=i(79070),ue=i(75361),he=i(22169),ge=i(16590),pe=i(70590),fe=i(10141),me=i(59538),ve=i(77758),ye=i(19289),be=i(38156),we=i(970);const xe="finance",Ce="money",Te="MoneyCard",$e="MoneyCryptoCard",ke="MoneyPreWlCard",Ie="MoneyMarketBriefCard",Se="money_header",Le="money_landing_page",Me="see_more",_e="see_watchlist",De="money_stock",Fe="recommend_money_stock",Ae="quote_add_to_watchlist",Oe="quote_add_confirmation",Pe="news_landing_page",qe="lists_landing_page",Ne="see_watchlist_promo",He="see_watchlist_summary",ze="see_crypto_learn",Qe="MoneyAddWatchlistCard",Ee="go_back_view",je="add_to_watchlist",We="money_auto_suggestion",Re="moneycard_customization",Be="moneycard_customization_add_watchlist",Ge="moneycard_customization_data_provider",Ue="moneycard_customization_learn_sugg",Ve="moneycard_customization_hide",Ze="moneycard_customization_more",Je="menu_dismiss_open_click",Xe="menu_dismiss_close_click",Ye="menu_dismiss_invest_click",Ke="menu_dismiss_market_click",ti="menu_dismiss_crypto_click",ei="menu_dismiss_hide_click",ii="menu_dismiss_calcel_click",ni="money_carousel_previous",ri="money_carousel_next",oi="quote_overlay",ai="close_quote_overlay",si="see_details_overlay",li="moneycard_customization",ci="Add symbol",di="Data providers and disclaimers",ui="Hide this card",hi="More settings",gi="Learn about suggested for you",pi="Cancel",fi="See watchlist",mi="Search stock",vi="Dismiss",yi="Cancel";var bi,wi=i(44979),xi=i(63070),Ci=i(38247),Ti=i(69298),$i=i(56448),ki=i(7511),Ii=i(1393),Si=i(12306),Li=i(42355),Mi=i(78125),_i=i(87697);!function(t){t.Default="default",t.Medium="medium",t.Max="max"}(bi||(bi={}));var Di=i(38349),Fi=i(76868),Ai=i(42420),Oi=i(11708);function Pi(t,e,i){if(!t.enableGradientStyles||i)return"";switch(t.gradientBrightLevel){case bi.Medium:return`${e}-megrad`;case bi.Max:return`${e}-magrad`;default:return`${e}-gradient`}}function qi(){return et.jG&&("windowsNewsPlus"===et.jG.AppType||"winWidgets"===et.jG.AppType)}function Ni(){return et.jG&&"windows"===et.jG.AppType}function Hi(t,e,i){let n=`${e.valueOf()}TitleText`;return i&&nn(i)&&e==g.Watchlist?"cryptoWatchlistTitleText":(t.enableTodayMarketTitle&&e==g.Market&&(n="marketTodayTitleText"),t.enablemyWatchListTitle&&e==g.Watchlist&&(n="myWatchListTitleText"),t.enableyourWatchListTitle&&e==g.Watchlist&&(n="yourWatchListTitleText"),Xi()?function(t,e){switch(e){case g.ArticleMentioned:return"mentionedTitleText";case g.Market:return"articleMarketTitleText";case g.Crypto:return"articleCryptoTitleText";case g.ArticleRelated:return"suggestQuotesTitleText";default:return t}}(n,e):(e===g.Spotlight&&(n="watchlistTitleText"),n))}function zi(t){return`${t.valueOf()}TitleText`}function Qi(t){return`${t.valueOf()}TitleText`}function Ei(t){return`${t.valueOf()}TitleText`}function ji(t,e){let i=`${e.valueOf()}FooterText`;return t.enableTodayMarketTitle&&e===g.Market&&(i="marketTodayFooterText"),Xi()?"articlerecommendFooterText":(e===g.Spotlight&&(i="watchlistFooterText"),Wi(e)&&(i="seeMore"),function(t){return[g.nft].includes(t)}(e)&&(i="trendingNFT"),i)}function Wi(t){return[g.cryptogainers,g.cryptolosers,g.popularcryptos,g.trendingcryptos,g.cryptoLearn].includes(t)}function Ri(t){return v.indexOf(t)>=0}function Bi(t){return y.indexOf(t)>=0}function Gi(t){return t===g.prepopulatedWL}function Ui(t){return t===g.wlsummary}function Vi(t){return t===g.cryptoLearn}function Zi(t){return t===g.nft}function Ji(t,e,i){const n=(0,J.$J)(et.jG.CurrentMarket);let r=`https://${et.jG.NavTargetHostName}/${et.jG.CurrentMarket}/${n}`;return t&&(r+=`?src=${i}&id=${e}`),lt(r)}function Xi(){return"views"===et.jG.AppType}function Yi(t,e){return t===g.Watchlist&&gt(e)?g.Suggested:t}function Ki(t,e,i,n,r){return t?It(t,n)?`${e} (${i})\r\n${null==r?void 0:r.moreInfoTooltipText}`:`${e} (${i})\r\n${null==r?void 0:r.watchlistTooltipText}`:null}function tn(){return"edgeChromium"===et.jG.AppType}function en(t){return(0,f.mG)(this,void 0,void 0,(function*(){if(tn())try{t&&(0,Di.yV)(Fi.y.MoneyChange),Ai.R&&Ai.R.financeGraphAction&&Ai.U?yield Ai.U.purgeCacheAsync(Ai.R.financeGraphAction):(0,V.H)(zt.LPQ,"Not able to update cache, required pacakges are not available")}catch(t){(0,V.H)(zt.A5g,`Update cache failed: ${t?t.message:""}`)}}))}function nn(t){return t===b.Crypto}function rn(t){return t===b.MarketBrief}function on(t){return Xi()&&(null==t?void 0:t.enableClickThroughOverlay)}function an(t,e){return e&&on(t)}function sn(t,e){try{if(!t)return!0;if(!e)return!1;if(t.dataTimestamp>=e.dataTimestamp)return!1;if(!dn(t.fullWatchlistQuoteIds,e.fullWatchlistQuoteIds))return!0;if(!function(t,e){if(!t&&!e)return!0;if(!t||!e)return!1;const i=Object.keys(t),n=Object.keys(e);if(!dn(i,n))return!1;let r=!0;for(const n of i){if(!e[n]){r=!1;break}if(!ln(t[n],e[n])){r=!1;break}}return r}(t.tabListDetails,e.tabListDetails))return!0;const i=t.quoteNotificationDetails?Object.keys(t.quoteNotificationDetails):[];if(!dn(i,e.quoteNotificationDetails?Object.keys(e.quoteNotificationDetails):[]))return!0}catch(t){return(0,V.H)(zt.H33,`Exception while updating finance greeting quote list: ${t?t.message:""}`),!0}return!1}function ln(t,e){return dn(t.quoteIds,e.quoteIds)&&function(t,e){if(!t&&!e)return!0;if(!t||!e)return!1;if(t.length!==e.length)return!1;const i=t.reduce(((t,e)=>(t[ft(e)]=e,t)),{})||{};let n=!0;for(const t of e){const e=i[ft(t)];if(!e||!cn(e,t)){n=!1;break}}return n}(t.quoteItems,e.quoteItems)}function cn(t,e){return t&&e&&t.priceNumber===e.priceNumber}function dn(t,e){return!t&&!e||!(!t||!e)&&(t.length===e.length&&t.every((t=>e.includes(t))))}var un=i(98648),hn=i(40082);const gn=re.i`
    :host {
        --starndard-green: #0B7B24;
        --standard-red: #BF3401;
        --standard-blue: #0078D4;
        --standard-grey: rgba(0, 0, 0, 0.54);
    }
`,pn=re.i`
    :host {
        --starndard-green: #02E176 !important;
        --standard-red: #FFAB8C !important;
        --standard-blue: #63ADE5 !important;
        --standard-grey: rgba(255, 255, 255, 0.54) !important;
    }
`,fn=re.i`
    .quote-red, .quote-green, .quote-grey {
        background-color: transparent;
    }

    .winDsh .quote-green, .quote-green {
        color: var(--starndard-green);
        fill: var(--starndard-green);
    }

    .winDsh .quote-red, .quote-red {
        color: var(--standard-red);
        fill: var(--standard-red);
    }

    .winDsh .quote-grey, .quote-grey {
        color: var(--standard-grey);
        fill: var(--standard-grey);
    }

    .quote-blue {
        color: var(--standard-blue);
        fill: var(--standard-blue);
    }

`;var mn=i(95263),vn=i(15933),yn=i(65390);const{create:bn}=un.L,wn=bn({name:"neutral-layer-5-recipe",cssCustomPropertyName:null}).withDefault({evaluate:t=>{const e=oe.YL4.getValueFor(t),i=oe.yvm.getValueFor(t),n=oe.spb.getValueFor(t),r=i.closestIndexOf(n);return i.get(r+e)}}),xn=bn("neutral-layer-5").withDefault((t=>wn.getValueFor(t).evaluate(t))),Cn=bn("gradient-medium-fill").withDefault((t=>(0,yn.Y)(0,1,oe.$Bw.getValueFor(t),xn.getValueFor(t)))),Tn=re.i`
    ${pn}
    .wdrk {
        --footer-link-background: rgba(255, 255, 255, 0.05);
        --footer-link-hover-background: rgba(255, 255, 255, 0.1);
        --quote-view-background: rgba(255, 255, 255, 0.05);
        --quote-view-hover-background: rgba(255, 255, 255, 0.1);
    }

    .wdrk .confirm-pop-megrad {
        color: ${oe.CHi};
    }
`,$n=re.i`
    ${gn}
`,kn=(0,hn.Uu)(Tn),In=re.i`
    ${gn}
    :host {
        --menu-z-index: 700;
        --footer-link-background: rgba(255, 255, 255, 0.5);
        --footer-link-hover-background: rgba(255, 255, 255, 0.75);
        --quote-view-background: rgba(255, 255, 255, 0.5);
        --quote-view-hover-background: rgba(255, 255, 255, 0.75);
    }

    /* add the padding to fix the title alignment for dynamic feed prong2 */
    .money-sdc.windf.grdt {
        --content-padding: 0 0 16px;
        --title-padding: 12px 16px 4px;
    }

    .header-icon-container > svg {
        width: 16px;
        height: 16px;
    }

    .card-tabs {
        height: 100%;
    }

    .money-card {
        display: flex;
        position: relative;
        box-sizing: border-box;
        contain: none;
        width: 300px;
        height: var(--card-height, 100%);
        outline: none;
        border-radius: 6px;
    }

    .screen-reader-only {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        border: 0;
    }

    .money-fullcardcover {
        z-index: 0;
        position: absolute;
        inset: 0;
    }

    .money-card.noHdr {
        padding-top: 48px;
    }

    .money-card.winDsh {
        background: ${oe.IfY};
    }

    .money-sdc.windf {
        border-radius: 8px;
    }
    
    .money-sdc.windf.grdt.st-grdt {
        background: ${"radial-gradient(182.77% 177.99% at 100% 100%, rgba(0, 69, 172, 0.2) 0%, rgba(0, 69, 172, 0) 100%)"};
    }

    .money-sdc.windf.grdt.st-grdt.dark {
        background: ${"linear-gradient(302.98deg, #2E291F 19.1%, rgba(46, 41, 31, 0) 71.1%)"};
    }

    .money-sdc[pinned]::part(title),
    .money-sdc::part(title-link),
    .money-sdc .content {
        z-index: 1;
    }

    /* default gradient background */
    .money-card-gradient {
        background: ${mn.Sf};
    }

    /* medium dark gradient background */
    .money-card.winDsh.money-card-megrad,
    .money-card-megrad,
    .money-sdc.windf.grdt:not(.st-grdt) {
        background: ${Cn};
    }

    /* max dark gradient background */
    .money-card-magrad {
        background: ${mn.w_};
    }
    
    .money-page {
        min-height: 100%;
        display: grid;
        grid-template-rows: auto 1fr auto;
    }

    .card-options {
        position: absolute;
        top: 8px;
        z-index: 9;
    }

    msn-actions-menu::part(menu) {
        margin: 8px 2px;
    }

    money-card-page-carousel {
        outline: none;
    }

    .dsms-btn {
        position: absolute;
        top: 12px;
        min-width: 24px;
        width: 24px;
        height: 24px;
        z-index: 2;
        inset-inline-end: 10px;
        border-radius: 24px;
    }

    .dsms-menu {
        position: absolute;
        padding: 24px;
        height: 100%;
        width: 100%;
        z-index: 1;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .dsms-menu .btns {
        display: grid;
        grid-template-columns: auto;
        grid-gap: 12px;
        width: 100%;
    }

    .dsms-menu .btn {
        background-color: var(--footer-link-background);
        width: 100%;
        height: 36px;
        border-radius: 20px;
    }

    .dsms-menu .btn:hover {
        background-color: var(--footer-link-hover-background);
    }

    .dsms-menu .title {
        font-size: var(--type-ramp-plus-1-font-size, 16px);
        line-height: var(--type-ramp-plus-1-line-height, 22px);
        font-weight: 600;
        margin-bottom: 28px;
    }

    .dsms-menu .cntrs {
        margin-top: auto;
        display: grid;
        box-sizing: border-box;
        grid-template-columns: 1fr 1fr;
        grid-gap: 8px;
        width: 100%;
    }

    .dsms-menu .cntr {
        border-radius: 6px;
        height: 36px;
    }

    .dsms-menu .hide {
        background: ${oe.P0N};
        color:${oe.y9A};
    }

    .dsms-menu .hide:hover {
        background: ${oe.Dgm};
    }

    .dsms-menu .cancel {
        background-color: var(--footer-link-background);
    }

    .dsms-menu .cancel:hover {
        background-color: var(--footer-link-hover-background);
    }

    .more-options {
        position: absolute;
        top: 12px;
        --control-corner-radius: 16;
        min-width: 24px;
        width: 24px;
        height: 24px;
        z-index: 2;
        inset-inline-end: 10px;
    }
    .more-options.dynamic-p2 {
        width: 30px;
        height: 30px;
    }
    .card-skl {
        display: grid;
        grid-template-rows: auto 1fr auto;
        margin: 16px;
    }
    .quote-list-skl {
        overflow: hidden;
        display: grid;
        grid-row-gap: 20px;
        margin-top: 13px;
    }
    .footer-skl {
        margin: 0 auto 8px;
        width: 92px;
        height: 12px;
    }
    .quote-view-skl {
        align-items: center;
        display: grid;
        height: 25px;
        grid-template-columns: 134px 55px 61px 18px;
    }
    .quote-title-content-skl {
        width: 92px;
        height: 8px;
    }
    .quote-sec-title-content-skl {
        width: 67px;
        height: 8px;
    }
    .quote-title-container-skl {
        display: grid;
        grid-template-rows: 8px 8px;
        grid-row-gap: 9px;
    }
    .price-skl,
    .change-value-skl {
        width: 48px;
        height: 16px;
    }
    .add-button-skl {
        width: 16px;
        height: 16px;
    }
    .title-container-skl {
        display: grid;
        grid-template-columns: auto 1fr;
        grid-gap: 12px;
        color: ${oe.Q5n};
        display: flex;
        font-size: ${oe.sNp};
        justify-content: flex-start;
        line-height: ${oe.vgC};
        outline: none;
        cursor: pointer;
        text-decoration: none;
        letter-spacing: 0.7px;
    }
    .confirm-pop {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: absolute;
        bottom: 12px;
        left: 16px;
        width: 236px;
        height: 16px;
        background: ${oe.Dgm};
        color: ${oe.jql};
        border-radius: 6px;
        padding: 16px;
        cursor: pointer;
        text-decoration: none;
        animation-name: confirmAnimation;
        animation-duration: 4s;
        animation-fill-mode: ease-in-out;
        z-index: 4;
        border: 1px solid transparent;
    }
    .confirm-pop:hover,
    .confirm-pop:focus,
    .confirm-pop:active {
        text-decoration: none;
        color: ${oe.jql};
    }
    @keyframes confirmAnimation {
        0% {opacity: 0;}
        25% {opacity: 1;}
        75% {opacity: 1;}
        100% {opacity: 0; display: "none";}
    }
    .confirm-pop span {
        flex: 1;
        font-size: 14px;
        line-height: 16px;
    }
    .confirm-pop > .quote-link {
        text-decoration: underline;
        text-align: right;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        word-break: break-word;
    }
`.withBehaviors(kn,(0,hn.vF)(re.i`
            .confirm-pop {
                color: ${vn.H.ButtonText};
            }
        `));var Sn=i(40340),Ln=i.n(Sn),Mn=i(81988),_n=i.n(Mn),Dn=i(26785),Fn=i.n(Dn);function An(t){return t}var On=1e-6;function Pn(t){return"translate("+t+",0)"}function qn(t){return"translate(0,"+t+")"}function Nn(t){return e=>+t(e)}function Hn(t,e){return e=Math.max(0,t.bandwidth()-2*e)/2,t.round()&&(e=Math.round(e)),i=>+t(i)+e}function zn(){return!this.__axis}function Qn(t,e){var i=[],n=null,r=null,o=6,a=6,s=3,l="undefined"!=typeof window&&window.devicePixelRatio>1?0:.5,c=1===t||4===t?-1:1,d=4===t||2===t?"x":"y",u=1===t||3===t?Pn:qn;function h(h){var g=null==n?e.ticks?e.ticks.apply(e,i):e.domain():n,p=null==r?e.tickFormat?e.tickFormat.apply(e,i):An:r,f=Math.max(o,0)+s,m=e.range(),v=+m[0]+l,y=+m[m.length-1]+l,b=(e.bandwidth?Hn:Nn)(e.copy(),l),w=h.selection?h.selection():h,x=w.selectAll(".domain").data([null]),C=w.selectAll(".tick").data(g,e).order(),T=C.exit(),$=C.enter().append("g").attr("class","tick"),k=C.select("line"),I=C.select("text");x=x.merge(x.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),C=C.merge($),k=k.merge($.append("line").attr("stroke","currentColor").attr(d+"2",c*o)),I=I.merge($.append("text").attr("fill","currentColor").attr(d,c*f).attr("dy",1===t?"0em":3===t?"0.71em":"0.32em")),h!==w&&(x=x.transition(h),C=C.transition(h),k=k.transition(h),I=I.transition(h),T=T.transition(h).attr("opacity",On).attr("transform",(function(t){return isFinite(t=b(t))?u(t+l):this.getAttribute("transform")})),$.attr("opacity",On).attr("transform",(function(t){var e=this.parentNode.__axis;return u((e&&isFinite(e=e(t))?e:b(t))+l)}))),T.remove(),x.attr("d",4===t||2===t?a?"M"+c*a+","+v+"H"+l+"V"+y+"H"+c*a:"M"+l+","+v+"V"+y:a?"M"+v+","+c*a+"V"+l+"H"+y+"V"+c*a:"M"+v+","+l+"H"+y),C.attr("opacity",1).attr("transform",(function(t){return u(b(t)+l)})),k.attr(d+"2",c*o),I.attr(d,c*f).text(p),w.filter(zn).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===t?"start":4===t?"end":"middle"),w.each((function(){this.__axis=b}))}return h.scale=function(t){return arguments.length?(e=t,h):e},h.ticks=function(){return i=Array.from(arguments),h},h.tickArguments=function(t){return arguments.length?(i=null==t?[]:Array.from(t),h):i.slice()},h.tickValues=function(t){return arguments.length?(n=null==t?null:Array.from(t),h):n&&n.slice()},h.tickFormat=function(t){return arguments.length?(r=t,h):r},h.tickSize=function(t){return arguments.length?(o=a=+t,h):o},h.tickSizeInner=function(t){return arguments.length?(o=+t,h):o},h.tickSizeOuter=function(t){return arguments.length?(a=+t,h):a},h.tickPadding=function(t){return arguments.length?(s=+t,h):s},h.offset=function(t){return arguments.length?(l=+t,h):l},h}function En(){}function jn(t){return null==t?En:function(){return this.querySelector(t)}}function Wn(t){return null==t?[]:Array.isArray(t)?t:Array.from(t)}function Rn(){return[]}function Bn(t){return null==t?Rn:function(){return this.querySelectorAll(t)}}function Gn(t){return function(){return this.matches(t)}}function Un(t){return function(e){return e.matches(t)}}var Vn=Array.prototype.find;function Zn(){return this.firstElementChild}var Jn=Array.prototype.filter;function Xn(){return Array.from(this.children)}function Yn(t){return new Array(t.length)}function Kn(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function tr(t){return function(){return t}}function er(t,e,i,n,r,o){for(var a,s=0,l=e.length,c=o.length;s<c;++s)(a=e[s])?(a.__data__=o[s],n[s]=a):i[s]=new Kn(t,o[s]);for(;s<l;++s)(a=e[s])&&(r[s]=a)}function ir(t,e,i,n,r,o,a){var s,l,c,d=new Map,u=e.length,h=o.length,g=new Array(u);for(s=0;s<u;++s)(l=e[s])&&(g[s]=c=a.call(l,l.__data__,s,e)+"",d.has(c)?r[s]=l:d.set(c,l));for(s=0;s<h;++s)c=a.call(t,o[s],s,o)+"",(l=d.get(c))?(n[s]=l,l.__data__=o[s],d.delete(c)):i[s]=new Kn(t,o[s]);for(s=0;s<u;++s)(l=e[s])&&d.get(g[s])===l&&(r[s]=l)}function nr(t){return t.__data__}function rr(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function or(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}Kn.prototype={constructor:Kn,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var ar="http://www.w3.org/1999/xhtml",sr={svg:"http://www.w3.org/2000/svg",xhtml:ar,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function lr(t){var e=t+="",i=e.indexOf(":");return i>=0&&"xmlns"!==(e=t.slice(0,i))&&(t=t.slice(i+1)),sr.hasOwnProperty(e)?{space:sr[e],local:t}:t}function cr(t){return function(){this.removeAttribute(t)}}function dr(t){return function(){this.removeAttributeNS(t.space,t.local)}}function ur(t,e){return function(){this.setAttribute(t,e)}}function hr(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function gr(t,e){return function(){var i=e.apply(this,arguments);null==i?this.removeAttribute(t):this.setAttribute(t,i)}}function pr(t,e){return function(){var i=e.apply(this,arguments);null==i?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,i)}}function fr(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function mr(t){return function(){this.style.removeProperty(t)}}function vr(t,e,i){return function(){this.style.setProperty(t,e,i)}}function yr(t,e,i){return function(){var n=e.apply(this,arguments);null==n?this.style.removeProperty(t):this.style.setProperty(t,n,i)}}function br(t,e){return t.style.getPropertyValue(e)||fr(t).getComputedStyle(t,null).getPropertyValue(e)}function wr(t){return function(){delete this[t]}}function xr(t,e){return function(){this[t]=e}}function Cr(t,e){return function(){var i=e.apply(this,arguments);null==i?delete this[t]:this[t]=i}}function Tr(t){return t.trim().split(/^|\s+/)}function $r(t){return t.classList||new kr(t)}function kr(t){this._node=t,this._names=Tr(t.getAttribute("class")||"")}function Ir(t,e){for(var i=$r(t),n=-1,r=e.length;++n<r;)i.add(e[n])}function Sr(t,e){for(var i=$r(t),n=-1,r=e.length;++n<r;)i.remove(e[n])}function Lr(t){return function(){Ir(this,t)}}function Mr(t){return function(){Sr(this,t)}}function _r(t,e){return function(){(e.apply(this,arguments)?Ir:Sr)(this,t)}}function Dr(){this.textContent=""}function Fr(t){return function(){this.textContent=t}}function Ar(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}function Or(){this.innerHTML=""}function Pr(t){return function(){this.innerHTML=t}}function qr(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}function Nr(){this.nextSibling&&this.parentNode.appendChild(this)}function Hr(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function zr(t){return function(){var e=this.ownerDocument,i=this.namespaceURI;return i===ar&&e.documentElement.namespaceURI===ar?e.createElement(t):e.createElementNS(i,t)}}function Qr(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Er(t){var e=lr(t);return(e.local?Qr:zr)(e)}function jr(){return null}function Wr(){var t=this.parentNode;t&&t.removeChild(this)}function Rr(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Br(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Gr(t){return t.trim().split(/^|\s+/).map((function(t){var e="",i=t.indexOf(".");return i>=0&&(e=t.slice(i+1),t=t.slice(0,i)),{type:t,name:e}}))}function Ur(t){return function(){var e=this.__on;if(e){for(var i,n=0,r=-1,o=e.length;n<o;++n)i=e[n],t.type&&i.type!==t.type||i.name!==t.name?e[++r]=i:this.removeEventListener(i.type,i.listener,i.options);++r?e.length=r:delete this.__on}}}function Vr(t,e,i){return function(){var n,r=this.__on,o=function(t){return function(e){t.call(this,e,this.__data__)}}(e);if(r)for(var a=0,s=r.length;a<s;++a)if((n=r[a]).type===t.type&&n.name===t.name)return this.removeEventListener(n.type,n.listener,n.options),this.addEventListener(n.type,n.listener=o,n.options=i),void(n.value=e);this.addEventListener(t.type,o,i),n={type:t.type,name:t.name,value:e,listener:o,options:i},r?r.push(n):this.__on=[n]}}function Zr(t,e,i){var n=fr(t),r=n.CustomEvent;"function"==typeof r?r=new r(e,i):(r=n.document.createEvent("Event"),i?(r.initEvent(e,i.bubbles,i.cancelable),r.detail=i.detail):r.initEvent(e,!1,!1)),t.dispatchEvent(r)}function Jr(t,e){return function(){return Zr(this,t,e)}}function Xr(t,e){return function(){return Zr(this,t,e.apply(this,arguments))}}kr.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var Yr=[null];function Kr(t,e){this._groups=t,this._parents=e}function to(){return new Kr([[document.documentElement]],Yr)}Kr.prototype=to.prototype={constructor:Kr,select:function(t){"function"!=typeof t&&(t=jn(t));for(var e=this._groups,i=e.length,n=new Array(i),r=0;r<i;++r)for(var o,a,s=e[r],l=s.length,c=n[r]=new Array(l),d=0;d<l;++d)(o=s[d])&&(a=t.call(o,o.__data__,d,s))&&("__data__"in o&&(a.__data__=o.__data__),c[d]=a);return new Kr(n,this._parents)},selectAll:function(t){t="function"==typeof t?function(t){return function(){return Wn(t.apply(this,arguments))}}(t):Bn(t);for(var e=this._groups,i=e.length,n=[],r=[],o=0;o<i;++o)for(var a,s=e[o],l=s.length,c=0;c<l;++c)(a=s[c])&&(n.push(t.call(a,a.__data__,c,s)),r.push(a));return new Kr(n,r)},selectChild:function(t){return this.select(null==t?Zn:function(t){return function(){return Vn.call(this.children,t)}}("function"==typeof t?t:Un(t)))},selectChildren:function(t){return this.selectAll(null==t?Xn:function(t){return function(){return Jn.call(this.children,t)}}("function"==typeof t?t:Un(t)))},filter:function(t){"function"!=typeof t&&(t=Gn(t));for(var e=this._groups,i=e.length,n=new Array(i),r=0;r<i;++r)for(var o,a=e[r],s=a.length,l=n[r]=[],c=0;c<s;++c)(o=a[c])&&t.call(o,o.__data__,c,a)&&l.push(o);return new Kr(n,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,nr);var i=e?ir:er,n=this._parents,r=this._groups;"function"!=typeof t&&(t=tr(t));for(var o=r.length,a=new Array(o),s=new Array(o),l=new Array(o),c=0;c<o;++c){var d=n[c],u=r[c],h=u.length,g=rr(t.call(d,d&&d.__data__,c,n)),p=g.length,f=s[c]=new Array(p),m=a[c]=new Array(p),v=l[c]=new Array(h);i(d,u,f,m,v,g,e);for(var y,b,w=0,x=0;w<p;++w)if(y=f[w]){for(w>=x&&(x=w+1);!(b=m[x])&&++x<p;);y._next=b||null}}return(a=new Kr(a,n))._enter=s,a._exit=l,a},enter:function(){return new Kr(this._enter||this._groups.map(Yn),this._parents)},exit:function(){return new Kr(this._exit||this._groups.map(Yn),this._parents)},join:function(t,e,i){var n=this.enter(),r=this,o=this.exit();return"function"==typeof t?(n=t(n))&&(n=n.selection()):n=n.append(t+""),null!=e&&(r=e(r))&&(r=r.selection()),null==i?o.remove():i(o),n&&r?n.merge(r).order():r},merge:function(t){for(var e=t.selection?t.selection():t,i=this._groups,n=e._groups,r=i.length,o=n.length,a=Math.min(r,o),s=new Array(r),l=0;l<a;++l)for(var c,d=i[l],u=n[l],h=d.length,g=s[l]=new Array(h),p=0;p<h;++p)(c=d[p]||u[p])&&(g[p]=c);for(;l<r;++l)s[l]=i[l];return new Kr(s,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,e=-1,i=t.length;++e<i;)for(var n,r=t[e],o=r.length-1,a=r[o];--o>=0;)(n=r[o])&&(a&&4^n.compareDocumentPosition(a)&&a.parentNode.insertBefore(n,a),a=n);return this},sort:function(t){function e(e,i){return e&&i?t(e.__data__,i.__data__):!e-!i}t||(t=or);for(var i=this._groups,n=i.length,r=new Array(n),o=0;o<n;++o){for(var a,s=i[o],l=s.length,c=r[o]=new Array(l),d=0;d<l;++d)(a=s[d])&&(c[d]=a);c.sort(e)}return new Kr(r,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var t=this._groups,e=0,i=t.length;e<i;++e)for(var n=t[e],r=0,o=n.length;r<o;++r){var a=n[r];if(a)return a}return null},size:function(){let t=0;for(const e of this)++t;return t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,i=0,n=e.length;i<n;++i)for(var r,o=e[i],a=0,s=o.length;a<s;++a)(r=o[a])&&t.call(r,r.__data__,a,o);return this},attr:function(t,e){var i=lr(t);if(arguments.length<2){var n=this.node();return i.local?n.getAttributeNS(i.space,i.local):n.getAttribute(i)}return this.each((null==e?i.local?dr:cr:"function"==typeof e?i.local?pr:gr:i.local?hr:ur)(i,e))},style:function(t,e,i){return arguments.length>1?this.each((null==e?mr:"function"==typeof e?yr:vr)(t,e,null==i?"":i)):br(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?wr:"function"==typeof e?Cr:xr)(t,e)):this.node()[t]},classed:function(t,e){var i=Tr(t+"");if(arguments.length<2){for(var n=$r(this.node()),r=-1,o=i.length;++r<o;)if(!n.contains(i[r]))return!1;return!0}return this.each(("function"==typeof e?_r:e?Lr:Mr)(i,e))},text:function(t){return arguments.length?this.each(null==t?Dr:("function"==typeof t?Ar:Fr)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?Or:("function"==typeof t?qr:Pr)(t)):this.node().innerHTML},raise:function(){return this.each(Nr)},lower:function(){return this.each(Hr)},append:function(t){var e="function"==typeof t?t:Er(t);return this.select((function(){return this.appendChild(e.apply(this,arguments))}))},insert:function(t,e){var i="function"==typeof t?t:Er(t),n=null==e?jr:"function"==typeof e?e:jn(e);return this.select((function(){return this.insertBefore(i.apply(this,arguments),n.apply(this,arguments)||null)}))},remove:function(){return this.each(Wr)},clone:function(t){return this.select(t?Br:Rr)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,i){var n,r,o=Gr(t+""),a=o.length;if(!(arguments.length<2)){for(s=e?Vr:Ur,n=0;n<a;++n)this.each(s(o[n],e,i));return this}var s=this.node().__on;if(s)for(var l,c=0,d=s.length;c<d;++c)for(n=0,l=s[c];n<a;++n)if((r=o[n]).type===l.type&&r.name===l.name)return l.value},dispatch:function(t,e){return this.each(("function"==typeof e?Xr:Jr)(t,e))},[Symbol.iterator]:function*(){for(var t=this._groups,e=0,i=t.length;e<i;++e)for(var n,r=t[e],o=0,a=r.length;o<a;++o)(n=r[o])&&(yield n)}};var eo=to,io={value:function(){}};function no(){for(var t,e=0,i=arguments.length,n={};e<i;++e){if(!(t=arguments[e]+"")||t in n||/[\s.]/.test(t))throw new Error("illegal type: "+t);n[t]=[]}return new ro(n)}function ro(t){this._=t}function oo(t,e){return t.trim().split(/^|\s+/).map((function(t){var i="",n=t.indexOf(".");if(n>=0&&(i=t.slice(n+1),t=t.slice(0,n)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:i}}))}function ao(t,e){for(var i,n=0,r=t.length;n<r;++n)if((i=t[n]).name===e)return i.value}function so(t,e,i){for(var n=0,r=t.length;n<r;++n)if(t[n].name===e){t[n]=io,t=t.slice(0,n).concat(t.slice(n+1));break}return null!=i&&t.push({name:e,value:i}),t}ro.prototype=no.prototype={constructor:ro,on:function(t,e){var i,n=this._,r=oo(t+"",n),o=-1,a=r.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++o<a;)if(i=(t=r[o]).type)n[i]=so(n[i],t.name,e);else if(null==e)for(i in n)n[i]=so(n[i],t.name,null);return this}for(;++o<a;)if((i=(t=r[o]).type)&&(i=ao(n[i],t.name)))return i},copy:function(){var t={},e=this._;for(var i in e)t[i]=e[i].slice();return new ro(t)},call:function(t,e){if((i=arguments.length-2)>0)for(var i,n,r=new Array(i),o=0;o<i;++o)r[o]=arguments[o+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(o=0,i=(n=this._[t]).length;o<i;++o)n[o].value.apply(e,r)},apply:function(t,e,i){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var n=this._[t],r=0,o=n.length;r<o;++r)n[r].value.apply(e,i)}};var lo,co,uo=no,ho=0,go=0,po=0,fo=0,mo=0,vo=0,yo="object"==typeof performance&&performance.now?performance:Date,bo="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function wo(){return mo||(bo(xo),mo=yo.now()+vo)}function xo(){mo=0}function Co(){this._call=this._time=this._next=null}function To(t,e,i){var n=new Co;return n.restart(t,e,i),n}function $o(){mo=(fo=yo.now())+vo,ho=go=0;try{!function(){wo(),++ho;for(var t,e=lo;e;)(t=mo-e._time)>=0&&e._call.call(null,t),e=e._next;--ho}()}finally{ho=0,function(){var t,e,i=lo,n=1/0;for(;i;)i._call?(n>i._time&&(n=i._time),t=i,i=i._next):(e=i._next,i._next=null,i=t?t._next=e:lo=e);co=t,Io(n)}(),mo=0}}function ko(){var t=yo.now(),e=t-fo;e>1e3&&(vo-=e,fo=t)}function Io(t){ho||(go&&(go=clearTimeout(go)),t-mo>24?(t<1/0&&(go=setTimeout($o,t-yo.now()-vo)),po&&(po=clearInterval(po))):(po||(fo=yo.now(),po=setInterval(ko,1e3)),ho=1,bo($o)))}function So(t,e,i){var n=new Co;return e=null==e?0:+e,n.restart((function(i){n.stop(),t(i+e)}),e,i),n}Co.prototype=To.prototype={constructor:Co,restart:function(t,e,i){if("function"!=typeof t)throw new TypeError("callback is not a function");i=(null==i?wo():+i)+(null==e?0:+e),this._next||co===this||(co?co._next=this:lo=this,co=this),this._call=t,this._time=i,Io()},stop:function(){this._call&&(this._call=null,this._time=1/0,Io())}};var Lo=uo("start","end","cancel","interrupt"),Mo=[];function _o(t,e,i,n,r,o){var a=t.__transition;if(a){if(i in a)return}else t.__transition={};!function(t,e,i){var n,r=t.__transition;function o(t){i.state=1,i.timer.restart(a,i.delay,i.time),i.delay<=t&&a(t-i.delay)}function a(o){var c,d,u,h;if(1!==i.state)return l();for(c in r)if((h=r[c]).name===i.name){if(3===h.state)return So(a);4===h.state?(h.state=6,h.timer.stop(),h.on.call("interrupt",t,t.__data__,h.index,h.group),delete r[c]):+c<e&&(h.state=6,h.timer.stop(),h.on.call("cancel",t,t.__data__,h.index,h.group),delete r[c])}if(So((function(){3===i.state&&(i.state=4,i.timer.restart(s,i.delay,i.time),s(o))})),i.state=2,i.on.call("start",t,t.__data__,i.index,i.group),2===i.state){for(i.state=3,n=new Array(u=i.tween.length),c=0,d=-1;c<u;++c)(h=i.tween[c].value.call(t,t.__data__,i.index,i.group))&&(n[++d]=h);n.length=d+1}}function s(e){for(var r=e<i.duration?i.ease.call(null,e/i.duration):(i.timer.restart(l),i.state=5,1),o=-1,a=n.length;++o<a;)n[o].call(t,r);5===i.state&&(i.on.call("end",t,t.__data__,i.index,i.group),l())}function l(){for(var n in i.state=6,i.timer.stop(),delete r[e],r)return;delete t.__transition}r[e]=i,i.timer=To(o,0,i.time)}(t,i,{name:e,index:n,group:r,on:Lo,tween:Mo,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:0})}function Do(t,e){var i=Ao(t,e);if(i.state>0)throw new Error("too late; already scheduled");return i}function Fo(t,e){var i=Ao(t,e);if(i.state>3)throw new Error("too late; already running");return i}function Ao(t,e){var i=t.__transition;if(!i||!(i=i[e]))throw new Error("transition not found");return i}function Oo(t,e){return t=+t,e=+e,function(i){return t*(1-i)+e*i}}var Po,qo,No,Ho,zo=180/Math.PI,Qo={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Eo(t,e,i,n,r,o){var a,s,l;return(a=Math.sqrt(t*t+e*e))&&(t/=a,e/=a),(l=t*i+e*n)&&(i-=t*l,n-=e*l),(s=Math.sqrt(i*i+n*n))&&(i/=s,n/=s,l/=s),t*n<e*i&&(t=-t,e=-e,l=-l,a=-a),{translateX:r,translateY:o,rotate:Math.atan2(e,t)*zo,skewX:Math.atan(l)*zo,scaleX:a,scaleY:s}}function jo(t,e,i,n){function r(t){return t.length?t.pop()+" ":""}return function(o,a){var s=[],l=[];return o=t(o),a=t(a),function(t,n,r,o,a,s){if(t!==r||n!==o){var l=a.push("translate(",null,e,null,i);s.push({i:l-4,x:Oo(t,r)},{i:l-2,x:Oo(n,o)})}else(r||o)&&a.push("translate("+r+e+o+i)}(o.translateX,o.translateY,a.translateX,a.translateY,s,l),function(t,e,i,o){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),o.push({i:i.push(r(i)+"rotate(",null,n)-2,x:Oo(t,e)})):e&&i.push(r(i)+"rotate("+e+n)}(o.rotate,a.rotate,s,l),function(t,e,i,o){t!==e?o.push({i:i.push(r(i)+"skewX(",null,n)-2,x:Oo(t,e)}):e&&i.push(r(i)+"skewX("+e+n)}(o.skewX,a.skewX,s,l),function(t,e,i,n,o,a){if(t!==i||e!==n){var s=o.push(r(o)+"scale(",null,",",null,")");a.push({i:s-4,x:Oo(t,i)},{i:s-2,x:Oo(e,n)})}else 1===i&&1===n||o.push(r(o)+"scale("+i+","+n+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,s,l),o=a=null,function(t){for(var e,i=-1,n=l.length;++i<n;)s[(e=l[i]).i]=e.x(t);return s.join("")}}}var Wo=jo((function(t){return"none"===t?Qo:(Po||(Po=document.createElement("DIV"),qo=document.documentElement,No=document.defaultView),Po.style.transform=t,t=No.getComputedStyle(qo.appendChild(Po),null).getPropertyValue("transform"),qo.removeChild(Po),Eo(+(t=t.slice(7,-1).split(","))[0],+t[1],+t[2],+t[3],+t[4],+t[5]))}),"px, ","px)","deg)"),Ro=jo((function(t){return null==t?Qo:(Ho||(Ho=document.createElementNS("http://www.w3.org/2000/svg","g")),Ho.setAttribute("transform",t),(t=Ho.transform.baseVal.consolidate())?Eo((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):Qo)}),", ",")",")");function Bo(t,e){var i,n;return function(){var r=Fo(this,t),o=r.tween;if(o!==i)for(var a=0,s=(n=i=o).length;a<s;++a)if(n[a].name===e){(n=n.slice()).splice(a,1);break}r.tween=n}}function Go(t,e,i){var n,r;if("function"!=typeof i)throw new Error;return function(){var o=Fo(this,t),a=o.tween;if(a!==n){r=(n=a).slice();for(var s={name:e,value:i},l=0,c=r.length;l<c;++l)if(r[l].name===e){r[l]=s;break}l===c&&r.push(s)}o.tween=r}}function Uo(t,e,i){var n=t._id;return t.each((function(){var t=Fo(this,n);(t.value||(t.value={}))[e]=i.apply(this,arguments)})),function(t){return Ao(t,n).value[e]}}function Vo(t,e,i){t.prototype=e.prototype=i,i.constructor=t}function Zo(t,e){var i=Object.create(t.prototype);for(var n in e)i[n]=e[n];return i}function Jo(){}var Xo=.7,Yo=1/Xo,Ko="\\s*([+-]?\\d+)\\s*",ta="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",ea="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ia=/^#([0-9a-f]{3,8})$/,na=new RegExp("^rgb\\("+[Ko,Ko,Ko]+"\\)$"),ra=new RegExp("^rgb\\("+[ea,ea,ea]+"\\)$"),oa=new RegExp("^rgba\\("+[Ko,Ko,Ko,ta]+"\\)$"),aa=new RegExp("^rgba\\("+[ea,ea,ea,ta]+"\\)$"),sa=new RegExp("^hsl\\("+[ta,ea,ea]+"\\)$"),la=new RegExp("^hsla\\("+[ta,ea,ea,ta]+"\\)$"),ca={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function da(){return this.rgb().formatHex()}function ua(){return this.rgb().formatRgb()}function ha(t){var e,i;return t=(t+"").trim().toLowerCase(),(e=ia.exec(t))?(i=e[1].length,e=parseInt(e[1],16),6===i?ga(e):3===i?new va(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===i?new va(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===i?new va(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=na.exec(t))?new va(e[1],e[2],e[3],1):(e=ra.exec(t))?new va(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=oa.exec(t))?pa(e[1],e[2],e[3],e[4]):(e=aa.exec(t))?pa(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=sa.exec(t))?xa(e[1],e[2]/100,e[3]/100,1):(e=la.exec(t))?xa(e[1],e[2]/100,e[3]/100,e[4]):ca.hasOwnProperty(t)?ga(ca[t]):"transparent"===t?new va(NaN,NaN,NaN,0):null}function ga(t){return new va(t>>16&255,t>>8&255,255&t,1)}function pa(t,e,i,n){return n<=0&&(t=e=i=NaN),new va(t,e,i,n)}function fa(t){return t instanceof Jo||(t=ha(t)),t?new va((t=t.rgb()).r,t.g,t.b,t.opacity):new va}function ma(t,e,i,n){return 1===arguments.length?fa(t):new va(t,e,i,null==n?1:n)}function va(t,e,i,n){this.r=+t,this.g=+e,this.b=+i,this.opacity=+n}function ya(){return"#"+wa(this.r)+wa(this.g)+wa(this.b)}function ba(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function wa(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function xa(t,e,i,n){return n<=0?t=e=i=NaN:i<=0||i>=1?t=e=NaN:e<=0&&(t=NaN),new Ta(t,e,i,n)}function Ca(t){if(t instanceof Ta)return new Ta(t.h,t.s,t.l,t.opacity);if(t instanceof Jo||(t=ha(t)),!t)return new Ta;if(t instanceof Ta)return t;var e=(t=t.rgb()).r/255,i=t.g/255,n=t.b/255,r=Math.min(e,i,n),o=Math.max(e,i,n),a=NaN,s=o-r,l=(o+r)/2;return s?(a=e===o?(i-n)/s+6*(i<n):i===o?(n-e)/s+2:(e-i)/s+4,s/=l<.5?o+r:2-o-r,a*=60):s=l>0&&l<1?0:a,new Ta(a,s,l,t.opacity)}function Ta(t,e,i,n){this.h=+t,this.s=+e,this.l=+i,this.opacity=+n}function $a(t,e,i){return 255*(t<60?e+(i-e)*t/60:t<180?i:t<240?e+(i-e)*(240-t)/60:e)}function ka(t,e,i,n,r){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*i+(1+3*t+3*o-3*a)*n+a*r)/6}function Ia(t){return function(){return t}}function Sa(t,e){return function(i){return t+i*e}}function La(t){return 1==(t=+t)?Ma:function(e,i){return i-e?function(t,e,i){return t=Math.pow(t,i),e=Math.pow(e,i)-t,i=1/i,function(n){return Math.pow(t+n*e,i)}}(e,i,t):Ia(isNaN(e)?i:e)}}function Ma(t,e){var i=e-t;return i?Sa(t,i):Ia(isNaN(t)?e:t)}Vo(Jo,ha,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:da,formatHex:da,formatHsl:function(){return Ca(this).formatHsl()},formatRgb:ua,toString:ua}),Vo(va,ma,Zo(Jo,{brighter:function(t){return t=null==t?Yo:Math.pow(Yo,t),new va(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?Xo:Math.pow(Xo,t),new va(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:ya,formatHex:ya,formatRgb:ba,toString:ba})),Vo(Ta,(function(t,e,i,n){return 1===arguments.length?Ca(t):new Ta(t,e,i,null==n?1:n)}),Zo(Jo,{brighter:function(t){return t=null==t?Yo:Math.pow(Yo,t),new Ta(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?Xo:Math.pow(Xo,t),new Ta(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,i=this.l,n=i+(i<.5?i:1-i)*e,r=2*i-n;return new va($a(t>=240?t-240:t+120,r,n),$a(t,r,n),$a(t<120?t+240:t-120,r,n),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));var _a=function t(e){var i=La(e);function n(t,e){var n=i((t=ma(t)).r,(e=ma(e)).r),r=i(t.g,e.g),o=i(t.b,e.b),a=Ma(t.opacity,e.opacity);return function(e){return t.r=n(e),t.g=r(e),t.b=o(e),t.opacity=a(e),t+""}}return n.gamma=t,n}(1);function Da(t){return function(e){var i,n,r=e.length,o=new Array(r),a=new Array(r),s=new Array(r);for(i=0;i<r;++i)n=ma(e[i]),o[i]=n.r||0,a[i]=n.g||0,s[i]=n.b||0;return o=t(o),a=t(a),s=t(s),n.opacity=1,function(t){return n.r=o(t),n.g=a(t),n.b=s(t),n+""}}}Da((function(t){var e=t.length-1;return function(i){var n=i<=0?i=0:i>=1?(i=1,e-1):Math.floor(i*e),r=t[n],o=t[n+1],a=n>0?t[n-1]:2*r-o,s=n<e-1?t[n+2]:2*o-r;return ka((i-n/e)*e,a,r,o,s)}})),Da((function(t){var e=t.length;return function(i){var n=Math.floor(((i%=1)<0?++i:i)*e),r=t[(n+e-1)%e],o=t[n%e],a=t[(n+1)%e],s=t[(n+2)%e];return ka((i-n/e)*e,r,o,a,s)}}));var Fa=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Aa=new RegExp(Fa.source,"g");function Oa(t,e){var i,n,r,o=Fa.lastIndex=Aa.lastIndex=0,a=-1,s=[],l=[];for(t+="",e+="";(i=Fa.exec(t))&&(n=Aa.exec(e));)(r=n.index)>o&&(r=e.slice(o,r),s[a]?s[a]+=r:s[++a]=r),(i=i[0])===(n=n[0])?s[a]?s[a]+=n:s[++a]=n:(s[++a]=null,l.push({i:a,x:Oo(i,n)})),o=Aa.lastIndex;return o<e.length&&(r=e.slice(o),s[a]?s[a]+=r:s[++a]=r),s.length<2?l[0]?function(t){return function(e){return t(e)+""}}(l[0].x):function(t){return function(){return t}}(e):(e=l.length,function(t){for(var i,n=0;n<e;++n)s[(i=l[n]).i]=i.x(t);return s.join("")})}function Pa(t,e){var i;return("number"==typeof e?Oo:e instanceof ha?_a:(i=ha(e))?(e=i,_a):Oa)(t,e)}function qa(t){return function(){this.removeAttribute(t)}}function Na(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Ha(t,e,i){var n,r,o=i+"";return function(){var a=this.getAttribute(t);return a===o?null:a===n?r:r=e(n=a,i)}}function za(t,e,i){var n,r,o=i+"";return function(){var a=this.getAttributeNS(t.space,t.local);return a===o?null:a===n?r:r=e(n=a,i)}}function Qa(t,e,i){var n,r,o;return function(){var a,s,l=i(this);if(null!=l)return(a=this.getAttribute(t))===(s=l+"")?null:a===n&&s===r?o:(r=s,o=e(n=a,l));this.removeAttribute(t)}}function Ea(t,e,i){var n,r,o;return function(){var a,s,l=i(this);if(null!=l)return(a=this.getAttributeNS(t.space,t.local))===(s=l+"")?null:a===n&&s===r?o:(r=s,o=e(n=a,l));this.removeAttributeNS(t.space,t.local)}}function ja(t,e){return function(i){this.setAttribute(t,e.call(this,i))}}function Wa(t,e){return function(i){this.setAttributeNS(t.space,t.local,e.call(this,i))}}function Ra(t,e){var i,n;function r(){var r=e.apply(this,arguments);return r!==n&&(i=(n=r)&&Wa(t,r)),i}return r._value=e,r}function Ba(t,e){var i,n;function r(){var r=e.apply(this,arguments);return r!==n&&(i=(n=r)&&ja(t,r)),i}return r._value=e,r}function Ga(t,e){return function(){Do(this,t).delay=+e.apply(this,arguments)}}function Ua(t,e){return e=+e,function(){Do(this,t).delay=e}}function Va(t,e){return function(){Fo(this,t).duration=+e.apply(this,arguments)}}function Za(t,e){return e=+e,function(){Fo(this,t).duration=e}}function Ja(t,e){if("function"!=typeof e)throw new Error;return function(){Fo(this,t).ease=e}}function Xa(t,e,i){var n,r,o=function(t){return(t+"").trim().split(/^|\s+/).every((function(t){var e=t.indexOf(".");return e>=0&&(t=t.slice(0,e)),!t||"start"===t}))}(e)?Do:Fo;return function(){var a=o(this,t),s=a.on;s!==n&&(r=(n=s).copy()).on(e,i),a.on=r}}var Ya=eo.prototype.constructor;function Ka(t){return function(){this.style.removeProperty(t)}}function ts(t,e,i){return function(n){this.style.setProperty(t,e.call(this,n),i)}}function es(t,e,i){var n,r;function o(){var o=e.apply(this,arguments);return o!==r&&(n=(r=o)&&ts(t,o,i)),n}return o._value=e,o}function is(t){return function(e){this.textContent=t.call(this,e)}}function ns(t){var e,i;function n(){var n=t.apply(this,arguments);return n!==i&&(e=(i=n)&&is(n)),e}return n._value=t,n}var rs=0;function os(t,e,i,n){this._groups=t,this._parents=e,this._name=i,this._id=n}function as(){return++rs}var ss=eo.prototype;os.prototype=function(t){return eo().transition(t)}.prototype={constructor:os,select:function(t){var e=this._name,i=this._id;"function"!=typeof t&&(t=jn(t));for(var n=this._groups,r=n.length,o=new Array(r),a=0;a<r;++a)for(var s,l,c=n[a],d=c.length,u=o[a]=new Array(d),h=0;h<d;++h)(s=c[h])&&(l=t.call(s,s.__data__,h,c))&&("__data__"in s&&(l.__data__=s.__data__),u[h]=l,_o(u[h],e,i,h,u,Ao(s,i)));return new os(o,this._parents,e,i)},selectAll:function(t){var e=this._name,i=this._id;"function"!=typeof t&&(t=Bn(t));for(var n=this._groups,r=n.length,o=[],a=[],s=0;s<r;++s)for(var l,c=n[s],d=c.length,u=0;u<d;++u)if(l=c[u]){for(var h,g=t.call(l,l.__data__,u,c),p=Ao(l,i),f=0,m=g.length;f<m;++f)(h=g[f])&&_o(h,e,i,f,g,p);o.push(g),a.push(l)}return new os(o,a,e,i)},selectChild:ss.selectChild,selectChildren:ss.selectChildren,filter:function(t){"function"!=typeof t&&(t=Gn(t));for(var e=this._groups,i=e.length,n=new Array(i),r=0;r<i;++r)for(var o,a=e[r],s=a.length,l=n[r]=[],c=0;c<s;++c)(o=a[c])&&t.call(o,o.__data__,c,a)&&l.push(o);return new os(n,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,i=t._groups,n=e.length,r=i.length,o=Math.min(n,r),a=new Array(n),s=0;s<o;++s)for(var l,c=e[s],d=i[s],u=c.length,h=a[s]=new Array(u),g=0;g<u;++g)(l=c[g]||d[g])&&(h[g]=l);for(;s<n;++s)a[s]=e[s];return new os(a,this._parents,this._name,this._id)},selection:function(){return new Ya(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,i=as(),n=this._groups,r=n.length,o=0;o<r;++o)for(var a,s=n[o],l=s.length,c=0;c<l;++c)if(a=s[c]){var d=Ao(a,e);_o(a,t,i,c,s,{time:d.time+d.delay+d.duration,delay:0,duration:d.duration,ease:d.ease})}return new os(n,this._parents,t,i)},call:ss.call,nodes:ss.nodes,node:ss.node,size:ss.size,empty:ss.empty,each:ss.each,on:function(t,e){var i=this._id;return arguments.length<2?Ao(this.node(),i).on.on(t):this.each(Xa(i,t,e))},attr:function(t,e){var i=lr(t),n="transform"===i?Ro:Pa;return this.attrTween(t,"function"==typeof e?(i.local?Ea:Qa)(i,n,Uo(this,"attr."+t,e)):null==e?(i.local?Na:qa)(i):(i.local?za:Ha)(i,n,e))},attrTween:function(t,e){var i="attr."+t;if(arguments.length<2)return(i=this.tween(i))&&i._value;if(null==e)return this.tween(i,null);if("function"!=typeof e)throw new Error;var n=lr(t);return this.tween(i,(n.local?Ra:Ba)(n,e))},style:function(t,e,i){var n="transform"==(t+="")?Wo:Pa;return null==e?this.styleTween(t,function(t,e){var i,n,r;return function(){var o=br(this,t),a=(this.style.removeProperty(t),br(this,t));return o===a?null:o===i&&a===n?r:r=e(i=o,n=a)}}(t,n)).on("end.style."+t,Ka(t)):"function"==typeof e?this.styleTween(t,function(t,e,i){var n,r,o;return function(){var a=br(this,t),s=i(this),l=s+"";return null==s&&(this.style.removeProperty(t),l=s=br(this,t)),a===l?null:a===n&&l===r?o:(r=l,o=e(n=a,s))}}(t,n,Uo(this,"style."+t,e))).each(function(t,e){var i,n,r,o,a="style."+e,s="end."+a;return function(){var l=Fo(this,t),c=l.on,d=null==l.value[a]?o||(o=Ka(e)):void 0;c===i&&r===d||(n=(i=c).copy()).on(s,r=d),l.on=n}}(this._id,t)):this.styleTween(t,function(t,e,i){var n,r,o=i+"";return function(){var a=br(this,t);return a===o?null:a===n?r:r=e(n=a,i)}}(t,n,e),i).on("end.style."+t,null)},styleTween:function(t,e,i){var n="style."+(t+="");if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==e)return this.tween(n,null);if("function"!=typeof e)throw new Error;return this.tween(n,es(t,e,null==i?"":i))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var e=t(this);this.textContent=null==e?"":e}}(Uo(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(null==t)return this.tween(e,null);if("function"!=typeof t)throw new Error;return this.tween(e,ns(t))},remove:function(){return this.on("end.remove",function(t){return function(){var e=this.parentNode;for(var i in this.__transition)if(+i!==t)return;e&&e.removeChild(this)}}(this._id))},tween:function(t,e){var i=this._id;if(t+="",arguments.length<2){for(var n,r=Ao(this.node(),i).tween,o=0,a=r.length;o<a;++o)if((n=r[o]).name===t)return n.value;return null}return this.each((null==e?Bo:Go)(i,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?Ga:Ua)(e,t)):Ao(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?Va:Za)(e,t)):Ao(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(Ja(e,t)):Ao(this.node(),e).ease},easeVarying:function(t){if("function"!=typeof t)throw new Error;return this.each(function(t,e){return function(){var i=e.apply(this,arguments);if("function"!=typeof i)throw new Error;Fo(this,t).ease=i}}(this._id,t))},end:function(){var t,e,i=this,n=i._id,r=i.size();return new Promise((function(o,a){var s={value:a},l={value:function(){0==--r&&o()}};i.each((function(){var i=Fo(this,n),r=i.on;r!==t&&((e=(t=r).copy())._.cancel.push(s),e._.interrupt.push(s),e._.end.push(l)),i.on=e})),0===r&&o()}))},[Symbol.iterator]:ss[Symbol.iterator]};var ls={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};function cs(t,e){for(var i;!(i=t.__transition)||!(i=i[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return i}eo.prototype.interrupt=function(t){return this.each((function(){!function(t,e){var i,n,r,o=t.__transition,a=!0;if(o){for(r in e=null==e?null:e+"",o)(i=o[r]).name===e?(n=i.state>2&&i.state<5,i.state=6,i.timer.stop(),i.on.call(n?"interrupt":"cancel",t,t.__data__,i.index,i.group),delete o[r]):a=!1;a&&delete t.__transition}}(this,t)}))},eo.prototype.transition=function(t){var e,i;t instanceof os?(e=t._id,t=t._name):(e=as(),(i=ls).time=wo(),t=null==t?null:t+"");for(var n=this._groups,r=n.length,o=0;o<r;++o)for(var a,s=n[o],l=s.length,c=0;c<l;++c)(a=s[c])&&_o(a,t,e,c,s,i||cs(a,e));return new os(n,this._parents,t,e)};const{abs:ds,max:us,min:hs}=Math;function gs(t){return[+t[0],+t[1]]}function ps(t){return[gs(t[0]),gs(t[1])]}["w","e"].map(fs),["n","s"].map(fs),["n","w","e","s","nw","ne","sw","se"].map(fs);function fs(t){return{type:t}}function ms(){}function vs(t){return null==t?ms:function(){return this.querySelector(t)}}function ys(t){return null==t?[]:Array.isArray(t)?t:Array.from(t)}function bs(){return[]}function ws(t){return null==t?bs:function(){return this.querySelectorAll(t)}}function xs(t){return function(){return this.matches(t)}}function Cs(t){return function(e){return e.matches(t)}}var Ts=Array.prototype.find;function $s(){return this.firstElementChild}var ks=Array.prototype.filter;function Is(){return Array.from(this.children)}function Ss(t){return new Array(t.length)}function Ls(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function Ms(t){return function(){return t}}function _s(t,e,i,n,r,o){for(var a,s=0,l=e.length,c=o.length;s<c;++s)(a=e[s])?(a.__data__=o[s],n[s]=a):i[s]=new Ls(t,o[s]);for(;s<l;++s)(a=e[s])&&(r[s]=a)}function Ds(t,e,i,n,r,o,a){var s,l,c,d=new Map,u=e.length,h=o.length,g=new Array(u);for(s=0;s<u;++s)(l=e[s])&&(g[s]=c=a.call(l,l.__data__,s,e)+"",d.has(c)?r[s]=l:d.set(c,l));for(s=0;s<h;++s)c=a.call(t,o[s],s,o)+"",(l=d.get(c))?(n[s]=l,l.__data__=o[s],d.delete(c)):i[s]=new Ls(t,o[s]);for(s=0;s<u;++s)(l=e[s])&&d.get(g[s])===l&&(r[s]=l)}function Fs(t){return t.__data__}function As(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function Os(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}Ls.prototype={constructor:Ls,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var Ps="http://www.w3.org/1999/xhtml",qs={svg:"http://www.w3.org/2000/svg",xhtml:Ps,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Ns(t){var e=t+="",i=e.indexOf(":");return i>=0&&"xmlns"!==(e=t.slice(0,i))&&(t=t.slice(i+1)),qs.hasOwnProperty(e)?{space:qs[e],local:t}:t}function Hs(t){return function(){this.removeAttribute(t)}}function zs(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Qs(t,e){return function(){this.setAttribute(t,e)}}function Es(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function js(t,e){return function(){var i=e.apply(this,arguments);null==i?this.removeAttribute(t):this.setAttribute(t,i)}}function Ws(t,e){return function(){var i=e.apply(this,arguments);null==i?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,i)}}function Rs(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Bs(t){return function(){this.style.removeProperty(t)}}function Gs(t,e,i){return function(){this.style.setProperty(t,e,i)}}function Us(t,e,i){return function(){var n=e.apply(this,arguments);null==n?this.style.removeProperty(t):this.style.setProperty(t,n,i)}}function Vs(t,e){return t.style.getPropertyValue(e)||Rs(t).getComputedStyle(t,null).getPropertyValue(e)}function Zs(t){return function(){delete this[t]}}function Js(t,e){return function(){this[t]=e}}function Xs(t,e){return function(){var i=e.apply(this,arguments);null==i?delete this[t]:this[t]=i}}function Ys(t){return t.trim().split(/^|\s+/)}function Ks(t){return t.classList||new tl(t)}function tl(t){this._node=t,this._names=Ys(t.getAttribute("class")||"")}function el(t,e){for(var i=Ks(t),n=-1,r=e.length;++n<r;)i.add(e[n])}function il(t,e){for(var i=Ks(t),n=-1,r=e.length;++n<r;)i.remove(e[n])}function nl(t){return function(){el(this,t)}}function rl(t){return function(){il(this,t)}}function ol(t,e){return function(){(e.apply(this,arguments)?el:il)(this,t)}}function al(){this.textContent=""}function sl(t){return function(){this.textContent=t}}function ll(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}function cl(){this.innerHTML=""}function dl(t){return function(){this.innerHTML=t}}function ul(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}function hl(){this.nextSibling&&this.parentNode.appendChild(this)}function gl(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function pl(t){return function(){var e=this.ownerDocument,i=this.namespaceURI;return i===Ps&&e.documentElement.namespaceURI===Ps?e.createElement(t):e.createElementNS(i,t)}}function fl(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function ml(t){var e=Ns(t);return(e.local?fl:pl)(e)}function vl(){return null}function yl(){var t=this.parentNode;t&&t.removeChild(this)}function bl(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function wl(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function xl(t){return t.trim().split(/^|\s+/).map((function(t){var e="",i=t.indexOf(".");return i>=0&&(e=t.slice(i+1),t=t.slice(0,i)),{type:t,name:e}}))}function Cl(t){return function(){var e=this.__on;if(e){for(var i,n=0,r=-1,o=e.length;n<o;++n)i=e[n],t.type&&i.type!==t.type||i.name!==t.name?e[++r]=i:this.removeEventListener(i.type,i.listener,i.options);++r?e.length=r:delete this.__on}}}function Tl(t,e,i){return function(){var n,r=this.__on,o=function(t){return function(e){t.call(this,e,this.__data__)}}(e);if(r)for(var a=0,s=r.length;a<s;++a)if((n=r[a]).type===t.type&&n.name===t.name)return this.removeEventListener(n.type,n.listener,n.options),this.addEventListener(n.type,n.listener=o,n.options=i),void(n.value=e);this.addEventListener(t.type,o,i),n={type:t.type,name:t.name,value:e,listener:o,options:i},r?r.push(n):this.__on=[n]}}function $l(t,e,i){var n=Rs(t),r=n.CustomEvent;"function"==typeof r?r=new r(e,i):(r=n.document.createEvent("Event"),i?(r.initEvent(e,i.bubbles,i.cancelable),r.detail=i.detail):r.initEvent(e,!1,!1)),t.dispatchEvent(r)}function kl(t,e){return function(){return $l(this,t,e)}}function Il(t,e){return function(){return $l(this,t,e.apply(this,arguments))}}tl.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var Sl=[null];function Ll(t,e){this._groups=t,this._parents=e}function Ml(){return new Ll([[document.documentElement]],Sl)}Ll.prototype=Ml.prototype={constructor:Ll,select:function(t){"function"!=typeof t&&(t=vs(t));for(var e=this._groups,i=e.length,n=new Array(i),r=0;r<i;++r)for(var o,a,s=e[r],l=s.length,c=n[r]=new Array(l),d=0;d<l;++d)(o=s[d])&&(a=t.call(o,o.__data__,d,s))&&("__data__"in o&&(a.__data__=o.__data__),c[d]=a);return new Ll(n,this._parents)},selectAll:function(t){t="function"==typeof t?function(t){return function(){return ys(t.apply(this,arguments))}}(t):ws(t);for(var e=this._groups,i=e.length,n=[],r=[],o=0;o<i;++o)for(var a,s=e[o],l=s.length,c=0;c<l;++c)(a=s[c])&&(n.push(t.call(a,a.__data__,c,s)),r.push(a));return new Ll(n,r)},selectChild:function(t){return this.select(null==t?$s:function(t){return function(){return Ts.call(this.children,t)}}("function"==typeof t?t:Cs(t)))},selectChildren:function(t){return this.selectAll(null==t?Is:function(t){return function(){return ks.call(this.children,t)}}("function"==typeof t?t:Cs(t)))},filter:function(t){"function"!=typeof t&&(t=xs(t));for(var e=this._groups,i=e.length,n=new Array(i),r=0;r<i;++r)for(var o,a=e[r],s=a.length,l=n[r]=[],c=0;c<s;++c)(o=a[c])&&t.call(o,o.__data__,c,a)&&l.push(o);return new Ll(n,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,Fs);var i=e?Ds:_s,n=this._parents,r=this._groups;"function"!=typeof t&&(t=Ms(t));for(var o=r.length,a=new Array(o),s=new Array(o),l=new Array(o),c=0;c<o;++c){var d=n[c],u=r[c],h=u.length,g=As(t.call(d,d&&d.__data__,c,n)),p=g.length,f=s[c]=new Array(p),m=a[c]=new Array(p),v=l[c]=new Array(h);i(d,u,f,m,v,g,e);for(var y,b,w=0,x=0;w<p;++w)if(y=f[w]){for(w>=x&&(x=w+1);!(b=m[x])&&++x<p;);y._next=b||null}}return(a=new Ll(a,n))._enter=s,a._exit=l,a},enter:function(){return new Ll(this._enter||this._groups.map(Ss),this._parents)},exit:function(){return new Ll(this._exit||this._groups.map(Ss),this._parents)},join:function(t,e,i){var n=this.enter(),r=this,o=this.exit();return"function"==typeof t?(n=t(n))&&(n=n.selection()):n=n.append(t+""),null!=e&&(r=e(r))&&(r=r.selection()),null==i?o.remove():i(o),n&&r?n.merge(r).order():r},merge:function(t){for(var e=t.selection?t.selection():t,i=this._groups,n=e._groups,r=i.length,o=n.length,a=Math.min(r,o),s=new Array(r),l=0;l<a;++l)for(var c,d=i[l],u=n[l],h=d.length,g=s[l]=new Array(h),p=0;p<h;++p)(c=d[p]||u[p])&&(g[p]=c);for(;l<r;++l)s[l]=i[l];return new Ll(s,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,e=-1,i=t.length;++e<i;)for(var n,r=t[e],o=r.length-1,a=r[o];--o>=0;)(n=r[o])&&(a&&4^n.compareDocumentPosition(a)&&a.parentNode.insertBefore(n,a),a=n);return this},sort:function(t){function e(e,i){return e&&i?t(e.__data__,i.__data__):!e-!i}t||(t=Os);for(var i=this._groups,n=i.length,r=new Array(n),o=0;o<n;++o){for(var a,s=i[o],l=s.length,c=r[o]=new Array(l),d=0;d<l;++d)(a=s[d])&&(c[d]=a);c.sort(e)}return new Ll(r,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var t=this._groups,e=0,i=t.length;e<i;++e)for(var n=t[e],r=0,o=n.length;r<o;++r){var a=n[r];if(a)return a}return null},size:function(){let t=0;for(const e of this)++t;return t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,i=0,n=e.length;i<n;++i)for(var r,o=e[i],a=0,s=o.length;a<s;++a)(r=o[a])&&t.call(r,r.__data__,a,o);return this},attr:function(t,e){var i=Ns(t);if(arguments.length<2){var n=this.node();return i.local?n.getAttributeNS(i.space,i.local):n.getAttribute(i)}return this.each((null==e?i.local?zs:Hs:"function"==typeof e?i.local?Ws:js:i.local?Es:Qs)(i,e))},style:function(t,e,i){return arguments.length>1?this.each((null==e?Bs:"function"==typeof e?Us:Gs)(t,e,null==i?"":i)):Vs(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?Zs:"function"==typeof e?Xs:Js)(t,e)):this.node()[t]},classed:function(t,e){var i=Ys(t+"");if(arguments.length<2){for(var n=Ks(this.node()),r=-1,o=i.length;++r<o;)if(!n.contains(i[r]))return!1;return!0}return this.each(("function"==typeof e?ol:e?nl:rl)(i,e))},text:function(t){return arguments.length?this.each(null==t?al:("function"==typeof t?ll:sl)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?cl:("function"==typeof t?ul:dl)(t)):this.node().innerHTML},raise:function(){return this.each(hl)},lower:function(){return this.each(gl)},append:function(t){var e="function"==typeof t?t:ml(t);return this.select((function(){return this.appendChild(e.apply(this,arguments))}))},insert:function(t,e){var i="function"==typeof t?t:ml(t),n=null==e?vl:"function"==typeof e?e:vs(e);return this.select((function(){return this.insertBefore(i.apply(this,arguments),n.apply(this,arguments)||null)}))},remove:function(){return this.each(yl)},clone:function(t){return this.select(t?wl:bl)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,i){var n,r,o=xl(t+""),a=o.length;if(!(arguments.length<2)){for(s=e?Tl:Cl,n=0;n<a;++n)this.each(s(o[n],e,i));return this}var s=this.node().__on;if(s)for(var l,c=0,d=s.length;c<d;++c)for(n=0,l=s[c];n<a;++n)if((r=o[n]).type===l.type&&r.name===l.name)return l.value},dispatch:function(t,e){return this.each(("function"==typeof e?Il:kl)(t,e))},[Symbol.iterator]:function*(){for(var t=this._groups,e=0,i=t.length;e<i;++e)for(var n,r=t[e],o=0,a=r.length;o<a;++o)(n=r[o])&&(yield n)}};var _l=Ml;const Dl=Math.PI,Fl=2*Dl,Al=1e-6,Ol=Fl-Al;function Pl(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function ql(){return new Pl}Pl.prototype=ql.prototype={constructor:Pl,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,i,n){this._+="Q"+ +t+","+ +e+","+(this._x1=+i)+","+(this._y1=+n)},bezierCurveTo:function(t,e,i,n,r,o){this._+="C"+ +t+","+ +e+","+ +i+","+ +n+","+(this._x1=+r)+","+(this._y1=+o)},arcTo:function(t,e,i,n,r){t=+t,e=+e,i=+i,n=+n,r=+r;var o=this._x1,a=this._y1,s=i-t,l=n-e,c=o-t,d=a-e,u=c*c+d*d;if(r<0)throw new Error("negative radius: "+r);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(u>Al)if(Math.abs(d*s-l*c)>Al&&r){var h=i-o,g=n-a,p=s*s+l*l,f=h*h+g*g,m=Math.sqrt(p),v=Math.sqrt(u),y=r*Math.tan((Dl-Math.acos((p+u-f)/(2*m*v)))/2),b=y/v,w=y/m;Math.abs(b-1)>Al&&(this._+="L"+(t+b*c)+","+(e+b*d)),this._+="A"+r+","+r+",0,0,"+ +(d*h>c*g)+","+(this._x1=t+w*s)+","+(this._y1=e+w*l)}else this._+="L"+(this._x1=t)+","+(this._y1=e);else;},arc:function(t,e,i,n,r,o){t=+t,e=+e,o=!!o;var a=(i=+i)*Math.cos(n),s=i*Math.sin(n),l=t+a,c=e+s,d=1^o,u=o?n-r:r-n;if(i<0)throw new Error("negative radius: "+i);null===this._x1?this._+="M"+l+","+c:(Math.abs(this._x1-l)>Al||Math.abs(this._y1-c)>Al)&&(this._+="L"+l+","+c),i&&(u<0&&(u=u%Fl+Fl),u>Ol?this._+="A"+i+","+i+",0,1,"+d+","+(t-a)+","+(e-s)+"A"+i+","+i+",0,1,"+d+","+(this._x1=l)+","+(this._y1=c):u>Al&&(this._+="A"+i+","+i+",0,"+ +(u>=Dl)+","+d+","+(this._x1=t+i*Math.cos(r))+","+(this._y1=e+i*Math.sin(r))))},rect:function(t,e,i,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +i+"v"+ +n+"h"+-i+"Z"},toString:function(){return this._}};var Nl=ql;Array.prototype.slice;function Hl(t){return function(){return t}}function zl(t){this._context=t}function Ql(t){return new zl(t)}function El(t){return t[0]}function jl(t){return t[1]}function Wl(t,e){var i=Hl(!0),n=null,r=Ql,o=null;function a(a){var s,l,c,d=(a=function(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}(a)).length,u=!1;for(null==n&&(o=r(c=Nl())),s=0;s<=d;++s)!(s<d&&i(l=a[s],s,a))===u&&((u=!u)?o.lineStart():o.lineEnd()),u&&o.point(+t(l,s,a),+e(l,s,a));if(c)return o=null,c+""||null}return t="function"==typeof t?t:void 0===t?El:Hl(t),e="function"==typeof e?e:void 0===e?jl:Hl(e),a.x=function(e){return arguments.length?(t="function"==typeof e?e:Hl(+e),a):t},a.y=function(t){return arguments.length?(e="function"==typeof t?t:Hl(+t),a):e},a.defined=function(t){return arguments.length?(i="function"==typeof t?t:Hl(!!t),a):i},a.curve=function(t){return arguments.length?(r=t,null!=n&&(o=r(n)),a):r},a.context=function(t){return arguments.length?(null==t?n=o=null:o=r(n=t),a):n},a}function Rl(t,e,i){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-i),t._x2,t._y2)}function Bl(t,e){this._context=t,this._k=(1-e)/6}zl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}},Bl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Rl(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:Rl(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Gl=function t(e){function i(t){return new Bl(t,e)}return i.tension=function(e){return t(+e)},i}(0),Ul={value:()=>{}};function Vl(){for(var t,e=0,i=arguments.length,n={};e<i;++e){if(!(t=arguments[e]+"")||t in n||/[\s.]/.test(t))throw new Error("illegal type: "+t);n[t]=[]}return new Zl(n)}function Zl(t){this._=t}function Jl(t,e){return t.trim().split(/^|\s+/).map((function(t){var i="",n=t.indexOf(".");if(n>=0&&(i=t.slice(n+1),t=t.slice(0,n)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:i}}))}function Xl(t,e){for(var i,n=0,r=t.length;n<r;++n)if((i=t[n]).name===e)return i.value}function Yl(t,e,i){for(var n=0,r=t.length;n<r;++n)if(t[n].name===e){t[n]=Ul,t=t.slice(0,n).concat(t.slice(n+1));break}return null!=i&&t.push({name:e,value:i}),t}Zl.prototype=Vl.prototype={constructor:Zl,on:function(t,e){var i,n=this._,r=Jl(t+"",n),o=-1,a=r.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++o<a;)if(i=(t=r[o]).type)n[i]=Yl(n[i],t.name,e);else if(null==e)for(i in n)n[i]=Yl(n[i],t.name,null);return this}for(;++o<a;)if((i=(t=r[o]).type)&&(i=Xl(n[i],t.name)))return i},copy:function(){var t={},e=this._;for(var i in e)t[i]=e[i].slice();return new Zl(t)},call:function(t,e){if((i=arguments.length-2)>0)for(var i,n,r=new Array(i),o=0;o<i;++o)r[o]=arguments[o+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(o=0,i=(n=this._[t]).length;o<i;++o)n[o].value.apply(e,r)},apply:function(t,e,i){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var n=this._[t],r=0,o=n.length;r<o;++r)n[r].value.apply(e,i)}};var Kl,tc,ec=Vl,ic=0,nc=0,rc=0,oc=0,ac=0,sc=0,lc="object"==typeof performance&&performance.now?performance:Date,cc="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function dc(){return ac||(cc(uc),ac=lc.now()+sc)}function uc(){ac=0}function hc(){this._call=this._time=this._next=null}function gc(t,e,i){var n=new hc;return n.restart(t,e,i),n}function pc(){ac=(oc=lc.now())+sc,ic=nc=0;try{!function(){dc(),++ic;for(var t,e=Kl;e;)(t=ac-e._time)>=0&&e._call.call(void 0,t),e=e._next;--ic}()}finally{ic=0,function(){var t,e,i=Kl,n=1/0;for(;i;)i._call?(n>i._time&&(n=i._time),t=i,i=i._next):(e=i._next,i._next=null,i=t?t._next=e:Kl=e);tc=t,mc(n)}(),ac=0}}function fc(){var t=lc.now(),e=t-oc;e>1e3&&(sc-=e,oc=t)}function mc(t){ic||(nc&&(nc=clearTimeout(nc)),t-ac>24?(t<1/0&&(nc=setTimeout(pc,t-lc.now()-sc)),rc&&(rc=clearInterval(rc))):(rc||(oc=lc.now(),rc=setInterval(fc,1e3)),ic=1,cc(pc)))}function vc(t,e,i){var n=new hc;return e=null==e?0:+e,n.restart((i=>{n.stop(),t(i+e)}),e,i),n}hc.prototype=gc.prototype={constructor:hc,restart:function(t,e,i){if("function"!=typeof t)throw new TypeError("callback is not a function");i=(null==i?dc():+i)+(null==e?0:+e),this._next||tc===this||(tc?tc._next=this:Kl=this,tc=this),this._call=t,this._time=i,mc()},stop:function(){this._call&&(this._call=null,this._time=1/0,mc())}};var yc=ec("start","end","cancel","interrupt"),bc=[];function wc(t,e,i,n,r,o){var a=t.__transition;if(a){if(i in a)return}else t.__transition={};!function(t,e,i){var n,r=t.__transition;function o(t){i.state=1,i.timer.restart(a,i.delay,i.time),i.delay<=t&&a(t-i.delay)}function a(o){var c,d,u,h;if(1!==i.state)return l();for(c in r)if((h=r[c]).name===i.name){if(3===h.state)return vc(a);4===h.state?(h.state=6,h.timer.stop(),h.on.call("interrupt",t,t.__data__,h.index,h.group),delete r[c]):+c<e&&(h.state=6,h.timer.stop(),h.on.call("cancel",t,t.__data__,h.index,h.group),delete r[c])}if(vc((function(){3===i.state&&(i.state=4,i.timer.restart(s,i.delay,i.time),s(o))})),i.state=2,i.on.call("start",t,t.__data__,i.index,i.group),2===i.state){for(i.state=3,n=new Array(u=i.tween.length),c=0,d=-1;c<u;++c)(h=i.tween[c].value.call(t,t.__data__,i.index,i.group))&&(n[++d]=h);n.length=d+1}}function s(e){for(var r=e<i.duration?i.ease.call(null,e/i.duration):(i.timer.restart(l),i.state=5,1),o=-1,a=n.length;++o<a;)n[o].call(t,r);5===i.state&&(i.on.call("end",t,t.__data__,i.index,i.group),l())}function l(){for(var n in i.state=6,i.timer.stop(),delete r[e],r)return;delete t.__transition}r[e]=i,i.timer=gc(o,0,i.time)}(t,i,{name:e,index:n,group:r,on:yc,tween:bc,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:0})}function xc(t,e){var i=Tc(t,e);if(i.state>0)throw new Error("too late; already scheduled");return i}function Cc(t,e){var i=Tc(t,e);if(i.state>3)throw new Error("too late; already running");return i}function Tc(t,e){var i=t.__transition;if(!i||!(i=i[e]))throw new Error("transition not found");return i}function $c(t,e){return t=+t,e=+e,function(i){return t*(1-i)+e*i}}var kc,Ic=180/Math.PI,Sc={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Lc(t,e,i,n,r,o){var a,s,l;return(a=Math.sqrt(t*t+e*e))&&(t/=a,e/=a),(l=t*i+e*n)&&(i-=t*l,n-=e*l),(s=Math.sqrt(i*i+n*n))&&(i/=s,n/=s,l/=s),t*n<e*i&&(t=-t,e=-e,l=-l,a=-a),{translateX:r,translateY:o,rotate:Math.atan2(e,t)*Ic,skewX:Math.atan(l)*Ic,scaleX:a,scaleY:s}}function Mc(t,e,i,n){function r(t){return t.length?t.pop()+" ":""}return function(o,a){var s=[],l=[];return o=t(o),a=t(a),function(t,n,r,o,a,s){if(t!==r||n!==o){var l=a.push("translate(",null,e,null,i);s.push({i:l-4,x:$c(t,r)},{i:l-2,x:$c(n,o)})}else(r||o)&&a.push("translate("+r+e+o+i)}(o.translateX,o.translateY,a.translateX,a.translateY,s,l),function(t,e,i,o){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),o.push({i:i.push(r(i)+"rotate(",null,n)-2,x:$c(t,e)})):e&&i.push(r(i)+"rotate("+e+n)}(o.rotate,a.rotate,s,l),function(t,e,i,o){t!==e?o.push({i:i.push(r(i)+"skewX(",null,n)-2,x:$c(t,e)}):e&&i.push(r(i)+"skewX("+e+n)}(o.skewX,a.skewX,s,l),function(t,e,i,n,o,a){if(t!==i||e!==n){var s=o.push(r(o)+"scale(",null,",",null,")");a.push({i:s-4,x:$c(t,i)},{i:s-2,x:$c(e,n)})}else 1===i&&1===n||o.push(r(o)+"scale("+i+","+n+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,s,l),o=a=null,function(t){for(var e,i=-1,n=l.length;++i<n;)s[(e=l[i]).i]=e.x(t);return s.join("")}}}var _c=Mc((function(t){const e=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?Sc:Lc(e.a,e.b,e.c,e.d,e.e,e.f)}),"px, ","px)","deg)"),Dc=Mc((function(t){return null==t?Sc:(kc||(kc=document.createElementNS("http://www.w3.org/2000/svg","g")),kc.setAttribute("transform",t),(t=kc.transform.baseVal.consolidate())?Lc((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):Sc)}),", ",")",")");function Fc(t,e){var i,n;return function(){var r=Cc(this,t),o=r.tween;if(o!==i)for(var a=0,s=(n=i=o).length;a<s;++a)if(n[a].name===e){(n=n.slice()).splice(a,1);break}r.tween=n}}function Ac(t,e,i){var n,r;if("function"!=typeof i)throw new Error;return function(){var o=Cc(this,t),a=o.tween;if(a!==n){r=(n=a).slice();for(var s={name:e,value:i},l=0,c=r.length;l<c;++l)if(r[l].name===e){r[l]=s;break}l===c&&r.push(s)}o.tween=r}}function Oc(t,e,i){var n=t._id;return t.each((function(){var t=Cc(this,n);(t.value||(t.value={}))[e]=i.apply(this,arguments)})),function(t){return Tc(t,n).value[e]}}function Pc(t,e,i){t.prototype=e.prototype=i,i.constructor=t}function qc(t,e){var i=Object.create(t.prototype);for(var n in e)i[n]=e[n];return i}function Nc(){}var Hc=.7,zc=1/Hc,Qc="\\s*([+-]?\\d+)\\s*",Ec="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",jc="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Wc=/^#([0-9a-f]{3,8})$/,Rc=new RegExp("^rgb\\("+[Qc,Qc,Qc]+"\\)$"),Bc=new RegExp("^rgb\\("+[jc,jc,jc]+"\\)$"),Gc=new RegExp("^rgba\\("+[Qc,Qc,Qc,Ec]+"\\)$"),Uc=new RegExp("^rgba\\("+[jc,jc,jc,Ec]+"\\)$"),Vc=new RegExp("^hsl\\("+[Ec,jc,jc]+"\\)$"),Zc=new RegExp("^hsla\\("+[Ec,jc,jc,Ec]+"\\)$"),Jc={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Xc(){return this.rgb().formatHex()}function Yc(){return this.rgb().formatRgb()}function Kc(t){var e,i;return t=(t+"").trim().toLowerCase(),(e=Wc.exec(t))?(i=e[1].length,e=parseInt(e[1],16),6===i?td(e):3===i?new rd(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===i?ed(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===i?ed(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=Rc.exec(t))?new rd(e[1],e[2],e[3],1):(e=Bc.exec(t))?new rd(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Gc.exec(t))?ed(e[1],e[2],e[3],e[4]):(e=Uc.exec(t))?ed(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Vc.exec(t))?ld(e[1],e[2]/100,e[3]/100,1):(e=Zc.exec(t))?ld(e[1],e[2]/100,e[3]/100,e[4]):Jc.hasOwnProperty(t)?td(Jc[t]):"transparent"===t?new rd(NaN,NaN,NaN,0):null}function td(t){return new rd(t>>16&255,t>>8&255,255&t,1)}function ed(t,e,i,n){return n<=0&&(t=e=i=NaN),new rd(t,e,i,n)}function id(t){return t instanceof Nc||(t=Kc(t)),t?new rd((t=t.rgb()).r,t.g,t.b,t.opacity):new rd}function nd(t,e,i,n){return 1===arguments.length?id(t):new rd(t,e,i,null==n?1:n)}function rd(t,e,i,n){this.r=+t,this.g=+e,this.b=+i,this.opacity=+n}function od(){return"#"+sd(this.r)+sd(this.g)+sd(this.b)}function ad(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function sd(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function ld(t,e,i,n){return n<=0?t=e=i=NaN:i<=0||i>=1?t=e=NaN:e<=0&&(t=NaN),new dd(t,e,i,n)}function cd(t){if(t instanceof dd)return new dd(t.h,t.s,t.l,t.opacity);if(t instanceof Nc||(t=Kc(t)),!t)return new dd;if(t instanceof dd)return t;var e=(t=t.rgb()).r/255,i=t.g/255,n=t.b/255,r=Math.min(e,i,n),o=Math.max(e,i,n),a=NaN,s=o-r,l=(o+r)/2;return s?(a=e===o?(i-n)/s+6*(i<n):i===o?(n-e)/s+2:(e-i)/s+4,s/=l<.5?o+r:2-o-r,a*=60):s=l>0&&l<1?0:a,new dd(a,s,l,t.opacity)}function dd(t,e,i,n){this.h=+t,this.s=+e,this.l=+i,this.opacity=+n}function ud(t,e,i){return 255*(t<60?e+(i-e)*t/60:t<180?i:t<240?e+(i-e)*(240-t)/60:e)}function hd(t,e,i,n,r){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*i+(1+3*t+3*o-3*a)*n+a*r)/6}Pc(Nc,Kc,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:Xc,formatHex:Xc,formatHsl:function(){return cd(this).formatHsl()},formatRgb:Yc,toString:Yc}),Pc(rd,nd,qc(Nc,{brighter:function(t){return t=null==t?zc:Math.pow(zc,t),new rd(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?Hc:Math.pow(Hc,t),new rd(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:od,formatHex:od,formatRgb:ad,toString:ad})),Pc(dd,(function(t,e,i,n){return 1===arguments.length?cd(t):new dd(t,e,i,null==n?1:n)}),qc(Nc,{brighter:function(t){return t=null==t?zc:Math.pow(zc,t),new dd(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?Hc:Math.pow(Hc,t),new dd(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,i=this.l,n=i+(i<.5?i:1-i)*e,r=2*i-n;return new rd(ud(t>=240?t-240:t+120,r,n),ud(t,r,n),ud(t<120?t+240:t-120,r,n),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));var gd=t=>()=>t;function pd(t,e){return function(i){return t+i*e}}function fd(t){return 1==(t=+t)?md:function(e,i){return i-e?function(t,e,i){return t=Math.pow(t,i),e=Math.pow(e,i)-t,i=1/i,function(n){return Math.pow(t+n*e,i)}}(e,i,t):gd(isNaN(e)?i:e)}}function md(t,e){var i=e-t;return i?pd(t,i):gd(isNaN(t)?e:t)}var vd=function t(e){var i=fd(e);function n(t,e){var n=i((t=nd(t)).r,(e=nd(e)).r),r=i(t.g,e.g),o=i(t.b,e.b),a=md(t.opacity,e.opacity);return function(e){return t.r=n(e),t.g=r(e),t.b=o(e),t.opacity=a(e),t+""}}return n.gamma=t,n}(1);function yd(t){return function(e){var i,n,r=e.length,o=new Array(r),a=new Array(r),s=new Array(r);for(i=0;i<r;++i)n=nd(e[i]),o[i]=n.r||0,a[i]=n.g||0,s[i]=n.b||0;return o=t(o),a=t(a),s=t(s),n.opacity=1,function(t){return n.r=o(t),n.g=a(t),n.b=s(t),n+""}}}yd((function(t){var e=t.length-1;return function(i){var n=i<=0?i=0:i>=1?(i=1,e-1):Math.floor(i*e),r=t[n],o=t[n+1],a=n>0?t[n-1]:2*r-o,s=n<e-1?t[n+2]:2*o-r;return hd((i-n/e)*e,a,r,o,s)}})),yd((function(t){var e=t.length;return function(i){var n=Math.floor(((i%=1)<0?++i:i)*e),r=t[(n+e-1)%e],o=t[n%e],a=t[(n+1)%e],s=t[(n+2)%e];return hd((i-n/e)*e,r,o,a,s)}}));var bd=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,wd=new RegExp(bd.source,"g");function xd(t,e){var i,n,r,o=bd.lastIndex=wd.lastIndex=0,a=-1,s=[],l=[];for(t+="",e+="";(i=bd.exec(t))&&(n=wd.exec(e));)(r=n.index)>o&&(r=e.slice(o,r),s[a]?s[a]+=r:s[++a]=r),(i=i[0])===(n=n[0])?s[a]?s[a]+=n:s[++a]=n:(s[++a]=null,l.push({i:a,x:$c(i,n)})),o=wd.lastIndex;return o<e.length&&(r=e.slice(o),s[a]?s[a]+=r:s[++a]=r),s.length<2?l[0]?function(t){return function(e){return t(e)+""}}(l[0].x):function(t){return function(){return t}}(e):(e=l.length,function(t){for(var i,n=0;n<e;++n)s[(i=l[n]).i]=i.x(t);return s.join("")})}function Cd(t,e){var i;return("number"==typeof e?$c:e instanceof Kc?vd:(i=Kc(e))?(e=i,vd):xd)(t,e)}function Td(t){return function(){this.removeAttribute(t)}}function $d(t){return function(){this.removeAttributeNS(t.space,t.local)}}function kd(t,e,i){var n,r,o=i+"";return function(){var a=this.getAttribute(t);return a===o?null:a===n?r:r=e(n=a,i)}}function Id(t,e,i){var n,r,o=i+"";return function(){var a=this.getAttributeNS(t.space,t.local);return a===o?null:a===n?r:r=e(n=a,i)}}function Sd(t,e,i){var n,r,o;return function(){var a,s,l=i(this);if(null!=l)return(a=this.getAttribute(t))===(s=l+"")?null:a===n&&s===r?o:(r=s,o=e(n=a,l));this.removeAttribute(t)}}function Ld(t,e,i){var n,r,o;return function(){var a,s,l=i(this);if(null!=l)return(a=this.getAttributeNS(t.space,t.local))===(s=l+"")?null:a===n&&s===r?o:(r=s,o=e(n=a,l));this.removeAttributeNS(t.space,t.local)}}function Md(t,e){return function(i){this.setAttribute(t,e.call(this,i))}}function _d(t,e){return function(i){this.setAttributeNS(t.space,t.local,e.call(this,i))}}function Dd(t,e){var i,n;function r(){var r=e.apply(this,arguments);return r!==n&&(i=(n=r)&&_d(t,r)),i}return r._value=e,r}function Fd(t,e){var i,n;function r(){var r=e.apply(this,arguments);return r!==n&&(i=(n=r)&&Md(t,r)),i}return r._value=e,r}function Ad(t,e){return function(){xc(this,t).delay=+e.apply(this,arguments)}}function Od(t,e){return e=+e,function(){xc(this,t).delay=e}}function Pd(t,e){return function(){Cc(this,t).duration=+e.apply(this,arguments)}}function qd(t,e){return e=+e,function(){Cc(this,t).duration=e}}function Nd(t,e){if("function"!=typeof e)throw new Error;return function(){Cc(this,t).ease=e}}function Hd(t,e,i){var n,r,o=function(t){return(t+"").trim().split(/^|\s+/).every((function(t){var e=t.indexOf(".");return e>=0&&(t=t.slice(0,e)),!t||"start"===t}))}(e)?xc:Cc;return function(){var a=o(this,t),s=a.on;s!==n&&(r=(n=s).copy()).on(e,i),a.on=r}}var zd=_l.prototype.constructor;function Qd(t){return function(){this.style.removeProperty(t)}}function Ed(t,e,i){return function(n){this.style.setProperty(t,e.call(this,n),i)}}function jd(t,e,i){var n,r;function o(){var o=e.apply(this,arguments);return o!==r&&(n=(r=o)&&Ed(t,o,i)),n}return o._value=e,o}function Wd(t){return function(e){this.textContent=t.call(this,e)}}function Rd(t){var e,i;function n(){var n=t.apply(this,arguments);return n!==i&&(e=(i=n)&&Wd(n)),e}return n._value=t,n}var Bd=0;function Gd(t,e,i,n){this._groups=t,this._parents=e,this._name=i,this._id=n}function Ud(){return++Bd}var Vd=_l.prototype;Gd.prototype=function(t){return _l().transition(t)}.prototype={constructor:Gd,select:function(t){var e=this._name,i=this._id;"function"!=typeof t&&(t=vs(t));for(var n=this._groups,r=n.length,o=new Array(r),a=0;a<r;++a)for(var s,l,c=n[a],d=c.length,u=o[a]=new Array(d),h=0;h<d;++h)(s=c[h])&&(l=t.call(s,s.__data__,h,c))&&("__data__"in s&&(l.__data__=s.__data__),u[h]=l,wc(u[h],e,i,h,u,Tc(s,i)));return new Gd(o,this._parents,e,i)},selectAll:function(t){var e=this._name,i=this._id;"function"!=typeof t&&(t=ws(t));for(var n=this._groups,r=n.length,o=[],a=[],s=0;s<r;++s)for(var l,c=n[s],d=c.length,u=0;u<d;++u)if(l=c[u]){for(var h,g=t.call(l,l.__data__,u,c),p=Tc(l,i),f=0,m=g.length;f<m;++f)(h=g[f])&&wc(h,e,i,f,g,p);o.push(g),a.push(l)}return new Gd(o,a,e,i)},selectChild:Vd.selectChild,selectChildren:Vd.selectChildren,filter:function(t){"function"!=typeof t&&(t=xs(t));for(var e=this._groups,i=e.length,n=new Array(i),r=0;r<i;++r)for(var o,a=e[r],s=a.length,l=n[r]=[],c=0;c<s;++c)(o=a[c])&&t.call(o,o.__data__,c,a)&&l.push(o);return new Gd(n,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,i=t._groups,n=e.length,r=i.length,o=Math.min(n,r),a=new Array(n),s=0;s<o;++s)for(var l,c=e[s],d=i[s],u=c.length,h=a[s]=new Array(u),g=0;g<u;++g)(l=c[g]||d[g])&&(h[g]=l);for(;s<n;++s)a[s]=e[s];return new Gd(a,this._parents,this._name,this._id)},selection:function(){return new zd(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,i=Ud(),n=this._groups,r=n.length,o=0;o<r;++o)for(var a,s=n[o],l=s.length,c=0;c<l;++c)if(a=s[c]){var d=Tc(a,e);wc(a,t,i,c,s,{time:d.time+d.delay+d.duration,delay:0,duration:d.duration,ease:d.ease})}return new Gd(n,this._parents,t,i)},call:Vd.call,nodes:Vd.nodes,node:Vd.node,size:Vd.size,empty:Vd.empty,each:Vd.each,on:function(t,e){var i=this._id;return arguments.length<2?Tc(this.node(),i).on.on(t):this.each(Hd(i,t,e))},attr:function(t,e){var i=Ns(t),n="transform"===i?Dc:Cd;return this.attrTween(t,"function"==typeof e?(i.local?Ld:Sd)(i,n,Oc(this,"attr."+t,e)):null==e?(i.local?$d:Td)(i):(i.local?Id:kd)(i,n,e))},attrTween:function(t,e){var i="attr."+t;if(arguments.length<2)return(i=this.tween(i))&&i._value;if(null==e)return this.tween(i,null);if("function"!=typeof e)throw new Error;var n=Ns(t);return this.tween(i,(n.local?Dd:Fd)(n,e))},style:function(t,e,i){var n="transform"==(t+="")?_c:Cd;return null==e?this.styleTween(t,function(t,e){var i,n,r;return function(){var o=Vs(this,t),a=(this.style.removeProperty(t),Vs(this,t));return o===a?null:o===i&&a===n?r:r=e(i=o,n=a)}}(t,n)).on("end.style."+t,Qd(t)):"function"==typeof e?this.styleTween(t,function(t,e,i){var n,r,o;return function(){var a=Vs(this,t),s=i(this),l=s+"";return null==s&&(this.style.removeProperty(t),l=s=Vs(this,t)),a===l?null:a===n&&l===r?o:(r=l,o=e(n=a,s))}}(t,n,Oc(this,"style."+t,e))).each(function(t,e){var i,n,r,o,a="style."+e,s="end."+a;return function(){var l=Cc(this,t),c=l.on,d=null==l.value[a]?o||(o=Qd(e)):void 0;c===i&&r===d||(n=(i=c).copy()).on(s,r=d),l.on=n}}(this._id,t)):this.styleTween(t,function(t,e,i){var n,r,o=i+"";return function(){var a=Vs(this,t);return a===o?null:a===n?r:r=e(n=a,i)}}(t,n,e),i).on("end.style."+t,null)},styleTween:function(t,e,i){var n="style."+(t+="");if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==e)return this.tween(n,null);if("function"!=typeof e)throw new Error;return this.tween(n,jd(t,e,null==i?"":i))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var e=t(this);this.textContent=null==e?"":e}}(Oc(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(null==t)return this.tween(e,null);if("function"!=typeof t)throw new Error;return this.tween(e,Rd(t))},remove:function(){return this.on("end.remove",function(t){return function(){var e=this.parentNode;for(var i in this.__transition)if(+i!==t)return;e&&e.removeChild(this)}}(this._id))},tween:function(t,e){var i=this._id;if(t+="",arguments.length<2){for(var n,r=Tc(this.node(),i).tween,o=0,a=r.length;o<a;++o)if((n=r[o]).name===t)return n.value;return null}return this.each((null==e?Fc:Ac)(i,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?Ad:Od)(e,t)):Tc(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?Pd:qd)(e,t)):Tc(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(Nd(e,t)):Tc(this.node(),e).ease},easeVarying:function(t){if("function"!=typeof t)throw new Error;return this.each(function(t,e){return function(){var i=e.apply(this,arguments);if("function"!=typeof i)throw new Error;Cc(this,t).ease=i}}(this._id,t))},end:function(){var t,e,i=this,n=i._id,r=i.size();return new Promise((function(o,a){var s={value:a},l={value:function(){0==--r&&o()}};i.each((function(){var i=Cc(this,n),r=i.on;r!==t&&((e=(t=r).copy())._.cancel.push(s),e._.interrupt.push(s),e._.end.push(l)),i.on=e})),0===r&&o()}))},[Symbol.iterator]:Vd[Symbol.iterator]};var Zd={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};function Jd(t,e){for(var i;!(i=t.__transition)||!(i=i[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return i}function Xd(t,e,i){this.k=t,this.x=e,this.y=i}_l.prototype.interrupt=function(t){return this.each((function(){!function(t,e){var i,n,r,o=t.__transition,a=!0;if(o){for(r in e=null==e?null:e+"",o)(i=o[r]).name===e?(n=i.state>2&&i.state<5,i.state=6,i.timer.stop(),i.on.call(n?"interrupt":"cancel",t,t.__data__,i.index,i.group),delete o[r]):a=!1;a&&delete t.__transition}}(this,t)}))},_l.prototype.transition=function(t){var e,i;t instanceof Gd?(e=t._id,t=t._name):(e=Ud(),(i=Zd).time=dc(),t=null==t?null:t+"");for(var n=this._groups,r=n.length,o=0;o<r;++o)for(var a,s=n[o],l=s.length,c=0;c<l;++c)(a=s[c])&&wc(a,t,e,c,s,i||Jd(a,e));return new Gd(n,this._parents,t,e)},Xd.prototype={constructor:Xd,scale:function(t){return 1===t?this:new Xd(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new Xd(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};new Xd(1,0,0);Xd.prototype;var Yd=i(89346),Kd=i(65620),tu=Math.sqrt(50),eu=Math.sqrt(10),iu=Math.sqrt(2);function nu(t,e,i){var n=(e-t)/Math.max(0,i),r=Math.floor(Math.log(n)/Math.LN10),o=n/Math.pow(10,r);return r>=0?(o>=tu?10:o>=eu?5:o>=iu?2:1)*Math.pow(10,r):-Math.pow(10,-r)/(o>=tu?10:o>=eu?5:o>=iu?2:1)}function ru(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function ou(t){let e=t,i=t;function n(t,e,n,r){for(null==n&&(n=0),null==r&&(r=t.length);n<r;){const o=n+r>>>1;i(t[o],e)<0?n=o+1:r=o}return n}return 1===t.length&&(e=(e,i)=>t(e)-i,i=function(t){return(e,i)=>ru(t(e),i)}(t)),{left:n,center:function(t,i,r,o){null==r&&(r=0),null==o&&(o=t.length);const a=n(t,i,r,o-1);return a>r&&e(t[a-1],i)>-e(t[a],i)?a-1:a},right:function(t,e,n,r){for(null==n&&(n=0),null==r&&(r=t.length);n<r;){const o=n+r>>>1;i(t[o],e)>0?r=o:n=o+1}return n}}}const au=ou(ru),su=au.right;au.left,ou((function(t){return null===t?NaN:+t})).center;var lu=su;function cu(t,e){var i,n=e?e.length:0,r=t?Math.min(n,t.length):0,o=new Array(r),a=new Array(n);for(i=0;i<r;++i)o[i]=gu(t[i],e[i]);for(;i<n;++i)a[i]=e[i];return function(t){for(i=0;i<r;++i)a[i]=o[i](t);return a}}function du(t,e){var i=new Date;return t=+t,e=+e,function(n){return i.setTime(t*(1-n)+e*n),i}}function uu(t,e){var i,n={},r={};for(i in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)i in t?n[i]=gu(t[i],e[i]):r[i]=e[i];return function(t){for(i in n)r[i]=n[i](t);return r}}function hu(t,e){e||(e=[]);var i,n=t?Math.min(e.length,t.length):0,r=e.slice();return function(o){for(i=0;i<n;++i)r[i]=t[i]*(1-o)+e[i]*o;return r}}function gu(t,e){var i,n,r=typeof e;return null==e||"boolean"===r?Ia(e):("number"===r?Oo:"string"===r?(i=ha(e))?(e=i,_a):Oa:e instanceof ha?_a:e instanceof Date?du:(n=e,!ArrayBuffer.isView(n)||n instanceof DataView?Array.isArray(e)?cu:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?uu:Oo:hu))(t,e)}function pu(t,e){return t=+t,e=+e,function(i){return Math.round(t*(1-i)+e*i)}}function fu(t){return+t}var mu=[0,1];function vu(t){return t}function yu(t,e){return(e-=t=+t)?function(i){return(i-t)/e}:(i=isNaN(e)?NaN:.5,function(){return i});var i}function bu(t,e,i){var n=t[0],r=t[1],o=e[0],a=e[1];return r<n?(n=yu(r,n),o=i(a,o)):(n=yu(n,r),o=i(o,a)),function(t){return o(n(t))}}function wu(t,e,i){var n=Math.min(t.length,e.length)-1,r=new Array(n),o=new Array(n),a=-1;for(t[n]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++a<n;)r[a]=yu(t[a],t[a+1]),o[a]=i(e[a],e[a+1]);return function(e){var i=lu(t,e,1,n)-1;return o[i](r[i](e))}}function xu(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function Cu(){var t,e,i,n,r,o,a=mu,s=mu,l=gu,c=vu;function d(){var t,e,i,l=Math.min(a.length,s.length);return c!==vu&&(t=a[0],e=a[l-1],t>e&&(i=t,t=e,e=i),c=function(i){return Math.max(t,Math.min(e,i))}),n=l>2?wu:bu,r=o=null,u}function u(e){return isNaN(e=+e)?i:(r||(r=n(a.map(t),s,l)))(t(c(e)))}return u.invert=function(i){return c(e((o||(o=n(s,a.map(t),Oo)))(i)))},u.domain=function(t){return arguments.length?(a=Array.from(t,fu),d()):a.slice()},u.range=function(t){return arguments.length?(s=Array.from(t),d()):s.slice()},u.rangeRound=function(t){return s=Array.from(t),l=pu,d()},u.clamp=function(t){return arguments.length?(c=!!t||vu,d()):c!==vu},u.interpolate=function(t){return arguments.length?(l=t,d()):l},u.unknown=function(t){return arguments.length?(i=t,u):i},function(i,n){return t=i,e=n,d()}}function Tu(){return Cu()(vu,vu)}function $u(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}var ku,Iu=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Su(t){if(!(e=Iu.exec(t)))throw new Error("invalid format: "+t);var e;return new Lu({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function Lu(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function Mu(t,e){if((i=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var i,n=t.slice(0,i);return[n.length>1?n[0]+n.slice(2):n,+t.slice(i+1)]}function _u(t){return(t=Mu(Math.abs(t)))?t[1]:NaN}function Du(t,e){var i=Mu(t,e);if(!i)return t+"";var n=i[0],r=i[1];return r<0?"0."+new Array(-r).join("0")+n:n.length>r+1?n.slice(0,r+1)+"."+n.slice(r+1):n+new Array(r-n.length+2).join("0")}Su.prototype=Lu.prototype,Lu.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var Fu={"%":function(t,e){return(100*t).toFixed(e)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.round(t).toString(10)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},g:function(t,e){return t.toPrecision(e)},o:function(t){return Math.round(t).toString(8)},p:function(t,e){return Du(100*t,e)},r:Du,s:function(t,e){var i=Mu(t,e);if(!i)return t+"";var n=i[0],r=i[1],o=r-(ku=3*Math.max(-8,Math.min(8,Math.floor(r/3))))+1,a=n.length;return o===a?n:o>a?n+new Array(o-a+1).join("0"):o>0?n.slice(0,o)+"."+n.slice(o):"0."+new Array(1-o).join("0")+Mu(t,Math.max(0,e+o-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}};function Au(t){return t}var Ou,Pu,qu,Nu=Array.prototype.map,Hu=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function zu(t){var e,i,n=void 0===t.grouping||void 0===t.thousands?Au:(e=Nu.call(t.grouping,Number),i=t.thousands+"",function(t,n){for(var r=t.length,o=[],a=0,s=e[0],l=0;r>0&&s>0&&(l+s+1>n&&(s=Math.max(1,n-l)),o.push(t.substring(r-=s,r+s)),!((l+=s+1)>n));)s=e[a=(a+1)%e.length];return o.reverse().join(i)}),r=void 0===t.currency?"":t.currency[0]+"",o=void 0===t.currency?"":t.currency[1]+"",a=void 0===t.decimal?".":t.decimal+"",s=void 0===t.numerals?Au:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(Nu.call(t.numerals,String)),l=void 0===t.percent?"%":t.percent+"",c=void 0===t.minus?"-":t.minus+"",d=void 0===t.nan?"NaN":t.nan+"";function u(t){var e=(t=Su(t)).fill,i=t.align,u=t.sign,h=t.symbol,g=t.zero,p=t.width,f=t.comma,m=t.precision,v=t.trim,y=t.type;"n"===y?(f=!0,y="g"):Fu[y]||(void 0===m&&(m=12),v=!0,y="g"),(g||"0"===e&&"="===i)&&(g=!0,e="0",i="=");var b="$"===h?r:"#"===h&&/[boxX]/.test(y)?"0"+y.toLowerCase():"",w="$"===h?o:/[%p]/.test(y)?l:"",x=Fu[y],C=/[defgprs%]/.test(y);function T(t){var r,o,l,h=b,T=w;if("c"===y)T=x(t)+T,t="";else{var $=(t=+t)<0||1/t<0;if(t=isNaN(t)?d:x(Math.abs(t),m),v&&(t=function(t){t:for(var e,i=t.length,n=1,r=-1;n<i;++n)switch(t[n]){case".":r=e=n;break;case"0":0===r&&(r=n),e=n;break;default:if(!+t[n])break t;r>0&&(r=0)}return r>0?t.slice(0,r)+t.slice(e+1):t}(t)),$&&0==+t&&"+"!==u&&($=!1),h=($?"("===u?u:c:"-"===u||"("===u?"":u)+h,T=("s"===y?Hu[8+ku/3]:"")+T+($&&"("===u?")":""),C)for(r=-1,o=t.length;++r<o;)if(48>(l=t.charCodeAt(r))||l>57){T=(46===l?a+t.slice(r+1):t.slice(r))+T,t=t.slice(0,r);break}}f&&!g&&(t=n(t,1/0));var k=h.length+t.length+T.length,I=k<p?new Array(p-k+1).join(e):"";switch(f&&g&&(t=n(I+t,I.length?p-T.length:1/0),I=""),i){case"<":t=h+t+T+I;break;case"=":t=h+I+t+T;break;case"^":t=I.slice(0,k=I.length>>1)+h+t+T+I.slice(k);break;default:t=I+h+t+T}return s(t)}return m=void 0===m?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,m)):Math.max(0,Math.min(20,m)),T.toString=function(){return t+""},T}return{format:u,formatPrefix:function(t,e){var i=u(((t=Su(t)).type="f",t)),n=3*Math.max(-8,Math.min(8,Math.floor(_u(e)/3))),r=Math.pow(10,-n),o=Hu[8+n/3];return function(t){return i(r*t)+o}}}}function Qu(t,e,i,n){var r,o=function(t,e,i){var n=Math.abs(e-t)/Math.max(0,i),r=Math.pow(10,Math.floor(Math.log(n)/Math.LN10)),o=n/r;return o>=tu?r*=10:o>=eu?r*=5:o>=iu&&(r*=2),e<t?-r:r}(t,e,i);switch((n=Su(null==n?",f":n)).type){case"s":var a=Math.max(Math.abs(t),Math.abs(e));return null!=n.precision||isNaN(r=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(_u(e)/3)))-_u(Math.abs(t)))}(o,a))||(n.precision=r),qu(n,a);case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN(r=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,_u(e)-_u(t))+1}(o,Math.max(Math.abs(t),Math.abs(e))))||(n.precision=r-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN(r=function(t){return Math.max(0,-_u(Math.abs(t)))}(o))||(n.precision=r-2*("%"===n.type))}return Pu(n)}function Eu(t){var e=t.domain;return t.ticks=function(t){var i=e();return function(t,e,i){var n,r,o,a,s=-1;if(i=+i,(t=+t)==(e=+e)&&i>0)return[t];if((n=e<t)&&(r=t,t=e,e=r),0===(a=nu(t,e,i))||!isFinite(a))return[];if(a>0){let i=Math.round(t/a),n=Math.round(e/a);for(i*a<t&&++i,n*a>e&&--n,o=new Array(r=n-i+1);++s<r;)o[s]=(i+s)*a}else{a=-a;let i=Math.round(t*a),n=Math.round(e*a);for(i/a<t&&++i,n/a>e&&--n,o=new Array(r=n-i+1);++s<r;)o[s]=(i+s)/a}return n&&o.reverse(),o}(i[0],i[i.length-1],null==t?10:t)},t.tickFormat=function(t,i){var n=e();return Qu(n[0],n[n.length-1],null==t?10:t,i)},t.nice=function(i){null==i&&(i=10);var n,r=e(),o=0,a=r.length-1,s=r[o],l=r[a];return l<s&&(n=s,s=l,l=n,n=o,o=a,a=n),(n=nu(s,l,i))>0?n=nu(s=Math.floor(s/n)*n,l=Math.ceil(l/n)*n,i):n<0&&(n=nu(s=Math.ceil(s*n)/n,l=Math.floor(l*n)/n,i)),n>0?(r[o]=Math.floor(s/n)*n,r[a]=Math.ceil(l/n)*n,e(r)):n<0&&(r[o]=Math.ceil(s*n)/n,r[a]=Math.floor(l*n)/n,e(r)),t},t}function ju(){var t=Tu();return t.copy=function(){return xu(t,ju())},$u.apply(t,arguments),Eu(t)}Ou=zu({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),Pu=Ou.format,qu=Ou.formatPrefix;class Wu extends Yd.H{connectedCallback(){var t;super.connectedCallback(),this.width&&this.height&&(null===(t=this.prices)||void 0===t?void 0:t.length)>0&&(this.initializeChart(),this.drawGraph(this.width,this.height,this.fillColor,this.prices,this.baselinePrice))}getYScale(){const t=this.prices.slice();"number"==typeof this.baselinePrice&&t.push(this.baselinePrice);const e=Math.min(...t),i=Math.max(...t),n=this.height-(this.skipTransform?6:0);return ju().domain([e,i]).range([n,0])}getXChartScale(){const t=this.prices.length-1,e=Math.max(this.pricesMaxCount||0,this.prices.length),i=this.prices.length/e;return ju().domain([0,t]).range([0,this.width*i])}initializeChart(){const t=this.prices.length-1;this.xScale=ju().domain([0,t]).range([0,this.width]),this.yScale=this.getYScale(),this.xChartScale=this.getXChartScale(),this.graphContainer&&(this.chartElement&&this.chartElement.remove&&this.chartElement.remove(),this.svgDefs&&this.svgDefs.remove&&this.svgDefs.remove())}drawGraph(t,e,i,n,r){var o;const a=function(t){return"string"==typeof t?new Ll([[document.querySelector(t)]],[document.documentElement]):new Ll([[t]],Sl)}(this.graphContainer).attr("width",t).attr("height",e).attr("fill","true");this.chartElement=a.append("g").attr("class",`chartSvg ${this.isXSmallChart()?"xs":""} ${this.skipTransform?"skipT":""}`);const s=Wl().curve(Gl).x(((t,e)=>this.xChartScale(e))).y((t=>this.yScale(t))),l=this.chartElement.append("path");l.datum(n).attr("class","chartPath").attr("stroke",i).attr("fill","none").attr("d",s),this.svgDefs=a.append("defs");const c=this.svgDefs.append("linearGradient").attr("id","stock-chart-grad").attr("gradientTransform","rotate(90)");c.append("stop").attr("offset","0%").attr("stop-color",i+"4D"),c.append("stop").attr("offset","100%").attr("stop-color",i+"00");const d=this.chartElement.append("path").attr("stroke","none").attr("fill","url(#stock-chart-grad) rgba(255, 255, 255, 0)"),u=this.xChartScale(0),h=this.xChartScale((null!==(o=n.length)&&void 0!==o?o:0)-1),g=+e,p=l.attr("d")+` L ${h},${g} L ${u},${g} Z`;if(d.attr("d",p),!r)return;const f=this.yScale(r),m=Math.abs(f),v=f<0,y=this.chartElement.append("g").attr("class",this.baselineColor?"chartAxisAltColor":"chartAxis").call((b=this.xScale,Qn(3,b)).tickSize(0));var b;if(this.baselineColor&&y.attr("color",this.baselineColor),v){const t=this.getChartPathTranslateValue(m,e);l.attr("transform",`translate(0, ${t})`),d.attr("transform",`translate(0, ${t})`)}else{const t=this.getBaselineTranslateValue(m,e);y.attr("transform",`translate(0, ${t})`)}}isXSmallChart(){return this.height<=30}getChartPathTranslateValue(t,e){return(this.isXSmallChart()||this.skipTransform)&&t>0?0:t>e/2?Math.abs(e/2):t}getBaselineTranslateValue(t,e){return t>e?Math.abs(e):t}}(0,f.gn)([(0,Kd.Lj)({attribute:"chart-id"})],Wu.prototype,"chartId",void 0),(0,f.gn)([Kd.Lj],Wu.prototype,"width",void 0),(0,f.gn)([Kd.Lj],Wu.prototype,"height",void 0),(0,f.gn)([(0,Kd.Lj)({attribute:"fill-color"})],Wu.prototype,"fillColor",void 0),(0,f.gn)([(0,Kd.Lj)({attribute:"baseline-color"})],Wu.prototype,"baselineColor",void 0),(0,f.gn)([(0,Kd.Lj)({attribute:"skip-transform",mode:"boolean"})],Wu.prototype,"skipTransform",void 0),(0,f.gn)([_i.LO],Wu.prototype,"prices",void 0);const Ru=re.i` 
    .chartSvg:not(.xs) {
        transform: scaleY(0.6);
    }
    .chartSvg.xs {
        transform: scaleY(0.9);
    }
    .chartSvg.skipT {
        transform: translate(0, 1px) !important;
    }

    .chartPath {
       stroke-width: 1.5;
    }

    .chartAxis {
        stroke-dasharray: 3 5;
        stroke: ${oe.CHi};
    }

    .chartAxisAltColor path {
        stroke-dasharray: 3 5;
    }


    .tick line {
        display : none;
    }
    
    .tick text {
        display : none;
    }`;var Bu=i(58952);const Gu=Jt.d`
<template>
 <div>
    <svg ${(0,Bu.i)("graphContainer")}>
    </svg>
 </div>
</template>`;let Uu=class extends Wu{};var Vu,Zu,Ju,Xu,Yu;Uu=(0,f.gn)([(0,Yd.M)({name:"msn-stock-chart",template:Gu,styles:Ru,shadowOptions:{delegatesFocus:!0}})],Uu),function(t){t.MoneyCardPreloadTemplate="MoneyCardPreloadTemplate",t.MoneyCard="MoneyInfoCardWCTemplate",t.MoneyCardQuoteList="MoneyCardQuoteListTemplate",t.SuggestedSectionDividerWithWatchlist="SuggestedSectionDividerWithWatchlistTemplate",t.SuggestedSectionDividerWithoutWatchlist="SuggestedSectionDividerWithoutWatchlistTemplate",t.MoneyCardQuoteSearch="MoneyCardQuoteSearch",t.RecommendQuoteList="RecommendQuoteList"}(Vu||(Vu={})),function(t){t.green="#0B7B24",t.red="#BF3401",t.blue="#0078D4",t.grey="#767676"}(Zu||(Zu={})),function(t){t.green="#02E176",t.red="#FFAB8C",t.blue="#0078D4",t.grey="#A7A7A7"}(Ju||(Ju={})),function(t){t.Topstories="topstories",t.Watchlist="watchlist",t.Recent="recent",t.Market="market",t.Currencies="currencies",t.Movers="movers",t.Gainers="gainers",t.Losers="losers",t.Suggested="recommend",t.SuggestedOnly="suggestedonly",t.ArticleSuggested="articlerecommend",t.ArticleMentioned="articlementioned",t.ArticleRelated="articlerelated",t.Search="search",t.Crypto="crypto",t.ETF="etf",t.Futures="futures",t.Billionaires="billionaires",t.Bitcoin="bitcoin",t.Business="business",t.Company="company",t.Company_car="company_car",t.Currencies_news="currencies_news",t.Energy="energy",t.Investing="investing",t.Logistics="logistics",t.Marketing="marketing",t.Sales="sales",t.Supplychain="supplychain",t.Technology="technology",t.Topstocks="topstocks",t.Wealth="wealth",t.Agriculture="agriculture",t.Airlines="airlines",t.Art="art",t.Book="book",t.Culture="culture",t.Economy="economy",t.History="history",t.Philosophy="philosophy",t.Politics="politics",t.Psychology="psychology",t.Science="science",t.Work="work",t.Banking="banking",t.Charities="charities",t.Credit="credit",t.Ecommerce="ecommerce",t.Education="education",t.Food="food",t.Game="game",t.Health="health",t.Insurance="insurance",t.Job="job",t.Law="law",t.Loan="loan",t.Mortgage="mortgage",t.Personalfinance="personalfinance",t.Real_estate="real_estate",t.Restaurant="restaurant",t.Retail="retail",t.Retirement="retirement",t.Saving_spending="saving_spending",t.Shopping="shopping",t.Shopping_car="shopping_car",t.Tax="tax",t.Travel="travel",t.Portfolio="portfolio",t.Sentiment="sentiment",t.Spotlight="spotlight",t.prepopulatedWL="prepopulatedwl",t.wlsummary="watchlistsummary",t.popularcryptos="popularcryptos",t.trendingcryptos="trendingcryptos",t.cryptogainers="cryptogainers",t.cryptolosers="cryptolosers",t.cryptoLearn="learncrypto",t.nft="nft",t.searchNft="search_nft"}(Xu||(Xu={})),function(t){t.Article="Article",t.CrashCourse="Crash Course",t.Video="Video"}(Yu||(Yu={}));Xu.Currencies,Xu.Crypto,Xu.Gainers,Xu.Losers,Xu.Market,Xu.Movers,Xu.ArticleSuggested,Xu.ArticleMentioned,Xu.ArticleRelated,Xu.Topstories,Xu.Billionaires,Xu.Bitcoin,Xu.Business,Xu.Company,Xu.Company_car,Xu.Currencies_news,Xu.Energy,Xu.Investing,Xu.Logistics,Xu.Marketing,Xu.Sales,Xu.Supplychain,Xu.Technology,Xu.Topstocks,Xu.Wealth,Xu.Agriculture,Xu.Airlines,Xu.Art,Xu.Book,Xu.Culture,Xu.Economy,Xu.History,Xu.Philosophy,Xu.Politics,Xu.Psychology,Xu.Science,Xu.Work,Xu.Banking,Xu.Charities,Xu.Credit,Xu.Ecommerce,Xu.Education,Xu.Food,Xu.Game,Xu.Health,Xu.Insurance,Xu.Job,Xu.Law,Xu.Loan,Xu.Mortgage,Xu.Personalfinance,Xu.Real_estate,Xu.Restaurant,Xu.Retail,Xu.Retirement,Xu.Saving_spending,Xu.Shopping,Xu.Shopping_car,Xu.Tax,Xu.Travel,Xu.Portfolio;var Ku,th,eh,ih,nh,rh;!function(t){t.MoneyInfo="MoneyInfo",t.Crypto="CryptoCard",t.PreWl="MoneyPreWL",t.MarketBrief="MarketBrief"}(Ku||(Ku={})),function(t){t.AddToWatchlist="addToWatchlist",t.RemoveFromWatchlist="removeFromWatchlist",t.FailedToAdd="failedToAdd",t.FailedToRemove="failedToRemove"}(th||(th={})),function(t){t.PriceMovement="PriceMovement",t.PriceDrop="PriceDrop",t.PriceSpike="PriceSpike",t.InstitutionalHolding="InstitutionalHolding",t.EarningRelease="EarningRelease",t.TechnicalIndicator="TechnicalIndicator",t.Sentiment="Sentiment",t.WatchlistSummary="WatchlistSummary",t.MarketBrief="MarketBrief"}(eh||(eh={})),function(t){t.Gainer="positive",t.Loser="negative",t.General="general